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:
2026-06-04 09:17:55 +08:00
parent 59b0684ea1
commit cbc499e5b2
79 changed files with 3468 additions and 1406 deletions

View File

@@ -99,6 +99,16 @@
"notes": "Notes",
"ssoSecret": "SSO secret",
"walletApiKey": "Wallet API key"
},
"placeholders": {
"code": "Enter site identifier, for example partner-a",
"name": "Enter site name",
"currency": "Enter currency code, for example NPR",
"walletApiUrl": "Enter wallet API URL",
"lotteryH5BaseUrl": "Enter H5 URL",
"iframeOrigins": "Enter allowed origins, for example https://www.example.com",
"notes": "Enter notes",
"connectivityPlayerId": "Enter player ID, for example 10001"
}
},
"versionStatus": {
@@ -211,6 +221,17 @@
"playRulesHtml": "Play rules HTML (i18n)",
"playRulesHtmlDesc": "Rendered on the player play-rules page per locale. Leave empty to fall back to another language or the default empty state."
},
"placeholders": {
"defaultCurrency": "Enter default currency code, for example NPR",
"drawIntervalMinutes": "Enter draw interval in minutes",
"drawBettingWindowSeconds": "Enter betting window in seconds",
"drawCloseBeforeDrawSeconds": "Enter seconds to close before draw",
"drawBufferDrawsAhead": "Enter pre-generated draw count",
"cooldownMinutes": "Enter cooldown minutes",
"currencyDisplayDecimals": "Enter display decimal places, for example 2",
"currencyDecimalSeparator": "Enter decimal separator, for example .",
"currencyThousandsSeparator": "Enter thousands separator, for example ,"
},
"hints": {
"manualReview": "When enabled, RNG draw results enter pending review and must be published manually in admin.",
"cooldownMinutes": "How long to wait after publishing before entering settling. Use 0 to settle immediately.",
@@ -277,6 +298,9 @@
"code": "Currency code",
"name": "Currency name",
"decimals": "Decimal places",
"codePlaceholder": "Enter currency code, for example NPR",
"namePlaceholder": "Enter currency name",
"decimalsPlaceholder": "Enter decimal places, for example 2",
"enabled": "Enabled status",
"enabledHint": "Disabled currencies should not be used for new business.",
"bettable": "Allow betting",
@@ -347,6 +371,11 @@
"maxBet": "Max bet",
"actions": "Actions"
},
"placeholders": {
"displayOrder": "Order",
"minBetAmount": "Minimum amount",
"maxBetAmount": "Maximum amount"
},
"states": {
"enabled": "Enabled",
"disabled": "Disabled",
@@ -411,6 +440,10 @@
"missingScopeRow": "Missing {{scope}} row. Check seed or version data.",
"rebateRate": "Rebate rate (%)",
"rebateRateHint": "Writes rebate_rate to all prize scopes under this play type.",
"placeholders": {
"multiplier": "Enter odds multiplier",
"rebateRate": "Enter rebate rate"
},
"publishFailed": "Publish failed",
"createDraftSuccess": "Created draft v{{version}}",
"createDraftFailed": "Failed to create draft",
@@ -457,6 +490,11 @@
"d3": "3D rebate rate (%)",
"d4": "4D rebate rate (%)"
},
"placeholders": {
"d2": "Enter 2D rebate",
"d3": "Enter 3D rebate",
"d4": "Enter 4D rebate"
},
"winEnjoy": {
"label": "Deduct rebate on winning payouts",
"description": "Maps to settlement.apply_rebate_to_payout: when enabled, winning payout uses gross win × (1 - rebate_rate_snapshot).",
@@ -467,6 +505,11 @@
"effectiveTime": "Effective time (current active odds version)"
},
"riskCap": {
"placeholders": {
"defaultCap": "Enter default cap amount",
"number": "4-digit number",
"capAmount": "Enter cap amount"
},
"validation": {
"requireAtLeastOne": "At least one cap row is required",
"defaultGreaterThanZero": "Default cap amount must be greater than 0",