@temboplus/afloat 0.1.71 → 0.1.73

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 (49) 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 -38
  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 +93 -93
  21. package/dist/features/payout/payout.dtos.d.ts +12 -12
  22. package/dist/features/payout/payout.repository.d.ts +5 -5
  23. package/dist/features/wallet/index.d.ts +4 -4
  24. package/dist/features/wallet/wallet-manager.session.d.ts +2 -2
  25. package/dist/features/wallet/wallet.contract.d.ts +7 -7
  26. package/dist/features/wallet/wallet.dtos.d.ts +14 -14
  27. package/dist/features/wallet/wallet.repository.d.ts +5 -5
  28. package/dist/features/wallet/wallet.utils.d.ts +1 -1
  29. package/dist/index.cjs.js +1 -1
  30. package/dist/index.cjs.js.map +1 -1
  31. package/dist/index.d.ts +7 -7
  32. package/dist/index.esm.js +1 -1
  33. package/dist/index.esm.js.map +1 -1
  34. package/dist/lib/api/base-repository.d.ts +1 -1
  35. package/dist/lib/api/index.d.ts +2 -2
  36. package/dist/lib/error/error.permission.d.ts +1 -1
  37. package/dist/lib/error/index.d.ts +3 -3
  38. package/dist/models/contact-info.model.d.ts +2 -2
  39. package/dist/models/contact.model.d.ts +2 -2
  40. package/dist/models/index.d.ts +11 -11
  41. package/dist/models/managed-user.model.d.ts +2 -2
  42. package/dist/models/narration.model.d.ts +1 -1
  43. package/dist/models/payout.model.d.ts +2 -2
  44. package/dist/models/profile.model.d.ts +1 -1
  45. package/dist/models/role.model.d.ts +1 -1
  46. package/dist/models/statement-entry.model.d.ts +2 -2
  47. package/dist/models/user.model.d.ts +1 -1
  48. package/dist/models/wallet.model.d.ts +1 -1
  49. package/package.json +4 -2
@@ -19,28 +19,28 @@ export declare const userManagementContract: {
19
19
  type?: string | undefined;
20
20
  name?: string | undefined;
21
21
  id?: string | undefined;
22
- resetPassword?: number | undefined;
23
- identity?: string | undefined;
24
22
  profileId?: string | undefined;
25
23
  createdAt?: string | undefined;
26
24
  updatedAt?: string | undefined;
27
- eager?: string | undefined;
25
+ identity?: string | undefined;
26
+ resetPassword?: number | undefined;
28
27
  roleId?: string | undefined;
29
28
  isActive?: number | undefined;
30
29
  isArchived?: number | undefined;
30
+ eager?: string | undefined;
31
31
  }, {
32
32
  type?: string | undefined;
33
33
  name?: string | undefined;
34
34
  id?: string | undefined;
35
- resetPassword?: number | undefined;
36
- identity?: string | undefined;
37
35
  profileId?: string | undefined;
38
36
  createdAt?: string | undefined;
39
37
  updatedAt?: string | undefined;
40
- eager?: string | undefined;
38
+ identity?: string | undefined;
39
+ resetPassword?: number | undefined;
41
40
  roleId?: string | undefined;
42
41
  isActive?: number | undefined;
43
42
  isArchived?: number | undefined;
43
+ eager?: string | undefined;
44
44
  }>;
45
45
  summary: "List all user accounts";
46
46
  method: "GET";
@@ -56,47 +56,47 @@ export declare const userManagementContract: {
56
56
  resetPassword: z.ZodBoolean;
57
57
  isActive: z.ZodBoolean;
58
58
  isArchived: z.ZodBoolean;
59
- role: z.ZodOptional<z.ZodType<import("./admin.dtos").RoleDTO>>;
59
+ role: z.ZodOptional<z.ZodType<import("./admin.dtos.js").RoleDTO>>;
60
60
  createdAt: z.ZodString;
61
61
  updatedAt: z.ZodString;
62
62
  }, z.UnknownKeysParam, z.ZodTypeAny, {
63
63
  type: string;
64
64
  name: string;
65
65
  id: string;
66
- resetPassword: boolean;
67
- identity: string;
68
66
  profileId: string;
69
67
  createdAt: string;
70
68
  updatedAt: string;
69
+ identity: string;
70
+ resetPassword: boolean;
71
71
  roleId: string;
72
72
  isActive: boolean;
73
73
  isArchived: boolean;
74
74
  role?: {
75
75
  name: string;
76
76
  id: string;
77
- access: string[];
78
77
  createdAt: string;
79
78
  updatedAt: string;
79
+ access: string[];
80
80
  description?: string | undefined;
81
81
  } | undefined;
82
82
  }, {
83
83
  type: string;
84
84
  name: string;
85
85
  id: string;
86
- resetPassword: boolean;
87
- identity: string;
88
86
  profileId: string;
89
87
  createdAt: string;
90
88
  updatedAt: string;
89
+ identity: string;
90
+ resetPassword: boolean;
91
91
  roleId: string;
92
92
  isActive: boolean;
93
93
  isArchived: boolean;
94
94
  role?: {
95
95
  name: string;
96
96
  id: string;
97
- access: string[];
98
97
  createdAt: string;
99
98
  updatedAt: string;
99
+ access: string[];
100
100
  description?: string | undefined;
101
101
  } | undefined;
102
102
  }>, "many">;
