@temboplus/afloat 0.2.1-beta.9 → 0.2.1

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 (125) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +54 -207
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.d.ts +5 -4
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.esm.js +1 -1
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/lib/api/base-repository.d.ts +2 -2
  10. package/dist/lib/api/base-repository.d.ts.map +1 -0
  11. package/dist/lib/api/index.d.ts +1 -0
  12. package/dist/lib/api/index.d.ts.map +1 -0
  13. package/dist/lib/error/error.api.d.ts +3 -2
  14. package/dist/lib/error/error.api.d.ts.map +1 -0
  15. package/dist/lib/error/error.permission.d.ts +2 -1
  16. package/dist/lib/error/error.permission.d.ts.map +1 -0
  17. package/dist/lib/error/error.utils.d.ts +1 -0
  18. package/dist/lib/error/error.utils.d.ts.map +1 -0
  19. package/dist/lib/error/index.d.ts +1 -0
  20. package/dist/lib/error/index.d.ts.map +1 -0
  21. package/dist/lib/query/index.d.ts +3 -2
  22. package/dist/lib/query/index.d.ts.map +1 -0
  23. package/dist/lib/query/pagination/pagination.d.ts +1 -0
  24. package/dist/lib/query/pagination/pagination.d.ts.map +1 -0
  25. package/dist/lib/query/pagination/pagination.schemas.d.ts +8 -61
  26. package/dist/lib/query/pagination/pagination.schemas.d.ts.map +1 -0
  27. package/dist/lib/query/query.builder.d.ts +10 -3
  28. package/dist/lib/query/query.builder.d.ts.map +1 -0
  29. package/dist/lib/query/query.types.d.ts +1 -0
  30. package/dist/lib/query/query.types.d.ts.map +1 -0
  31. package/dist/modules/auth/auth.contract.d.ts +10 -69
  32. package/dist/modules/auth/auth.contract.d.ts.map +1 -0
  33. package/dist/modules/auth/auth.dtos.d.ts +8 -67
  34. package/dist/modules/auth/auth.dtos.d.ts.map +1 -0
  35. package/dist/modules/auth/auth.repository.d.ts +1 -0
  36. package/dist/modules/auth/auth.repository.d.ts.map +1 -0
  37. package/dist/modules/auth/company-membership.model.d.ts +7 -86
  38. package/dist/modules/auth/company-membership.model.d.ts.map +1 -0
  39. package/dist/modules/auth/index.d.ts +3 -2
  40. package/dist/modules/auth/index.d.ts.map +1 -0
  41. package/dist/modules/auth/user.model.d.ts +26 -163
  42. package/dist/modules/auth/user.model.d.ts.map +1 -0
  43. package/dist/modules/beneficiary/beneficiary-info.model.d.ts +30 -67
  44. package/dist/modules/beneficiary/beneficiary-info.model.d.ts.map +1 -0
  45. package/dist/modules/beneficiary/beneficiary-input-handler.d.ts +3 -2
  46. package/dist/modules/beneficiary/beneficiary-input-handler.d.ts.map +1 -0
  47. package/dist/modules/beneficiary/beneficiary.api-contract.d.ts +16 -115
  48. package/dist/modules/beneficiary/beneficiary.api-contract.d.ts.map +1 -0
  49. package/dist/modules/beneficiary/beneficiary.dtos.d.ts +6 -34
  50. package/dist/modules/beneficiary/beneficiary.dtos.d.ts.map +1 -0
  51. package/dist/modules/beneficiary/beneficiary.model.d.ts +5 -27
  52. package/dist/modules/beneficiary/beneficiary.model.d.ts.map +1 -0
  53. package/dist/modules/beneficiary/beneficiary.repository.d.ts +2 -1
  54. package/dist/modules/beneficiary/beneficiary.repository.d.ts.map +1 -0
  55. package/dist/modules/beneficiary/index.d.ts +5 -4
  56. package/dist/modules/beneficiary/index.d.ts.map +1 -0
  57. package/dist/modules/login/index.d.ts +1 -0
  58. package/dist/modules/login/index.d.ts.map +1 -0
  59. package/dist/modules/login/login.api-contract.d.ts +3 -28
  60. package/dist/modules/login/login.api-contract.d.ts.map +1 -0
  61. package/dist/modules/login/login.dtos.d.ts +5 -56
  62. package/dist/modules/login/login.dtos.d.ts.map +1 -0
  63. package/dist/modules/login/login.model.d.ts +7 -34
  64. package/dist/modules/login/login.model.d.ts.map +1 -0
  65. package/dist/modules/login/login.repository.d.ts +2 -1
  66. package/dist/modules/login/login.repository.d.ts.map +1 -0
  67. package/dist/modules/login/permission.type.d.ts +1 -0
  68. package/dist/modules/login/permission.type.d.ts.map +1 -0
  69. package/dist/modules/payout/index.d.ts +3 -2
  70. package/dist/modules/payout/index.d.ts.map +1 -0
  71. package/dist/modules/payout/payout-channel-handler.d.ts +5 -4
  72. package/dist/modules/payout/payout-channel-handler.d.ts.map +1 -0
  73. package/dist/modules/payout/payout.api-contract.d.ts +78 -666
  74. package/dist/modules/payout/payout.api-contract.d.ts.map +1 -0
  75. package/dist/modules/payout/payout.dtos.d.ts +99 -506
  76. package/dist/modules/payout/payout.dtos.d.ts.map +1 -0
  77. package/dist/modules/payout/payout.model.d.ts +8 -85
  78. package/dist/modules/payout/payout.model.d.ts.map +1 -0
  79. package/dist/modules/payout/payout.query.d.ts +3 -2
  80. package/dist/modules/payout/payout.query.d.ts.map +1 -0
  81. package/dist/modules/payout/payout.repository.d.ts +7 -6
  82. package/dist/modules/payout/payout.repository.d.ts.map +1 -0
  83. package/dist/modules/profile/index.d.ts +1 -0
  84. package/dist/modules/profile/index.d.ts.map +1 -0
  85. package/dist/modules/profile/profile.api-contract.d.ts +2 -19
  86. package/dist/modules/profile/profile.api-contract.d.ts.map +1 -0
  87. package/dist/modules/profile/profile.dtos.d.ts +3 -38
  88. package/dist/modules/profile/profile.dtos.d.ts.map +1 -0
  89. package/dist/modules/profile/profile.model.d.ts +5 -42
  90. package/dist/modules/profile/profile.model.d.ts.map +1 -0
  91. package/dist/modules/profile/profile.repository.d.ts +1 -0
  92. package/dist/modules/profile/profile.repository.d.ts.map +1 -0
  93. package/dist/modules/team-member/index.d.ts +3 -2
  94. package/dist/modules/team-member/index.d.ts.map +1 -0
  95. package/dist/modules/team-member/role.model.d.ts +6 -21
  96. package/dist/modules/team-member/role.model.d.ts.map +1 -0
  97. package/dist/modules/team-member/team-member.contract.d.ts +74 -615
  98. package/dist/modules/team-member/team-member.contract.d.ts.map +1 -0
  99. package/dist/modules/team-member/team-member.dtos.d.ts +15 -162
  100. package/dist/modules/team-member/team-member.dtos.d.ts.map +1 -0
  101. package/dist/modules/team-member/team-member.model.d.ts +7 -66
  102. package/dist/modules/team-member/team-member.model.d.ts.map +1 -0
  103. package/dist/modules/team-member/team-member.repository.d.ts +3 -2
  104. package/dist/modules/team-member/team-member.repository.d.ts.map +1 -0
  105. package/dist/modules/wallet/index.d.ts +4 -2
  106. package/dist/modules/wallet/index.d.ts.map +1 -0
  107. package/dist/modules/wallet/narration.model.d.ts +3 -8
  108. package/dist/modules/wallet/narration.model.d.ts.map +1 -0
  109. package/dist/modules/wallet/statement-entry.model.d.ts +14 -131
  110. package/dist/modules/wallet/statement-entry.model.d.ts.map +1 -0
  111. package/dist/modules/wallet/wallet.contract.d.ts +17 -90
  112. package/dist/modules/wallet/wallet.contract.d.ts.map +1 -0
  113. package/dist/modules/wallet/wallet.dtos.d.ts +33 -138
  114. package/dist/modules/wallet/wallet.dtos.d.ts.map +1 -0
  115. package/dist/modules/wallet/wallet.model.d.ts +5 -26
  116. package/dist/modules/wallet/wallet.model.d.ts.map +1 -0
  117. package/dist/modules/wallet/wallet.query.d.ts +2 -1
  118. package/dist/modules/wallet/wallet.query.d.ts.map +1 -0
  119. package/dist/modules/wallet/wallet.repository.d.ts +49 -25
  120. package/dist/modules/wallet/wallet.repository.d.ts.map +1 -0
  121. package/dist/modules/wallet/wallet.timezone.d.ts +87 -0
  122. package/dist/modules/wallet/wallet.timezone.d.ts.map +1 -0
  123. package/dist/modules/wallet/wallet.utils.d.ts +3 -2
  124. package/dist/modules/wallet/wallet.utils.d.ts.map +1 -0
  125. package/package.json +40 -29
