@temboplus/tembo-dashboard 0.0.25 → 0.0.26-beta.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.
@@ -208,18 +208,64 @@ export declare const payoutContract: {
208
208
  }[];
209
209
  }>;
210
210
  401: z.ZodObject<{
211
+ reason: z.ZodOptional<z.ZodString>;
212
+ error: z.ZodOptional<z.ZodString>;
213
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
211
214
  message: z.ZodOptional<z.ZodString>;
215
+ } & {
216
+ statusCode: z.ZodLiteral<401>;
212
217
  }, "strip", z.ZodTypeAny, {
218
+ statusCode: 401;
213
219
  message?: string | undefined;
220
+ error?: string | undefined;
221
+ details?: Record<string, unknown> | undefined;
222
+ reason?: string | undefined;
214
223
  }, {
224
+ statusCode: 401;
215
225
  message?: string | undefined;
226
+ error?: string | undefined;
227
+ details?: Record<string, unknown> | undefined;
228
+ reason?: string | undefined;
216
229
  }>;
217
230
  403: z.ZodObject<{
231
+ reason: z.ZodOptional<z.ZodString>;
232
+ error: z.ZodOptional<z.ZodString>;
233
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
218
234
  message: z.ZodOptional<z.ZodString>;
235
+ } & {
236
+ statusCode: z.ZodLiteral<403>;
219
237
  }, "strip", z.ZodTypeAny, {
238
+ statusCode: 403;
220
239
  message?: string | undefined;
240
+ error?: string | undefined;
241
+ details?: Record<string, unknown> | undefined;
242
+ reason?: string | undefined;
221
243
  }, {
244
+ statusCode: 403;
222
245
  message?: string | undefined;
246
+ error?: string | undefined;
247
+ details?: Record<string, unknown> | undefined;
248
+ reason?: string | undefined;
249
+ }>;
250
+ 500: z.ZodObject<{
251
+ reason: z.ZodOptional<z.ZodString>;
252
+ error: z.ZodOptional<z.ZodString>;
253
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
254
+ message: z.ZodOptional<z.ZodString>;
255
+ } & {
256
+ statusCode: z.ZodLiteral<500>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ statusCode: 500;
259
+ message?: string | undefined;
260
+ error?: string | undefined;
261
+ details?: Record<string, unknown> | undefined;
262
+ reason?: string | undefined;
263
+ }, {
264
+ statusCode: 500;
265
+ message?: string | undefined;
266
+ error?: string | undefined;
267
+ details?: Record<string, unknown> | undefined;
268
+ reason?: string | undefined;
223
269
  }>;
224
270
  };
225
271
  };
@@ -325,25 +371,84 @@ export declare const payoutContract: {
325
371
  isReconciled?: number | undefined;
326
372
  }>;
327
373
  401: z.ZodObject<{
374
+ reason: z.ZodOptional<z.ZodString>;
375
+ error: z.ZodOptional<z.ZodString>;
376
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
328
377
  message: z.ZodOptional<z.ZodString>;
378
+ } & {
379
+ statusCode: z.ZodLiteral<401>;
329
380
  }, "strip", z.ZodTypeAny, {
381
+ statusCode: 401;
330
382
  message?: string | undefined;
383
+ error?: string | undefined;
384
+ details?: Record<string, unknown> | undefined;
385
+ reason?: string | undefined;
331
386
  }, {
387
+ statusCode: 401;
332
388
  message?: string | undefined;
389
+ error?: string | undefined;
390
+ details?: Record<string, unknown> | undefined;
391
+ reason?: string | undefined;
333
392
  }>;
334
393
  403: z.ZodObject<{
394
+ reason: z.ZodOptional<z.ZodString>;
395
+ error: z.ZodOptional<z.ZodString>;
396
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
335
397
  message: z.ZodOptional<z.ZodString>;
398
+ } & {
399
+ statusCode: z.ZodLiteral<403>;
336
400
  }, "strip", z.ZodTypeAny, {
401
+ statusCode: 403;
337
402
  message?: string | undefined;
403
+ error?: string | undefined;
404
+ details?: Record<string, unknown> | undefined;
405
+ reason?: string | undefined;
338
406
  }, {
407
+ statusCode: 403;
339
408
  message?: string | undefined;
409
+ error?: string | undefined;
410
+ details?: Record<string, unknown> | undefined;
411
+ reason?: string | undefined;
340
412
  }>;
