@temboplus/tembo-dashboard 0.2.0 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +46 -92
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.d.ts +3 -2
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.esm.js +1 -1
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/lib/api/base-repository.d.ts +4 -4
  10. package/dist/lib/api/base-repository.d.ts.map +1 -0
  11. package/dist/lib/api/common-schemas.d.ts +37 -296
  12. package/dist/lib/api/common-schemas.d.ts.map +1 -0
  13. package/dist/lib/api/index.d.ts +1 -0
  14. package/dist/lib/api/index.d.ts.map +1 -0
  15. package/dist/lib/error/error.api.d.ts +3 -2
  16. package/dist/lib/error/error.api.d.ts.map +1 -0
  17. package/dist/lib/error/index.d.ts +1 -0
  18. package/dist/lib/error/index.d.ts.map +1 -0
  19. package/dist/lib/models/index.d.ts +2 -1
  20. package/dist/lib/models/index.d.ts.map +1 -0
  21. package/dist/lib/models/statement-entry.model.d.ts +3 -2
  22. package/dist/lib/models/statement-entry.model.d.ts.map +1 -0
  23. package/dist/lib/models/transaction-summary.model.d.ts +3 -2
  24. package/dist/lib/models/transaction-summary.model.d.ts.map +1 -0
  25. package/dist/lib/models/wallet-info.model.d.ts +2 -1
  26. package/dist/lib/models/wallet-info.model.d.ts.map +1 -0
  27. package/dist/lib/query/index.d.ts +1 -0
  28. package/dist/lib/query/index.d.ts.map +1 -0
  29. package/dist/lib/query/query.builder.d.ts +2 -1
  30. package/dist/lib/query/query.builder.d.ts.map +1 -0
  31. package/dist/lib/query/query.types.d.ts +1 -0
  32. package/dist/lib/query/query.types.d.ts.map +1 -0
  33. package/dist/lib/types.d.ts +1 -0
  34. package/dist/lib/types.d.ts.map +1 -0
  35. package/dist/modules/auth/auth.api-contract.d.ts +11 -108
  36. package/dist/modules/auth/auth.api-contract.d.ts.map +1 -0
  37. package/dist/modules/auth/auth.dtos.d.ts +4 -23
  38. package/dist/modules/auth/auth.dtos.d.ts.map +1 -0
  39. package/dist/modules/auth/auth.repository.d.ts +1 -0
  40. package/dist/modules/auth/auth.repository.d.ts.map +1 -0
  41. package/dist/modules/auth/index.d.ts +3 -2
  42. package/dist/modules/auth/index.d.ts.map +1 -0
  43. package/dist/modules/auth/user.model.d.ts +1 -0
  44. package/dist/modules/auth/user.model.d.ts.map +1 -0
  45. package/dist/modules/collection/collection.api-contract.d.ts +35 -387
  46. package/dist/modules/collection/collection.api-contract.d.ts.map +1 -0
  47. package/dist/modules/collection/collection.model.d.ts +3 -2
  48. package/dist/modules/collection/collection.model.d.ts.map +1 -0
  49. package/dist/modules/collection/collection.query.d.ts +2 -1
  50. package/dist/modules/collection/collection.query.d.ts.map +1 -0
  51. package/dist/modules/collection/collection.repository.d.ts +4 -3
  52. package/dist/modules/collection/collection.repository.d.ts.map +1 -0
  53. package/dist/modules/collection/collection.types.d.ts +32 -167
  54. package/dist/modules/collection/collection.types.d.ts.map +1 -0
  55. package/dist/modules/collection/index.d.ts +3 -2
  56. package/dist/modules/collection/index.d.ts.map +1 -0
  57. package/dist/modules/payout/index.d.ts +3 -2
  58. package/dist/modules/payout/index.d.ts.map +1 -0
  59. package/dist/modules/payout/payout.api-contract.d.ts +36 -402
  60. package/dist/modules/payout/payout.api-contract.d.ts.map +1 -0
  61. package/dist/modules/payout/payout.model.d.ts +4 -3
  62. package/dist/modules/payout/payout.model.d.ts.map +1 -0
  63. package/dist/modules/payout/payout.query.d.ts +2 -1
  64. package/dist/modules/payout/payout.query.d.ts.map +1 -0
  65. package/dist/modules/payout/payout.repository.d.ts +4 -3
  66. package/dist/modules/payout/payout.repository.d.ts.map +1 -0
  67. package/dist/modules/payout/payout.types.d.ts +39 -214
  68. package/dist/modules/payout/payout.types.d.ts.map +1 -0
  69. package/dist/modules/transaction/index.d.ts +1 -0
  70. package/dist/modules/transaction/index.d.ts.map +1 -0
  71. package/dist/modules/transaction/transaction.api-contract.d.ts +7 -84
  72. package/dist/modules/transaction/transaction.api-contract.d.ts.map +1 -0
  73. package/dist/modules/transaction/transaction.repository.d.ts +2 -1
  74. package/dist/modules/transaction/transaction.repository.d.ts.map +1 -0
  75. package/dist/modules/transaction/transaction.types.d.ts +3 -28
  76. package/dist/modules/transaction/transaction.types.d.ts.map +1 -0
  77. package/dist/modules/wallet/index.d.ts +1 -0
  78. package/dist/modules/wallet/index.d.ts.map +1 -0
  79. package/dist/modules/wallet/wallet.api-contract.d.ts +32 -287
  80. package/dist/modules/wallet/wallet.api-contract.d.ts.map +1 -0
  81. package/dist/modules/wallet/wallet.model.d.ts +2 -1
  82. package/dist/modules/wallet/wallet.model.d.ts.map +1 -0
  83. package/dist/modules/wallet/wallet.repository.d.ts +2 -1
  84. package/dist/modules/wallet/wallet.repository.d.ts.map +1 -0
  85. package/dist/modules/wallet/wallet.types.d.ts +8 -61
  86. package/dist/modules/wallet/wallet.types.d.ts.map +1 -0
  87. package/package.json +34 -23
