@tammsyr/admin-api-client 1.0.0

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.
@@ -0,0 +1,1283 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ // @ts-nocheck
4
+ /*
5
+ * ---------------------------------------------------------------
6
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
+ * ## ##
8
+ * ## AUTHOR: acacode ##
9
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
+ * ---------------------------------------------------------------
11
+ */
12
+
13
+ export interface AdminLoginRequestDto {
14
+ /**
15
+ * Admin email address
16
+ * @example "admin@tamm.com"
17
+ */
18
+ email: string;
19
+ /**
20
+ * Admin password
21
+ * @minLength 6
22
+ * @example "SecureP@ss123"
23
+ */
24
+ password: string;
25
+ /**
26
+ * Device ID
27
+ * @example "device-123"
28
+ */
29
+ deviceId?: string;
30
+ /**
31
+ * Device name
32
+ * @example "Admin Workstation"
33
+ */
34
+ deviceName?: string;
35
+ }
36
+
37
+ export interface AdminUserResponseDto {
38
+ /**
39
+ * Admin user ID
40
+ * @example "123e4567-e89b-12d3-a456-426614174000"
41
+ */
42
+ id: string;
43
+ /**
44
+ * Admin email
45
+ * @example "admin@tamm.com"
46
+ */
47
+ email: string;
48
+ /**
49
+ * Admin name
50
+ * @example "Admin User"
51
+ */
52
+ name: string;
53
+ /**
54
+ * Admin role
55
+ * @example "super_admin"
56
+ */
57
+ role: string;
58
+ /**
59
+ * Admin permissions
60
+ * @example ["users.view","kyc.view","notifications.send"]
61
+ */
62
+ permissions: string[];
63
+ }
64
+
65
+ export interface AdminLoginResponseDto {
66
+ /**
67
+ * JWT access token
68
+ * @example "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
69
+ */
70
+ accessToken: string;
71
+ /**
72
+ * Refresh token
73
+ * @example "a1b2c3d4e5f6..."
74
+ */
75
+ refreshToken: string;
76
+ /** Admin user information */
77
+ admin: AdminUserResponseDto;
78
+ }
79
+
80
+ export interface ErrorResponseDto {
81
+ /**
82
+ * Error code for programmatic handling
83
+ * @example "USER_NOT_FOUND"
84
+ */
85
+ code: string;
86
+ /**
87
+ * Human-readable error message (localized based on Accept-Language)
88
+ * @example "المستخدم غير موجود"
89
+ */
90
+ message: string;
91
+ /**
92
+ * HTTP status code
93
+ * @example 404
94
+ */
95
+ statusCode: number;
96
+ /**
97
+ * Additional error details (e.g., validation errors)
98
+ * @example {"validationErrors":[{"email":"email must be a valid email"}]}
99
+ */
100
+ details?: object;
101
+ }
102
+
103
+ export interface AdminRefreshTokenRequestDto {
104
+ /**
105
+ * Admin user ID
106
+ * @example "123e4567-e89b-12d3-a456-426614174000"
107
+ */
108
+ adminId: string;
109
+ /**
110
+ * Refresh token
111
+ * @example "a1b2c3d4e5f6..."
112
+ */
113
+ refreshToken: string;
114
+ }
115
+
116
+ export interface AdminLogoutRequestDto {
117
+ /**
118
+ * Admin user ID
119
+ * @example "123e4567-e89b-12d3-a456-426614174000"
120
+ */
121
+ adminId: string;
122
+ /**
123
+ * Refresh token
124
+ * @example "a1b2c3d4e5f6..."
125
+ */
126
+ refreshToken: string;
127
+ }
128
+
129
+ export interface AdminLogoutResponseDto {
130
+ /**
131
+ * Logout success status
132
+ * @example true
133
+ */
134
+ success: boolean;
135
+ }
136
+
137
+ export interface AdminSeedRequestDto {
138
+ /**
139
+ * Admin email address
140
+ * @example "admin@tamm.com"
141
+ */
142
+ email: string;
143
+ /**
144
+ * Admin password
145
+ * @minLength 8
146
+ * @example "SecureP@ss123"
147
+ */
148
+ password: string;
149
+ /**
150
+ * Admin name
151
+ * @example "Super Admin"
152
+ */
153
+ name?: string;
154
+ }
155
+
156
+ export interface PermissionResponseDto {
157
+ /**
158
+ * Permission ID
159
+ * @example 1
160
+ */
161
+ id: number;
162
+ /**
163
+ * Permission name
164
+ * @example "users.view"
165
+ */
166
+ name: string;
167
+ /**
168
+ * Resource this permission belongs to
169
+ * @example "users"
170
+ */
171
+ resource: string;
172
+ /**
173
+ * Permission description
174
+ * @example "Allows viewing user information"
175
+ */
176
+ description: string | null;
177
+ /** Creation timestamp */
178
+ createdAt: string;
179
+ }
180
+
181
+ export interface PaginationMetaDto {
182
+ /**
183
+ * Total number of items
184
+ * @example 100
185
+ */
186
+ total: number;
187
+ /**
188
+ * Current page number
189
+ * @example 1
190
+ */
191
+ page: number;
192
+ /**
193
+ * Number of items per page
194
+ * @example 20
195
+ */
196
+ limit: number;
197
+ /**
198
+ * Total number of pages
199
+ * @example 5
200
+ */
201
+ totalPages: number;
202
+ /**
203
+ * Whether there is a next page
204
+ * @example true
205
+ */
206
+ hasNextPage: boolean;
207
+ /**
208
+ * Whether there is a previous page
209
+ * @example false
210
+ */
211
+ hasPreviousPage: boolean;
212
+ }
213
+
214
+ export interface PermissionListResponseDto {
215
+ /** List of permissions */
216
+ data: PermissionResponseDto[];
217
+ /** Pagination metadata */
218
+ meta: PaginationMetaDto;
219
+ }
220
+
221
+ export interface CreatePermissionDto {
222
+ /**
223
+ * Permission name (unique identifier)
224
+ * @example "users.view"
225
+ */
226
+ name: string;
227
+ /**
228
+ * Resource this permission belongs to
229
+ * @example "users"
230
+ */
231
+ resource: string;
232
+ /**
233
+ * Permission description
234
+ * @example "Allows viewing user information"
235
+ */
236
+ description?: string;
237
+ }
238
+
239
+ export interface UpdatePermissionDto {
240
+ /**
241
+ * Permission name
242
+ * @example "users.view"
243
+ */
244
+ name?: string;
245
+ /**
246
+ * Permission description
247
+ * @example "Allows viewing user information"
248
+ */
249
+ description?: string;
250
+ }
251
+
252
+ export interface MessageResponseDto {
253
+ /**
254
+ * Message
255
+ * @example "Permission deleted successfully"
256
+ */
257
+ message: string;
258
+ }
259
+
260
+ export interface RoleResponseDto {
261
+ /**
262
+ * Role ID
263
+ * @example 1
264
+ */
265
+ id: number;
266
+ /**
267
+ * Role name
268
+ * @example "super_admin"
269
+ */
270
+ name: string;
271
+ /**
272
+ * Role description
273
+ * @example "Full system access"
274
+ */
275
+ description: string | null;
276
+ /** Creation timestamp */
277
+ createdAt: string;
278
+ /** Last update timestamp */
279
+ updatedAt: string;
280
+ }
281
+
282
+ export interface RoleLookupListResponseDto {
283
+ /** List of roles without permissions */
284
+ data: RoleResponseDto[];
285
+ /** Pagination metadata */
286
+ meta: PaginationMetaDto;
287
+ }
288
+
289
+ export interface RoleWithPermissionsResponseDto {
290
+ /**
291
+ * Role ID
292
+ * @example 1
293
+ */
294
+ id: number;
295
+ /**
296
+ * Role name
297
+ * @example "super_admin"
298
+ */
299
+ name: string;
300
+ /**
301
+ * Role description
302
+ * @example "Full system access"
303
+ */
304
+ description: string | null;
305
+ /** Creation timestamp */
306
+ createdAt: string;
307
+ /** Last update timestamp */
308
+ updatedAt: string;
309
+ /** List of permissions assigned to this role */
310
+ permissions: PermissionResponseDto[];
311
+ }
312
+
313
+ export interface RoleListResponseDto {
314
+ /** List of roles with their permissions */
315
+ data: RoleWithPermissionsResponseDto[];
316
+ /** Pagination metadata */
317
+ meta: PaginationMetaDto;
318
+ }
319
+
320
+ export interface CreateRoleDto {
321
+ /**
322
+ * Role name (unique identifier)
323
+ * @example "content_manager"
324
+ */
325
+ name: string;
326
+ /**
327
+ * Role description
328
+ * @example "Manages content and publications"
329
+ */
330
+ description?: string;
331
+ /**
332
+ * Array of permission IDs to assign to the role
333
+ * @example [1,2,3]
334
+ */
335
+ permissionIds?: number[];
336
+ }
337
+
338
+ export interface UpdateRoleDto {
339
+ /**
340
+ * Role description
341
+ * @example "Manages content and publications"
342
+ */
343
+ description?: string;
344
+ }
345
+
346
+ export interface AssignPermissionsDto {
347
+ /**
348
+ * Array of permission IDs to assign
349
+ * @example [1,2,3]
350
+ */
351
+ permissionIds: number[];
352
+ }
353
+
354
+ export interface AdminUserDetailResponseDto {
355
+ /**
356
+ * Admin ID
357
+ * @example "123e4567-e89b-12d3-a456-426614174000"
358
+ */
359
+ id: string;
360
+ /**
361
+ * Admin email
362
+ * @example "admin@example.com"
363
+ */
364
+ email: string;
365
+ /**
366
+ * Admin name
367
+ * @example "John Doe"
368
+ */
369
+ name: string;
370
+ /**
371
+ * Role ID
372
+ * @example 1
373
+ */
374
+ roleId: number;
375
+ /**
376
+ * Role name
377
+ * @example "admin"
378
+ */
379
+ roleName: string;
380
+ /**
381
+ * Admin status
382
+ * @example "active"
383
+ */
384
+ status: string;
385
+ /** Creation timestamp */
386
+ createdAt: string;
387
+ /** Last update timestamp */
388
+ updatedAt: string;
389
+ }
390
+
391
+ export interface AdminUserListResponseDto {
392
+ /** List of admin users */
393
+ data: AdminUserDetailResponseDto[];
394
+ /** Pagination metadata */
395
+ meta: PaginationMetaDto;
396
+ }
397
+
398
+ export interface PermissionWithIdDto {
399
+ /**
400
+ * Permission ID
401
+ * @example 1
402
+ */
403
+ id: number;
404
+ /**
405
+ * Permission name
406
+ * @example "users.view"
407
+ */
408
+ name: string;
409
+ }
410
+
411
+ export interface AdminUserWithPermissionsResponseDto {
412
+ /**
413
+ * Admin ID
414
+ * @example "123e4567-e89b-12d3-a456-426614174000"
415
+ */
416
+ id: string;
417
+ /**
418
+ * Admin email
419
+ * @example "admin@example.com"
420
+ */
421
+ email: string;
422
+ /**
423
+ * Admin name
424
+ * @example "John Doe"
425
+ */
426
+ name: string;
427
+ /**
428
+ * Role ID
429
+ * @example 1
430
+ */
431
+ roleId: number;
432
+ /**
433
+ * Role name
434
+ * @example "admin"
435
+ */
436
+ roleName: string;
437
+ /**
438
+ * Admin status
439
+ * @example "active"
440
+ */
441
+ status: string;
442
+ /** Creation timestamp */
443
+ createdAt: string;
444
+ /** Last update timestamp */
445
+ updatedAt: string;
446
+ /** List of permissions with IDs */
447
+ permissions: PermissionWithIdDto[];
448
+ }
449
+
450
+ export interface CreateAdminDto {
451
+ /**
452
+ * Admin email address
453
+ * @example "admin@example.com"
454
+ */
455
+ email: string;
456
+ /**
457
+ * Admin password
458
+ * @minLength 8
459
+ * @example "SecureP@ss123"
460
+ */
461
+ password: string;
462
+ /**
463
+ * Admin full name
464
+ * @example "John Doe"
465
+ */
466
+ name: string;
467
+ /**
468
+ * Role ID to assign
469
+ * @example 1
470
+ */
471
+ roleId: number;
472
+ }
473
+
474
+ export interface UpdateAdminDto {
475
+ /**
476
+ * Admin full name
477
+ * @example "John Doe"
478
+ */
479
+ name?: string;
480
+ /**
481
+ * Role ID to assign
482
+ * @example 1
483
+ */
484
+ roleId?: number;
485
+ }
486
+
487
+ export interface UpdateAdminStatusDto {
488
+ /**
489
+ * New admin status
490
+ * @example "active"
491
+ */
492
+ status: "active" | "suspended";
493
+ }
494
+
495
+ export interface SeedPermissionsRolesRequestDto {
496
+ /**
497
+ * Assign all permissions to super_admin role
498
+ * @default true
499
+ * @example true
500
+ */
501
+ assignToSuperAdmin?: boolean;
502
+ }
503
+
504
+ export interface SeedPermissionsRolesResponseDto {
505
+ /** Operation success status */
506
+ success: boolean;
507
+ /** Response message */
508
+ message: string;
509
+ /** Number of permissions seeded */
510
+ permissionsSeeded: number;
511
+ /** Number of roles seeded */
512
+ rolesSeeded: number;
513
+ /** Number of permissions assigned to super_admin */
514
+ permissionsAssigned?: number;
515
+ }
516
+
517
+ export interface ActivityLogResponseDto {
518
+ /**
519
+ * Activity log ID
520
+ * @example "507f1f77bcf86cd799439011"
521
+ */
522
+ id: string;
523
+ /**
524
+ * Date and time of the action
525
+ * @format date-time
526
+ * @example "2025-01-15T10:30:00.000Z"
527
+ */
528
+ date: string;
529
+ /**
530
+ * Admin user ID
531
+ * @example "123e4567-e89b-12d3-a456-426614174000"
532
+ */
533
+ adminId: string;
534
+ /**
535
+ * Admin user name (email)
536
+ * @example "admin@example.com"
537
+ */
538
+ adminName: string;
539
+ /**
540
+ * Action type
541
+ * @example "CREATE"
542
+ */
543
+ action: "CREATE" | "UPDATE" | "DELETE" | "LOGIN" | "LOGOUT";
544
+ /**
545
+ * Resource type
546
+ * @example "admins"
547
+ */
548
+ resource: string;
549
+ /**
550
+ * Resource ID
551
+ * @example "123"
552
+ */
553
+ resourceId?: string;
554
+ }
555
+
556
+ export interface ActivityLogListResponseDto {
557
+ /** List of activity logs */
558
+ data: ActivityLogResponseDto[];
559
+ /** Pagination metadata */
560
+ meta: PaginationMetaDto;
561
+ }
562
+
563
+ export interface AdminNotificationResponseDto {
564
+ /**
565
+ * Notification ID
566
+ * @example "507f1f77bcf86cd799439011"
567
+ */
568
+ id: string;
569
+ /**
570
+ * Date and time of the notification
571
+ * @format date-time
572
+ * @example "2025-01-15T10:30:00.000Z"
573
+ */
574
+ date: string;
575
+ /**
576
+ * Admin user ID who triggered the action
577
+ * @example "123e4567-e89b-12d3-a456-426614174000"
578
+ */
579
+ adminId: string;
580
+ /**
581
+ * Admin user ID who should receive this notification
582
+ * @example "123e4567-e89b-12d3-a456-426614174000"
583
+ */
584
+ recipientAdminId: string;
585
+ /**
586
+ * Admin user name (email)
587
+ * @example "admin@example.com"
588
+ */
589
+ adminName: string;
590
+ /**
591
+ * Action description
592
+ * @example "deleted role admin_role"
593
+ */
594
+ action: string;
595
+ /**
596
+ * Resource type
597
+ * @example "roles"
598
+ */
599
+ resource: string;
600
+ /**
601
+ * Resource ID
602
+ * @example "123"
603
+ */
604
+ resourceId?: string;
605
+ /**
606
+ * Notification type for categorization
607
+ * @example "ROLE_CHANGE"
608
+ */
609
+ type?: string;
610
+ /**
611
+ * Whether the notification has been read
612
+ * @example false
613
+ */
614
+ read: boolean;
615
+ }
616
+
617
+ export interface AdminNotificationListResponseDto {
618
+ /** Array of notifications */
619
+ data: AdminNotificationResponseDto[];
620
+ /** Pagination metadata */
621
+ meta: PaginationMetaDto;
622
+ }
623
+
624
+ export type CreateAgentDto = object;
625
+
626
+ export type UpdateAgentDto = object;
627
+
628
+ export type UpdateAgentStatusDto = object;
629
+
630
+ export type SetLimitDto = object;
631
+
632
+ export type SetLimitsDto = object;
633
+
634
+ export type CreateCommissionDto = object;
635
+
636
+ export type UpdateCommissionDto = object;
637
+
638
+ export type CreateBranchDto = object;
639
+
640
+ export type UpdateBranchDto = object;
641
+
642
+ export type UpdateBranchStatusDto = object;
643
+
644
+ export type CreateSettlementDto = object;
645
+
646
+ export type UpdateSettlementStatusDto = object;
647
+
648
+ export type UpdateSettlementAmountsDto = object;
649
+
650
+ export type AddAdjustmentDto = object;
651
+
652
+ export interface KycStatisticsResponseDto {
653
+ /**
654
+ * Total number of KYC requests
655
+ * @example 150
656
+ */
657
+ total: number;
658
+ /**
659
+ * Number of pending KYC requests
660
+ * @example 45
661
+ */
662
+ pending: number;
663
+ /**
664
+ * Number of KYC requests under review
665
+ * @example 12
666
+ */
667
+ underReview: number;
668
+ /**
669
+ * Number of approved/verified KYC requests
670
+ * @example 80
671
+ */
672
+ approved: number;
673
+ /**
674
+ * Number of rejected KYC requests
675
+ * @example 13
676
+ */
677
+ rejected: number;
678
+ }
679
+
680
+ export interface ListKycResponseRow {
681
+ id: string;
682
+ fullName: string;
683
+ /**
684
+ * KYC request status
685
+ * @example "pending"
686
+ */
687
+ status: "pending" | "under_review" | "verified" | "rejected" | "expired";
688
+ createdAt: string;
689
+ }
690
+
691
+ export interface KycListResponseDto {
692
+ /** List of KYC requests */
693
+ data: ListKycResponseRow[];
694
+ /** Pagination metadata */
695
+ meta: PaginationMetaDto;
696
+ }
697
+
698
+ export interface KycDocumentResponseDto {
699
+ /**
700
+ * Document type
701
+ * @example "id_front"
702
+ */
703
+ documentType: "id_front" | "id_back" | "selfie";
704
+ /**
705
+ * Reference to the encrypted storage location
706
+ * @example "uploads/kyc/123/id_front.enc"
707
+ */
708
+ storageReference: string;
709
+ }
710
+
711
+ export interface KycRequestResponseDto {
712
+ /**
713
+ * KYC request unique identifier
714
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
715
+ */
716
+ id: string;
717
+ /**
718
+ * Person unique identifier
719
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
720
+ */
721
+ personId: string;
722
+ firstName: string;
723
+ lastName: string;
724
+ motherName: string;
725
+ nationality: string;
726
+ dateOfBirth: string;
727
+ address: string;
728
+ documentType: object;
729
+ /**
730
+ * KYC provider (MANUAL, AUTOMATED, etc.)
731
+ * @example "MANUAL"
732
+ */
733
+ provider: string;
734
+ /**
735
+ * KYC request status
736
+ * @example "pending"
737
+ */
738
+ status: "pending" | "under_review" | "verified" | "rejected" | "expired";
739
+ /** Uploaded documents for this request */
740
+ documents: KycDocumentResponseDto[];
741
+ /**
742
+ * Timestamp when the request entered review
743
+ * @example "2025-01-01T12:00:00.000Z"
744
+ */
745
+ reviewAt: object | null;
746
+ /**
747
+ * Rejection reason if status is rejected
748
+ * @example "DOCUMENT_BLURRY"
749
+ */
750
+ rejectionReason: object | null;
751
+ /**
752
+ * Admin identifier who reviewed the request
753
+ * @example "admin-123"
754
+ */
755
+ reviewedByAdminId: object | null;
756
+ /**
757
+ * Creation timestamp of the request
758
+ * @example "2025-01-01T11:00:00.000Z"
759
+ */
760
+ createdAt: string;
761
+ /** @example "2025-01-01T11:00:00.000Z" */
762
+ updatedAt: string;
763
+ }
764
+
765
+ export interface UpdateKycStatusDto {
766
+ /**
767
+ * Target status: under_review (start review), rejected or verified (approve)
768
+ * @example "under_review"
769
+ */
770
+ status: "pending" | "under_review" | "verified" | "rejected" | "expired";
771
+ /**
772
+ * Rejection reason
773
+ * @example "Document is blurry"
774
+ */
775
+ rejectionReason: string;
776
+ }
777
+
778
+ export type LoginData = AdminLoginResponseDto;
779
+
780
+ export type LoginError = ErrorResponseDto;
781
+
782
+ export type RefreshData = AdminLoginResponseDto;
783
+
784
+ export type RefreshError = ErrorResponseDto;
785
+
786
+ export type LogoutData = AdminLogoutResponseDto;
787
+
788
+ export type SeedData = any;
789
+
790
+ export interface FindAllParams {
791
+ /**
792
+ * Page number (1-based)
793
+ * @min 1
794
+ * @default 1
795
+ * @example 1
796
+ */
797
+ page?: number;
798
+ /**
799
+ * Items per page (max 200)
800
+ * @min 1
801
+ * @max 200
802
+ * @default 20
803
+ * @example 20
804
+ */
805
+ limit?: number;
806
+ }
807
+
808
+ export type FindAllData = PermissionListResponseDto;
809
+
810
+ export type CreateData = PermissionResponseDto;
811
+
812
+ export interface FindByIdParams {
813
+ /** Permission ID */
814
+ id: number;
815
+ }
816
+
817
+ export type FindByIdData = PermissionResponseDto;
818
+
819
+ export interface UpdateParams {
820
+ /** Permission ID */
821
+ id: number;
822
+ }
823
+
824
+ export type UpdateData = PermissionResponseDto;
825
+
826
+ export interface DeleteParams {
827
+ /** Permission ID */
828
+ id: number;
829
+ }
830
+
831
+ export type DeleteData = MessageResponseDto;
832
+
833
+ export type DeleteError = ErrorResponseDto;
834
+
835
+ export interface LookupParams {
836
+ /**
837
+ * Page number (1-based)
838
+ * @min 1
839
+ * @default 1
840
+ * @example 1
841
+ */
842
+ page?: number;
843
+ /**
844
+ * Items per page (max 200)
845
+ * @min 1
846
+ * @max 200
847
+ * @default 20
848
+ * @example 20
849
+ */
850
+ limit?: number;
851
+ }
852
+
853
+ export type LookupData = RoleLookupListResponseDto;
854
+
855
+ export interface FindAllParams2 {
856
+ /**
857
+ * Page number (1-based)
858
+ * @min 1
859
+ * @default 1
860
+ * @example 1
861
+ */
862
+ page?: number;
863
+ /**
864
+ * Items per page (max 200)
865
+ * @min 1
866
+ * @max 200
867
+ * @default 20
868
+ * @example 20
869
+ */
870
+ limit?: number;
871
+ }
872
+
873
+ export type FindAllResult = RoleListResponseDto;
874
+
875
+ export type CreateResult = RoleWithPermissionsResponseDto;
876
+
877
+ export interface FindByIdParams2 {
878
+ /** Role ID */
879
+ id: number;
880
+ }
881
+
882
+ export type FindByIdResult = RoleWithPermissionsResponseDto;
883
+
884
+ export interface UpdateParams2 {
885
+ /** Role ID */
886
+ id: number;
887
+ }
888
+
889
+ export type UpdateResult = RoleWithPermissionsResponseDto;
890
+
891
+ export interface DeleteParams2 {
892
+ /** Role ID */
893
+ id: number;
894
+ }
895
+
896
+ export type DeleteResult = MessageResponseDto;
897
+
898
+ export type DeleteFail = ErrorResponseDto;
899
+
900
+ export interface SetPermissionsParams {
901
+ /** Role ID */
902
+ id: number;
903
+ }
904
+
905
+ export type SetPermissionsData = any;
906
+
907
+ export interface AddPermissionsParams {
908
+ /** Role ID */
909
+ id: number;
910
+ }
911
+
912
+ export type AddPermissionsData = any;
913
+
914
+ export interface FindAllParams4 {
915
+ /**
916
+ * Page number (1-based)
917
+ * @min 1
918
+ * @default 1
919
+ * @example 1
920
+ */
921
+ page?: number;
922
+ /**
923
+ * Items per page (max 200)
924
+ * @min 1
925
+ * @max 200
926
+ * @default 20
927
+ * @example 20
928
+ */
929
+ limit?: number;
930
+ }
931
+
932
+ export type FindAllOutput = AdminUserListResponseDto;
933
+
934
+ export type CreateOutput = AdminUserDetailResponseDto;
935
+
936
+ export interface FindByIdParams4 {
937
+ /** Admin User ID (UUID) */
938
+ id: string;
939
+ }
940
+
941
+ export type FindByIdOutput = AdminUserWithPermissionsResponseDto;
942
+
943
+ export interface UpdateParams4 {
944
+ /** Admin User ID (UUID) */
945
+ id: string;
946
+ }
947
+
948
+ export type UpdateOutput = AdminUserDetailResponseDto;
949
+
950
+ export interface DeleteParams4 {
951
+ /** Admin User ID (UUID) */
952
+ id: string;
953
+ }
954
+
955
+ export type DeleteOutput = any;
956
+
957
+ export interface UpdateStatusParams {
958
+ /** Admin User ID (UUID) */
959
+ id: string;
960
+ }
961
+
962
+ export type UpdateStatusData = AdminUserDetailResponseDto;
963
+
964
+ export type SeedPermissionsAndRolesData = SeedPermissionsRolesResponseDto;
965
+
966
+ export interface FindAllParams6 {
967
+ /**
968
+ * Page number (1-based)
969
+ * @default 1
970
+ * @example 1
971
+ */
972
+ page?: number;
973
+ /**
974
+ * Items per page (max 100)
975
+ * @default 20
976
+ * @example 20
977
+ */
978
+ limit?: number;
979
+ /**
980
+ * Filter by admin ID
981
+ * @example "123e4567-e89b-12d3-a456-426614174000"
982
+ */
983
+ adminId?: string;
984
+ /**
985
+ * Filter by resource type
986
+ * @example "admins"
987
+ */
988
+ resource?: string;
989
+ /**
990
+ * Filter by start date (ISO 8601)
991
+ * @example "2025-01-01T00:00:00.000Z"
992
+ */
993
+ startDate?: string;
994
+ /**
995
+ * Filter by end date (ISO 8601)
996
+ * @example "2025-12-31T23:59:59.999Z"
997
+ */
998
+ endDate?: string;
999
+ }
1000
+
1001
+ export type FindAllOutput1 = ActivityLogListResponseDto;
1002
+
1003
+ export interface FindAllParams8 {
1004
+ /**
1005
+ * Page number (1-based)
1006
+ * @min 1
1007
+ * @default 1
1008
+ * @example 1
1009
+ */
1010
+ page?: number;
1011
+ /**
1012
+ * Number of items per page
1013
+ * @min 1
1014
+ * @max 200
1015
+ * @default 20
1016
+ * @example 20
1017
+ */
1018
+ limit?: number;
1019
+ /**
1020
+ * Filter by read status
1021
+ * @example false
1022
+ */
1023
+ read?: boolean;
1024
+ }
1025
+
1026
+ export type FindAllData1 = AdminNotificationListResponseDto;
1027
+
1028
+ export type GetUnreadCountData = any;
1029
+
1030
+ export interface MarkAsReadParams {
1031
+ /** Notification ID */
1032
+ id: string;
1033
+ }
1034
+
1035
+ export type MarkAsReadData = AdminNotificationResponseDto;
1036
+
1037
+ export type MarkAllAsReadData = MessageResponseDto;
1038
+
1039
+ export interface ListAgentsParams {
1040
+ type?: string;
1041
+ status?: string;
1042
+ searchTerm?: string;
1043
+ page?: number;
1044
+ limit?: number;
1045
+ }
1046
+
1047
+ export type ListAgentsData = any;
1048
+
1049
+ export type CreateAgentData = any;
1050
+
1051
+ export interface GetAgentParams {
1052
+ /** Agent ID */
1053
+ id: string;
1054
+ }
1055
+
1056
+ export type GetAgentData = any;
1057
+
1058
+ export interface UpdateAgentParams {
1059
+ /** Agent ID */
1060
+ id: string;
1061
+ }
1062
+
1063
+ export type UpdateAgentData = any;
1064
+
1065
+ export interface DeleteAgentParams {
1066
+ /** Agent ID */
1067
+ id: string;
1068
+ }
1069
+
1070
+ export type DeleteAgentData = any;
1071
+
1072
+ export interface UpdateAgentStatusParams {
1073
+ /** Agent ID */
1074
+ id: string;
1075
+ }
1076
+
1077
+ export type UpdateAgentStatusData = any;
1078
+
1079
+ export interface GetAgentLimitsParams {
1080
+ activeOnly?: boolean;
1081
+ /** Agent ID */
1082
+ id: string;
1083
+ }
1084
+
1085
+ export type GetAgentLimitsData = any;
1086
+
1087
+ export interface SetAgentLimitParams {
1088
+ /** Agent ID */
1089
+ id: string;
1090
+ }
1091
+
1092
+ export type SetAgentLimitData = any;
1093
+
1094
+ export interface SetAgentLimitsParams {
1095
+ /** Agent ID */
1096
+ id: string;
1097
+ }
1098
+
1099
+ export type SetAgentLimitsData = any;
1100
+
1101
+ export interface DeleteAgentLimitParams {
1102
+ /** Limit ID */
1103
+ limitId: string;
1104
+ }
1105
+
1106
+ export type DeleteAgentLimitData = any;
1107
+
1108
+ export interface GetAgentCommissionsParams {
1109
+ activeOnly?: boolean;
1110
+ /** Agent ID */
1111
+ id: string;
1112
+ }
1113
+
1114
+ export type GetAgentCommissionsData = any;
1115
+
1116
+ export interface CreateAgentCommissionParams {
1117
+ /** Agent ID */
1118
+ id: string;
1119
+ }
1120
+
1121
+ export type CreateAgentCommissionData = any;
1122
+
1123
+ export interface UpdateAgentCommissionParams {
1124
+ /** Commission ID */
1125
+ commissionId: string;
1126
+ }
1127
+
1128
+ export type UpdateAgentCommissionData = any;
1129
+
1130
+ export interface DeleteAgentCommissionParams {
1131
+ /** Commission ID */
1132
+ commissionId: string;
1133
+ }
1134
+
1135
+ export type DeleteAgentCommissionData = any;
1136
+
1137
+ export interface CalculateCommissionParams {
1138
+ /** Agent ID */
1139
+ id: string;
1140
+ }
1141
+
1142
+ export type CalculateCommissionData = any;
1143
+
1144
+ export interface ListBranchesParams {
1145
+ agentId?: string;
1146
+ city?: string;
1147
+ status?: string;
1148
+ page?: number;
1149
+ limit?: number;
1150
+ }
1151
+
1152
+ export type ListBranchesData = any;
1153
+
1154
+ export type CreateBranchData = any;
1155
+
1156
+ export interface GetBranchParams {
1157
+ /** Branch ID */
1158
+ id: string;
1159
+ }
1160
+
1161
+ export type GetBranchData = any;
1162
+
1163
+ export interface UpdateBranchParams {
1164
+ /** Branch ID */
1165
+ id: string;
1166
+ }
1167
+
1168
+ export type UpdateBranchData = any;
1169
+
1170
+ export interface DeleteBranchParams {
1171
+ /** Branch ID */
1172
+ id: string;
1173
+ }
1174
+
1175
+ export type DeleteBranchData = any;
1176
+
1177
+ export interface UpdateBranchStatusParams {
1178
+ /** Branch ID */
1179
+ id: string;
1180
+ }
1181
+
1182
+ export type UpdateBranchStatusData = any;
1183
+
1184
+ export interface ListSettlementsParams {
1185
+ branchId?: string;
1186
+ status?: string;
1187
+ startDate?: string;
1188
+ endDate?: string;
1189
+ page?: number;
1190
+ limit?: number;
1191
+ }
1192
+
1193
+ export type ListSettlementsData = any;
1194
+
1195
+ export type CreateSettlementData = any;
1196
+
1197
+ export interface GetSettlementParams {
1198
+ /** Settlement ID */
1199
+ id: string;
1200
+ }
1201
+
1202
+ export type GetSettlementData = any;
1203
+
1204
+ export interface UpdateSettlementStatusParams {
1205
+ /** Settlement ID */
1206
+ id: string;
1207
+ }
1208
+
1209
+ export type UpdateSettlementStatusData = any;
1210
+
1211
+ export interface UpdateSettlementAmountsParams {
1212
+ /** Settlement ID */
1213
+ id: string;
1214
+ }
1215
+
1216
+ export type UpdateSettlementAmountsData = any;
1217
+
1218
+ export interface GetSettlementAdjustmentsParams {
1219
+ /** Settlement ID */
1220
+ id: string;
1221
+ }
1222
+
1223
+ export type GetSettlementAdjustmentsData = any;
1224
+
1225
+ export interface AddSettlementAdjustmentParams {
1226
+ /** Settlement ID */
1227
+ id: string;
1228
+ }
1229
+
1230
+ export type AddSettlementAdjustmentData = any;
1231
+
1232
+ export interface ApproveAdjustmentParams {
1233
+ /** Adjustment ID */
1234
+ adjustmentId: string;
1235
+ }
1236
+
1237
+ export type ApproveAdjustmentData = any;
1238
+
1239
+ export type GetStatisticsData = KycStatisticsResponseDto;
1240
+
1241
+ export interface FindAllParams10 {
1242
+ /**
1243
+ * Page number (1-based)
1244
+ * @min 1
1245
+ * @default 1
1246
+ * @example 1
1247
+ */
1248
+ page?: number;
1249
+ /**
1250
+ * Number of items per page
1251
+ * @min 1
1252
+ * @max 200
1253
+ * @default 20
1254
+ * @example 20
1255
+ */
1256
+ limit?: number;
1257
+ /**
1258
+ * Filter by KYC status
1259
+ * @example "pending"
1260
+ */
1261
+ status?: "pending" | "under_review" | "verified" | "rejected" | "expired";
1262
+ /**
1263
+ * Search by KYC request ID or person ID
1264
+ * @example "kyc-001"
1265
+ */
1266
+ search?: string;
1267
+ }
1268
+
1269
+ export type FindAllResult1 = KycListResponseDto;
1270
+
1271
+ export interface FindByIdParams6 {
1272
+ /** KYC request ID */
1273
+ id: string;
1274
+ }
1275
+
1276
+ export type FindByIdOutput1 = KycRequestResponseDto;
1277
+
1278
+ export interface UpdateStatusParams2 {
1279
+ /** KYC request ID */
1280
+ id: string;
1281
+ }
1282
+
1283
+ export type UpdateStatusResult = KycRequestResponseDto;