@temboplus/afloat 0.1.74-0 → 0.1.76-beta.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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -6
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/api/index.d.ts +0 -1
- package/dist/lib/error/error.permission.d.ts +1 -1
- package/dist/lib/query/index.d.ts +2 -0
- package/dist/lib/query/pagination/pagination.d.ts +73 -0
- package/dist/lib/query/pagination/pagination.schemas.d.ts +83 -0
- package/dist/{features → modules}/auth/auth.contract.d.ts +2 -9
- package/dist/{features → modules}/auth/auth.manager.d.ts +2 -2
- package/dist/{features → modules}/auth/auth.repository.d.ts +18 -1
- package/dist/{features → modules}/auth/auth.store.d.ts +1 -1
- package/dist/modules/auth/index.d.ts +4 -0
- package/dist/{features → modules}/auth/storage/client-store.d.ts +1 -1
- package/dist/{features → modules}/auth/storage/types.d.ts +1 -1
- package/dist/{models → modules/auth}/user.model.d.ts +4 -3
- package/dist/{models → modules/contact}/contact-info.model.d.ts +2 -2
- package/dist/{features → modules}/contact/contact-input-handler.d.ts +1 -1
- package/dist/{models → modules/contact}/contact.model.d.ts +1 -1
- package/dist/{features → modules}/contact/contact.repository.d.ts +2 -2
- package/dist/modules/contact/index.d.ts +4 -0
- package/dist/modules/login/index.d.ts +2 -0
- package/dist/modules/login/login.model.d.ts +1 -0
- package/dist/{features/auth/identity/identity.repository.d.ts → modules/login/login.repository.d.ts} +1 -1
- package/dist/{features → modules}/payout/index.d.ts +2 -0
- package/dist/{features → modules}/payout/payout-channel-handler.d.ts +2 -2
- package/dist/{models → modules/payout}/payout.model.d.ts +2 -2
- package/dist/{features → modules}/payout/payout.repository.d.ts +28 -16
- package/dist/modules/profile/index.d.ts +3 -0
- package/dist/{models → modules/profile}/profile.model.d.ts +1 -1
- package/dist/{features/auth → modules}/profile/profile.repository.d.ts +1 -1
- package/dist/modules/user/index.d.ts +4 -0
- package/dist/{models → modules/user}/role.model.d.ts +1 -1
- package/dist/{features/admin/admin.contract.d.ts → modules/user/user.contract.d.ts} +73 -73
- package/dist/{models/managed-user.model.d.ts → modules/user/user.model.d.ts} +1 -1
- package/dist/{features/admin/admin.repository.d.ts → modules/user/user.repository.d.ts} +4 -4
- package/dist/{features → modules}/wallet/index.d.ts +5 -2
- package/dist/{models → modules/wallet}/narration.model.d.ts +1 -1
- package/dist/{models → modules/wallet}/statement-entry.model.d.ts +1 -1
- package/dist/{features → modules}/wallet/wallet-manager.session.d.ts +2 -2
- package/dist/{models → modules/wallet}/wallet.model.d.ts +1 -1
- package/dist/{features → modules}/wallet/wallet.repository.d.ts +2 -2
- package/dist/{features → modules}/wallet/wallet.utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/features/admin/index.d.ts +0 -2
- package/dist/features/auth/access/access.api-contract.d.ts +0 -13
- package/dist/features/auth/access/access.repository.d.ts +0 -55
- package/dist/features/auth/index.d.ts +0 -5
- package/dist/features/contact/index.d.ts +0 -2
- package/dist/lib/api/common-schemas.d.ts +0 -49
- package/dist/models/index.d.ts +0 -11
- package/dist/{models/permission.d.ts → modules/auth/permission.type.d.ts} +0 -0
- package/dist/{features → modules}/auth/storage/client-token-handler.d.ts +0 -0
- package/dist/{features → modules}/contact/contact.api-contract.d.ts +24 -24
- package/dist/{features → modules}/contact/contact.dtos.d.ts +6 -6
- package/dist/{features/auth/identity/identity.api-contract.d.ts → modules/login/login.api-contract.d.ts} +0 -0
- package/dist/{features → modules}/payout/payout.api-contract.d.ts +55 -55
- package/dist/{features → modules}/payout/payout.dtos.d.ts +50 -50
- package/dist/{features → modules}/payout/payout.query.d.ts +0 -0
- package/dist/{features/auth → modules}/profile/profile.api-contract.d.ts +0 -0
- package/dist/{features/auth → modules}/profile/profile.dtos.d.ts +0 -0
- package/dist/{features/admin/admin.dtos.d.ts → modules/user/user.dtos.d.ts} +0 -0
- package/dist/{features → modules}/wallet/wallet.contract.d.ts +12 -12
- package/dist/{features → modules}/wallet/wallet.dtos.d.ts +24 -24
|
@@ -19,28 +19,28 @@ export declare const userManagementContract: {
|
|
|
19
19
|
type?: string | undefined;
|
|
20
20
|
name?: string | undefined;
|
|
21
21
|
id?: string | undefined;
|
|
22
|
-
|
|
22
|
+
resetPassword?: number | undefined;
|
|
23
|
+
identity?: string | undefined;
|
|
23
24
|
createdAt?: string | undefined;
|
|
25
|
+
eager?: string | undefined;
|
|
26
|
+
profileId?: string | undefined;
|
|
24
27
|
updatedAt?: string | undefined;
|
|
25
|
-
identity?: string | undefined;
|
|
26
|
-
resetPassword?: number | undefined;
|
|
27
28
|
roleId?: string | undefined;
|
|
28
29
|
isActive?: number | undefined;
|
|
29
30
|
isArchived?: number | undefined;
|
|
30
|
-
eager?: string | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
type?: string | undefined;
|
|
33
33
|
name?: string | undefined;
|
|
34
34
|
id?: string | undefined;
|
|
35
|
-
|
|
35
|
+
resetPassword?: number | undefined;
|
|
36
|
+
identity?: string | undefined;
|
|
36
37
|
createdAt?: string | undefined;
|
|
38
|
+
eager?: string | undefined;
|
|
39
|
+
profileId?: string | undefined;
|
|
37
40
|
updatedAt?: string | undefined;
|
|
38
|
-
identity?: string | undefined;
|
|
39
|
-
resetPassword?: number | undefined;
|
|
40
41
|
roleId?: string | undefined;
|
|
41
42
|
isActive?: number | undefined;
|
|
42
43
|
isArchived?: number | undefined;
|
|
43
|
-
eager?: string | undefined;
|
|
44
44
|
}>;
|
|
45
45
|
summary: "List all user accounts";
|
|
46
46
|
method: "GET";
|
|
@@ -56,47 +56,47 @@ export declare const userManagementContract: {
|
|
|
56
56
|
resetPassword: z.ZodBoolean;
|
|
57
57
|
isActive: z.ZodBoolean;
|
|
58
58
|
isArchived: z.ZodBoolean;
|
|
59
|
-
role: z.ZodOptional<z.ZodType<import("./
|
|
59
|
+
role: z.ZodOptional<z.ZodType<import("./user.dtos.js").RoleDTO>>;
|
|
60
60
|
createdAt: z.ZodString;
|
|
61
61
|
updatedAt: z.ZodString;
|
|
62
62
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
63
63
|
type: string;
|
|
64
64
|
name: string;
|
|
65
65
|
id: string;
|
|
66
|
-
|
|
66
|
+
resetPassword: boolean;
|
|
67
|
+
identity: string;
|
|
67
68
|
createdAt: string;
|
|
69
|
+
profileId: string;
|
|
68
70
|
updatedAt: string;
|
|
69
|
-
identity: string;
|
|
70
|
-
resetPassword: boolean;
|
|
71
71
|
roleId: string;
|
|
72
72
|
isActive: boolean;
|
|
73
73
|
isArchived: boolean;
|
|
74
74
|
role?: {
|
|
75
75
|
name: string;
|
|
76
76
|
id: string;
|
|
77
|
+
access: string[];
|
|
77
78
|
createdAt: string;
|
|
78
79
|
updatedAt: string;
|
|
79
|
-
access: string[];
|
|
80
80
|
description?: string | undefined;
|
|
81
81
|
} | undefined;
|
|
82
82
|
}, {
|
|
83
83
|
type: string;
|
|
84
84
|
name: string;
|
|
85
85
|
id: string;
|
|
86
|
-
|
|
86
|
+
resetPassword: boolean;
|
|
87
|
+
identity: string;
|
|
87
88
|
createdAt: string;
|
|
89
|
+
profileId: string;
|
|
88
90
|
updatedAt: string;
|
|
89
|
-
identity: string;
|
|
90
|
-
resetPassword: boolean;
|
|
91
91
|
roleId: string;
|
|
92
92
|
isActive: boolean;
|
|
93
93
|
isArchived: boolean;
|
|
94
94
|
role?: {
|
|
95
95
|
name: string;
|
|
96
96
|
id: string;
|
|
97
|
+
access: string[];
|
|
97
98
|
createdAt: string;
|
|
98
99
|
updatedAt: string;
|
|
99
|
-
access: string[];
|
|
100
100
|
description?: string | undefined;
|
|
101
101
|
} | undefined;
|
|
102
102
|
}>, "many">;
|
|
@@ -142,28 +142,28 @@ export declare const userManagementContract: {
|
|
|
142
142
|
type?: string | undefined;
|
|
143
143
|
name?: string | undefined;
|
|
144
144
|
id?: string | undefined;
|
|
145
|
-
|
|
145
|
+
resetPassword?: number | undefined;
|
|
146
|
+
identity?: string | undefined;
|
|
146
147
|
createdAt?: string | undefined;
|
|
148
|
+
eager?: string | undefined;
|
|
149
|
+
profileId?: string | undefined;
|
|
147
150
|
updatedAt?: string | undefined;
|
|
148
|
-
identity?: string | undefined;
|
|
149
|
-
resetPassword?: number | undefined;
|
|
150
151
|
roleId?: string | undefined;
|
|
151
152
|
isActive?: number | undefined;
|
|
152
153
|
isArchived?: number | undefined;
|
|
153
|
-
eager?: string | undefined;
|
|
154
154
|
}, {
|
|
155
155
|
type?: string | undefined;
|
|
156
156
|
name?: string | undefined;
|
|
157
157
|
id?: string | undefined;
|
|
158
|
-
|
|
158
|
+
resetPassword?: number | undefined;
|
|
159
|
+
identity?: string | undefined;
|
|
159
160
|
createdAt?: string | undefined;
|
|
161
|
+
eager?: string | undefined;
|
|
162
|
+
profileId?: string | undefined;
|
|
160
163
|
updatedAt?: string | undefined;
|
|
161
|
-
identity?: string | undefined;
|
|
162
|
-
resetPassword?: number | undefined;
|
|
163
164
|
roleId?: string | undefined;
|
|
164
165
|
isActive?: number | undefined;
|
|
165
166
|
isArchived?: number | undefined;
|
|
166
|
-
eager?: string | undefined;
|
|
167
167
|
}>;
|
|
168
168
|
summary: "Get user account details";
|
|
169
169
|
method: "GET";
|
|
@@ -179,47 +179,47 @@ export declare const userManagementContract: {
|
|
|
179
179
|
resetPassword: z.ZodBoolean;
|
|
180
180
|
isActive: z.ZodBoolean;
|
|
181
181
|
isArchived: z.ZodBoolean;
|
|
182
|
-
role: z.ZodOptional<z.ZodType<import("./
|
|
182
|
+
role: z.ZodOptional<z.ZodType<import("./user.dtos.js").RoleDTO>>;
|
|
183
183
|
createdAt: z.ZodString;
|
|
184
184
|
updatedAt: z.ZodString;
|
|
185
185
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
186
186
|
type: string;
|
|
187
187
|
name: string;
|
|
188
188
|
id: string;
|
|
189
|
-
|
|
189
|
+
resetPassword: boolean;
|
|
190
|
+
identity: string;
|
|
190
191
|
createdAt: string;
|
|
192
|
+
profileId: string;
|
|
191
193
|
updatedAt: string;
|
|
192
|
-
identity: string;
|
|
193
|
-
resetPassword: boolean;
|
|
194
194
|
roleId: string;
|
|
195
195
|
isActive: boolean;
|
|
196
196
|
isArchived: boolean;
|
|
197
197
|
role?: {
|
|
198
198
|
name: string;
|
|
199
199
|
id: string;
|
|
200
|
+
access: string[];
|
|
200
201
|
createdAt: string;
|
|
201
202
|
updatedAt: string;
|
|
202
|
-
access: string[];
|
|
203
203
|
description?: string | undefined;
|
|
204
204
|
} | undefined;
|
|
205
205
|
}, {
|
|
206
206
|
type: string;
|
|
207
207
|
name: string;
|
|
208
208
|
id: string;
|
|
209
|
-
|
|
209
|
+
resetPassword: boolean;
|
|
210
|
+
identity: string;
|
|
210
211
|
createdAt: string;
|
|
212
|
+
profileId: string;
|
|
211
213
|
updatedAt: string;
|
|
212
|
-
identity: string;
|
|
213
|
-
resetPassword: boolean;
|
|
214
214
|
roleId: string;
|
|
215
215
|
isActive: boolean;
|
|
216
216
|
isArchived: boolean;
|
|
217
217
|
role?: {
|
|
218
218
|
name: string;
|
|
219
219
|
id: string;
|
|
220
|
+
access: string[];
|
|
220
221
|
createdAt: string;
|
|
221
222
|
updatedAt: string;
|
|
222
|
-
access: string[];
|
|
223
223
|
description?: string | undefined;
|
|
224
224
|
} | undefined;
|
|
225
225
|
}>;
|
|
@@ -260,14 +260,14 @@ export declare const userManagementContract: {
|
|
|
260
260
|
name: string;
|
|
261
261
|
identity: string;
|
|
262
262
|
resetPassword?: boolean | undefined;
|
|
263
|
-
roleId?: string | undefined;
|
|
264
263
|
password?: string | undefined;
|
|
264
|
+
roleId?: string | undefined;
|
|
265
265
|
}, {
|
|
266
266
|
name: string;
|
|
267
267
|
identity: string;
|
|
268
268
|
resetPassword?: boolean | undefined;
|
|
269
|
-
roleId?: string | undefined;
|
|
270
269
|
password?: string | undefined;
|
|
270
|
+
roleId?: string | undefined;
|
|
271
271
|
}>;
|
|
272
272
|
path: "/login";
|
|
273
273
|
responses: {
|
|
@@ -285,9 +285,9 @@ export declare const userManagementContract: {
|
|
|
285
285
|
type: string;
|
|
286
286
|
name: string;
|
|
287
287
|
id: string;
|
|
288
|
-
profileId: string;
|
|
289
|
-
createdAt: string;
|
|
290
288
|
identity: string;
|
|
289
|
+
createdAt: string;
|
|
290
|
+
profileId: string;
|
|
291
291
|
roleId: string;
|
|
292
292
|
isActive: boolean;
|
|
293
293
|
isArchived: boolean;
|
|
@@ -295,9 +295,9 @@ export declare const userManagementContract: {
|
|
|
295
295
|
type: string;
|
|
296
296
|
name: string;
|
|
297
297
|
id: string;
|
|
298
|
-
profileId: string;
|
|
299
|
-
createdAt: string;
|
|
300
298
|
identity: string;
|
|
299
|
+
createdAt: string;
|
|
300
|
+
profileId: string;
|
|
301
301
|
roleId: string;
|
|
302
302
|
isActive: boolean;
|
|
303
303
|
isArchived: boolean;
|
|
@@ -355,15 +355,15 @@ export declare const userManagementContract: {
|
|
|
355
355
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
356
356
|
name?: string | undefined;
|
|
357
357
|
resetPassword?: boolean | undefined;
|
|
358
|
+
password?: string | undefined;
|
|
358
359
|
roleId?: string | undefined;
|
|
359
360
|
isActive?: boolean | undefined;
|
|
360
|
-
password?: string | undefined;
|
|
361
361
|
}, {
|
|
362
362
|
name?: string | undefined;
|
|
363
363
|
resetPassword?: boolean | undefined;
|
|
364
|
+
password?: string | undefined;
|
|
364
365
|
roleId?: string | undefined;
|
|
365
366
|
isActive?: boolean | undefined;
|
|
366
|
-
password?: string | undefined;
|
|
367
367
|
}>;
|
|
368
368
|
path: "/login/:id";
|
|
369
369
|
responses: {
|
|
@@ -377,47 +377,47 @@ export declare const userManagementContract: {
|
|
|
377
377
|
resetPassword: z.ZodBoolean;
|
|
378
378
|
isActive: z.ZodBoolean;
|
|
379
379
|
isArchived: z.ZodBoolean;
|
|
380
|
-
role: z.ZodOptional<z.ZodType<import("./
|
|
380
|
+
role: z.ZodOptional<z.ZodType<import("./user.dtos.js").RoleDTO>>;
|
|
381
381
|
createdAt: z.ZodString;
|
|
382
382
|
updatedAt: z.ZodString;
|
|
383
383
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
384
384
|
type: string;
|
|
385
385
|
name: string;
|
|
386
386
|
id: string;
|
|
387
|
-
|
|
387
|
+
resetPassword: boolean;
|
|
388
|
+
identity: string;
|
|
388
389
|
createdAt: string;
|
|
390
|
+
profileId: string;
|
|
389
391
|
updatedAt: string;
|
|
390
|
-
identity: string;
|
|
391
|
-
resetPassword: boolean;
|
|
392
392
|
roleId: string;
|
|
393
393
|
isActive: boolean;
|
|
394
394
|
isArchived: boolean;
|
|
395
395
|
role?: {
|
|
396
396
|
name: string;
|
|
397
397
|
id: string;
|
|
398
|
+
access: string[];
|
|
398
399
|
createdAt: string;
|
|
399
400
|
updatedAt: string;
|
|
400
|
-
access: string[];
|
|
401
401
|
description?: string | undefined;
|
|
402
402
|
} | undefined;
|
|
403
403
|
}, {
|
|
404
404
|
type: string;
|
|
405
405
|
name: string;
|
|
406
406
|
id: string;
|
|
407
|
-
|
|
407
|
+
resetPassword: boolean;
|
|
408
|
+
identity: string;
|
|
408
409
|
createdAt: string;
|
|
410
|
+
profileId: string;
|
|
409
411
|
updatedAt: string;
|
|
410
|
-
identity: string;
|
|
411
|
-
resetPassword: boolean;
|
|
412
412
|
roleId: string;
|
|
413
413
|
isActive: boolean;
|
|
414
414
|
isArchived: boolean;
|
|
415
415
|
role?: {
|
|
416
416
|
name: string;
|
|
417
417
|
id: string;
|
|
418
|
+
access: string[];
|
|
418
419
|
createdAt: string;
|
|
419
420
|
updatedAt: string;
|
|
420
|
-
access: string[];
|
|
421
421
|
description?: string | undefined;
|
|
422
422
|
} | undefined;
|
|
423
423
|
}>;
|
|
@@ -478,47 +478,47 @@ export declare const userManagementContract: {
|
|
|
478
478
|
resetPassword: z.ZodBoolean;
|
|
479
479
|
isActive: z.ZodBoolean;
|
|
480
480
|
isArchived: z.ZodBoolean;
|
|
481
|
-
role: z.ZodOptional<z.ZodType<import("./
|
|
481
|
+
role: z.ZodOptional<z.ZodType<import("./user.dtos.js").RoleDTO>>;
|
|
482
482
|
createdAt: z.ZodString;
|
|
483
483
|
updatedAt: z.ZodString;
|
|
484
484
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
485
485
|
type: string;
|
|
486
486
|
name: string;
|
|
487
487
|
id: string;
|
|
488
|
-
|
|
488
|
+
resetPassword: boolean;
|
|
489
|
+
identity: string;
|
|
489
490
|
createdAt: string;
|
|
491
|
+
profileId: string;
|
|
490
492
|
updatedAt: string;
|
|
491
|
-
identity: string;
|
|
492
|
-
resetPassword: boolean;
|
|
493
493
|
roleId: string;
|
|
494
494
|
isActive: boolean;
|
|
495
495
|
isArchived: boolean;
|
|
496
496
|
role?: {
|
|
497
497
|
name: string;
|
|
498
498
|
id: string;
|
|
499
|
+
access: string[];
|
|
499
500
|
createdAt: string;
|
|
500
501
|
updatedAt: string;
|
|
501
|
-
access: string[];
|
|
502
502
|
description?: string | undefined;
|
|
503
503
|
} | undefined;
|
|
504
504
|
}, {
|
|
505
505
|
type: string;
|
|
506
506
|
name: string;
|
|
507
507
|
id: string;
|
|
508
|
-
|
|
508
|
+
resetPassword: boolean;
|
|
509
|
+
identity: string;
|
|
509
510
|
createdAt: string;
|
|
511
|
+
profileId: string;
|
|
510
512
|
updatedAt: string;
|
|
511
|
-
identity: string;
|
|
512
|
-
resetPassword: boolean;
|
|
513
513
|
roleId: string;
|
|
514
514
|
isActive: boolean;
|
|
515
515
|
isArchived: boolean;
|
|
516
516
|
role?: {
|
|
517
517
|
name: string;
|
|
518
518
|
id: string;
|
|
519
|
+
access: string[];
|
|
519
520
|
createdAt: string;
|
|
520
521
|
updatedAt: string;
|
|
521
|
-
access: string[];
|
|
522
522
|
description?: string | undefined;
|
|
523
523
|
} | undefined;
|
|
524
524
|
}>;
|
|
@@ -569,47 +569,47 @@ export declare const userManagementContract: {
|
|
|
569
569
|
resetPassword: z.ZodBoolean;
|
|
570
570
|
isActive: z.ZodBoolean;
|
|
571
571
|
isArchived: z.ZodBoolean;
|
|
572
|
-
role: z.ZodOptional<z.ZodType<import("./
|
|
572
|
+
role: z.ZodOptional<z.ZodType<import("./user.dtos.js").RoleDTO>>;
|
|
573
573
|
createdAt: z.ZodString;
|
|
574
574
|
updatedAt: z.ZodString;
|
|
575
575
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
576
576
|
type: string;
|
|
577
577
|
name: string;
|
|
578
578
|
id: string;
|
|
579
|
-
|
|
579
|
+
resetPassword: boolean;
|
|
580
|
+
identity: string;
|
|
580
581
|
createdAt: string;
|
|
582
|
+
profileId: string;
|
|
581
583
|
updatedAt: string;
|
|
582
|
-
identity: string;
|
|
583
|
-
resetPassword: boolean;
|
|
584
584
|
roleId: string;
|
|
585
585
|
isActive: boolean;
|
|
586
586
|
isArchived: boolean;
|
|
587
587
|
role?: {
|
|
588
588
|
name: string;
|
|
589
589
|
id: string;
|
|
590
|
+
access: string[];
|
|
590
591
|
createdAt: string;
|
|
591
592
|
updatedAt: string;
|
|
592
|
-
access: string[];
|
|
593
593
|
description?: string | undefined;
|
|
594
594
|
} | undefined;
|
|
595
595
|
}, {
|
|
596
596
|
type: string;
|
|
597
597
|
name: string;
|
|
598
598
|
id: string;
|
|
599
|
-
|
|
599
|
+
resetPassword: boolean;
|
|
600
|
+
identity: string;
|
|
600
601
|
createdAt: string;
|
|
602
|
+
profileId: string;
|
|
601
603
|
updatedAt: string;
|
|
602
|
-
identity: string;
|
|
603
|
-
resetPassword: boolean;
|
|
604
604
|
roleId: string;
|
|
605
605
|
isActive: boolean;
|
|
606
606
|
isArchived: boolean;
|
|
607
607
|
role?: {
|
|
608
608
|
name: string;
|
|
609
609
|
id: string;
|
|
610
|
+
access: string[];
|
|
610
611
|
createdAt: string;
|
|
611
612
|
updatedAt: string;
|
|
612
|
-
access: string[];
|
|
613
613
|
description?: string | undefined;
|
|
614
614
|
} | undefined;
|
|
615
615
|
}>;
|
|
@@ -712,16 +712,16 @@ export declare const userManagementContract: {
|
|
|
712
712
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
713
713
|
name: string;
|
|
714
714
|
id: string;
|
|
715
|
+
access: string[];
|
|
715
716
|
createdAt: string;
|
|
716
717
|
updatedAt: string;
|
|
717
|
-
access: string[];
|
|
718
718
|
description?: string | undefined;
|
|
719
719
|
}, {
|
|
720
720
|
name: string;
|
|
721
721
|
id: string;
|
|
722
|
+
access: string[];
|
|
722
723
|
createdAt: string;
|
|
723
724
|
updatedAt: string;
|
|
724
|
-
access: string[];
|
|
725
725
|
description?: string | undefined;
|
|
726
726
|
}>, "many">;
|
|
727
727
|
401: z.ZodObject<{
|
|
@@ -763,16 +763,16 @@ export declare const userManagementContract: {
|
|
|
763
763
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
764
764
|
name: string;
|
|
765
765
|
id: string;
|
|
766
|
+
access: string[];
|
|
766
767
|
createdAt: string;
|
|
767
768
|
updatedAt: string;
|
|
768
|
-
access: string[];
|
|
769
769
|
description?: string | undefined;
|
|
770
770
|
}, {
|
|
771
771
|
name: string;
|
|
772
772
|
id: string;
|
|
773
|
+
access: string[];
|
|
773
774
|
createdAt: string;
|
|
774
775
|
updatedAt: string;
|
|
775
|
-
access: string[];
|
|
776
776
|
description?: string | undefined;
|
|
777
777
|
}>;
|
|
778
778
|
401: z.ZodObject<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseRepository } from "@/lib/api/base-repository.js";
|
|
2
|
-
import { ManagedUser } from "@/
|
|
3
|
-
import { Role } from "@/
|
|
4
|
-
import { userManagementContract } from "./
|
|
5
|
-
import { CreateUserRequestDTO, CreateUserResponseDTO, UpdateUserRequestDTO, ResetPasswordRequestDTO, ManagedUserQueryParamsDTO } from "./
|
|
2
|
+
import { ManagedUser } from "@/modules/user/user.model.js";
|
|
3
|
+
import { Role } from "@/modules/user/role.model.js";
|
|
4
|
+
import { userManagementContract } from "./user.contract.js";
|
|
5
|
+
import { CreateUserRequestDTO, CreateUserResponseDTO, UpdateUserRequestDTO, ResetPasswordRequestDTO, ManagedUserQueryParamsDTO } from "./user.dtos.js";
|
|
6
6
|
/**
|
|
7
7
|
* Repository class for managing user accounts through API interactions.
|
|
8
8
|
* Handles user creation, updates, archiving, and role management.
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export * from "./wallet.repository.js";
|
|
2
|
-
export * from "./wallet-manager.session.js";
|
|
3
1
|
export * from "./wallet.dtos.js";
|
|
2
|
+
export * from "./wallet.model.js";
|
|
3
|
+
export * from "./statement-entry.model.js";
|
|
4
|
+
export * from "./narration.model.js";
|
|
5
|
+
export * from "./wallet.repository.js";
|
|
4
6
|
export * from "./wallet.utils.js";
|
|
7
|
+
export * from "./wallet-manager.session.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContactInfo, MobileContactInfo, BankContactInfo } from "
|
|
1
|
+
import { ContactInfo, MobileContactInfo, BankContactInfo } from "../contact/contact-info.model.js";
|
|
2
2
|
/** Prefix for Ecobank mobile transfer narrations */
|
|
3
3
|
export declare const ECOBANK_PREFIX = "MOBILE TRANSFER ";
|
|
4
4
|
/** V2 format prefix for payout narrations using contact details */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WalletStatementEntryDTO } from "@/
|
|
1
|
+
import { WalletStatementEntryDTO } from "@/modules/wallet/wallet.dtos.js";
|
|
2
2
|
import { Amount, AmountJson } from "@temboplus/frontend-core";
|
|
3
3
|
import { NarrationJson, Narration } from "./narration.model.js";
|
|
4
4
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Country, type CountryCode } from "@temboplus/frontend-core";
|
|
2
|
-
import { Wallet } from "
|
|
3
|
-
import { User } from "
|
|
2
|
+
import { Wallet } from "./wallet.model.js";
|
|
3
|
+
import { User } from "../auth/user.model.js";
|
|
4
4
|
/**
|
|
5
5
|
* Defines the shape of the persisted wallet session state.
|
|
6
6
|
* IMPORTANT: Properties like selectedWalletId/selectedCountryCode are guaranteed
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CurrencyCode, type ISO2CountryCode } from "@temboplus/frontend-core";
|
|
2
|
-
import { WalletDTO, WalletDTOSchemas } from "@/
|
|
2
|
+
import { WalletDTO, WalletDTOSchemas } from "@/modules/wallet/wallet.dtos.js";
|
|
3
3
|
/**
|
|
4
4
|
* Represents a digital Wallet entity.
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Amount } from "@temboplus/frontend-core";
|
|
2
|
-
import { WalletStatementEntry } from "
|
|
3
|
-
import { Wallet } from "
|
|
2
|
+
import { WalletStatementEntry } from "./statement-entry.model.js";
|
|
3
|
+
import { Wallet } from "./wallet.model.js";
|
|
4
4
|
import { WalletDTOSchemas } from "./wallet.dtos.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { contract } from "./wallet.contract.js";
|
package/package.json
CHANGED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { BaseRepository } from "@/lib/api/base-repository.js";
|
|
2
|
-
import { accessContract } from "./access.api-contract.js";
|
|
3
|
-
/**
|
|
4
|
-
* Repository class for managing access-related operations.
|
|
5
|
-
* Handles retrieving user access lists and permissions from the API.
|
|
6
|
-
*
|
|
7
|
-
* This repository handles pure API communication without permission checking.
|
|
8
|
-
* Permission validation should be handled at the service layer or route handlers.
|
|
9
|
-
*
|
|
10
|
-
* @extends {BaseRepository<typeof accessContract>}
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* const repo = new AccessRepository({ token: userToken });
|
|
15
|
-
* const accessList = await repo.getAccessList();
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export declare class AccessRepository extends BaseRepository<typeof accessContract> {
|
|
19
|
-
/**
|
|
20
|
-
* Creates an instance of AccessRepository.
|
|
21
|
-
*
|
|
22
|
-
* @param options - Optional configuration
|
|
23
|
-
* @param options.token - Authentication token for API calls
|
|
24
|
-
* @param options.root - Custom API root URL
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```typescript
|
|
28
|
-
* const repo = new AccessRepository({
|
|
29
|
-
* token: "user-auth-token",
|
|
30
|
-
* root: "base-api-url"
|
|
31
|
-
* });
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
constructor(options?: {
|
|
35
|
-
token?: string;
|
|
36
|
-
root?: string;
|
|
37
|
-
});
|
|
38
|
-
/**
|
|
39
|
-
* Retrieves the current user's access list.
|
|
40
|
-
*
|
|
41
|
-
* @returns Promise that resolves to an array of access permissions/roles
|
|
42
|
-
* @throws {APIError} If the request fails or returns an unexpected status
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```typescript
|
|
46
|
-
* try {
|
|
47
|
-
* const accessList = await repo.getAccessList();
|
|
48
|
-
* console.log("User has access to:", accessList);
|
|
49
|
-
* } catch (error) {
|
|
50
|
-
* console.error("Failed to get access list:", error.message);
|
|
51
|
-
* }
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
getAccessList(): Promise<string[]>;
|
|
55
|
-
}
|