@temboplus/afloat 0.1.77-beta.2 → 0.1.77-beta.21

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 (42) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1 -1
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/lib/api/base-repository.d.ts +3 -1
  6. package/dist/lib/query/query.builder.d.ts +5 -1
  7. package/dist/modules/auth/auth.contract.d.ts +2 -2
  8. package/dist/modules/auth/company-membership.model.d.ts +122 -9
  9. package/dist/modules/auth/index.d.ts +0 -1
  10. package/dist/modules/auth/user.model.d.ts +238 -15
  11. package/dist/modules/contact/contact-info.model.d.ts +183 -533
  12. package/dist/modules/contact/contact.api-contract.d.ts +8 -8
  13. package/dist/modules/contact/contact.dtos.d.ts +2 -2
  14. package/dist/modules/contact/contact.model.d.ts +309 -32
  15. package/dist/modules/login/login.api-contract.d.ts +2 -2
  16. package/dist/modules/login/login.dtos.d.ts +4 -4
  17. package/dist/modules/login/login.model.d.ts +54 -24
  18. package/dist/modules/payout/payout.api-contract.d.ts +37 -37
  19. package/dist/modules/payout/payout.dtos.d.ts +47 -39
  20. package/dist/modules/payout/payout.model.d.ts +242 -2
  21. package/dist/modules/payout/payout.query.d.ts +11 -3
  22. package/dist/modules/payout/payout.repository.d.ts +48 -25
  23. package/dist/modules/profile/profile.model.d.ts +65 -30
  24. package/dist/modules/team-member/role.model.d.ts +49 -1
  25. package/dist/modules/team-member/team-member.contract.d.ts +44 -44
  26. package/dist/modules/team-member/team-member.dtos.d.ts +14 -14
  27. package/dist/modules/team-member/team-member.model.d.ts +106 -6
  28. package/dist/modules/wallet/index.d.ts +0 -1
  29. package/dist/modules/wallet/narration.model.d.ts +34 -38
  30. package/dist/modules/wallet/statement-entry.model.d.ts +172 -73
  31. package/dist/modules/wallet/wallet.contract.d.ts +6 -6
  32. package/dist/modules/wallet/wallet.dtos.d.ts +12 -12
  33. package/dist/modules/wallet/wallet.model.d.ts +56 -19
  34. package/dist/modules/wallet/wallet.query.d.ts +95 -0
  35. package/dist/modules/wallet/wallet.repository.d.ts +45 -13
  36. package/package.json +2 -2
  37. package/dist/modules/auth/auth.manager.d.ts +0 -249
  38. package/dist/modules/auth/auth.store.d.ts +0 -139
  39. package/dist/modules/auth/storage/client-store.d.ts +0 -29
  40. package/dist/modules/auth/storage/client-token-handler.d.ts +0 -31
  41. package/dist/modules/auth/storage/types.d.ts +0 -41
  42. package/dist/modules/wallet/wallet-manager.session.d.ts +0 -143
@@ -1,18 +1,56 @@
1
1
  import { LogInDTO } from "./login.dtos.js";
2
- export type LogInJson = {
2
+ import { z } from "zod";
3
+ /**
4
+ * Zod schema for LogIn JSON serialization
5
+ * This schema validates the JSON representation of a LogIn instance
6
+ */
7
+ export declare const LogInJSONSchema: z.ZodObject<{
8
+ id: z.ZodString;
9
+ profileId: z.ZodString;
10
+ name: z.ZodString;
11
+ identity: z.ZodString;
12
+ type: z.ZodString;
13
+ roleId: z.ZodString;
14
+ isActive: z.ZodBoolean;
15
+ isArchived: z.ZodBoolean;
16
+ resetPassword: z.ZodBoolean;
17
+ createdAt: z.ZodString;
18
+ updatedAt: z.ZodString;
19
+ access: z.ZodArray<z.ZodString, "many">;
20
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ type: string;
23
+ name: string;
24
+ createdAt: string;
3
25
  id: string;
26
+ version: string;
4
27
  profileId: string;
5
- name: string;
6
28
  identity: string;
7
- type: string;
8
29
  roleId: string;
9
30
  isActive: boolean;
10
31
  isArchived: boolean;
11
32
  resetPassword: boolean;
33
+ updatedAt: string;
34
+ access: string[];
35
+ }, {
36
+ type: string;
37
+ name: string;
12
38
  createdAt: string;
39
+ id: string;
40
+ profileId: string;
41
+ identity: string;
42
+ roleId: string;
43
+ isActive: boolean;
44
+ isArchived: boolean;
45
+ resetPassword: boolean;
13
46
  updatedAt: string;
14
47
  access: string[];
15
- };
48
+ version?: string | undefined;
49
+ }>;
50
+ /**
51
+ * Infer the LogInJSON type from the schema
52
+ */
53
+ export type LogInJSON = z.infer<typeof LogInJSONSchema>;
16
54
  /**
17
55
  * Represents the authenticated user's identity and account information.
18
56
  *
@@ -63,18 +101,6 @@ export declare class LogIn {
63
101
  * ```
64
102
  */
