@tammsyr/admin-api-client 1.0.3 → 1.0.5

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.
@@ -575,20 +575,393 @@ export interface AdminNotificationListResponseDto {
575
575
  /** Pagination metadata */
576
576
  meta: PaginationMetaDto;
577
577
  }
578
- export type CreateAgentDto = object;
579
- export type UpdateAgentDto = object;
580
- export type UpdateAgentStatusDto = object;
581
- export type SetLimitDto = object;
582
- export type SetLimitsDto = object;
583
- export type CreateCommissionDto = object;
584
- export type UpdateCommissionDto = object;
585
- export type CreateBranchDto = object;
586
- export type UpdateBranchDto = object;
587
- export type UpdateBranchStatusDto = object;
588
- export type CreateSettlementDto = object;
589
- export type UpdateSettlementStatusDto = object;
590
- export type UpdateSettlementAmountsDto = object;
591
- export type AddAdjustmentDto = object;
578
+ export interface AgentStatisticsDto {
579
+ /** Total number of agents */
580
+ totalAgents: number;
581
+ /** Number of active agents */
582
+ activeAgents: number;
583
+ /** Number of suspended agents */
584
+ suspendedAgents: number;
585
+ /** Total number of branches across all agents */
586
+ totalBranches: number;
587
+ }
588
+ export interface AgentLimitResponseDto {
589
+ /**
590
+ * Limit ID
591
+ * @format uuid
592
+ */
593
+ id: string;
594
+ /**
595
+ * Agent ID
596
+ * @format uuid
597
+ */
598
+ agentId: string;
599
+ /** Limit type */
600
+ limitType: "DAILY_AMOUNT" | "DAILY_COUNT" | "SINGLE_TX";
601
+ /** Currency */
602
+ currency: "SYP" | "USD" | "EUR";
603
+ /** Limit amount */
604
+ amount: string;
605
+ /** Whether limit is active */
606
+ isActive: boolean;
607
+ /**
608
+ * Created at
609
+ * @format date-time
610
+ */
611
+ createdAt: string;
612
+ /**
613
+ * Updated at
614
+ * @format date-time
615
+ */
616
+ updatedAt: string;
617
+ }
618
+ export interface AgentCommissionResponseDto {
619
+ /**
620
+ * Commission ID
621
+ * @format uuid
622
+ */
623
+ id: string;
624
+ /**
625
+ * Agent ID
626
+ * @format uuid
627
+ */
628
+ agentId: string;
629
+ /** Commission name */
630
+ name: string;
631
+ /** Commission type */
632
+ commissionType: string;
633
+ /** Currency */
634
+ currency: "SYP" | "USD" | "EUR";
635
+ /** Minimum amount */
636
+ minAmount: string;
637
+ /** Maximum amount */
638
+ maxAmount?: string;
639
+ /** Commission value */
640
+ value: string;
641
+ /** Whether commission is active */
642
+ isActive: boolean;
643
+ /**
644
+ * Created at
645
+ * @format date-time
646
+ */
647
+ createdAt: string;
648
+ /**
649
+ * Updated at
650
+ * @format date-time
651
+ */
652
+ updatedAt: string;
653
+ }
654
+ export interface BranchResponseDto {
655
+ /**
656
+ * Branch ID
657
+ * @format uuid
658
+ */
659
+ id: string;
660
+ /**
661
+ * Agent ID
662
+ * @format uuid
663
+ */
664
+ agentId: string;
665
+ /** Branch name */
666
+ name: string;
667
+ /** Branch code */
668
+ code: string;
669
+ /** Branch status */
670
+ status: "ACTIVE" | "INACTIVE" | "SUSPENDED";
671
+ /** Address */
672
+ address: string;
673
+ /** City */
674
+ city: string;
675
+ /** Latitude */
676
+ latitude: number;
677
+ /** Longitude */
678
+ longitude: number;
679
+ /** Contact phone */
680
+ contactPhone: string;
681
+ /** Contact email */
682
+ contactEmail?: string;
683
+ /** Whether the branch is active */
684
+ isActive: boolean;
685
+ /**
686
+ * Created at
687
+ * @format date-time
688
+ */
689
+ createdAt: string;
690
+ /**
691
+ * Updated at
692
+ * @format date-time
693
+ */
694
+ updatedAt: string;
695
+ }
696
+ export interface AgentResponseDto {
697
+ /** @format uuid */
698
+ id: string;
699
+ type: "MONEY_TRANSFER" | "EXCHANGE_BUREAU" | "BANK";
700
+ status: "PENDING" | "ACTIVE" | "SUSPENDED" | "TERMINATED";
701
+ name: string;
702
+ licenseNumber: string;
703
+ contactPerson: string;
704
+ contactEmail: string;
705
+ contactPhone: string;
706
+ address: string;
707
+ city: string;
708
+ /** @format date-time */
709
+ createdAt: string;
710
+ /** @format date-time */
711
+ updatedAt: string;
712
+ /** @example 3 */
713
+ branchCount: number;
714
+ limits?: AgentLimitResponseDto[];
715
+ commissions?: AgentCommissionResponseDto[];
716
+ branches?: BranchResponseDto[];
717
+ }
718
+ export interface AgentListResponseDto {
719
+ /** List of agents */
720
+ agents: AgentResponseDto[];
721
+ /** Total count */
722
+ total: number;
723
+ /** Current page */
724
+ page: number;
725
+ /** Items per page */
726
+ limit: number;
727
+ }
728
+ export interface CreateAgentDto {
729
+ /**
730
+ * Agent name
731
+ * @example "Acme Agent"
732
+ */
733
+ name: string;
734
+ /** @example "MONEY_TRANSFER" */
735
+ type: "MONEY_TRANSFER" | "EXCHANGE_BUREAU" | "BANK";
736
+ /**
737
+ * License number
738
+ * @example "MT-2024-001"
739
+ */
740
+ licenseNumber: string;
741
+ /** @default "ACTIVE" */
742
+ status?: "PENDING" | "ACTIVE" | "SUSPENDED" | "TERMINATED";
743
+ /**
744
+ * Contact person full name
745
+ * @example "John Doe"
746
+ */
747
+ contactPerson: string;
748
+ /** @example "agent@acme.com" */
749
+ contactEmail: string;
750
+ /** @example "+1-800-123-4567" */
751
+ contactPhone: string;
752
+ /**
753
+ * Street address
754
+ * @example "123 Main St"
755
+ */
756
+ address: string;
757
+ /**
758
+ * City
759
+ * @example "Dubai"
760
+ */
761
+ city: string;
762
+ }
763
+ export interface CreateAgentResponseDto {
764
+ /**
765
+ * Success message
766
+ * @example "Agent created successfully"
767
+ */
768
+ message: string;
769
+ /**
770
+ * Created agent ID
771
+ * @format uuid
772
+ */
773
+ id: string;
774
+ /** Agent name */
775
+ name: string;
776
+ }
777
+ export interface UpdateAgentDto {
778
+ /**
779
+ * Agent name
780
+ * @example "Acme Agent"
781
+ */
782
+ name?: string;
783
+ /** @example "MONEY_TRANSFER" */
784
+ type?: "MONEY_TRANSFER" | "EXCHANGE_BUREAU" | "BANK";
785
+ /**
786
+ * License number
787
+ * @example "MT-2024-001"
788
+ */
789
+ licenseNumber?: string;
790
+ /** @default "ACTIVE" */
791
+ status?: "PENDING" | "ACTIVE" | "SUSPENDED" | "TERMINATED";
792
+ /**
793
+ * Contact person full name
794
+ * @example "John Doe"
795
+ */
796
+ contactPerson?: string;
797
+ /** @example "agent@acme.com" */
798
+ contactEmail?: string;
799
+ /** @example "+1-800-123-4567" */
800
+ contactPhone?: string;
801
+ /**
802
+ * Street address
803
+ * @example "123 Main St"
804
+ */
805
+ address?: string;
806
+ /**
807
+ * City
808
+ * @example "Dubai"
809
+ */
810
+ city?: string;
811
+ }
812
+ export interface UpdateAgentResponseDto {
813
+ /**
814
+ * Success message
815
+ * @example "Agent created successfully"
816
+ */
817
+ message: string;
818
+ /**
819
+ * Created agent ID
820
+ * @format uuid
821
+ */
822
+ id: string;
823
+ /** Agent name */
824
+ name: string;
825
+ }
826
+ export interface UpsertBranchItemDto {
827
+ /**
828
+ * Agent ID (UUID)
829
+ * @example "9aee8ab4-a692-4814-9a65-d322dc1882a1"
830
+ */
831
+ agentId: string;
832
+ /**
833
+ * Branch name
834
+ * @example "Downtown Branch"
835
+ */
836
+ name: string;
837
+ /**
838
+ * Unique branch code
839
+ * @example "BR-001"
840
+ */
841
+ code: string;
842
+ /**
843
+ * Address
844
+ * @example "123 Main St"
845
+ */
846
+ address: string;
847
+ /**
848
+ * City
849
+ * @example "Dubai"
850
+ */
851
+ city: string;
852
+ /**
853
+ * Latitude
854
+ * @example 25.276987
855
+ */
856
+ latitude?: number;
857
+ /**
858
+ * Longitude
859
+ * @example 55.296249
860
+ */
861
+ longitude?: number;
862
+ /**
863
+ * Contact phone
864
+ * @example "+971501234567"
865
+ */
866
+ contactPhone: string;
867
+ /**
868
+ * Contact email
869
+ * @example "branch@acme.com"
870
+ */
871
+ contactEmail?: string;
872
+ /**
873
+ * Whether the branch is active
874
+ * @default true
875
+ */
876
+ isActive?: boolean;
877
+ /** Branch status */
878
+ status?: "PENDING" | "ACTIVE" | "SUSPENDED" | "CLOSED";
879
+ /**
880
+ * Branch ID — if provided, updates; if omitted, creates
881
+ * @format uuid
882
+ */
883
+ branchId?: string;
884
+ }
885
+ export interface UpsertBranchesDto {
886
+ branches: UpsertBranchItemDto[];
887
+ }
888
+ export interface BranchesUpsertResponseDto {
889
+ branches: BranchResponseDto[];
890
+ }
891
+ export interface SetLimitDto {
892
+ /**
893
+ * Limit type
894
+ * @example "DAILY_AMOUNT"
895
+ */
896
+ limitType: "DAILY_AMOUNT" | "DAILY_COUNT" | "SINGLE_TX";
897
+ /**
898
+ * Currency
899
+ * @example "USD"
900
+ */
901
+ currency: "SYP" | "USD" | "EUR";
902
+ /**
903
+ * Limit amount
904
+ * @example "10000.00"
905
+ */
906
+ amount: string;
907
+ /**
908
+ * Whether the limit is active
909
+ * @default true
910
+ * @example true
911
+ */
912
+ isActive?: boolean;
913
+ }
914
+ export interface UpsertLimitsDto {
915
+ /** Limits to upsert — matched by (limitType, currency) */
916
+ limits: SetLimitDto[];
917
+ }
918
+ export interface AgentLimitsResponseDto {
919
+ /** List of agent limits */
920
+ limits: AgentLimitResponseDto[];
921
+ }
922
+ export interface UpsertCommissionItemDto {
923
+ /**
924
+ * Commission name
925
+ * @example "Standard Transfer"
926
+ */
927
+ name: string;
928
+ /** @example "PERCENTAGE" */
929
+ commissionType: "PERCENTAGE" | "FIXED";
930
+ /** @example "USD" */
931
+ currency: "SYP" | "USD" | "EUR";
932
+ /**
933
+ * Minimum amount for this commission tier
934
+ * @example "0"
935
+ */
936
+ minAmount: string;
937
+ /**
938
+ * Maximum amount (open-ended if omitted)
939
+ * @example "10000"
940
+ */
941
+ maxAmount?: string;
942
+ /**
943
+ * Commission value (percentage or fixed amount)
944
+ * @example "2.5"
945
+ */
946
+ value: string;
947
+ /**
948
+ * @default true
949
+ * @example true
950
+ */
951
+ isActive?: boolean;
952
+ /**
953
+ * Commission ID — if provided, updates; if omitted, creates
954
+ * @format uuid
955
+ */
956
+ commissionId?: string;
957
+ }
958
+ export interface UpsertCommissionsDto {
959
+ commissions: UpsertCommissionItemDto[];
960
+ }
961
+ export interface AgentCommissionsResponseDto {
962
+ /** List of agent commissions */
963
+ commissions: AgentCommissionResponseDto[];
964
+ }
592
965
  export interface KycStatisticsResponseDto {
593
966
  /**
594
967
  * Total number of KYC requests
@@ -709,6 +1082,186 @@ export interface UpdateKycStatusDto {
709
1082
  */
710
1083
  rejectionReason: string;
711
1084
  }
