@temboplus/tembo-dashboard 0.0.1

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 (35) hide show
  1. package/README.md +130 -0
  2. package/dist/index.cjs.js +2 -0
  3. package/dist/index.cjs.js.map +1 -0
  4. package/dist/index.d.ts +6 -0
  5. package/dist/index.esm.js +2 -0
  6. package/dist/index.esm.js.map +1 -0
  7. package/dist/lib/api/base-repository.d.ts +168 -0
  8. package/dist/lib/api/common-schemas.d.ts +115 -0
  9. package/dist/lib/api/index.d.ts +2 -0
  10. package/dist/lib/error/error.api.d.ts +62 -0
  11. package/dist/lib/error/index.d.ts +1 -0
  12. package/dist/lib/models/index.d.ts +2 -0
  13. package/dist/lib/models/transaction-summary.model.d.ts +22 -0
  14. package/dist/lib/models/wallet-info.model.d.ts +17 -0
  15. package/dist/lib/query/index.d.ts +2 -0
  16. package/dist/lib/query/query.builder.d.ts +65 -0
  17. package/dist/lib/query/query.types.d.ts +36 -0
  18. package/dist/modules/auth/auth.api-contract.d.ts +52 -0
  19. package/dist/modules/auth/auth.dtos.d.ts +31 -0
  20. package/dist/modules/auth/auth.repository.d.ts +17 -0
  21. package/dist/modules/auth/index.d.ts +4 -0
  22. package/dist/modules/auth/user.model.d.ts +48 -0
  23. package/dist/modules/collection/collection.api-contract.d.ts +385 -0
  24. package/dist/modules/collection/collection.dtos.d.ts +195 -0
  25. package/dist/modules/collection/collection.model.d.ts +145 -0
  26. package/dist/modules/collection/collection.query-builder.d.ts +18 -0
  27. package/dist/modules/collection/collection.repository.d.ts +38 -0
  28. package/dist/modules/collection/index.d.ts +5 -0
  29. package/dist/modules/payout/index.d.ts +5 -0
  30. package/dist/modules/payout/payout.api-contract.d.ts +427 -0
  31. package/dist/modules/payout/payout.dtos.d.ts +188 -0
  32. package/dist/modules/payout/payout.model.d.ts +156 -0
  33. package/dist/modules/payout/payout.query-builder.d.ts +15 -0
  34. package/dist/modules/payout/payout.repository.d.ts +34 -0
  35. package/package.json +60 -0
