@temboplus/afloat 0.2.0-beta.10 → 0.2.0-beta.11

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.
@@ -1,5 +1,6 @@
1
- import { BeneficiaryType, BeneficiaryDTO } from "@/modules/beneficiary/beneficiary.dtos.js";
2
- import { PayoutDTO } from "@/modules/payout/payout.dtos.js";
1
+ import { BeneficiaryType } from "@/modules/beneficiary/beneficiary.dtos.js";
2
+ import type { BeneficiaryDTO, BeneficiaryInputDTO } from "@/modules/beneficiary/beneficiary.dtos.js";
3
+ import type { PayoutDTO } from "@/modules/payout/payout.dtos.js";
3
4
  import { Bank, PhoneNumber } from "@temboplus/frontend-core";
4
5
  import type { BankSwiftCode, ISO2CountryCode, MobileMoneyProvider, MobileMoneyProviderId } from "@temboplus/frontend-core";
5
6
  import { z } from "zod";
@@ -8,11 +9,11 @@ export declare const MobileBeneficiaryJSONSchema: z.ZodObject<{
8
9
  name: z.ZodString;
9
10
  phoneNumber: z.ZodString;
10
11
  mnoId: z.ZodString;
11
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12
13
  }, "strip", z.ZodTypeAny, {
13
14
  type: "Mobile";
14
15
  name: string;
15
- version: string;
16
+ _version: string;
16
17
  phoneNumber: string;
17
18
  mnoId: string;
18
19
  }, {
@@ -20,7 +21,7 @@ export declare const MobileBeneficiaryJSONSchema: z.ZodObject<{
20
21
  name: string;
21
22
  phoneNumber: string;
22
23
  mnoId: string;
23
- version?: string | undefined;
24
+ _version?: string | undefined;
24
25
  }>;
25
26
  export declare const BankBeneficiaryJSONSchema: z.ZodObject<{
26
27
  type: z.ZodLiteral<"Bank">;
@@ -28,10 +29,10 @@ export declare const BankBeneficiaryJSONSchema: z.ZodObject<{
28
29
  swiftCode: z.ZodString;
29
30
  countryCode: z.ZodString;
30
31
  accNo: z.ZodString;
31
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
32
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
32
33
  }, "strip", z.ZodTypeAny, {
33
34
  type: "Bank";
34
- version: string;
35
+ _version: string;
35
36
  countryCode: string;
36
37
  accName: string;
37
38
  swiftCode: string;
@@ -42,18 +43,18 @@ export declare const BankBeneficiaryJSONSchema: z.ZodObject<{
42
43
  accName: string;
43
44
  swiftCode: string;
44
45
  accNo: string;
45
- version?: string | undefined;
46
+ _version?: string | undefined;
46
47
  }>;
47
48
  export declare const BeneficiaryJSONSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
48
49
  type: z.ZodLiteral<"Mobile">;
49
50
  name: z.ZodString;
50
51
  phoneNumber: z.ZodString;
51
52
  mnoId: z.ZodString;
52
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
53
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
53
54
  }, "strip", z.ZodTypeAny, {
54
55
  type: "Mobile";
55
56
  name: string;
56
- version: string;
57
+ _version: string;
57
58
  phoneNumber: string;
58
59
  mnoId: string;
59
60
  }, {
@@ -61,17 +62,17 @@ export declare const BeneficiaryJSONSchema: z.ZodDiscriminatedUnion<"type", [z.Z
61
62
  name: string;
62
63
  phoneNumber: string;
63
64
  mnoId: string;
64
- version?: string | undefined;
65
+ _version?: string | undefined;
65
66
  }>, z.ZodObject<{
66
67
  type: z.ZodLiteral<"Bank">;
67
68
  accName: z.ZodString;
68
69
  swiftCode: z.ZodString;
69
70
  countryCode: z.ZodString;
70
71
  accNo: z.ZodString;
71
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
72
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
72
73
  }, "strip", z.ZodTypeAny, {
73
74
  type: "Bank";
74
- version: string;
75
+ _version: string;
75
76
  countryCode: string;
76
77
  accName: string;
77
78
  swiftCode: string;
@@ -82,7 +83,7 @@ export declare const BeneficiaryJSONSchema: z.ZodDiscriminatedUnion<"type", [z.Z
82
83
  accName: string;
83
84
  swiftCode: string;
84
85
  accNo: string;
85
- version?: string | undefined;
86
+ _version?: string | undefined;
86
87
  }>]>;
87
88
  export type MobileBeneficiaryJSON = z.infer<typeof MobileBeneficiaryJSONSchema>;
88
89
  export type BankBeneficiaryJSON = z.infer<typeof BankBeneficiaryJSONSchema>;
@@ -148,6 +149,7 @@ export declare class MobileBeneficiaryInfo extends BaseBeneficiary {
148
149
  phoneNumber: PhoneNumber;
149
150
  mnoId?: MobileMoneyProviderId;
150
151
  }): MobileBeneficiaryInfo | undefined;
152
+ static fromInputDTO(info: BeneficiaryInputDTO): MobileBeneficiaryInfo | undefined;
151
153
  static fromBeneficiaryDTO(info: BeneficiaryDTO): MobileBeneficiaryInfo | undefined;
152
154
  static fromPayoutDTO(info: PayoutDTO): MobileBeneficiaryInfo | undefined;
153
155
  /**
@@ -185,6 +187,7 @@ export declare class BankBeneficiaryInfo extends BaseBeneficiary {
185
187
  bank: Bank;
186
188
  accNo: string;
187
189
  }): BankBeneficiaryInfo | undefined;
190
+ static fromInputDTO(info: BeneficiaryInputDTO): BankBeneficiaryInfo | undefined;
188
191
  static fromBeneficiaryDTO(info: BeneficiaryDTO): BankBeneficiaryInfo | undefined;
189
192
  static fromPayoutDTO(info: PayoutDTO): BankBeneficiaryInfo | undefined;
190
193
  static is(obj: unknown): obj is BankBeneficiaryInfo;
@@ -204,10 +207,24 @@ export declare class BankBeneficiaryInfo extends BaseBeneficiary {
204
207
  }
205
208
  export type BeneficiaryInfo = MobileBeneficiaryInfo | BankBeneficiaryInfo;
206
209
  /**
207
- * Top-level entry point for building / recognizing a beneficiary without
210
+ * Factory for building / recognizing a beneficiary without
208
211
  * caring about the variant. Each method dispatches on the discriminator.
209
212
  */
213
+ export declare class BeneficiaryInfoFactory {
214
+ static fromInputDTO(info: BeneficiaryInputDTO): BeneficiaryInfo | undefined;
215
+ static fromBeneficiaryDTO(info: BeneficiaryDTO): BeneficiaryInfo | undefined;
216
+ static fromPayoutDTO(info: PayoutDTO): BeneficiaryInfo | undefined;
217
+ static fromJSON(json: BeneficiaryJSON | string): BeneficiaryInfo | undefined;
218
+ static fromJSONString(s: string): BeneficiaryInfo | undefined;
219
+ static is(obj: unknown): obj is BeneficiaryInfo;
220
+ static isJSON(obj: unknown): obj is BeneficiaryJSON;
221
+ private static fromDTO;
222
+ }
223
+ /**
224
+ * @deprecated Use BeneficiaryInfoFactory instead.
225
+ */
210
226
  export declare const BeneficiaryInfo: {
227
+ fromInputDTO(info: BeneficiaryInputDTO): BeneficiaryInfo | undefined;
211
228
  fromBeneficiaryDTO(info: BeneficiaryDTO): BeneficiaryInfo | undefined;
212
229
  fromPayoutDTO(info: PayoutDTO): BeneficiaryInfo | undefined;
213
230
  fromJSON(json: BeneficiaryJSON | string): BeneficiaryInfo | undefined;
@@ -1,75 +1,54 @@
1
1
  import { BeneficiaryDTO, BeneficiaryType } from "@/modules/beneficiary/beneficiary.dtos.js";
2
- import { BeneficiaryInfo } from "./beneficiary-info.model.js";
2
+ import { type BeneficiaryInfo } from "./beneficiary-info.model.js";
3
3
  import { z } from "zod";
4
4
  /**
5
5
  * Zod schema for Beneficiary JSON serialization
6
6
  * This schema validates the JSON representation of a Beneficiary instance
7
7
  *
8
- * The Beneficiary JSON format wraps the BeneficiaryDTO structure for consistency
9
- * and future extensibility (e.g., adding metadata, version info)
8
+ * The Beneficiary JSON format is a flat BeneficiaryDTO structure with metadata
9
+ * under underscored keys.
10
10
  */
11
11
  export declare const BeneficiaryJSONSchema: z.ZodObject<{
12
- /** The complete beneficiary data transfer object */
13
- data: z.ZodObject<{
14
- id: z.ZodString;
15
- profileId: z.ZodString;
16
- createdAt: z.ZodString;
17
- updatedAt: z.ZodString;
18
- } & {
19
- displayName: z.ZodString;
20
- accountNo: z.ZodString;
21
- channel: z.ZodString;
22
- type: z.ZodNativeEnum<typeof BeneficiaryType>;
23
- }, "strip", z.ZodTypeAny, {
24
- type: BeneficiaryType;
25
- createdAt: string;
26
- id: string;
27
- displayName: string;
28
- accountNo: string;
29
- profileId: string;
30
- updatedAt: string;
31
- channel: string;
32
- }, {
33
- type: BeneficiaryType;
34
- createdAt: string;
35
- id: string;
36
- displayName: string;
37
- accountNo: string;
38
- profileId: string;
39
- updatedAt: string;
40
- channel: string;
41
- }>;
42
- /** Version for future compatibility */
43
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12
+ id: z.ZodString;
13
+ profileId: z.ZodString;
14
+ createdAt: z.ZodString;
15
+ updatedAt: z.ZodString;
16
+ } & {
17
+ displayName: z.ZodString;
18
+ accountNo: z.ZodString;
19
+ channel: z.ZodString;
20
+ type: z.ZodNativeEnum<typeof BeneficiaryType>;
21
+ } & {
22
+ /** Serialization version for future compatibility */
23
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
44
24
  }, "strip", z.ZodTypeAny, {
45
- version: string;
46
- data: {
47
- type: BeneficiaryType;
48
- createdAt: string;
49
- id: string;
50
- displayName: string;
51
- accountNo: string;
52
- profileId: string;
53
- updatedAt: string;
54
- channel: string;
55
- };
25
+ type: BeneficiaryType;
26
+ createdAt: string;
27
+ id: string;
28
+ displayName: string;
29
+ accountNo: string;
30
+ _version: string;
31
+ profileId: string;
32
+ updatedAt: string;
33
+ channel: string;
56
34
  }, {
57
- data: {
58
- type: BeneficiaryType;
59
- createdAt: string;
60
- id: string;
61
- displayName: string;
62
- accountNo: string;
63
- profileId: string;
64
- updatedAt: string;
65
- channel: string;
66
- };
67
- version?: string | undefined;
35
+ type: BeneficiaryType;
36
+ createdAt: string;
37
+ id: string;
38
+ displayName: string;
39
+ accountNo: string;
40
+ profileId: string;
41
+ updatedAt: string;
42
+ channel: string;
43
+ _version?: string | undefined;
68
44
  }>;
69
45
  /**
70
46
  * Infer the BeneficiaryJSON type from the schema
71
47
  */
72
48
  export type BeneficiaryJSON = z.infer<typeof BeneficiaryJSONSchema>;
49
+ type LegacyBeneficiaryJSON = {
50
+ data: BeneficiaryDTO;
51
+ } & Record<string, unknown>;
73
52
  /**
74
53
  * Beneficiary class that wraps the Zod schema and provides additional functionality.
75
54
  * Represents a beneficiary entity with validation and type-safe access to beneficiary information.
@@ -342,7 +321,7 @@ export declare class Beneficiary {
342
321
  * ```typescript
343
322
  * const beneficiary = Beneficiary.from(beneficiaryData);
344
323
  * const json = beneficiary.toJSON();
345
- * // { data: { id: "123", displayName: "John", ... }, version: "1.0" }
324
+ * // { id: "123", displayName: "John", ..., _version: "1.0" }
346
325
  *
347
326
  * // Store in localStorage
348
327
  * localStorage.setItem('beneficiary', JSON.stringify(json));
@@ -378,13 +357,13 @@ export declare class Beneficiary {
378
357
  * 4. Constructs Beneficiary instance with validated data
379
358
  *
380
359
  * @static
381
- * @param {BeneficiaryJSON | string} json - JSON object or string containing beneficiary data
360
+ * @param {BeneficiaryJSON | LegacyBeneficiaryJSON | string} json - JSON object or string containing beneficiary data
382
361
  * @returns {Beneficiary | undefined} New Beneficiary instance if successful, undefined if parsing/validation fails
383
362
  *
384
363
  * @example
385
364
  * ```typescript
386
365
  * // From JSON object
387
- * const json = { data: { id: "123", displayName: "John", ... }, version: "1.0" };
366
+ * const json = { id: "123", displayName: "John", ..., _version: "1.0" };
388
367
  * const beneficiary = Beneficiary.fromJSON(json);
389
368
  *
390
369
  * // From JSON string
@@ -400,7 +379,7 @@ export declare class Beneficiary {
400
379
  * }
401
380
  * ```
402
381
  */
403
- static fromJSON(json: BeneficiaryJSON | string): Beneficiary | undefined;
382
+ static fromJSON(json: BeneficiaryJSON | LegacyBeneficiaryJSON | string): Beneficiary | undefined;
404
383
  /**
405
384
  * Creates a Beneficiary instance from a JSON string
406
385
  *
@@ -412,7 +391,7 @@ export declare class Beneficiary {
412
391
  *
413
392
  * @example
414
393
  * ```typescript
415
- * const jsonString = '{"data":{"id":"123","displayName":"John",...},"version":"1.0"}';
394
+ * const jsonString = '{"id":"123","displayName":"John",...,"_version":"1.0"}';
416
395
  * const beneficiary = Beneficiary.fromJSONString(jsonString);
417
396
  * ```
418
397
  */
@@ -448,3 +427,4 @@ export declare class Beneficiary {
448
427
  */
449
428
  static isBeneficiaryJSON(obj: unknown): obj is BeneficiaryJSON;
450
429
  }
430
+ export {};
@@ -1,6 +1,6 @@
1
1
  export * from "./beneficiary.repository.js";
2
2
  export * from "./beneficiary.dtos.js";
3
- export { BankBeneficiaryInfo, BankBeneficiaryJSONSchema, BeneficiaryError, BeneficiaryInfo, BeneficiaryJSONSchema as BeneficiaryInfoJSONSchema, MobileBeneficiaryInfo, MobileBeneficiaryJSONSchema, type BankBeneficiaryJSON, type BeneficiaryJSON as BeneficiaryInfoJSON, type MobileBeneficiaryJSON, } from "./beneficiary-info.model.js";
3
+ export { BankBeneficiaryInfo, BankBeneficiaryJSONSchema, BeneficiaryError, BeneficiaryInfo, BeneficiaryInfoFactory, BeneficiaryJSONSchema as BeneficiaryInfoJSONSchema, MobileBeneficiaryInfo, MobileBeneficiaryJSONSchema, type BankBeneficiaryJSON, type BeneficiaryJSON as BeneficiaryInfoJSON, type MobileBeneficiaryJSON, } from "./beneficiary-info.model.js";
4
4
  export { Beneficiary, BeneficiaryJSONSchema, type BeneficiaryJSON, } from "./beneficiary.model.js";
5
5
  export * from "./beneficiary-input-handler.js";
6
6
  export * from "./beneficiary.api-contract.js";
@@ -17,13 +17,13 @@ export declare const LogInJSONSchema: z.ZodObject<{
17
17
  createdAt: z.ZodString;
18
18
  updatedAt: z.ZodString;
19
19
  access: z.ZodArray<z.ZodString, "many">;
20
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
20
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
21
21
  }, "strip", z.ZodTypeAny, {
22
22
  type: string;
23
23
  name: string;
24
24
  createdAt: string;
25
25
  id: string;
26
- version: string;
26
+ _version: string;
27
27
  profileId: string;
28
28
  identity: string;
29
29
  roleId: string;
@@ -45,7 +45,7 @@ export declare const LogInJSONSchema: z.ZodObject<{
45
45
  resetPassword: boolean;
46
46
  updatedAt: string;
47
47
  access: string[];
48
- version?: string | undefined;
48
+ _version?: string | undefined;
49
49
  }>;
50
50
  /**
51
51
  * Infer the LogInJSON type from the schema
@@ -1,6 +1,6 @@
1
1
  import { PayoutDTO, PayoutStatus, PayoutApprovalStatus, PayoutAuthorizer } from "@/modules/payout/payout.dtos.js";
2
2
  import { Amount } from "@temboplus/frontend-core";
3
- import { BeneficiaryInfo } from "../beneficiary/beneficiary-info.model.js";
3
+ import { type BeneficiaryInfo } from "../beneficiary/beneficiary-info.model.js";
4
4
  import z from "zod";
5
5
  /**
6
6
  * Zod schema for Payout JSON serialization
@@ -50,12 +50,12 @@ export declare const PayoutJSONSchema: z.ZodObject<{
50
50
  id: string;
51
51
  identity: string;
52
52
  }>>>;
53
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
53
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
54
54
  }, "strip", z.ZodTypeAny, {
55
55
  status: PayoutStatus;
56
56
  createdAt: string;
57
57
  id: string;
58
- version: string;
58
+ _version: string;
59
59
  profileId: string;
60
60
  updatedAt: string;
61
61
  description: string;
@@ -94,7 +94,7 @@ export declare const PayoutJSONSchema: z.ZodObject<{
94
94
  countryCode: string;
95
95
  currencyCode: string;
96
96
  statusMessage: string;
97
- version?: string | undefined;
97
+ _version?: string | undefined;
98
98
  notes?: string | null | undefined;
99
99
  partnerReference?: string | null | undefined;
100
100
  actionedAt?: string | null | undefined;
@@ -11,12 +11,12 @@ export declare const ProfileJSONSchema: z.ZodObject<{
11
11
  accountNo: z.ZodString;
12
12
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  autoApprove: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
14
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  id: string;
17
17
  displayName: string;
18
18
  accountNo: string;
19
- version: string;
19
+ _version: string;
20
20
  firstName?: string | null | undefined;
21
21
  lastName?: string | null | undefined;
22
22
  phone?: string | null | undefined;
@@ -31,7 +31,7 @@ export declare const ProfileJSONSchema: z.ZodObject<{
31
31
  phone?: string | null | undefined;
32
32
  email?: string | null | undefined;
33
33
  autoApprove?: boolean | null | undefined;
34
- version?: string | undefined;
34
+ _version?: string | undefined;
35
35
  }>;
36
36
  /**
37
37
  * Infer the ProfileJSON type from the schema
@@ -10,12 +10,12 @@ export declare const RoleJSONSchema: z.ZodObject<{
10
10
  access: z.ZodArray<z.ZodString, "many">;
11
11
  createdAt: z.ZodString;
12
12
  updatedAt: z.ZodString;
13
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
13
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  name: string;
16
16
  createdAt: string;
17
17
  id: string;
18
- version: string;
18
+ _version: string;
19
19
  updatedAt: string;
20
20
  access: string[];
21
21
  description?: string | undefined;
@@ -25,7 +25,7 @@ export declare const RoleJSONSchema: z.ZodObject<{
25
25
  id: string;
26
26
  updatedAt: string;
27
27
  access: string[];
28
- version?: string | undefined;
28
+ _version?: string | undefined;
29
29
  description?: string | undefined;
30
30
  }>;
31
31
  /**
@@ -35,12 +35,12 @@ export declare const TeamMemberJSONSchema: z.ZodObject<{
35
35
  access: z.ZodArray<z.ZodString, "many">;
36
36
  createdAt: z.ZodString;
37
37
  updatedAt: z.ZodString;
38
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
38
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
39
39
  }, "strip", z.ZodTypeAny, {
40
40
  name: string;
41
41
  createdAt: string;
42
42
  id: string;
43
- version: string;
43
+ _version: string;
44
44
  updatedAt: string;
45
45
  access: string[];
46
46
  description?: string | undefined;
@@ -50,18 +50,18 @@ export declare const TeamMemberJSONSchema: z.ZodObject<{
50
50
  id: string;
51
51
  updatedAt: string;
52
52
  access: string[];
53
- version?: string | undefined;
53
+ _version?: string | undefined;
54
54
  description?: string | undefined;
55
55
  }>>;
56
56
  createdAt: z.ZodString;
57
57
  updatedAt: z.ZodString;
58
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
58
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
59
59
  }, "strip", z.ZodTypeAny, {
60
60
  type: string;
61
61
  name: string;
62
62
  createdAt: string;
63
63
  id: string;
64
- version: string;
64
+ _version: string;
65
65
  profileId: string;
66
66
  identity: string;
67
67
  roleId: string;
@@ -73,7 +73,7 @@ export declare const TeamMemberJSONSchema: z.ZodObject<{
73
73
  name: string;
74
74
  createdAt: string;
75
75
  id: string;
76
- version: string;
76
+ _version: string;
77
77
  updatedAt: string;
78
78
  access: string[];
79
79
  description?: string | undefined;
@@ -90,14 +90,14 @@ export declare const TeamMemberJSONSchema: z.ZodObject<{
90
90
  isArchived: boolean;
91
91
  resetPassword: boolean;
92
92
  updatedAt: string;
93
- version?: string | undefined;
93
+ _version?: string | undefined;
94
94
  role?: {
95
95
  name: string;
96
96
  createdAt: string;
97
97
  id: string;
98
98
  updatedAt: string;
99
99
  access: string[];
100
- version?: string | undefined;
100
+ _version?: string | undefined;
101
101
  description?: string | undefined;
102
102
  } | undefined;
103
103
  }>;
@@ -17,13 +17,13 @@ export declare const LEGACY_MOBILE_NARR_PREFIX: string;
17
17
  */
18
18
  export declare const NarrationJSONSchema: z.ZodObject<{
19
19
  text: z.ZodString;
20
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
20
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
21
21
  }, "strip", z.ZodTypeAny, {
22
- version: string;
22
+ _version: string;
23
23
  text: string;
24
24
  }, {
25
25
  text: string;
26
- version?: string | undefined;
26
+ _version?: string | undefined;
27
27
  }>;
28
28
  export type NarrationJSON = z.infer<typeof NarrationJSONSchema>;
29
29
  /**
@@ -10,13 +10,13 @@ export declare const WalletStatementEntryJSONSchema: z.ZodObject<{
10
10
  tranRefNo: z.ZodString;
11
11
  narration: z.ZodObject<{
12
12
  text: z.ZodString;
13
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
13
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
14
14
  }, "strip", z.ZodTypeAny, {
15
- version: string;
15
+ _version: string;
16
16
  text: string;
17
17
  }, {
18
18
  text: string;
19
- version?: string | undefined;
19
+ _version?: string | undefined;
20
20
  }>;
21
21
  txnDate: z.ZodString;
22
22
  valueDate: z.ZodString;
@@ -24,9 +24,9 @@ export declare const WalletStatementEntryJSONSchema: z.ZodObject<{
24
24
  value: z.ZodNumber;
25
25
  text: z.ZodString;
26
26
  currencyCode: z.ZodString;
27
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
27
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
28
28
  }, "strip", z.ZodTypeAny, {
29
- version: string;
29
+ _version: string;
30
30
  value: number;
31
31
  text: string;
32
32
  currencyCode: string;
@@ -34,15 +34,15 @@ export declare const WalletStatementEntryJSONSchema: z.ZodObject<{
34
34
  value: number;
35
35
  text: string;
36
36
  currencyCode: string;
37
- version?: string | undefined;
37
+ _version?: string | undefined;
38
38
  }>;
39
39
  amountDebited: z.ZodObject<{
40
40
  value: z.ZodNumber;
41
41
  text: z.ZodString;
42
42
  currencyCode: z.ZodString;
43
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
43
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
44
44
  }, "strip", z.ZodTypeAny, {
45
- version: string;
45
+ _version: string;
46
46
  value: number;
47
47
  text: string;
48
48
  currencyCode: string;
@@ -50,15 +50,15 @@ export declare const WalletStatementEntryJSONSchema: z.ZodObject<{
50
50
  value: number;
51
51
  text: string;
52
52
  currencyCode: string;
53
- version?: string | undefined;
53
+ _version?: string | undefined;
54
54
  }>;
55
55
  balance: z.ZodObject<{
56
56
  value: z.ZodNumber;
57
57
  text: z.ZodString;
58
58
  currencyCode: z.ZodString;
59
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
59
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
60
60
  }, "strip", z.ZodTypeAny, {
61
- version: string;
61
+ _version: string;
62
62
  value: number;
63
63
  text: string;
64
64
  currencyCode: string;
@@ -66,35 +66,35 @@ export declare const WalletStatementEntryJSONSchema: z.ZodObject<{
66
66
  value: number;
67
67
  text: string;
68
68
  currencyCode: string;
69
- version?: string | undefined;
69
+ _version?: string | undefined;
70
70
  }>;
71
71
  currencyCode: z.ZodString;
72
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
72
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
73
73
  }, "strip", z.ZodTypeAny, {
74
- version: string;
74
+ _version: string;
75
75
  currencyCode: string;
76
76
  debitOrCredit: string;
77
77
  tranRefNo: string;
78
78
  narration: {
79
- version: string;
79
+ _version: string;
80
80
  text: string;
81
81
  };
82
82
  txnDate: string;
83
83
  valueDate: string;
84
84
  amountCredited: {
85
- version: string;
85
+ _version: string;
86
86
  value: number;
87
87
  text: string;
88
88
  currencyCode: string;
89
89
  };
90
90
  amountDebited: {
91
- version: string;
91
+ _version: string;
92
92
  value: number;
93
93
  text: string;
94
94
  currencyCode: string;
95
95
  };
96
96
  balance: {
97
- version: string;
97
+ _version: string;
98
98
  value: number;
99
99
  text: string;
100
100
  currencyCode: string;
@@ -106,7 +106,7 @@ export declare const WalletStatementEntryJSONSchema: z.ZodObject<{
106
106
  tranRefNo: string;
107
107
  narration: {
108
108
  text: string;
109
- version?: string | undefined;
109
+ _version?: string | undefined;
110
110
  };
111
111
  txnDate: string;
112
112
  valueDate: string;
@@ -114,22 +114,22 @@ export declare const WalletStatementEntryJSONSchema: z.ZodObject<{
114
114
  value: number;
115
115
  text: string;
116
116
  currencyCode: string;
117
- version?: string | undefined;
117
+ _version?: string | undefined;
118
118
  };
119
119
  amountDebited: {
120
120
  value: number;
121
121
  text: string;
122
122
  currencyCode: string;
123
- version?: string | undefined;
123
+ _version?: string | undefined;
124
124
  };
125
125
  balance: {
126
126
  value: number;
127
127
  text: string;
128
128
  currencyCode: string;
129
- version?: string | undefined;
129
+ _version?: string | undefined;
130
130
  };
131
131
  accountNo?: string | undefined;
132
- version?: string | undefined;
132
+ _version?: string | undefined;
133
133
  }>;
134
134
  export type WalletStatementEntryJSON = z.infer<typeof WalletStatementEntryJSONSchema>;
135
135
  /**
@@ -14,12 +14,12 @@ export declare const WalletJSONSchema: z.ZodObject<{
14
14
  currencyCode: z.ZodString;
15
15
  createdAt: z.ZodString;
16
16
  updatedAt: z.ZodString;
17
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
17
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
18
18
  }, "strip", z.ZodTypeAny, {
19
19
  createdAt: string;
20
20
  id: string;
21
21
  accountNo: string;
22
- version: string;
22
+ _version: string;
23
23
  profileId: string;
24
24
  updatedAt: string;
25
25
  channel: string;
@@ -36,7 +36,7 @@ export declare const WalletJSONSchema: z.ZodObject<{
36
36
  countryCode: string;
37
37
  currencyCode: string;
38
38
  accountName: string;
39
- version?: string | undefined;
39
+ _version?: string | undefined;
40
40
  }>;
41
41
  export type WalletJSON = z.infer<typeof WalletJSONSchema>;
42
42
  /**