@temboplus/tembo-dashboard 0.2.0 → 0.2.2
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.
- package/LICENSE +21 -0
- package/README.md +46 -92
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/api/base-repository.d.ts +4 -4
- package/dist/lib/api/base-repository.d.ts.map +1 -0
- package/dist/lib/api/common-schemas.d.ts +37 -296
- package/dist/lib/api/common-schemas.d.ts.map +1 -0
- package/dist/lib/api/index.d.ts +1 -0
- package/dist/lib/api/index.d.ts.map +1 -0
- package/dist/lib/error/error.api.d.ts +3 -2
- package/dist/lib/error/error.api.d.ts.map +1 -0
- package/dist/lib/error/index.d.ts +1 -0
- package/dist/lib/error/index.d.ts.map +1 -0
- package/dist/lib/models/index.d.ts +2 -1
- package/dist/lib/models/index.d.ts.map +1 -0
- package/dist/lib/models/statement-entry.model.d.ts +3 -2
- package/dist/lib/models/statement-entry.model.d.ts.map +1 -0
- package/dist/lib/models/transaction-summary.model.d.ts +3 -2
- package/dist/lib/models/transaction-summary.model.d.ts.map +1 -0
- package/dist/lib/models/wallet-info.model.d.ts +2 -1
- package/dist/lib/models/wallet-info.model.d.ts.map +1 -0
- package/dist/lib/query/index.d.ts +1 -0
- package/dist/lib/query/index.d.ts.map +1 -0
- package/dist/lib/query/query.builder.d.ts +2 -1
- package/dist/lib/query/query.builder.d.ts.map +1 -0
- package/dist/lib/query/query.types.d.ts +1 -0
- package/dist/lib/query/query.types.d.ts.map +1 -0
- package/dist/lib/types.d.ts +1 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/modules/auth/auth.api-contract.d.ts +11 -108
- package/dist/modules/auth/auth.api-contract.d.ts.map +1 -0
- package/dist/modules/auth/auth.dtos.d.ts +4 -23
- package/dist/modules/auth/auth.dtos.d.ts.map +1 -0
- package/dist/modules/auth/auth.repository.d.ts +1 -0
- package/dist/modules/auth/auth.repository.d.ts.map +1 -0
- package/dist/modules/auth/index.d.ts +3 -2
- package/dist/modules/auth/index.d.ts.map +1 -0
- package/dist/modules/auth/user.model.d.ts +1 -0
- package/dist/modules/auth/user.model.d.ts.map +1 -0
- package/dist/modules/collection/collection.api-contract.d.ts +35 -387
- package/dist/modules/collection/collection.api-contract.d.ts.map +1 -0
- package/dist/modules/collection/collection.model.d.ts +3 -2
- package/dist/modules/collection/collection.model.d.ts.map +1 -0
- package/dist/modules/collection/collection.query.d.ts +2 -1
- package/dist/modules/collection/collection.query.d.ts.map +1 -0
- package/dist/modules/collection/collection.repository.d.ts +4 -3
- package/dist/modules/collection/collection.repository.d.ts.map +1 -0
- package/dist/modules/collection/collection.types.d.ts +32 -167
- package/dist/modules/collection/collection.types.d.ts.map +1 -0
- package/dist/modules/collection/index.d.ts +3 -2
- package/dist/modules/collection/index.d.ts.map +1 -0
- package/dist/modules/payout/index.d.ts +3 -2
- package/dist/modules/payout/index.d.ts.map +1 -0
- package/dist/modules/payout/payout.api-contract.d.ts +36 -402
- package/dist/modules/payout/payout.api-contract.d.ts.map +1 -0
- package/dist/modules/payout/payout.model.d.ts +4 -3
- package/dist/modules/payout/payout.model.d.ts.map +1 -0
- package/dist/modules/payout/payout.query.d.ts +2 -1
- package/dist/modules/payout/payout.query.d.ts.map +1 -0
- package/dist/modules/payout/payout.repository.d.ts +4 -3
- package/dist/modules/payout/payout.repository.d.ts.map +1 -0
- package/dist/modules/payout/payout.types.d.ts +39 -214
- package/dist/modules/payout/payout.types.d.ts.map +1 -0
- package/dist/modules/transaction/index.d.ts +1 -0
- package/dist/modules/transaction/index.d.ts.map +1 -0
- package/dist/modules/transaction/transaction.api-contract.d.ts +7 -84
- package/dist/modules/transaction/transaction.api-contract.d.ts.map +1 -0
- package/dist/modules/transaction/transaction.repository.d.ts +2 -1
- package/dist/modules/transaction/transaction.repository.d.ts.map +1 -0
- package/dist/modules/transaction/transaction.types.d.ts +3 -28
- package/dist/modules/transaction/transaction.types.d.ts.map +1 -0
- package/dist/modules/wallet/index.d.ts +1 -0
- package/dist/modules/wallet/index.d.ts.map +1 -0
- package/dist/modules/wallet/wallet.api-contract.d.ts +32 -287
- package/dist/modules/wallet/wallet.api-contract.d.ts.map +1 -0
- package/dist/modules/wallet/wallet.model.d.ts +2 -1
- package/dist/modules/wallet/wallet.model.d.ts.map +1 -0
- package/dist/modules/wallet/wallet.repository.d.ts +2 -1
- package/dist/modules/wallet/wallet.repository.d.ts.map +1 -0
- package/dist/modules/wallet/wallet.types.d.ts +8 -61
- package/dist/modules/wallet/wallet.types.d.ts.map +1 -0
- package/package.json +34 -23
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AppRouter } from "@ts-rest/core";
|
|
2
|
-
import { InitClientArgs } from "@ts-rest/core";
|
|
1
|
+
import { type AppRouter, type InitClientArgs } from "@ts-rest/core";
|
|
3
2
|
/**
|
|
4
3
|
* BaseRepository - Generic base class for API repositories
|
|
5
4
|
*
|
|
@@ -101,7 +100,7 @@ export declare class BaseRepository<TContract extends AppRouter> {
|
|
|
101
100
|
* // - x-request-id: "uuid-v4-string"
|
|
102
101
|
* ```
|
|
103
102
|
*/
|
|
104
|
-
get client(): { [TKey in keyof TContract]: TContract[TKey] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<TContract[TKey], InitClientArgs, import("@ts-rest/core").PartialClientInferRequest<TContract[TKey], InitClientArgs>> : TContract[TKey] extends AppRouter ? TContract[TKey] extends infer T extends AppRouter ? { [
|
|
103
|
+
get client(): { [TKey in keyof TContract]: TContract[TKey] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<TContract[TKey], InitClientArgs, import("@ts-rest/core").PartialClientInferRequest<TContract[TKey], InitClientArgs>> : TContract[TKey] extends AppRouter ? TContract[TKey] extends infer T extends AppRouter ? { [TKey_2 in keyof T]: T[TKey_2] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T[TKey_2], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T[TKey_2], TClientArgs>> : T[TKey_2] extends AppRouter ? T[TKey_2] extends infer T_1 extends AppRouter ? { [TKey_3 in keyof T_1]: T_1[TKey_3] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_1[TKey_3], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_1[TKey_3], TClientArgs>> : T_1[TKey_3] extends AppRouter ? T_1[TKey_3] extends infer T_2 extends AppRouter ? { [TKey_4 in keyof T_2]: T_2[TKey_4] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_2[TKey_4], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_2[TKey_4], TClientArgs>> : T_2[TKey_4] extends AppRouter ? T_2[TKey_4] extends infer T_3 extends AppRouter ? { [TKey_5 in keyof T_3]: T_3[TKey_5] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_3[TKey_5], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_3[TKey_5], TClientArgs>> : T_3[TKey_5] extends AppRouter ? T_3[TKey_5] extends infer T_4 extends AppRouter ? { [TKey_6 in keyof T_4]: T_4[TKey_6] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_4[TKey_6], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_4[TKey_6], TClientArgs>> : T_4[TKey_6] extends AppRouter ? T_4[TKey_6] extends infer T_5 extends AppRouter ? { [TKey_7 in keyof T_5]: T_5[TKey_7] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_5[TKey_7], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_5[TKey_7], TClientArgs>> : T_5[TKey_7] extends AppRouter ? T_5[TKey_7] extends infer T_6 extends AppRouter ? { [TKey_8 in keyof T_6]: T_6[TKey_8] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_6[TKey_8], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_6[TKey_8], TClientArgs>> : T_6[TKey_8] extends AppRouter ? T_6[TKey_8] extends infer T_7 extends AppRouter ? { [TKey_9 in keyof T_7]: T_7[TKey_9] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_7[TKey_9], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_7[TKey_9], TClientArgs>> : T_7[TKey_9] extends AppRouter ? T_7[TKey_9] extends infer T_8 extends AppRouter ? { [TKey_10 in keyof T_8]: T_8[TKey_10] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_8[TKey_10], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_8[TKey_10], TClientArgs>> : T_8[TKey_10] extends AppRouter ? T_8[TKey_10] extends infer T_9 extends AppRouter ? { [TKey_11 in keyof T_9]: T_9[TKey_11] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_9[TKey_11], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_9[TKey_11], TClientArgs>> : T_9[TKey_11] extends AppRouter ? /*elided*/ any : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; };
|
|
105
104
|
/**
|
|
106
105
|
* Gets the configured ts-rest client with optional custom headers.
|
|
107
106
|
*
|
|
@@ -124,7 +123,7 @@ export declare class BaseRepository<TContract extends AppRouter> {
|
|
|
124
123
|
* const result = await clientWithHeaders.getUsers({ query: { limit: 10 } });
|
|
125
124
|
* ```
|
|
126
125
|
*/
|
|
127
|
-
getClientWithHeaders(customHeaders?: Record<string, string>): { [TKey in keyof TContract]: TContract[TKey] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<TContract[TKey], InitClientArgs, import("@ts-rest/core").PartialClientInferRequest<TContract[TKey], InitClientArgs>> : TContract[TKey] extends AppRouter ? TContract[TKey] extends infer T extends AppRouter ? { [
|
|
126
|
+
getClientWithHeaders(customHeaders?: Record<string, string>): { [TKey in keyof TContract]: TContract[TKey] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<TContract[TKey], InitClientArgs, import("@ts-rest/core").PartialClientInferRequest<TContract[TKey], InitClientArgs>> : TContract[TKey] extends AppRouter ? TContract[TKey] extends infer T extends AppRouter ? { [TKey_2 in keyof T]: T[TKey_2] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T[TKey_2], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T[TKey_2], TClientArgs>> : T[TKey_2] extends AppRouter ? T[TKey_2] extends infer T_1 extends AppRouter ? { [TKey_3 in keyof T_1]: T_1[TKey_3] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_1[TKey_3], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_1[TKey_3], TClientArgs>> : T_1[TKey_3] extends AppRouter ? T_1[TKey_3] extends infer T_2 extends AppRouter ? { [TKey_4 in keyof T_2]: T_2[TKey_4] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_2[TKey_4], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_2[TKey_4], TClientArgs>> : T_2[TKey_4] extends AppRouter ? T_2[TKey_4] extends infer T_3 extends AppRouter ? { [TKey_5 in keyof T_3]: T_3[TKey_5] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_3[TKey_5], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_3[TKey_5], TClientArgs>> : T_3[TKey_5] extends AppRouter ? T_3[TKey_5] extends infer T_4 extends AppRouter ? { [TKey_6 in keyof T_4]: T_4[TKey_6] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_4[TKey_6], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_4[TKey_6], TClientArgs>> : T_4[TKey_6] extends AppRouter ? T_4[TKey_6] extends infer T_5 extends AppRouter ? { [TKey_7 in keyof T_5]: T_5[TKey_7] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_5[TKey_7], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_5[TKey_7], TClientArgs>> : T_5[TKey_7] extends AppRouter ? T_5[TKey_7] extends infer T_6 extends AppRouter ? { [TKey_8 in keyof T_6]: T_6[TKey_8] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_6[TKey_8], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_6[TKey_8], TClientArgs>> : T_6[TKey_8] extends AppRouter ? T_6[TKey_8] extends infer T_7 extends AppRouter ? { [TKey_9 in keyof T_7]: T_7[TKey_9] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_7[TKey_9], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_7[TKey_9], TClientArgs>> : T_7[TKey_9] extends AppRouter ? T_7[TKey_9] extends infer T_8 extends AppRouter ? { [TKey_10 in keyof T_8]: T_8[TKey_10] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_8[TKey_10], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_8[TKey_10], TClientArgs>> : T_8[TKey_10] extends AppRouter ? T_8[TKey_10] extends infer T_9 extends AppRouter ? { [TKey_11 in keyof T_9]: T_9[TKey_11] extends import("@ts-rest/core").AppRoute ? import("@ts-rest/core").AppRouteFunction<T_9[TKey_11], TClientArgs, import("@ts-rest/core").PartialClientInferRequest<T_9[TKey_11], TClientArgs>> : T_9[TKey_11] extends AppRouter ? /*elided*/ any : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; } : never : never; };
|
|
128
127
|
/**
|
|
129
128
|
* Updates the authentication token used by this repository.
|
|
130
129
|
*
|
|
@@ -189,3 +188,4 @@ export declare class BaseRepository<TContract extends AppRouter> {
|
|
|
189
188
|
body: unknown;
|
|
190
189
|
}, successStatusCode: number): T;
|
|
191
190
|
}
|
|
191
|
+
//# sourceMappingURL=base-repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-repository.d.ts","sourceRoot":"","sources":["../../../src/lib/api/base-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAc,MAAM,eAAe,CAAC;AAKhF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,cAAc,CAAC,SAAS,SAAS,SAAS;IACrD;;;OAGG;IACH,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC;IAE9B;;;OAGG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAEnC;;;OAGG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC;;;;;;;;;;;;;;;;;;;;OAoBG;gBAED,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,SAAS,EACnB,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;IAQH;;;;;;;;;;OAUG;IACH,SAAS,CAAC,QAAQ,IAAI,MAAM;IAU5B;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,MAAM,igHAET;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,oBAAoB,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IA4B3D;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI7B;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,IAAI,MAAM,GAAG,SAAS;IAIrC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAE,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAC;CA4C3F"}
|
|
@@ -5,119 +5,42 @@ declare const apiErrorSchema: z.ZodObject<{
|
|
|
5
5
|
error: z.ZodOptional<z.ZodString>;
|
|
6
6
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
7
|
message: z.ZodOptional<z.ZodString>;
|
|
8
|
-
},
|
|
9
|
-
statusCode: number;
|
|
10
|
-
message?: string | undefined;
|
|
11
|
-
error?: string | undefined;
|
|
12
|
-
details?: Record<string, unknown> | undefined;
|
|
13
|
-
reason?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
statusCode: number;
|
|
16
|
-
message?: string | undefined;
|
|
17
|
-
error?: string | undefined;
|
|
18
|
-
details?: Record<string, unknown> | undefined;
|
|
19
|
-
reason?: string | undefined;
|
|
20
|
-
}>;
|
|
8
|
+
}, z.z.core.$strip>;
|
|
21
9
|
declare const validationErrorSchema: z.ZodObject<{
|
|
22
10
|
reason: z.ZodOptional<z.ZodString>;
|
|
23
11
|
error: z.ZodOptional<z.ZodString>;
|
|
24
12
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
25
13
|
message: z.ZodOptional<z.ZodString>;
|
|
26
|
-
} & {
|
|
27
14
|
statusCode: z.ZodLiteral<400>;
|
|
28
|
-
},
|
|
29
|
-
statusCode: 400;
|
|
30
|
-
message?: string | undefined;
|
|
31
|
-
error?: string | undefined;
|
|
32
|
-
details?: Record<string, unknown> | undefined;
|
|
33
|
-
reason?: string | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
statusCode: 400;
|
|
36
|
-
message?: string | undefined;
|
|
37
|
-
error?: string | undefined;
|
|
38
|
-
details?: Record<string, unknown> | undefined;
|
|
39
|
-
reason?: string | undefined;
|
|
40
|
-
}>;
|
|
15
|
+
}, z.z.core.$strip>;
|
|
41
16
|
declare const unauthorizedErrorSchema: z.ZodObject<{
|
|
42
17
|
reason: z.ZodOptional<z.ZodString>;
|
|
43
18
|
error: z.ZodOptional<z.ZodString>;
|
|
44
19
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
45
20
|
message: z.ZodOptional<z.ZodString>;
|
|
46
|
-
} & {
|
|
47
21
|
statusCode: z.ZodLiteral<401>;
|
|
48
|
-
},
|
|
49
|
-
statusCode: 401;
|
|
50
|
-
message?: string | undefined;
|
|
51
|
-
error?: string | undefined;
|
|
52
|
-
details?: Record<string, unknown> | undefined;
|
|
53
|
-
reason?: string | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
statusCode: 401;
|
|
56
|
-
message?: string | undefined;
|
|
57
|
-
error?: string | undefined;
|
|
58
|
-
details?: Record<string, unknown> | undefined;
|
|
59
|
-
reason?: string | undefined;
|
|
60
|
-
}>;
|
|
22
|
+
}, z.z.core.$strip>;
|
|
61
23
|
declare const forbiddenErrorSchema: z.ZodObject<{
|
|
62
24
|
reason: z.ZodOptional<z.ZodString>;
|
|
63
25
|
error: z.ZodOptional<z.ZodString>;
|
|
64
26
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
65
27
|
message: z.ZodOptional<z.ZodString>;
|
|
66
|
-
} & {
|
|
67
28
|
statusCode: z.ZodLiteral<403>;
|
|
68
|
-
},
|
|
69
|
-
statusCode: 403;
|
|
70
|
-
message?: string | undefined;
|
|
71
|
-
error?: string | undefined;
|
|
72
|
-
details?: Record<string, unknown> | undefined;
|
|
73
|
-
reason?: string | undefined;
|
|
74
|
-
}, {
|
|
75
|
-
statusCode: 403;
|
|
76
|
-
message?: string | undefined;
|
|
77
|
-
error?: string | undefined;
|
|
78
|
-
details?: Record<string, unknown> | undefined;
|
|
79
|
-
reason?: string | undefined;
|
|
80
|
-
}>;
|
|
29
|
+
}, z.z.core.$strip>;
|
|
81
30
|
declare const notFoundErrorSchema: z.ZodObject<{
|
|
82
31
|
reason: z.ZodOptional<z.ZodString>;
|
|
83
32
|
error: z.ZodOptional<z.ZodString>;
|
|
84
33
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
85
34
|
message: z.ZodOptional<z.ZodString>;
|
|
86
|
-
} & {
|
|
87
35
|
statusCode: z.ZodLiteral<404>;
|
|
88
|
-
},
|
|
89
|
-
statusCode: 404;
|
|
90
|
-
message?: string | undefined;
|
|
91
|
-
error?: string | undefined;
|
|
92
|
-
details?: Record<string, unknown> | undefined;
|
|
93
|
-
reason?: string | undefined;
|
|
94
|
-
}, {
|
|
95
|
-
statusCode: 404;
|
|
96
|
-
message?: string | undefined;
|
|
97
|
-
error?: string | undefined;
|
|
98
|
-
details?: Record<string, unknown> | undefined;
|
|
99
|
-
reason?: string | undefined;
|
|
100
|
-
}>;
|
|
36
|
+
}, z.z.core.$strip>;
|
|
101
37
|
declare const serverErrorSchema: z.ZodObject<{
|
|
102
38
|
reason: z.ZodOptional<z.ZodString>;
|
|
103
39
|
error: z.ZodOptional<z.ZodString>;
|
|
104
40
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
105
41
|
message: z.ZodOptional<z.ZodString>;
|
|
106
|
-
} & {
|
|
107
42
|
statusCode: z.ZodLiteral<500>;
|
|
108
|
-
},
|
|
109
|
-
statusCode: 500;
|
|
110
|
-
message?: string | undefined;
|
|
111
|
-
error?: string | undefined;
|
|
112
|
-
details?: Record<string, unknown> | undefined;
|
|
113
|
-
reason?: string | undefined;
|
|
114
|
-
}, {
|
|
115
|
-
statusCode: 500;
|
|
116
|
-
message?: string | undefined;
|
|
117
|
-
error?: string | undefined;
|
|
118
|
-
details?: Record<string, unknown> | undefined;
|
|
119
|
-
reason?: string | undefined;
|
|
120
|
-
}>;
|
|
43
|
+
}, z.z.core.$strip>;
|
|
121
44
|
declare const paginationSchema: z.ZodObject<{
|
|
122
45
|
page: z.ZodNumber;
|
|
123
46
|
limit: z.ZodNumber;
|
|
@@ -125,90 +48,37 @@ declare const paginationSchema: z.ZodObject<{
|
|
|
125
48
|
totalPages: z.ZodNumber;
|
|
126
49
|
hasNext: z.ZodBoolean;
|
|
127
50
|
hasPrev: z.ZodBoolean;
|
|
128
|
-
},
|
|
129
|
-
page: number;
|
|
130
|
-
limit: number;
|
|
131
|
-
total: number;
|
|
132
|
-
totalPages: number;
|
|
133
|
-
hasNext: boolean;
|
|
134
|
-
hasPrev: boolean;
|
|
135
|
-
}, {
|
|
136
|
-
page: number;
|
|
137
|
-
limit: number;
|
|
138
|
-
total: number;
|
|
139
|
-
totalPages: number;
|
|
140
|
-
hasNext: boolean;
|
|
141
|
-
hasPrev: boolean;
|
|
142
|
-
}>;
|
|
51
|
+
}, z.z.core.$strip>;
|
|
143
52
|
declare const walletSummarySchema: z.ZodObject<{
|
|
144
53
|
balance: z.ZodNumber;
|
|
145
54
|
availableBalance: z.ZodNumber;
|
|
146
55
|
accountNumber: z.ZodString;
|
|
147
56
|
accountName: z.ZodString;
|
|
148
|
-
},
|
|
149
|
-
balance: number;
|
|
150
|
-
availableBalance: number;
|
|
151
|
-
accountNumber: string;
|
|
152
|
-
accountName: string;
|
|
153
|
-
}, {
|
|
154
|
-
balance: number;
|
|
155
|
-
availableBalance: number;
|
|
156
|
-
accountNumber: string;
|
|
157
|
-
accountName: string;
|
|
158
|
-
}>;
|
|
57
|
+
}, z.z.core.$strip>;
|
|
159
58
|
declare const transactionSummarySchema: z.ZodObject<{
|
|
160
59
|
yesterday: z.ZodNumber;
|
|
161
60
|
today: z.ZodNumber;
|
|
162
61
|
thisMonth: z.ZodNumber;
|
|
163
62
|
lastMonth: z.ZodNumber;
|
|
164
|
-
},
|
|
165
|
-
yesterday: number;
|
|
166
|
-
today: number;
|
|
167
|
-
thisMonth: number;
|
|
168
|
-
lastMonth: number;
|
|
169
|
-
}, {
|
|
170
|
-
yesterday: number;
|
|
171
|
-
today: number;
|
|
172
|
-
thisMonth: number;
|
|
173
|
-
lastMonth: number;
|
|
174
|
-
}>;
|
|
63
|
+
}, z.z.core.$strip>;
|
|
175
64
|
/**
|
|
176
65
|
* Enhanced statement entry schema with EAT to UTC date conversion
|
|
177
66
|
*/
|
|
178
67
|
export declare const statementEntrySchema: z.ZodObject<{
|
|
179
68
|
accountNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
180
|
-
debitOrCredit: z.ZodEnum<
|
|
69
|
+
debitOrCredit: z.ZodEnum<{
|
|
70
|
+
CR: "CR";
|
|
71
|
+
DR: "DR";
|
|
72
|
+
}>;
|
|
181
73
|
tranRefNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
74
|
cbaRefNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
183
75
|
narration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
|
-
txnDate: z.
|
|
185
|
-
valueDate: z.
|
|
186
|
-
amountCredited: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.
|
|
187
|
-
amountDebited: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.
|
|
76
|
+
txnDate: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
77
|
+
valueDate: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
78
|
+
amountCredited: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
|
|
79
|
+
amountDebited: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
|
|
188
80
|
balance: z.ZodNumber;
|
|
189
|
-
},
|
|
190
|
-
balance: number;
|
|
191
|
-
debitOrCredit: "CR" | "DR";
|
|
192
|
-
txnDate: string | null;
|
|
193
|
-
valueDate: string | null;
|
|
194
|
-
accountNo?: string | null | undefined;
|
|
195
|
-
tranRefNo?: string | null | undefined;
|
|
196
|
-
cbaRefNo?: string | null | undefined;
|
|
197
|
-
narration?: string | null | undefined;
|
|
198
|
-
amountCredited?: number | null | undefined;
|
|
199
|
-
amountDebited?: number | null | undefined;
|
|
200
|
-
}, {
|
|
201
|
-
balance: number;
|
|
202
|
-
debitOrCredit: "CR" | "DR";
|
|
203
|
-
accountNo?: string | null | undefined;
|
|
204
|
-
tranRefNo?: string | null | undefined;
|
|
205
|
-
cbaRefNo?: string | null | undefined;
|
|
206
|
-
narration?: string | null | undefined;
|
|
207
|
-
txnDate?: string | null | undefined;
|
|
208
|
-
valueDate?: string | null | undefined;
|
|
209
|
-
amountCredited?: string | number | null | undefined;
|
|
210
|
-
amountDebited?: string | number | null | undefined;
|
|
211
|
-
}>;
|
|
81
|
+
}, z.z.core.$strip>;
|
|
212
82
|
export declare const CommonSchemas: {
|
|
213
83
|
apiError: z.ZodObject<{
|
|
214
84
|
statusCode: z.ZodNumber;
|
|
@@ -216,119 +86,42 @@ export declare const CommonSchemas: {
|
|
|
216
86
|
error: z.ZodOptional<z.ZodString>;
|
|
217
87
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
218
88
|
message: z.ZodOptional<z.ZodString>;
|
|
219
|
-
},
|
|
220
|
-
statusCode: number;
|
|
221
|
-
message?: string | undefined;
|
|
222
|
-
error?: string | undefined;
|
|
223
|
-
details?: Record<string, unknown> | undefined;
|
|
224
|
-
reason?: string | undefined;
|
|
225
|
-
}, {
|
|
226
|
-
statusCode: number;
|
|
227
|
-
message?: string | undefined;
|
|
228
|
-
error?: string | undefined;
|
|
229
|
-
details?: Record<string, unknown> | undefined;
|
|
230
|
-
reason?: string | undefined;
|
|
231
|
-
}>;
|
|
89
|
+
}, z.z.core.$strip>;
|
|
232
90
|
validationError: z.ZodObject<{
|
|
233
91
|
reason: z.ZodOptional<z.ZodString>;
|
|
234
92
|
error: z.ZodOptional<z.ZodString>;
|
|
235
93
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
236
94
|
message: z.ZodOptional<z.ZodString>;
|
|
237
|
-
} & {
|
|
238
95
|
statusCode: z.ZodLiteral<400>;
|
|
239
|
-
},
|
|
240
|
-
statusCode: 400;
|
|
241
|
-
message?: string | undefined;
|
|
242
|
-
error?: string | undefined;
|
|
243
|
-
details?: Record<string, unknown> | undefined;
|
|
244
|
-
reason?: string | undefined;
|
|
245
|
-
}, {
|
|
246
|
-
statusCode: 400;
|
|
247
|
-
message?: string | undefined;
|
|
248
|
-
error?: string | undefined;
|
|
249
|
-
details?: Record<string, unknown> | undefined;
|
|
250
|
-
reason?: string | undefined;
|
|
251
|
-
}>;
|
|
96
|
+
}, z.z.core.$strip>;
|
|
252
97
|
unauthorizedError: z.ZodObject<{
|
|
253
98
|
reason: z.ZodOptional<z.ZodString>;
|
|
254
99
|
error: z.ZodOptional<z.ZodString>;
|
|
255
100
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
256
101
|
message: z.ZodOptional<z.ZodString>;
|
|
257
|
-
} & {
|
|
258
102
|
statusCode: z.ZodLiteral<401>;
|
|
259
|
-
},
|
|
260
|
-
statusCode: 401;
|
|
261
|
-
message?: string | undefined;
|
|
262
|
-
error?: string | undefined;
|
|
263
|
-
details?: Record<string, unknown> | undefined;
|
|
264
|
-
reason?: string | undefined;
|
|
265
|
-
}, {
|
|
266
|
-
statusCode: 401;
|
|
267
|
-
message?: string | undefined;
|
|
268
|
-
error?: string | undefined;
|
|
269
|
-
details?: Record<string, unknown> | undefined;
|
|
270
|
-
reason?: string | undefined;
|
|
271
|
-
}>;
|
|
103
|
+
}, z.z.core.$strip>;
|
|
272
104
|
forbiddenError: z.ZodObject<{
|
|
273
105
|
reason: z.ZodOptional<z.ZodString>;
|
|
274
106
|
error: z.ZodOptional<z.ZodString>;
|
|
275
107
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
276
108
|
message: z.ZodOptional<z.ZodString>;
|
|
277
|
-
} & {
|
|
278
109
|
statusCode: z.ZodLiteral<403>;
|
|
279
|
-
},
|
|
280
|
-
statusCode: 403;
|
|
281
|
-
message?: string | undefined;
|
|
282
|
-
error?: string | undefined;
|
|
283
|
-
details?: Record<string, unknown> | undefined;
|
|
284
|
-
reason?: string | undefined;
|
|
285
|
-
}, {
|
|
286
|
-
statusCode: 403;
|
|
287
|
-
message?: string | undefined;
|
|
288
|
-
error?: string | undefined;
|
|
289
|
-
details?: Record<string, unknown> | undefined;
|
|
290
|
-
reason?: string | undefined;
|
|
291
|
-
}>;
|
|
110
|
+
}, z.z.core.$strip>;
|
|
292
111
|
notFoundError: z.ZodObject<{
|
|
293
112
|
reason: z.ZodOptional<z.ZodString>;
|
|
294
113
|
error: z.ZodOptional<z.ZodString>;
|
|
295
114
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
296
115
|
message: z.ZodOptional<z.ZodString>;
|
|
297
|
-
} & {
|
|
298
116
|
statusCode: z.ZodLiteral<404>;
|
|
299
|
-
},
|
|
300
|
-
statusCode: 404;
|
|
301
|
-
message?: string | undefined;
|
|
302
|
-
error?: string | undefined;
|
|
303
|
-
details?: Record<string, unknown> | undefined;
|
|
304
|
-
reason?: string | undefined;
|
|
305
|
-
}, {
|
|
306
|
-
statusCode: 404;
|
|
307
|
-
message?: string | undefined;
|
|
308
|
-
error?: string | undefined;
|
|
309
|
-
details?: Record<string, unknown> | undefined;
|
|
310
|
-
reason?: string | undefined;
|
|
311
|
-
}>;
|
|
117
|
+
}, z.z.core.$strip>;
|
|
312
118
|
serverError: z.ZodObject<{
|
|
313
119
|
reason: z.ZodOptional<z.ZodString>;
|
|
314
120
|
error: z.ZodOptional<z.ZodString>;
|
|
315
121
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
316
122
|
message: z.ZodOptional<z.ZodString>;
|
|
317
|
-
} & {
|
|
318
123
|
statusCode: z.ZodLiteral<500>;
|
|
319
|
-
},
|
|
320
|
-
statusCode: 500;
|
|
321
|
-
message?: string | undefined;
|
|
322
|
-
error?: string | undefined;
|
|
323
|
-
details?: Record<string, unknown> | undefined;
|
|
324
|
-
reason?: string | undefined;
|
|
325
|
-
}, {
|
|
326
|
-
statusCode: 500;
|
|
327
|
-
message?: string | undefined;
|
|
328
|
-
error?: string | undefined;
|
|
329
|
-
details?: Record<string, unknown> | undefined;
|
|
330
|
-
reason?: string | undefined;
|
|
331
|
-
}>;
|
|
124
|
+
}, z.z.core.$strip>;
|
|
332
125
|
pagination: z.ZodObject<{
|
|
333
126
|
page: z.ZodNumber;
|
|
334
127
|
limit: z.ZodNumber;
|
|
@@ -336,87 +129,34 @@ export declare const CommonSchemas: {
|
|
|
336
129
|
totalPages: z.ZodNumber;
|
|
337
130
|
hasNext: z.ZodBoolean;
|
|
338
131
|
hasPrev: z.ZodBoolean;
|
|
339
|
-
},
|
|
340
|
-
page: number;
|
|
341
|
-
limit: number;
|
|
342
|
-
total: number;
|
|
343
|
-
totalPages: number;
|
|
344
|
-
hasNext: boolean;
|
|
345
|
-
hasPrev: boolean;
|
|
346
|
-
}, {
|
|
347
|
-
page: number;
|
|
348
|
-
limit: number;
|
|
349
|
-
total: number;
|
|
350
|
-
totalPages: number;
|
|
351
|
-
hasNext: boolean;
|
|
352
|
-
hasPrev: boolean;
|
|
353
|
-
}>;
|
|
132
|
+
}, z.z.core.$strip>;
|
|
354
133
|
transactionSummary: z.ZodObject<{
|
|
355
134
|
yesterday: z.ZodNumber;
|
|
356
135
|
today: z.ZodNumber;
|
|
357
136
|
thisMonth: z.ZodNumber;
|
|
358
137
|
lastMonth: z.ZodNumber;
|
|
359
|
-
},
|
|
360
|
-
yesterday: number;
|
|
361
|
-
today: number;
|
|
362
|
-
thisMonth: number;
|
|
363
|
-
lastMonth: number;
|
|
364
|
-
}, {
|
|
365
|
-
yesterday: number;
|
|
366
|
-
today: number;
|
|
367
|
-
thisMonth: number;
|
|
368
|
-
lastMonth: number;
|
|
369
|
-
}>;
|
|
138
|
+
}, z.z.core.$strip>;
|
|
370
139
|
walletSummary: z.ZodObject<{
|
|
371
140
|
balance: z.ZodNumber;
|
|
372
141
|
availableBalance: z.ZodNumber;
|
|
373
142
|
accountNumber: z.ZodString;
|
|
374
143
|
accountName: z.ZodString;
|
|
375
|
-
},
|
|
376
|
-
balance: number;
|
|
377
|
-
availableBalance: number;
|
|
378
|
-
accountNumber: string;
|
|
379
|
-
accountName: string;
|
|
380
|
-
}, {
|
|
381
|
-
balance: number;
|
|
382
|
-
availableBalance: number;
|
|
383
|
-
accountNumber: string;
|
|
384
|
-
accountName: string;
|
|
385
|
-
}>;
|
|
144
|
+
}, z.z.core.$strip>;
|
|
386
145
|
statementEntry: z.ZodObject<{
|
|
387
146
|
accountNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
388
|
-
debitOrCredit: z.ZodEnum<
|
|
147
|
+
debitOrCredit: z.ZodEnum<{
|
|
148
|
+
CR: "CR";
|
|
149
|
+
DR: "DR";
|
|
150
|
+
}>;
|
|
389
151
|
tranRefNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
390
152
|
cbaRefNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
391
153
|
narration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
392
|
-
txnDate: z.
|
|
393
|
-
valueDate: z.
|
|
394
|
-
amountCredited: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.
|
|
395
|
-
amountDebited: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.
|
|
154
|
+
txnDate: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
155
|
+
valueDate: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | null, string | null | undefined>>;
|
|
156
|
+
amountCredited: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
|
|
157
|
+
amountDebited: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
|
|
396
158
|
balance: z.ZodNumber;
|
|
397
|
-
},
|
|
398
|
-
balance: number;
|
|
399
|
-
debitOrCredit: "CR" | "DR";
|
|
400
|
-
txnDate: string | null;
|
|
401
|
-
valueDate: string | null;
|
|
402
|
-
accountNo?: string | null | undefined;
|
|
403
|
-
tranRefNo?: string | null | undefined;
|
|
404
|
-
cbaRefNo?: string | null | undefined;
|
|
405
|
-
narration?: string | null | undefined;
|
|
406
|
-
amountCredited?: number | null | undefined;
|
|
407
|
-
amountDebited?: number | null | undefined;
|
|
408
|
-
}, {
|
|
409
|
-
balance: number;
|
|
410
|
-
debitOrCredit: "CR" | "DR";
|
|
411
|
-
accountNo?: string | null | undefined;
|
|
412
|
-
tranRefNo?: string | null | undefined;
|
|
413
|
-
cbaRefNo?: string | null | undefined;
|
|
414
|
-
narration?: string | null | undefined;
|
|
415
|
-
txnDate?: string | null | undefined;
|
|
416
|
-
valueDate?: string | null | undefined;
|
|
417
|
-
amountCredited?: string | number | null | undefined;
|
|
418
|
-
amountDebited?: string | number | null | undefined;
|
|
419
|
-
}>;
|
|
159
|
+
}, z.z.core.$strip>;
|
|
420
160
|
};
|
|
421
161
|
export type ApiErrorDTO = z.infer<typeof apiErrorSchema>;
|
|
422
162
|
export type ValidationErrorDTO = z.infer<typeof validationErrorSchema>;
|
|
@@ -429,3 +169,4 @@ export type TransactionSummaryDTO = z.infer<typeof transactionSummarySchema>;
|
|
|
429
169
|
export type WalletSummaryDTO = z.infer<typeof walletSummarySchema>;
|
|
430
170
|
export type StatementEntryDTO = z.infer<typeof statementEntrySchema>;
|
|
431
171
|
export {};
|
|
172
|
+
//# sourceMappingURL=common-schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-schemas.d.ts","sourceRoot":"","sources":["../../../src/lib/api/common-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,QAAA,MAAM,cAAc;;;;;;mBAMlB,CAAC;AAEH,QAAA,MAAM,qBAAqB;;;;;;mBAEzB,CAAC;AAEH,QAAA,MAAM,uBAAuB;;;;;;mBAE3B,CAAC;AAEH,QAAA,MAAM,oBAAoB;;;;;;mBAExB,CAAC;AAEH,QAAA,MAAM,mBAAmB;;;;;;mBAEvB,CAAC;AAEH,QAAA,MAAM,iBAAiB;;;;;;mBAErB,CAAC;AAEH,QAAA,MAAM,gBAAgB;;;;;;;mBAOpB,CAAC;AAGH,QAAA,MAAM,mBAAmB;;;;;mBAKvB,CAAC;AAGH,QAAA,MAAM,wBAAwB;;;;;mBAK5B,CAAC;AAuDH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;mBAwD/B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWzB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACzD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACrE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC7D,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/lib/api/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
|
|
@@ -57,6 +57,7 @@ export declare class APIError extends Error {
|
|
|
57
57
|
message: z.ZodString;
|
|
58
58
|
statusCode: z.ZodNumber;
|
|
59
59
|
error: z.ZodOptional<z.ZodString>;
|
|
60
|
-
details: z.ZodOptional<z.
|
|
61
|
-
}>;
|
|
60
|
+
details: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
62
|
}
|
|
63
|
+
//# sourceMappingURL=error.api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.api.d.ts","sourceRoot":"","sources":["../../../src/lib/error/error.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,qBAAa,QAAS,SAAQ,KAAK;IACjC;;;OAGG;IACH,SAAgB,UAAU,EAAE,MAAM,CAAC;IAEnC;;;OAGG;IACH,SAAgB,KAAK,CAAC,EAAE,MAAM,CAAC;IAE/B;;;OAGG;IACH,SAAgB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAElD;;;;;;;OAOG;gBACS,IAAI,EAAE;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC;IASD;;;;;;;;;;;;;;;;;OAiBG;WACW,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ;WAKrC,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ;IASjD,WAAkB,MAAM;;;;;sBAOvB;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/error/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Amount, AmountJson, CurrencyCode } from "@temboplus/frontend-core";
|
|
2
|
-
import { StatementEntryDTO } from "../api/index.js";
|
|
1
|
+
import { Amount, type AmountJson, type CurrencyCode } from "@temboplus/frontend-core";
|
|
2
|
+
import { type StatementEntryDTO } from "../api/index.js";
|
|
3
3
|
export interface StatementEntryJson {
|
|
4
4
|
accountNo?: string | null;
|
|
5
5
|
debitOrCredit: "CR" | "DR";
|
|
@@ -82,3 +82,4 @@ export declare class StatementEntry {
|
|
|
82
82
|
*/
|
|
83
83
|
static getNetChange(entries: StatementEntry[]): Amount;
|
|
84
84
|
}
|
|
85
|
+
//# sourceMappingURL=statement-entry.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statement-entry.model.d.ts","sourceRoot":"","sources":["../../../src/lib/models/statement-entry.model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAiB,KAAK,UAAU,EAAE,KAAK,YAAY,EAAmB,MAAM,0BAA0B,CAAC;AACtH,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIxE,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IACnC,aAAa,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAClC,OAAO,EAAE,UAAU,CAAC;IACpB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAID;;GAEG;AACH,qBAAa,cAAc;IACzB,SAAgB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,SAAgB,aAAa,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3C,SAAgB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,SAAgB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,SAAgB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,SAAgB,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtC,SAAgB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxC,SAAgB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9C,SAAgB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7C,SAAgB,OAAO,EAAE,MAAM,CAAC;IAChC,SAAgB,QAAQ,EAAE,YAAY,CAAC;gBAE3B,IAAI,EAAE,iBAAiB,EAAE,QAAQ,GAAE,YAAoB;IAsCnE;;OAEG;IACH,OAAO,CAAC,gBAAgB;IASxB;;OAEG;IACH,QAAQ,IAAI,OAAO;IAInB;;OAEG;IACH,OAAO,IAAI,OAAO;IAIlB;;OAEG;IACH,oBAAoB,IAAI,MAAM,GAAG,IAAI;IAIrC;;OAEG;IACH,mBAAmB,IAAI,MAAM;IAK7B;;OAEG;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,GAAE,YAAoB,GAAG,cAAc,GAAG,SAAS;IAalF;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,SAAS,EAAE,GAAG,EAAE,EAAE,QAAQ,GAAE,YAAoB,GAAG,cAAc,EAAE,GAAG,SAAS;IAYjG;;OAEG;IACH,MAAM,IAAI,kBAAkB;IAgB5B;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,cAAc,GAAG,SAAS;IAkErE;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,SAAS,EAAE,kBAAkB,EAAE,GAAG,cAAc,EAAE,GAAG,SAAS;IAYxF;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,MAAM;IAYzD;;OAEG;IACH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,MAAM;IAYxD;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,MAAM;CAOvD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Amount, AmountJson, CurrencyCode } from "@temboplus/frontend-core";
|
|
2
|
-
import { TransactionSummaryDTO } from "../api/index.js";
|
|
1
|
+
import { Amount, type AmountJson, type CurrencyCode } from "@temboplus/frontend-core";
|
|
2
|
+
import type { TransactionSummaryDTO } from "../api/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* JSON representation of TransactionSummary with serialized Amount objects
|
|
5
5
|
*/
|
|
@@ -41,3 +41,4 @@ export declare class TransactionSummary {
|
|
|
41
41
|
*/
|
|
42
42
|
static fromJSON(json: TransactionSummaryJson): TransactionSummary | undefined;
|
|
43
43
|
}
|
|
44
|
+
//# sourceMappingURL=transaction-summary.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction-summary.model.d.ts","sourceRoot":"","sources":["../../../src/lib/models/transaction-summary.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAiB,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACrG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,UAAU,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;IACtB,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED;;GAEG;AACH,qBAAa,kBAAkB;IAC7B,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,QAAQ,EAAE,YAAY,CAAC;gBAE3B,IAAI,EAAE,qBAAqB,EAAE,QAAQ,GAAE,YAAoB;IAQvE;;OAEG;IACH,oBAAoB,IAAI,MAAM;IAO9B;;OAEG;IACH,cAAc,IAAI,MAAM;IAIxB;;OAEG;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,qBAAqB,EAAE,QAAQ,GAAE,YAAoB,GAAG,kBAAkB;IAI5F;;OAEG;IACH,MAAM,IAAI,sBAAsB;IAUhC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,sBAAsB,GAAG,kBAAkB,GAAG,SAAS;CAsC9E"}
|
|
@@ -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 WalletInfoData {
|
|
3
3
|
accountName: string;
|
|
4
4
|
accountNo: string;
|
|
@@ -62,3 +62,4 @@ export declare class WalletInfo {
|
|
|
62
62
|
*/
|
|
63
63
|
static createManyFromJson(jsonArray: WalletInfoJson[]): WalletInfo[] | undefined;
|
|
64
64
|
}
|
|
65
|
+
//# sourceMappingURL=wallet-info.model.d.ts.map
|