@temboplus/tembo-dashboard 0.0.23 → 0.0.25

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.
@@ -445,29 +445,29 @@ export declare const payoutContract: {
445
445
  narration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
446
446
  txnDate: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
447
447
  valueDate: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
448
- amountCredited: z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, number, string>]>;
449
- amountDebited: z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, number, string>]>;
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
450
  balance: z.ZodNumber;
451
451
  }, "strip", z.ZodTypeAny, {
452
452
  balance: number;
453
453
  debitOrCredit: "CR" | "DR";
454
454
  txnDate: string | null;
455
455
  valueDate: string | null;
456
- amountCredited: number;
457
- amountDebited: number;
458
456
  accountNo?: string | null | undefined;
459
457
  tranRefNo?: string | null | undefined;
460
458
  narration?: string | null | undefined;
459
+ amountCredited?: number | null | undefined;
460
+ amountDebited?: number | null | undefined;
461
461
  }, {
462
462
  balance: number;
463
463
  debitOrCredit: "CR" | "DR";
464
- amountCredited: string | number;
465
- amountDebited: string | number;
466
464
  accountNo?: string | null | undefined;
467
465
  tranRefNo?: string | null | undefined;
468
466
  narration?: string | null | undefined;
469
467
  txnDate?: string | null | undefined;
470
468
  valueDate?: string | null | undefined;
469
+ amountCredited?: string | number | null | undefined;
470
+ amountDebited?: string | number | null | undefined;
471
471
  }>;
472
472
  401: z.ZodObject<{
473
473
  message: z.ZodOptional<z.ZodString>;
@@ -104,7 +104,23 @@ export declare class Payout {
104
104
  readonly serviceFeeTransactionId?: string;
105
105
  readonly isReconciled?: number;
106
106
  readonly requestId?: string;
107
+ private readonly _originalData;
107
108
  constructor(data: PayoutData);
109
+ /**
110
+ * Get access to the original data used to create this payout
111
+ * Useful for accessing unmapped fields or debugging
112
+ */
113
+ getOriginalData(): Readonly<PayoutData>;
114
+ /**
115
+ * Get a specific field from the original data
116
+ * Useful for accessing fields that might not be mapped to properties
117
+ */
118
+ getOriginalField<K extends keyof PayoutData>(field: K): PayoutData[K];
119
+ /**
120
+ * Get any field from the original data (including potential unmapped fields)
121
+ * Use with caution as this bypasses type safety
122
+ */
123
+ getOriginalFieldUnsafe(field: string): any;
108
124
  /**
109
125
  * Check if payout is pending
110
126
  */
@@ -126,9 +142,8 @@ export declare class Payout {
126
142
  */
127
143
  getChannelInfo(): MobileChannelInfo | Bank | undefined;
128
144
  /**
129
- * Returns thw whole msisdn fields as is for mobile payouts. For bank payouts,
145
+ * Returns the whole msisdn fields as is for mobile payouts. For bank payouts,
130
146
  * attempts to return the account number only
131
- *
132
147
  */
133
148
  getAccountNumber(): string;
134
149
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temboplus/tembo-dashboard",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "A foundational library for Temboplus-Dashboard projects providing type-safe data layer abstraction with API contracts, domain models, and repositories.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",