@@ -14,187 +14,44 @@ export declare const DEFAULT_ORDER_BY_DESC = "createdAt";
14
14
  */
15
15
  export declare const contract: {
16
16
  getPayouts: {
17
- query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
17
+ query: z.ZodObject<{}, z.core.$strip>;
18
18
  method: "GET";
19
19
  path: "";
20
20
  responses: {
21
21
  200: z.ZodObject<{
22
22
  results: z.ZodArray<z.ZodObject<{
23
23
  msisdn: z.ZodString;
24
- amount: z.ZodNumber;
24
+ amount: z.ZodCoercedNumber<unknown>;
25
25
  description: z.ZodString;
26
26
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- } & {
28
27
  id: z.ZodString;
29
28
  profileId: z.ZodString;
30
29
  payeeName: z.ZodString;
31
- countryCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").ISO2CountryCode, string | undefined>;
32
- currencyCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").CurrencyCode, string | undefined>;
30
+ countryCode: z.ZodDefault<z.ZodString> & z.ZodType<import("@temboplus/frontend-core").ISO2CountryCode, string | undefined, z.core.$ZodTypeInternals<import("@temboplus/frontend-core").ISO2CountryCode, string | undefined>>;
31
+ currencyCode: z.ZodDefault<z.ZodString> & z.ZodType<import("@temboplus/frontend-core").CurrencyCode, string | undefined, z.core.$ZodTypeInternals<import("@temboplus/frontend-core").CurrencyCode, string | undefined>>;
33
32
  channel: z.ZodString;
34
- status: z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutStatus>;
33
+ status: z.ZodEnum<typeof import("./payout.dtos.js").PayoutStatus>;
35
34
  statusMessage: z.ZodString;
36
35
  partnerReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
- createdAt: z.ZodDate;
38
- updatedAt: z.ZodDate;
39
- actionedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
40
- approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
36
+ createdAt: z.ZodCoercedDate<unknown>;
37
+ updatedAt: z.ZodCoercedDate<unknown>;
38
+ actionedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
39
+ approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
41
40
  createdById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
41
  actionedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
42
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
43
  id: z.ZodString;
45
44
  name: z.ZodString;
46
45
  identity: z.ZodString;
47
- }, "strip", z.ZodTypeAny, {
48
- name: string;
49
- id: string;
50
- identity: string;
51
- }, {
52
- name: string;
53
- id: string;
54
- identity: string;
55
- }>>>;
46
+ }, z.core.$strip>>>;
56
47
  actionedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
48
  id: z.ZodString;
58
49
  name: z.ZodString;
59
50
  identity: z.ZodString;
60
- }, "strip", z.ZodTypeAny, {
61
- name: string;
62
- id: string;
63
- identity: string;
64
- }, {
65
- name: string;
66
- id: string;
67
- identity: string;
68
- }>>>;
69
- }, "strip", z.ZodTypeAny, {
70
- status: import("./payout.dtos.js").PayoutStatus;
71
- createdAt: Date;
72
- id: string;
73
- profileId: string;
74
- updatedAt: Date;
75
- description: string;
76
- channel: string;
77
- msisdn: string;
78
- amount: number;
79
- payeeName: string;
80
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
81
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
82
- statusMessage: string;
83
- notes?: string | null | undefined;
84
- partnerReference?: string | null | undefined;
85
- actionedAt?: Date | null | undefined;
86
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
87
- createdById?: string | null | undefined;
88
- actionedById?: string | null | undefined;
89
- createdBy?: {
90
- name: string;
91
- id: string;
92
- identity: string;
93
- } | null | undefined;
94
- actionedBy?: {
95
- name: string;
96
- id: string;
97
- identity: string;
98
- } | null | undefined;
99
- }, {
100
- status: import("./payout.dtos.js").PayoutStatus;
101
- createdAt: Date;
102
- id: string;
103
- profileId: string;
104
- updatedAt: Date;
105
- description: string;
106
- channel: string;
107
- msisdn: string;
108
- amount: number;
109
- payeeName: string;
110
- statusMessage: string;
111
- notes?: string | null | undefined;
112
- countryCode?: string | undefined;
113
- currencyCode?: string | undefined;
114
- partnerReference?: string | null | undefined;
115
- actionedAt?: Date | null | undefined;
116
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
117
- createdById?: string | null | undefined;
118
- actionedById?: string | null | undefined;
119
- createdBy?: {
120
- name: string;
121
- id: string;
122
- identity: string;
123
- } | null | undefined;
124
- actionedBy?: {
125
- name: string;
126
- id: string;
127
- identity: string;
128
- } | null | undefined;
129
- }>, "many">;
51
+ }, z.core.$strip>>>;
52
+ }, z.core.$strip>>;
130
53
  total: z.ZodNumber;