341
413
  404: z.ZodObject<{
414
+ reason: z.ZodOptional<z.ZodString>;
415
+ error: z.ZodOptional<z.ZodString>;
416
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
342
417
  message: z.ZodOptional<z.ZodString>;
418
+ } & {
419
+ statusCode: z.ZodLiteral<404>;
343
420
  }, "strip", z.ZodTypeAny, {
421
+ statusCode: 404;
344
422
  message?: string | undefined;
423
+ error?: string | undefined;
424
+ details?: Record<string, unknown> | undefined;
425
+ reason?: string | undefined;
345
426
  }, {
427
+ statusCode: 404;
346
428
  message?: string | undefined;
429
+ error?: string | undefined;
430
+ details?: Record<string, unknown> | undefined;
431
+ reason?: string | undefined;
432
+ }>;
433
+ 500: z.ZodObject<{
434
+ reason: z.ZodOptional<z.ZodString>;
435
+ error: z.ZodOptional<z.ZodString>;
436
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
437
+ message: z.ZodOptional<z.ZodString>;
438
+ } & {
439
+ statusCode: z.ZodLiteral<500>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ statusCode: 500;
442
+ message?: string | undefined;
443
+ error?: string | undefined;
444
+ details?: Record<string, unknown> | undefined;
445
+ reason?: string | undefined;
446
+ }, {
447
+ statusCode: 500;
448
+ message?: string | undefined;
449
+ error?: string | undefined;
450
+ details?: Record<string, unknown> | undefined;
451
+ reason?: string | undefined;
347
452
  }>;
348
453
  };
349
454
  };
@@ -370,118 +475,64 @@ export declare const payoutContract: {
370
475
  lastMonth: number;
371
476
  }>;
372
477
  401: z.ZodObject<{
478
+ reason: z.ZodOptional<z.ZodString>;
479
+ error: z.ZodOptional<z.ZodString>;
480
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
373
481
  message: z.ZodOptional<z.ZodString>;
482
+ } & {
483
+ statusCode: z.ZodLiteral<401>;
374
484
  }, "strip", z.ZodTypeAny, {
485
+ statusCode: 401;
375
486
  message?: string | undefined;
487
+ error?: string | undefined;
488
+ details?: Record<string, unknown> | undefined;
489
+ reason?: string | undefined;
376
490
  }, {
491
+ statusCode: 401;
377
492
  message?: string | undefined;
493
+ error?: string | undefined;
494
+ details?: Record<string, unknown> | undefined;
495
+ reason?: string | undefined;
378
496
  }>;
379
497
  403: z.ZodObject<{
498
+ reason: z.ZodOptional<z.ZodString>;
499
+ error: z.ZodOptional<z.ZodString>;
500
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
380
501
  message: z.ZodOptional<z.ZodString>;
502
+ } & {
503
+ statusCode: z.ZodLiteral<403>;
381
504
  }, "strip", z.ZodTypeAny, {
505
+ statusCode: 403;
382
506
  message?: string | undefined;
507
+ error?: string | undefined;
508
+ details?: Record<string, unknown> | undefined;
509
+ reason?: string | undefined;
383
510
  }, {
511
+ statusCode: 403;
384
512
  message?: string | undefined;
513
+ error?: string | undefined;
514
+ details?: Record<string, unknown> | undefined;
515
+ reason?: string | undefined;
385
516
  }>;
386
- };
387
- };
388
- getWalletInfo: {
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
- getStatement: {
427
- summary: "Get account statement";
428
- method: "POST";
429
- body: z.ZodObject<{
430
- startDate: z.ZodString;
431
- endDate: z.ZodString;
432
- }, "strip", z.ZodTypeAny, {
433
- startDate: string;
434
- endDate: string;
435
- }, {
436
- startDate: string;
437
- endDate: string;
438
- }>;
439
- path: "/main-statement";
440
- responses: {
441
- 200: z.ZodObject<{
442
- accountNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
443
- debitOrCredit: z.ZodEnum<["CR", "DR"]>;
444
- tranRefNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
- narration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
446
- txnDate: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
447
- valueDate: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
448
- amountCredited: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, number, string>]>>>;
449
- amountDebited: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, number, string>]>>>;
450
- balance: z.ZodNumber;
451
- }, "strip", z.ZodTypeAny, {
452
- balance: number;
453
- debitOrCredit: "CR" | "DR";
454
- txnDate: string | null;
455
- valueDate: string | null;
456
- accountNo?: string | null | undefined;
457
- tranRefNo?: string | null | undefined;
458
- narration?: string | null | undefined;
459
- amountCredited?: number | null | undefined;
460
- amountDebited?: number | null | undefined;
461
- }, {
462
- balance: number;
463
- debitOrCredit: "CR" | "DR";
464
- accountNo?: string | null | undefined;
465
- tranRefNo?: string | null | undefined;
466
- narration?: string | null | undefined;
467
- txnDate?: string | null | undefined;
468
- valueDate?: string | null | undefined;
469
- amountCredited?: string | number | null | undefined;
470
- amountDebited?: string | number | null | undefined;
471
- }>;
472
- 401: z.ZodObject<{
473
- message: z.ZodOptional<z.ZodString>;
474
- }, "strip", z.ZodTypeAny, {
475
- message?: string | undefined;
476
- }, {
477
- message?: string | undefined;
478
- }>;
479
- 403: z.ZodObject<{
517
+ 500: z.ZodObject<{
518
+ reason: z.ZodOptional<z.ZodString>;
519
+ error: z.ZodOptional<z.ZodString>;
520
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
480
521
  message: z.ZodOptional<z.ZodString>;
522
+ } & {
523
+ statusCode: z.ZodLiteral<500>;
481
524
  }, "strip", z.ZodTypeAny, {
525
+ statusCode: 500;
482
526
  message?: string | undefined;
527
+ error?: string | undefined;
528
+ details?: Record<string, unknown> | undefined;
529
+ reason?: string | undefined;
483
530
  }, {
531
+ statusCode: 500;
484
532
  message?: string | undefined;
533
+ error?: string | undefined;
534
+ details?: Record<string, unknown> | undefined;
535
+ reason?: string | undefined;
485
536
  }>;
486
537
  };
487
538
  };