@@ -16,95 +16,33 @@ export declare const walletContract: {
16
16
  type: z.ZodString;
17
17
  vendorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  balance: z.ZodNumber;
19
- minBalance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
20
- approvalLimit: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
19
+ minBalance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
20
+ approvalLimit: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
21
21
  currency: z.ZodString;
22
22
  countryCode: z.ZodString;
23
23
  createdAt: z.ZodString;
24
24
  updatedAt: z.ZodString;
25
- }, "strip", z.ZodTypeAny, {
26
- type: string;
27
- createdAt: string;
28
- balance: number;
29
- accountName: string;
30
- accountNo: string;
31
- id: string;
32
- updatedAt: string;
33
- countryCode: string;
34
- currency: string;
35
- minBalance: string | number;
36
- approvalLimit: string | number;
37
- reference?: string | null | undefined;
38
- externalId?: string | null | undefined;
39
- shadowAccountNo?: string | null | undefined;
40
- vendorId?: string | null | undefined;
41
- }, {
42
- type: string;
43
- createdAt: string;
44
- balance: number;
45
- accountName: string;
46
- accountNo: string;
47
- id: string;
48
- updatedAt: string;
49
- countryCode: string;
50
- currency: string;
51
- minBalance: string | number;
52
- approvalLimit: string | number;
53
- reference?: string | null | undefined;
54
- externalId?: string | null | undefined;
55
- shadowAccountNo?: string | null | undefined;
56
- vendorId?: string | null | undefined;
57
- }>, "many">;
25
+ }, z.core.$strip>>;
58
26
  401: z.ZodObject<{
59
27
  reason: z.ZodOptional<z.ZodString>;
60
28
  error: z.ZodOptional<z.ZodString>;
61
29
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
62
30
  message: z.ZodOptional<z.ZodString>;
63
- } & {
64
31
  statusCode: z.ZodLiteral<401>;
65
- }, "strip", z.ZodTypeAny, {
66
- statusCode: 401;
67
- message?: string | undefined;
68
- error?: string | undefined;
69
- details?: Record<string, unknown> | undefined;
70
- reason?: string | undefined;
71
- }, {
72
- statusCode: 401;
73
- message?: string | undefined;
74
- error?: string | undefined;
75
- details?: Record<string, unknown> | undefined;
76
- reason?: string | undefined;
77
- }>;
32
+ }, z.core.$strip>;
78
33
  500: z.ZodObject<{
79
34
  reason: z.ZodOptional<z.ZodString>;
80
35
  error: z.ZodOptional<z.ZodString>;
81
36
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
82
37
  message: z.ZodOptional<z.ZodString>;
83
- } & {
84
38
  statusCode: z.ZodLiteral<500>;
85
- }, "strip", z.ZodTypeAny, {
86
- statusCode: 500;
87
- message?: string | undefined;
88
- error?: string | undefined;
89
- details?: Record<string, unknown> | undefined;
90
- reason?: string | undefined;
91
- }, {
92
- statusCode: 500;
93
- message?: string | undefined;
94
- error?: string | undefined;
95
- details?: Record<string, unknown> | undefined;
96
- reason?: string | undefined;
97
- }>;
39
+ }, z.core.$strip>;
98
40
  };
