@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.
Files changed (66) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +9 -6
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/lib/api/index.d.ts +0 -1
  7. package/dist/lib/error/error.permission.d.ts +1 -1
  8. package/dist/lib/query/index.d.ts +2 -0
  9. package/dist/lib/query/pagination/pagination.d.ts +73 -0
  10. package/dist/lib/query/pagination/pagination.schemas.d.ts +83 -0
  11. package/dist/{features → modules}/auth/auth.contract.d.ts +2 -9
  12. package/dist/{features → modules}/auth/auth.manager.d.ts +2 -2
  13. package/dist/{features → modules}/auth/auth.repository.d.ts +18 -1
  14. package/dist/{features → modules}/auth/auth.store.d.ts +1 -1
  15. package/dist/modules/auth/index.d.ts +4 -0
  16. package/dist/{features → modules}/auth/storage/client-store.d.ts +1 -1
  17. package/dist/{features → modules}/auth/storage/types.d.ts +1 -1
  18. package/dist/{models → modules/auth}/user.model.d.ts +4 -3
  19. package/dist/{models → modules/contact}/contact-info.model.d.ts +2 -2
  20. package/dist/{features → modules}/contact/contact-input-handler.d.ts +1 -1
  21. package/dist/{models → modules/contact}/contact.model.d.ts +1 -1
  22. package/dist/{features → modules}/contact/contact.repository.d.ts +2 -2
  23. package/dist/modules/contact/index.d.ts +4 -0
  24. package/dist/modules/login/index.d.ts +2 -0
  25. package/dist/modules/login/login.model.d.ts +1 -0
  26. package/dist/{features/auth/identity/identity.repository.d.ts → modules/login/login.repository.d.ts} +1 -1
  27. package/dist/{features → modules}/payout/index.d.ts +2 -0
  28. package/dist/{features → modules}/payout/payout-channel-handler.d.ts +2 -2
  29. package/dist/{models → modules/payout}/payout.model.d.ts +2 -2
  30. package/dist/{features → modules}/payout/payout.repository.d.ts +28 -16
  31. package/dist/modules/profile/index.d.ts +3 -0
  32. package/dist/{models → modules/profile}/profile.model.d.ts +1 -1
  33. package/dist/{features/auth → modules}/profile/profile.repository.d.ts +1 -1
  34. package/dist/modules/user/index.d.ts +4 -0
  35. package/dist/{models → modules/user}/role.model.d.ts +1 -1
  36. package/dist/{features/admin/admin.contract.d.ts → modules/user/user.contract.d.ts} +73 -73
  37. package/dist/{models/managed-user.model.d.ts → modules/user/user.model.d.ts} +1 -1
  38. package/dist/{features/admin/admin.repository.d.ts → modules/user/user.repository.d.ts} +4 -4
  39. package/dist/{features → modules}/wallet/index.d.ts +5 -2
  40. package/dist/{models → modules/wallet}/narration.model.d.ts +1 -1
  41. package/dist/{models → modules/wallet}/statement-entry.model.d.ts +1 -1
  42. package/dist/{features → modules}/wallet/wallet-manager.session.d.ts +2 -2
  43. package/dist/{models → modules/wallet}/wallet.model.d.ts +1 -1
  44. package/dist/{features → modules}/wallet/wallet.repository.d.ts +2 -2
  45. package/dist/{features → modules}/wallet/wallet.utils.d.ts +1 -1
  46. package/package.json +1 -1
  47. package/dist/features/admin/index.d.ts +0 -2
  48. package/dist/features/auth/access/access.api-contract.d.ts +0 -13
  49. package/dist/features/auth/access/access.repository.d.ts +0 -55
  50. package/dist/features/auth/index.d.ts +0 -5
  51. package/dist/features/contact/index.d.ts +0 -2
  52. package/dist/lib/api/common-schemas.d.ts +0 -49
  53. package/dist/models/index.d.ts +0 -11
  54. package/dist/{models/permission.d.ts → modules/auth/permission.type.d.ts} +0 -0
  55. package/dist/{features → modules}/auth/storage/client-token-handler.d.ts +0 -0
  56. package/dist/{features → modules}/contact/contact.api-contract.d.ts +24 -24
  57. package/dist/{features → modules}/contact/contact.dtos.d.ts +6 -6
  58. package/dist/{features/auth/identity/identity.api-contract.d.ts → modules/login/login.api-contract.d.ts} +0 -0
  59. package/dist/{features → modules}/payout/payout.api-contract.d.ts +55 -55
  60. package/dist/{features → modules}/payout/payout.dtos.d.ts +50 -50
  61. package/dist/{features → modules}/payout/payout.query.d.ts +0 -0
  62. package/dist/{features/auth → modules}/profile/profile.api-contract.d.ts +0 -0
  63. package/dist/{features/auth → modules}/profile/profile.dtos.d.ts +0 -0
  64. package/dist/{features/admin/admin.dtos.d.ts → modules/user/user.dtos.d.ts} +0 -0
  65. package/dist/{features → modules}/wallet/wallet.contract.d.ts +12 -12
  66. package/dist/{features → modules}/wallet/wallet.dtos.d.ts +24 -24