@@ -158,7 +158,7 @@ export declare class Payout {
158
158
  /**
159
159
  * Create Payout instance from JSON representation (with Amount objects serialized)
160
160
  */
161
- static fromJson(json: PayoutJson): Payout | undefined;
161
+ static fromJSON(json: PayoutJson): Payout | undefined;
162
162
  /**
163
163
  * Create multiple Payout instances from JSON array
164
164
  */
@@ -166,5 +166,5 @@ export declare class Payout {
166
166
  /**
167
167
  * Convert to JSON representation with proper typing
168
168
  */
169
- toJson(): PayoutJson;
169
+ toJSON(): PayoutJson;
170
170
  }
@@ -3,7 +3,7 @@ import { payoutContract } from "./payout.api-contract";
3
3
  import { Payout } from "./payout.model";
4
4
  import { PayoutQuery } from "./payout.query";
5
5
  import { PayoutFilters } from "./payout.types";
6
- import { StatementEntry, TransactionSummary, WalletInfo } from "@/lib/models";
6
+ import { TransactionSummary } from "@/lib/models";
7
7
  /**
8
8
  * Flexible query input type - supports the class, filters interface, URL params, etc.
9
9
  */
@@ -60,12 +60,4 @@ export declare class PayoutRepository extends BaseRepository<typeof payoutContra
60
60
  * Get collections summary statistics
61
61
  */
62
62
  getPayoutStats(): Promise<TransactionSummary>;
63
- /**
64
- * Get wallet information
65
- */
66
- getWalletInfo(): Promise<WalletInfo>;
67
- getPayoutStatement(range: {
68
- startDate: Date;
69
- endDate: Date;
70
- }): Promise<StatementEntry[]>;
71
63
  }
@@ -9,14 +9,17 @@ export declare enum PAYOUT_STATUS {
9
9
  PENDING_ACK = "PENDING_ACK",
10
10
  REVERSED = "REVERSED",
11
11
  INVALID_SERVICE = "INVALID_SERVICE",
12
+ INVALID_NUMBER = "INVALID_NUMBER",
12
13
  INSUFFICIENT_BALANCE = "INSUFFICIENT_BALANCE",
13
- THIRDPARTY_FAILED = "THIRDPARTY_FAILED"
14
+ THIRDPARTY_FAILED = "THIRDPARTY_FAILED",
15
+ PROVIDER_FAILED = "PROVIDER_FAILED"
14
16
  }
15
17
  export declare enum MOBILE_PAYOUT_CHANNEL {
16
18
  AIRTEL = "TZ-AIRTEL-B2C",
17
19
  VODACOM = "TZ-VODACOM-B2C",
18
20
  TIGO = "TZ-TIGO-B2C",
19
- HALOTEL = "TZ-HALOTEL-B2C"
21
+ HALOTEL = "TZ-HALOTEL-B2C",
22
+ SAFARICOM = "TZ-SAFARICOM-B2C"
20
23
  }
21
24
  export declare enum BANK_PAYOUT_CHANNEL {
22
25
  BANK = "TZ-BANK-B2C"
@@ -0,0 +1,4 @@
1
+ export * from "./wallet.api-contract";
2
+ export * from "./wallet.model";
3
+ export * from "./wallet.repository";
4
+ export * from "./wallet.types";