@temboplus/afloat 0.1.72 → 0.1.74-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.
Files changed (58) hide show
  1. package/dist/features/admin/admin.contract.d.ts +53 -53
  2. package/dist/features/admin/admin.repository.d.ts +5 -5
  3. package/dist/features/admin/index.d.ts +2 -2
  4. package/dist/features/auth/access/access.repository.d.ts +2 -2
  5. package/dist/features/auth/auth.manager.d.ts +2 -2
  6. package/dist/features/auth/auth.repository.d.ts +3 -3
  7. package/dist/features/auth/auth.store.d.ts +1 -1
  8. package/dist/features/auth/identity/identity.repository.d.ts +2 -2
  9. package/dist/features/auth/index.d.ts +5 -5
  10. package/dist/features/auth/profile/profile.repository.d.ts +3 -3
  11. package/dist/features/auth/storage/client-store.d.ts +2 -2
  12. package/dist/features/auth/storage/client-token-handler.d.ts +1 -1
  13. package/dist/features/contact/contact-input-handler.d.ts +2 -2
  14. package/dist/features/contact/contact.api-contract.d.ts +38 -43
  15. package/dist/features/contact/contact.dtos.d.ts +6 -6
  16. package/dist/features/contact/contact.repository.d.ts +4 -4
  17. package/dist/features/contact/index.d.ts +2 -2
  18. package/dist/features/payout/index.d.ts +3 -3
  19. package/dist/features/payout/payout-channel-handler.d.ts +3 -3
  20. package/dist/features/payout/payout.api-contract.d.ts +91 -112
  21. package/dist/features/payout/payout.dtos.d.ts +247 -13
  22. package/dist/features/payout/payout.query.d.ts +126 -0
  23. package/dist/features/payout/payout.repository.d.ts +45 -53
  24. package/dist/features/wallet/index.d.ts +4 -4
  25. package/dist/features/wallet/wallet-manager.session.d.ts +2 -2
  26. package/dist/features/wallet/wallet.contract.d.ts +9 -9
  27. package/dist/features/wallet/wallet.dtos.d.ts +14 -14
  28. package/dist/features/wallet/wallet.repository.d.ts +5 -5
  29. package/dist/features/wallet/wallet.utils.d.ts +1 -1
  30. package/dist/index.cjs.js +2 -0
  31. package/dist/index.cjs.js.map +1 -0
  32. package/dist/index.d.ts +7 -7
  33. package/dist/index.esm.js +2 -0
  34. package/dist/index.esm.js.map +1 -0
  35. package/dist/lib/api/common-schemas.d.ts +49 -0
  36. package/dist/lib/api/index.d.ts +2 -2
  37. package/dist/lib/error/error.permission.d.ts +1 -1
  38. package/dist/lib/error/index.d.ts +3 -3
  39. package/dist/lib/query/index.d.ts +2 -0
  40. package/dist/lib/query/query.builder.d.ts +71 -0
  41. package/dist/lib/query/query.types.d.ts +36 -0
  42. package/dist/models/contact-info.model.d.ts +2 -2
  43. package/dist/models/contact.model.d.ts +2 -2
  44. package/dist/models/index.d.ts +11 -11
  45. package/dist/models/managed-user.model.d.ts +2 -2
  46. package/dist/models/narration.model.d.ts +1 -1
  47. package/dist/models/payout.model.d.ts +2 -2
  48. package/dist/models/profile.model.d.ts +1 -1
  49. package/dist/models/role.model.d.ts +1 -1
  50. package/dist/models/statement-entry.model.d.ts +2 -2
  51. package/dist/models/user.model.d.ts +1 -1
  52. package/dist/models/wallet.model.d.ts +1 -1
  53. package/package.json +12 -8
  54. package/dist/index.cjs +0 -2
  55. package/dist/index.cjs.map +0 -1
  56. package/dist/index.js +0 -2
  57. package/dist/index.js.map +0 -1
  58. package/dist/lib/api/common-responses.d.ts +0 -12
@@ -15,21 +15,20 @@ export declare const contract: {
15
15
  displayName: z.ZodString;
16
16
  accountNo: z.ZodString;
17
17
  channel: z.ZodString;
18
- type: z.ZodNativeEnum<typeof import("./contact.dtos").ContactType>;
18
+ type: z.ZodNativeEnum<typeof import("./contact.dtos.js").ContactType>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- type: import("./contact.dtos").ContactType;
20
+ type: import("./contact.dtos.js").ContactType;
21
21
  displayName: string;
22
22
  accountNo: string;
23
23
  channel: string;
24
24
  }, {
25
- type: import("./contact.dtos").ContactType;
25
+ type: import("./contact.dtos.js").ContactType;
26
26
  displayName: string;
27
27
  accountNo: string;
28
28
  channel: string;
29
29
  }>;
30
30
  path: "/";
