@tammsyr/admin-api-client 1.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AccountProducts.d.ts +87 -0
- package/dist/AccountProducts.d.ts.map +1 -0
- package/dist/AccountProducts.js +157 -0
- package/dist/AccountProducts.js.map +1 -0
- package/dist/AccountTypes.d.ts +3 -3
- package/dist/AccountTypes.js.map +1 -1
- package/dist/ActivityLogs.d.ts.map +1 -1
- package/dist/AddressRegions.d.ts +73 -0
- package/dist/AddressRegions.d.ts.map +1 -0
- package/dist/AddressRegions.js +133 -0
- package/dist/AddressRegions.js.map +1 -0
- package/dist/AppVersion.d.ts +2 -2
- package/dist/AppVersion.d.ts.map +1 -1
- package/dist/AppVersion.js.map +1 -1
- package/dist/ApprovalPolicies.d.ts +3 -3
- package/dist/ApprovalPolicies.d.ts.map +1 -1
- package/dist/ApprovalPolicies.js.map +1 -1
- package/dist/BankBranches.d.ts +3 -3
- package/dist/BankBranches.js.map +1 -1
- package/dist/Currencies.d.ts +3 -3
- package/dist/Currencies.d.ts.map +1 -1
- package/dist/Currencies.js.map +1 -1
- package/dist/Dlq.d.ts.map +1 -1
- package/dist/Dlq.js.map +1 -1
- package/dist/GlobalNotifications.d.ts +2 -2
- package/dist/GlobalNotifications.d.ts.map +1 -1
- package/dist/GlobalNotifications.js.map +1 -1
- package/dist/MerchantCategories.d.ts +3 -3
- package/dist/MerchantCategories.d.ts.map +1 -1
- package/dist/MerchantCategories.js.map +1 -1
- package/dist/Policies.d.ts +6 -6
- package/dist/Policies.d.ts.map +1 -1
- package/dist/Policies.js +5 -0
- package/dist/Policies.js.map +1 -1
- package/dist/Transactions.d.ts.map +1 -1
- package/dist/Transactions.js.map +1 -1
- package/dist/Users.d.ts.map +1 -1
- package/dist/Users.js.map +1 -1
- package/dist/data-contracts.d.ts +509 -73
- package/dist/data-contracts.d.ts.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/data-contracts.d.ts
CHANGED
|
@@ -1083,10 +1083,10 @@ export interface PersonAddressDto {
|
|
|
1083
1083
|
*/
|
|
1084
1084
|
province: object;
|
|
1085
1085
|
/**
|
|
1086
|
-
* City
|
|
1087
|
-
* @example
|
|
1086
|
+
* City / town (free text entered by the user)
|
|
1087
|
+
* @example "Mazzeh"
|
|
1088
1088
|
*/
|
|
1089
|
-
city
|
|
1089
|
+
city: string;
|
|
1090
1090
|
/** @example "123 Main Street" */
|
|
1091
1091
|
detailedAddress: string;
|
|
1092
1092
|
}
|
|
@@ -2070,32 +2070,185 @@ export interface AdminFreezeAccountDto {
|
|
|
2070
2070
|
*/
|
|
2071
2071
|
caseId: string;
|
|
2072
2072
|
}
|
|
2073
|
+
export interface PolicyRuleKindResponseDto {
|
|
2074
|
+
/**
|
|
2075
|
+
* Rule kind identifier
|
|
2076
|
+
* @example "ACCOUNT_OPEN"
|
|
2077
|
+
*/
|
|
2078
|
+
ruleKind: string;
|
|
2079
|
+
/**
|
|
2080
|
+
* Decision point (business checkpoint) this kind is evaluated at
|
|
2081
|
+
* @example "ACCOUNT_OPEN"
|
|
2082
|
+
*/
|
|
2083
|
+
decisionPoint: string;
|
|
2084
|
+
/**
|
|
2085
|
+
* Effect applied when no blocking rule matches
|
|
2086
|
+
* @example "ALLOW"
|
|
2087
|
+
*/
|
|
2088
|
+
defaultEffect: "ALLOW" | "DENY";
|
|
2089
|
+
/**
|
|
2090
|
+
* JSON schema for rules’ params under this kind (null if none)
|
|
2091
|
+
* @example {}
|
|
2092
|
+
*/
|
|
2093
|
+
paramsSchema: object | null;
|
|
2094
|
+
/**
|
|
2095
|
+
* Human-readable description
|
|
2096
|
+
* @example "Wallet creation eligibility, quotas, approvals"
|
|
2097
|
+
*/
|
|
2098
|
+
description: string;
|
|
2099
|
+
}
|
|
2100
|
+
export interface PolicyRuleResponseDto {
|
|
2101
|
+
/**
|
|
2102
|
+
* Unique rule id (UUID v4). Use it for GET/PUT /policies/rules/{id}.
|
|
2103
|
+
* @format uuid
|
|
2104
|
+
* @example "10000000-0000-4000-8000-000000000006"
|
|
2105
|
+
*/
|
|
2106
|
+
id: string;
|
|
2107
|
+
/**
|
|
2108
|
+
* Rule kind — the catalogue entry this rule belongs to. The kind decides which decision point (business checkpoint) the rule is evaluated at and the default outcome when nothing matches.
|
|
2109
|
+
* @example "ACCOUNT_OPEN"
|
|
2110
|
+
*/
|
|
2111
|
+
ruleKind: string;
|
|
2112
|
+
/**
|
|
2113
|
+
* Human-readable name shown in the admin console.
|
|
2114
|
+
* @example "Agent wallet opening requires approval"
|
|
2115
|
+
*/
|
|
2116
|
+
name: string;
|
|
2117
|
+
/**
|
|
2118
|
+
* SELECTOR — wallet owner type. `""` = wildcard. One of: PERSONAL, MERCHANT, AGENT, INTERNAL. Here the rule only matches AGENT-owned wallets.
|
|
2119
|
+
* @example "AGENT"
|
|
2120
|
+
*/
|
|
2121
|
+
ownerType: string;
|
|
2122
|
+
/**
|
|
2123
|
+
* SELECTOR — 3-digit account-type (TTT) code, e.g. 110 = personal savings. `""` = wildcard.
|
|
2124
|
+
* @example ""
|
|
2125
|
+
*/
|
|
2126
|
+
typeCode: string;
|
|
2127
|
+
/**
|
|
2128
|
+
* SELECTOR — product template code. `""` = wildcard.
|
|
2129
|
+
* @example ""
|
|
2130
|
+
*/
|
|
2131
|
+
productCode: string;
|
|
2132
|
+
/**
|
|
2133
|
+
* SELECTOR — ISO-4217 currency, e.g. SYP / USD. `""` = wildcard (any currency).
|
|
2134
|
+
* @example ""
|
|
2135
|
+
*/
|
|
2136
|
+
currency: string;
|
|
2137
|
+
/**
|
|
2138
|
+
* SELECTOR — 3-digit branch code, e.g. 001. `""` = wildcard.
|
|
2139
|
+
* @example ""
|
|
2140
|
+
*/
|
|
2141
|
+
branchCode: string;
|
|
2142
|
+
/**
|
|
2143
|
+
* SELECTOR — a single customer by 8-digit CIF (for customer-specific rules). `""` = wildcard (all customers).
|
|
2144
|
+
* @example ""
|
|
2145
|
+
*/
|
|
2146
|
+
customerCif: string;
|
|
2147
|
+
/**
|
|
2148
|
+
* SELECTOR — request channel, e.g. MOBILE / WEB. `""` = wildcard.
|
|
2149
|
+
* @example ""
|
|
2150
|
+
*/
|
|
2151
|
+
channel: string;
|
|
2152
|
+
/**
|
|
2153
|
+
* EFFECT applied when the rule matches. ALLOW = permit; DENY = block; LIMIT = enforce a quota/bound from `params`; REQUIRE_APPROVAL = send for manual approval.
|
|
2154
|
+
* @example "REQUIRE_APPROVAL"
|
|
2155
|
+
*/
|
|
2156
|
+
effect: "ALLOW" | "DENY" | "LIMIT" | "REQUIRE_APPROVAL";
|
|
2157
|
+
/**
|
|
2158
|
+
* Parsed effect parameters (null if unset). Shape depends on the effect: LIMIT → { max, countBy } (a count quota) or { min, max } (a value bound); REQUIRE_APPROVAL → { prereq }; ALLOW/DENY → {}.
|
|
2159
|
+
* @example {"prereq":"AGENT_AGREEMENT"}
|
|
2160
|
+
*/
|
|
2161
|
+
params: object | null;
|
|
2162
|
+
/**
|
|
2163
|
+
* Conflict priority — LOWER number wins. (0 is reserved for the emergency kill-switch, which overrides everything.) Default 100.
|
|
2164
|
+
* @example 50
|
|
2165
|
+
*/
|
|
2166
|
+
priority: number;
|
|
2167
|
+
/**
|
|
2168
|
+
* ISO-8601 start of the validity window. `""` = effective immediately.
|
|
2169
|
+
* @example ""
|
|
2170
|
+
*/
|
|
2171
|
+
effectiveFrom: string;
|
|
2172
|
+
/**
|
|
2173
|
+
* ISO-8601 end of the validity window. `""` = never expires.
|
|
2174
|
+
* @example ""
|
|
2175
|
+
*/
|
|
2176
|
+
effectiveTo: string;
|
|
2177
|
+
/**
|
|
2178
|
+
* Whether the rule is live. A rule only evaluates when isActive=true AND it has been approved. Editing a rule sets this back to false (DRAFT).
|
|
2179
|
+
* @example true
|
|
2180
|
+
*/
|
|
2181
|
+
isActive: boolean;
|
|
2182
|
+
/**
|
|
2183
|
+
* Four-eyes: the admin who approved (activated) the rule. `""` = not yet approved (still a draft). Must differ from createdBy.
|
|
2184
|
+
* @example "system"
|
|
2185
|
+
*/
|
|
2186
|
+
approvedBy: string;
|
|
2187
|
+
/**
|
|
2188
|
+
* Four-eyes: the admin who authored/last-edited the rule.
|
|
2189
|
+
* @example "system"
|
|
2190
|
+
*/
|
|
2191
|
+
createdBy: string;
|
|
2192
|
+
/**
|
|
2193
|
+
* ISO-8601 creation timestamp.
|
|
2194
|
+
* @example "2026-06-15T00:00:00.000Z"
|
|
2195
|
+
*/
|
|
2196
|
+
createdAt: string;
|
|
2197
|
+
/**
|
|
2198
|
+
* ISO-8601 last-update timestamp.
|
|
2199
|
+
* @example "2026-06-15T00:00:00.000Z"
|
|
2200
|
+
*/
|
|
2201
|
+
updatedAt: string;
|
|
2202
|
+
}
|
|
2073
2203
|
export interface CreatePolicyRuleDto {
|
|
2074
2204
|
/**
|
|
2075
|
-
* Rule kind — the decision point this rule
|
|
2205
|
+
* Rule kind — the catalogue entry (and its decision point) this rule belongs to. Must be an existing kind.
|
|
2206
|
+
* @maxLength 40
|
|
2076
2207
|
* @example "ACCOUNT_OPEN"
|
|
2077
2208
|
*/
|
|
2078
2209
|
ruleKind: string;
|
|
2079
2210
|
/**
|
|
2080
2211
|
* Human-readable rule name
|
|
2212
|
+
* @maxLength 120
|
|
2081
2213
|
* @example "Block opening for sanctioned branches"
|
|
2082
2214
|
*/
|
|
2083
2215
|
name: string;
|
|
2084
|
-
/**
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2216
|
+
/**
|
|
2217
|
+
* Owner type selector (wildcard if omitted)
|
|
2218
|
+
* @example "MERCHANT"
|
|
2219
|
+
*/
|
|
2220
|
+
ownerType?: "PERSONAL" | "MERCHANT" | "AGENT" | "INTERNAL";
|
|
2221
|
+
/**
|
|
2222
|
+
* Account type code selector — 3-digit TTT code (wildcard if omitted)
|
|
2223
|
+
* @example "110"
|
|
2224
|
+
*/
|
|
2089
2225
|
typeCode?: string;
|
|
2090
|
-
/**
|
|
2226
|
+
/**
|
|
2227
|
+
* Product code selector (wildcard if omitted)
|
|
2228
|
+
* @maxLength 24
|
|
2229
|
+
* @example "PERSONAL_SAVINGS_V1"
|
|
2230
|
+
*/
|
|
2091
2231
|
productCode?: string;
|
|
2092
|
-
/**
|
|
2232
|
+
/**
|
|
2233
|
+
* Currency selector — ISO-4217 alpha code (wildcard if omitted)
|
|
2234
|
+
* @example "SYP"
|
|
2235
|
+
*/
|
|
2093
2236
|
currency?: string;
|
|
2094
|
-
/**
|
|
2237
|
+
/**
|
|
2238
|
+
* Branch code selector — 3-digit code (wildcard if omitted)
|
|
2239
|
+
* @example "001"
|
|
2240
|
+
*/
|
|
2095
2241
|
branchCode?: string;
|
|
2096
|
-
/**
|
|
2242
|
+
/**
|
|
2243
|
+
* Customer CIF selector — 8-digit CIF (wildcard if omitted)
|
|
2244
|
+
* @example "10000001"
|
|
2245
|
+
*/
|
|
2097
2246
|
customerCif?: string;
|
|
2098
|
-
/**
|
|
2247
|
+
/**
|
|
2248
|
+
* Channel selector (wildcard if omitted)
|
|
2249
|
+
* @maxLength 16
|
|
2250
|
+
* @example "MOBILE"
|
|
2251
|
+
*/
|
|
2099
2252
|
channel?: string;
|
|
2100
2253
|
/**
|
|
2101
2254
|
* Effect applied when the rule matches
|
|
@@ -2103,13 +2256,14 @@ export interface CreatePolicyRuleDto {
|
|
|
2103
2256
|
*/
|
|
2104
2257
|
effect: "ALLOW" | "DENY" | "LIMIT" | "REQUIRE_APPROVAL";
|
|
2105
2258
|
/**
|
|
2106
|
-
* Effect parameters as a JSON object (shape depends on
|
|
2107
|
-
* @example {"
|
|
2259
|
+
* Effect parameters as a JSON object (shape depends on effect: LIMIT → { max, countBy } or { min, max }; REQUIRE_APPROVAL → { prereq }; ALLOW/DENY → {})
|
|
2260
|
+
* @example {"max":5,"countBy":[]}
|
|
2108
2261
|
*/
|
|
2109
2262
|
params?: object;
|
|
2110
2263
|
/**
|
|
2111
|
-
* Evaluation priority (
|
|
2264
|
+
* Evaluation priority (lower number wins; defaults to 100)
|
|
2112
2265
|
* @min 1
|
|
2266
|
+
* @max 1000000
|
|
2113
2267
|
* @example 100
|
|
2114
2268
|
*/
|
|
2115
2269
|
priority?: number;
|
|
@@ -2127,24 +2281,46 @@ export interface CreatePolicyRuleDto {
|
|
|
2127
2281
|
export interface UpdatePolicyRuleDto {
|
|
2128
2282
|
/**
|
|
2129
2283
|
* Human-readable rule name
|
|
2284
|
+
* @maxLength 120
|
|
2130
2285
|
* @example "Block opening for sanctioned branches"
|
|
2131
2286
|
*/
|
|
2132
2287
|
name?: string;
|
|
2133
|
-
/**
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2288
|
+
/**
|
|
2289
|
+
* Owner type selector (wildcard if omitted)
|
|
2290
|
+
* @example "MERCHANT"
|
|
2291
|
+
*/
|
|
2292
|
+
ownerType?: "PERSONAL" | "MERCHANT" | "AGENT" | "INTERNAL";
|
|
2293
|
+
/**
|
|
2294
|
+
* Account type code selector — 3-digit TTT code (wildcard if omitted)
|
|
2295
|
+
* @example "110"
|
|
2296
|
+
*/
|
|
2138
2297
|
typeCode?: string;
|
|
2139
|
-
/**
|
|
2298
|
+
/**
|
|
2299
|
+
* Product code selector (wildcard if omitted)
|
|
2300
|
+
* @maxLength 24
|
|
2301
|
+
* @example "PERSONAL_SAVINGS_V1"
|
|
2302
|
+
*/
|
|
2140
2303
|
productCode?: string;
|
|
2141
|
-
/**
|
|
2304
|
+
/**
|
|
2305
|
+
* Currency selector — ISO-4217 alpha code (wildcard if omitted)
|
|
2306
|
+
* @example "SYP"
|
|
2307
|
+
*/
|
|
2142
2308
|
currency?: string;
|
|
2143
|
-
/**
|
|
2309
|
+
/**
|
|
2310
|
+
* Branch code selector — 3-digit code (wildcard if omitted)
|
|
2311
|
+
* @example "001"
|
|
2312
|
+
*/
|
|
2144
2313
|
branchCode?: string;
|
|
2145
|
-
/**
|
|
2314
|
+
/**
|
|
2315
|
+
* Customer CIF selector — 8-digit CIF (wildcard if omitted)
|
|
2316
|
+
* @example "10000001"
|
|
2317
|
+
*/
|
|
2146
2318
|
customerCif?: string;
|
|
2147
|
-
/**
|
|
2319
|
+
/**
|
|
2320
|
+
* Channel selector (wildcard if omitted)
|
|
2321
|
+
* @maxLength 16
|
|
2322
|
+
* @example "MOBILE"
|
|
2323
|
+
*/
|
|
2148
2324
|
channel?: string;
|
|
2149
2325
|
/**
|
|
2150
2326
|
* Effect applied when the rule matches
|
|
@@ -2152,13 +2328,14 @@ export interface UpdatePolicyRuleDto {
|
|
|
2152
2328
|
*/
|
|
2153
2329
|
effect?: "ALLOW" | "DENY" | "LIMIT" | "REQUIRE_APPROVAL";
|
|
2154
2330
|
/**
|
|
2155
|
-
* Effect parameters as a JSON object (shape depends on
|
|
2156
|
-
* @example {"
|
|
2331
|
+
* Effect parameters as a JSON object (shape depends on effect: LIMIT → { max, countBy } or { min, max }; REQUIRE_APPROVAL → { prereq }; ALLOW/DENY → {})
|
|
2332
|
+
* @example {"max":5,"countBy":[]}
|
|
2157
2333
|
*/
|
|
2158
2334
|
params?: object;
|
|
2159
2335
|
/**
|
|
2160
|
-
* Evaluation priority (
|
|
2336
|
+
* Evaluation priority (lower number wins)
|
|
2161
2337
|
* @min 1
|
|
2338
|
+
* @max 1000000
|
|
2162
2339
|
* @example 100
|
|
2163
2340
|
*/
|
|
2164
2341
|
priority?: number;
|
|
@@ -2194,6 +2371,125 @@ export interface SimulatePolicyRuleDto {
|
|
|
2194
2371
|
*/
|
|
2195
2372
|
subjects: object[];
|
|
2196
2373
|
}
|
|
2374
|
+
export interface AccountProductResponseDto {
|
|
2375
|
+
/**
|
|
2376
|
+
* Product code
|
|
2377
|
+
* @example "PERS-CURRENT"
|
|
2378
|
+
*/
|
|
2379
|
+
productCode: string;
|
|
2380
|
+
/**
|
|
2381
|
+
* Version (immutable once wallets reference it)
|
|
2382
|
+
* @example 1
|
|
2383
|
+
*/
|
|
2384
|
+
productVersion: number;
|
|
2385
|
+
/**
|
|
2386
|
+
* Account type (TTT) code
|
|
2387
|
+
* @example "100"
|
|
2388
|
+
*/
|
|
2389
|
+
typeCode: string;
|
|
2390
|
+
/**
|
|
2391
|
+
* Currencies a wallet of this product may be opened in
|
|
2392
|
+
* @example ["SYP","USD"]
|
|
2393
|
+
*/
|
|
2394
|
+
eligibleCurrencies: string[];
|
|
2395
|
+
/**
|
|
2396
|
+
* Feature flags inherited at creation
|
|
2397
|
+
* @example {"qr_static":true,"qr_dynamic":true,"cash_in":true}
|
|
2398
|
+
*/
|
|
2399
|
+
featureFlags: object;
|
|
2400
|
+
/**
|
|
2401
|
+
* Inactivity days before DORMANT (null = no dormancy)
|
|
2402
|
+
* @example 365
|
|
2403
|
+
*/
|
|
2404
|
+
dormancyDays: object | null;
|
|
2405
|
+
/**
|
|
2406
|
+
* Fee schedule code (null = none)
|
|
2407
|
+
* @example null
|
|
2408
|
+
*/
|
|
2409
|
+
feeScheduleCode: object | null;
|
|
2410
|
+
/** @example "ACTIVE" */
|
|
2411
|
+
status: "DRAFT" | "ACTIVE" | "GRANDFATHERED" | "RETIRED";
|
|
2412
|
+
/**
|
|
2413
|
+
* Admin who authored/last-edited the draft
|
|
2414
|
+
* @example "system"
|
|
2415
|
+
*/
|
|
2416
|
+
createdBy: string;
|
|
2417
|
+
/**
|
|
2418
|
+
* Admin who approved (activated) the version; "" = unapproved draft. Must differ from createdBy.
|
|
2419
|
+
* @example "system"
|
|
2420
|
+
*/
|
|
2421
|
+
approvedBy: string;
|
|
2422
|
+
/** @example "2026-06-15T00:00:00.000Z" */
|
|
2423
|
+
createdAt: string;
|
|
2424
|
+
/** @example "2026-06-15T00:00:00.000Z" */
|
|
2425
|
+
updatedAt: string;
|
|
2426
|
+
}
|
|
2427
|
+
export interface CreateAccountProductDto {
|
|
2428
|
+
/**
|
|
2429
|
+
* Unique product code — uppercase letters, digits, dashes.
|
|
2430
|
+
* @maxLength 24
|
|
2431
|
+
* @example "PERS-PREMIUM"
|
|
2432
|
+
*/
|
|
2433
|
+
productCode: string;
|
|
2434
|
+
/**
|
|
2435
|
+
* Account type (TTT) code this product instantiates, e.g. 100 = personal current.
|
|
2436
|
+
* @example "100"
|
|
2437
|
+
*/
|
|
2438
|
+
typeCode: string;
|
|
2439
|
+
/**
|
|
2440
|
+
* ISO-4217 currencies a wallet of this product may be opened in.
|
|
2441
|
+
* @example ["SYP","USD"]
|
|
2442
|
+
*/
|
|
2443
|
+
eligibleCurrencies: string[];
|
|
2444
|
+
/**
|
|
2445
|
+
* Feature flags { flag: boolean } a wallet inherits at creation.
|
|
2446
|
+
* @example {"qr_static":true,"qr_dynamic":true,"cash_in":true}
|
|
2447
|
+
*/
|
|
2448
|
+
featureFlags?: object;
|
|
2449
|
+
/**
|
|
2450
|
+
* Inactivity days before a wallet goes DORMANT. Omit for no dormancy.
|
|
2451
|
+
* @min 1
|
|
2452
|
+
* @max 36500
|
|
2453
|
+
* @example 365
|
|
2454
|
+
*/
|
|
2455
|
+
dormancyDays?: number;
|
|
2456
|
+
/**
|
|
2457
|
+
* Fee schedule code (reserved for the fee framework).
|
|
2458
|
+
* @maxLength 24
|
|
2459
|
+
* @example "STD-FEES"
|
|
2460
|
+
*/
|
|
2461
|
+
feeScheduleCode?: string;
|
|
2462
|
+
}
|
|
2463
|
+
export interface UpdateAccountProductDto {
|
|
2464
|
+
/**
|
|
2465
|
+
* Account type (TTT) code this product instantiates.
|
|
2466
|
+
* @example "100"
|
|
2467
|
+
*/
|
|
2468
|
+
typeCode: string;
|
|
2469
|
+
/**
|
|
2470
|
+
* ISO-4217 currencies a wallet of this product may be opened in.
|
|
2471
|
+
* @example ["SYP","USD"]
|
|
2472
|
+
*/
|
|
2473
|
+
eligibleCurrencies: string[];
|
|
2474
|
+
/**
|
|
2475
|
+
* Feature flags { flag: boolean } a wallet inherits at creation.
|
|
2476
|
+
* @example {"qr_static":true,"qr_dynamic":true,"cash_in":true}
|
|
2477
|
+
*/
|
|
2478
|
+
featureFlags?: object;
|
|
2479
|
+
/**
|
|
2480
|
+
* Inactivity days before DORMANT. Omit for no dormancy.
|
|
2481
|
+
* @min 1
|
|
2482
|
+
* @max 36500
|
|
2483
|
+
* @example 365
|
|
2484
|
+
*/
|
|
2485
|
+
dormancyDays?: number;
|
|
2486
|
+
/**
|
|
2487
|
+
* Fee schedule code (reserved for the fee framework).
|
|
2488
|
+
* @maxLength 24
|
|
2489
|
+
* @example "STD-FEES"
|
|
2490
|
+
*/
|
|
2491
|
+
feeScheduleCode?: string;
|
|
2492
|
+
}
|
|
2197
2493
|
export interface MerchantStatisticsResponseDto {
|
|
2198
2494
|
/**
|
|
2199
2495
|
* Total number of merchants
|
|
@@ -3216,6 +3512,71 @@ export interface UpdateCurrencyConfigDto {
|
|
|
3216
3512
|
/** Toggle whether the generator may issue new account numbers in this currency */
|
|
3217
3513
|
isActive?: boolean;
|
|
3218
3514
|
}
|
|
3515
|
+
export interface CountryResponseDto {
|
|
3516
|
+
/** @example "c0000000-0000-4000-a000-000000000001" */
|
|
3517
|
+
id: string;
|
|
3518
|
+
/** @example "SY" */
|
|
3519
|
+
code: string;
|
|
3520
|
+
name: LocalizedNameDto;
|
|
3521
|
+
/** @example true */
|
|
3522
|
+
isActive: boolean;
|
|
3523
|
+
}
|
|
3524
|
+
export interface CountryListResponseDto {
|
|
3525
|
+
countries: CountryResponseDto[];
|
|
3526
|
+
}
|
|
3527
|
+
export interface CreateCountryDto {
|
|
3528
|
+
/**
|
|
3529
|
+
* ISO 3166-1 alpha-2 code
|
|
3530
|
+
* @example "SY"
|
|
3531
|
+
*/
|
|
3532
|
+
code: string;
|
|
3533
|
+
name: LocalizedNameDto;
|
|
3534
|
+
/**
|
|
3535
|
+
* Whether the country is active (default true)
|
|
3536
|
+
* @example true
|
|
3537
|
+
*/
|
|
3538
|
+
isActive?: boolean;
|
|
3539
|
+
}
|
|
3540
|
+
export interface UpdateCountryDto {
|
|
3541
|
+
/**
|
|
3542
|
+
* ISO 3166-1 alpha-2 code
|
|
3543
|
+
* @example "SY"
|
|
3544
|
+
*/
|
|
3545
|
+
code?: string;
|
|
3546
|
+
name?: LocalizedNameDto;
|
|
3547
|
+
/** Toggle whether the country appears in the public list */
|
|
3548
|
+
isActive?: boolean;
|
|
3549
|
+
}
|
|
3550
|
+
export interface ProvinceResponseDto {
|
|
3551
|
+
/** @example "b0000000-0000-4000-a000-000000000001" */
|
|
3552
|
+
id: string;
|
|
3553
|
+
/** @example "c0000000-0000-4000-a000-000000000001" */
|
|
3554
|
+
countryId: string;
|
|
3555
|
+
name: LocalizedNameDto;
|
|
3556
|
+
/** @example true */
|
|
3557
|
+
isActive: boolean;
|
|
3558
|
+
}
|
|
3559
|
+
export interface ProvinceListResponseDto {
|
|
3560
|
+
provinces: ProvinceResponseDto[];
|
|
3561
|
+
}
|
|
3562
|
+
export interface CreateProvinceDto {
|
|
3563
|
+
/**
|
|
3564
|
+
* Parent country ID (UUID)
|
|
3565
|
+
* @example "c0000000-0000-4000-a000-000000000001"
|
|
3566
|
+
*/
|
|
3567
|
+
countryId: string;
|
|
3568
|
+
name: LocalizedNameDto;
|
|
3569
|
+
/**
|
|
3570
|
+
* Whether the province is active (default true)
|
|
3571
|
+
* @example true
|
|
3572
|
+
*/
|
|
3573
|
+
isActive?: boolean;
|
|
3574
|
+
}
|
|
3575
|
+
export interface UpdateProvinceDto {
|
|
3576
|
+
name?: LocalizedNameDto;
|
|
3577
|
+
/** Toggle whether the province is active */
|
|
3578
|
+
isActive?: boolean;
|
|
3579
|
+
}
|
|
3219
3580
|
export interface ApprovalDecisionResponseDto {
|
|
3220
3581
|
id: string;
|
|
3221
3582
|
adminId: string;
|
|
@@ -3474,7 +3835,7 @@ export interface FindAllParams6 {
|
|
|
3474
3835
|
*/
|
|
3475
3836
|
endDate?: string;
|
|
3476
3837
|
}
|
|
3477
|
-
export type
|
|
3838
|
+
export type FindAllResult1 = ActivityLogListResponseDto;
|
|
3478
3839
|
export interface FindAllParams8 {
|
|
3479
3840
|
/**
|
|
3480
3841
|
* Page number (1-based)
|
|
@@ -3497,7 +3858,7 @@ export interface FindAllParams8 {
|
|
|
3497
3858
|
*/
|
|
3498
3859
|
read?: boolean;
|
|
3499
3860
|
}
|
|
3500
|
-
export type
|
|
3861
|
+
export type FindAllResult2 = AdminNotificationListResponseDto;
|
|
3501
3862
|
export type GetUnreadCountData = any;
|
|
3502
3863
|
export interface MarkAsReadParams {
|
|
3503
3864
|
/** Notification ID */
|
|
@@ -3610,7 +3971,7 @@ export interface List2Params {
|
|
|
3610
3971
|
only_active: string;
|
|
3611
3972
|
}
|
|
3612
3973
|
export type List2Data = DocumentTypeResponseDto[];
|
|
3613
|
-
export type
|
|
3974
|
+
export type CreateOutput1 = any;
|
|
3614
3975
|
export interface ListVersionsParams {
|
|
3615
3976
|
code: string;
|
|
3616
3977
|
}
|
|
@@ -3833,25 +4194,33 @@ export interface UnfreezeParams {
|
|
|
3833
4194
|
id: string;
|
|
3834
4195
|
}
|
|
3835
4196
|
export type UnfreezeData = AdminAccountResponseDto;
|
|
3836
|
-
export type ListRuleKindsData =
|
|
4197
|
+
export type ListRuleKindsData = PolicyRuleKindResponseDto[];
|
|
3837
4198
|
export interface ListRulesParams {
|
|
3838
4199
|
ruleKind?: string;
|
|
3839
4200
|
decisionPoint?: string;
|
|
3840
4201
|
/** Filter by active state ("true"/"false") */
|
|
3841
4202
|
active?: string;
|
|
3842
4203
|
}
|
|
3843
|
-
export type ListRulesData =
|
|
3844
|
-
export type CreateRuleData =
|
|
4204
|
+
export type ListRulesData = PolicyRuleResponseDto[];
|
|
4205
|
+
export type CreateRuleData = PolicyRuleResponseDto;
|
|
3845
4206
|
export interface GetRuleParams {
|
|
3846
|
-
/**
|
|
4207
|
+
/**
|
|
4208
|
+
* Rule ID (UUID v4)
|
|
4209
|
+
* @format uuid
|
|
4210
|
+
* @example "10000000-0000-4000-8000-000000000006"
|
|
4211
|
+
*/
|
|
3847
4212
|
id: string;
|
|
3848
4213
|
}
|
|
3849
|
-
export type GetRuleData =
|
|
4214
|
+
export type GetRuleData = PolicyRuleResponseDto;
|
|
3850
4215
|
export interface UpdateRuleParams {
|
|
3851
|
-
/**
|
|
4216
|
+
/**
|
|
4217
|
+
* Rule ID (UUID v4)
|
|
4218
|
+
* @format uuid
|
|
4219
|
+
* @example "10000000-0000-4000-8000-000000000006"
|
|
4220
|
+
*/
|
|
3852
4221
|
id: string;
|
|
3853
4222
|
}
|
|
3854
|
-
export type UpdateRuleData =
|
|
4223
|
+
export type UpdateRuleData = PolicyRuleResponseDto;
|
|
3855
4224
|
export interface ApproveRuleParams {
|
|
3856
4225
|
/** Rule ID (UUID) */
|
|
3857
4226
|
id: string;
|
|
@@ -3871,6 +4240,55 @@ export interface ListDecisionsParams {
|
|
|
3871
4240
|
limit?: number;
|
|
3872
4241
|
}
|
|
3873
4242
|
export type ListDecisionsData = any;
|
|
4243
|
+
export interface ListParams2 {
|
|
4244
|
+
status?: "DRAFT" | "ACTIVE" | "GRANDFATHERED" | "RETIRED";
|
|
4245
|
+
/** @example "100" */
|
|
4246
|
+
typeCode?: string;
|
|
4247
|
+
/** @example "PERS-CURRENT" */
|
|
4248
|
+
productCode?: string;
|
|
4249
|
+
}
|
|
4250
|
+
export type ListResult = AccountProductResponseDto[];
|
|
4251
|
+
export type CreateOutput2 = AccountProductResponseDto;
|
|
4252
|
+
export interface GetParams2 {
|
|
4253
|
+
/** @example "PERS-CURRENT" */
|
|
4254
|
+
code: string;
|
|
4255
|
+
/** @example 1 */
|
|
4256
|
+
version: number;
|
|
4257
|
+
}
|
|
4258
|
+
export type GetResult = AccountProductResponseDto;
|
|
4259
|
+
export interface UpdateParams6 {
|
|
4260
|
+
/** @example "PERS-CURRENT" */
|
|
4261
|
+
code: string;
|
|
4262
|
+
/** @example 2 */
|
|
4263
|
+
version: number;
|
|
4264
|
+
}
|
|
4265
|
+
export type UpdateResult1 = AccountProductResponseDto;
|
|
4266
|
+
export interface PublishVersionParams {
|
|
4267
|
+
/** @example "PERS-CURRENT" */
|
|
4268
|
+
code: string;
|
|
4269
|
+
}
|
|
4270
|
+
export type PublishVersionData = AccountProductResponseDto;
|
|
4271
|
+
export interface ApproveParams2 {
|
|
4272
|
+
/** @example "PERS-CURRENT" */
|
|
4273
|
+
code: string;
|
|
4274
|
+
/** @example 2 */
|
|
4275
|
+
version: number;
|
|
4276
|
+
}
|
|
4277
|
+
export type ApproveResult = AccountProductResponseDto;
|
|
4278
|
+
export interface GrandfatherParams {
|
|
4279
|
+
/** @example "PERS-CURRENT" */
|
|
4280
|
+
code: string;
|
|
4281
|
+
/** @example 1 */
|
|
4282
|
+
version: number;
|
|
4283
|
+
}
|
|
4284
|
+
export type GrandfatherData = AccountProductResponseDto;
|
|
4285
|
+
export interface RetireParams {
|
|
4286
|
+
/** @example "PERS-CURRENT" */
|
|
4287
|
+
code: string;
|
|
4288
|
+
/** @example 1 */
|
|
4289
|
+
version: number;
|
|
4290
|
+
}
|
|
4291
|
+
export type RetireData = AccountProductResponseDto;
|
|
3874
4292
|
export type GetStatisticsOutput = MerchantStatisticsResponseDto;
|
|
3875
4293
|
export interface ListMerchantsParams {
|
|
3876
4294
|
/**
|
|
@@ -3925,17 +4343,17 @@ export interface UpdateMerchantStatusParams {
|
|
|
3925
4343
|
id: string;
|
|
3926
4344
|
}
|
|
3927
4345
|
export type UpdateMerchantStatusData = MerchantResponseDto;
|
|
3928
|
-
export interface
|
|
4346
|
+
export interface ListParams4 {
|
|
3929
4347
|
/** Return only active categories */
|
|
3930
4348
|
onlyActive?: boolean;
|
|
3931
4349
|
}
|
|
3932
|
-
export type
|
|
3933
|
-
export type
|
|
3934
|
-
export interface
|
|
4350
|
+
export type ListOutput = MerchantCategoriesListResponseDto;
|
|
4351
|
+
export type CreateResult1 = MerchantCategoryResponseDto;
|
|
4352
|
+
export interface UpdateParams8 {
|
|
3935
4353
|
/** 4-digit MCC code */
|
|
3936
4354
|
code: string;
|
|
3937
4355
|
}
|
|
3938
|
-
export type
|
|
4356
|
+
export type UpdateData1 = MerchantCategoryResponseDto;
|
|
3939
4357
|
export interface GetStatisticsParams3 {
|
|
3940
4358
|
/** Start date filter (ISO date, e.g. 2025-01-01) */
|
|
3941
4359
|
startDate?: string;
|
|
@@ -3944,7 +4362,7 @@ export interface GetStatisticsParams3 {
|
|
|
3944
4362
|
/** Filter by currency */
|
|
3945
4363
|
currency?: "SYP" | "USD" | "EUR";
|
|
3946
4364
|
}
|
|
3947
|
-
export type
|
|
4365
|
+
export type GetStatisticsResult1 = TransactionStatisticsResponseDto;
|
|
3948
4366
|
export interface ListTransactionsParams {
|
|
3949
4367
|
/** Search by transaction ID or public transaction ID */
|
|
3950
4368
|
search?: string;
|
|
@@ -3980,7 +4398,7 @@ export type GetTransactionDetailError = ErrorResponseDto;
|
|
|
3980
4398
|
export type SendGlobalNotificationData = SendGlobalNotificationResponseDto;
|
|
3981
4399
|
export type SendGlobalNotificationError = ErrorResponseDto;
|
|
3982
4400
|
export type CreateResult2 = ScheduledNotificationResponseDto;
|
|
3983
|
-
export type
|
|
4401
|
+
export type CreateBadResponse = ErrorResponseDto;
|
|
3984
4402
|
export interface FindAllParams10 {
|
|
3985
4403
|
/** Filter by status */
|
|
3986
4404
|
status?: "pending" | "sent" | "failed" | "cancelled";
|
|
@@ -4003,12 +4421,12 @@ export interface FindOneParams {
|
|
|
4003
4421
|
}
|
|
4004
4422
|
export type FindOneData = ScheduledNotificationResponseDto;
|
|
4005
4423
|
export type FindOneError = ErrorResponseDto;
|
|
4006
|
-
export interface
|
|
4424
|
+
export interface UpdateParams10 {
|
|
4007
4425
|
/** MongoDB ObjectId */
|
|
4008
4426
|
id: string;
|
|
4009
4427
|
}
|
|
4010
4428
|
export type UpdateOutput1 = ScheduledNotificationResponseDto;
|
|
4011
|
-
export type
|
|
4429
|
+
export type UpdateBadResponse = ErrorResponseDto;
|
|
4012
4430
|
export interface RemoveParams2 {
|
|
4013
4431
|
/** MongoDB ObjectId */
|
|
4014
4432
|
id: string;
|
|
@@ -4070,13 +4488,13 @@ export interface DeleteDocumentParams {
|
|
|
4070
4488
|
}
|
|
4071
4489
|
export type DeleteDocumentData = any;
|
|
4072
4490
|
export type DeleteDocumentError = ErrorResponseDto;
|
|
4073
|
-
export type
|
|
4491
|
+
export type ListResult1 = AppVersionPolicyListResponseDto;
|
|
4074
4492
|
export type UpsertData = AppVersionPolicyDto;
|
|
4075
|
-
export interface
|
|
4493
|
+
export interface GetParams4 {
|
|
4076
4494
|
platform: "ios" | "android";
|
|
4077
4495
|
}
|
|
4078
|
-
export type
|
|
4079
|
-
export type
|
|
4496
|
+
export type GetOutput = AppVersionPolicyDto;
|
|
4497
|
+
export type GetStatisticsResult2 = UserStatisticsResponseDto;
|
|
4080
4498
|
export interface FindAllParams12 {
|
|
4081
4499
|
/**
|
|
4082
4500
|
* Page number (1-based)
|
|
@@ -4124,7 +4542,7 @@ export interface FindAllParams12 {
|
|
|
4124
4542
|
*/
|
|
4125
4543
|
query?: string;
|
|
4126
4544
|
}
|
|
4127
|
-
export type
|
|
4545
|
+
export type FindAllResult3 = PersonListResponseDto;
|
|
4128
4546
|
export interface ExportUsersParams {
|
|
4129
4547
|
/**
|
|
4130
4548
|
* Field to sort by
|
|
@@ -4169,7 +4587,7 @@ export interface FindByIdParams6 {
|
|
|
4169
4587
|
/** Person ID (UUID) */
|
|
4170
4588
|
id: string;
|
|
4171
4589
|
}
|
|
4172
|
-
export type
|
|
4590
|
+
export type FindByIdData1 = PersonDetailDto;
|
|
4173
4591
|
export interface UpdatePersonStatusParams {
|
|
4174
4592
|
/** Person ID (UUID) */
|
|
4175
4593
|
id: string;
|
|
@@ -4209,46 +4627,46 @@ export interface FindAllParams14 {
|
|
|
4209
4627
|
*/
|
|
4210
4628
|
endDate?: string;
|
|
4211
4629
|
}
|
|
4212
|
-
export type
|
|
4630
|
+
export type FindAllData2 = DlqMessageListResponseDto;
|
|
4213
4631
|
export type PendingByTopicData = DlqPendingByTopicResponseDto[];
|
|
4214
4632
|
export interface FindByIdParams8 {
|
|
4215
4633
|
id: string;
|
|
4216
4634
|
}
|
|
4217
|
-
export type
|
|
4635
|
+
export type FindByIdData2 = DlqMessageResponseDto;
|
|
4218
4636
|
export interface ResolveParams {
|
|
4219
4637
|
id: string;
|
|
4220
4638
|
}
|
|
4221
4639
|
export type ResolveData = DlqMessageResponseDto;
|
|
4222
|
-
export interface
|
|
4640
|
+
export interface ListParams7 {
|
|
4223
4641
|
/** Return only active branches */
|
|
4224
4642
|
onlyActive?: boolean;
|
|
4225
4643
|
}
|
|
4226
4644
|
export type ListOutput1 = BankBranchesListResponseDto;
|
|
4227
|
-
export type
|
|
4645
|
+
export type CreateData1 = BankBranchResponseDto;
|
|
4228
4646
|
export interface GetByCodeParams {
|
|
4229
4647
|
/** 3-digit branch code */
|
|
4230
4648
|
code: string;
|
|
4231
4649
|
}
|
|
4232
4650
|
export type GetByCodeData = BankBranchResponseDto;
|
|
4233
|
-
export interface
|
|
4651
|
+
export interface UpdateParams12 {
|
|
4234
4652
|
/** 3-digit branch code */
|
|
4235
4653
|
code: string;
|
|
4236
4654
|
}
|
|
4237
|
-
export type
|
|
4238
|
-
export interface
|
|
4655
|
+
export type UpdateData2 = BankBranchResponseDto;
|
|
4656
|
+
export interface ListParams9 {
|
|
4239
4657
|
onlyActive?: boolean;
|
|
4240
4658
|
}
|
|
4241
|
-
export type
|
|
4242
|
-
export interface
|
|
4659
|
+
export type ListOutput2 = AccountTypesListResponseDto;
|
|
4660
|
+
export interface UpdateParams14 {
|
|
4243
4661
|
/** 2-digit account-type code */
|
|
4244
4662
|
code: string;
|
|
4245
4663
|
}
|
|
4246
4664
|
export type UpdateResult2 = AccountTypeResponseDto;
|
|
4247
|
-
export interface
|
|
4665
|
+
export interface ListParams11 {
|
|
4248
4666
|
onlyActive?: boolean;
|
|
4249
4667
|
}
|
|
4250
|
-
export type
|
|
4251
|
-
export type
|
|
4668
|
+
export type ListResult2 = CurrencyConfigListResponseDto;
|
|
4669
|
+
export type CreateData2 = CurrencyConfigResponseDto;
|
|
4252
4670
|
export interface GetByCodeParams2 {
|
|
4253
4671
|
/** ISO 4217 alpha-3 code (e.g. USD) */
|
|
4254
4672
|
code: string;
|
|
@@ -4258,12 +4676,30 @@ export interface DeleteParams6 {
|
|
|
4258
4676
|
/** ISO 4217 alpha-3 code */
|
|
4259
4677
|
code: string;
|
|
4260
4678
|
}
|
|
4261
|
-
export type
|
|
4262
|
-
export interface
|
|
4679
|
+
export type DeleteOutput1 = any;
|
|
4680
|
+
export interface UpdateParams16 {
|
|
4263
4681
|
/** ISO 4217 alpha-3 code */
|
|
4264
4682
|
code: string;
|
|
4265
4683
|
}
|
|
4266
|
-
export type
|
|
4684
|
+
export type UpdateData3 = CurrencyConfigResponseDto;
|
|
4685
|
+
export type ListResult3 = CountryListResponseDto;
|
|
4686
|
+
export type CreateResult3 = CountryResponseDto;
|
|
4687
|
+
export interface UpdateParams18 {
|
|
4688
|
+
/** Country UUID */
|
|
4689
|
+
id: string;
|
|
4690
|
+
}
|
|
4691
|
+
export type UpdateData4 = CountryResponseDto;
|
|
4692
|
+
export interface List2Params2 {
|
|
4693
|
+
/** Country UUID */
|
|
4694
|
+
countryId?: string;
|
|
4695
|
+
}
|
|
4696
|
+
export type List2Result = ProvinceListResponseDto;
|
|
4697
|
+
export type Create2Result = ProvinceResponseDto;
|
|
4698
|
+
export interface Update2Params {
|
|
4699
|
+
/** Province UUID */
|
|
4700
|
+
id: string;
|
|
4701
|
+
}
|
|
4702
|
+
export type Update2Data = ProvinceResponseDto;
|
|
4267
4703
|
export interface ListRequestsParams {
|
|
4268
4704
|
/** Filter by status */
|
|
4269
4705
|
status?: "PENDING" | "APPROVED" | "EXECUTED" | "FAILED" | "REJECTED" | "EXPIRED" | "CANCELLED";
|
|
@@ -4298,10 +4734,10 @@ export interface CancelParams {
|
|
|
4298
4734
|
id: string;
|
|
4299
4735
|
}
|
|
4300
4736
|
export type CancelData = ApprovalRequestResponseDto;
|
|
4301
|
-
export type
|
|
4302
|
-
export interface
|
|
4737
|
+
export type ListData1 = ApprovalPolicyResponseDto[];
|
|
4738
|
+
export interface UpdateParams20 {
|
|
4303
4739
|
actionType: "admin.create" | "admin.update" | "admin.delete" | "admin.status_update" | "system_config.upsert" | "system_config.delete" | "account.fund" | "role.assign_permissions" | "reconciliation.run";
|
|
4304
4740
|
}
|
|
4305
|
-
export type
|
|
4741
|
+
export type UpdateResult3 = ApprovalPolicyResponseDto;
|
|
4306
4742
|
export type IndexData = any;
|
|
4307
4743
|
//# sourceMappingURL=data-contracts.d.ts.map
|