99
41
  };
100
42
  getWalletInfo: {
101
43
  pathParams: z.ZodObject<{
102
44
  accountNo: z.ZodString;
103
- }, "strip", z.ZodTypeAny, {
104
- accountNo: string;
105
- }, {
106
- accountNo: string;
107
- }>;
45
+ }, z.core.$strip>;
108
46
  summary: "Get wallet info";
109
47
  description: "Retrieve wallet metadata including balance, currency, and type for a specific wallet.";
110
48
  method: "GET";
@@ -120,95 +58,33 @@ export declare const walletContract: {
120
58
  type: z.ZodString;
121
59
  vendorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
60
  balance: z.ZodNumber;
123
- minBalance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
124
- approvalLimit: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
61
+ minBalance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
62
+ approvalLimit: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
125
63
  currency: z.ZodString;
126
64
  countryCode: z.ZodString;
127
65
  createdAt: z.ZodString;
128
66
  updatedAt: z.ZodString;
129
- }, "strip", z.ZodTypeAny, {
130
- type: string;
131
- createdAt: string;
132
- balance: number;
133
- accountName: string;
134
- accountNo: string;
135
- id: string;
136
- updatedAt: string;
137
- countryCode: string;
138
- currency: string;
139
- minBalance: string | number;
140
- approvalLimit: string | number;
141
- reference?: string | null | undefined;
142
- externalId?: string | null | undefined;
143
- shadowAccountNo?: string | null | undefined;
144
- vendorId?: string | null | undefined;
145
- }, {
146
- type: string;
147
- createdAt: string;
148
- balance: number;
149
- accountName: string;
150
- accountNo: string;
151
- id: string;
152
- updatedAt: string;
153
- countryCode: string;
154
- currency: string;
155
- minBalance: string | number;
156
- approvalLimit: string | number;
157
- reference?: string | null | undefined;
158
- externalId?: string | null | undefined;
159
- shadowAccountNo?: string | null | undefined;
160
- vendorId?: string | null | undefined;
161
- }>;
67
+ }, z.core.$strip>;
162
68
  401: z.ZodObject<{
163
69
  reason: z.ZodOptional<z.ZodString>;
164
70
  error: z.ZodOptional<z.ZodString>;
165
71
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
166
72
  message: z.ZodOptional<z.ZodString>;
167
- } & {
168
73
  statusCode: z.ZodLiteral<401>;
169
- }, "strip", z.ZodTypeAny, {
170
- statusCode: 401;
171
- message?: string | undefined;
172
- error?: string | undefined;
173
- details?: Record<string, unknown> | undefined;
174
- reason?: string | undefined;
175
- }, {
176
- statusCode: 401;
177
- message?: string | undefined;
178
- error?: string | undefined;
179
- details?: Record<string, unknown> | undefined;
180
- reason?: string | undefined;
181
- }>;
74
+ }, z.core.$strip>;
182
75
  500: z.ZodObject<{
183
76
  reason: z.ZodOptional<z.ZodString>;
184
77
  error: z.ZodOptional<z.ZodString>;
185
78
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
186
79
  message: z.ZodOptional<z.ZodString>;
187
- } & {
188
80
  statusCode: z.ZodLiteral<500>;
189
- }, "strip", z.ZodTypeAny, {
190
- statusCode: 500;
191
- message?: string | undefined;
192
- error?: string | undefined;
193
- details?: Record<string, unknown> | undefined;
194
- reason?: string | undefined;
195
- }, {
196
- statusCode: 500;
197
- message?: string | undefined;
198
- error?: string | undefined;
199
- details?: Record<string, unknown> | undefined;
200
- reason?: string | undefined;
201
- }>;
81
+ }, z.core.$strip>;
202
82
  };