@@ -142,28 +142,28 @@ export declare const userManagementContract: {
142
142
  type?: string | undefined;
143
143
  name?: string | undefined;
144
144
  id?: string | undefined;
145
- resetPassword?: number | undefined;
146
- identity?: string | undefined;
147
145
  profileId?: string | undefined;
148
146
  createdAt?: string | undefined;
149
147
  updatedAt?: string | undefined;
150
- eager?: string | undefined;
148
+ identity?: string | undefined;
149
+ resetPassword?: number | undefined;
151
150
  roleId?: string | undefined;
152
151
  isActive?: number | undefined;
153
152
  isArchived?: number | undefined;
153
+ eager?: string | undefined;
154
154
  }, {
155
155
  type?: string | undefined;
156
156
  name?: string | undefined;
157
157
  id?: string | undefined;
158
- resetPassword?: number | undefined;
159
- identity?: string | undefined;
160
158
  profileId?: string | undefined;
161
159
  createdAt?: string | undefined;
162
160
  updatedAt?: string | undefined;
163
- eager?: string | undefined;
161
+ identity?: string | undefined;
162
+ resetPassword?: number | undefined;
164
163
  roleId?: string | undefined;
165
164
  isActive?: number | undefined;
166
165
  isArchived?: number | undefined;
166
+ eager?: string | undefined;
167
167
  }>;
168
168
  summary: "Get user account details";
169
169
  method: "GET";
@@ -179,47 +179,47 @@ export declare const userManagementContract: {
179
179
  resetPassword: z.ZodBoolean;
180
180
  isActive: z.ZodBoolean;
181
181
  isArchived: z.ZodBoolean;
182
- role: z.ZodOptional<z.ZodType<import("./admin.dtos").RoleDTO>>;
182
+ role: z.ZodOptional<z.ZodType<import("./admin.dtos.js").RoleDTO>>;
183
183
  createdAt: z.ZodString;
184
184
  updatedAt: z.ZodString;
185
185
  }, z.UnknownKeysParam, z.ZodTypeAny, {
186
186
  type: string;
187
187
  name: string;
188
188
  id: string;
189
- resetPassword: boolean;
190
- identity: string;
191
189
  profileId: string;
192
190
  createdAt: string;
193
191
  updatedAt: string;
192
+ identity: string;
193
+ resetPassword: boolean;
194
194
  roleId: string;
195
195
  isActive: boolean;
196
196
  isArchived: boolean;
197
197
  role?: {
198
198
  name: string;
199
199
  id: string;
200
- access: string[];
201
200
  createdAt: string;
202
201
  updatedAt: string;
202
+ access: string[];
203
203
  description?: string | undefined;
204
204
  } | undefined;
205
205
  }, {
206
206
  type: string;
207
207
  name: string;
208
208
  id: string;
209
- resetPassword: boolean;
210
- identity: string;
211
209
  profileId: string;
212
210
  createdAt: string;
213
211
  updatedAt: string;
212
+ identity: string;
213
+ resetPassword: boolean;
214
214
  roleId: string;
215
215
  isActive: boolean;
216
216
  isArchived: boolean;
217
217
  role?: {
218
218
  name: string;
219
219
  id: string;
220
- access: string[];
221
220
  createdAt: string;
222
221
  updatedAt: string;
222
+ access: string[];
223
223
  description?: string | undefined;
224
224
  } | undefined;
225
225
  }>;