131
- }, "strip", z.ZodTypeAny, {
132
- total: number;
133
- results: {
134
- status: import("./payout.dtos.js").PayoutStatus;
135
- createdAt: Date;
136
- id: string;
137
- profileId: string;
138
- updatedAt: Date;
139
- description: string;
140
- channel: string;
141
- msisdn: string;
142
- amount: number;
143
- payeeName: string;
144
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
145
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
146
- statusMessage: string;
147
- notes?: string | null | undefined;
148
- partnerReference?: string | null | undefined;
149
- actionedAt?: Date | null | undefined;
150
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
151
- createdById?: string | null | undefined;
152
- actionedById?: string | null | undefined;
153
- createdBy?: {
154
- name: string;
155
- id: string;
156
- identity: string;
157
- } | null | undefined;
158
- actionedBy?: {
159
- name: string;
160
- id: string;
161
- identity: string;
162
- } | null | undefined;
163
- }[];
164
- }, {
165
- total: number;
166
- results: {
167
- status: import("./payout.dtos.js").PayoutStatus;
168
- createdAt: Date;
169
- id: string;
170
- profileId: string;
171
- updatedAt: Date;
172
- description: string;
173
- channel: string;
174
- msisdn: string;
175
- amount: number;
176
- payeeName: string;
177
- statusMessage: string;
178
- notes?: string | null | undefined;
179
- countryCode?: string | undefined;
180
- currencyCode?: string | undefined;
181
- partnerReference?: string | null | undefined;
182
- actionedAt?: Date | null | undefined;
183
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
184
- createdById?: string | null | undefined;
185
- actionedById?: string | null | undefined;
186
- createdBy?: {
187
- name: string;
188
- id: string;
189
- identity: string;
190
- } | null | undefined;
191
- actionedBy?: {
192
- name: string;
193
- id: string;
194
- identity: string;
195
- } | null | undefined;
196
- }[];
197
- }>;
54
+ }, z.core.$strip>;
198
55
  };
