@temboplus/tembo-dashboard 0.1.3-beta.5 → 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.
@@ -16,17 +16,17 @@ export declare const collectionContract: {
16
16
  accountNo: z.ZodOptional<z.ZodString>;
17
17
  walletId: z.ZodOptional<z.ZodString>;
18
18
  partnerReference: z.ZodOptional<z.ZodString>;
19
- channel: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("./collection.types").COLLECTION_CHANNEL, string>>;
20
- channelIn: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>, z.ZodArray<z.ZodNativeEnum<typeof import("./collection.types").COLLECTION_CHANNEL>, "many">>>;
21
- status: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("./collection.types").COLLECTION_STATUS, string>>;
22
- statusIn: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>, z.ZodArray<z.ZodNativeEnum<typeof import("./collection.types").COLLECTION_STATUS>, "many">>>;
19
+ channel: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("./collection.types.js").COLLECTION_CHANNEL, string>>;
20
+ channelIn: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>, z.ZodArray<z.ZodNativeEnum<typeof import("./collection.types.js").COLLECTION_CHANNEL>, "many">>>;
21
+ status: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("./collection.types.js").COLLECTION_STATUS, string>>;
22
+ statusIn: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>, z.ZodArray<z.ZodNativeEnum<typeof import("./collection.types.js").COLLECTION_STATUS>, "many">>>;
23
23
  minAmount: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
24
24
  maxAmount: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
25
25
  search: z.ZodOptional<z.ZodString>;
26
26
  }, "strip", z.ZodTypeAny, {
27
27
  sortBy: string;
28
28
  sortOrder: "asc" | "desc";
29
- status?: import("./collection.types").COLLECTION_STATUS | undefined;
29
+ status?: import("./collection.types.js").COLLECTION_STATUS | undefined;
30
30
  page?: number | undefined;
31
31
  limit?: number | undefined;
32
32
  accountNo?: string | undefined;
@@ -34,15 +34,15 @@ export declare const collectionContract: {
34
34
  id?: string | undefined;
35
35
  walletId?: string | undefined;
36
36
  msisdn?: string | undefined;
37
- channel?: import("./collection.types").COLLECTION_CHANNEL | undefined;
37
+ channel?: import("./collection.types.js").COLLECTION_CHANNEL | undefined;
38
38
  reference?: string | undefined;
39
39
  partnerReference?: string | undefined;
40
40
  startDate?: string | undefined;
41
41
  endDate?: string | undefined;
42
42
  idIn?: string[] | undefined;
43
43
  referenceIn?: string[] | undefined;
44
- channelIn?: import("./collection.types").COLLECTION_CHANNEL[] | undefined;
45
- statusIn?: import("./collection.types").COLLECTION_STATUS[] | undefined;
44
+ channelIn?: import("./collection.types.js").COLLECTION_CHANNEL[] | undefined;
45
+ statusIn?: import("./collection.types.js").COLLECTION_STATUS[] | undefined;
46
46
  minAmount?: number | undefined;
47
47
  maxAmount?: number | undefined;
48
48
  }, {
@@ -76,14 +76,14 @@ export declare const collectionContract: {
76
76
  200: z.ZodObject<{
77
77
  results: z.ZodArray<z.ZodObject<{
78
78
  id: z.ZodString;
79
- status: z.ZodNativeEnum<typeof import("./collection.types").COLLECTION_STATUS>;
79
+ status: z.ZodNativeEnum<typeof import("./collection.types.js").COLLECTION_STATUS>;
80
80
  statusMessage: z.ZodString;
81
81
  accountNo: z.ZodString;
82
82
  walletId: z.ZodString;
83
83
  transactionDate: z.ZodString;
84
84
  narration: z.ZodString;
85
85
  msisdn: z.ZodString;
86
- channel: z.ZodNativeEnum<typeof import("./collection.types").COLLECTION_CHANNEL>;
86
+ channel: z.ZodNativeEnum<typeof import("./collection.types.js").COLLECTION_CHANNEL>;
87
87
  amount: z.ZodNumber;
88
88
  serviceFee: z.ZodOptional<z.ZodString>;
89
89
  postedAmount: z.ZodOptional<z.ZodString>;
@@ -102,7 +102,7 @@ export declare const collectionContract: {
102
102
  notes: z.ZodOptional<z.ZodString>;
103
103
  currencyCode: z.ZodDefault<z.ZodString>;
104
104
  }, "strip", z.ZodTypeAny, {
105
- status: import("./collection.types").COLLECTION_STATUS;
105
+ status: import("./collection.types.js").COLLECTION_STATUS;
106
106
  createdAt: string;
107
107
  accountNo: string;
108
108
  narration: string;
@@ -111,7 +111,7 @@ export declare const collectionContract: {
111
111
  walletId: string;
112
112
  transactionDate: string;
113
113
  msisdn: string;
114
- channel: import("./collection.types").COLLECTION_CHANNEL;
114
+ channel: import("./collection.types.js").COLLECTION_CHANNEL;
115
115
  amount: number;
116
116
  reference: string;
117
117
  updatedAt: string;
@@ -129,7 +129,7 @@ export declare const collectionContract: {
129
129
  completedAt?: string | null | undefined;
130
130
  notes?: string | undefined;
131
131
  }, {
132
- status: import("./collection.types").COLLECTION_STATUS;
132
+ status: import("./collection.types.js").COLLECTION_STATUS;
133
133
  createdAt: string;
134
134
  accountNo: string;
135
135
  narration: string;
@@ -138,7 +138,7 @@ export declare const collectionContract: {
138
138
  walletId: string;
139
139
  transactionDate: string;
140
140
  msisdn: string;
141
- channel: import("./collection.types").COLLECTION_CHANNEL;
141
+ channel: import("./collection.types.js").COLLECTION_CHANNEL;
142
142
  amount: number;
143
143
  reference: string;
144
144
  updatedAt: string;
@@ -160,7 +160,7 @@ export declare const collectionContract: {
160
160
  }, "strip", z.ZodTypeAny, {
161
161
  total: number;
162
162
  results: {
163
- status: import("./collection.types").COLLECTION_STATUS;
163
+ status: import("./collection.types.js").COLLECTION_STATUS;
164
164
  createdAt: string;
165
165
  accountNo: string;
166
166
  narration: string;
@@ -169,7 +169,7 @@ export declare const collectionContract: {
169
169
  walletId: string;
170
170
  transactionDate: string;
171
171
  msisdn: string;
172
- channel: import("./collection.types").COLLECTION_CHANNEL;
172
+ channel: import("./collection.types.js").COLLECTION_CHANNEL;
173
173
  amount: number;
174
174
  reference: string;
175
175
  updatedAt: string;
@@ -190,7 +190,7 @@ export declare const collectionContract: {
190
190
  }, {
191
191
  total: number;
192
192
  results: {
193
- status: import("./collection.types").COLLECTION_STATUS;
193
+ status: import("./collection.types.js").COLLECTION_STATUS;
194
194
  createdAt: string;
195
195
  accountNo: string;
196
196
  narration: string;
@@ -199,7 +199,7 @@ export declare const collectionContract: {
199
199
  walletId: string;
200
200
  transactionDate: string;
201
201
  msisdn: string;
202
- channel: import("./collection.types").COLLECTION_CHANNEL;
202
+ channel: import("./collection.types.js").COLLECTION_CHANNEL;
203
203
  amount: number;
204
204
  reference: string;
205
205
  updatedAt: string;
@@ -295,14 +295,14 @@ export declare const collectionContract: {
295
295
  responses: {
296
296
  200: z.ZodObject<{
297
297
  id: z.ZodString;
298
- status: z.ZodNativeEnum<typeof import("./collection.types").COLLECTION_STATUS>;
298
+ status: z.ZodNativeEnum<typeof import("./collection.types.js").COLLECTION_STATUS>;
299
299
  statusMessage: z.ZodString;
300
300
  accountNo: z.ZodString;
301
301
  walletId: z.ZodString;
302
302
  transactionDate: z.ZodString;
303
303
  narration: z.ZodString;
304
304
  msisdn: z.ZodString;
305
- channel: z.ZodNativeEnum<typeof import("./collection.types").COLLECTION_CHANNEL>;
305
+ channel: z.ZodNativeEnum<typeof import("./collection.types.js").COLLECTION_CHANNEL>;
306
306
  amount: z.ZodNumber;
307
307
  serviceFee: z.ZodOptional<z.ZodString>;
308
308
  postedAmount: z.ZodOptional<z.ZodString>;
@@ -321,7 +321,7 @@ export declare const collectionContract: {
321
321
  notes: z.ZodOptional<z.ZodString>;
322
322
  currencyCode: z.ZodDefault<z.ZodString>;
323
323
  }, "strip", z.ZodTypeAny, {
324
- status: import("./collection.types").COLLECTION_STATUS;
324
+ status: import("./collection.types.js").COLLECTION_STATUS;
325
325
  createdAt: string;
326
326
  accountNo: string;
327
327
  narration: string;
@@ -330,7 +330,7 @@ export declare const collectionContract: {
330
330
  walletId: string;
331
331
  transactionDate: string;
332
332
  msisdn: string;
333
- channel: import("./collection.types").COLLECTION_CHANNEL;
333
+ channel: import("./collection.types.js").COLLECTION_CHANNEL;
334
334
  amount: number;
335
335
  reference: string;
336
336
  updatedAt: string;
@@ -348,7 +348,7 @@ export declare const collectionContract: {
348
348
  completedAt?: string | null | undefined;
349
349
  notes?: string | undefined;
350
350
  }, {
351
- status: import("./collection.types").COLLECTION_STATUS;
351
+ status: import("./collection.types.js").COLLECTION_STATUS;
352
352
  createdAt: string;
353
353
  accountNo: string;
354
354
  narration: string;
@@ -357,7 +357,7 @@ export declare const collectionContract: {
357
357
  walletId: string;
358
358
  transactionDate: string;
359
359
  msisdn: string;
360
- channel: import("./collection.types").COLLECTION_CHANNEL;
360
+ channel: import("./collection.types.js").COLLECTION_CHANNEL;
361
361
  amount: number;
362
362
  reference: string;
363
363
  updatedAt: string;
@@ -1,6 +1,6 @@
1
- import { Amount, AmountJson } from "@temboplus/frontend-core";
2
- import { COLLECTION_CHANNEL, COLLECTION_STATUS } from "./collection.types";
3
- import { MobileChannelInfo } from "../../lib/types";
1
+ import { Amount, AmountJSON } from "@temboplus/frontend-core";
2
+ import { COLLECTION_CHANNEL, COLLECTION_STATUS } from "./collection.types.js";
3
+ import { MobileChannelInfo } from "../../lib/types.js";
4
4
  export interface CollectionStatusInfo {
5
5
  label: string;
6
6
  description: string;
@@ -47,9 +47,9 @@ export interface CollectionJson {
47
47
  narration: string;
48
48
  msisdn: string;
49
49
  channel: COLLECTION_CHANNEL;
50
- amount: AmountJson;
51
- serviceFee?: AmountJson;
52
- postedAmount?: AmountJson;
50
+ amount: AmountJSON;
51
+ serviceFee?: AmountJSON;
52
+ postedAmount?: AmountJSON;
53
53
  reference: string;
54
54
  partnerReference?: string | null;
55
55
  payerName?: string | null;
@@ -1,5 +1,5 @@
1
- import { QueryBuilder } from "../../lib/query";
2
- import { COLLECTION_STATUS, COLLECTION_CHANNEL, CollectionFilters } from "./collection.types";
1
+ import { QueryBuilder } from "../../lib/query/index.js";
2
+ import { COLLECTION_STATUS, COLLECTION_CHANNEL, CollectionFilters } from "./collection.types.js";
3
3
  type CollectionUrlParams = Record<string, string | string[]>;
4
4
  /**
5
5
  * Collection-specific query builder that extends the base QueryBuilder
@@ -1,9 +1,9 @@
1
- import { BaseRepository, PaginationDTO } from "../../lib/api";
2
- import { collectionContract } from "./collection.api-contract";
3
- import { Collection } from "./collection.model";
4
- import { CollectionQuery } from "./collection.query";
5
- import { CollectionFilters } from "./collection.types";
6
- import { TransactionSummary } from "../../lib/models";
1
+ import { BaseRepository, PaginationDTO } from "../../lib/api/index.js";
2
+ import { collectionContract } from "./collection.api-contract.js";
3
+ import { Collection } from "./collection.model.js";
4
+ import { CollectionQuery } from "./collection.query.js";
5
+ import { CollectionFilters } from "./collection.types.js";
6
+ import { TransactionSummary } from "../../lib/models/index.js";
7
7
  /**
8
8
  * Flexible query input type - supports the class, filters interface, URL params, etc.
9
9
  */
@@ -1,5 +1,5 @@
1
- export * from "./collection.api-contract";
2
- export * from "./collection.repository";
3
- export * from "./collection.model";
4
- export * from "./collection.types";
5
- export * from "./collection.query";
1
+ export * from "./collection.api-contract.js";
2
+ export * from "./collection.repository.js";
3
+ export * from "./collection.model.js";
4
+ export * from "./collection.types.js";
5
+ export * from "./collection.query.js";
@@ -1,5 +1,5 @@
1
- export * from "./payout.api-contract";
2
- export * from "./payout.repository";
3
- export * from "./payout.types";
4
- export * from "./payout.model";
5
- export * from "./payout.query";
1
+ export * from "./payout.api-contract.js";
2
+ export * from "./payout.repository.js";
3
+ export * from "./payout.types.js";
4
+ export * from "./payout.model.js";
5
+ export * from "./payout.query.js";
@@ -17,17 +17,17 @@ export declare const payoutContract: {
17
17
  refIn: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
18
18
  channelRef: z.ZodOptional<z.ZodString>;
19
19
  channelRefIn: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
20
- channel: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("./payout.types").MOBILE_PAYOUT_CHANNEL | import("./payout.types").BANK_PAYOUT_CHANNEL, string>>;
21
- channelIn: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>, z.ZodArray<z.ZodUnion<[z.ZodNativeEnum<typeof import("./payout.types").MOBILE_PAYOUT_CHANNEL>, z.ZodNativeEnum<typeof import("./payout.types").BANK_PAYOUT_CHANNEL>]>, "many">>>;
22
- status: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("./payout.types").PAYOUT_STATUS, string>>;
23
- statusIn: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>, z.ZodArray<z.ZodNativeEnum<typeof import("./payout.types").PAYOUT_STATUS>, "many">>>;
20
+ channel: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("./payout.types.js").MOBILE_PAYOUT_CHANNEL | import("./payout.types.js").BANK_PAYOUT_CHANNEL, string>>;
21
+ channelIn: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>, z.ZodArray<z.ZodUnion<[z.ZodNativeEnum<typeof import("./payout.types.js").MOBILE_PAYOUT_CHANNEL>, z.ZodNativeEnum<typeof import("./payout.types.js").BANK_PAYOUT_CHANNEL>]>, "many">>>;
22
+ status: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("./payout.types.js").PAYOUT_STATUS, string>>;
23
+ statusIn: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>, z.ZodArray<z.ZodNativeEnum<typeof import("./payout.types.js").PAYOUT_STATUS>, "many">>>;
24
24
  minAmount: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
25
25
  maxAmount: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
26
26
  search: z.ZodOptional<z.ZodString>;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  sortBy: string;
29
29
  sortOrder: "asc" | "desc";
30
- status?: import("./payout.types").PAYOUT_STATUS | undefined;
30
+ status?: import("./payout.types.js").PAYOUT_STATUS | undefined;
31
31
  page?: number | undefined;
32
32
  limit?: number | undefined;
33
33
  accountNo?: string | undefined;
@@ -35,12 +35,12 @@ export declare const payoutContract: {
35
35
  id?: string | undefined;
36
36
  walletId?: string | undefined;
37
37
  msisdn?: string | undefined;
38
- channel?: import("./payout.types").MOBILE_PAYOUT_CHANNEL | import("./payout.types").BANK_PAYOUT_CHANNEL | undefined;
38
+ channel?: import("./payout.types.js").MOBILE_PAYOUT_CHANNEL | import("./payout.types.js").BANK_PAYOUT_CHANNEL | undefined;
39
39
  startDate?: string | undefined;
40
40
  endDate?: string | undefined;
41
41
  idIn?: string[] | undefined;
42
- channelIn?: (import("./payout.types").MOBILE_PAYOUT_CHANNEL | import("./payout.types").BANK_PAYOUT_CHANNEL.BANK)[] | undefined;
43
- statusIn?: import("./payout.types").PAYOUT_STATUS[] | undefined;
42
+ channelIn?: (import("./payout.types.js").MOBILE_PAYOUT_CHANNEL | import("./payout.types.js").BANK_PAYOUT_CHANNEL.BANK)[] | undefined;
43
+ statusIn?: import("./payout.types.js").PAYOUT_STATUS[] | undefined;
44
44
  minAmount?: number | undefined;
45
45
  maxAmount?: number | undefined;
46
46
  ref?: string | undefined;
@@ -80,10 +80,10 @@ export declare const payoutContract: {
80
80
  results: z.ZodArray<z.ZodObject<{
81
81
  id: z.ZodString;
82
82
  statusCode: z.ZodString;
83
- statusCodeText: z.ZodNativeEnum<typeof import("./payout.types").PAYOUT_STATUS>;
83
+ statusCodeText: z.ZodNativeEnum<typeof import("./payout.types.js").PAYOUT_STATUS>;
84
84
  statusDescription: z.ZodString;
85
85
  countryCode: z.ZodString;
86
- serviceCode: z.ZodUnion<[z.ZodNativeEnum<typeof import("./payout.types").MOBILE_PAYOUT_CHANNEL>, z.ZodNativeEnum<typeof import("./payout.types").BANK_PAYOUT_CHANNEL>]>;
86
+ serviceCode: z.ZodUnion<[z.ZodNativeEnum<typeof import("./payout.types.js").MOBILE_PAYOUT_CHANNEL>, z.ZodNativeEnum<typeof import("./payout.types.js").BANK_PAYOUT_CHANNEL>]>;
87
87
  amount: z.ZodNumber;
88
88
  serviceFee: z.ZodOptional<z.ZodString>;
89
89
  postedAmount: z.ZodOptional<z.ZodString>;
@@ -116,10 +116,10 @@ export declare const payoutContract: {
116
116
  amount: number;
117
117
  transactionId: string;
118
118
  currencyCode: string;
119
- statusCodeText: import("./payout.types").PAYOUT_STATUS;
119
+ statusCodeText: import("./payout.types.js").PAYOUT_STATUS;
120
120
  statusDescription: string;
121
121
  countryCode: string;
122
- serviceCode: import("./payout.types").MOBILE_PAYOUT_CHANNEL | import("./payout.types").BANK_PAYOUT_CHANNEL;
122
+ serviceCode: import("./payout.types.js").MOBILE_PAYOUT_CHANNEL | import("./payout.types.js").BANK_PAYOUT_CHANNEL;
123
123
  transactionRef: string;
124
124
  walletId?: string | undefined;
125
125
  serviceFee?: string | undefined;
@@ -145,10 +145,10 @@ export declare const payoutContract: {
145
145
  amount: number;
146
146
  transactionId: string;
147
147
  currencyCode: string;
148
- statusCodeText: import("./payout.types").PAYOUT_STATUS;
148
+ statusCodeText: import("./payout.types.js").PAYOUT_STATUS;
149
149
  statusDescription: string;
150
150
  countryCode: string;
151
- serviceCode: import("./payout.types").MOBILE_PAYOUT_CHANNEL | import("./payout.types").BANK_PAYOUT_CHANNEL;
151
+ serviceCode: import("./payout.types.js").MOBILE_PAYOUT_CHANNEL | import("./payout.types.js").BANK_PAYOUT_CHANNEL;
152
152
  transactionRef: string;
153
153
  walletId?: string | undefined;
154
154
  serviceFee?: string | undefined;
@@ -178,10 +178,10 @@ export declare const payoutContract: {
178
178
  amount: number;
179
179
  transactionId: string;
180
180
  currencyCode: string;
181
- statusCodeText: import("./payout.types").PAYOUT_STATUS;
181
+ statusCodeText: import("./payout.types.js").PAYOUT_STATUS;
182
182
  statusDescription: string;
183
183
  countryCode: string;
184
- serviceCode: import("./payout.types").MOBILE_PAYOUT_CHANNEL | import("./payout.types").BANK_PAYOUT_CHANNEL;
184
+ serviceCode: import("./payout.types.js").MOBILE_PAYOUT_CHANNEL | import("./payout.types.js").BANK_PAYOUT_CHANNEL;
185
185
  transactionRef: string;
186
186
  walletId?: string | undefined;
187
187
  serviceFee?: string | undefined;
@@ -210,10 +210,10 @@ export declare const payoutContract: {
210
210
  amount: number;
211
211
  transactionId: string;
212
212
  currencyCode: string;
213
- statusCodeText: import("./payout.types").PAYOUT_STATUS;
213
+ statusCodeText: import("./payout.types.js").PAYOUT_STATUS;
214
214
  statusDescription: string;
215
215
  countryCode: string;
216
- serviceCode: import("./payout.types").MOBILE_PAYOUT_CHANNEL | import("./payout.types").BANK_PAYOUT_CHANNEL;
216
+ serviceCode: import("./payout.types.js").MOBILE_PAYOUT_CHANNEL | import("./payout.types.js").BANK_PAYOUT_CHANNEL;
217
217
  transactionRef: string;
218
218
  walletId?: string | undefined;
219
219
  serviceFee?: string | undefined;
@@ -309,10 +309,10 @@ export declare const payoutContract: {
309
309
  200: z.ZodObject<{
310
310
  id: z.ZodString;
311
311
  statusCode: z.ZodString;
312
- statusCodeText: z.ZodNativeEnum<typeof import("./payout.types").PAYOUT_STATUS>;
312
+ statusCodeText: z.ZodNativeEnum<typeof import("./payout.types.js").PAYOUT_STATUS>;
313
313
  statusDescription: z.ZodString;
314
314
  countryCode: z.ZodString;
315
- serviceCode: z.ZodUnion<[z.ZodNativeEnum<typeof import("./payout.types").MOBILE_PAYOUT_CHANNEL>, z.ZodNativeEnum<typeof import("./payout.types").BANK_PAYOUT_CHANNEL>]>;
315
+ serviceCode: z.ZodUnion<[z.ZodNativeEnum<typeof import("./payout.types.js").MOBILE_PAYOUT_CHANNEL>, z.ZodNativeEnum<typeof import("./payout.types.js").BANK_PAYOUT_CHANNEL>]>;
316
316
  amount: z.ZodNumber;
317
317
  serviceFee: z.ZodOptional<z.ZodString>;
318
318
  postedAmount: z.ZodOptional<z.ZodString>;
@@ -345,10 +345,10 @@ export declare const payoutContract: {
345
345
  amount: number;
346
346
  transactionId: string;
347
347
  currencyCode: string;
348
- statusCodeText: import("./payout.types").PAYOUT_STATUS;
348
+ statusCodeText: import("./payout.types.js").PAYOUT_STATUS;
349
349
  statusDescription: string;
350
350
  countryCode: string;
351
- serviceCode: import("./payout.types").MOBILE_PAYOUT_CHANNEL | import("./payout.types").BANK_PAYOUT_CHANNEL;
351
+ serviceCode: import("./payout.types.js").MOBILE_PAYOUT_CHANNEL | import("./payout.types.js").BANK_PAYOUT_CHANNEL;
352
352
  transactionRef: string;
353
353
  walletId?: string | undefined;
354
354
  serviceFee?: string | undefined;
@@ -374,10 +374,10 @@ export declare const payoutContract: {
374
374
  amount: number;
375
375
  transactionId: string;
376
376
  currencyCode: string;
377
- statusCodeText: import("./payout.types").PAYOUT_STATUS;
377
+ statusCodeText: import("./payout.types.js").PAYOUT_STATUS;
378
378
  statusDescription: string;
379
379
  countryCode: string;
380
- serviceCode: import("./payout.types").MOBILE_PAYOUT_CHANNEL | import("./payout.types").BANK_PAYOUT_CHANNEL;
380
+ serviceCode: import("./payout.types.js").MOBILE_PAYOUT_CHANNEL | import("./payout.types.js").BANK_PAYOUT_CHANNEL;
381
381
  transactionRef: string;
382
382
  walletId?: string | undefined;
383
383
  serviceFee?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  import { Amount, AmountJson, Bank } from "@temboplus/frontend-core";
2
- import { PAYOUT_CHANNEL, PAYOUT_STATUS } from "./payout.types";
3
- import { MobileChannelInfo } from "../../lib/types";
2
+ import { PAYOUT_CHANNEL, PAYOUT_STATUS } from "./payout.types.js";
3
+ import { MobileChannelInfo } from "../../lib/types.js";
4
4
  export interface PayoutStatusInfo {
5
5
  label: string;
6
6
  description: string;
@@ -1,5 +1,5 @@
1
- import { QueryBuilder } from "../../lib/query";
2
- import { PAYOUT_STATUS, PAYOUT_CHANNEL, PayoutFilters } from "./payout.types";
1
+ import { QueryBuilder } from "../../lib/query/index.js";
2
+ import { PAYOUT_STATUS, PAYOUT_CHANNEL, PayoutFilters } from "./payout.types.js";
3
3
  type PayoutUrlParams = Record<string, string | string[]>;
4
4
  /**
5
5
  * Payout-specific query builder that extends the base QueryBuilder
@@ -1,9 +1,9 @@
1
- import { BaseRepository, PaginationDTO } from "../../lib/api";
2
- import { payoutContract } from "./payout.api-contract";
3
- import { Payout } from "./payout.model";
4
- import { PayoutQuery } from "./payout.query";
5
- import { PayoutFilters } from "./payout.types";
6
- import { TransactionSummary } from "../../lib/models";
1
+ import { BaseRepository, PaginationDTO } from "../../lib/api/index.js";
2
+ import { payoutContract } from "./payout.api-contract.js";
3
+ import { Payout } from "./payout.model.js";
4
+ import { PayoutQuery } from "./payout.query.js";
5
+ import { PayoutFilters } from "./payout.types.js";
6
+ import { TransactionSummary } from "../../lib/models/index.js";
7
7
  /**
8
8
  * Flexible query input type - supports the class, filters interface, URL params, etc.
9
9
  */
@@ -1,3 +1,3 @@
1
- export * from "./transaction.api-contract";
2
- export * from "./transaction.repository";
3
- export * from "./transaction.types";
1
+ export * from "./transaction.api-contract.js";
2
+ export * from "./transaction.repository.js";
3
+ export * from "./transaction.types.js";
@@ -1,6 +1,6 @@
1
- import { BaseRepository } from "../../lib/api";
2
- import { transactionContract } from "./transaction.api-contract";
3
- import { LocalTransferRequestDTO, LocalTransferResponseDTO } from "./transaction.types";
1
+ import { BaseRepository } from "../../lib/api/index.js";
2
+ import { transactionContract } from "./transaction.api-contract.js";
3
+ import { LocalTransferRequestDTO, LocalTransferResponseDTO } from "./transaction.types.js";
4
4
  export declare class TransactionRepository extends BaseRepository<typeof transactionContract> {
5
5
  constructor(options?: {
6
6
  token?: string;
@@ -1,4 +1,4 @@
1
- export * from "./wallet.api-contract";
2
- export * from "./wallet.model";
3
- export * from "./wallet.repository";
4
- export * from "./wallet.types";
1
+ export * from "./wallet.api-contract.js";
2
+ export * from "./wallet.model.js";
3
+ export * from "./wallet.repository.js";
4
+ export * from "./wallet.types.js";
@@ -1,7 +1,7 @@
1
- import { BaseRepository } from "../../lib/api";
2
- import { StatementEntry, WalletInfo } from "../../lib/models";
3
- import { Wallet } from "./wallet.model";
4
- import { walletContract } from "./wallet.api-contract";
1
+ import { BaseRepository } from "../../lib/api/index.js";
2
+ import { StatementEntry, WalletInfo } from "../../lib/models/index.js";
3
+ import { Wallet } from "./wallet.model.js";
4
+ import { walletContract } from "./wallet.api-contract.js";
5
5
  export interface WalletStatementInput {
6
6
  accountNo: string;
7
7
  startDate: Date | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temboplus/tembo-dashboard",
3
- "version": "0.1.3-beta.5",
3
+ "version": "0.2.0",
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",
@@ -58,6 +58,6 @@
58
58
  "typescript": "^5.8.3"
59
59
  },
60
60
  "dependencies": {
61
- "@temboplus/frontend-core": "^0.4.0"
61
+ "@temboplus/frontend-core": "^1.0.2"
62
62
  }
63
63
  }