203
83
  };
204
84
  getWalletBalance: {
205
85
  pathParams: z.ZodObject<{
206
86
  accountNo: z.ZodString;
207
- }, "strip", z.ZodTypeAny, {
208
- accountNo: string;
209
- }, {
210
- accountNo: string;
211
- }>;
87
+ }, z.core.$strip>;
212
88
  summary: "Get wallet balance";
213
89
  description: "Retrieve the current and available balance for a specific wallet account number.";
214
90
  method: "GET";
@@ -220,99 +96,38 @@ export declare const walletContract: {
220
96
  accountStatus: z.ZodString;
221
97
  accountNo: z.ZodString;
222
98
  accountName: z.ZodString;
223
- }, "strip", z.ZodTypeAny, {
224
- availableBalance: number;
225
- accountName: string;
226
- accountNo: string;
227
- currentBalance: number;
228
- accountStatus: string;
229
- }, {
230
- availableBalance: number;
231
- accountName: string;
232
- accountNo: string;
233
- currentBalance: number;
234
- accountStatus: string;
235
- }>;
99
+ }, z.core.$strip>;
236
100
  401: z.ZodObject<{
237
101
  reason: z.ZodOptional<z.ZodString>;
238
102
  error: z.ZodOptional<z.ZodString>;
239
103
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
240
104
  message: z.ZodOptional<z.ZodString>;
241
- } & {
242
105
  statusCode: z.ZodLiteral<401>;
243
- }, "strip", z.ZodTypeAny, {
244
- statusCode: 401;
245
- message?: string | undefined;
246
- error?: string | undefined;
247
- details?: Record<string, unknown> | undefined;
248
- reason?: string | undefined;
249
- }, {
250
- statusCode: 401;
251
- message?: string | undefined;
252
- error?: string | undefined;
253
- details?: Record<string, unknown> | undefined;
254
- reason?: string | undefined;
255
- }>;
106
+ }, z.core.$strip>;
256
107
  404: z.ZodObject<{
257
108
  reason: z.ZodOptional<z.ZodString>;
258
109
  error: z.ZodOptional<z.ZodString>;
259
110
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
260
111
  message: z.ZodOptional<z.ZodString>;
261
- } & {
262
112
  statusCode: z.ZodLiteral<404>;
263
- }, "strip", z.ZodTypeAny, {
264
- statusCode: 404;
265
- message?: string | undefined;
266
- error?: string | undefined;
267
- details?: Record<string, unknown> | undefined;
268
- reason?: string | undefined;
269
- }, {
270
- statusCode: 404;
271
- message?: string | undefined;
272
- error?: string | undefined;
273
- details?: Record<string, unknown> | undefined;
274
- reason?: string | undefined;
275
- }>;
113
+ }, z.core.$strip>;
276
114
  500: z.ZodObject<{
277
115
  reason: z.ZodOptional<z.ZodString>;
278
116
  error: z.ZodOptional<z.ZodString>;
279
117
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
280
118
  message: z.ZodOptional<z.ZodString>;
281
- } & {
282
119
  statusCode: z.ZodLiteral<500>;
283
- }, "strip", z.ZodTypeAny, {
284
- statusCode: 500;
285
- message?: string | undefined;
286
- error?: string | undefined;
287
- details?: Record<string, unknown> | undefined;
288
- reason?: string | undefined;
289
- }, {
290
- statusCode: 500;
291
- message?: string | undefined;
292
- error?: string | undefined;
293
- details?: Record<string, unknown> | undefined;
294
- reason?: string | undefined;
295
- }>;
120
+ }, z.core.$strip>;
296
121
  };