199
56
  };
200
57
  getPayoutsByApprovalStatus: {
@@ -202,524 +59,155 @@ export declare const contract: {
202
59
  rangeStart: z.ZodNumber;
203
60
  rangeEnd: z.ZodNumber;
204
61
  eager: z.ZodString;
205
- approvalStatus: z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>;
62
+ approvalStatus: z.ZodEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>;
206
63
  orderByDesc: z.ZodString;
207
- }, "strip", z.ZodTypeAny, {
208
- rangeStart: number;
209
- rangeEnd: number;
210
- orderByDesc: string;
211
- eager: string;
212
- approvalStatus: import("./payout.dtos.js").PayoutApprovalStatus;
213
- }, {
214
- rangeStart: number;
215
- rangeEnd: number;
216
- orderByDesc: string;
217
- eager: string;
218
- approvalStatus: import("./payout.dtos.js").PayoutApprovalStatus;
219
- }>;
64
+ }, z.core.$strip>;
220
65
  method: "GET";
221
66
  path: "";
222
67
  responses: {
223
68
  200: z.ZodObject<{
224
69
  results: z.ZodArray<z.ZodObject<{
225
70
  msisdn: z.ZodString;
226
- amount: z.ZodNumber;
71
+ amount: z.ZodCoercedNumber<unknown>;
227
72
  description: z.ZodString;
228
73
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
- } & {
230
74
  id: z.ZodString;
231
75
  profileId: z.ZodString;
232
76
  payeeName: z.ZodString;
233
- countryCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").ISO2CountryCode, string | undefined>;
234
- currencyCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").CurrencyCode, string | undefined>;
77
+ countryCode: z.ZodDefault<z.ZodString> & z.ZodType<import("@temboplus/frontend-core").ISO2CountryCode, string | undefined, z.core.$ZodTypeInternals<import("@temboplus/frontend-core").ISO2CountryCode, string | undefined>>;
78
+ currencyCode: z.ZodDefault<z.ZodString> & z.ZodType<import("@temboplus/frontend-core").CurrencyCode, string | undefined, z.core.$ZodTypeInternals<import("@temboplus/frontend-core").CurrencyCode, string | undefined>>;
235
79
  channel: z.ZodString;
236
- status: z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutStatus>;
80
+ status: z.ZodEnum<typeof import("./payout.dtos.js").PayoutStatus>;
237
81
  statusMessage: z.ZodString;
238
82
  partnerReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
239
- createdAt: z.ZodDate;
240
- updatedAt: z.ZodDate;
241
- actionedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
242
- approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
83
+ createdAt: z.ZodCoercedDate<unknown>;
84
+ updatedAt: z.ZodCoercedDate<unknown>;
85
+ actionedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
86
+ approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
243
87
  createdById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
88
  actionedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
89
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
246
90
  id: z.ZodString;
247
91
  name: z.ZodString;
248
92
  identity: z.ZodString;
249
- }, "strip", z.ZodTypeAny, {
250
- name: string;
251
- id: string;
252
- identity: string;
253
- }, {
254
- name: string;
255
- id: string;
256
- identity: string;
257
- }>>>;
93
+ }, z.core.$strip>>>;
258
94
  actionedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
259
95
  id: z.ZodString;
260
96
  name: z.ZodString;
261
97
  identity: z.ZodString;
262
- }, "strip", z.ZodTypeAny, {
263
- name: string;
264
- id: string;
265
- identity: string;
266
- }, {
267
- name: string;
268
- id: string;
269
- identity: string;
270
- }>>>;
271
- }, "strip", z.ZodTypeAny, {
272
- status: import("./payout.dtos.js").PayoutStatus;
273
- createdAt: Date;
274
- id: string;
275
- profileId: string;
276
- updatedAt: Date;
277
- description: string;
278
- channel: string;
279
- msisdn: string;
280
- amount: number;
281
- payeeName: string;
282
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
283
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
284
- statusMessage: string;
285
- notes?: string | null | undefined;
286
- partnerReference?: string | null | undefined;
287
- actionedAt?: Date | null | undefined;
288
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
289
- createdById?: string | null | undefined;
290
- actionedById?: string | null | undefined;
291
- createdBy?: {
292
- name: string;
293
- id: string;
294
- identity: string;
295
- } | null | undefined;
296
- actionedBy?: {
297
- name: string;
298
- id: string;
299
- identity: string;
300
- } | null | undefined;
301
- }, {
302
- status: import("./payout.dtos.js").PayoutStatus;
303
- createdAt: Date;
304
- id: string;
305
- profileId: string;
306
- updatedAt: Date;
307
- description: string;
308
- channel: string;
309
- msisdn: string;
310
- amount: number;
311
- payeeName: string;
312
- statusMessage: string;
313
- notes?: string | null | undefined;
314
- countryCode?: string | undefined;
315
- currencyCode?: string | undefined;
316
- partnerReference?: string | null | undefined;
317
- actionedAt?: Date | null | undefined;
318
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
319
- createdById?: string | null | undefined;
320
- actionedById?: string | null | undefined;
321
- createdBy?: {
322
- name: string;
323
- id: string;
324
- identity: string;
325
- } | null | undefined;
326
- actionedBy?: {
327
- name: string;
328
- id: string;
329
- identity: string;
330
- } | null | undefined;
331
- }>, "many">;
98
+ }, z.core.$strip>>>;
99
+ }, z.core.$strip>>;
332
100
  total: z.ZodNumber;