@@ -0,0 +1,427 @@
1
+ import { z } from "zod";
2
+ export declare const payoutContract: {
3
+ getPayouts: {
4
+ query: z.ZodObject<{
5
+ page: z.ZodDefault<z.ZodNumber>;
6
+ limit: z.ZodDefault<z.ZodNumber>;
7
+ sortBy: z.ZodDefault<z.ZodEnum<["transactionDate", "amount", "statusCodeText", "createdAt"]>>;
8
+ sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
9
+ startDate: z.ZodOptional<z.ZodString>;
10
+ endDate: z.ZodOptional<z.ZodString>;
11
+ msisdn: z.ZodOptional<z.ZodString>;
12
+ id: z.ZodOptional<z.ZodString>;
13
+ ref: z.ZodOptional<z.ZodString>;
14
+ channel: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<typeof import("./payout.dtos").MOBILE_PAYOUT_CHANNEL>, z.ZodNativeEnum<typeof import("./payout.dtos").BANK_PAYOUT_CHANNEL>]>>;
15
+ status: z.ZodOptional<z.ZodNativeEnum<typeof import("./payout.dtos").PAYOUT_STATUS>>;
16
+ minAmount: z.ZodOptional<z.ZodNumber>;
17
+ maxAmount: z.ZodOptional<z.ZodNumber>;
18
+ search: z.ZodOptional<z.ZodString>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ page: number;
21
+ limit: number;
22
+ sortBy: "transactionDate" | "amount" | "createdAt" | "statusCodeText";
23
+ sortOrder: "asc" | "desc";
24
+ status?: import("./payout.dtos").PAYOUT_STATUS | undefined;
25
+ search?: string | undefined;
26
+ id?: string | undefined;
27
+ msisdn?: string | undefined;
28
+ channel?: import("./payout.dtos").MOBILE_PAYOUT_CHANNEL | import("./payout.dtos").BANK_PAYOUT_CHANNEL | undefined;
29
+ startDate?: string | undefined;
30
+ endDate?: string | undefined;
31
+ minAmount?: number | undefined;
32
+ maxAmount?: number | undefined;
33
+ ref?: string | undefined;
34
+ }, {
35
+ status?: import("./payout.dtos").PAYOUT_STATUS | undefined;
36
+ page?: number | undefined;
37
+ limit?: number | undefined;
38
+ search?: string | undefined;
39
+ id?: string | undefined;
40
+ msisdn?: string | undefined;
41
+ channel?: import("./payout.dtos").MOBILE_PAYOUT_CHANNEL | import("./payout.dtos").BANK_PAYOUT_CHANNEL | undefined;
42
+ sortBy?: "transactionDate" | "amount" | "createdAt" | "statusCodeText" | undefined;
43
+ sortOrder?: "asc" | "desc" | undefined;
44
+ startDate?: string | undefined;
45
+ endDate?: string | undefined;
46
+ minAmount?: number | undefined;
47
+ maxAmount?: number | undefined;
48
+ ref?: string | undefined;
49
+ }>;
50
+ summary: "List payouts";
51
+ description: "Retrieve a paginated list of payouts with optional filtering";
52
+ method: "GET";
53
+ path: "";
54
+ responses: {
55
+ 200: z.ZodObject<{
56
+ data: z.ZodArray<z.ZodObject<{
57
+ id: z.ZodString;
58
+ statusCode: z.ZodString;
59
+ statusCodeText: z.ZodNativeEnum<typeof import("./payout.dtos").PAYOUT_STATUS>;
60
+ statusDescription: z.ZodString;
61
+ countryCode: z.ZodString;
62
+ serviceCode: z.ZodUnion<[z.ZodNativeEnum<typeof import("./payout.dtos").MOBILE_PAYOUT_CHANNEL>, z.ZodNativeEnum<typeof import("./payout.dtos").BANK_PAYOUT_CHANNEL>]>;
63
+ amount: z.ZodNumber;
64
+ serviceFee: z.ZodOptional<z.ZodString>;
65
+ postedAmount: z.ZodOptional<z.ZodString>;
66
+ walletId: z.ZodOptional<z.ZodString>;
67
+ msisdn: z.ZodString;
68
+ narration: z.ZodString;
69
+ currencyCode: z.ZodString;
70
+ recipientNames: z.ZodOptional<z.ZodString>;
71
+ transactionRef: z.ZodString;
72
+ transactionDate: z.ZodString;
73
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ cbaReferenceNo: z.ZodOptional<z.ZodString>;
75
+ beepTransactionId: z.ZodOptional<z.ZodString>;
76
+ receiptNumber: z.ZodOptional<z.ZodString>;
77
+ createdAt: z.ZodString;
78
+ reversedTransactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ transactionId: z.ZodString;
80
+ serviceFeeTransactionId: z.ZodOptional<z.ZodString>;
81
+ isReconciled: z.ZodOptional<z.ZodNumber>;
82
+ requestId: z.ZodOptional<z.ZodString>;
83
+ notes: z.ZodOptional<z.ZodString>;
84
+ updatedAt: z.ZodOptional<z.ZodString>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ statusCode: string;
87
+ id: string;
88
+ transactionDate: string;
89
+ narration: string;
90
+ msisdn: string;
91
+ amount: number;
92
+ transactionId: string;
93
+ createdAt: string;
94
+ currencyCode: string;
95
+ statusCodeText: import("./payout.dtos").PAYOUT_STATUS;
96
+ statusDescription: string;
97
+ countryCode: string;
98
+ serviceCode: import("./payout.dtos").MOBILE_PAYOUT_CHANNEL | import("./payout.dtos").BANK_PAYOUT_CHANNEL;
99
+ transactionRef: string;
100
+ walletId?: string | undefined;
101
+ serviceFee?: string | undefined;
102
+ postedAmount?: string | undefined;
103
+ serviceFeeTransactionId?: string | undefined;
104
+ requestId?: string | undefined;
105
+ updatedAt?: string | undefined;
106
+ notes?: string | undefined;
107
+ recipientNames?: string | undefined;
108
+ externalId?: string | null | undefined;
109
+ cbaReferenceNo?: string | undefined;
110
+ beepTransactionId?: string | undefined;
111
+ receiptNumber?: string | undefined;
112
+ reversedTransactionId?: string | null | undefined;
113
+ isReconciled?: number | undefined;
114
+ }, {
115
+ statusCode: string;
116
+ id: string;
117
+ transactionDate: string;
118
+ narration: string;
119
+ msisdn: string;
120
+ amount: number;
121
+ transactionId: string;
122
+ createdAt: string;
123
+ currencyCode: string;
124
+ statusCodeText: import("./payout.dtos").PAYOUT_STATUS;
125
+ statusDescription: string;
126
+ countryCode: string;
127
+ serviceCode: import("./payout.dtos").MOBILE_PAYOUT_CHANNEL | import("./payout.dtos").BANK_PAYOUT_CHANNEL;
128
+ transactionRef: string;
129
+ walletId?: string | undefined;
130
+ serviceFee?: string | undefined;
131
+ postedAmount?: string | undefined;
132
+ serviceFeeTransactionId?: string | undefined;
133
+ requestId?: string | undefined;
134
+ updatedAt?: string | undefined;
135
+ notes?: string | undefined;
136
+ recipientNames?: string | undefined;
137
+ externalId?: string | null | undefined;
138
+ cbaReferenceNo?: string | undefined;
139
+ beepTransactionId?: string | undefined;
140
+ receiptNumber?: string | undefined;
141
+ reversedTransactionId?: string | null | undefined;
142
+ isReconciled?: number | undefined;
143
+ }>, "many">;
144
+ total: z.ZodNumber;
145
+ }, "strip", z.ZodTypeAny, {
146
+ total: number;
147
+ data: {
148
+ statusCode: string;
149
+ id: string;
150
+ transactionDate: string;
151
+ narration: string;
152
+ msisdn: string;
153
+ amount: number;
154
+ transactionId: string;
155
+ createdAt: string;
156
+ currencyCode: string;
157
+ statusCodeText: import("./payout.dtos").PAYOUT_STATUS;
158
+ statusDescription: string;
159
+ countryCode: string;
160
+ serviceCode: import("./payout.dtos").MOBILE_PAYOUT_CHANNEL | import("./payout.dtos").BANK_PAYOUT_CHANNEL;
161
+ transactionRef: string;
162
+ walletId?: string | undefined;
163
+ serviceFee?: string | undefined;
164
+ postedAmount?: string | undefined;
165
+ serviceFeeTransactionId?: string | undefined;
166
+ requestId?: string | undefined;
167
+ updatedAt?: string | undefined;
168
+ notes?: string | undefined;
169
+ recipientNames?: string | undefined;
170
+ externalId?: string | null | undefined;
171
+ cbaReferenceNo?: string | undefined;
172
+ beepTransactionId?: string | undefined;
173
+ receiptNumber?: string | undefined;
174
+ reversedTransactionId?: string | null | undefined;
175
+ isReconciled?: number | undefined;
176
+ }[];
177
+ }, {
178
+ total: number;
179
+ data: {
180
+ statusCode: string;
181
+ id: string;
182
+ transactionDate: string;
183
+ narration: string;
184
+ msisdn: string;
185
+ amount: number;
186
+ transactionId: string;
187
+ createdAt: string;
188
+ currencyCode: string;
189
+ statusCodeText: import("./payout.dtos").PAYOUT_STATUS;
190
+ statusDescription: string;
191
+ countryCode: string;
192
+ serviceCode: import("./payout.dtos").MOBILE_PAYOUT_CHANNEL | import("./payout.dtos").BANK_PAYOUT_CHANNEL;
193
+ transactionRef: string;
194
+ walletId?: string | undefined;
195
+ serviceFee?: string | undefined;
196
+ postedAmount?: string | undefined;
197
+ serviceFeeTransactionId?: string | undefined;
198
+ requestId?: string | undefined;
199
+ updatedAt?: string | undefined;
200
+ notes?: string | undefined;
201
+ recipientNames?: string | undefined;
202
+ externalId?: string | null | undefined;
203
+ cbaReferenceNo?: string | undefined;
204
+ beepTransactionId?: string | undefined;
205
+ receiptNumber?: string | undefined;
206
+ reversedTransactionId?: string | null | undefined;
207
+ isReconciled?: number | undefined;
208
+ }[];
209
+ }>;
210
+ 401: z.ZodObject<{
211
+ message: z.ZodOptional<z.ZodString>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ message?: string | undefined;
214
+ }, {
215
+ message?: string | undefined;
216
+ }>;
217
+ 403: z.ZodObject<{
218
+ message: z.ZodOptional<z.ZodString>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ message?: string | undefined;
221
+ }, {
222
+ message?: string | undefined;
223
+ }>;
224
+ };
225
+ };
226
+ getPayout: {
227
+ pathParams: z.ZodObject<{
228
+ id: z.ZodString;
229
+ }, "strip", z.ZodTypeAny, {
230
+ id: string;
231
+ }, {
232
+ id: string;
233
+ }>;
234
+ summary: "Get payout details";
235
+ description: "Retrieve detailed information about a specific payout";
236
+ method: "GET";
237
+ path: "/:id";
238
+ responses: {
239
+ 200: z.ZodObject<{
240
+ id: z.ZodString;
241
+ statusCode: z.ZodString;
242
+ statusCodeText: z.ZodNativeEnum<typeof import("./payout.dtos").PAYOUT_STATUS>;
243
+ statusDescription: z.ZodString;
244
+ countryCode: z.ZodString;
245
+ serviceCode: z.ZodUnion<[z.ZodNativeEnum<typeof import("./payout.dtos").MOBILE_PAYOUT_CHANNEL>, z.ZodNativeEnum<typeof import("./payout.dtos").BANK_PAYOUT_CHANNEL>]>;
246
+ amount: z.ZodNumber;
247
+ serviceFee: z.ZodOptional<z.ZodString>;
248
+ postedAmount: z.ZodOptional<z.ZodString>;
249
+ walletId: z.ZodOptional<z.ZodString>;
250
+ msisdn: z.ZodString;
251
+ narration: z.ZodString;
252
+ currencyCode: z.ZodString;
253
+ recipientNames: z.ZodOptional<z.ZodString>;
254
+ transactionRef: z.ZodString;
255
+ transactionDate: z.ZodString;
256
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ cbaReferenceNo: z.ZodOptional<z.ZodString>;
258
+ beepTransactionId: z.ZodOptional<z.ZodString>;
259
+ receiptNumber: z.ZodOptional<z.ZodString>;
260
+ createdAt: z.ZodString;
261
+ reversedTransactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
+ transactionId: z.ZodString;
263
+ serviceFeeTransactionId: z.ZodOptional<z.ZodString>;
264
+ isReconciled: z.ZodOptional<z.ZodNumber>;
265
+ requestId: z.ZodOptional<z.ZodString>;
266
+ notes: z.ZodOptional<z.ZodString>;
267
+ updatedAt: z.ZodOptional<z.ZodString>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ statusCode: string;
270
+ id: string;
271
+ transactionDate: string;
272
+ narration: string;
273
+ msisdn: string;
274
+ amount: number;
275
+ transactionId: string;
276
+ createdAt: string;
277
+ currencyCode: string;
278
+ statusCodeText: import("./payout.dtos").PAYOUT_STATUS;
279
+ statusDescription: string;
280
+ countryCode: string;
281
+ serviceCode: import("./payout.dtos").MOBILE_PAYOUT_CHANNEL | import("./payout.dtos").BANK_PAYOUT_CHANNEL;
282
+ transactionRef: string;
283
+ walletId?: string | undefined;
284
+ serviceFee?: string | undefined;
285
+ postedAmount?: string | undefined;
286
+ serviceFeeTransactionId?: string | undefined;
287
+ requestId?: string | undefined;
288
+ updatedAt?: string | undefined;
289
+ notes?: string | undefined;
290
+ recipientNames?: string | undefined;
291
+ externalId?: string | null | undefined;
292
+ cbaReferenceNo?: string | undefined;
293
+ beepTransactionId?: string | undefined;
294
+ receiptNumber?: string | undefined;
295
+ reversedTransactionId?: string | null | undefined;
296
+ isReconciled?: number | undefined;
297
+ }, {
298
+ statusCode: string;
299
+ id: string;
300
+ transactionDate: string;
301
+ narration: string;
302
+ msisdn: string;
303
+ amount: number;
304
+ transactionId: string;
305
+ createdAt: string;
306
+ currencyCode: string;
307
+ statusCodeText: import("./payout.dtos").PAYOUT_STATUS;
308
+ statusDescription: string;
309
+ countryCode: string;
310
+ serviceCode: import("./payout.dtos").MOBILE_PAYOUT_CHANNEL | import("./payout.dtos").BANK_PAYOUT_CHANNEL;
311
+ transactionRef: string;
312
+ walletId?: string | undefined;
313
+ serviceFee?: string | undefined;
314
+ postedAmount?: string | undefined;
315
+ serviceFeeTransactionId?: string | undefined;
316
+ requestId?: string | undefined;
317
+ updatedAt?: string | undefined;
318
+ notes?: string | undefined;
319
+ recipientNames?: string | undefined;
320
+ externalId?: string | null | undefined;
321
+ cbaReferenceNo?: string | undefined;
322
+ beepTransactionId?: string | undefined;
323
+ receiptNumber?: string | undefined;
324
+ reversedTransactionId?: string | null | undefined;
325
+ isReconciled?: number | undefined;
326
+ }>;
327
+ 401: z.ZodObject<{
328
+ message: z.ZodOptional<z.ZodString>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ message?: string | undefined;
331
+ }, {
332
+ message?: string | undefined;
333
+ }>;
334
+ 403: z.ZodObject<{
335
+ message: z.ZodOptional<z.ZodString>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ message?: string | undefined;
338
+ }, {
339
+ message?: string | undefined;
340
+ }>;
341
+ 404: z.ZodObject<{
342
+ message: z.ZodOptional<z.ZodString>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ message?: string | undefined;
345
+ }, {
346
+ message?: string | undefined;
347
+ }>;
348
+ };
349
+ };
350
+ getPayoutSummary: {
351
+ summary: "Get payout summary";
352
+ description: "Retrieve payout statistics including yesterday, today, this month, and last month totals";
353
+ method: "GET";
354
+ path: "/summary";
355
+ responses: {
356
+ 200: z.ZodObject<{
357
+ yesterday: z.ZodNumber;
358
+ today: z.ZodNumber;
359
+ thisMonth: z.ZodNumber;
360
+ lastMonth: z.ZodNumber;
361
+ }, "strip", z.ZodTypeAny, {
362
+ yesterday: number;
363
+ today: number;
364
+ thisMonth: number;
365
+ lastMonth: number;
366
+ }, {
367
+ yesterday: number;
368
+ today: number;
369
+ thisMonth: number;
370
+ lastMonth: number;
371
+ }>;
372
+ 401: z.ZodObject<{
373
+ message: z.ZodOptional<z.ZodString>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ message?: string | undefined;
376
+ }, {
377
+ message?: string | undefined;
378
+ }>;
379
+ 403: z.ZodObject<{
380
+ message: z.ZodOptional<z.ZodString>;
381
+ }, "strip", z.ZodTypeAny, {
382
+ message?: string | undefined;
383
+ }, {
384
+ message?: string | undefined;
385
+ }>;
386
+ };
387
+ };
388
+ getBalance: {
389
+ summary: "Get account balance";
390
+ description: "Retrieve current account balance and status information";
391
+ method: "GET";
392
+ path: "/balance";
393
+ responses: {
394
+ 200: z.ZodObject<{
395
+ balance: z.ZodNumber;
396
+ availableBalance: z.ZodNumber;
397
+ accountNumber: z.ZodString;
398
+ accountName: z.ZodString;
399
+ }, "strip", z.ZodTypeAny, {
400
+ balance: number;
401
+ availableBalance: number;
402
+ accountNumber: string;
403
+ accountName: string;
404
+ }, {
405
+ balance: number;
406
+ availableBalance: number;
407
+ accountNumber: string;
408
+ accountName: string;
409
+ }>;
410
+ 401: z.ZodObject<{
411
+ message: z.ZodOptional<z.ZodString>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ message?: string | undefined;
414
+ }, {
415
+ message?: string | undefined;
416
+ }>;
417
+ 403: z.ZodObject<{
418
+ message: z.ZodOptional<z.ZodString>;
419
+ }, "strip", z.ZodTypeAny, {
420
+ message?: string | undefined;
421
+ }, {
422
+ message?: string | undefined;
423
+ }>;
424
+ };
425
+ };
426
+ };
427
+ export type PayoutContract = typeof payoutContract;
@@ -0,0 +1,188 @@
1
+ import { z } from "zod";
2
+ export declare enum PAYOUT_STATUS {
3
+ PAYMENT_ACCEPTED = "PAYMENT_ACCEPTED",
4
+ GENERIC_FAILURE = "GENERIC_FAILURE",
5
+ WALLET_DEBITED = "WALLET_DEBITED",
6
+ PAYMENT_REJECTED = "PAYMENT_REJECTED",
7
+ PENDING = "PENDING",
8
+ AMOUNT_EXCEED_MAXIMUM = "AMOUNT_EXCEED_MAXIMUM",
9
+ PENDING_ACK = "PENDING_ACK",
10
+ REVERSED = "REVERSED",
11
+ INVALID_SERVICE = "INVALID_SERVICE",
12
+ INSUFFICIENT_BALANCE = "INSUFFICIENT_BALANCE",
13
+ THIRDPARTY_FAILED = "THIRDPARTY_FAILED"
14
+ }
15
+ export declare enum MOBILE_PAYOUT_CHANNEL {
16
+ AIRTEL = "TZ-AIRTEL-B2C",
17
+ VODACOM = "TZ-VODACOM-B2C",
18
+ TIGO = "TZ-TIGO-B2C",
19
+ HALOTEL = "TZ-HALOTEL-B2C"
20
+ }
21
+ export declare enum BANK_PAYOUT_CHANNEL {
22
+ BANK = "TZ-BANK-B2C"
23
+ }
24
+ export type PAYOUT_CHANNEL = MOBILE_PAYOUT_CHANNEL | BANK_PAYOUT_CHANNEL;
25
+ export declare const PayoutDTOSchemas: {
26
+ payout: z.ZodObject<{
27
+ id: z.ZodString;
28
+ statusCode: z.ZodString;
29
+ statusCodeText: z.ZodNativeEnum<typeof PAYOUT_STATUS>;
30
+ statusDescription: z.ZodString;
31
+ countryCode: z.ZodString;
32
+ serviceCode: z.ZodUnion<[z.ZodNativeEnum<typeof MOBILE_PAYOUT_CHANNEL>, z.ZodNativeEnum<typeof BANK_PAYOUT_CHANNEL>]>;
33
+ amount: z.ZodNumber;
34
+ serviceFee: z.ZodOptional<z.ZodString>;
35
+ postedAmount: z.ZodOptional<z.ZodString>;
36
+ walletId: z.ZodOptional<z.ZodString>;
37
+ msisdn: z.ZodString;
38
+ narration: z.ZodString;
39
+ currencyCode: z.ZodString;
40
+ recipientNames: z.ZodOptional<z.ZodString>;
41
+ transactionRef: z.ZodString;
42
+ transactionDate: z.ZodString;
43
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ cbaReferenceNo: z.ZodOptional<z.ZodString>;
45
+ beepTransactionId: z.ZodOptional<z.ZodString>;
46
+ receiptNumber: z.ZodOptional<z.ZodString>;
47
+ createdAt: z.ZodString;
48
+ reversedTransactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ transactionId: z.ZodString;
50
+ serviceFeeTransactionId: z.ZodOptional<z.ZodString>;
51
+ isReconciled: z.ZodOptional<z.ZodNumber>;
52
+ requestId: z.ZodOptional<z.ZodString>;
53
+ notes: z.ZodOptional<z.ZodString>;
54
+ updatedAt: z.ZodOptional<z.ZodString>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ statusCode: string;
57
+ id: string;
58
+ transactionDate: string;
59
+ narration: string;
60
+ msisdn: string;
61
+ amount: number;
62
+ transactionId: string;
63
+ createdAt: string;
64
+ currencyCode: string;
65
+ statusCodeText: PAYOUT_STATUS;
66
+ statusDescription: string;
67
+ countryCode: string;
68
+ serviceCode: MOBILE_PAYOUT_CHANNEL | BANK_PAYOUT_CHANNEL;
69
+ transactionRef: string;
70
+ walletId?: string | undefined;
71
+ serviceFee?: string | undefined;
72
+ postedAmount?: string | undefined;
73
+ serviceFeeTransactionId?: string | undefined;
74
+ requestId?: string | undefined;
75
+ updatedAt?: string | undefined;
76
+ notes?: string | undefined;
77
+ recipientNames?: string | undefined;
78
+ externalId?: string | null | undefined;
79
+ cbaReferenceNo?: string | undefined;
80
+ beepTransactionId?: string | undefined;
81
+ receiptNumber?: string | undefined;
82
+ reversedTransactionId?: string | null | undefined;
83
+ isReconciled?: number | undefined;
84
+ }, {
85
+ statusCode: string;
86
+ id: string;
87
+ transactionDate: string;
88
+ narration: string;
89
+ msisdn: string;
90
+ amount: number;
91
+ transactionId: string;
92
+ createdAt: string;
93
+ currencyCode: string;
94
+ statusCodeText: PAYOUT_STATUS;
95
+ statusDescription: string;
96
+ countryCode: string;
97
+ serviceCode: MOBILE_PAYOUT_CHANNEL | BANK_PAYOUT_CHANNEL;
98
+ transactionRef: string;
99
+ walletId?: string | undefined;
100
+ serviceFee?: string | undefined;
101
+ postedAmount?: string | undefined;
102
+ serviceFeeTransactionId?: string | undefined;
103
+ requestId?: string | undefined;
104
+ updatedAt?: string | undefined;
105
+ notes?: string | undefined;
106
+ recipientNames?: string | undefined;
107
+ externalId?: string | null | undefined;
108
+ cbaReferenceNo?: string | undefined;
109
+ beepTransactionId?: string | undefined;
110
+ receiptNumber?: string | undefined;
111
+ reversedTransactionId?: string | null | undefined;
112
+ isReconciled?: number | undefined;
113
+ }>;
114
+ payoutQueryParams: z.ZodObject<{
115
+ page: z.ZodDefault<z.ZodNumber>;
116
+ limit: z.ZodDefault<z.ZodNumber>;
117
+ sortBy: z.ZodDefault<z.ZodEnum<["transactionDate", "amount", "statusCodeText", "createdAt"]>>;
118
+ sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
119
+ startDate: z.ZodOptional<z.ZodString>;
120
+ endDate: z.ZodOptional<z.ZodString>;
121
+ msisdn: z.ZodOptional<z.ZodString>;
122
+ id: z.ZodOptional<z.ZodString>;
123
+ ref: z.ZodOptional<z.ZodString>;
124
+ channel: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<typeof MOBILE_PAYOUT_CHANNEL>, z.ZodNativeEnum<typeof BANK_PAYOUT_CHANNEL>]>>;
125
+ status: z.ZodOptional<z.ZodNativeEnum<typeof PAYOUT_STATUS>>;
126
+ minAmount: z.ZodOptional<z.ZodNumber>;
127
+ maxAmount: z.ZodOptional<z.ZodNumber>;
128
+ search: z.ZodOptional<z.ZodString>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ page: number;
131
+ limit: number;
132
+ sortBy: "transactionDate" | "amount" | "createdAt" | "statusCodeText";
133
+ sortOrder: "asc" | "desc";
134
+ status?: PAYOUT_STATUS | undefined;
135
+ search?: string | undefined;
136
+ id?: string | undefined;
137
+ msisdn?: string | undefined;
138
+ channel?: MOBILE_PAYOUT_CHANNEL | BANK_PAYOUT_CHANNEL | undefined;
139
+ startDate?: string | undefined;
140
+ endDate?: string | undefined;
141
+ minAmount?: number | undefined;
142
+ maxAmount?: number | undefined;
143
+ ref?: string | undefined;
144
+ }, {
145
+ status?: PAYOUT_STATUS | undefined;
146
+ page?: number | undefined;
147
+ limit?: number | undefined;
148
+ search?: string | undefined;
149
+ id?: string | undefined;
150
+ msisdn?: string | undefined;
151
+ channel?: MOBILE_PAYOUT_CHANNEL | BANK_PAYOUT_CHANNEL | undefined;
152
+ sortBy?: "transactionDate" | "amount" | "createdAt" | "statusCodeText" | undefined;
153
+ sortOrder?: "asc" | "desc" | undefined;
154
+ startDate?: string | undefined;
155
+ endDate?: string | undefined;
156
+ minAmount?: number | undefined;
157
+ maxAmount?: number | undefined;
158
+ ref?: string | undefined;
159
+ }>;
160
+ pagination: z.ZodObject<{
161
+ page: z.ZodNumber;
162
+ limit: z.ZodNumber;
163
+ total: z.ZodNumber;
164
+ totalPages: z.ZodNumber;
165
+ hasNext: z.ZodBoolean;
166
+ hasPrev: z.ZodBoolean;
167
+ }, "strip", z.ZodTypeAny, {
168
+ page: number;
169
+ limit: number;
170
+ total: number;
171
+ totalPages: number;
172
+ hasNext: boolean;
173
+ hasPrev: boolean;
174
+ }, {
175
+ page: number;
176
+ limit: number;
177
+ total: number;
178
+ totalPages: number;
179
+ hasNext: boolean;
180
+ hasPrev: boolean;
181
+ }>;
182
+ payoutStatus: z.ZodNativeEnum<typeof PAYOUT_STATUS>;
183
+ payoutChannel: z.ZodUnion<[z.ZodNativeEnum<typeof MOBILE_PAYOUT_CHANNEL>, z.ZodNativeEnum<typeof BANK_PAYOUT_CHANNEL>]>;
184
+ mobileChannel: z.ZodNativeEnum<typeof MOBILE_PAYOUT_CHANNEL>;
185
+ bankChannel: z.ZodNativeEnum<typeof BANK_PAYOUT_CHANNEL>;
186
+ };
187
+ export type PayoutDTO = z.infer<typeof PayoutDTOSchemas.payout>;
188
+ export type PayoutQueryParamsDTO = z.infer<typeof PayoutDTOSchemas.payoutQueryParams>;