297
122
  };
298
123
  getWalletStatement: {
299
124
  pathParams: z.ZodObject<{
300
125
  accountNo: z.ZodString;
301
- }, "strip", z.ZodTypeAny, {
302
- accountNo: string;
303
- }, {
304
- accountNo: string;
305
- }>;
126
+ }, z.core.$strip>;
306
127
  query: z.ZodObject<{
307
128
  startDate: z.ZodString;
308
129
  endDate: z.ZodString;
309
- }, "strip", z.ZodTypeAny, {
310
- startDate: string;
311
- endDate: string;
312
- }, {
313
- startDate: string;
314
- endDate: string;
315
- }>;
130
+ }, z.core.$strip>;
316
131
  summary: "Get wallet statement";
317
132
  description: "Retrieve statement entries for a specific wallet within a date range.";
318
133
  method: "GET";
@@ -320,119 +135,49 @@ export declare const walletContract: {
320
135
  responses: {
321
136
  200: z.ZodArray<z.ZodObject<{
322
137
  accountNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
323
- debitOrCredit: z.ZodEnum<["CR", "DR"]>;
138
+ debitOrCredit: z.ZodEnum<{
139
+ CR: "CR";
140
+ DR: "DR";
141
+ }>;
324
142
  tranRefNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
325
143
  cbaRefNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
144
  narration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
327
- txnDate: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
328
- valueDate: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
329
- amountCredited: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, number, string>]>>>;
330
- amountDebited: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, number, string>]>>>;
145
+ txnDate: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
146
+ valueDate: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
147
+ amountCredited: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
148
+ amountDebited: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
331
149
  balance: z.ZodNumber;
332
- }, "strip", z.ZodTypeAny, {
333
- balance: number;
334
- debitOrCredit: "CR" | "DR";
335
- txnDate: string | null;
336
- valueDate: string | null;
337
- accountNo?: string | null | undefined;
338
- tranRefNo?: string | null | undefined;
339
- cbaRefNo?: string | null | undefined;
340
- narration?: string | null | undefined;
341
- amountCredited?: number | null | undefined;
342
- amountDebited?: number | null | undefined;
343
- }, {
344
- balance: number;
345
- debitOrCredit: "CR" | "DR";
346
- accountNo?: string | null | undefined;
347
- tranRefNo?: string | null | undefined;
348
- cbaRefNo?: string | null | undefined;
349
- narration?: string | null | undefined;
350
- txnDate?: string | null | undefined;
351
- valueDate?: string | null | undefined;
352
- amountCredited?: string | number | null | undefined;
353
- amountDebited?: string | number | null | undefined;
354
- }>, "many">;
150
+ }, z.core.$strip>>;
355
151
  400: z.ZodObject<{
356
152
  reason: z.ZodOptional<z.ZodString>;
357
153
  error: z.ZodOptional<z.ZodString>;
358
154
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
359
155
  message: z.ZodOptional<z.ZodString>;
360
- } & {
361
156
  statusCode: z.ZodLiteral<400>;
362
- }, "strip", z.ZodTypeAny, {
363
- statusCode: 400;
364
- message?: string | undefined;
365
- error?: string | undefined;
366
- details?: Record<string, unknown> | undefined;
367
- reason?: string | undefined;
368
- }, {
369
- statusCode: 400;
370
- message?: string | undefined;
371
- error?: string | undefined;
372
- details?: Record<string, unknown> | undefined;
373
- reason?: string | undefined;
374
- }>;
157
+ }, z.core.$strip>;
375
158
  401: z.ZodObject<{
376
159
  reason: z.ZodOptional<z.ZodString>;
377
160
  error: z.ZodOptional<z.ZodString>;
378
161
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
379
162
  message: z.ZodOptional<z.ZodString>;
380
- } & {
381
163
  statusCode: z.ZodLiteral<401>;
382
- }, "strip", z.ZodTypeAny, {
383
- statusCode: 401;
384
- message?: string | undefined;
385
- error?: string | undefined;
386
- details?: Record<string, unknown> | undefined;
387
- reason?: string | undefined;
388
- }, {
389
- statusCode: 401;
390
- message?: string | undefined;
391
- error?: string | undefined;
392
- details?: Record<string, unknown> | undefined;
393
- reason?: string | undefined;
394
- }>;
164
+ }, z.core.$strip>;
395
165
  404: z.ZodObject<{
396
166
  reason: z.ZodOptional<z.ZodString>;
397
167
  error: z.ZodOptional<z.ZodString>;
398
168
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
399
169
  message: z.ZodOptional<z.ZodString>;
400
- } & {
401
170
  statusCode: z.ZodLiteral<404>;
402
- }, "strip", z.ZodTypeAny, {
403
- statusCode: 404;
404
- message?: string | undefined;
405
- error?: string | undefined;
406
- details?: Record<string, unknown> | undefined;
407
- reason?: string | undefined;
408
- }, {
409
- statusCode: 404;
410
- message?: string | undefined;
411
- error?: string | undefined;
412
- details?: Record<string, unknown> | undefined;
413
- reason?: string | undefined;
414
- }>;
171
+ }, z.core.$strip>;
415
172
  500: z.ZodObject<{
416
173
  reason: z.ZodOptional<z.ZodString>;
417
174
  error: z.ZodOptional<z.ZodString>;
418
175
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
419
176
  message: z.ZodOptional<z.ZodString>;
420
- } & {
421
177
  statusCode: z.ZodLiteral<500>;
422
- }, "strip", z.ZodTypeAny, {
423
- statusCode: 500;
424
- message?: string | undefined;
425
- error?: string | undefined;
426
- details?: Record<string, unknown> | undefined;
427
- reason?: string | undefined;
428
- }, {
429
- statusCode: 500;
430
- message?: string | undefined;
431
- error?: string | undefined;
432
- details?: Record<string, unknown> | undefined;
433
- reason?: string | undefined;
434
- }>;
178
+ }, z.core.$strip>;
435
179
  };