333
- }, "strip", z.ZodTypeAny, {
334
- total: number;
335
- results: {
336
- status: import("./payout.dtos.js").PayoutStatus;
337
- createdAt: Date;
338
- id: string;
339
- profileId: string;
340
- updatedAt: Date;
341
- description: string;
342
- channel: string;
343
- msisdn: string;
344
- amount: number;
345
- payeeName: string;
346
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
347
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
348
- statusMessage: string;
349
- notes?: string | null | undefined;
350
- partnerReference?: string | null | undefined;
351
- actionedAt?: Date | null | undefined;
352
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
353
- createdById?: string | null | undefined;
354
- actionedById?: string | null | undefined;
355
- createdBy?: {
356
- name: string;
357
- id: string;
358
- identity: string;
359
- } | null | undefined;
360
- actionedBy?: {
361
- name: string;
362
- id: string;
363
- identity: string;
364
- } | null | undefined;
365
- }[];
366
- }, {
367
- total: number;
368
- results: {
369
- status: import("./payout.dtos.js").PayoutStatus;
370
- createdAt: Date;
371
- id: string;
372
- profileId: string;
373
- updatedAt: Date;
374
- description: string;
375
- channel: string;
376
- msisdn: string;
377
- amount: number;
378
- payeeName: string;
379
- statusMessage: string;
380
- notes?: string | null | undefined;
381
- countryCode?: string | undefined;
382
- currencyCode?: string | undefined;
383
- partnerReference?: string | null | undefined;
384
- actionedAt?: Date | null | undefined;
385
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
386
- createdById?: string | null | undefined;
387
- actionedById?: string | null | undefined;
388
- createdBy?: {
389
- name: string;
390
- id: string;
391
- identity: string;
392
- } | null | undefined;
393
- actionedBy?: {
394
- name: string;
395
- id: string;
396
- identity: string;
397
- } | null | undefined;
398
- }[];
399
- }>;
101
+ }, z.core.$strip>;
400
102
  };
401
103
  };
402
104
  postPayout: {
403
105
  method: "POST";
404
106
  body: z.ZodObject<{
405
- channel: z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutChannel>;
107
+ channel: z.ZodEnum<typeof import("./payout.dtos.js").PayoutChannel>;
406
108
  msisdn: z.ZodString;
407
- amount: z.ZodNumber;
109
+ amount: z.ZodCoercedNumber<unknown>;
408
110
  description: z.ZodString;
409
111
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
- } & {
411
112
  payeeName: z.ZodString;
412
- }, "strip", z.ZodTypeAny, {
413
- description: string;
414
- channel: import("./payout.dtos.js").PayoutChannel;
415
- msisdn: string;
416
- amount: number;
417
- payeeName: string;
418
- notes?: string | null | undefined;
419
- }, {
420
- description: string;
421
- channel: import("./payout.dtos.js").PayoutChannel;
422
- msisdn: string;
423
- amount: number;
424
- payeeName: string;
425
- notes?: string | null | undefined;
426
- }>;
113
+ }, z.core.$strip>;
427
114
  path: "";
428
115
  responses: {
429
116
  201: z.ZodObject<{
430
117
  msisdn: z.ZodString;
431
- amount: z.ZodNumber;
118
+ amount: z.ZodCoercedNumber<unknown>;
432
119
  description: z.ZodString;
433
120
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
- } & {
435
121
  id: z.ZodString;
436
122
  profileId: z.ZodString;
437
123
  payeeName: z.ZodString;
438
- countryCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").ISO2CountryCode, string | undefined>;
439
- currencyCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").CurrencyCode, string | undefined>;
124
+ countryCode: z.ZodDefault<z.ZodString> & z.ZodType<import("@temboplus/frontend-core").ISO2CountryCode, string | undefined, z.core.$ZodTypeInternals<import("@temboplus/frontend-core").ISO2CountryCode, string | undefined>>;
125
+ currencyCode: z.ZodDefault<z.ZodString> & z.ZodType<import("@temboplus/frontend-core").CurrencyCode, string | undefined, z.core.$ZodTypeInternals<import("@temboplus/frontend-core").CurrencyCode, string | undefined>>;
440
126
  channel: z.ZodString;
441
- status: z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutStatus>;
127
+ status: z.ZodEnum<typeof import("./payout.dtos.js").PayoutStatus>;
442
128
  statusMessage: z.ZodString;
443
129
  partnerReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
- createdAt: z.ZodDate;
445
- updatedAt: z.ZodDate;
446
- actionedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
447
- approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
130
+ createdAt: z.ZodCoercedDate<unknown>;
131
+ updatedAt: z.ZodCoercedDate<unknown>;
132
+ actionedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
133
+ approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
448
134
  createdById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
449
135
  actionedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
450
136
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
451
137
  id: z.ZodString;
452
138
  name: z.ZodString;
453
139
  identity: z.ZodString;
454
- }, "strip", z.ZodTypeAny, {
455
- name: string;
456
- id: string;
457
- identity: string;
458
- }, {
459
- name: string;
460
- id: string;
461
- identity: string;
462
- }>>>;
140
+ }, z.core.$strip>>>;
463
141
  actionedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
