@temboplus/afloat 0.1.77-beta.18 → 0.1.77-beta.20
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.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/api/base-repository.d.ts +3 -1
- package/dist/modules/auth/auth.contract.d.ts +2 -2
- package/dist/modules/auth/company-membership.model.d.ts +4 -4
- package/dist/modules/auth/index.d.ts +0 -1
- package/dist/modules/auth/user.model.d.ts +10 -10
- package/dist/modules/contact/contact.api-contract.d.ts +8 -8
- package/dist/modules/contact/contact.dtos.d.ts +2 -2
- package/dist/modules/contact/contact.model.d.ts +4 -4
- package/dist/modules/login/login.api-contract.d.ts +2 -2
- package/dist/modules/login/login.dtos.d.ts +4 -4
- package/dist/modules/login/login.model.d.ts +2 -2
- package/dist/modules/payout/payout.api-contract.d.ts +37 -37
- package/dist/modules/payout/payout.dtos.d.ts +26 -26
- package/dist/modules/payout/payout.model.d.ts +6 -6
- package/dist/modules/payout/payout.repository.d.ts +13 -2
- package/dist/modules/team-member/role.model.d.ts +2 -2
- package/dist/modules/team-member/team-member.contract.d.ts +44 -44
- package/dist/modules/team-member/team-member.dtos.d.ts +14 -14
- package/dist/modules/team-member/team-member.model.d.ts +6 -6
- package/dist/modules/wallet/index.d.ts +0 -1
- package/dist/modules/wallet/wallet.contract.d.ts +6 -6
- package/dist/modules/wallet/wallet.dtos.d.ts +12 -12
- package/dist/modules/wallet/wallet.model.d.ts +4 -4
- package/package.json +1 -1
- package/dist/modules/auth/auth.manager.d.ts +0 -249
- package/dist/modules/auth/auth.store.d.ts +0 -139
- package/dist/modules/auth/storage/client-store.d.ts +0 -29
- package/dist/modules/auth/storage/client-token-handler.d.ts +0 -31
- package/dist/modules/auth/storage/types.d.ts +0 -41
- package/dist/modules/wallet/wallet-manager.session.d.ts +0 -143
|
@@ -66,17 +66,17 @@ export declare const contract: {
|
|
|
66
66
|
}>>>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
68
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
69
|
+
createdAt: Date;
|
|
69
70
|
id: string;
|
|
70
71
|
profileId: string;
|
|
71
|
-
createdAt: Date;
|
|
72
72
|
updatedAt: Date;
|
|
73
73
|
description: string;
|
|
74
74
|
channel: string;
|
|
75
|
-
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
76
|
-
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
77
75
|
msisdn: string;
|
|
78
76
|
amount: number;
|
|
79
77
|
payeeName: string;
|
|
78
|
+
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
79
|
+
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
80
80
|
statusMessage: string;
|
|
81
81
|
notes?: string | null | undefined;
|
|
82
82
|
partnerReference?: string | null | undefined;
|
|
@@ -94,9 +94,9 @@ export declare const contract: {
|
|
|
94
94
|
} | null | undefined;
|
|
95
95
|
}, {
|
|
96
96
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
97
|
+
createdAt: Date;
|
|
97
98
|
id: string;
|
|
98
99
|
profileId: string;
|
|
99
|
-
createdAt: Date;
|
|
100
100
|
updatedAt: Date;
|
|
101
101
|
description: string;
|
|
102
102
|
channel: string;
|
|
@@ -104,9 +104,9 @@ export declare const contract: {
|
|
|
104
104
|
amount: number;
|
|
105
105
|
payeeName: string;
|
|
106
106
|
statusMessage: string;
|
|
107
|
+
notes?: string | null | undefined;
|
|
107
108
|
countryCode?: string | undefined;
|
|
108
109
|
currencyCode?: string | undefined;
|
|
109
|
-
notes?: string | null | undefined;
|
|
110
110
|
partnerReference?: string | null | undefined;
|
|
111
111
|
actionedAt?: Date | null | undefined;
|
|
112
112
|
approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
|
|
@@ -126,17 +126,17 @@ export declare const contract: {
|
|
|
126
126
|
total: number;
|
|
127
127
|
results: {
|
|
128
128
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
129
|
+
createdAt: Date;
|
|
129
130
|
id: string;
|
|
130
131
|
profileId: string;
|
|
131
|
-
createdAt: Date;
|
|
132
132
|
updatedAt: Date;
|
|
133
133
|
description: string;
|
|
134
134
|
channel: string;
|
|
135
|
-
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
136
|
-
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
137
135
|
msisdn: string;
|
|
138
136
|
amount: number;
|
|
139
137
|
payeeName: string;
|
|
138
|
+
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
139
|
+
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
140
140
|
statusMessage: string;
|
|
141
141
|
notes?: string | null | undefined;
|
|
142
142
|
partnerReference?: string | null | undefined;
|
|
@@ -157,9 +157,9 @@ export declare const contract: {
|
|
|
157
157
|
total: number;
|
|
158
158
|
results: {
|
|
159
159
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
160
|
+
createdAt: Date;
|
|
160
161
|
id: string;
|
|
161
162
|
profileId: string;
|
|
162
|
-
createdAt: Date;
|
|
163
163
|
updatedAt: Date;
|
|
164
164
|
description: string;
|
|
165
165
|
channel: string;
|
|
@@ -167,9 +167,9 @@ export declare const contract: {
|
|
|
167
167
|
amount: number;
|
|
168
168
|
payeeName: string;
|
|
169
169
|
statusMessage: string;
|
|
170
|
+
notes?: string | null | undefined;
|
|
170
171
|
countryCode?: string | undefined;
|
|
171
172
|
currencyCode?: string | undefined;
|
|
172
|
-
notes?: string | null | undefined;
|
|
173
173
|
partnerReference?: string | null | undefined;
|
|
174
174
|
actionedAt?: Date | null | undefined;
|
|
175
175
|
approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
|
|
@@ -195,16 +195,16 @@ export declare const contract: {
|
|
|
195
195
|
approvalStatus: z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>;
|
|
196
196
|
orderByDesc: z.ZodString;
|
|
197
197
|
}, "strip", z.ZodTypeAny, {
|
|
198
|
-
eager: string;
|
|
199
198
|
rangeStart: number;
|
|
200
199
|
rangeEnd: number;
|
|
201
200
|
orderByDesc: string;
|
|
201
|
+
eager: string;
|
|
202
202
|
approvalStatus: import("./payout.dtos.js").PayoutApprovalStatus;
|
|
203
203
|
}, {
|
|
204
|
-
eager: string;
|
|
205
204
|
rangeStart: number;
|
|
206
205
|
rangeEnd: number;
|
|
207
206
|
orderByDesc: string;
|
|
207
|
+
eager: string;
|
|
208
208
|
approvalStatus: import("./payout.dtos.js").PayoutApprovalStatus;
|
|
209
209
|
}>;
|
|
210
210
|
method: "GET";
|
|
@@ -258,17 +258,17 @@ export declare const contract: {
|
|
|
258
258
|
}>>>;
|
|
259
259
|
}, "strip", z.ZodTypeAny, {
|
|
260
260
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
261
|
+
createdAt: Date;
|
|
261
262
|
id: string;
|
|
262
263
|
profileId: string;
|
|
263
|
-
createdAt: Date;
|
|
264
264
|
updatedAt: Date;
|
|
265
265
|
description: string;
|
|
266
266
|
channel: string;
|
|
267
|
-
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
268
|
-
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
269
267
|
msisdn: string;
|
|
270
268
|
amount: number;
|
|
271
269
|
payeeName: string;
|
|
270
|
+
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
271
|
+
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
272
272
|
statusMessage: string;
|
|
273
273
|
notes?: string | null | undefined;
|
|
274
274
|
partnerReference?: string | null | undefined;
|
|
@@ -286,9 +286,9 @@ export declare const contract: {
|
|
|
286
286
|
} | null | undefined;
|
|
287
287
|
}, {
|
|
288
288
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
289
|
+
createdAt: Date;
|
|
289
290
|
id: string;
|
|
290
291
|
profileId: string;
|
|
291
|
-
createdAt: Date;
|
|
292
292
|
updatedAt: Date;
|
|
293
293
|
description: string;
|
|
294
294
|
channel: string;
|
|
@@ -296,9 +296,9 @@ export declare const contract: {
|
|
|
296
296
|
amount: number;
|
|
297
297
|
payeeName: string;
|
|
298
298
|
statusMessage: string;
|
|
299
|
+
notes?: string | null | undefined;
|
|
299
300
|
countryCode?: string | undefined;
|
|
300
301
|
currencyCode?: string | undefined;
|
|
301
|
-
notes?: string | null | undefined;
|
|
302
302
|
partnerReference?: string | null | undefined;
|
|
303
303
|
actionedAt?: Date | null | undefined;
|
|
304
304
|
approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
|
|
@@ -318,17 +318,17 @@ export declare const contract: {
|
|
|
318
318
|
total: number;
|
|
319
319
|
results: {
|
|
320
320
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
321
|
+
createdAt: Date;
|
|
321
322
|
id: string;
|
|
322
323
|
profileId: string;
|
|
323
|
-
createdAt: Date;
|
|
324
324
|
updatedAt: Date;
|
|
325
325
|
description: string;
|
|
326
326
|
channel: string;
|
|
327
|
-
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
328
|
-
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
329
327
|
msisdn: string;
|
|
330
328
|
amount: number;
|
|
331
329
|
payeeName: string;
|
|
330
|
+
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
331
|
+
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
332
332
|
statusMessage: string;
|
|
333
333
|
notes?: string | null | undefined;
|
|
334
334
|
partnerReference?: string | null | undefined;
|
|
@@ -349,9 +349,9 @@ export declare const contract: {
|
|
|
349
349
|
total: number;
|
|
350
350
|
results: {
|
|
351
351
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
352
|
+
createdAt: Date;
|
|
352
353
|
id: string;
|
|
353
354
|
profileId: string;
|
|
354
|
-
createdAt: Date;
|
|
355
355
|
updatedAt: Date;
|
|
356
356
|
description: string;
|
|
357
357
|
channel: string;
|
|
@@ -359,9 +359,9 @@ export declare const contract: {
|
|
|
359
359
|
amount: number;
|
|
360
360
|
payeeName: string;
|
|
361
361
|
statusMessage: string;
|
|
362
|
+
notes?: string | null | undefined;
|
|
362
363
|
countryCode?: string | undefined;
|
|
363
364
|
currencyCode?: string | undefined;
|
|
364
|
-
notes?: string | null | undefined;
|
|
365
365
|
partnerReference?: string | null | undefined;
|
|
366
366
|
actionedAt?: Date | null | undefined;
|
|
367
367
|
approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
|
|
@@ -453,17 +453,17 @@ export declare const contract: {
|
|
|
453
453
|
}>>>;
|
|
454
454
|
}, "strip", z.ZodTypeAny, {
|
|
455
455
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
456
|
+
createdAt: Date;
|
|
456
457
|
id: string;
|
|
457
458
|
profileId: string;
|
|
458
|
-
createdAt: Date;
|
|
459
459
|
updatedAt: Date;
|
|
460
460
|
description: string;
|
|
461
461
|
channel: string;
|
|
462
|
-
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
463
|
-
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
464
462
|
msisdn: string;
|
|
465
463
|
amount: number;
|
|
466
464
|
payeeName: string;
|
|
465
|
+
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
466
|
+
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
467
467
|
statusMessage: string;
|
|
468
468
|
notes?: string | null | undefined;
|
|
469
469
|
partnerReference?: string | null | undefined;
|
|
@@ -481,9 +481,9 @@ export declare const contract: {
|
|
|
481
481
|
} | null | undefined;
|
|
482
482
|
}, {
|
|
483
483
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
484
|
+
createdAt: Date;
|
|
484
485
|
id: string;
|
|
485
486
|
profileId: string;
|
|
486
|
-
createdAt: Date;
|
|
487
487
|
updatedAt: Date;
|
|
488
488
|
description: string;
|
|
489
489
|
channel: string;
|
|
@@ -491,9 +491,9 @@ export declare const contract: {
|
|
|
491
491
|
amount: number;
|
|
492
492
|
payeeName: string;
|
|
493
493
|
statusMessage: string;
|
|
494
|
+
notes?: string | null | undefined;
|
|
494
495
|
countryCode?: string | undefined;
|
|
495
496
|
currencyCode?: string | undefined;
|
|
496
|
-
notes?: string | null | undefined;
|
|
497
497
|
partnerReference?: string | null | undefined;
|
|
498
498
|
actionedAt?: Date | null | undefined;
|
|
499
499
|
approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
|
|
@@ -591,17 +591,17 @@ export declare const contract: {
|
|
|
591
591
|
}>>>;
|
|
592
592
|
}, "strip", z.ZodTypeAny, {
|
|
593
593
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
594
|
+
createdAt: Date;
|
|
594
595
|
id: string;
|
|
595
596
|
profileId: string;
|
|
596
|
-
createdAt: Date;
|
|
597
597
|
updatedAt: Date;
|
|
598
598
|
description: string;
|
|
599
599
|
channel: string;
|
|
600
|
-
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
601
|
-
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
602
600
|
msisdn: string;
|
|
603
601
|
amount: number;
|
|
604
602
|
payeeName: string;
|
|
603
|
+
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
604
|
+
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
605
605
|
statusMessage: string;
|
|
606
606
|
notes?: string | null | undefined;
|
|
607
607
|
partnerReference?: string | null | undefined;
|
|
@@ -619,9 +619,9 @@ export declare const contract: {
|
|
|
619
619
|
} | null | undefined;
|
|
620
620
|
}, {
|
|
621
621
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
622
|
+
createdAt: Date;
|
|
622
623
|
id: string;
|
|
623
624
|
profileId: string;
|
|
624
|
-
createdAt: Date;
|
|
625
625
|
updatedAt: Date;
|
|
626
626
|
description: string;
|
|
627
627
|
channel: string;
|
|
@@ -629,9 +629,9 @@ export declare const contract: {
|
|
|
629
629
|
amount: number;
|
|
630
630
|
payeeName: string;
|
|
631
631
|
statusMessage: string;
|
|
632
|
+
notes?: string | null | undefined;
|
|
632
633
|
countryCode?: string | undefined;
|
|
633
634
|
currencyCode?: string | undefined;
|
|
634
|
-
notes?: string | null | undefined;
|
|
635
635
|
partnerReference?: string | null | undefined;
|
|
636
636
|
actionedAt?: Date | null | undefined;
|
|
637
637
|
approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
|
|
@@ -701,17 +701,17 @@ export declare const contract: {
|
|
|
701
701
|
}>>>;
|
|
702
702
|
}, "strip", z.ZodTypeAny, {
|
|
703
703
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
704
|
+
createdAt: Date;
|
|
704
705
|
id: string;
|
|
705
706
|
profileId: string;
|
|
706
|
-
createdAt: Date;
|
|
707
707
|
updatedAt: Date;
|
|
708
708
|
description: string;
|
|
709
709
|
channel: string;
|
|
710
|
-
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
711
|
-
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
712
710
|
msisdn: string;
|
|
713
711
|
amount: number;
|
|
714
712
|
payeeName: string;
|
|
713
|
+
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
714
|
+
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
715
715
|
statusMessage: string;
|
|
716
716
|
notes?: string | null | undefined;
|
|
717
717
|
partnerReference?: string | null | undefined;
|
|
@@ -729,9 +729,9 @@ export declare const contract: {
|
|
|
729
729
|
} | null | undefined;
|
|
730
730
|
}, {
|
|
731
731
|
status: import("./payout.dtos.js").PayoutStatus;
|
|
732
|
+
createdAt: Date;
|
|
732
733
|
id: string;
|
|
733
734
|
profileId: string;
|
|
734
|
-
createdAt: Date;
|
|
735
735
|
updatedAt: Date;
|
|
736
736
|
description: string;
|
|
737
737
|
channel: string;
|
|
@@ -739,9 +739,9 @@ export declare const contract: {
|
|
|
739
739
|
amount: number;
|
|
740
740
|
payeeName: string;
|
|
741
741
|
statusMessage: string;
|
|
742
|
+
notes?: string | null | undefined;
|
|
742
743
|
countryCode?: string | undefined;
|
|
743
744
|
currencyCode?: string | undefined;
|
|
744
|
-
notes?: string | null | undefined;
|
|
745
745
|
partnerReference?: string | null | undefined;
|
|
746
746
|
actionedAt?: Date | null | undefined;
|
|
747
747
|
approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
|
|
@@ -144,17 +144,17 @@ declare const PayoutDTOSchema: z.ZodObject<{
|
|
|
144
144
|
}>>>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
status: PayoutStatus;
|
|
147
|
+
createdAt: Date;
|
|
147
148
|
id: string;
|
|
148
149
|
profileId: string;
|
|
149
|
-
createdAt: Date;
|
|
150
150
|
updatedAt: Date;
|
|
151
151
|
description: string;
|
|
152
152
|
channel: string;
|
|
153
|
-
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
154
|
-
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
155
153
|
msisdn: string;
|
|
156
154
|
amount: number;
|
|
157
155
|
payeeName: string;
|
|
156
|
+
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
157
|
+
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
158
158
|
statusMessage: string;
|
|
159
159
|
notes?: string | null | undefined;
|
|
160
160
|
partnerReference?: string | null | undefined;
|
|
@@ -172,9 +172,9 @@ declare const PayoutDTOSchema: z.ZodObject<{
|
|
|
172
172
|
} | null | undefined;
|
|
173
173
|
}, {
|
|
174
174
|
status: PayoutStatus;
|
|
175
|
+
createdAt: Date;
|
|
175
176
|
id: string;
|
|
176
177
|
profileId: string;
|
|
177
|
-
createdAt: Date;
|
|
178
178
|
updatedAt: Date;
|
|
179
179
|
description: string;
|
|
180
180
|
channel: string;
|
|
@@ -182,9 +182,9 @@ declare const PayoutDTOSchema: z.ZodObject<{
|
|
|
182
182
|
amount: number;
|
|
183
183
|
payeeName: string;
|
|
184
184
|
statusMessage: string;
|
|
185
|
+
notes?: string | null | undefined;
|
|
185
186
|
countryCode?: string | undefined;
|
|
186
187
|
currencyCode?: string | undefined;
|
|
187
|
-
notes?: string | null | undefined;
|
|
188
188
|
partnerReference?: string | null | undefined;
|
|
189
189
|
actionedAt?: Date | null | undefined;
|
|
190
190
|
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
@@ -231,9 +231,9 @@ declare const PayoutFiltersSchema: z.ZodObject<{
|
|
|
231
231
|
profileId?: string | null | undefined;
|
|
232
232
|
search?: string | null | undefined;
|
|
233
233
|
channel?: string | null | undefined;
|
|
234
|
-
currencyCode?: string | null | undefined;
|
|
235
234
|
msisdn?: string | null | undefined;
|
|
236
235
|
payeeName?: string | null | undefined;
|
|
236
|
+
currencyCode?: string | null | undefined;
|
|
237
237
|
partnerReference?: string | null | undefined;
|
|
238
238
|
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
239
239
|
startDate?: string | null | undefined;
|
|
@@ -242,15 +242,15 @@ declare const PayoutFiltersSchema: z.ZodObject<{
|
|
|
242
242
|
maxAmount?: number | null | undefined;
|
|
243
243
|
}, {
|
|
244
244
|
status?: PayoutStatus | null | undefined;
|
|
245
|
+
page?: number | undefined;
|
|
246
|
+
limit?: number | undefined;
|
|
245
247
|
id?: string | null | undefined;
|
|
246
248
|
profileId?: string | null | undefined;
|
|
247
249
|
search?: string | null | undefined;
|
|
248
|
-
page?: number | undefined;
|
|
249
|
-
limit?: number | undefined;
|
|
250
250
|
channel?: string | null | undefined;
|
|
251
|
-
currencyCode?: string | null | undefined;
|
|
252
251
|
msisdn?: string | null | undefined;
|
|
253
252
|
payeeName?: string | null | undefined;
|
|
253
|
+
currencyCode?: string | null | undefined;
|
|
254
254
|
partnerReference?: string | null | undefined;
|
|
255
255
|
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
256
256
|
sortBy?: string | undefined;
|
|
@@ -285,11 +285,11 @@ declare const PayoutURLQueryParamsSchema: z.ZodObject<{
|
|
|
285
285
|
sortBy: string;
|
|
286
286
|
sortOrder: "asc" | "desc";
|
|
287
287
|
status?: PayoutStatus | undefined;
|
|
288
|
+
page?: number | undefined;
|
|
289
|
+
limit?: number | undefined;
|
|
288
290
|
id?: string | undefined;
|
|
289
291
|
profileId?: string | undefined;
|
|
290
292
|
search?: string | undefined;
|
|
291
|
-
page?: number | undefined;
|
|
292
|
-
limit?: number | undefined;
|
|
293
293
|
channel?: string | undefined;
|
|
294
294
|
msisdn?: string | undefined;
|
|
295
295
|
payeeName?: string | undefined;
|
|
@@ -301,11 +301,11 @@ declare const PayoutURLQueryParamsSchema: z.ZodObject<{
|
|
|
301
301
|
maxAmount?: number | undefined;
|
|
302
302
|
}, {
|
|
303
303
|
status?: string | undefined;
|
|
304
|
+
page?: string | undefined;
|
|
305
|
+
limit?: string | undefined;
|
|
304
306
|
id?: string | undefined;
|
|
305
307
|
profileId?: string | undefined;
|
|
306
308
|
search?: string | undefined;
|
|
307
|
-
page?: string | undefined;
|
|
308
|
-
limit?: string | undefined;
|
|
309
309
|
channel?: string | undefined;
|
|
310
310
|
msisdn?: string | undefined;
|
|
311
311
|
payeeName?: string | undefined;
|
|
@@ -393,17 +393,17 @@ export declare const PayoutDTOSchemas: {
|
|
|
393
393
|
}>>>;
|
|
394
394
|
}, "strip", z.ZodTypeAny, {
|
|
395
395
|
status: PayoutStatus;
|
|
396
|
+
createdAt: Date;
|
|
396
397
|
id: string;
|
|
397
398
|
profileId: string;
|
|
398
|
-
createdAt: Date;
|
|
399
399
|
updatedAt: Date;
|
|
400
400
|
description: string;
|
|
401
401
|
channel: string;
|
|
402
|
-
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
403
|
-
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
404
402
|
msisdn: string;
|
|
405
403
|
amount: number;
|
|
406
404
|
payeeName: string;
|
|
405
|
+
countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
|
|
406
|
+
currencyCode: import("@temboplus/frontend-core").CurrencyCode;
|
|
407
407
|
statusMessage: string;
|
|
408
408
|
notes?: string | null | undefined;
|
|
409
409
|
partnerReference?: string | null | undefined;
|
|
@@ -421,9 +421,9 @@ export declare const PayoutDTOSchemas: {
|
|
|
421
421
|
} | null | undefined;
|
|
422
422
|
}, {
|
|
423
423
|
status: PayoutStatus;
|
|
424
|
+
createdAt: Date;
|
|
424
425
|
id: string;
|
|
425
426
|
profileId: string;
|
|
426
|
-
createdAt: Date;
|
|
427
427
|
updatedAt: Date;
|
|
428
428
|
description: string;
|
|
429
429
|
channel: string;
|
|
@@ -431,9 +431,9 @@ export declare const PayoutDTOSchemas: {
|
|
|
431
431
|
amount: number;
|
|
432
432
|
payeeName: string;
|
|
433
433
|
statusMessage: string;
|
|
434
|
+
notes?: string | null | undefined;
|
|
434
435
|
countryCode?: string | undefined;
|
|
435
436
|
currencyCode?: string | undefined;
|
|
436
|
-
notes?: string | null | undefined;
|
|
437
437
|
partnerReference?: string | null | undefined;
|
|
438
438
|
actionedAt?: Date | null | undefined;
|
|
439
439
|
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
@@ -515,9 +515,9 @@ export declare const PayoutDTOSchemas: {
|
|
|
515
515
|
profileId?: string | null | undefined;
|
|
516
516
|
search?: string | null | undefined;
|
|
517
517
|
channel?: string | null | undefined;
|
|
518
|
-
currencyCode?: string | null | undefined;
|
|
519
518
|
msisdn?: string | null | undefined;
|
|
520
519
|
payeeName?: string | null | undefined;
|
|
520
|
+
currencyCode?: string | null | undefined;
|
|
521
521
|
partnerReference?: string | null | undefined;
|
|
522
522
|
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
523
523
|
startDate?: string | null | undefined;
|
|
@@ -526,15 +526,15 @@ export declare const PayoutDTOSchemas: {
|
|
|
526
526
|
maxAmount?: number | null | undefined;
|
|
527
527
|
}, {
|
|
528
528
|
status?: PayoutStatus | null | undefined;
|
|
529
|
+
page?: number | undefined;
|
|
530
|
+
limit?: number | undefined;
|
|
529
531
|
id?: string | null | undefined;
|
|
530
532
|
profileId?: string | null | undefined;
|
|
531
533
|
search?: string | null | undefined;
|
|
532
|
-
page?: number | undefined;
|
|
533
|
-
limit?: number | undefined;
|
|
534
534
|
channel?: string | null | undefined;
|
|
535
|
-
currencyCode?: string | null | undefined;
|
|
536
535
|
msisdn?: string | null | undefined;
|
|
537
536
|
payeeName?: string | null | undefined;
|
|
537
|
+
currencyCode?: string | null | undefined;
|
|
538
538
|
partnerReference?: string | null | undefined;
|
|
539
539
|
approvalStatus?: PayoutApprovalStatus | null | undefined;
|
|
540
540
|
sortBy?: string | undefined;
|
|
@@ -566,11 +566,11 @@ export declare const PayoutDTOSchemas: {
|
|
|
566
566
|
sortBy: string;
|
|
567
567
|
sortOrder: "asc" | "desc";
|
|
568
568
|
status?: PayoutStatus | undefined;
|
|
569
|
+
page?: number | undefined;
|
|
570
|
+
limit?: number | undefined;
|
|
569
571
|
id?: string | undefined;
|
|
570
572
|
profileId?: string | undefined;
|
|
571
573
|
search?: string | undefined;
|
|
572
|
-
page?: number | undefined;
|
|
573
|
-
limit?: number | undefined;
|
|
574
574
|
channel?: string | undefined;
|
|
575
575
|
msisdn?: string | undefined;
|
|
576
576
|
payeeName?: string | undefined;
|
|
@@ -582,11 +582,11 @@ export declare const PayoutDTOSchemas: {
|
|
|
582
582
|
maxAmount?: number | undefined;
|
|
583
583
|
}, {
|
|
584
584
|
status?: string | undefined;
|
|
585
|
+
page?: string | undefined;
|
|
586
|
+
limit?: string | undefined;
|
|
585
587
|
id?: string | undefined;
|
|
586
588
|
profileId?: string | undefined;
|
|
587
589
|
search?: string | undefined;
|
|
588
|
-
page?: string | undefined;
|
|
589
|
-
limit?: string | undefined;
|
|
590
590
|
channel?: string | undefined;
|
|
591
591
|
msisdn?: string | undefined;
|
|
592
592
|
payeeName?: string | undefined;
|
|
@@ -53,18 +53,18 @@ export declare const PayoutJSONSchema: z.ZodObject<{
|
|
|
53
53
|
version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
55
|
status: PayoutStatus;
|
|
56
|
+
createdAt: string;
|
|
56
57
|
id: string;
|
|
57
58
|
version: string;
|
|
58
59
|
profileId: string;
|
|
59
|
-
createdAt: string;
|
|
60
60
|
updatedAt: string;
|
|
61
61
|
description: string;
|
|
62
62
|
channel: string;
|
|
63
|
-
countryCode: string;
|
|
64
|
-
currencyCode: string;
|
|
65
63
|
msisdn: string;
|
|
66
64
|
amount: number;
|
|
67
65
|
payeeName: string;
|
|
66
|
+
countryCode: string;
|
|
67
|
+
currencyCode: string;
|
|
68
68
|
statusMessage: string;
|
|
69
69
|
notes?: string | null | undefined;
|
|
70
70
|
partnerReference?: string | null | undefined;
|
|
@@ -82,17 +82,17 @@ export declare const PayoutJSONSchema: z.ZodObject<{
|
|
|
82
82
|
} | null | undefined;
|
|
83
83
|
}, {
|
|
84
84
|
status: PayoutStatus;
|
|
85
|
+
createdAt: string;
|
|
85
86
|
id: string;
|
|
86
87
|
profileId: string;
|
|
87
|
-
createdAt: string;
|
|
88
88
|
updatedAt: string;
|
|
89
89
|
description: string;
|
|
90
90
|
channel: string;
|
|
91
|
-
countryCode: string;
|
|
92
|
-
currencyCode: string;
|
|
93
91
|
msisdn: string;
|
|
94
92
|
amount: number;
|
|
95
93
|
payeeName: string;
|
|
94
|
+
countryCode: string;
|
|
95
|
+
currencyCode: string;
|
|
96
96
|
statusMessage: string;
|
|
97
97
|
version?: string | undefined;
|
|
98
98
|
notes?: string | null | undefined;
|
|
@@ -7,13 +7,20 @@ import { PayoutChannel } from "./payout.dtos.js";
|
|
|
7
7
|
import { PayoutQuery } from "./payout.query.js";
|
|
8
8
|
import { PayoutFilters } from "./payout.dtos.js";
|
|
9
9
|
import { Paged } from "@/lib/query/index.js";
|
|
10
|
+
import { Wallet } from "../wallet/wallet.model.js";
|
|
10
11
|
/**
|
|
11
12
|
* Input type for payout creation mutation
|
|
12
13
|
*/
|
|
13
14
|
export interface CreatePayoutInput {
|
|
15
|
+
/** The wallet to pay from */
|
|
16
|
+
wallet: Wallet;
|
|
17
|
+
/** The payout channel to use (MOBILE or BANK) */
|
|
14
18
|
channel: PayoutChannel;
|
|
19
|
+
/** Contact information for the payout receiver */
|
|
15
20
|
receiver: ContactInfo;
|
|
21
|
+
/** The amount to pay out */
|
|
16
22
|
amount: Amount;
|
|
23
|
+
/** Optional notes/narration for the payout */
|
|
17
24
|
notes?: string;
|
|
18
25
|
}
|
|
19
26
|
/**
|
|
@@ -117,6 +124,7 @@ export declare class PayoutRepository extends BaseRepository<PayoutAPI> {
|
|
|
117
124
|
* Creates a new payout with the provided input data.
|
|
118
125
|
*
|
|
119
126
|
* @param input - The payout creation data
|
|
127
|
+
* @param input.wallet - The wallet to pay from
|
|
120
128
|
* @param input.channel - The payout channel to use
|
|
121
129
|
* @param input.receiver - Contact information for the payout receiver
|
|
122
130
|
* @param input.amount - The amount to pay out
|
|
@@ -127,6 +135,7 @@ export declare class PayoutRepository extends BaseRepository<PayoutAPI> {
|
|
|
127
135
|
* @example
|
|
128
136
|
* ```typescript
|
|
129
137
|
* const payout = await repo.pay({
|
|
138
|
+
* wallet: selectedWallet,
|
|
130
139
|
* channel: PayoutChannel.MOBILE,
|
|
131
140
|
* receiver: { name: "John Doe", phone: "+255123456789" },
|
|
132
141
|
* amount: Amount.from(10000, "TZS"),
|
|
@@ -145,7 +154,8 @@ export declare class PayoutRepository extends BaseRepository<PayoutAPI> {
|
|
|
145
154
|
*
|
|
146
155
|
* @example
|
|
147
156
|
* ```typescript
|
|
148
|
-
* const approvedPayout = await repo.approve(
|
|
157
|
+
* const approvedPayout = await repo.approve({
|
|
158
|
+
* id: "payout-id",
|
|
149
159
|
* notes: "Approved after verification"
|
|
150
160
|
* });
|
|
151
161
|
* ```
|
|
@@ -161,7 +171,8 @@ export declare class PayoutRepository extends BaseRepository<PayoutAPI> {
|
|
|
161
171
|
*
|
|
162
172
|
* @example
|
|
163
173
|
* ```typescript
|
|
164
|
-
* const rejectedPayout = await repo.reject(
|
|
174
|
+
* const rejectedPayout = await repo.reject({
|
|
175
|
+
* id: "payout-id",
|
|
165
176
|
* notes: "Insufficient documentation"
|
|
166
177
|
* });
|
|
167
178
|
* ```
|
|
@@ -13,16 +13,16 @@ export declare const RoleJSONSchema: z.ZodObject<{
|
|
|
13
13
|
version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
name: string;
|
|
16
|
+
createdAt: string;
|
|
16
17
|
id: string;
|
|
17
18
|
version: string;
|
|
18
|
-
createdAt: string;
|
|
19
19
|
updatedAt: string;
|
|
20
20
|
access: string[];
|
|
21
21
|
description?: string | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
name: string;
|
|
24
|
-
id: string;
|
|
25
24
|
createdAt: string;
|
|
25
|
+
id: string;
|
|
26
26
|
updatedAt: string;
|
|
27
27
|
access: string[];
|
|
28
28
|
version?: string | undefined;
|