@temboplus/afloat 0.2.0-beta.9 → 0.2.1-beta.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.
@@ -1,18 +1,19 @@
1
- import { BeneficiaryType, BeneficiaryDTO } from "@/modules/beneficiary/beneficiary.dtos.js";
2
- import { PayoutDTO } from "@/modules/payout/payout.dtos.js";
1
+ import { BeneficiaryType } from "@/modules/beneficiary/beneficiary.dtos.js";
2
+ import type { BeneficiaryDTO, BeneficiaryInputDTO } from "@/modules/beneficiary/beneficiary.dtos.js";
3
+ import type { PayoutDTO } from "@/modules/payout/payout.dtos.js";
3
4
  import { Bank, PhoneNumber } from "@temboplus/frontend-core";
4
- import type { BankSwiftCode, ISO2CountryCode, MobileMoneyProviderId } from "@temboplus/frontend-core";
5
+ import type { BankSwiftCode, ISO2CountryCode, MobileMoneyProvider, MobileMoneyProviderId } from "@temboplus/frontend-core";
5
6
  import { z } from "zod";
6
7
  export declare const MobileBeneficiaryJSONSchema: z.ZodObject<{
7
8
  type: z.ZodLiteral<"Mobile">;
8
9
  name: z.ZodString;
9
10
  phoneNumber: z.ZodString;
10
11
  mnoId: z.ZodString;
11
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12
13
  }, "strip", z.ZodTypeAny, {
13
14
  type: "Mobile";
14
15
  name: string;
15
- version: string;
16
+ _version: string;
16
17
  phoneNumber: string;
17
18
  mnoId: string;
18
19
  }, {
@@ -20,7 +21,7 @@ export declare const MobileBeneficiaryJSONSchema: z.ZodObject<{
20
21
  name: string;
21
22
  phoneNumber: string;
22
23
  mnoId: string;
23
- version?: string | undefined;
24
+ _version?: string | undefined;
24
25
  }>;
25
26
  export declare const BankBeneficiaryJSONSchema: z.ZodObject<{
26
27
  type: z.ZodLiteral<"Bank">;
@@ -28,10 +29,10 @@ export declare const BankBeneficiaryJSONSchema: z.ZodObject<{
28
29
  swiftCode: z.ZodString;
29
30
  countryCode: z.ZodString;
30
31
  accNo: z.ZodString;
31
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
32
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
32
33
  }, "strip", z.ZodTypeAny, {
33
34
  type: "Bank";
34
- version: string;
35
+ _version: string;
35
36
  countryCode: string;
36
37
  accName: string;
37
38
  swiftCode: string;
@@ -42,18 +43,18 @@ export declare const BankBeneficiaryJSONSchema: z.ZodObject<{
42
43
  accName: string;
43
44
  swiftCode: string;
44
45
  accNo: string;
45
- version?: string | undefined;
46
+ _version?: string | undefined;
46
47
  }>;
47
48
  export declare const BeneficiaryJSONSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
48
49
  type: z.ZodLiteral<"Mobile">;
49
50
  name: z.ZodString;
50
51
  phoneNumber: z.ZodString;
51
52
  mnoId: z.ZodString;
52
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
53
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
53
54
  }, "strip", z.ZodTypeAny, {
54
55
  type: "Mobile";
55
56
  name: string;
56
- version: string;
57
+ _version: string;
57
58
  phoneNumber: string;
58
59
  mnoId: string;
59
60
  }, {
@@ -61,17 +62,17 @@ export declare const BeneficiaryJSONSchema: z.ZodDiscriminatedUnion<"type", [z.Z
61
62
  name: string;
62
63
  phoneNumber: string;
63
64
  mnoId: string;
64
- version?: string | undefined;
65
+ _version?: string | undefined;
65
66
  }>, z.ZodObject<{
66
67
  type: z.ZodLiteral<"Bank">;
67
68
  accName: z.ZodString;
68
69
  swiftCode: z.ZodString;
69
70
  countryCode: z.ZodString;
70
71
  accNo: z.ZodString;
71
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
72
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
72
73
  }, "strip", z.ZodTypeAny, {
73
74
  type: "Bank";
74
- version: string;
75
+ _version: string;
75
76
  countryCode: string;
76
77
  accName: string;
77
78
  swiftCode: string;
@@ -82,7 +83,7 @@ export declare const BeneficiaryJSONSchema: z.ZodDiscriminatedUnion<"type", [z.Z
82
83
  accName: string;
83
84
  swiftCode: string;
84
85
  accNo: string;
85
- version?: string | undefined;
86
+ _version?: string | undefined;
86
87
  }>]>;
87
88
  export type MobileBeneficiaryJSON = z.infer<typeof MobileBeneficiaryJSONSchema>;
88
89
  export type BankBeneficiaryJSON = z.infer<typeof BankBeneficiaryJSONSchema>;
@@ -148,6 +149,7 @@ export declare class MobileBeneficiaryInfo extends BaseBeneficiary {
148
149
  phoneNumber: PhoneNumber;
149
150
  mnoId?: MobileMoneyProviderId;
150
151
  }): MobileBeneficiaryInfo | undefined;
152
+ static fromInputDTO(info: BeneficiaryInputDTO): MobileBeneficiaryInfo | undefined;
151
153
  static fromBeneficiaryDTO(info: BeneficiaryDTO): MobileBeneficiaryInfo | undefined;
152
154
  static fromPayoutDTO(info: PayoutDTO): MobileBeneficiaryInfo | undefined;
153
155
  /**
@@ -164,6 +166,7 @@ export declare class MobileBeneficiaryInfo extends BaseBeneficiary {
164
166
  get channelLabel(): string;
165
167
  get channelId(): MobileMoneyProviderId;
166
168
  get channelName(): string;
169
+ get mobileMoneyProvider(): MobileMoneyProvider | undefined;
167
170
  toJSON(): MobileBeneficiaryJSON;
168
171
  static fromJSON(json: MobileBeneficiaryJSON | string): MobileBeneficiaryInfo | undefined;
169
172
  static fromJSONString(s: string): MobileBeneficiaryInfo | undefined;
@@ -184,6 +187,7 @@ export declare class BankBeneficiaryInfo extends BaseBeneficiary {
184
187
  bank: Bank;
185
188
  accNo: string;
186
189
  }): BankBeneficiaryInfo | undefined;
190
+ static fromInputDTO(info: BeneficiaryInputDTO): BankBeneficiaryInfo | undefined;
187
191
  static fromBeneficiaryDTO(info: BeneficiaryDTO): BankBeneficiaryInfo | undefined;
188
192
  static fromPayoutDTO(info: PayoutDTO): BankBeneficiaryInfo | undefined;
189
193
  static is(obj: unknown): obj is BankBeneficiaryInfo;
@@ -203,10 +207,24 @@ export declare class BankBeneficiaryInfo extends BaseBeneficiary {
203
207
  }
204
208
  export type BeneficiaryInfo = MobileBeneficiaryInfo | BankBeneficiaryInfo;
205
209
  /**
206
- * Top-level entry point for building / recognizing a beneficiary without
210
+ * Factory for building / recognizing a beneficiary without
207
211
  * caring about the variant. Each method dispatches on the discriminator.
208
212
  */
213
+ export declare class BeneficiaryInfoFactory {
214
+ static fromInputDTO(info: BeneficiaryInputDTO): BeneficiaryInfo | undefined;
215
+ static fromBeneficiaryDTO(info: BeneficiaryDTO): BeneficiaryInfo | undefined;
216
+ static fromPayoutDTO(info: PayoutDTO): BeneficiaryInfo | undefined;
217
+ static fromJSON(json: BeneficiaryJSON | string): BeneficiaryInfo | undefined;
218
+ static fromJSONString(s: string): BeneficiaryInfo | undefined;
219
+ static is(obj: unknown): obj is BeneficiaryInfo;
220
+ static isJSON(obj: unknown): obj is BeneficiaryJSON;
221
+ private static fromDTO;
222
+ }
223
+ /**
224
+ * @deprecated Use BeneficiaryInfoFactory instead.
225
+ */
209
226
  export declare const BeneficiaryInfo: {
227
+ fromInputDTO(info: BeneficiaryInputDTO): BeneficiaryInfo | undefined;
210
228
  fromBeneficiaryDTO(info: BeneficiaryDTO): BeneficiaryInfo | undefined;
211
229
  fromPayoutDTO(info: PayoutDTO): BeneficiaryInfo | undefined;
212
230
  fromJSON(json: BeneficiaryJSON | string): BeneficiaryInfo | undefined;
@@ -1,75 +1,54 @@
1
1
  import { BeneficiaryDTO, BeneficiaryType } from "@/modules/beneficiary/beneficiary.dtos.js";
2
- import { BeneficiaryInfo } from "./beneficiary-info.model.js";
2
+ import { type BeneficiaryInfo } from "./beneficiary-info.model.js";
3
3
  import { z } from "zod";
4
4
  /**
5
5
  * Zod schema for Beneficiary JSON serialization
6
6
  * This schema validates the JSON representation of a Beneficiary instance
7
7
  *
8
- * The Beneficiary JSON format wraps the BeneficiaryDTO structure for consistency
9
- * and future extensibility (e.g., adding metadata, version info)
8
+ * The Beneficiary JSON format is a flat BeneficiaryDTO structure with metadata
9
+ * under underscored keys.
10
10
  */
11
11
  export declare const BeneficiaryJSONSchema: z.ZodObject<{
12
- /** The complete beneficiary data transfer object */
13
- data: z.ZodObject<{
14
- id: z.ZodString;
15
- profileId: z.ZodString;
16
- createdAt: z.ZodString;
17
- updatedAt: z.ZodString;
18
- } & {
19
- displayName: z.ZodString;
20
- accountNo: z.ZodString;
21
- channel: z.ZodString;
22
- type: z.ZodNativeEnum<typeof BeneficiaryType>;
23
- }, "strip", z.ZodTypeAny, {
24
- type: BeneficiaryType;
25
- createdAt: string;
26
- id: string;
27
- displayName: string;
28
- accountNo: string;
29
- profileId: string;
30
- updatedAt: string;
31
- channel: string;
32
- }, {
33
- type: BeneficiaryType;
34
- createdAt: string;
35
- id: string;
36
- displayName: string;
37
- accountNo: string;
38
- profileId: string;
39
- updatedAt: string;
40
- channel: string;
41
- }>;
42
- /** Version for future compatibility */
43
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12
+ id: z.ZodString;
13
+ profileId: z.ZodString;
14
+ createdAt: z.ZodString;
15
+ updatedAt: z.ZodString;
16
+ } & {
17
+ displayName: z.ZodString;
18
+ accountNo: z.ZodString;
19
+ channel: z.ZodString;
20
+ type: z.ZodNativeEnum<typeof BeneficiaryType>;
21
+ } & {
22
+ /** Serialization version for future compatibility */
23
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
44
24
  }, "strip", z.ZodTypeAny, {
45
- version: string;
46
- data: {
47
- type: BeneficiaryType;
48
- createdAt: string;
49
- id: string;
50
- displayName: string;
51
- accountNo: string;
52
- profileId: string;
53
- updatedAt: string;
54
- channel: string;
55
- };
25
+ type: BeneficiaryType;
26
+ createdAt: string;
27
+ id: string;
28
+ displayName: string;
29
+ accountNo: string;
30
+ _version: string;
31
+ profileId: string;
32
+ updatedAt: string;
33
+ channel: string;
56
34
  }, {
57
- data: {
58
- type: BeneficiaryType;
59
- createdAt: string;
60
- id: string;
61
- displayName: string;
62
- accountNo: string;
63
- profileId: string;
64
- updatedAt: string;
65
- channel: string;
66
- };
67
- version?: string | undefined;
35
+ type: BeneficiaryType;
36
+ createdAt: string;
37
+ id: string;
38
+ displayName: string;
39
+ accountNo: string;
40
+ profileId: string;
41
+ updatedAt: string;
42
+ channel: string;
43
+ _version?: string | undefined;
68
44
  }>;
69
45
  /**
70
46
  * Infer the BeneficiaryJSON type from the schema
71
47
  */
72
48
  export type BeneficiaryJSON = z.infer<typeof BeneficiaryJSONSchema>;
49
+ type LegacyBeneficiaryJSON = {
50
+ data: BeneficiaryDTO;
51
+ } & Record<string, unknown>;
73
52
  /**
74
53
  * Beneficiary class that wraps the Zod schema and provides additional functionality.
75
54
  * Represents a beneficiary entity with validation and type-safe access to beneficiary information.
@@ -92,7 +71,14 @@ export type BeneficiaryJSON = z.infer<typeof BeneficiaryJSONSchema>;
92
71
  * ```
93
72
  */
94
73
  export declare class Beneficiary {
95
- private readonly data;
74
+ private readonly _id;
75
+ private readonly _profileId;
76
+ private readonly _displayName;
77
+ private readonly _accountNo;
78
+ private readonly _channel;
79
+ private readonly _type;
80
+ private readonly _createdAt;
81
+ private readonly _updatedAt;
96
82
  private _info;
97
83
  private _infoComputed;
98
84
  /**
@@ -318,8 +304,8 @@ export declare class Beneficiary {
318
304
  * @remarks
319
305
  * This method performs a complete structural validation:
320
306
  * 1. Checks if the value is an object
321
- * 2. Verifies presence of internal data property
322
- * 3. Validates the data against BeneficiaryDTO schema
307
+ * 2. Verifies the instance can serialize to a valid flat BeneficiaryJSON
308
+ * 3. Validates the JSON against BeneficiaryDTO schema
323
309
  * 4. Ensures the object is a proper Beneficiary instance
324
310
  *
325
311
  * Use this method when:
@@ -342,7 +328,7 @@ export declare class Beneficiary {
342
328
  * ```typescript
343
329
  * const beneficiary = Beneficiary.from(beneficiaryData);
344
330
  * const json = beneficiary.toJSON();
345
- * // { data: { id: "123", displayName: "John", ... }, version: "1.0" }
331
+ * // { id: "123", displayName: "John", ..., _version: "1.0" }
346
332
  *
347
333
  * // Store in localStorage
348
334
  * localStorage.setItem('beneficiary', JSON.stringify(json));
@@ -378,13 +364,13 @@ export declare class Beneficiary {
378
364
  * 4. Constructs Beneficiary instance with validated data
379
365
  *
380
366
  * @static
381
- * @param {BeneficiaryJSON | string} json - JSON object or string containing beneficiary data
367
+ * @param {BeneficiaryJSON | LegacyBeneficiaryJSON | string} json - JSON object or string containing beneficiary data
382
368
  * @returns {Beneficiary | undefined} New Beneficiary instance if successful, undefined if parsing/validation fails
383
369
  *
384
370
  * @example
385
371
  * ```typescript
386
372
  * // From JSON object
387
- * const json = { data: { id: "123", displayName: "John", ... }, version: "1.0" };
373
+ * const json = { id: "123", displayName: "John", ..., _version: "1.0" };
388
374
  * const beneficiary = Beneficiary.fromJSON(json);
389
375
  *
390
376
  * // From JSON string
@@ -400,7 +386,7 @@ export declare class Beneficiary {
400
386
  * }
401
387
  * ```
402
388
  */
403
- static fromJSON(json: BeneficiaryJSON | string): Beneficiary | undefined;
389
+ static fromJSON(json: BeneficiaryJSON | LegacyBeneficiaryJSON | string): Beneficiary | undefined;
404
390
  /**
405
391
  * Creates a Beneficiary instance from a JSON string
406
392
  *
@@ -412,7 +398,7 @@ export declare class Beneficiary {
412
398
  *
413
399
  * @example
414
400
  * ```typescript
415
- * const jsonString = '{"data":{"id":"123","displayName":"John",...},"version":"1.0"}';
401
+ * const jsonString = '{"id":"123","displayName":"John",...,"_version":"1.0"}';
416
402
  * const beneficiary = Beneficiary.fromJSONString(jsonString);
417
403
  * ```
418
404
  */
@@ -447,4 +433,6 @@ export declare class Beneficiary {
447
433
  * - Validating cached data integrity
448
434
  */
449
435
  static isBeneficiaryJSON(obj: unknown): obj is BeneficiaryJSON;
436
+ private toDTO;
450
437
  }
438
+ export {};
@@ -1,6 +1,6 @@
1
1
  export * from "./beneficiary.repository.js";
2
2
  export * from "./beneficiary.dtos.js";
3
- export * from "./beneficiary-info.model.js";
4
- export * from "./beneficiary.model.js";
3
+ export { BankBeneficiaryInfo, BankBeneficiaryJSONSchema, BeneficiaryError, BeneficiaryInfo, BeneficiaryInfoFactory, BeneficiaryJSONSchema as BeneficiaryInfoJSONSchema, MobileBeneficiaryInfo, MobileBeneficiaryJSONSchema, type BankBeneficiaryJSON, type BeneficiaryJSON as BeneficiaryInfoJSON, type MobileBeneficiaryJSON, } from "./beneficiary-info.model.js";
4
+ export { Beneficiary, BeneficiaryJSONSchema, type BeneficiaryJSON, } from "./beneficiary.model.js";
5
5
  export * from "./beneficiary-input-handler.js";
6
6
  export * from "./beneficiary.api-contract.js";
@@ -1,4 +1,5 @@
1
1
  import { LogInDTO } from "./login.dtos.js";
2
+ import { Permission } from "./permission.type.js";
2
3
  import { z } from "zod";
3
4
  /**
4
5
  * Zod schema for LogIn JSON serialization
@@ -17,13 +18,13 @@ export declare const LogInJSONSchema: z.ZodObject<{
17
18
  createdAt: z.ZodString;
18
19
  updatedAt: z.ZodString;
19
20
  access: z.ZodArray<z.ZodString, "many">;
20
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
21
+ _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
21
22
  }, "strip", z.ZodTypeAny, {
22
23
  type: string;
23
24
  name: string;
24
25
  createdAt: string;
25
26
  id: string;
26
- version: string;
27
+ _version: string;
27
28
  profileId: string;
28
29
  identity: string;
29
30
  roleId: string;
@@ -45,7 +46,7 @@ export declare const LogInJSONSchema: z.ZodObject<{
45
46
  resetPassword: boolean;
46
47
  updatedAt: string;
47
48
  access: string[];
48
- version?: string | undefined;
49
+ _version?: string | undefined;
49
50
  }>;
50
51
  /**
51
52
  * Infer the LogInJSON type from the schema
@@ -74,6 +75,7 @@ export declare class LogIn {
74
75
  private readonly _createdAt;
75
76
  private readonly _updatedAt;
76
77
  private readonly _access;
78
+ private readonly _permissionMap;
77
79
  private constructor();
78
80
  /**
79
81
  * Creates a LogIn instance from a validated DTO.
@@ -149,6 +151,27 @@ export declare class LogIn {
149
151
  * Gets the user's permissions/access list.
150
152
  */
151
153
  get access(): ReadonlyArray<string>;
154
+ /**
155
+ * Checks if the login has a specific permission.
156
+ *
157
+ * @param permission - The permission to check
158
+ * @returns true if the login has the permission
159
+ */
160
+ can(permission: Permission): boolean;
161
+ /**
162
+ * Checks if the login has any of the specified permissions.
163
+ *
164
+ * @param permissions - Array of permissions to check
165
+ * @returns true if the login has at least one permission
166
+ */
167
+ canAny(permissions: Permission[]): boolean;
168
+ /**
169
+ * Checks if the login has all of the specified permissions.
170
+ *
171
+ * @param permissions - Array of permissions to check
172
+ * @returns true if the login has all permissions
173
+ */
174
+ canAll(permissions: Permission[]): boolean;
152
175
  /**
153
176
  * Serializes the LogIn instance to a JSON-compatible object
154
177
  */
@@ -38,6 +38,8 @@ export declare const contract: {
38
38
  updatedAt: z.ZodDate;
39
39
  actionedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
40
40
  approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
41
+ createdById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ actionedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
43
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
44
  id: z.ZodString;
43
45
  name: z.ZodString;
@@ -82,6 +84,8 @@ export declare const contract: {
82
84
  partnerReference?: string | null | undefined;
83
85
  actionedAt?: Date | null | undefined;
84
86
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
87
+ createdById?: string | null | undefined;
88
+ actionedById?: string | null | undefined;
85
89
  createdBy?: {
86
90
  name: string;
87
91
  id: string;
@@ -110,6 +114,8 @@ export declare const contract: {
110
114
  partnerReference?: string | null | undefined;
111
115
  actionedAt?: Date | null | undefined;
112
116
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
117
+ createdById?: string | null | undefined;
118
+ actionedById?: string | null | undefined;
113
119
  createdBy?: {
114
120
  name: string;
115
121
  id: string;
@@ -142,6 +148,8 @@ export declare const contract: {
142
148
  partnerReference?: string | null | undefined;
143
149
  actionedAt?: Date | null | undefined;
144
150
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
151
+ createdById?: string | null | undefined;
152
+ actionedById?: string | null | undefined;
145
153
  createdBy?: {
146
154
  name: string;
147
155
  id: string;
@@ -173,6 +181,8 @@ export declare const contract: {
173
181
  partnerReference?: string | null | undefined;
174
182
  actionedAt?: Date | null | undefined;
175
183
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
184
+ createdById?: string | null | undefined;
185
+ actionedById?: string | null | undefined;
176
186
  createdBy?: {
177
187
  name: string;
178
188
  id: string;
@@ -230,6 +240,8 @@ export declare const contract: {
230
240
  updatedAt: z.ZodDate;
231
241
  actionedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
232
242
  approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
243
+ createdById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ actionedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
245
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
234
246
  id: z.ZodString;
235
247
  name: z.ZodString;
@@ -274,6 +286,8 @@ export declare const contract: {
274
286
  partnerReference?: string | null | undefined;
275
287
  actionedAt?: Date | null | undefined;
276
288
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
289
+ createdById?: string | null | undefined;
290
+ actionedById?: string | null | undefined;
277
291
  createdBy?: {
278
292
  name: string;
279
293
  id: string;
@@ -302,6 +316,8 @@ export declare const contract: {
302
316
  partnerReference?: string | null | undefined;
303
317
  actionedAt?: Date | null | undefined;
304
318
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
319
+ createdById?: string | null | undefined;
320
+ actionedById?: string | null | undefined;
305
321
  createdBy?: {
306
322
  name: string;
307
323
  id: string;
@@ -334,6 +350,8 @@ export declare const contract: {
334
350
  partnerReference?: string | null | undefined;
335
351
  actionedAt?: Date | null | undefined;
336
352
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
353
+ createdById?: string | null | undefined;
354
+ actionedById?: string | null | undefined;
337
355
  createdBy?: {
338
356
  name: string;
339
357
  id: string;
@@ -365,6 +383,8 @@ export declare const contract: {
365
383
  partnerReference?: string | null | undefined;
366
384
  actionedAt?: Date | null | undefined;
367
385
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
386
+ createdById?: string | null | undefined;
387
+ actionedById?: string | null | undefined;
368
388
  createdBy?: {
369
389
  name: string;
370
390
  id: string;
@@ -425,6 +445,8 @@ export declare const contract: {
425
445
  updatedAt: z.ZodDate;
426
446
  actionedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
427
447
  approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
448
+ createdById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
449
+ actionedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
450
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
429
451
  id: z.ZodString;
430
452
  name: z.ZodString;
@@ -469,6 +491,8 @@ export declare const contract: {
469
491
  partnerReference?: string | null | undefined;
470
492
  actionedAt?: Date | null | undefined;
471
493
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
494
+ createdById?: string | null | undefined;
495
+ actionedById?: string | null | undefined;
472
496
  createdBy?: {
473
497
  name: string;
474
498
  id: string;
@@ -497,6 +521,8 @@ export declare const contract: {
497
521
  partnerReference?: string | null | undefined;
498
522
  actionedAt?: Date | null | undefined;
499
523
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
524
+ createdById?: string | null | undefined;
525
+ actionedById?: string | null | undefined;
500
526
  createdBy?: {
501
527
  name: string;
502
528
  id: string;
@@ -563,6 +589,8 @@ export declare const contract: {
563
589
  updatedAt: z.ZodDate;
564
590
  actionedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
565
591
  approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
592
+ createdById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
593
+ actionedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
566
594
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
567
595
  id: z.ZodString;
568
596
  name: z.ZodString;
@@ -607,6 +635,8 @@ export declare const contract: {
607
635
  partnerReference?: string | null | undefined;
608
636
  actionedAt?: Date | null | undefined;
609
637
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
638
+ createdById?: string | null | undefined;
639
+ actionedById?: string | null | undefined;
610
640
  createdBy?: {
611
641
  name: string;
612
642
  id: string;
@@ -635,6 +665,8 @@ export declare const contract: {
635
665
  partnerReference?: string | null | undefined;
636
666
  actionedAt?: Date | null | undefined;
637
667
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
668
+ createdById?: string | null | undefined;
669
+ actionedById?: string | null | undefined;
638
670
  createdBy?: {
639
671
  name: string;
640
672
  id: string;
@@ -646,6 +678,46 @@ export declare const contract: {
646
678
  identity: string;
647
679
  } | null | undefined;
648
680
  }>;
681
+ 400: z.ZodObject<{
682
+ message: z.ZodString;
683
+ statusCode: z.ZodNumber;
684
+ 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
+ }>;
701
+ 401: z.ZodObject<{
702
+ message: z.ZodString;
703
+ statusCode: z.ZodNumber;
704
+ 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
+ }>;
649
721
  404: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
650
722
  409: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
651
723
  };
@@ -673,6 +745,8 @@ export declare const contract: {
673
745
  updatedAt: z.ZodDate;
674
746
  actionedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
675
747
  approvalStatus: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>>>;
748
+ createdById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
+ actionedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
676
750
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
677
751
  id: z.ZodString;
678
752
  name: z.ZodString;
@@ -717,6 +791,8 @@ export declare const contract: {
717
791
  partnerReference?: string | null | undefined;
718
792
  actionedAt?: Date | null | undefined;
719
793
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
794
+ createdById?: string | null | undefined;
795
+ actionedById?: string | null | undefined;
720
796
  createdBy?: {
721
797
  name: string;
722
798
  id: string;
@@ -745,6 +821,8 @@ export declare const contract: {
745
821
  partnerReference?: string | null | undefined;
746
822
  actionedAt?: Date | null | undefined;
747
823
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
824
+ createdById?: string | null | undefined;
825
+ actionedById?: string | null | undefined;
748
826
  createdBy?: {
749
827
  name: string;
750
828
  id: string;