464
142
  id: z.ZodString;
465
143
  name: z.ZodString;
466
144
  identity: z.ZodString;
467
- }, "strip", z.ZodTypeAny, {
468
- name: string;
469
- id: string;
470
- identity: string;
471
- }, {
472
- name: string;
473
- id: string;
474
- identity: string;
475
- }>>>;
476
- }, "strip", z.ZodTypeAny, {
477
- status: import("./payout.dtos.js").PayoutStatus;
478
- createdAt: Date;
479
- id: string;
480
- profileId: string;
481
- updatedAt: Date;
482
- description: string;
483
- channel: string;
484
- msisdn: string;
485
- amount: number;
486
- payeeName: string;
487
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
488
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
489
- statusMessage: string;
490
- notes?: string | null | undefined;
491
- partnerReference?: string | null | undefined;
492
- actionedAt?: Date | null | undefined;
493
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
494
- createdById?: string | null | undefined;
495
- actionedById?: string | null | undefined;
496
- createdBy?: {
497
- name: string;
498
- id: string;
499
- identity: string;
500
- } | null | undefined;
501
- actionedBy?: {
502
- name: string;
503
- id: string;
504
- identity: string;
505
- } | null | undefined;
506
- }, {
507
- status: import("./payout.dtos.js").PayoutStatus;
508
- createdAt: Date;
509
- id: string;
510
- profileId: string;
511
- updatedAt: Date;
512
- description: string;
513
- channel: string;
514
- msisdn: string;
515
- amount: number;
516
- payeeName: string;
517
- statusMessage: string;
518
- notes?: string | null | undefined;
519
- countryCode?: string | undefined;
520
- currencyCode?: string | undefined;
521
- partnerReference?: string | null | undefined;
522
- actionedAt?: Date | null | undefined;
523
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
524
- createdById?: string | null | undefined;
525
- actionedById?: string | null | undefined;
526
- createdBy?: {
527
- name: string;
528
- id: string;
529
- identity: string;
530
- } | null | undefined;
531
- actionedBy?: {
532
- name: string;
533
- id: string;
534
- identity: string;
535
- } | null | undefined;
536
- }>;
145
+ }, z.core.$strip>>>;
146
+ }, z.core.$strip>;
537
147
  400: z.ZodObject<{
538
148
  message: z.ZodString;
539
149
  statusCode: z.ZodNumber;
540
150
  error: z.ZodOptional<z.ZodString>;
541
- details: z.ZodOptional<z.AnyZodObject>;
542
- }, z.UnknownKeysParam, z.ZodTypeAny, {
543
- message: string;
544
- statusCode: number;
545
- error?: string | undefined;
546
- details?: {
547
- [x: string]: any;
548
- } | undefined;
549
- }, {
550
- message: string;
551
- statusCode: number;
552
- error?: string | undefined;
553
- details?: {
554
- [x: string]: any;
555
- } | undefined;
556
- }>;
151
+ details: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
152
+ }, z.core.$strip>;
557
153
  };
558
154
  };
559
155
  approve: {
560
156
  method: "POST";
561
157
  body: z.ZodObject<{
562
- action: z.ZodEnum<["Approve", "Reject"]>;
158
+ action: z.ZodEnum<{
159
+ Approve: "Approve";
160
+ Reject: "Reject";
161
+ }>;
563
162
  notes: z.ZodOptional<z.ZodString>;
564
- }, "strip", z.ZodTypeAny, {
565
- action: "Approve" | "Reject";
566
- notes?: string | undefined;
567
- }, {
568
- action: "Approve" | "Reject";
569
- notes?: string | undefined;
570
- }>;
163
+ }, z.core.$strip>;
571
164
  path: "/:id/approve";