1085
+ export interface UserStatisticsResponseDto {
1086
+ /**
1087
+ * Total number of users
1088
+ * @example 1000
1089
+ */
1090
+ totalUsers: number;
1091
+ /**
1092
+ * Number of active users
1093
+ * @example 750
1094
+ */
1095
+ activeUsers: number;
1096
+ /**
1097
+ * Number of suspended users
1098
+ * @example 50
1099
+ */
1100
+ suspendedUsers: number;
1101
+ /**
1102
+ * Number of users pending KYC
1103
+ * @example 200
1104
+ */
1105
+ pendingKycUsers: number;
1106
+ /**
1107
+ * Number of rejected users
1108
+ * @example 100
1109
+ */
1110
+ rejectedUsers: number;
1111
+ /**
1112
+ * Number of unverified users
1113
+ * @example 100
1114
+ */
1115
+ unverifiedUsers: number;
1116
+ }
1117
+ export interface UserListQueryDto {
1118
+ /**
1119
+ * Page number (1-based)
1120
+ * @min 1
1121
+ * @default 1
1122
+ * @example 1
1123
+ */
1124
+ page?: number;
1125
+ /**
1126
+ * Number of items per page
1127
+ * @min 1
1128
+ * @max 200
1129
+ * @default 20
1130
+ * @example 20
1131
+ */
1132
+ limit?: number;
1133
+ /**
1134
+ * Field to sort by
1135
+ * @example "createdAt"
1136
+ */
1137
+ sortBy?: string;
1138
+ /**
1139
+ * Sort direction
1140
+ * @default "desc"
1141
+ */
1142
+ sortOrder?: "asc" | "desc";
1143
+ /**
1144
+ * Start date (ISO 8601)
1145
+ * @example "2025-01-01T00:00:00.000Z"
1146
+ */
1147
+ startDate?: string;
1148
+ /**
1149
+ * End date (ISO 8601)
1150
+ * @example "2026-12-31T23:59:59.999Z"
1151
+ */
1152
+ endDate?: string;
1153
+ /**
1154
+ * Filter by person status
1155
+ * @example "verified"
1156
+ */
1157
+ status?: "unverified" | "pending_kyc" | "verified" | "rejected" | "suspended";
1158
+ /**
1159
+ * Search query (name or phone number)
1160
+ * @example "Qusai"
1161
+ */
1162
+ query?: string;
1163
+ }
1164
+ export interface PersonSummaryDto {
1165
+ /** @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890" */
1166
+ id: string;
1167
+ /** @example "Qusai" */
1168
+ firstName: string;
1169
+ /** @example "Armoush" */
1170
+ lastName: string;
1171
+ /** @example "1990-05-15" */
1172
+ dateOfBirth: string;
1173
+ /** @example "verified" */
1174
+ status: "unverified" | "pending_kyc" | "verified" | "rejected" | "suspended";
1175
+ /** @example "2026-01-24T08:09:53.496Z" */
1176
+ createdAt: string;
1177
+ /** @example "Syrian Arab" */
1178
+ nationality: string;
1179
+ }
1180
+ export interface PersonListResponseDto {
1181
+ data: PersonSummaryDto[];
1182
+ meta: PaginationMetaDto;
1183
+ }
1184
+ export interface PersonAddressDto {
1185
+ /**
1186
+ * Country name (translatable)
1187
+ * @example {"ar":"سوريا","en":"Syria"}
1188
+ */
1189
+ country: object;
1190
+ /**
1191
+ * Province name (translatable)
1192
+ * @example {"ar":"دمشق","en":"Damascus"}
1193
+ */
1194
+ province: object;
1195
+ /**
1196
+ * City name (translatable)
1197
+ * @example {"ar":"دمشق","en":"Damascus"}
1198
+ */
1199
+ city?: object;
1200
+ /** @example "123 Main Street" */
1201
+ detailedAddress: string;
1202
+ }
1203
+ export interface ConnectedUserDto {
1204
+ /** @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890" */
1205
+ userId: string;
1206
+ /** @example "+963912345678" */
1207
+ phoneNumber: string;
1208
+ /** @example "active" */
1209
+ status: "pending_phone_verification" | "pending_kyc" | "active" | "suspended" | "blocked" | "closed";
1210
+ }
1211
+ export interface PersonDetailDto {
1212
+ /** @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890" */
1213
+ id: string;
1214
+ /** @example "Qusai" */
1215
+ firstName: string;
1216
+ /** @example "Armoush" */
1217
+ lastName: string;
1218
+ /** @example "1990-05-15" */
1219
+ dateOfBirth: string;
1220
+ /** @example "verified" */
1221
+ status: "unverified" | "pending_kyc" | "verified" | "rejected" | "suspended";
1222
+ /** @example "2026-01-24T08:09:53.496Z" */
1223
+ createdAt: string;
1224
+ /** @example "Syrian Arab" */
1225
+ nationality: string;
1226
+ /**
1227
+ * Father name
1228
+ * @example "Mohammad"
1229
+ */
1230
+ fatherName: string;
1231
+ /**
1232
+ * Mother name
1233
+ * @example "Fatima"
1234
+ */
1235
+ motherName: string;
1236
+ address: PersonAddressDto;
1237
+ connectedUsers: ConnectedUserDto[];
1238
+ }
1239
+ export interface UpdatePersonStatusDto {
1240
+ /**
1241
+ * New person status
1242
+ * @example "verified"
1243
+ */
1244
+ status: "unverified" | "pending_kyc" | "verified" | "rejected" | "suspended";
1245
+ /**
1246
+ * Reason for status change (e.g. for audit)
1247
+ * @maxLength 500
1248
+ * @example "KYC verified by admin"
1249
+ */
1250
+ reason?: string;
1251
+ }
1252
+ export interface UpdateUserStatusDto {
1253
+ /**
1254
+ * New user status
1255
+ * @example "active"
1256
+ */
1257
+ status: "pending_phone_verification" | "pending_kyc" | "active" | "suspended" | "blocked" | "closed";
1258
+ /**
1259
+ * Reason for status change (e.g. for audit)
1260
+ * @maxLength 500
1261
+ * @example "Account reactivated per support request"
1262
+ */
1263
+ reason?: string;
1264
+ }
712
1265
  export type LoginData = AdminLoginResponseDto;