65
103
  static from(dto: LogInDTO): LogIn;
66
- /**
67
- * Creates a LogIn instance from a JSON string.
68
- *
69
- * @param json - JSON string containing login data
70
- * @returns A new LogIn instance, or undefined if parsing failed
71
- *
72
- * @example
73
- * ```typescript
74
- * const logIn = LogIn.fromJson('{"id":"abc","name":"John",...}');
75
- * ```
76
- */
77
- static fromJson(json: string): LogIn | undefined;
78
104
  /**
79
105
  * Gets the user's unique identifier.
80
106
  */
@@ -124,15 +150,19 @@ export declare class LogIn {
124
150
  */
125
151
  get access(): ReadonlyArray<string>;
126
152
  /**
127
- * Converts the LogIn instance to a plain object.
128
- *
129
- * @returns A plain object representation
153
+ * Serializes the LogIn instance to a JSON-compatible object
154
+ */
155
+ toJSON(): LogInJSON;
156
+ /**
157
+ * Serializes the LogIn instance to a JSON string
130
158
  */
131
- toObject(): LogInJson;
159
+ toJSONString(): string;
132
160
  /**
133
- * Converts the LogIn instance to a JSON string.
134
- *
135
- * @returns A JSON string representation
161
+ * Creates a LogIn instance from a JSON-compatible object or string
162
+ */
163
+ static fromJSON(json: LogInJSON | string): LogIn | undefined;
164
+ /**
165
+ * Type guard using Zod schema validation
136
166
  */
137
- toJson(): string;
167
+ static isLogInJSON(obj: unknown): obj is LogInJSON;
138
168
  }
@@ -66,17 +66,17 @@ export declare const contract: {
66
66
  }>>>;