572
165
  responses: {
573
166
  201: z.ZodObject<{
574
167
  msisdn: z.ZodString;
575
- amount: z.ZodNumber;
168
+ amount: z.ZodCoercedNumber<unknown>;
576
169
  description: z.ZodString;
577
170
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
578
- } & {
579
171
  id: z.ZodString;
580
172
  profileId: z.ZodString;
581
173
  payeeName: z.ZodString;
582
- countryCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").ISO2CountryCode, string | undefined>;
583
- currencyCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").CurrencyCode, string | undefined>;
174
+ countryCode: z.ZodDefault<z.ZodString> & z.ZodType<import("@temboplus/frontend-core").ISO2CountryCode, string | undefined, z.core.$ZodTypeInternals<import("@temboplus/frontend-core").ISO2CountryCode, string | undefined>>;
175
+ currencyCode: z.ZodDefault<z.ZodString> & z.ZodType<import("@temboplus/frontend-core").CurrencyCode, string | undefined, z.core.$ZodTypeInternals<import("@temboplus/frontend-core").CurrencyCode, string | undefined>>;
584
176
  channel: z.ZodString;
585
- status: z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutStatus>;
177
+ status: z.ZodEnum<typeof import("./payout.dtos.js").PayoutStatus>;
586
178
  statusMessage: z.ZodString;
587
179
  partnerReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
588
- createdAt: z.ZodDate;
589
- updatedAt: z.ZodDate;
590
- actionedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
591
- approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
180
+ createdAt: z.ZodCoercedDate<unknown>;
181
+ updatedAt: z.ZodCoercedDate<unknown>;
182
+ actionedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
183
+ approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
592
184
  createdById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
593
185
  actionedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
594
186
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
595
187
  id: z.ZodString;
596
188
  name: z.ZodString;
597
189
  identity: z.ZodString;
598
- }, "strip", z.ZodTypeAny, {
599
- name: string;
600
- id: string;
601
- identity: string;
602
- }, {
603
- name: string;
604
- id: string;
605
- identity: string;
606
- }>>>;
190
+ }, z.core.$strip>>>;
607
191
  actionedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
608
192
  id: z.ZodString;
609
193
  name: z.ZodString;
610
194
  identity: z.ZodString;
611
- }, "strip", z.ZodTypeAny, {
612
- name: string;
613
- id: string;
614
- identity: string;
615
- }, {
616
- name: string;
617
- id: string;
618
- identity: string;
619
- }>>>;
620
- }, "strip", z.ZodTypeAny, {
621
- status: import("./payout.dtos.js").PayoutStatus;
622
- createdAt: Date;
623
- id: string;
624
- profileId: string;
625
- updatedAt: Date;
626
- description: string;
627
- channel: string;
628
- msisdn: string;
629
- amount: number;
630
- payeeName: string;
631
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
632
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
633
- statusMessage: string;
634
- notes?: string | null | undefined;
635
- partnerReference?: string | null | undefined;
636
- actionedAt?: Date | null | undefined;
637
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
638
- createdById?: string | null | undefined;
639
- actionedById?: string | null | undefined;
640
- createdBy?: {
641
- name: string;
642
- id: string;
643
- identity: string;
644
- } | null | undefined;
645
- actionedBy?: {
646
- name: string;
647
- id: string;
648
- identity: string;
649
- } | null | undefined;
650
- }, {
651
- status: import("./payout.dtos.js").PayoutStatus;
652
- createdAt: Date;
653
- id: string;
654
- profileId: string;
655
- updatedAt: Date;
656
- description: string;
657
- channel: string;
658
- msisdn: string;
659
- amount: number;
660
- payeeName: string;
661
- statusMessage: string;
662
- notes?: string | null | undefined;
663
- countryCode?: string | undefined;
664
- currencyCode?: string | undefined;
665
- partnerReference?: string | null | undefined;
666
- actionedAt?: Date | null | undefined;
667
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
668
- createdById?: string | null | undefined;
669
- actionedById?: string | null | undefined;
670
- createdBy?: {
671
- name: string;
672
- id: string;
673
- identity: string;
674
- } | null | undefined;
675
- actionedBy?: {
676
- name: string;
677
- id: string;
678
- identity: string;
679
- } | null | undefined;
680
- }>;
195
+ }, z.core.$strip>>>;
196
+ }, z.core.$strip>;
681
197
  400: z.ZodObject<{
682
198
  message: z.ZodString;
683
199
  statusCode: z.ZodNumber;
684
200
  error: z.ZodOptional<z.ZodString>;
685
- details: z.ZodOptional<z.AnyZodObject>;
686
- }, z.UnknownKeysParam, z.ZodTypeAny, {
687
- message: string;
688
- statusCode: number;
689
- error?: string | undefined;
690
- details?: {
691
- [x: string]: any;
692
- } | undefined;
693
- }, {
694
- message: string;
695
- statusCode: number;
696
- error?: string | undefined;
697
- details?: {
698
- [x: string]: any;
699
- } | undefined;
700
- }>;
201
+ details: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
202
+ }, z.core.$strip>;
701
203
  401: z.ZodObject<{
702
204
  message: z.ZodString;
703
205
  statusCode: z.ZodNumber;
704
206
  error: z.ZodOptional<z.ZodString>;
705
- details: z.ZodOptional<z.AnyZodObject>;
706
- }, z.UnknownKeysParam, z.ZodTypeAny, {
707
- message: string;
708
- statusCode: number;
709
- error?: string | undefined;
710
- details?: {
711
- [x: string]: any;
712
- } | undefined;
713
- }, {
714
- message: string;
715
- statusCode: number;
716
- error?: string | undefined;
717
- details?: {
718
- [x: string]: any;
719
- } | undefined;
720
- }>;
721
- 404: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
722
- 409: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
207
+ details: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
208
+ }, z.core.$strip>;
209
+ 404: z.ZodObject<{}, z.core.$strip>;
210
+ 409: z.ZodObject<{}, z.core.$strip>;
723
211
  };