713
1266
  export type LoginError = ErrorResponseDto;
714
1267
  export type RefreshData = AdminLoginResponseDto;
@@ -887,7 +1440,7 @@ export interface FindAllParams6 {
887
1440
  */
888
1441
  endDate?: string;
889
1442
  }
890
- export type FindAllOutput1 = ActivityLogListResponseDto;
1443
+ export type FindAllResult1 = ActivityLogListResponseDto;
891
1444
  export interface FindAllParams8 {
892
1445
  /**
893
1446
  * Page number (1-based)
@@ -910,7 +1463,7 @@ export interface FindAllParams8 {
910
1463
  */
911
1464
  read?: boolean;
912
1465
  }
913
- export type FindAllData1 = AdminNotificationListResponseDto;
1466
+ export type FindAllResult2 = AdminNotificationListResponseDto;
914
1467
  export type GetUnreadCountData = any;
915
1468
  export interface MarkAsReadParams {
916
1469
  /** Notification ID */
@@ -918,152 +1471,58 @@ export interface MarkAsReadParams {
918
1471
  }
919
1472
  export type MarkAsReadData = AdminNotificationResponseDto;
920
1473
  export type MarkAllAsReadData = MessageResponseDto;
1474
+ export type GetStatisticsData = AgentStatisticsDto;
921
1475
  export interface ListAgentsParams {
922
- type?: string;
923
- status?: string;
924
- searchTerm?: string;
1476
+ /**
1477
+ * Page number (1-based)
1478
+ * @min 1
1479
+ * @default 1
1480
+ * @example 1
1481
+ */
925
1482
  page?: number;
1483
+ /**
1484
+ * Number of items per page
1485
+ * @min 1
1486
+ * @max 200
1487
+ * @default 20
1488
+ * @example 20
1489
+ */
926
1490
  limit?: number;
1491
+ /** Filter by agent type */
1492
+ type?: "MONEY_TRANSFER" | "EXCHANGE_BUREAU" | "BANK";
1493
+ /** Filter by agent status */
1494
+ status?: "PENDING" | "ACTIVE" | "SUSPENDED" | "TERMINATED";
1495
+ /** Search by name, legal name, or registration number */
1496
+ searchTerm?: string;
927
1497
  }
928
- export type ListAgentsData = any;
929
- export type CreateAgentData = any;
1498
+ export type ListAgentsData = AgentListResponseDto;
1499
+ export type CreateAgentData = CreateAgentResponseDto;
930
1500
  export interface GetAgentParams {
931
1501
  /** Agent ID */
932
1502
  id: string;
933
1503
  }
934
- export type GetAgentData = any;
1504
+ export type GetAgentData = AgentResponseDto;
935
1505
  export interface UpdateAgentParams {
936
- /** Agent ID */
937
- id: string;
938
- }
939
- export type UpdateAgentData = any;
940
- export interface DeleteAgentParams {
941
- /** Agent ID */
942
- id: string;
943
- }
944
- export type DeleteAgentData = any;
945
- export interface UpdateAgentStatusParams {
946
- /** Agent ID */
947
- id: string;
948
- }
949
- export type UpdateAgentStatusData = any;
950
- export interface GetAgentLimitsParams {
951
- activeOnly?: boolean;
952
- /** Agent ID */
953
- id: string;
954
- }
955
- export type GetAgentLimitsData = any;
956
- export interface SetAgentLimitParams {
957
- /** Agent ID */
1506
+ /** Agent ID (UUID) */
958
1507
  id: string;
959
1508
  }
960
- export type SetAgentLimitData = any;
961
- export interface SetAgentLimitsParams {
1509
+ export type UpdateAgentData = UpdateAgentResponseDto;
1510
+ export interface UpsertAgentBranchesParams {
962
1511
  /** Agent ID */
963
1512
  id: string;
964
1513
  }
965
- export type SetAgentLimitsData = any;
966
- export interface DeleteAgentLimitParams {
967
- /** Limit ID */
968
- limitId: string;
969
- }
970
- export type DeleteAgentLimitData = any;
971
- export interface GetAgentCommissionsParams {
972
- activeOnly?: boolean;
973
- /** Agent ID */
974
- id: string;
975
- }
976
- export type GetAgentCommissionsData = any;
977
- export interface CreateAgentCommissionParams {
978
- /** Agent ID */
1514
+ export type UpsertAgentBranchesData = BranchesUpsertResponseDto;
1515
+ export interface UpsertAgentLimitsParams {
1516
+ /** Agent ID (UUID) */
979
1517
  id: string;
980
1518
  }
981
- export type CreateAgentCommissionData = any;
982
- export interface UpdateAgentCommissionParams {
983
- /** Commission ID */
984
- commissionId: string;
985
- }
986
- export type UpdateAgentCommissionData = any;
987
- export interface DeleteAgentCommissionParams {
988
- /** Commission ID */
989
- commissionId: string;
990
- }
991
- export type DeleteAgentCommissionData = any;
992
- export interface CalculateCommissionParams {
1519
+ export type UpsertAgentLimitsData = AgentLimitsResponseDto;
1520
+ export interface UpsertAgentCommissionsParams {
993
1521
  /** Agent ID */
994
1522
  id: string;
995
1523
  }
996
- export type CalculateCommissionData = any;
997
- export interface ListBranchesParams {
998
- agentId?: string;
999
- city?: string;
1000
- status?: string;
1001
- page?: number;
1002
- limit?: number;
1003
- }
1004
- export type ListBranchesData = any;
1005
- export type CreateBranchData = any;
1006
- export interface GetBranchParams {
1007
- /** Branch ID */
1008
- id: string;
1009
- }
1010
- export type GetBranchData = any;
1011
- export interface UpdateBranchParams {
1012
- /** Branch ID */
1013
- id: string;
1014
- }
1015
- export type UpdateBranchData = any;
1016
- export interface DeleteBranchParams {
1017
- /** Branch ID */
1018
- id: string;
1019
- }
1020
- export type DeleteBranchData = any;
1021
- export interface UpdateBranchStatusParams {
1022
- /** Branch ID */
1023
- id: string;
1024
- }
1025
- export type UpdateBranchStatusData = any;
1026
- export interface ListSettlementsParams {
1027
- branchId?: string;
1028
- status?: string;
1029
- startDate?: string;
1030
- endDate?: string;
1031
- page?: number;
1032
- limit?: number;
1033
- }
1034
- export type ListSettlementsData = any;
1035
- export type CreateSettlementData = any;
1036
- export interface GetSettlementParams {
1037
- /** Settlement ID */
1038
- id: string;
1039
- }
1040
- export type GetSettlementData = any;
1041
- export interface UpdateSettlementStatusParams {
1042
- /** Settlement ID */
1043
- id: string;
1044
- }
1045
- export type UpdateSettlementStatusData = any;
1046
- export interface UpdateSettlementAmountsParams {
1047
- /** Settlement ID */
1048
- id: string;
1049
- }
1050
- export type UpdateSettlementAmountsData = any;
1051
- export interface GetSettlementAdjustmentsParams {
1052
- /** Settlement ID */
1053
- id: string;
1054
- }
1055
- export type GetSettlementAdjustmentsData = any;
1056
- export interface AddSettlementAdjustmentParams {
1057
- /** Settlement ID */
1058
- id: string;
1059
- }
1060
- export type AddSettlementAdjustmentData = any;
1061
- export interface ApproveAdjustmentParams {
1062
- /** Adjustment ID */
1063
- adjustmentId: string;
1064
- }
1065
- export type ApproveAdjustmentData = any;
1066
- export type GetStatisticsData = KycStatisticsResponseDto;
1524
+ export type UpsertAgentCommissionsData = AgentCommissionsResponseDto;
1525
+ export type GetStatisticsResult = KycStatisticsResponseDto;
1067
1526
  export interface FindAllParams10 {
1068
1527
  /**
1069
1528
  * Page number (1-based)
@@ -1091,15 +1550,117 @@ export interface FindAllParams10 {
1091
1550
  */
1092
1551
  search?: string;
1093
1552
  }
1094
- export type FindAllResult1 = KycListResponseDto;
1553
+ export type FindAllOutput1 = KycListResponseDto;
1095
1554
  export interface FindByIdParams6 {
1096
1555
  /** KYC request ID */
1097
1556
  id: string;
1098
1557
  }
1099
- export type FindByIdOutput1 = KycRequestResponseDto;
1558
+ export type FindByIdData1 = KycRequestResponseDto;
1100
1559
  export interface UpdateStatusParams2 {
1101
1560
  /** KYC request ID */
1102
1561
  id: string;
1103
1562
  }
1104
1563
  export type UpdateStatusResult = KycRequestResponseDto;
1564
+ export type GetStatisticsOutput = UserStatisticsResponseDto;
1565
+ export interface FindAllParams12 {
1566
+ /**
1567
+ * Page number (1-based)
1568
+ * @min 1
1569
+ * @default 1
1570
+ * @example 1
1571
+ */
1572
+ page?: number;
1573
+ /**
1574
+ * Number of items per page
1575
+ * @min 1
1576
+ * @max 200
1577
+ * @default 20
1578
+ * @example 20
1579
+ */
1580
+ limit?: number;
1581
+ /**
1582
+ * Field to sort by
1583
+ * @example "createdAt"
1584
+ */
1585
+ sortBy?: string;
1586
+ /**
1587
+ * Sort direction
1588
+ * @default "desc"
1589
+ */
1590
+ sortOrder?: "asc" | "desc";
1591
+ /**
1592
+ * Start date (ISO 8601)
1593
+ * @example "2025-01-01T00:00:00.000Z"
1594
+ */
1595
+ startDate?: string;
1596
+ /**
1597
+ * End date (ISO 8601)
1598
+ * @example "2026-12-31T23:59:59.999Z"
1599
+ */
1600
+ endDate?: string;
1601
+ /**
1602
+ * Filter by person status
1603
+ * @example "verified"
1604
+ */
1605
+ status?: "unverified" | "pending_kyc" | "verified" | "rejected" | "suspended";
1606
+ /**
1607
+ * Search query (name or phone number)
1608
+ * @example "Qusai"
1609
+ */
1610
+ query?: string;
1611
+ }
1612
+ export type FindAllResult3 = PersonListResponseDto;
1613
+ export interface ExportUsersParams {
1614
+ /**
1615
+ * Field to sort by
1616
+ * @example "createdAt"
1617
+ */
1618
+ sortBy?: string;
1619
+ /**
1620
+ * Sort direction
1621
+ * @default "desc"
1622
+ */
1623
+ sortOrder?: "asc" | "desc";
1624
+ /**
1625
+ * Start date (ISO 8601)
1626
+ * @example "2025-01-01T00:00:00.000Z"
1627
+ */
1628
+ startDate?: string;
1629
+ /**
1630
+ * End date (ISO 8601)
1631
+ * @example "2026-12-31T23:59:59.999Z"
1632
+ */
1633
+ endDate?: string;
1634
+ /**
1635
+ * Filter by person status
1636
+ * @example "verified"
1637
+ */
1638
+ status?: "unverified" | "pending_kyc" | "verified" | "rejected" | "suspended";
1639
+ /**
1640
+ * Search query (name or phone number)
1641
+ * @example "Qusai"
1642
+ */
1643
+ query?: string;
1644
+ /**
1645
+ * Export format
1646
+ * @default "csv"
1647
+ */
1648
+ format?: "csv" | "excel" | "pdf" | "print";
1649
+ }
1650
+ export type ExportUsersData = any;
1651
+ export interface FindByIdParams8 {
1652
+ /** Person ID (UUID) */
1653
+ id: string;
1654
+ }
1655
+ export type FindByIdResult1 = PersonDetailDto;
1656
+ export interface UpdatePersonStatusParams {
1657
+ /** Person ID (UUID) */
1658
+ id: string;
1659
+ }
1660
+ export type UpdatePersonStatusData = PersonDetailDto;
1661
+ export interface UpdateUserStatusParams {
1662
+ /** User ID (UUID) */
1663
+ id: string;
1664
+ }
1665
+ export type UpdateUserStatusData = any;
1105
1666
  //# sourceMappingURL=data-contracts.d.ts.map