@tammsyr/admin-api-client 1.0.1 → 1.0.3
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/ActivityLogs.d.ts +17 -0
- package/dist/ActivityLogs.d.ts.map +1 -0
- package/dist/ActivityLogs.js +38 -0
- package/dist/ActivityLogs.js.map +1 -0
- package/dist/Admins.d.ts +67 -0
- package/dist/Admins.d.ts.map +1 -0
- package/dist/Admins.js +124 -0
- package/dist/Admins.js.map +1 -0
- package/dist/AgentBranches.d.ts +67 -0
- package/dist/AgentBranches.d.ts.map +1 -0
- package/dist/AgentBranches.js +119 -0
- package/dist/AgentBranches.js.map +1 -0
- package/dist/AgentSettlements.d.ts +87 -0
- package/dist/AgentSettlements.d.ts.map +1 -0
- package/dist/AgentSettlements.js +151 -0
- package/dist/AgentSettlements.js.map +1 -0
- package/dist/Agents.d.ts +157 -0
- package/dist/Agents.d.ts.map +1 -0
- package/dist/Agents.js +264 -0
- package/dist/Agents.js.map +1 -0
- package/dist/Auth.d.ts +42 -0
- package/dist/Auth.d.ts.map +1 -0
- package/dist/Auth.js +84 -0
- package/dist/Auth.js.map +1 -0
- package/dist/Kyc.d.ts +47 -0
- package/dist/Kyc.d.ts.map +1 -0
- package/dist/Kyc.js +89 -0
- package/dist/Kyc.js.map +1 -0
- package/dist/Notifications.d.ts +47 -0
- package/dist/Notifications.d.ts.map +1 -0
- package/dist/Notifications.js +85 -0
- package/dist/Notifications.js.map +1 -0
- package/dist/Permissions.d.ts +57 -0
- package/dist/Permissions.d.ts.map +1 -0
- package/dist/Permissions.js +107 -0
- package/dist/Permissions.js.map +1 -0
- package/dist/Roles.d.ts +87 -0
- package/dist/Roles.d.ts.map +1 -0
- package/dist/Roles.js +158 -0
- package/dist/Roles.js.map +1 -0
- package/dist/Seed.d.ts +17 -0
- package/dist/Seed.d.ts.map +1 -0
- package/dist/Seed.js +40 -0
- package/dist/Seed.js.map +1 -0
- package/dist/data-contracts.d.ts +1105 -0
- package/dist/data-contracts.d.ts.map +1 -0
- package/dist/data-contracts.js +14 -0
- package/dist/data-contracts.js.map +1 -0
- package/dist/http-client.d.ts +43 -0
- package/dist/http-client.d.ts.map +1 -0
- package/dist/http-client.js +111 -0
- package/dist/http-client.js.map +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +144 -0
- package/dist/index.js.map +1 -0
- package/package.json +9 -11
- package/ActivityLogs.ts +0 -41
- package/Admins.ts +0 -154
- package/AgentBranches.ts +0 -152
- package/AgentSettlements.ts +0 -204
- package/Agents.ts +0 -359
- package/Auth.ts +0 -100
- package/Kyc.ts +0 -107
- package/Notifications.ts +0 -101
- package/Permissions.ts +0 -130
- package/Roles.ts +0 -199
- package/Seed.ts +0 -48
- package/data-contracts.ts +0 -1283
- package/http-client.ts +0 -186
- package/index.ts +0 -157
|
@@ -0,0 +1,1105 @@
|
|
|
1
|
+
export interface AdminLoginRequestDto {
|
|
2
|
+
/**
|
|
3
|
+
* Admin email address
|
|
4
|
+
* @example "admin@tamm.com"
|
|
5
|
+
*/
|
|
6
|
+
email: string;
|
|
7
|
+
/**
|
|
8
|
+
* Admin password
|
|
9
|
+
* @minLength 6
|
|
10
|
+
* @example "SecureP@ss123"
|
|
11
|
+
*/
|
|
12
|
+
password: string;
|
|
13
|
+
/**
|
|
14
|
+
* Device ID
|
|
15
|
+
* @example "device-123"
|
|
16
|
+
*/
|
|
17
|
+
deviceId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Device name
|
|
20
|
+
* @example "Admin Workstation"
|
|
21
|
+
*/
|
|
22
|
+
deviceName?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface AdminUserResponseDto {
|
|
25
|
+
/**
|
|
26
|
+
* Admin user ID
|
|
27
|
+
* @example "123e4567-e89b-12d3-a456-426614174000"
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* Admin email
|
|
32
|
+
* @example "admin@tamm.com"
|
|
33
|
+
*/
|
|
34
|
+
email: string;
|
|
35
|
+
/**
|
|
36
|
+
* Admin name
|
|
37
|
+
* @example "Admin User"
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Admin role
|
|
42
|
+
* @example "super_admin"
|
|
43
|
+
*/
|
|
44
|
+
role: string;
|
|
45
|
+
/**
|
|
46
|
+
* Admin permissions
|
|
47
|
+
* @example ["users.view","kyc.view","notifications.send"]
|
|
48
|
+
*/
|
|
49
|
+
permissions: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface AdminLoginResponseDto {
|
|
52
|
+
/**
|
|
53
|
+
* JWT access token
|
|
54
|
+
* @example "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
|
|
55
|
+
*/
|
|
56
|
+
accessToken: string;
|
|
57
|
+
/**
|
|
58
|
+
* Refresh token
|
|
59
|
+
* @example "a1b2c3d4e5f6..."
|
|
60
|
+
*/
|
|
61
|
+
refreshToken: string;
|
|
62
|
+
/** Admin user information */
|
|
63
|
+
admin: AdminUserResponseDto;
|
|
64
|
+
}
|
|
65
|
+
export interface ErrorResponseDto {
|
|
66
|
+
/**
|
|
67
|
+
* Error code for programmatic handling
|
|
68
|
+
* @example "USER_NOT_FOUND"
|
|
69
|
+
*/
|
|
70
|
+
code: string;
|
|
71
|
+
/**
|
|
72
|
+
* Human-readable error message (localized based on Accept-Language)
|
|
73
|
+
* @example "المستخدم غير موجود"
|
|
74
|
+
*/
|
|
75
|
+
message: string;
|
|
76
|
+
/**
|
|
77
|
+
* HTTP status code
|
|
78
|
+
* @example 404
|
|
79
|
+
*/
|
|
80
|
+
statusCode: number;
|
|
81
|
+
/**
|
|
82
|
+
* Additional error details (e.g., validation errors)
|
|
83
|
+
* @example {"validationErrors":[{"email":"email must be a valid email"}]}
|
|
84
|
+
*/
|
|
85
|
+
details?: object;
|
|
86
|
+
}
|
|
87
|
+
export interface AdminRefreshTokenRequestDto {
|
|
88
|
+
/**
|
|
89
|
+
* Admin user ID
|
|
90
|
+
* @example "123e4567-e89b-12d3-a456-426614174000"
|
|
91
|
+
*/
|
|
92
|
+
adminId: string;
|
|
93
|
+
/**
|
|
94
|
+
* Refresh token
|
|
95
|
+
* @example "a1b2c3d4e5f6..."
|
|
96
|
+
*/
|
|
97
|
+
refreshToken: string;
|
|
98
|
+
}
|
|
99
|
+
export interface AdminLogoutRequestDto {
|
|
100
|
+
/**
|
|
101
|
+
* Admin user ID
|
|
102
|
+
* @example "123e4567-e89b-12d3-a456-426614174000"
|
|
103
|
+
*/
|
|
104
|
+
adminId: string;
|
|
105
|
+
/**
|
|
106
|
+
* Refresh token
|
|
107
|
+
* @example "a1b2c3d4e5f6..."
|
|
108
|
+
*/
|
|
109
|
+
refreshToken: string;
|
|
110
|
+
}
|
|
111
|
+
export interface AdminLogoutResponseDto {
|
|
112
|
+
/**
|
|
113
|
+
* Logout success status
|
|
114
|
+
* @example true
|
|
115
|
+
*/
|
|
116
|
+
success: boolean;
|
|
117
|
+
}
|
|
118
|
+
export interface AdminSeedRequestDto {
|
|
119
|
+
/**
|
|
120
|
+
* Admin email address
|
|
121
|
+
* @example "admin@tamm.com"
|
|
122
|
+
*/
|
|
123
|
+
email: string;
|
|
124
|
+
/**
|
|
125
|
+
* Admin password
|
|
126
|
+
* @minLength 8
|
|
127
|
+
* @example "SecureP@ss123"
|
|
128
|
+
*/
|
|
129
|
+
password: string;
|
|
130
|
+
/**
|
|
131
|
+
* Admin name
|
|
132
|
+
* @example "Super Admin"
|
|
133
|
+
*/
|
|
134
|
+
name?: string;
|
|
135
|
+
}
|
|
136
|
+
export interface PermissionResponseDto {
|
|
137
|
+
/**
|
|
138
|
+
* Permission ID
|
|
139
|
+
* @example 1
|
|
140
|
+
*/
|
|
141
|
+
id: number;
|
|
142
|
+
/**
|
|
143
|
+
* Permission name
|
|
144
|
+
* @example "users.view"
|
|
145
|
+
*/
|
|
146
|
+
name: string;
|
|
147
|
+
/**
|
|
148
|
+
* Resource this permission belongs to
|
|
149
|
+
* @example "users"
|
|
150
|
+
*/
|
|
151
|
+
resource: string;
|
|
152
|
+
/**
|
|
153
|
+
* Permission description
|
|
154
|
+
* @example "Allows viewing user information"
|
|
155
|
+
*/
|
|
156
|
+
description: string | null;
|
|
157
|
+
/** Creation timestamp */
|
|
158
|
+
createdAt: string;
|
|
159
|
+
}
|
|
160
|
+
export interface PaginationMetaDto {
|
|
161
|
+
/**
|
|
162
|
+
* Total number of items
|
|
163
|
+
* @example 100
|
|
164
|
+
*/
|
|
165
|
+
total: number;
|
|
166
|
+
/**
|
|
167
|
+
* Current page number
|
|
168
|
+
* @example 1
|
|
169
|
+
*/
|
|
170
|
+
page: number;
|
|
171
|
+
/**
|
|
172
|
+
* Number of items per page
|
|
173
|
+
* @example 20
|
|
174
|
+
*/
|
|
175
|
+
limit: number;
|
|
176
|
+
/**
|
|
177
|
+
* Total number of pages
|
|
178
|
+
* @example 5
|
|
179
|
+
*/
|
|
180
|
+
totalPages: number;
|
|
181
|
+
/**
|
|
182
|
+
* Whether there is a next page
|
|
183
|
+
* @example true
|
|
184
|
+
*/
|
|
185
|
+
hasNextPage: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Whether there is a previous page
|
|
188
|
+
* @example false
|
|
189
|
+
*/
|
|
190
|
+
hasPreviousPage: boolean;
|
|
191
|
+
}
|
|
192
|
+
export interface PermissionListResponseDto {
|
|
193
|
+
/** List of permissions */
|
|
194
|
+
data: PermissionResponseDto[];
|
|
195
|
+
/** Pagination metadata */
|
|
196
|
+
meta: PaginationMetaDto;
|
|
197
|
+
}
|
|
198
|
+
export interface CreatePermissionDto {
|
|
199
|
+
/**
|
|
200
|
+
* Permission name (unique identifier)
|
|
201
|
+
* @example "users.view"
|
|
202
|
+
*/
|
|
203
|
+
name: string;
|
|
204
|
+
/**
|
|
205
|
+
* Resource this permission belongs to
|
|
206
|
+
* @example "users"
|
|
207
|
+
*/
|
|
208
|
+
resource: string;
|
|
209
|
+
/**
|
|
210
|
+
* Permission description
|
|
211
|
+
* @example "Allows viewing user information"
|
|
212
|
+
*/
|
|
213
|
+
description?: string;
|
|
214
|
+
}
|
|
215
|
+
export interface UpdatePermissionDto {
|
|
216
|
+
/**
|
|
217
|
+
* Permission name
|
|
218
|
+
* @example "users.view"
|
|
219
|
+
*/
|
|
220
|
+
name?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Permission description
|
|
223
|
+
* @example "Allows viewing user information"
|
|
224
|
+
*/
|
|
225
|
+
description?: string;
|
|
226
|
+
}
|
|
227
|
+
export interface MessageResponseDto {
|
|
228
|
+
/**
|
|
229
|
+
* Message
|
|
230
|
+
* @example "Permission deleted successfully"
|
|
231
|
+
*/
|
|
232
|
+
message: string;
|
|
233
|
+
}
|
|
234
|
+
export interface RoleResponseDto {
|
|
235
|
+
/**
|
|
236
|
+
* Role ID
|
|
237
|
+
* @example 1
|
|
238
|
+
*/
|
|
239
|
+
id: number;
|
|
240
|
+
/**
|
|
241
|
+
* Role name
|
|
242
|
+
* @example "super_admin"
|
|
243
|
+
*/
|
|
244
|
+
name: string;
|
|
245
|
+
/**
|
|
246
|
+
* Role description
|
|
247
|
+
* @example "Full system access"
|
|
248
|
+
*/
|
|
249
|
+
description: string | null;
|
|
250
|
+
/** Creation timestamp */
|
|
251
|
+
createdAt: string;
|
|
252
|
+
/** Last update timestamp */
|
|
253
|
+
updatedAt: string;
|
|
254
|
+
}
|
|
255
|
+
export interface RoleLookupListResponseDto {
|
|
256
|
+
/** List of roles without permissions */
|
|
257
|
+
data: RoleResponseDto[];
|
|
258
|
+
/** Pagination metadata */
|
|
259
|
+
meta: PaginationMetaDto;
|
|
260
|
+
}
|
|
261
|
+
export interface RoleWithPermissionsResponseDto {
|
|
262
|
+
/**
|
|
263
|
+
* Role ID
|
|
264
|
+
* @example 1
|
|
265
|
+
*/
|
|
266
|
+
id: number;
|
|
267
|
+
/**
|
|
268
|
+
* Role name
|
|
269
|
+
* @example "super_admin"
|
|
270
|
+
*/
|
|
271
|
+
name: string;
|
|
272
|
+
/**
|
|
273
|
+
* Role description
|
|
274
|
+
* @example "Full system access"
|
|
275
|
+
*/
|
|
276
|
+
description: string | null;
|
|
277
|
+
/** Creation timestamp */
|
|
278
|
+
createdAt: string;
|
|
279
|
+
/** Last update timestamp */
|
|
280
|
+
updatedAt: string;
|
|
281
|
+
/** List of permissions assigned to this role */
|
|
282
|
+
permissions: PermissionResponseDto[];
|
|
283
|
+
}
|
|
284
|
+
export interface RoleListResponseDto {
|
|
285
|
+
/** List of roles with their permissions */
|
|
286
|
+
data: RoleWithPermissionsResponseDto[];
|
|
287
|
+
/** Pagination metadata */
|
|
288
|
+
meta: PaginationMetaDto;
|
|
289
|
+
}
|
|
290
|
+
export interface CreateRoleDto {
|
|
291
|
+
/**
|
|
292
|
+
* Role name (unique identifier)
|
|
293
|
+
* @example "content_manager"
|
|
294
|
+
*/
|
|
295
|
+
name: string;
|
|
296
|
+
/**
|
|
297
|
+
* Role description
|
|
298
|
+
* @example "Manages content and publications"
|
|
299
|
+
*/
|
|
300
|
+
description?: string;
|
|
301
|
+
/**
|
|
302
|
+
* Array of permission IDs to assign to the role
|
|
303
|
+
* @example [1,2,3]
|
|
304
|
+
*/
|
|
305
|
+
permissionIds?: number[];
|
|
306
|
+
}
|
|
307
|
+
export interface UpdateRoleDto {
|
|
308
|
+
/**
|
|
309
|
+
* Role description
|
|
310
|
+
* @example "Manages content and publications"
|
|
311
|
+
*/
|
|
312
|
+
description?: string;
|
|
313
|
+
}
|
|
314
|
+
export interface AssignPermissionsDto {
|
|
315
|
+
/**
|
|
316
|
+
* Array of permission IDs to assign
|
|
317
|
+
* @example [1,2,3]
|
|
318
|
+
*/
|
|
319
|
+
permissionIds: number[];
|
|
320
|
+
}
|
|
321
|
+
export interface AdminUserDetailResponseDto {
|
|
322
|
+
/**
|
|
323
|
+
* Admin ID
|
|
324
|
+
* @example "123e4567-e89b-12d3-a456-426614174000"
|
|
325
|
+
*/
|
|
326
|
+
id: string;
|
|
327
|
+
/**
|
|
328
|
+
* Admin email
|
|
329
|
+
* @example "admin@example.com"
|
|
330
|
+
*/
|
|
331
|
+
email: string;
|
|
332
|
+
/**
|
|
333
|
+
* Admin name
|
|
334
|
+
* @example "John Doe"
|
|
335
|
+
*/
|
|
336
|
+
name: string;
|
|
337
|
+
/**
|
|
338
|
+
* Role ID
|
|
339
|
+
* @example 1
|
|
340
|
+
*/
|
|
341
|
+
roleId: number;
|
|
342
|
+
/**
|
|
343
|
+
* Role name
|
|
344
|
+
* @example "admin"
|
|
345
|
+
*/
|
|
346
|
+
roleName: string;
|
|
347
|
+
/**
|
|
348
|
+
* Admin status
|
|
349
|
+
* @example "active"
|
|
350
|
+
*/
|
|
351
|
+
status: string;
|
|
352
|
+
/** Creation timestamp */
|
|
353
|
+
createdAt: string;
|
|
354
|
+
/** Last update timestamp */
|
|
355
|
+
updatedAt: string;
|
|
356
|
+
}
|
|
357
|
+
export interface AdminUserListResponseDto {
|
|
358
|
+
/** List of admin users */
|
|
359
|
+
data: AdminUserDetailResponseDto[];
|
|
360
|
+
/** Pagination metadata */
|
|
361
|
+
meta: PaginationMetaDto;
|
|
362
|
+
}
|
|
363
|
+
export interface PermissionWithIdDto {
|
|
364
|
+
/**
|
|
365
|
+
* Permission ID
|
|
366
|
+
* @example 1
|
|
367
|
+
*/
|
|
368
|
+
id: number;
|
|
369
|
+
/**
|
|
370
|
+
* Permission name
|
|
371
|
+
* @example "users.view"
|
|
372
|
+
*/
|
|
373
|
+
name: string;
|
|
374
|
+
}
|
|
375
|
+
export interface AdminUserWithPermissionsResponseDto {
|
|
376
|
+
/**
|
|
377
|
+
* Admin ID
|
|
378
|
+
* @example "123e4567-e89b-12d3-a456-426614174000"
|
|
379
|
+
*/
|
|
380
|
+
id: string;
|
|
381
|
+
/**
|
|
382
|
+
* Admin email
|
|
383
|
+
* @example "admin@example.com"
|
|
384
|
+
*/
|
|
385
|
+
email: string;
|
|
386
|
+
/**
|
|
387
|
+
* Admin name
|
|
388
|
+
* @example "John Doe"
|
|
389
|
+
*/
|
|
390
|
+
name: string;
|
|
391
|
+
/**
|
|
392
|
+
* Role ID
|
|
393
|
+
* @example 1
|
|
394
|
+
*/
|
|
395
|
+
roleId: number;
|
|
396
|
+
/**
|
|
397
|
+
* Role name
|
|
398
|
+
* @example "admin"
|
|
399
|
+
*/
|
|
400
|
+
roleName: string;
|
|
401
|
+
/**
|
|
402
|
+
* Admin status
|
|
403
|
+
* @example "active"
|
|
404
|
+
*/
|
|
405
|
+
status: string;
|
|
406
|
+
/** Creation timestamp */
|
|
407
|
+
createdAt: string;
|
|
408
|
+
/** Last update timestamp */
|
|
409
|
+
updatedAt: string;
|
|
410
|
+
/** List of permissions with IDs */
|
|
411
|
+
permissions: PermissionWithIdDto[];
|
|
412
|
+
}
|
|
413
|
+
export interface CreateAdminDto {
|
|
414
|
+
/**
|
|
415
|
+
* Admin email address
|
|
416
|
+
* @example "admin@example.com"
|
|
417
|
+
*/
|
|
418
|
+
email: string;
|
|
419
|
+
/**
|
|
420
|
+
* Admin password
|
|
421
|
+
* @minLength 8
|
|
422
|
+
* @example "SecureP@ss123"
|
|
423
|
+
*/
|
|
424
|
+
password: string;
|
|
425
|
+
/**
|
|
426
|
+
* Admin full name
|
|
427
|
+
* @example "John Doe"
|
|
428
|
+
*/
|
|
429
|
+
name: string;
|
|
430
|
+
/**
|
|
431
|
+
* Role ID to assign
|
|
432
|
+
* @example 1
|
|
433
|
+
*/
|
|
434
|
+
roleId: number;
|
|
435
|
+
}
|
|
436
|
+
export interface UpdateAdminDto {
|
|
437
|
+
/**
|
|
438
|
+
* Admin full name
|
|
439
|
+
* @example "John Doe"
|
|
440
|
+
*/
|
|
441
|
+
name?: string;
|
|
442
|
+
/**
|
|
443
|
+
* Role ID to assign
|
|
444
|
+
* @example 1
|
|
445
|
+
*/
|
|
446
|
+
roleId?: number;
|
|
447
|
+
}
|
|
448
|
+
export interface UpdateAdminStatusDto {
|
|
449
|
+
/**
|
|
450
|
+
* New admin status
|
|
451
|
+
* @example "active"
|
|
452
|
+
*/
|
|
453
|
+
status: "active" | "suspended";
|
|
454
|
+
}
|
|
455
|
+
export interface SeedPermissionsRolesRequestDto {
|
|
456
|
+
/**
|
|
457
|
+
* Assign all permissions to super_admin role
|
|
458
|
+
* @default true
|
|
459
|
+
* @example true
|
|
460
|
+
*/
|
|
461
|
+
assignToSuperAdmin?: boolean;
|
|
462
|
+
}
|
|
463
|
+
export interface SeedPermissionsRolesResponseDto {
|
|
464
|
+
/** Operation success status */
|
|
465
|
+
success: boolean;
|
|
466
|
+
/** Response message */
|
|
467
|
+
message: string;
|
|
468
|
+
/** Number of permissions seeded */
|
|
469
|
+
permissionsSeeded: number;
|
|
470
|
+
/** Number of roles seeded */
|
|
471
|
+
rolesSeeded: number;
|
|
472
|
+
/** Number of permissions assigned to super_admin */
|
|
473
|
+
permissionsAssigned?: number;
|
|
474
|
+
}
|
|
475
|
+
export interface ActivityLogResponseDto {
|
|
476
|
+
/**
|
|
477
|
+
* Activity log ID
|
|
478
|
+
* @example "507f1f77bcf86cd799439011"
|
|
479
|
+
*/
|
|
480
|
+
id: string;
|
|
481
|
+
/**
|
|
482
|
+
* Date and time of the action
|
|
483
|
+
* @format date-time
|
|
484
|
+
* @example "2025-01-15T10:30:00.000Z"
|
|
485
|
+
*/
|
|
486
|
+
date: string;
|
|
487
|
+
/**
|
|
488
|
+
* Admin user ID
|
|
489
|
+
* @example "123e4567-e89b-12d3-a456-426614174000"
|
|
490
|
+
*/
|
|
491
|
+
adminId: string;
|
|
492
|
+
/**
|
|
493
|
+
* Admin user name (email)
|
|
494
|
+
* @example "admin@example.com"
|
|
495
|
+
*/
|
|
496
|
+
adminName: string;
|
|
497
|
+
/**
|
|
498
|
+
* Action type
|
|
499
|
+
* @example "CREATE"
|
|
500
|
+
*/
|
|
501
|
+
action: "CREATE" | "UPDATE" | "DELETE" | "LOGIN" | "LOGOUT";
|
|
502
|
+
/**
|
|
503
|
+
* Resource type
|
|
504
|
+
* @example "admins"
|
|
505
|
+
*/
|
|
506
|
+
resource: string;
|
|
507
|
+
/**
|
|
508
|
+
* Resource ID
|
|
509
|
+
* @example "123"
|
|
510
|
+
*/
|
|
511
|
+
resourceId?: string;
|
|
512
|
+
}
|
|
513
|
+
export interface ActivityLogListResponseDto {
|
|
514
|
+
/** List of activity logs */
|
|
515
|
+
data: ActivityLogResponseDto[];
|
|
516
|
+
/** Pagination metadata */
|
|
517
|
+
meta: PaginationMetaDto;
|
|
518
|
+
}
|
|
519
|
+
export interface AdminNotificationResponseDto {
|
|
520
|
+
/**
|
|
521
|
+
* Notification ID
|
|
522
|
+
* @example "507f1f77bcf86cd799439011"
|
|
523
|
+
*/
|
|
524
|
+
id: string;
|
|
525
|
+
/**
|
|
526
|
+
* Date and time of the notification
|
|
527
|
+
* @format date-time
|
|
528
|
+
* @example "2025-01-15T10:30:00.000Z"
|
|
529
|
+
*/
|
|
530
|
+
date: string;
|
|
531
|
+
/**
|
|
532
|
+
* Admin user ID who triggered the action
|
|
533
|
+
* @example "123e4567-e89b-12d3-a456-426614174000"
|
|
534
|
+
*/
|
|
535
|
+
adminId: string;
|
|
536
|
+
/**
|
|
537
|
+
* Admin user ID who should receive this notification
|
|
538
|
+
* @example "123e4567-e89b-12d3-a456-426614174000"
|
|
539
|
+
*/
|
|
540
|
+
recipientAdminId: string;
|
|
541
|
+
/**
|
|
542
|
+
* Admin user name (email)
|
|
543
|
+
* @example "admin@example.com"
|
|
544
|
+
*/
|
|
545
|
+
adminName: string;
|
|
546
|
+
/**
|
|
547
|
+
* Action description
|
|
548
|
+
* @example "deleted role admin_role"
|
|
549
|
+
*/
|
|
550
|
+
action: string;
|
|
551
|
+
/**
|
|
552
|
+
* Resource type
|
|
553
|
+
* @example "roles"
|
|
554
|
+
*/
|
|
555
|
+
resource: string;
|
|
556
|
+
/**
|
|
557
|
+
* Resource ID
|
|
558
|
+
* @example "123"
|
|
559
|
+
*/
|
|
560
|
+
resourceId?: string;
|
|
561
|
+
/**
|
|
562
|
+
* Notification type for categorization
|
|
563
|
+
* @example "ROLE_CHANGE"
|
|
564
|
+
*/
|
|
565
|
+
type?: string;
|
|
566
|
+
/**
|
|
567
|
+
* Whether the notification has been read
|
|
568
|
+
* @example false
|
|
569
|
+
*/
|
|
570
|
+
read: boolean;
|
|
571
|
+
}
|
|
572
|
+
export interface AdminNotificationListResponseDto {
|
|
573
|
+
/** Array of notifications */
|
|
574
|
+
data: AdminNotificationResponseDto[];
|
|
575
|
+
/** Pagination metadata */
|
|
576
|
+
meta: PaginationMetaDto;
|
|
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;
|
|
592
|
+
export interface KycStatisticsResponseDto {
|
|
593
|
+
/**
|
|
594
|
+
* Total number of KYC requests
|
|
595
|
+
* @example 150
|
|
596
|
+
*/
|
|
597
|
+
total: number;
|
|
598
|
+
/**
|
|
599
|
+
* Number of pending KYC requests
|
|
600
|
+
* @example 45
|
|
601
|
+
*/
|
|
602
|
+
pending: number;
|
|
603
|
+
/**
|
|
604
|
+
* Number of KYC requests under review
|
|
605
|
+
* @example 12
|
|
606
|
+
*/
|
|
607
|
+
underReview: number;
|
|
608
|
+
/**
|
|
609
|
+
* Number of approved/verified KYC requests
|
|
610
|
+
* @example 80
|
|
611
|
+
*/
|
|
612
|
+
approved: number;
|
|
613
|
+
/**
|
|
614
|
+
* Number of rejected KYC requests
|
|
615
|
+
* @example 13
|
|
616
|
+
*/
|
|
617
|
+
rejected: number;
|
|
618
|
+
}
|
|
619
|
+
export interface ListKycResponseRow {
|
|
620
|
+
id: string;
|
|
621
|
+
fullName: string;
|
|
622
|
+
/**
|
|
623
|
+
* KYC request status
|
|
624
|
+
* @example "pending"
|
|
625
|
+
*/
|
|
626
|
+
status: "pending" | "under_review" | "verified" | "rejected" | "expired";
|
|
627
|
+
createdAt: string;
|
|
628
|
+
}
|
|
629
|
+
export interface KycListResponseDto {
|
|
630
|
+
/** List of KYC requests */
|
|
631
|
+
data: ListKycResponseRow[];
|
|
632
|
+
/** Pagination metadata */
|
|
633
|
+
meta: PaginationMetaDto;
|
|
634
|
+
}
|
|
635
|
+
export interface KycDocumentResponseDto {
|
|
636
|
+
/**
|
|
637
|
+
* Document type
|
|
638
|
+
* @example "id_front"
|
|
639
|
+
*/
|
|
640
|
+
documentType: "id_front" | "id_back" | "selfie";
|
|
641
|
+
/**
|
|
642
|
+
* Reference to the encrypted storage location
|
|
643
|
+
* @example "uploads/kyc/123/id_front.enc"
|
|
644
|
+
*/
|
|
645
|
+
storageReference: string;
|
|
646
|
+
}
|
|
647
|
+
export interface KycRequestResponseDto {
|
|
648
|
+
/**
|
|
649
|
+
* KYC request unique identifier
|
|
650
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
651
|
+
*/
|
|
652
|
+
id: string;
|
|
653
|
+
/**
|
|
654
|
+
* Person unique identifier
|
|
655
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
656
|
+
*/
|
|
657
|
+
personId: string;
|
|
658
|
+
firstName: string;
|
|
659
|
+
lastName: string;
|
|
660
|
+
motherName: string;
|
|
661
|
+
nationality: string;
|
|
662
|
+
dateOfBirth: string;
|
|
663
|
+
address: string;
|
|
664
|
+
documentType: object;
|
|
665
|
+
/**
|
|
666
|
+
* KYC provider (MANUAL, AUTOMATED, etc.)
|
|
667
|
+
* @example "MANUAL"
|
|
668
|
+
*/
|
|
669
|
+
provider: string;
|
|
670
|
+
/**
|
|
671
|
+
* KYC request status
|
|
672
|
+
* @example "pending"
|
|
673
|
+
*/
|
|
674
|
+
status: "pending" | "under_review" | "verified" | "rejected" | "expired";
|
|
675
|
+
/** Uploaded documents for this request */
|
|
676
|
+
documents: KycDocumentResponseDto[];
|
|
677
|
+
/**
|
|
678
|
+
* Timestamp when the request entered review
|
|
679
|
+
* @example "2025-01-01T12:00:00.000Z"
|
|
680
|
+
*/
|
|
681
|
+
reviewAt: object | null;
|
|
682
|
+
/**
|
|
683
|
+
* Rejection reason if status is rejected
|
|
684
|
+
* @example "DOCUMENT_BLURRY"
|
|
685
|
+
*/
|
|
686
|
+
rejectionReason: object | null;
|
|
687
|
+
/**
|
|
688
|
+
* Admin identifier who reviewed the request
|
|
689
|
+
* @example "admin-123"
|
|
690
|
+
*/
|
|
691
|
+
reviewedByAdminId: object | null;
|
|
692
|
+
/**
|
|
693
|
+
* Creation timestamp of the request
|
|
694
|
+
* @example "2025-01-01T11:00:00.000Z"
|
|
695
|
+
*/
|
|
696
|
+
createdAt: string;
|
|
697
|
+
/** @example "2025-01-01T11:00:00.000Z" */
|
|
698
|
+
updatedAt: string;
|
|
699
|
+
}
|
|
700
|
+
export interface UpdateKycStatusDto {
|
|
701
|
+
/**
|
|
702
|
+
* Target status: under_review (start review), rejected or verified (approve)
|
|
703
|
+
* @example "under_review"
|
|
704
|
+
*/
|
|
705
|
+
status: "pending" | "under_review" | "verified" | "rejected" | "expired";
|
|
706
|
+
/**
|
|
707
|
+
* Rejection reason
|
|
708
|
+
* @example "Document is blurry"
|
|
709
|
+
*/
|
|
710
|
+
rejectionReason: string;
|
|
711
|
+
}
|
|
712
|
+
export type LoginData = AdminLoginResponseDto;
|
|
713
|
+
export type LoginError = ErrorResponseDto;
|
|
714
|
+
export type RefreshData = AdminLoginResponseDto;
|
|
715
|
+
export type RefreshError = ErrorResponseDto;
|
|
716
|
+
export type LogoutData = AdminLogoutResponseDto;
|
|
717
|
+
export type SeedData = any;
|
|
718
|
+
export interface FindAllParams {
|
|
719
|
+
/**
|
|
720
|
+
* Page number (1-based)
|
|
721
|
+
* @min 1
|
|
722
|
+
* @default 1
|
|
723
|
+
* @example 1
|
|
724
|
+
*/
|
|
725
|
+
page?: number;
|
|
726
|
+
/**
|
|
727
|
+
* Items per page (max 200)
|
|
728
|
+
* @min 1
|
|
729
|
+
* @max 200
|
|
730
|
+
* @default 20
|
|
731
|
+
* @example 20
|
|
732
|
+
*/
|
|
733
|
+
limit?: number;
|
|
734
|
+
}
|
|
735
|
+
export type FindAllData = PermissionListResponseDto;
|
|
736
|
+
export type CreateData = PermissionResponseDto;
|
|
737
|
+
export interface FindByIdParams {
|
|
738
|
+
/** Permission ID */
|
|
739
|
+
id: number;
|
|
740
|
+
}
|
|
741
|
+
export type FindByIdData = PermissionResponseDto;
|
|
742
|
+
export interface UpdateParams {
|
|
743
|
+
/** Permission ID */
|
|
744
|
+
id: number;
|
|
745
|
+
}
|
|
746
|
+
export type UpdateData = PermissionResponseDto;
|
|
747
|
+
export interface DeleteParams {
|
|
748
|
+
/** Permission ID */
|
|
749
|
+
id: number;
|
|
750
|
+
}
|
|
751
|
+
export type DeleteData = MessageResponseDto;
|
|
752
|
+
export type DeleteError = ErrorResponseDto;
|
|
753
|
+
export interface LookupParams {
|
|
754
|
+
/**
|
|
755
|
+
* Page number (1-based)
|
|
756
|
+
* @min 1
|
|
757
|
+
* @default 1
|
|
758
|
+
* @example 1
|
|
759
|
+
*/
|
|
760
|
+
page?: number;
|
|
761
|
+
/**
|
|
762
|
+
* Items per page (max 200)
|
|
763
|
+
* @min 1
|
|
764
|
+
* @max 200
|
|
765
|
+
* @default 20
|
|
766
|
+
* @example 20
|
|
767
|
+
*/
|
|
768
|
+
limit?: number;
|
|
769
|
+
}
|
|
770
|
+
export type LookupData = RoleLookupListResponseDto;
|
|
771
|
+
export interface FindAllParams2 {
|
|
772
|
+
/**
|
|
773
|
+
* Page number (1-based)
|
|
774
|
+
* @min 1
|
|
775
|
+
* @default 1
|
|
776
|
+
* @example 1
|
|
777
|
+
*/
|
|
778
|
+
page?: number;
|
|
779
|
+
/**
|
|
780
|
+
* Items per page (max 200)
|
|
781
|
+
* @min 1
|
|
782
|
+
* @max 200
|
|
783
|
+
* @default 20
|
|
784
|
+
* @example 20
|
|
785
|
+
*/
|
|
786
|
+
limit?: number;
|
|
787
|
+
}
|
|
788
|
+
export type FindAllResult = RoleListResponseDto;
|
|
789
|
+
export type CreateResult = RoleWithPermissionsResponseDto;
|
|
790
|
+
export interface FindByIdParams2 {
|
|
791
|
+
/** Role ID */
|
|
792
|
+
id: number;
|
|
793
|
+
}
|
|
794
|
+
export type FindByIdResult = RoleWithPermissionsResponseDto;
|
|
795
|
+
export interface UpdateParams2 {
|
|
796
|
+
/** Role ID */
|
|
797
|
+
id: number;
|
|
798
|
+
}
|
|
799
|
+
export type UpdateResult = RoleWithPermissionsResponseDto;
|
|
800
|
+
export interface DeleteParams2 {
|
|
801
|
+
/** Role ID */
|
|
802
|
+
id: number;
|
|
803
|
+
}
|
|
804
|
+
export type DeleteResult = MessageResponseDto;
|
|
805
|
+
export type DeleteFail = ErrorResponseDto;
|
|
806
|
+
export interface SetPermissionsParams {
|
|
807
|
+
/** Role ID */
|
|
808
|
+
id: number;
|
|
809
|
+
}
|
|
810
|
+
export type SetPermissionsData = any;
|
|
811
|
+
export interface AddPermissionsParams {
|
|
812
|
+
/** Role ID */
|
|
813
|
+
id: number;
|
|
814
|
+
}
|
|
815
|
+
export type AddPermissionsData = any;
|
|
816
|
+
export interface FindAllParams4 {
|
|
817
|
+
/**
|
|
818
|
+
* Page number (1-based)
|
|
819
|
+
* @min 1
|
|
820
|
+
* @default 1
|
|
821
|
+
* @example 1
|
|
822
|
+
*/
|
|
823
|
+
page?: number;
|
|
824
|
+
/**
|
|
825
|
+
* Items per page (max 200)
|
|
826
|
+
* @min 1
|
|
827
|
+
* @max 200
|
|
828
|
+
* @default 20
|
|
829
|
+
* @example 20
|
|
830
|
+
*/
|
|
831
|
+
limit?: number;
|
|
832
|
+
}
|
|
833
|
+
export type FindAllOutput = AdminUserListResponseDto;
|
|
834
|
+
export type CreateOutput = AdminUserDetailResponseDto;
|
|
835
|
+
export interface FindByIdParams4 {
|
|
836
|
+
/** Admin User ID (UUID) */
|
|
837
|
+
id: string;
|
|
838
|
+
}
|
|
839
|
+
export type FindByIdOutput = AdminUserWithPermissionsResponseDto;
|
|
840
|
+
export interface UpdateParams4 {
|
|
841
|
+
/** Admin User ID (UUID) */
|
|
842
|
+
id: string;
|
|
843
|
+
}
|
|
844
|
+
export type UpdateOutput = AdminUserDetailResponseDto;
|
|
845
|
+
export interface DeleteParams4 {
|
|
846
|
+
/** Admin User ID (UUID) */
|
|
847
|
+
id: string;
|
|
848
|
+
}
|
|
849
|
+
export type DeleteOutput = any;
|
|
850
|
+
export interface UpdateStatusParams {
|
|
851
|
+
/** Admin User ID (UUID) */
|
|
852
|
+
id: string;
|
|
853
|
+
}
|
|
854
|
+
export type UpdateStatusData = AdminUserDetailResponseDto;
|
|
855
|
+
export type SeedPermissionsAndRolesData = SeedPermissionsRolesResponseDto;
|
|
856
|
+
export interface FindAllParams6 {
|
|
857
|
+
/**
|
|
858
|
+
* Page number (1-based)
|
|
859
|
+
* @default 1
|
|
860
|
+
* @example 1
|
|
861
|
+
*/
|
|
862
|
+
page?: number;
|
|
863
|
+
/**
|
|
864
|
+
* Items per page (max 100)
|
|
865
|
+
* @default 20
|
|
866
|
+
* @example 20
|
|
867
|
+
*/
|
|
868
|
+
limit?: number;
|
|
869
|
+
/**
|
|
870
|
+
* Filter by admin ID
|
|
871
|
+
* @example "123e4567-e89b-12d3-a456-426614174000"
|
|
872
|
+
*/
|
|
873
|
+
adminId?: string;
|
|
874
|
+
/**
|
|
875
|
+
* Filter by resource type
|
|
876
|
+
* @example "admins"
|
|
877
|
+
*/
|
|
878
|
+
resource?: string;
|
|
879
|
+
/**
|
|
880
|
+
* Filter by start date (ISO 8601)
|
|
881
|
+
* @example "2025-01-01T00:00:00.000Z"
|
|
882
|
+
*/
|
|
883
|
+
startDate?: string;
|
|
884
|
+
/**
|
|
885
|
+
* Filter by end date (ISO 8601)
|
|
886
|
+
* @example "2025-12-31T23:59:59.999Z"
|
|
887
|
+
*/
|
|
888
|
+
endDate?: string;
|
|
889
|
+
}
|
|
890
|
+
export type FindAllOutput1 = ActivityLogListResponseDto;
|
|
891
|
+
export interface FindAllParams8 {
|
|
892
|
+
/**
|
|
893
|
+
* Page number (1-based)
|
|
894
|
+
* @min 1
|
|
895
|
+
* @default 1
|
|
896
|
+
* @example 1
|
|
897
|
+
*/
|
|
898
|
+
page?: number;
|
|
899
|
+
/**
|
|
900
|
+
* Number of items per page
|
|
901
|
+
* @min 1
|
|
902
|
+
* @max 200
|
|
903
|
+
* @default 20
|
|
904
|
+
* @example 20
|
|
905
|
+
*/
|
|
906
|
+
limit?: number;
|
|
907
|
+
/**
|
|
908
|
+
* Filter by read status
|
|
909
|
+
* @example false
|
|
910
|
+
*/
|
|
911
|
+
read?: boolean;
|
|
912
|
+
}
|
|
913
|
+
export type FindAllData1 = AdminNotificationListResponseDto;
|
|
914
|
+
export type GetUnreadCountData = any;
|
|
915
|
+
export interface MarkAsReadParams {
|
|
916
|
+
/** Notification ID */
|
|
917
|
+
id: string;
|
|
918
|
+
}
|
|
919
|
+
export type MarkAsReadData = AdminNotificationResponseDto;
|
|
920
|
+
export type MarkAllAsReadData = MessageResponseDto;
|
|
921
|
+
export interface ListAgentsParams {
|
|
922
|
+
type?: string;
|
|
923
|
+
status?: string;
|
|
924
|
+
searchTerm?: string;
|
|
925
|
+
page?: number;
|
|
926
|
+
limit?: number;
|
|
927
|
+
}
|
|
928
|
+
export type ListAgentsData = any;
|
|
929
|
+
export type CreateAgentData = any;
|
|
930
|
+
export interface GetAgentParams {
|
|
931
|
+
/** Agent ID */
|
|
932
|
+
id: string;
|
|
933
|
+
}
|
|
934
|
+
export type GetAgentData = any;
|
|
935
|
+
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 */
|
|
958
|
+
id: string;
|
|
959
|
+
}
|
|
960
|
+
export type SetAgentLimitData = any;
|
|
961
|
+
export interface SetAgentLimitsParams {
|
|
962
|
+
/** Agent ID */
|
|
963
|
+
id: string;
|
|
964
|
+
}
|
|
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 */
|
|
979
|
+
id: string;
|
|
980
|
+
}
|
|
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 {
|
|
993
|
+
/** Agent ID */
|
|
994
|
+
id: string;
|
|
995
|
+
}
|
|
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;
|
|
1067
|
+
export interface FindAllParams10 {
|
|
1068
|
+
/**
|
|
1069
|
+
* Page number (1-based)
|
|
1070
|
+
* @min 1
|
|
1071
|
+
* @default 1
|
|
1072
|
+
* @example 1
|
|
1073
|
+
*/
|
|
1074
|
+
page?: number;
|
|
1075
|
+
/**
|
|
1076
|
+
* Number of items per page
|
|
1077
|
+
* @min 1
|
|
1078
|
+
* @max 200
|
|
1079
|
+
* @default 20
|
|
1080
|
+
* @example 20
|
|
1081
|
+
*/
|
|
1082
|
+
limit?: number;
|
|
1083
|
+
/**
|
|
1084
|
+
* Filter by KYC status
|
|
1085
|
+
* @example "pending"
|
|
1086
|
+
*/
|
|
1087
|
+
status?: "pending" | "under_review" | "verified" | "rejected" | "expired";
|
|
1088
|
+
/**
|
|
1089
|
+
* Search by KYC request ID or person ID
|
|
1090
|
+
* @example "kyc-001"
|
|
1091
|
+
*/
|
|
1092
|
+
search?: string;
|
|
1093
|
+
}
|
|
1094
|
+
export type FindAllResult1 = KycListResponseDto;
|
|
1095
|
+
export interface FindByIdParams6 {
|
|
1096
|
+
/** KYC request ID */
|
|
1097
|
+
id: string;
|
|
1098
|
+
}
|
|
1099
|
+
export type FindByIdOutput1 = KycRequestResponseDto;
|
|
1100
|
+
export interface UpdateStatusParams2 {
|
|
1101
|
+
/** KYC request ID */
|
|
1102
|
+
id: string;
|
|
1103
|
+
}
|
|
1104
|
+
export type UpdateStatusResult = KycRequestResponseDto;
|
|
1105
|
+
//# sourceMappingURL=data-contracts.d.ts.map
|