31
31
  responses: {
32
- [x: number]: import("@ts-rest/core").AppRouteResponse;
33
32
  201: z.ZodObject<{
34
33
  id: z.ZodString;
35
34
  profileId: z.ZodString;
@@ -39,25 +38,25 @@ export declare const contract: {
39
38
  displayName: z.ZodString;
40
39
  accountNo: z.ZodString;
41
40
  channel: z.ZodString;
42
- type: z.ZodNativeEnum<typeof import("./contact.dtos").ContactType>;
41
+ type: z.ZodNativeEnum<typeof import("./contact.dtos.js").ContactType>;
43
42
  }, "strip", z.ZodTypeAny, {
44
- type: import("./contact.dtos").ContactType;
43
+ type: import("./contact.dtos.js").ContactType;
45
44
  id: string;
46
- displayName: string;
47
- accountNo: string;
48
- channel: string;
49
45
  profileId: string;
50
46
  createdAt: string;
51
47
  updatedAt: string;
52
- }, {
53
- type: import("./contact.dtos").ContactType;
54
- id: string;
55
48
  displayName: string;
56
49
  accountNo: string;
57
50
  channel: string;
51
+ }, {
52
+ type: import("./contact.dtos.js").ContactType;
53
+ id: string;
58
54
  profileId: string;
59
55
  createdAt: string;
60
56
  updatedAt: string;
57
+ displayName: string;
58
+ accountNo: string;
59
+ channel: string;
61
60
  }>;
62
61
  };
63
62
  };
@@ -67,21 +66,20 @@ export declare const contract: {
67
66
  displayName: z.ZodString;
68
67
  accountNo: z.ZodString;
69
68
  channel: z.ZodString;
70
- type: z.ZodNativeEnum<typeof import("./contact.dtos").ContactType>;
69
+ type: z.ZodNativeEnum<typeof import("./contact.dtos.js").ContactType>;
71
70
  }, "strip", z.ZodTypeAny, {
72
- type: import("./contact.dtos").ContactType;
71
+ type: import("./contact.dtos.js").ContactType;
73
72
  displayName: string;
74
73
  accountNo: string;
75
74
  channel: string;
76
75
  }, {
77
- type: import("./contact.dtos").ContactType;
76
+ type: import("./contact.dtos.js").ContactType;
78
77
  displayName: string;
79
78
  accountNo: string;
80
79
  channel: string;
81
80
  }>;
82
81
  path: "/:id";
83
82
  responses: {
84
- [x: number]: import("@ts-rest/core").AppRouteResponse;
85
83
  200: z.ZodObject<{
86
84
  id: z.ZodString;
87
85
  profileId: z.ZodString;
@@ -91,25 +89,25 @@ export declare const contract: {
91
89
  displayName: z.ZodString;
92
90
  accountNo: z.ZodString;
93
91
  channel: z.ZodString;
94
- type: z.ZodNativeEnum<typeof import("./contact.dtos").ContactType>;
92
+ type: z.ZodNativeEnum<typeof import("./contact.dtos.js").ContactType>;
95
93
  }, "strip", z.ZodTypeAny, {
96
- type: import("./contact.dtos").ContactType;
94
+ type: import("./contact.dtos.js").ContactType;
97
95
  id: string;
98
- displayName: string;
99
- accountNo: string;
100
- channel: string;
101
96
  profileId: string;
102
97
  createdAt: string;
103
98
  updatedAt: string;
104
- }, {
105
- type: import("./contact.dtos").ContactType;
106
- id: string;
107
99
  displayName: string;
108
100
  accountNo: string;
109
101
  channel: string;
102
+ }, {
103
+ type: import("./contact.dtos.js").ContactType;
104
+ id: string;
110
105
  profileId: string;
111
106
  createdAt: string;
112
107
  updatedAt: string;
108
+ displayName: string;
109
+ accountNo: string;
110
+ channel: string;
113
111
  }>;
114
112
  };
115
113
  };