@@ -143,16 +143,16 @@ declare const PayoutDTOSchema: z.ZodObject<{
143
143
  }, "strip", z.ZodTypeAny, {
144
144
  status: PayoutStatus;
145
145
  id: string;
146
- profileId: string;
147
146
  createdAt: Date;
148
- updatedAt: Date;
147
+ profileId: string;
149
148
  channel: string;
149
+ countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
150
+ currencyCode: import("@temboplus/frontend-core").CurrencyCode;
151
+ updatedAt: Date;
150
152
  msisdn: string;
151
153
  amount: number;
152
154
  description: string;
153
155
  payeeName: string;
154
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
155
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
156
156
  statusMessage: string;
157
157
  notes?: string | null | undefined;
158
158
  partnerReference?: string | null | undefined;
@@ -171,18 +171,18 @@ declare const PayoutDTOSchema: z.ZodObject<{
171
171
  }, {
172
172
  status: PayoutStatus;
173
173
  id: string;
174
- profileId: string;
175
174
  createdAt: Date;
176
- updatedAt: Date;
175
+ profileId: string;
177
176
  channel: string;
177
+ updatedAt: Date;
178
178
  msisdn: string;
179
179
  amount: number;
180
180
  description: string;
181
181
  payeeName: string;
182
182
  statusMessage: string;
183
- notes?: string | null | undefined;
184
183
  countryCode?: string | undefined;
185
184
  currencyCode?: string | undefined;
185
+ notes?: string | null | undefined;
186
186
  partnerReference?: string | null | undefined;
187
187
  actionedAt?: Date | null | undefined;
188
188
  approvalStatus?: PayoutApprovalStatus | null | undefined;
@@ -225,35 +225,35 @@ declare const PayoutFiltersSchema: z.ZodObject<{
225
225
  sortOrder: "asc" | "desc";
226
226
  status?: PayoutStatus | null | undefined;
227
227
  id?: string | null | undefined;
228
+ search?: string | null | undefined;
229
+ startDate?: string | null | undefined;
230
+ endDate?: string | null | undefined;
228
231
  profileId?: string | null | undefined;
229
232
  channel?: string | null | undefined;
230
233
  msisdn?: string | null | undefined;
231
234
  payeeName?: string | null | undefined;
232
235
  partnerReference?: string | null | undefined;
233
236
  approvalStatus?: PayoutApprovalStatus | null | undefined;
234
- startDate?: string | null | undefined;
235
- endDate?: string | null | undefined;
236
237
  minAmount?: number | null | undefined;
237
238
  maxAmount?: number | null | undefined;
238
- search?: string | null | undefined;
239
239
  }, {
240
240
  status?: PayoutStatus | null | undefined;
241
241
  id?: string | null | undefined;
242
+ search?: string | null | undefined;
243
+ startDate?: string | null | undefined;
244
+ endDate?: string | null | undefined;
245
+ page?: number | undefined;
246
+ limit?: number | undefined;
242
247
  profileId?: string | null | undefined;
243
248
  channel?: string | null | undefined;
244
249
  msisdn?: string | null | undefined;
245
250
  payeeName?: string | null | undefined;
246
251
  partnerReference?: string | null | undefined;
247
252
  approvalStatus?: PayoutApprovalStatus | null | undefined;
248
- page?: number | undefined;
249
- limit?: number | undefined;
250
253
  sortBy?: string | undefined;
251
254
  sortOrder?: "asc" | "desc" | undefined;
252
- startDate?: string | null | undefined;
253
- endDate?: string | null | undefined;
254
255
  minAmount?: number | null | undefined;
255
256
  maxAmount?: number | null | undefined;
256
- search?: string | null | undefined;
257
257
  }>;
258
258
  /**
259
259
  * URL-safe schema for query parameters (all strings)
@@ -281,37 +281,37 @@ declare const PayoutURLQueryParamsSchema: z.ZodObject<{
281
281
  sortOrder: "asc" | "desc";
282
282
  status?: PayoutStatus | undefined;
283
283
  id?: string | undefined;
284
+ search?: string | undefined;
285
+ startDate?: string | undefined;
286
+ endDate?: string | undefined;
287
+ page?: number | undefined;
288
+ limit?: number | undefined;
284
289
  profileId?: string | undefined;
285
290
  channel?: string | undefined;
286
291
  msisdn?: string | undefined;
287
292
  payeeName?: string | undefined;
288
293
  partnerReference?: string | undefined;
289
294
  approvalStatus?: PayoutApprovalStatus | undefined;
290
- page?: number | undefined;
291
- limit?: number | undefined;
292
- startDate?: string | undefined;
293
- endDate?: string | undefined;
294
295
  minAmount?: number | undefined;
295
296
  maxAmount?: number | undefined;
296
- search?: string | undefined;
297
297
  }, {
298
298
  status?: string | undefined;
299
299
  id?: string | undefined;
300
+ search?: string | undefined;
301
+ startDate?: string | undefined;
302
+ endDate?: string | undefined;
303
+ page?: string | undefined;
304
+ limit?: string | undefined;
300
305
  profileId?: string | undefined;
301
306
  channel?: string | undefined;
302
307
  msisdn?: string | undefined;
303
308
  payeeName?: string | undefined;
304
309
  partnerReference?: string | undefined;
305
310
  approvalStatus?: string | undefined;
306
- page?: string | undefined;
307
- limit?: string | undefined;
308
311
  sortBy?: string | undefined;
309
312
  sortOrder?: "asc" | "desc" | undefined;
310
- startDate?: string | undefined;
311
- endDate?: string | undefined;
312
313
  minAmount?: string | undefined;
313
314
  maxAmount?: string | undefined;
314
- search?: string | undefined;
315
315
  }>;
316
316
  /**
317
317
  * Type definition inferred from AuthorizerSchema
@@ -389,16 +389,16 @@ export declare const PayoutDTOSchemas: {
389
389
  }, "strip", z.ZodTypeAny, {
390
390
  status: PayoutStatus;
391
391
  id: string;
392
- profileId: string;
393
392
  createdAt: Date;
394
- updatedAt: Date;
393
+ profileId: string;
395
394
  channel: string;
395
+ countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
396
+ currencyCode: import("@temboplus/frontend-core").CurrencyCode;
397
+ updatedAt: Date;
396
398
  msisdn: string;
397
399
  amount: number;
398
400
  description: string;
399
401
  payeeName: string;
400
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
401
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
402
402
  statusMessage: string;
403
403
  notes?: string | null | undefined;
404
404
  partnerReference?: string | null | undefined;
@@ -417,18 +417,18 @@ export declare const PayoutDTOSchemas: {
417
417
  }, {
418
418
  status: PayoutStatus;
419
419
  id: string;
420
- profileId: string;
421
420
  createdAt: Date;
422
- updatedAt: Date;
421
+ profileId: string;
423
422
  channel: string;
423
+ updatedAt: Date;
424
424
  msisdn: string;
425
425
  amount: number;
426
426
  description: string;
427
427
  payeeName: string;
428
428
  statusMessage: string;
429
- notes?: string | null | undefined;
430
429
  countryCode?: string | undefined;
431
430
  currencyCode?: string | undefined;
431
+ notes?: string | null | undefined;
432
432
  partnerReference?: string | null | undefined;
433
433
  actionedAt?: Date | null | undefined;
434
434
  approvalStatus?: PayoutApprovalStatus | null | undefined;
@@ -506,35 +506,35 @@ export declare const PayoutDTOSchemas: {
506
506
  sortOrder: "asc" | "desc";
507
507
  status?: PayoutStatus | null | undefined;
508
508
  id?: string | null | undefined;
509
+ search?: string | null | undefined;
510
+ startDate?: string | null | undefined;
511
+ endDate?: string | null | undefined;
509
512
  profileId?: string | null | undefined;
510
513
  channel?: string | null | undefined;
511
514
  msisdn?: string | null | undefined;
512
515
  payeeName?: string | null | undefined;
513
516
  partnerReference?: string | null | undefined;
514
517
  approvalStatus?: PayoutApprovalStatus | null | undefined;
515
- startDate?: string | null | undefined;
516
- endDate?: string | null | undefined;
517
518
  minAmount?: number | null | undefined;
518
519
  maxAmount?: number | null | undefined;
519
- search?: string | null | undefined;
520
520
  }, {
521
521
  status?: PayoutStatus | null | undefined;
522
522
  id?: string | null | undefined;
523
+ search?: string | null | undefined;
524
+ startDate?: string | null | undefined;
525
+ endDate?: string | null | undefined;
526
+ page?: number | undefined;
527
+ limit?: number | undefined;
523
528
  profileId?: string | null | undefined;
524
529
  channel?: string | null | undefined;
525
530
  msisdn?: string | null | undefined;
526
531
  payeeName?: string | null | undefined;
527
532
  partnerReference?: string | null | undefined;
528
533
  approvalStatus?: PayoutApprovalStatus | null | undefined;
529
- page?: number | undefined;
530
- limit?: number | undefined;
531
534
  sortBy?: string | undefined;
532
535
  sortOrder?: "asc" | "desc" | undefined;
533
- startDate?: string | null | undefined;
534
- endDate?: string | null | undefined;
535
536
  minAmount?: number | null | undefined;
536
537
  maxAmount?: number | null | undefined;
537
- search?: string | null | undefined;
538
538
  }>;
539
539
  readonly PayoutURLQueryParams: z.ZodObject<{
540
540
  page: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
@@ -559,37 +559,37 @@ export declare const PayoutDTOSchemas: {
559
559
  sortOrder: "asc" | "desc";
560
560
  status?: PayoutStatus | undefined;
561
561
  id?: string | undefined;
562
+ search?: string | undefined;
563
+ startDate?: string | undefined;
564
+ endDate?: string | undefined;
565
+ page?: number | undefined;
566
+ limit?: number | undefined;
562
567
  profileId?: string | undefined;
563
568
  channel?: string | undefined;
564
569
  msisdn?: string | undefined;
565
570
  payeeName?: string | undefined;
566
571
  partnerReference?: string | undefined;
567
572
  approvalStatus?: PayoutApprovalStatus | undefined;
568
- page?: number | undefined;
569
- limit?: number | undefined;
570
- startDate?: string | undefined;
571
- endDate?: string | undefined;
572
573
  minAmount?: number | undefined;
573
574
  maxAmount?: number | undefined;
574
- search?: string | undefined;
575
575
  }, {
576
576
  status?: string | undefined;
577
577
  id?: string | undefined;
578
+ search?: string | undefined;
579
+ startDate?: string | undefined;
580
+ endDate?: string | undefined;
581
+ page?: string | undefined;
582
+ limit?: string | undefined;
578
583
  profileId?: string | undefined;
579
584
  channel?: string | undefined;
580
585
  msisdn?: string | undefined;
581
586
  payeeName?: string | undefined;
582
587
  partnerReference?: string | undefined;
583
588
  approvalStatus?: string | undefined;
584
- page?: string | undefined;
585
- limit?: string | undefined;
586
589
  sortBy?: string | undefined;
587
590
  sortOrder?: "asc" | "desc" | undefined;
588
- startDate?: string | undefined;
589
- endDate?: string | undefined;
590
591
  minAmount?: string | undefined;
591
592
  maxAmount?: string | undefined;
592
- search?: string | undefined;
593
593
  }>;
594
594
  };
595
595
  /**
@@ -11,20 +11,20 @@ export declare const contract: {
11
11
  currencyCode: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>>;
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  id?: string | undefined;
14
- profileId?: string | undefined;
15
14
  accountNo?: string | undefined;
15
+ profileId?: string | undefined;
16
+ accountName?: string | undefined;
16
17
  channel?: string | undefined;
17
18
  countryCode?: string | undefined;
18
19
  currencyCode?: string | undefined;
19
- accountName?: string | undefined;
20
20
  }, {
21
21
  id?: string | undefined;
22
- profileId?: string | undefined;
23
22
  accountNo?: string | undefined;
23
+ profileId?: string | undefined;
24
+ accountName?: string | undefined;
24
25
  channel?: string | undefined;
25
26
  countryCode?: string | undefined;
26
27
  currencyCode?: string | undefined;
27
- accountName?: string | undefined;
28
28
  }>;
29
29
  method: "GET";
30
30
  path: "/";
@@ -41,22 +41,22 @@ export declare const contract: {
41
41
  updatedAt: z.ZodString;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  id: string;
44
- profileId: string;
45
- createdAt: string;
46
- updatedAt: string;
47
44
  accountNo: string;
45
+ createdAt: string;
46
+ profileId: string;
47
+ accountName: string;
48
48
  channel: string;
49
49
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
50
50
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
51
- accountName: string;
51
+ updatedAt: string;
52
52
  }, {
53
53
  id: string;
54
- profileId: string;
55
- createdAt: string;
56
- updatedAt: string;
57
54
  accountNo: string;
58
- channel: string;
55
+ createdAt: string;
56
+ profileId: string;
59
57
  accountName: string;
58
+ channel: string;
59
+ updatedAt: string;
60
60
  countryCode?: string | undefined;
61
61
  currencyCode?: string | undefined;
62
62
  }>, "many">;
@@ -16,22 +16,22 @@ declare const walletSchema: z.ZodObject<{
16
16
  updatedAt: z.ZodString;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  id: string;
19
- profileId: string;
20
- createdAt: string;
21
- updatedAt: string;
22
19
  accountNo: string;
20
+ createdAt: string;
21
+ profileId: string;
22
+ accountName: string;
23
23
  channel: string;
24
24
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
25
25
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
26
- accountName: string;
26
+ updatedAt: string;
27
27
  }, {
28
28
  id: string;
29
- profileId: string;
30
- createdAt: string;
31
- updatedAt: string;
32
29
  accountNo: string;
33
- channel: string;
30
+ createdAt: string;
31
+ profileId: string;
34
32
  accountName: string;
33
+ channel: string;
34
+ updatedAt: string;
35
35
  countryCode?: string | undefined;
36
36
  currencyCode?: string | undefined;
37
37
  }>;
@@ -50,20 +50,20 @@ declare const walletQuerySchema: z.ZodObject<{
50
50
  currencyCode: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>>;
51
51
  }, "strip", z.ZodTypeAny, {
52
52
  id?: string | undefined;
53
- profileId?: string | undefined;
54
53
  accountNo?: string | undefined;
54
+ profileId?: string | undefined;
55
+ accountName?: string | undefined;
55
56
  channel?: string | undefined;
56
57
  countryCode?: string | undefined;
57
58
  currencyCode?: string | undefined;
58
- accountName?: string | undefined;
59
59
  }, {
60
60
  id?: string | undefined;
61
- profileId?: string | undefined;
62
61
  accountNo?: string | undefined;
62
+ profileId?: string | undefined;
63
+ accountName?: string | undefined;
63
64
  channel?: string | undefined;
64
65
  countryCode?: string | undefined;
65
66
  currencyCode?: string | undefined;
66
- accountName?: string | undefined;
67
67
  }>;
68
68
  /**
69
69
  * Schema definition for a statement entry.
@@ -119,22 +119,22 @@ export declare const WalletDTOSchemas: {
119
119
  updatedAt: z.ZodString;
120
120
  }, "strip", z.ZodTypeAny, {
121
121
  id: string;
122
- profileId: string;
123
- createdAt: string;
124
- updatedAt: string;
125
122
  accountNo: string;
123
+ createdAt: string;
124
+ profileId: string;
125
+ accountName: string;
126
126
  channel: string;
127
127
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
128
128
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
129
- accountName: string;
129
+ updatedAt: string;
130
130
  }, {
131
131
  id: string;
132
- profileId: string;
133
- createdAt: string;
134
- updatedAt: string;
135
132
  accountNo: string;
136
- channel: string;
133
+ createdAt: string;
134
+ profileId: string;
137
135
  accountName: string;
136
+ channel: string;
137
+ updatedAt: string;
138
138
  countryCode?: string | undefined;
139
139
  currencyCode?: string | undefined;
140
140
  }>;
@@ -148,20 +148,20 @@ export declare const WalletDTOSchemas: {
148
148
  currencyCode: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodString>, string, string | undefined>>;
149
149
  }, "strip", z.ZodTypeAny, {
150
150
  id?: string | undefined;
151
- profileId?: string | undefined;
152
151
  accountNo?: string | undefined;
152
+ profileId?: string | undefined;
153
+ accountName?: string | undefined;
153
154
  channel?: string | undefined;
154
155
  countryCode?: string | undefined;
155
156
  currencyCode?: string | undefined;
156
- accountName?: string | undefined;
157
157
  }, {
158
158
  id?: string | undefined;
159
- profileId?: string | undefined;
160
159
  accountNo?: string | undefined;
160
+ profileId?: string | undefined;
161
+ accountName?: string | undefined;
161
162
  channel?: string | undefined;
162
163
  countryCode?: string | undefined;
163
164
  currencyCode?: string | undefined;
164
- accountName?: string | undefined;
165
165
  }>;
166
166
  statementEntry: z.ZodObject<{
167
167
  accountNo: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;