436
180
  };
437
181
  };
438
182
  export type WalletContract = typeof walletContract;
183
+ //# sourceMappingURL=wallet.api-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet.api-contract.d.ts","sourceRoot":"","sources":["../../../src/modules/wallet/wallet.api-contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Amount, AmountJson, CurrencyCode } from "@temboplus/frontend-core";
1
+ import { Amount, type AmountJson, type CurrencyCode } from "@temboplus/frontend-core";
2
2
  export interface WalletData {
3
3
  id: string;
4
4
  accountNo: string;
@@ -61,3 +61,4 @@ export declare class Wallet {
61
61
  toJSON(): WalletJson;
62
62
  static fromJSON(json: WalletJson): Wallet | undefined;
63
63
  }
64
+ //# sourceMappingURL=wallet.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet.model.d.ts","sourceRoot":"","sources":["../../../src/modules/wallet/wallet.model.ts"],"names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models/index.js";
3
- import { Wallet } from "./wallet.model.js";
4
3
  import { walletContract } from "./wallet.api-contract.js";
4
+ import { Wallet } from "./wallet.model.js";
5
5
  export interface WalletStatementInput {
6
6
  accountNo: string;
7
7
  startDate: Date | string;
@@ -18,3 +18,4 @@ export declare class WalletRepository extends BaseRepository<typeof walletContra
18
18
  getWalletStatement(input: WalletStatementInput): Promise<StatementEntry[]>;
19
19
  private formatStatementDate;
20
20
  }
21
+ //# sourceMappingURL=wallet.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet.repository.d.ts","sourceRoot":"","sources":["../../../src/modules/wallet/wallet.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA0B,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAmB,MAAM,mBAAmB,CAAC;AAG5D,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC;CACxB;AAED,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,OAAO,cAAc,CAAC;gBAC7D,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;IAIjD,WAAW,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAUhC,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAWjD,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAWxD,kBAAkB,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAmBhF,OAAO,CAAC,mBAAmB;CAmB5B"}
@@ -17,84 +17,31 @@ export declare const WalletDTOSchemas: {
17
17
  type: z.ZodString;
18
18
  vendorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  balance: z.ZodNumber;
20
- minBalance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
21
- approvalLimit: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
20
+ minBalance: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
21
+ approvalLimit: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
22
22
  currency: z.ZodString;
23
23
  countryCode: z.ZodString;
24
24
  createdAt: z.ZodString;
25
25
  updatedAt: z.ZodString;
26
- }, "strip", z.ZodTypeAny, {
27
- type: string;
28
- createdAt: string;
29
- balance: number;
30
- accountName: string;
31
- accountNo: string;
32
- id: string;
33
- updatedAt: string;
34
- countryCode: string;
35
- currency: string;
36
- minBalance: string | number;
37
- approvalLimit: string | number;
38
- reference?: string | null | undefined;
39
- externalId?: string | null | undefined;
40
- shadowAccountNo?: string | null | undefined;
41
- vendorId?: string | null | undefined;
42
- }, {
43
- type: string;
44
- createdAt: string;
45
- balance: number;
46
- accountName: string;
47
- accountNo: string;
48
- id: string;
49
- updatedAt: string;
50
- countryCode: string;
51
- currency: string;
52
- minBalance: string | number;
53
- approvalLimit: string | number;
54
- reference?: string | null | undefined;
55
- externalId?: string | null | undefined;
56
- shadowAccountNo?: string | null | undefined;
57
- vendorId?: string | null | undefined;
58
- }>;
59
- walletType: z.ZodNativeEnum<typeof WALLET_TYPE>;
26
+ }, z.core.$strip>;
27
+ walletType: z.ZodEnum<typeof WALLET_TYPE>;
60
28
  walletPathParams: z.ZodObject<{
61
29
  accountNo: z.ZodString;
62
- }, "strip", z.ZodTypeAny, {
63
- accountNo: string;
64
- }, {
65
- accountNo: string;
66
- }>;
30
+ }, z.core.$strip>;
67
31
  walletBalance: z.ZodObject<{
68
32
  availableBalance: z.ZodNumber;
69
33
  currentBalance: z.ZodNumber;
70
34
  accountStatus: z.ZodString;
71
35
  accountNo: z.ZodString;
72
36
  accountName: z.ZodString;
73
- }, "strip", z.ZodTypeAny, {
74
- availableBalance: number;
75
- accountName: string;
76
- accountNo: string;
77
- currentBalance: number;
78
- accountStatus: string;
79
- }, {
80
- availableBalance: number;
81
- accountName: string;
82
- accountNo: string;
83
- currentBalance: number;
84
- accountStatus: string;
85
- }>;
37
+ }, z.core.$strip>;
86
38
  walletStatementQuery: z.ZodObject<{
87
39
  startDate: z.ZodString;
88
40
  endDate: z.ZodString;
89
- }, "strip", z.ZodTypeAny, {
90
- startDate: string;
91
- endDate: string;
92
- }, {
93
- startDate: string;
94
- endDate: string;
95
- }>;
41
+ }, z.core.$strip>;
96
42
  };
97
43
  export type WalletDTO = z.infer<typeof WalletDTOSchemas.wallet>;
98
44
  export type WalletPathParamsDTO = z.infer<typeof WalletDTOSchemas.walletPathParams>;
99
45
  export type WalletBalanceDTO = z.infer<typeof WalletDTOSchemas.walletBalance>;
100
46
  export type WalletStatementQueryDTO = z.infer<typeof WalletDTOSchemas.walletStatementQuery>;
47
+ //# sourceMappingURL=wallet.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet.types.d.ts","sourceRoot":"","sources":["../../../src/modules/wallet/wallet.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,oBAAoB,yBAAyB;IAC7C,kBAAkB,uBAAuB;IACzC,UAAU,eAAe;IACzB,YAAY,iBAAiB;CAC9B;AAuCD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM5B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AACpF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAC9E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,oBAAoB,CAAC,CAAC"}