@temboplus/afloat 0.2.0-beta.9 → 0.2.0

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.
@@ -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
  /**
@@ -24,8 +24,8 @@ export type WalletQueryInput = WalletQuery | WalletQueryDTO | Record<string, str
24
24
  * const repo = new WalletRepository({ token: userToken });
25
25
  * const balance = await repo.getBalance({ wallet });
26
26
  *
27
- * // Service locator usage
28
- * const repo = new WalletRepository();
27
+ * // Reuse the same construction shape for authenticated calls
28
+ * const repo = new WalletRepository({ token: userToken });
29
29
  * const wallets = await repo.getWallets();
30
30
  * ```
31
31
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temboplus/afloat",
3
- "version": "0.2.0-beta.9",
3
+ "version": "0.2.0",
4
4
  "description": "A foundational library for Temboplus-Afloat projects.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -40,8 +40,7 @@
40
40
  "@ts-rest/core": "^3.52.1",
41
41
  "tslib": "^2.8.1",
42
42
  "uuid": "^11.1.0",
43
- "zod": "^3.24.2",
44
- "zustand": "^5.0.9"
43
+ "zod": "^3.24.2"
45
44
  },
46
45
  "devDependencies": {
47
46
  "@rollup/plugin-alias": "^6.0.0",
@@ -58,6 +57,6 @@
58
57
  "typescript": "^5.9.3"
59
58
  },
60
59
  "dependencies": {
61
- "@temboplus/frontend-core": "^1.0.1-beta.2"
60
+ "@temboplus/frontend-core": "^1.0.1"
62
61
  }
63
62
  }