67
67
  }, "strip", z.ZodTypeAny, {
68
68
  status: import("./payout.dtos.js").PayoutStatus;
69
+ createdAt: Date;
69
70
  id: string;
70
71
  profileId: string;
71
- createdAt: Date;
72
72
  updatedAt: Date;
73
73
  description: string;
74
74
  channel: string;
75
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
76
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
77
75
  msisdn: string;
78
76
  amount: number;
79
77
  payeeName: string;
78
+ countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
79
+ currencyCode: import("@temboplus/frontend-core").CurrencyCode;
80
80
  statusMessage: string;
81
81
  notes?: string | null | undefined;
82
82
  partnerReference?: string | null | undefined;
@@ -94,9 +94,9 @@ export declare const contract: {
94
94
  } | null | undefined;
95
95
  }, {
96
96
  status: import("./payout.dtos.js").PayoutStatus;
97
+ createdAt: Date;
97
98
  id: string;
98
99
  profileId: string;
99
- createdAt: Date;
100
100
  updatedAt: Date;
101
101
  description: string;
102
102
  channel: string;
@@ -104,9 +104,9 @@ export declare const contract: {
104
104
  amount: number;
105
105
  payeeName: string;
106
106
  statusMessage: string;
107
+ notes?: string | null | undefined;
107
108
  countryCode?: string | undefined;
108
109
  currencyCode?: string | undefined;
109
- notes?: string | null | undefined;
110
110
  partnerReference?: string | null | undefined;
111
111
  actionedAt?: Date | null | undefined;
112
112
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
@@ -126,17 +126,17 @@ export declare const contract: {
126
126
  total: number;
127
127
  results: {
128
128
  status: import("./payout.dtos.js").PayoutStatus;
129
+ createdAt: Date;
129
130
  id: string;
130
131
  profileId: string;
131
- createdAt: Date;
132
132
  updatedAt: Date;
133
133
  description: string;
134
134
  channel: string;
135
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
136
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
137
135
  msisdn: string;
138
136
  amount: number;
139
137
  payeeName: string;
138
+ countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
139
+ currencyCode: import("@temboplus/frontend-core").CurrencyCode;
140
140
  statusMessage: string;
141
141
  notes?: string | null | undefined;
142
142
  partnerReference?: string | null | undefined;
@@ -157,9 +157,9 @@ export declare const contract: {
157
157
  total: number;
158
158
  results: {
159
159
  status: import("./payout.dtos.js").PayoutStatus;
160
+ createdAt: Date;
160
161
  id: string;
161
162
  profileId: string;
162
- createdAt: Date;
163
163
  updatedAt: Date;
164
164
  description: string;
165
165
  channel: string;
@@ -167,9 +167,9 @@ export declare const contract: {
167
167
  amount: number;
168
168
  payeeName: string;
169
169
  statusMessage: string;
170
+ notes?: string | null | undefined;
170
171
  countryCode?: string | undefined;
171
172
  currencyCode?: string | undefined;
172
- notes?: string | null | undefined;
173
173
  partnerReference?: string | null | undefined;
174
174
  actionedAt?: Date | null | undefined;
175
175
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
@@ -195,16 +195,16 @@ export declare const contract: {
195
195
  approvalStatus: z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>;
196
196
  orderByDesc: z.ZodString;
197
197
  }, "strip", z.ZodTypeAny, {
198
- eager: string;
199
198
  rangeStart: number;
200
199
  rangeEnd: number;
201
200
  orderByDesc: string;
201
+ eager: string;
202
202
  approvalStatus: import("./payout.dtos.js").PayoutApprovalStatus;
203
203
  }, {
204
- eager: string;
205
204
  rangeStart: number;
206
205
  rangeEnd: number;
207
206
  orderByDesc: string;
207
+ eager: string;
208
208
  approvalStatus: import("./payout.dtos.js").PayoutApprovalStatus;
209
209
  }>;
210
210
  method: "GET";
@@ -258,17 +258,17 @@ export declare const contract: {
258
258
  }>>>;
259
259
  }, "strip", z.ZodTypeAny, {
260
260
  status: import("./payout.dtos.js").PayoutStatus;
261
+ createdAt: Date;
261
262
  id: string;
262
263
  profileId: string;
263
- createdAt: Date;
264
264
  updatedAt: Date;
265
265
  description: string;
266
266
  channel: string;
267
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
268
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
269
267
  msisdn: string;
270
268
  amount: number;
271
269
  payeeName: string;
270
+ countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
271
+ currencyCode: import("@temboplus/frontend-core").CurrencyCode;
272
272
  statusMessage: string;
273
273
  notes?: string | null | undefined;
274
274
  partnerReference?: string | null | undefined;
@@ -286,9 +286,9 @@ export declare const contract: {
286
286
  } | null | undefined;
287
287
  }, {
288
288
  status: import("./payout.dtos.js").PayoutStatus;
289
+ createdAt: Date;
289
290
  id: string;
290
291
  profileId: string;
291
- createdAt: Date;
292
292
  updatedAt: Date;
293
293
  description: string;
294
294
  channel: string;
@@ -296,9 +296,9 @@ export declare const contract: {
296
296
  amount: number;
297
297
  payeeName: string;
298
298
  statusMessage: string;
299
+ notes?: string | null | undefined;
299
300
  countryCode?: string | undefined;
300
301
  currencyCode?: string | undefined;
301
- notes?: string | null | undefined;
302
302
  partnerReference?: string | null | undefined;
303
303
  actionedAt?: Date | null | undefined;
304
304
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
@@ -318,17 +318,17 @@ export declare const contract: {
318
318
  total: number;
319
319
  results: {
320
320
  status: import("./payout.dtos.js").PayoutStatus;
321
+ createdAt: Date;
321
322
  id: string;
322
323
  profileId: string;
323
- createdAt: Date;
324
324
  updatedAt: Date;
325
325
  description: string;
326
326
  channel: string;
327
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
328
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
329
327
  msisdn: string;
330
328
  amount: number;
331
329
  payeeName: string;
330
+ countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
331
+ currencyCode: import("@temboplus/frontend-core").CurrencyCode;
332
332
  statusMessage: string;
333
333
  notes?: string | null | undefined;
334
334
  partnerReference?: string | null | undefined;
@@ -349,9 +349,9 @@ export declare const contract: {
349
349
  total: number;
350
350
  results: {
351
351
  status: import("./payout.dtos.js").PayoutStatus;
352
+ createdAt: Date;
352
353
  id: string;
353
354
  profileId: string;
354
- createdAt: Date;
355
355
  updatedAt: Date;
356
356
  description: string;
357
357
  channel: string;
@@ -359,9 +359,9 @@ export declare const contract: {
359
359
  amount: number;
360
360
  payeeName: string;
361
361
  statusMessage: string;
362
+ notes?: string | null | undefined;
362
363
  countryCode?: string | undefined;
363
364
  currencyCode?: string | undefined;
364
- notes?: string | null | undefined;
365
365
  partnerReference?: string | null | undefined;
366
366
  actionedAt?: Date | null | undefined;
367
367
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
@@ -453,17 +453,17 @@ export declare const contract: {
453
453
  }>>>;
454
454
  }, "strip", z.ZodTypeAny, {
455
455
  status: import("./payout.dtos.js").PayoutStatus;
456
+ createdAt: Date;
456
457
  id: string;
457
458
  profileId: string;
458
- createdAt: Date;
459
459
  updatedAt: Date;
460
460
  description: string;
461
461
  channel: string;
462
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
463
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
464
462
  msisdn: string;
465
463
  amount: number;
466
464
  payeeName: string;
465
+ countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
466
+ currencyCode: import("@temboplus/frontend-core").CurrencyCode;
467
467
  statusMessage: string;
468
468
  notes?: string | null | undefined;
469
469
  partnerReference?: string | null | undefined;
@@ -481,9 +481,9 @@ export declare const contract: {
481
481
  } | null | undefined;
482
482
  }, {
483
483
  status: import("./payout.dtos.js").PayoutStatus;
484
+ createdAt: Date;
484
485
  id: string;
485
486
  profileId: string;
486
- createdAt: Date;
487
487
  updatedAt: Date;
488
488
  description: string;
489
489
  channel: string;
@@ -491,9 +491,9 @@ export declare const contract: {
491
491
  amount: number;
492
492
  payeeName: string;
493
493
  statusMessage: string;
494
+ notes?: string | null | undefined;
494
495
  countryCode?: string | undefined;
495
496
  currencyCode?: string | undefined;
496
- notes?: string | null | undefined;
497
497
  partnerReference?: string | null | undefined;
498
498
  actionedAt?: Date | null | undefined;
499
499
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
@@ -591,17 +591,17 @@ export declare const contract: {
591
591
  }>>>;
592
592
  }, "strip", z.ZodTypeAny, {
593
593
  status: import("./payout.dtos.js").PayoutStatus;
594
+ createdAt: Date;
594
595
  id: string;
595
596
  profileId: string;
596
- createdAt: Date;
597
597
  updatedAt: Date;
598
598
  description: string;
599
599
  channel: string;
600
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
601
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
602
600
  msisdn: string;
603
601
  amount: number;
604
602
  payeeName: string;
603
+ countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
604
+ currencyCode: import("@temboplus/frontend-core").CurrencyCode;
605
605
  statusMessage: string;
606
606
  notes?: string | null | undefined;
607
607
  partnerReference?: string | null | undefined;
@@ -619,9 +619,9 @@ export declare const contract: {
619
619
  } | null | undefined;
620
620
  }, {
621
621
  status: import("./payout.dtos.js").PayoutStatus;
622
+ createdAt: Date;
622
623
  id: string;
623
624
  profileId: string;
624
- createdAt: Date;
625
625
  updatedAt: Date;
626
626
  description: string;
627
627
  channel: string;
@@ -629,9 +629,9 @@ export declare const contract: {
629
629
  amount: number;
630
630
  payeeName: string;
631
631
  statusMessage: string;
632
+ notes?: string | null | undefined;
632
633
  countryCode?: string | undefined;
633
634
  currencyCode?: string | undefined;
634
- notes?: string | null | undefined;
635
635
  partnerReference?: string | null | undefined;
636
636
  actionedAt?: Date | null | undefined;
637
637
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;
@@ -701,17 +701,17 @@ export declare const contract: {
701
701
  }>>>;
702
702
  }, "strip", z.ZodTypeAny, {
703
703
  status: import("./payout.dtos.js").PayoutStatus;
704
+ createdAt: Date;
704
705
  id: string;
705
706
  profileId: string;
706
- createdAt: Date;
707
707
  updatedAt: Date;
708
708
  description: string;
709
709
  channel: string;
710
- countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
711
- currencyCode: import("@temboplus/frontend-core").CurrencyCode;
712
710
  msisdn: string;
713
711
  amount: number;
714
712
  payeeName: string;
713
+ countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
714
+ currencyCode: import("@temboplus/frontend-core").CurrencyCode;
715
715
  statusMessage: string;
716
716
  notes?: string | null | undefined;
717
717
  partnerReference?: string | null | undefined;
@@ -729,9 +729,9 @@ export declare const contract: {
729
729
  } | null | undefined;
730
730
  }, {
731
731
  status: import("./payout.dtos.js").PayoutStatus;
732
+ createdAt: Date;
732
733
  id: string;
733
734
  profileId: string;
734
- createdAt: Date;
735
735
  updatedAt: Date;
736
736
  description: string;
737
737
  channel: string;
@@ -739,9 +739,9 @@ export declare const contract: {
739
739
  amount: number;
740
740
  payeeName: string;
741
741
  statusMessage: string;
742
+ notes?: string | null | undefined;
742
743
  countryCode?: string | undefined;
743
744
  currencyCode?: string | undefined;
744
- notes?: string | null | undefined;
745
745
  partnerReference?: string | null | undefined;
746
746
  actionedAt?: Date | null | undefined;
747
747
  approvalStatus?: import("./payout.dtos.js").PayoutApprovalStatus | null | undefined;