724
212
  };
725
213
  getPayout: {
@@ -728,113 +216,36 @@ export declare const contract: {
728
216
  responses: {
729
217
  200: z.ZodObject<{
730
218
  msisdn: z.ZodString;
731
- amount: z.ZodNumber;
219
+ amount: z.ZodCoercedNumber<unknown>;
732
220
  description: z.ZodString;
733
221
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
734
- } & {
735
222
  id: z.ZodString;
736
223
  profileId: z.ZodString;
737
224
  payeeName: z.ZodString;
738
- countryCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").ISO2CountryCode, string | undefined>;
739
- currencyCode: z.ZodEffects<z.ZodDefault<z.ZodString>, import("@temboplus/frontend-core").CurrencyCode, string | undefined>;
225
+ countryCode: z.ZodDefault<z.ZodString> & z.ZodType<import("@temboplus/frontend-core").ISO2CountryCode, string | undefined, z.core.$ZodTypeInternals<import("@temboplus/frontend-core").ISO2CountryCode, string | undefined>>;
226
+ currencyCode: z.ZodDefault<z.ZodString> & z.ZodType<import("@temboplus/frontend-core").CurrencyCode, string | undefined, z.core.$ZodTypeInternals<import("@temboplus/frontend-core").CurrencyCode, string | undefined>>;
740
227
  channel: z.ZodString;
741
- status: z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutStatus>;
228
+ status: z.ZodEnum<typeof import("./payout.dtos.js").PayoutStatus>;
742
229
  statusMessage: z.ZodString;
743
230
  partnerReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
744
- createdAt: z.ZodDate;
745
- updatedAt: z.ZodDate;
746
- actionedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
747
- approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
231
+ createdAt: z.ZodCoercedDate<unknown>;
232
+ updatedAt: z.ZodCoercedDate<unknown>;
233
+ actionedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
234
+ approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
748
235
  createdById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
236
  actionedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
750
237
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
751
238
  id: z.ZodString;
752
239
  name: z.ZodString;
753
240
  identity: z.ZodString;
754
- }, "strip", z.ZodTypeAny, {
755
- name: string;
756
- id: string;
757
- identity: string;
758
- }, {
759
- name: string;
760
- id: string;
761
- identity: string;
762
- }>>>;
241
+ }, z.core.$strip>>>;
763
242
  actionedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
764
243
  id: z.ZodString;
765
244
  name: z.ZodString;
766
245
  identity: z.ZodString;
767
- }, "strip", z.ZodTypeAny, {
768
- name: string;
769
- id: string;
770
- identity: string;
771
- }, {
772
- name: string;
773
- id: string;
774
- identity: string;
775
- }>>>;
776
- }, "strip", z.ZodTypeAny, {
777
- status: import("./payout.dtos.js").PayoutStatus;
778
- createdAt: Date;
779
- id: string;
780
- profileId: string;
781
- updatedAt: Date;
782
- description: string;
783
- channel: string;
784
- msisdn: string;
785
- amount: number;
786
- payeeName: string;
787
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
788
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
789
- statusMessage: string;
790
- notes?: string | null | undefined;
791
- partnerReference?: string | null | undefined;
792
- actionedAt?: Date | null | undefined;
793
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
794
- createdById?: string | null | undefined;
795
- actionedById?: string | null | undefined;
796
- createdBy?: {
797
- name: string;
798
- id: string;
799
- identity: string;
800
- } | null | undefined;
801
- actionedBy?: {
802
- name: string;
803
- id: string;
804
- identity: string;
805
- } | null | undefined;
806
- }, {
807
- status: import("./payout.dtos.js").PayoutStatus;
808
- createdAt: Date;
809
- id: string;
810
- profileId: string;
811
- updatedAt: Date;
812
- description: string;
813
- channel: string;
814
- msisdn: string;
815
- amount: number;
816
- payeeName: string;
817
- statusMessage: string;
818
- notes?: string | null | undefined;
819
- countryCode?: string | undefined;
820
- currencyCode?: string | undefined;
821
- partnerReference?: string | null | undefined;
822
- actionedAt?: Date | null | undefined;
823
- approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
824
- createdById?: string | null | undefined;
825
- actionedById?: string | null | undefined;
826
- createdBy?: {
827
- name: string;
828
- id: string;
829
- identity: string;
830
- } | null | undefined;
831
- actionedBy?: {
832
- name: string;
833
- id: string;
834
- identity: string;
835
- } | null | undefined;
836
- }>;
837
- 404: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
246
+ }, z.core.$strip>>>;
247
+ }, z.core.$strip>;
248
+ 404: z.ZodObject<{}, z.core.$strip>;
838
249
  };
839
250
  };
840
251
  };
@@ -842,3 +253,4 @@ export declare const contract: {
842
253
  * Export type for use in client implementations
843
254
  */
844
255
  export type PayoutAPI = typeof contract;
256
+ //# sourceMappingURL=payout.api-contract.d.ts.map