@@ -285,9 +285,9 @@ export declare const userManagementContract: {
285
285
  type: string;
286
286
  name: string;
287
287
  id: string;
288
- identity: string;
289
288
  profileId: string;
290
289
  createdAt: string;
290
+ identity: string;
291
291
  roleId: string;
292
292
  isActive: boolean;
293
293
  isArchived: boolean;
@@ -295,9 +295,9 @@ export declare const userManagementContract: {
295
295
  type: string;
296
296
  name: string;
297
297
  id: string;
298
- identity: string;
299
298
  profileId: string;
300
299
  createdAt: string;
300
+ identity: string;
301
301
  roleId: string;
302
302
  isActive: boolean;
303
303
  isArchived: boolean;
@@ -377,47 +377,47 @@ export declare const userManagementContract: {
377
377
  resetPassword: z.ZodBoolean;
378
378
  isActive: z.ZodBoolean;
379
379
  isArchived: z.ZodBoolean;
380
- role: z.ZodOptional<z.ZodType<import("./admin.dtos").RoleDTO>>;
380
+ role: z.ZodOptional<z.ZodType<import("./admin.dtos.js").RoleDTO>>;
381
381
  createdAt: z.ZodString;
382
382
  updatedAt: z.ZodString;
383
383
  }, z.UnknownKeysParam, z.ZodTypeAny, {
384
384
  type: string;
385
385
  name: string;
386
386
  id: string;
387
- resetPassword: boolean;
388
- identity: string;
389
387
  profileId: string;
390
388
  createdAt: string;
391
389
  updatedAt: string;
390
+ identity: string;
391
+ resetPassword: boolean;
392
392
  roleId: string;
393
393
  isActive: boolean;
394
394
  isArchived: boolean;
395
395
  role?: {
396
396
  name: string;
397
397
  id: string;
398
- access: string[];
399
398
  createdAt: string;
400
399
  updatedAt: string;
400
+ access: string[];
401
401
  description?: string | undefined;
402
402
  } | undefined;
403
403
  }, {
404
404
  type: string;
405
405
  name: string;
406
406
  id: string;
407
- resetPassword: boolean;
408
- identity: string;
409
407
  profileId: string;
410
408
  createdAt: string;
411
409
  updatedAt: string;
410
+ identity: string;
411
+ resetPassword: boolean;
412
412
  roleId: string;
413
413
  isActive: boolean;
414
414
  isArchived: boolean;
415
415
  role?: {
416
416
  name: string;
417
417
  id: string;
418
- access: string[];
419
418
  createdAt: string;
420
419
  updatedAt: string;
420
+ access: string[];
421
421
  description?: string | undefined;
422
422
  } | undefined;
423
423
  }>;
@@ -478,47 +478,47 @@ export declare const userManagementContract: {
478
478
  resetPassword: z.ZodBoolean;
479
479
  isActive: z.ZodBoolean;
480
480
  isArchived: z.ZodBoolean;
481
- role: z.ZodOptional<z.ZodType<import("./admin.dtos").RoleDTO>>;
481
+ role: z.ZodOptional<z.ZodType<import("./admin.dtos.js").RoleDTO>>;
482
482
  createdAt: z.ZodString;
483
483
  updatedAt: z.ZodString;
484
484
  }, z.UnknownKeysParam, z.ZodTypeAny, {
485
485
  type: string;
486
486
  name: string;
487
487
  id: string;
488
- resetPassword: boolean;
489
- identity: string;
490
488
  profileId: string;
491
489
  createdAt: string;
492
490
  updatedAt: string;
491
+ identity: string;
492
+ resetPassword: boolean;
493
493
  roleId: string;
494
494
  isActive: boolean;
495
495
  isArchived: boolean;
496
496
  role?: {
497
497
  name: string;
498
498
  id: string;
499
- access: string[];
500
499
  createdAt: string;
501
500
  updatedAt: string;
501
+ access: string[];
502
502
  description?: string | undefined;
503
503
  } | undefined;
504
504
  }, {
505
505
  type: string;
506
506
  name: string;
507
507
  id: string;
508
- resetPassword: boolean;
509
- identity: string;
510
508
  profileId: string;
511
509
  createdAt: string;
512
510
  updatedAt: string;
511
+ identity: string;
512
+ resetPassword: boolean;
513
513
  roleId: string;
514
514
  isActive: boolean;
515
515
  isArchived: boolean;
516
516
  role?: {
517
517
  name: string;
518
518
  id: string;
519
- access: string[];
520
519
  createdAt: string;
521
520
  updatedAt: string;
521
+ access: string[];
522
522
  description?: string | undefined;
523
523
  } | undefined;
524
524
  }>;
@@ -569,47 +569,47 @@ export declare const userManagementContract: {
569
569
  resetPassword: z.ZodBoolean;
570
570
  isActive: z.ZodBoolean;
571
571
  isArchived: z.ZodBoolean;
572
- role: z.ZodOptional<z.ZodType<import("./admin.dtos").RoleDTO>>;
572
+ role: z.ZodOptional<z.ZodType<import("./admin.dtos.js").RoleDTO>>;
573
573
  createdAt: z.ZodString;
574
574
  updatedAt: z.ZodString;
575
575
  }, z.UnknownKeysParam, z.ZodTypeAny, {
576
576
  type: string;
577
577
  name: string;
578
578
  id: string;
579
- resetPassword: boolean;
580
- identity: string;
581
579
  profileId: string;
582
580
  createdAt: string;
583
581
  updatedAt: string;
582
+ identity: string;
583
+ resetPassword: boolean;
584
584
  roleId: string;
585
585
  isActive: boolean;
586
586
  isArchived: boolean;
587
587
  role?: {
588
588
  name: string;
589
589
  id: string;
590
- access: string[];
591
590
  createdAt: string;
592
591
  updatedAt: string;
592
+ access: string[];
593
593
  description?: string | undefined;
594
594
  } | undefined;
595
595
  }, {
596
596
  type: string;
597
597
  name: string;
598
598
  id: string;
599
- resetPassword: boolean;
600
- identity: string;
601
599
  profileId: string;
602
600
  createdAt: string;
603
601
  updatedAt: string;
602
+ identity: string;
603
+ resetPassword: boolean;
604
604
  roleId: string;
605
605
  isActive: boolean;
606
606
  isArchived: boolean;
607
607
  role?: {
608
608
  name: string;
609
609
  id: string;
610
- access: string[];
611
610
  createdAt: string;
612
611
  updatedAt: string;
612
+ access: string[];
613
613
  description?: string | undefined;
614
614
  } | undefined;
615
615
  }>;
@@ -712,16 +712,16 @@ export declare const userManagementContract: {
712
712
  }, z.UnknownKeysParam, z.ZodTypeAny, {
713
713
  name: string;
714
714
  id: string;
715
- access: string[];
716
715
  createdAt: string;
717
716
  updatedAt: string;
717
+ access: string[];
718
718
  description?: string | undefined;
719
719
  }, {
720
720
  name: string;
721
721
  id: string;
722
- access: string[];
723
722
  createdAt: string;
724
723
  updatedAt: string;
724
+ access: string[];
725
725
  description?: string | undefined;
726
726
  }>, "many">;
727
727
  401: z.ZodObject<{
@@ -763,16 +763,16 @@ export declare const userManagementContract: {
763
763
  }, z.UnknownKeysParam, z.ZodTypeAny, {
764
764
  name: string;
765
765
  id: string;
766
- access: string[];
767
766
  createdAt: string;
768
767
  updatedAt: string;
768
+ access: string[];
769
769
  description?: string | undefined;
770
770
  }, {
771
771
  name: string;
772
772
  id: string;
773
- access: string[];
774
773
  createdAt: string;
775
774
  updatedAt: string;
775
+ access: string[];
776
776
  description?: string | undefined;
777
777
  }>;
778
778
  401: z.ZodObject<{
@@ -1,8 +1,8 @@
1
- import { BaseRepository } from "@/lib/api";
2
- import { userManagementContract } from "./admin.contract";
3
- import type { CreateUserRequestDTO, CreateUserResponseDTO, ManagedUserQueryParamsDTO, ResetPasswordRequestDTO, UpdateUserRequestDTO } from "./admin.dtos";
4
- import { Role } from "@/models/role.model";
5
- import { ManagedUser } from "@/models/managed-user.model";
1
+ import { BaseRepository } from "@/lib/api/base-repository.js";
2
+ import { ManagedUser } from "@/models/managed-user.model.js";
3
+ import { Role } from "@/models/role.model.js";
4
+ import { userManagementContract } from "./admin.contract.js";
5
+ import { CreateUserRequestDTO, CreateUserResponseDTO, UpdateUserRequestDTO, ResetPasswordRequestDTO, ManagedUserQueryParamsDTO } from "./admin.dtos.js";
6
6
  /**
7
7
  * Repository class for managing user accounts through API interactions.
8
8
  * Handles user creation, updates, archiving, and role management.
@@ -1,2 +1,2 @@
1
- export * from "./admin.repository";
2
- export * from "./admin.dtos";
1
+ export * from "./admin.repository.js";
2
+ export * from "./admin.dtos.js";
@@ -1,5 +1,5 @@
1
- import { BaseRepository } from "@/lib/api/base-repository";
2
- import { accessContract } from "./access.api-contract";
1
+ import { BaseRepository } from "@/lib/api/base-repository.js";
2
+ import { accessContract } from "./access.api-contract.js";
3
3
  /**
4
4
  * Repository class for managing access-related operations.
5
5
  * Handles retrieving user access lists and permissions from the API.
@@ -1,5 +1,5 @@
1
- import { User } from "@/models/user.model";
2
- import { Permission } from "@/models/permission";
1
+ import { Permission } from "@/models/permission.js";
2
+ import { User } from "@/models/user.model.js";
3
3
  /**
4
4
  * Clean authentication manager for client-side usage only.
5
5
  *
@@ -1,6 +1,6 @@
1
- import { BaseRepository } from "../../lib/api/base-repository";
2
- import { authContract } from "./auth.contract";
3
- import { User } from "@/models/user.model";
1
+ import { BaseRepository } from "@/lib/api/base-repository.js";
2
+ import { User } from "@/models/user.model.js";
3
+ import { authContract } from "./auth.contract.js";
4
4
  /**
5
5
  * Repository class for handling authentication-related operations.
6
6
  * Provides methods for user login and password management.
@@ -1,5 +1,5 @@
1
1
  import { type StoreApi, type UseBoundStore } from "zustand";
2
- import { User } from "@/models/user.model";
2
+ import { User } from "@/models/user.model.js";
3
3
  /** Type definition for the store's internal state */
4
4
  type AuthState = {
5
5
  user: string | undefined;
@@ -1,6 +1,6 @@
1
- import { identityContract } from "./identity.api-contract";
1
+ import { identityContract } from "./identity.api-contract.js";
2
2
  import type { ClientInferResponseBody } from "@ts-rest/core";
3
- import { BaseRepository } from "@/lib/api";
3
+ import { BaseRepository } from "@/lib/api/base-repository.js";
4
4
  type GetUserIdentityResponse = ClientInferResponseBody<typeof identityContract.getUserCredentials>;
5
5
  /**
6
6
  * Repository class for retrieving user identity-related information.
@@ -1,5 +1,5 @@
1
- export * from "./auth.manager";
2
- export * from "./auth.repository";
3
- export * from "./access/access.repository";
4
- export * from "./identity/identity.repository";
5
- export * from "./profile/profile.repository";
1
+ export * from "./auth.manager.js";
2
+ export * from "./auth.repository.js";
3
+ export * from "./access/access.repository.js";
4
+ export * from "./identity/identity.repository.js";
5
+ export * from "./profile/profile.repository.js";
@@ -1,6 +1,6 @@
1
- import { BaseRepository } from "@/lib/api/base-repository";
2
- import { profileContract } from "./profile.api-contract";
3
- import { Profile } from "@/models/profile.model";
1
+ import { BaseRepository } from "@/lib/api/base-repository.js";
2
+ import { profileContract } from "./profile.api-contract.js";
3
+ import { Profile } from "@/models/profile.model.js";
4
4
  /**
5
5
  * Repository class for managing user profile operations.
6
6
  * Handles retrieving and updating user profile information from the API.
@@ -1,6 +1,6 @@
1
1
  import { type StoreApi, type UseBoundStore } from "zustand";
2
- import type { AuthStore } from "./types";
3
- import { User } from "@/models/user.model";
2
+ import type { AuthStore } from "./types.js";
3
+ import { User } from "@/models/user.model.js";
4
4
  /** Type definition for the store's state */
5
5
  type State = {
6
6
  user: string | undefined;
@@ -1,4 +1,4 @@
1
- import type { TokenHandler } from "./types";
1
+ import type { TokenHandler } from "./types.js";
2
2
  /**
3
3
  * Client-side implementation of TokenHandler.
4
4
  * Manages tokens using sessionStorage.
@@ -1,5 +1,5 @@
1
- import { ContactInfo } from "../../models/contact-info.model";
2
- import { ContactInputDTO } from "./contact.dtos";
1
+ import { ContactInfo } from "@/models/contact-info.model.js";
2
+ import { ContactInputDTO } from "./contact.dtos.js";
3
3
  /**
4
4
  * Factory for resolving and validating a raw `ContactInput` into a typed and valid version.
5
5
  */