feat(api, agents): add agent node profile retrieval and update functionality
Implemented new API functions to fetch and update agent node profiles, enhancing the management capabilities for agent data. This addition improves the overall functionality of the admin agents console, allowing for better user interaction with agent profiles. Updated related types for improved type safety and clarity in the codebase.
This commit is contained in:
@@ -1,5 +1,36 @@
|
||||
{
|
||||
"title": "Agents",
|
||||
"title": "Agent lines",
|
||||
"sitesTitle": "Sites",
|
||||
"sitesListHint": "For the full site table (keys, callbacks, etc.), go to",
|
||||
"sitesListLink": "Sites",
|
||||
"subnav": {
|
||||
"label": "Agent line navigation",
|
||||
"noPermission": "No permission",
|
||||
"operations": "Operations",
|
||||
"provision": "Provision line",
|
||||
"sites": "Sites",
|
||||
"settlementBills": "Agent bills"
|
||||
},
|
||||
"includeRoots": "Include root nodes",
|
||||
"includeRootsHint": "Root nodes represent site boundaries and are excluded from operating agent counts by default.",
|
||||
"directoryStatus": {
|
||||
"all": "All statuses",
|
||||
"enabled": "Enabled only",
|
||||
"disabled": "Disabled only"
|
||||
},
|
||||
"tabs": {
|
||||
"subordinates": "Subordinates",
|
||||
"accounts": "Primary account",
|
||||
"players": "Players",
|
||||
"overview": "Overview",
|
||||
"roles": "Roles",
|
||||
"users": "Accounts",
|
||||
"delegation": "Delegation ceiling"
|
||||
},
|
||||
"filterParent": "Parent agent",
|
||||
"filterParentAll": "All subordinates",
|
||||
"listFlatHint": "All operating agents in a flat list. Use row actions to add a child under a specific agent.",
|
||||
"addChildNeedParent": "Select a parent agent before adding a subordinate",
|
||||
"treeTitle": "Agent tree",
|
||||
"detailTitle": "Node details",
|
||||
"selectNode": "Select an agent node from the tree",
|
||||
@@ -18,6 +49,7 @@
|
||||
},
|
||||
"code": "Code",
|
||||
"name": "Name",
|
||||
"namePlaceholder": "Enter agent name",
|
||||
"depth": "Depth",
|
||||
"path": "Path",
|
||||
"status": "Status",
|
||||
@@ -28,11 +60,61 @@
|
||||
"saveFailed": "Save failed",
|
||||
"codeRequired": "Code and name are required",
|
||||
"modelGuide": "Agent layer controls data scope and delegation ceiling. Account permissions are assigned through roles.",
|
||||
"tabs": {
|
||||
"overview": "Overview",
|
||||
"roles": "Roles",
|
||||
"users": "Accounts",
|
||||
"delegation": "Delegation ceiling"
|
||||
"pageGuide": "Manage the agent tree, agent roles, agent accounts, and delegation ceilings here. Platform accounts and platform roles stay in platform governance pages.",
|
||||
"summary": {
|
||||
"currentSiteNodes": "Current site nodes",
|
||||
"currentSiteAgents": "Current site operating agents",
|
||||
"visibleList": "Current flat list rows",
|
||||
"visibleAgents": "Current visible operating agents",
|
||||
"globalNodes": "All-site node total",
|
||||
"globalAgents": "All-site operating agents",
|
||||
"enabledAgents": "Enabled operating agents",
|
||||
"rootNodes": "Root node count"
|
||||
},
|
||||
"profile": {
|
||||
"section": "Share & credit",
|
||||
"totalShareRate": "Share rate (%)",
|
||||
"creditLimit": "Credit limit",
|
||||
"rebateLimit": "Rebate ceiling",
|
||||
"defaultPlayerRebate": "Default player rebate",
|
||||
"settlementCycle": "Settlement cycle",
|
||||
"canGrantExtraRebate": "Allow extra rebate",
|
||||
"canCreatePlayer": "Allow creating players",
|
||||
"canCreateChildAgent": "Allow creating sub-agents",
|
||||
"cycleDaily": "Daily",
|
||||
"cycleWeekly": "Weekly",
|
||||
"cycleMonthly": "Monthly"
|
||||
},
|
||||
"settlementBills": {
|
||||
"title": "Agent bills",
|
||||
"description": "Player/agent bills generated after a period is closed",
|
||||
"columns": {
|
||||
"id": "ID",
|
||||
"type": "Type",
|
||||
"net": "Net",
|
||||
"unpaid": "Unpaid",
|
||||
"status": "Status"
|
||||
}
|
||||
},
|
||||
"lineProvision": {
|
||||
"title": "Provision agent line",
|
||||
"description": "Creates site, root agent, and admin account in one step (site_code matches agent code).",
|
||||
"code": "Site code",
|
||||
"name": "Line name",
|
||||
"username": "Agent login",
|
||||
"password": "Initial password",
|
||||
"walletUrl": "Wallet API URL",
|
||||
"submit": "Provision",
|
||||
"success": "Line provisioned",
|
||||
"secretsOnce": "Secrets are shown once — save them now",
|
||||
"link": "Provision line"
|
||||
},
|
||||
"noAccess": "You do not have permission to manage agents. Contact an administrator.",
|
||||
"playersPanel": {
|
||||
"create": "Create player",
|
||||
"scopedTo": "Direct players: {{agent}}",
|
||||
"allUnderSite": "Players visible on this site",
|
||||
"filterHint": "Filter direct players by parent agent."
|
||||
},
|
||||
"delegation": {
|
||||
"title": "Delegation ceiling",
|
||||
@@ -62,11 +144,15 @@
|
||||
"title": "Agent accounts",
|
||||
"create": "Create account",
|
||||
"username": "Username",
|
||||
"email": "Email",
|
||||
"password": "Password",
|
||||
"roles": "Roles",
|
||||
"createSuccess": "Created account {{name}}",
|
||||
"roleSaveSuccess": "Roles updated for {{name}}",
|
||||
"deleteConfirm": "This admin will no longer be able to sign in. This cannot be undone.",
|
||||
"deleteSuccess": "Deleted account {{name}}"
|
||||
}
|
||||
},
|
||||
"usernamePlaceholder": "Enter login username",
|
||||
"passwordPlaceholder": "Enter an 8-character password",
|
||||
"passwordOptionalHint": "Leave empty to keep unchanged, or enter an 8-character password"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user