@tammsyr/admin-api-client 1.3.5 → 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.
@@ -1083,10 +1083,10 @@ export interface PersonAddressDto {
1083
1083
  */
1084
1084
  province: object;
1085
1085
  /**
1086
- * City name (translatable)
1087
- * @example {"ar":"دمشق","en":"Damascus"}
1086
+ * City / town (free text entered by the user)
1087
+ * @example "Mazzeh"
1088
1088
  */
1089
- city?: object;
1089
+ city: string;
1090
1090
  /** @example "123 Main Street" */
1091
1091
  detailedAddress: string;
1092
1092
  }
@@ -2114,11 +2114,6 @@ export interface PolicyRuleResponseDto {
2114
2114
  * @example "Agent wallet opening requires approval"
2115
2115
  */
2116
2116
  name: string;
2117
- /**
2118
- * SELECTOR — customer party type. `""` = wildcard (any party type). Example values: INDIVIDUAL, BUSINESS.
2119
- * @example ""
2120
- */
2121
- partyType: string;
2122
2117
  /**
2123
2118
  * SELECTOR — wallet owner type. `""` = wildcard. One of: PERSONAL, MERCHANT, AGENT, INTERNAL. Here the rule only matches AGENT-owned wallets.
2124
2119
  * @example "AGENT"
@@ -2218,12 +2213,6 @@ export interface CreatePolicyRuleDto {
2218
2213
  * @example "Block opening for sanctioned branches"
2219
2214
  */
2220
2215
  name: string;
2221
- /**
2222
- * Party type selector (wildcard if omitted)
2223
- * @maxLength 12
2224
- * @example "INDIVIDUAL"
2225
- */
2226
- partyType?: string;
2227
2216
  /**
2228
2217
  * Owner type selector (wildcard if omitted)
2229
2218
  * @example "MERCHANT"
@@ -2296,12 +2285,6 @@ export interface UpdatePolicyRuleDto {
2296
2285
  * @example "Block opening for sanctioned branches"
2297
2286
  */
2298
2287
  name?: string;
2299
- /**
2300
- * Party type selector (wildcard if omitted)
2301
- * @maxLength 12
2302
- * @example "INDIVIDUAL"
2303
- */
2304
- partyType?: string;
2305
2288
  /**
2306
2289
  * Owner type selector (wildcard if omitted)
2307
2290
  * @example "MERCHANT"
@@ -2414,11 +2397,6 @@ export interface AccountProductResponseDto {
2414
2397
  * @example {"qr_static":true,"qr_dynamic":true,"cash_in":true}
2415
2398
  */
2416
2399
  featureFlags: object;
2417
- /**
2418
- * Authoring view of default limits
2419
- * @example {}
2420
- */
2421
- limitDefaults: object;
2422
2400
  /**
2423
2401
  * Inactivity days before DORMANT (null = no dormancy)
2424
2402
  * @example 365
@@ -2468,11 +2446,6 @@ export interface CreateAccountProductDto {
2468
2446
  * @example {"qr_static":true,"qr_dynamic":true,"cash_in":true}
2469
2447
  */
2470
2448
  featureFlags?: object;
2471
- /**
2472
- * Authoring view of default limits (the runtime source of truth is the rules engine).
2473
- * @example {"DAILY_TRANSFER":"5000000"}
2474
- */
2475
- limitDefaults?: object;
2476
2449
  /**
2477
2450
  * Inactivity days before a wallet goes DORMANT. Omit for no dormancy.
2478
2451
  * @min 1
@@ -2503,11 +2476,6 @@ export interface UpdateAccountProductDto {
2503
2476
  * @example {"qr_static":true,"qr_dynamic":true,"cash_in":true}
2504
2477
  */
2505
2478
  featureFlags?: object;
2506
- /**
2507
- * Authoring view of default limits.
2508
- * @example {"DAILY_TRANSFER":"5000000"}
2509
- */
2510
- limitDefaults?: object;
2511
2479
  /**
2512
2480
  * Inactivity days before DORMANT. Omit for no dormancy.
2513
2481
  * @min 1
@@ -3544,6 +3512,71 @@ export interface UpdateCurrencyConfigDto {
3544
3512
  /** Toggle whether the generator may issue new account numbers in this currency */
3545
3513
  isActive?: boolean;
3546
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
+ }
3547
3580
  export interface ApprovalDecisionResponseDto {
3548
3581
  id: string;
3549
3582
  adminId: string;
@@ -3938,7 +3971,7 @@ export interface List2Params {
3938
3971
  only_active: string;
3939
3972
  }
3940
3973
  export type List2Data = DocumentTypeResponseDto[];
3941
- export type CreateData1 = any;
3974
+ export type CreateOutput1 = any;
3942
3975
  export interface ListVersionsParams {
3943
3976
  code: string;
3944
3977
  }
@@ -4215,7 +4248,7 @@ export interface ListParams2 {
4215
4248
  productCode?: string;
4216
4249
  }
4217
4250
  export type ListResult = AccountProductResponseDto[];
4218
- export type CreateResult1 = AccountProductResponseDto;
4251
+ export type CreateOutput2 = AccountProductResponseDto;
4219
4252
  export interface GetParams2 {
4220
4253
  /** @example "PERS-CURRENT" */
4221
4254
  code: string;
@@ -4229,7 +4262,7 @@ export interface UpdateParams6 {
4229
4262
  /** @example 2 */
4230
4263
  version: number;
4231
4264
  }
4232
- export type UpdateData1 = AccountProductResponseDto;
4265
+ export type UpdateResult1 = AccountProductResponseDto;
4233
4266
  export interface PublishVersionParams {
4234
4267
  /** @example "PERS-CURRENT" */
4235
4268
  code: string;
@@ -4315,12 +4348,12 @@ export interface ListParams4 {
4315
4348
  onlyActive?: boolean;
4316
4349
  }
4317
4350
  export type ListOutput = MerchantCategoriesListResponseDto;
4318
- export type CreateResult2 = MerchantCategoryResponseDto;
4351
+ export type CreateResult1 = MerchantCategoryResponseDto;
4319
4352
  export interface UpdateParams8 {
4320
4353
  /** 4-digit MCC code */
4321
4354
  code: string;
4322
4355
  }
4323
- export type UpdateResult1 = MerchantCategoryResponseDto;
4356
+ export type UpdateData1 = MerchantCategoryResponseDto;
4324
4357
  export interface GetStatisticsParams3 {
4325
4358
  /** Start date filter (ISO date, e.g. 2025-01-01) */
4326
4359
  startDate?: string;
@@ -4329,7 +4362,7 @@ export interface GetStatisticsParams3 {
4329
4362
  /** Filter by currency */
4330
4363
  currency?: "SYP" | "USD" | "EUR";
4331
4364
  }
4332
- export type GetStatisticsOutput1 = TransactionStatisticsResponseDto;
4365
+ export type GetStatisticsResult1 = TransactionStatisticsResponseDto;
4333
4366
  export interface ListTransactionsParams {
4334
4367
  /** Search by transaction ID or public transaction ID */
4335
4368
  search?: string;
@@ -4364,7 +4397,7 @@ export type GetTransactionDetailData = AdminTransactionDetailResponseDto;
4364
4397
  export type GetTransactionDetailError = ErrorResponseDto;
4365
4398
  export type SendGlobalNotificationData = SendGlobalNotificationResponseDto;
4366
4399
  export type SendGlobalNotificationError = ErrorResponseDto;
4367
- export type CreateResult3 = ScheduledNotificationResponseDto;
4400
+ export type CreateResult2 = ScheduledNotificationResponseDto;
4368
4401
  export type CreateBadResponse = ErrorResponseDto;
4369
4402
  export interface FindAllParams10 {
4370
4403
  /** Filter by status */
@@ -4381,7 +4414,7 @@ export interface FindAllParams10 {
4381
4414
  */
4382
4415
  limit?: number;
4383
4416
  }
4384
- export type FindAllResult3 = ScheduledNotificationsListResponseDto;
4417
+ export type FindAllData1 = ScheduledNotificationsListResponseDto;
4385
4418
  export interface FindOneParams {
4386
4419
  /** MongoDB ObjectId */
4387
4420
  id: string;
@@ -4392,7 +4425,7 @@ export interface UpdateParams10 {
4392
4425
  /** MongoDB ObjectId */
4393
4426
  id: string;
4394
4427
  }
4395
- export type UpdateData2 = ScheduledNotificationResponseDto;
4428
+ export type UpdateOutput1 = ScheduledNotificationResponseDto;
4396
4429
  export type UpdateBadResponse = ErrorResponseDto;
4397
4430
  export interface RemoveParams2 {
4398
4431
  /** MongoDB ObjectId */
@@ -4461,7 +4494,7 @@ export interface GetParams4 {
4461
4494
  platform: "ios" | "android";
4462
4495
  }
4463
4496
  export type GetOutput = AppVersionPolicyDto;
4464
- export type GetStatisticsOutput2 = UserStatisticsResponseDto;
4497
+ export type GetStatisticsResult2 = UserStatisticsResponseDto;
4465
4498
  export interface FindAllParams12 {
4466
4499
  /**
4467
4500
  * Page number (1-based)
@@ -4509,7 +4542,7 @@ export interface FindAllParams12 {
4509
4542
  */
4510
4543
  query?: string;
4511
4544
  }
4512
- export type FindAllData1 = PersonListResponseDto;
4545
+ export type FindAllResult3 = PersonListResponseDto;
4513
4546
  export interface ExportUsersParams {
4514
4547
  /**
4515
4548
  * Field to sort by
@@ -4554,7 +4587,7 @@ export interface FindByIdParams6 {
4554
4587
  /** Person ID (UUID) */
4555
4588
  id: string;
4556
4589
  }
4557
- export type FindByIdResult1 = PersonDetailDto;
4590
+ export type FindByIdData1 = PersonDetailDto;
4558
4591
  export interface UpdatePersonStatusParams {
4559
4592
  /** Person ID (UUID) */
4560
4593
  id: string;
@@ -4594,12 +4627,12 @@ export interface FindAllParams14 {
4594
4627
  */
4595
4628
  endDate?: string;
4596
4629
  }
4597
- export type FindAllResult4 = DlqMessageListResponseDto;
4630
+ export type FindAllData2 = DlqMessageListResponseDto;
4598
4631
  export type PendingByTopicData = DlqPendingByTopicResponseDto[];
4599
4632
  export interface FindByIdParams8 {
4600
4633
  id: string;
4601
4634
  }
4602
- export type FindByIdResult2 = DlqMessageResponseDto;
4635
+ export type FindByIdData2 = DlqMessageResponseDto;
4603
4636
  export interface ResolveParams {
4604
4637
  id: string;
4605
4638
  }
@@ -4608,8 +4641,8 @@ export interface ListParams7 {
4608
4641
  /** Return only active branches */
4609
4642
  onlyActive?: boolean;
4610
4643
  }
4611
- export type ListResult2 = BankBranchesListResponseDto;
4612
- export type CreateResult4 = BankBranchResponseDto;
4644
+ export type ListOutput1 = BankBranchesListResponseDto;
4645
+ export type CreateData1 = BankBranchResponseDto;
4613
4646
  export interface GetByCodeParams {
4614
4647
  /** 3-digit branch code */
4615
4648
  code: string;
@@ -4619,21 +4652,21 @@ export interface UpdateParams12 {
4619
4652
  /** 3-digit branch code */
4620
4653
  code: string;
4621
4654
  }
4622
- export type UpdateResult2 = BankBranchResponseDto;
4655
+ export type UpdateData2 = BankBranchResponseDto;
4623
4656
  export interface ListParams9 {
4624
4657
  onlyActive?: boolean;
4625
4658
  }
4626
- export type ListOutput1 = AccountTypesListResponseDto;
4659
+ export type ListOutput2 = AccountTypesListResponseDto;
4627
4660
  export interface UpdateParams14 {
4628
4661
  /** 2-digit account-type code */
4629
4662
  code: string;
4630
4663
  }
4631
- export type UpdateOutput1 = AccountTypeResponseDto;
4664
+ export type UpdateResult2 = AccountTypeResponseDto;
4632
4665
  export interface ListParams11 {
4633
4666
  onlyActive?: boolean;
4634
4667
  }
4635
- export type ListResult3 = CurrencyConfigListResponseDto;
4636
- export type CreateOutput1 = CurrencyConfigResponseDto;
4668
+ export type ListResult2 = CurrencyConfigListResponseDto;
4669
+ export type CreateData2 = CurrencyConfigResponseDto;
4637
4670
  export interface GetByCodeParams2 {
4638
4671
  /** ISO 4217 alpha-3 code (e.g. USD) */
4639
4672
  code: string;
@@ -4643,12 +4676,30 @@ export interface DeleteParams6 {
4643
4676
  /** ISO 4217 alpha-3 code */
4644
4677
  code: string;
4645
4678
  }
4646
- export type DeleteResult1 = any;
4679
+ export type DeleteOutput1 = any;
4647
4680
  export interface UpdateParams16 {
4648
4681
  /** ISO 4217 alpha-3 code */
4649
4682
  code: string;
4650
4683
  }
4651
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;
4652
4703
  export interface ListRequestsParams {
4653
4704
  /** Filter by status */
4654
4705
  status?: "PENDING" | "APPROVED" | "EXECUTED" | "FAILED" | "REJECTED" | "EXPIRED" | "CANCELLED";
@@ -4683,10 +4734,10 @@ export interface CancelParams {
4683
4734
  id: string;
4684
4735
  }
4685
4736
  export type CancelData = ApprovalRequestResponseDto;
4686
- export type ListResult4 = ApprovalPolicyResponseDto[];
4687
- export interface UpdateParams18 {
4737
+ export type ListData1 = ApprovalPolicyResponseDto[];
4738
+ export interface UpdateParams20 {
4688
4739
  actionType: "admin.create" | "admin.update" | "admin.delete" | "admin.status_update" | "system_config.upsert" | "system_config.delete" | "account.fund" | "role.assign_permissions" | "reconciliation.run";
4689
4740
  }
4690
- export type UpdateOutput2 = ApprovalPolicyResponseDto;
4741
+ export type UpdateResult3 = ApprovalPolicyResponseDto;
4691
4742
  export type IndexData = any;
4692
4743
  //# sourceMappingURL=data-contracts.d.ts.map