@@ -124,7 +122,6 @@ export declare const contract: {
124
122
  method: "GET";
125
123
  path: "/";
126
124
  responses: {
127
- [x: number]: import("@ts-rest/core").AppRouteResponse;
128
125
  200: z.ZodArray<z.ZodObject<{
129
126
  id: z.ZodString;
130
127
  profileId: z.ZodString;
@@ -134,25 +131,25 @@ export declare const contract: {
134
131
  displayName: z.ZodString;
135
132
  accountNo: z.ZodString;
136
133
  channel: z.ZodString;
137
- type: z.ZodNativeEnum<typeof import("./contact.dtos").ContactType>;
134
+ type: z.ZodNativeEnum<typeof import("./contact.dtos.js").ContactType>;
138
135
  }, "strip", z.ZodTypeAny, {
139
- type: import("./contact.dtos").ContactType;
136
+ type: import("./contact.dtos.js").ContactType;
140
137
  id: string;
141
- displayName: string;
142
- accountNo: string;
143
- channel: string;
144
138
  profileId: string;
145
139
  createdAt: string;
146
140
  updatedAt: string;
147
- }, {
148
- type: import("./contact.dtos").ContactType;
149
- id: string;
150
141
  displayName: string;
151
142
  accountNo: string;
152
143
  channel: string;
144
+ }, {
145
+ type: import("./contact.dtos.js").ContactType;
146
+ id: string;
153
147
  profileId: string;
154
148
  createdAt: string;
155
149
  updatedAt: string;
150
+ displayName: string;
151
+ accountNo: string;
152
+ channel: string;
156
153
  }>, "many">;
157
154
  };
158
155
  };
@@ -160,7 +157,6 @@ export declare const contract: {
160
157
  method: "GET";
161
158
  path: "/:id";
162
159
  responses: {
163
- [x: number]: import("@ts-rest/core").AppRouteResponse;
164
160
  200: z.ZodObject<{
165
161
  id: z.ZodString;
166
162
  profileId: z.ZodString;
@@ -170,25 +166,25 @@ export declare const contract: {
170
166
  displayName: z.ZodString;
171
167
  accountNo: z.ZodString;
172
168
  channel: z.ZodString;
173
- type: z.ZodNativeEnum<typeof import("./contact.dtos").ContactType>;
169
+ type: z.ZodNativeEnum<typeof import("./contact.dtos.js").ContactType>;
174
170
  }, "strip", z.ZodTypeAny, {
175
- type: import("./contact.dtos").ContactType;
171
+ type: import("./contact.dtos.js").ContactType;
176
172
  id: string;
177
- displayName: string;
178
- accountNo: string;
179
- channel: string;
180
173
  profileId: string;
181
174
  createdAt: string;
182
175
  updatedAt: string;
183
- }, {
184
- type: import("./contact.dtos").ContactType;
185
- id: string;
186
176
  displayName: string;
187
177
  accountNo: string;
188
178
  channel: string;
179
+ }, {
180
+ type: import("./contact.dtos.js").ContactType;
181
+ id: string;
189
182
  profileId: string;
190
183
  createdAt: string;
191
184
  updatedAt: string;
185
+ displayName: string;
186
+ accountNo: string;
187
+ channel: string;
192
188
  }>;
193
189
  };
194
190
  };
@@ -197,7 +193,6 @@ export declare const contract: {
197
193
  body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
198
194
  path: "/:id";
199
195
  responses: {
200
- [x: number]: import("@ts-rest/core").AppRouteResponse;
201
196
  200: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
202
197
  };
203
198
  };
@@ -46,21 +46,21 @@ export declare const ContactDTOSchemas: {
46
46
  }, "strip", z.ZodTypeAny, {
47
47
  type: ContactType;
48
48
  id: string;
49
- displayName: string;
50
- accountNo: string;
51
- channel: string;
52
49
  profileId: string;
53
50
  createdAt: string;
54
51
  updatedAt: string;
55
- }, {
56
- type: ContactType;
57
- id: string;
58
52
  displayName: string;
59
53
  accountNo: string;
60
54
  channel: string;
55
+ }, {
56
+ type: ContactType;
57
+ id: string;
61
58
  profileId: string;
62
59
  createdAt: string;
63
60
  updatedAt: string;
61
+ displayName: string;
62
+ accountNo: string;
63
+ channel: string;
64
64
  }>;
65
65
  /** Schema for contact input validation */
66
66
  contactInputDTO: z.ZodObject<{
@@ -1,7 +1,7 @@
1
- import { BaseRepository } from "../../lib/api/base-repository";
2
- import { contract } from "./contact.api-contract";
3
- import { Contact } from "../../models/contact.model";
4
- import { ContactInfo } from "@/models";
1
+ import { BaseRepository } from "@/lib/api/base-repository.js";
2
+ import { ContactInfo } from "@/models/contact-info.model.js";
3
+ import { Contact } from "@/models/contact.model.js";
4
+ import { contract } from "./contact.api-contract.js";
5
5
  /**
6
6
  * Repository class for managing Contact data through API interactions.
7
7
  * Handles contact creation, updates, deletion, and retrieval operations.
@@ -1,2 +1,2 @@
1
- export * from "./contact.repository";
2
- export * from "./contact.dtos";
1
+ export * from "./contact.repository.js";
2
+ export * from "./contact.dtos.js";
@@ -1,3 +1,3 @@
1
- export * from "./payout.repository";
2
- export * from "./payout.dtos";
3
- export * from "./payout-channel-handler";
1
+ export * from "./payout.repository.js";
2
+ export * from "./payout.dtos.js";
3
+ export * from "./payout-channel-handler.js";
@@ -1,7 +1,7 @@
1
+ import { ContactInfo, BankContactInfo } from "@/models/contact-info.model.js";
2
+ import { Wallet } from "@/models/wallet.model.js";
1
3
  import { Amount, MNOId, PhoneNumber } from "@temboplus/frontend-core";
2
- import { PayoutChannel, PayoutInputDTO } from "./payout.dtos";
3
- import { ContactInfo, BankContactInfo } from "../../models/contact-info.model";
4
- import { Wallet } from "@/models/wallet.model";
4
+ import { PayoutChannel, PayoutInputDTO } from "./payout.dtos.js";
5
5
  /**
6
6
  * Valid payout channel codes that can be used in the system
7
7
  *