@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
@@ -1,6 +1,6 @@
1
- import { BeneficiaryDTO, BeneficiaryType } from "@/modules/beneficiary/beneficiary.dtos.js";
2
- import { type BeneficiaryInfo } from "./beneficiary-info.model.js";
3
1
  import { z } from "zod";
2
+ import { type BeneficiaryDTO, BeneficiaryType } from "@/modules/beneficiary/beneficiary.dtos.js";
3
+ import { type BeneficiaryInfo } from "./beneficiary-info.model.js";
4
4
  /**
5
5
  * Zod schema for Beneficiary JSON serialization
6
6
  * This schema validates the JSON representation of a Beneficiary instance
@@ -13,35 +13,12 @@ export declare const BeneficiaryJSONSchema: z.ZodObject<{
13
13
  profileId: z.ZodString;
14
14
  createdAt: z.ZodString;
15
15
  updatedAt: z.ZodString;
16
- } & {
17
16
  displayName: z.ZodString;
18
17
  accountNo: z.ZodString;
19
18
  channel: z.ZodString;
20
- type: z.ZodNativeEnum<typeof BeneficiaryType>;
21
- } & {
22
- /** Serialization version for future compatibility */
19
+ type: z.ZodEnum<typeof BeneficiaryType>;
23
20
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
24
- }, "strip", z.ZodTypeAny, {
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;
34
- }, {
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;
44
- }>;
21
+ }, z.core.$strip>;
45
22
  /**
46
23
  * Infer the BeneficiaryJSON type from the schema
47
24
  */
@@ -436,3 +413,4 @@ export declare class Beneficiary {
436
413
  private toDTO;
437
414
  }
438
415
  export {};
416
+ //# sourceMappingURL=beneficiary.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beneficiary.model.d.ts","sourceRoot":"","sources":["../../../src/modules/beneficiary/beneficiary.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,cAAc,EAAyB,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACxH,OAAO,EAAE,KAAK,eAAe,EAA0B,MAAM,6BAA6B,CAAC;AAE3F;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;iBAGhC,CAAC;AA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"@/lib/api/base-repository.js";
2
- import { BeneficiaryInfo } from "@/modules/beneficiary/beneficiary-info.model.js";
3
2
  import { Beneficiary } from "@/modules/beneficiary/beneficiary.model.js";
3
+ import type { BeneficiaryInfo } from "@/modules/beneficiary/beneficiary-info.model.js";
4
4
  import { contract } from "./beneficiary.api-contract.js";
5
5
  /**
6
6
  * Repository class for managing Beneficiary data through API interactions.
@@ -114,3 +114,4 @@ export declare class BeneficiaryRepository extends BaseRepository<typeof contrac
114
114
  */
115
115
  getByID(id: string): Promise<Beneficiary>;
116
116
  }
117
+ //# sourceMappingURL=beneficiary.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beneficiary.repository.d.ts","sourceRoot":"","sources":["../../../src/modules/beneficiary/beneficiary.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAIzD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,OAAO,QAAQ,CAAC;IACxE;;;;;;;;;;;;;;OAcG;gBACS,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;IAKvD;;;;;;;;;;;;;;;OAeG;IACG,MAAM,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC;IAOzD;;;;;;;;;;;;;;;OAeG;IACG,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC;IAUnE;;;;;;;;;;;;OAYG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvC;;;;;;;;;;;;OAYG;IACG,MAAM,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAOtC;;;;;;;;;;;;OAYG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAKhD"}
@@ -1,6 +1,7 @@
1
- export * from "./beneficiary.repository.js";
1
+ export * from "./beneficiary.api-contract.js";
2
2
  export * from "./beneficiary.dtos.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";
3
+ export { Beneficiary, type BeneficiaryJSON, BeneficiaryJSONSchema, } from "./beneficiary.model.js";
4
+ export * from "./beneficiary.repository.js";
5
+ export { BankBeneficiaryInfo, type BankBeneficiaryJSON, BankBeneficiaryJSONSchema, BeneficiaryError, BeneficiaryInfo, BeneficiaryInfoFactory, type BeneficiaryJSON as BeneficiaryInfoJSON, BeneficiaryJSONSchema as BeneficiaryInfoJSONSchema, MobileBeneficiaryInfo, type MobileBeneficiaryJSON, MobileBeneficiaryJSONSchema, } from "./beneficiary-info.model.js";
5
6
  export * from "./beneficiary-input-handler.js";
6
- export * from "./beneficiary.api-contract.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/beneficiary/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,OAAO,EACL,WAAW,EACX,KAAK,eAAe,EACpB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EACL,mBAAmB,EACnB,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,KAAK,eAAe,IAAI,mBAAmB,EAC3C,qBAAqB,IAAI,yBAAyB,EAClD,qBAAqB,EACrB,KAAK,qBAAqB,EAC1B,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AACrC,cAAc,gCAAgC,CAAC"}
@@ -2,3 +2,4 @@ export * from "./login.dtos.js";
2
2
  export * from "./login.model.js";
3
3
  export * from "./login.repository.js";
4
4
  export * from "./permission.type.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/login/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC"}
@@ -18,34 +18,9 @@ export declare const identityContract: {
18
18
  resetPassword: import("zod").ZodBoolean;
19
19
  createdAt: import("zod").ZodString;
20
20
  updatedAt: import("zod").ZodString;
21
- access: import("zod").ZodArray<import("zod").ZodString, "many">;
22
- }, "strip", import("zod").ZodTypeAny, {
23
- type: string;
24
- name: string;
25
- createdAt: string;
26
- id: string;
27
- profileId: string;
28
- identity: string;
29
- roleId: string;
30
- isActive: boolean;
31
- isArchived: boolean;
32
- resetPassword: boolean;
33
- updatedAt: string;
34
- access: string[];
35
- }, {
36
- type: string;
37
- name: string;
38
- createdAt: string;
39
- id: string;
40
- profileId: string;
41
- identity: string;
42
- roleId: string;
43
- isActive: boolean;
44
- isArchived: boolean;
45
- resetPassword: boolean;
46
- updatedAt: string;
47
- access: string[];
48
- }>;
21
+ access: import("zod").ZodArray<import("zod").ZodString>;
22
+ }, import("zod/v4/core").$strip>;
49
23
  };
50
24
  };
51
25
  };
26
+ //# sourceMappingURL=login.api-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.api-contract.d.ts","sourceRoot":"","sources":["../../../src/modules/login/login.api-contract.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;CAQ3B,CAAC"}
@@ -11,34 +11,8 @@ declare const LogInDTOSchema: z.ZodObject<{
11
11
  resetPassword: z.ZodBoolean;
12
12
  createdAt: z.ZodString;
13
13
  updatedAt: z.ZodString;
14
- access: z.ZodArray<z.ZodString, "many">;
15
- }, "strip", z.ZodTypeAny, {
16
- type: string;
17
- name: string;
18
- createdAt: string;
19
- id: string;
20
- profileId: string;
21
- identity: string;
22
- roleId: string;
23
- isActive: boolean;
24
- isArchived: boolean;
25
- resetPassword: boolean;
26
- updatedAt: string;
27
- access: string[];
28
- }, {
29
- type: string;
30
- name: string;
31
- createdAt: string;
32
- id: string;
33
- profileId: string;
34
- identity: string;
35
- roleId: string;
36
- isActive: boolean;
37
- isArchived: boolean;
38
- resetPassword: boolean;
39
- updatedAt: string;
40
- access: string[];
41
- }>;
14
+ access: z.ZodArray<z.ZodString>;
15
+ }, z.z.core.$strip>;
42
16
  export declare const LogInSchemas: {
43
17
  loginDTO: z.ZodObject<{
44
18
  id: z.ZodString;
@@ -52,34 +26,9 @@ export declare const LogInSchemas: {
52
26
  resetPassword: z.ZodBoolean;
53
27
  createdAt: z.ZodString;
54
28
  updatedAt: z.ZodString;
55
- access: z.ZodArray<z.ZodString, "many">;
56
- }, "strip", z.ZodTypeAny, {
57
- type: string;
58
- name: string;
59
- createdAt: string;
60
- id: string;
61
- profileId: string;
62
- identity: string;
63
- roleId: string;
64
- isActive: boolean;
65
- isArchived: boolean;
66
- resetPassword: boolean;
67
- updatedAt: string;
68
- access: string[];
69
- }, {
70
- type: string;
71
- name: string;
72
- createdAt: string;
73
- id: string;
74
- profileId: string;
75
- identity: string;
76
- roleId: string;
77
- isActive: boolean;
78
- isArchived: boolean;
79
- resetPassword: boolean;
80
- updatedAt: string;
81
- access: string[];
82
- }>;
29
+ access: z.ZodArray<z.ZodString>;
30
+ }, z.z.core.$strip>;
83
31
  };
84
32
  export type LogInDTO = z.infer<typeof LogInDTOSchema>;
85
33
  export {};
34
+ //# sourceMappingURL=login.dtos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.dtos.d.ts","sourceRoot":"","sources":["../../../src/modules/login/login.dtos.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,QAAA,MAAM,cAAc;;;;;;;;;;;;;mBAalB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;CAExB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
- import { LogInDTO } from "./login.dtos.js";
2
- import { Permission } from "./permission.type.js";
3
1
  import { z } from "zod";
2
+ import { type LogInDTO } from "./login.dtos.js";
3
+ import type { Permission } from "./permission.type.js";
4
4
  /**
5
5
  * Zod schema for LogIn JSON serialization
6
6
  * This schema validates the JSON representation of a LogIn instance
@@ -17,37 +17,9 @@ export declare const LogInJSONSchema: z.ZodObject<{
17
17
  resetPassword: z.ZodBoolean;
18
18
  createdAt: z.ZodString;
19
19
  updatedAt: z.ZodString;
20
- access: z.ZodArray<z.ZodString, "many">;
20
+ access: z.ZodArray<z.ZodString>;
21
21
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
22
- }, "strip", z.ZodTypeAny, {
23
- type: string;
24
- name: string;
25
- createdAt: string;
26
- id: string;
27
- _version: string;
28
- profileId: string;
29
- identity: string;
30
- roleId: string;
31
- isActive: boolean;
32
- isArchived: boolean;
33
- resetPassword: boolean;
34
- updatedAt: string;
35
- access: string[];
36
- }, {
37
- type: string;
38
- name: string;
39
- createdAt: string;
40
- id: string;
41
- profileId: string;
42
- identity: string;
43
- roleId: string;
44
- isActive: boolean;
45
- isArchived: boolean;
46
- resetPassword: boolean;
47
- updatedAt: string;
48
- access: string[];
49
- _version?: string | undefined;
50
- }>;
22
+ }, z.core.$strip>;
51
23
  /**
52
24
  * Infer the LogInJSON type from the schema
53
25
  */
@@ -173,8 +145,8 @@ export declare class LogIn {
173
145
  */
174
146
  canAll(permissions: Permission[]): boolean;
175
147
  /**
176
- * Serializes the LogIn instance to a JSON-compatible object
177
- */
148
+ * Serializes the LogIn instance to a JSON-compatible object
149
+ */
178
150
  toJSON(): LogInJSON;
179
151
  /**
180
152
  * Serializes the LogIn instance to a JSON string
@@ -189,3 +161,4 @@ export declare class LogIn {
189
161
  */
190
162
  static isLogInJSON(obj: unknown): obj is LogInJSON;
191
163
  }
164
+ //# sourceMappingURL=login.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.model.d.ts","sourceRoot":"","sources":["../../../src/modules/login/login.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;iBAc1B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;;;;;;;;GASG;AACH,qBAAa,KAAK;IAId,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,WA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,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS;IAoC5D;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,SAAS;CAGnD"}
@@ -1,6 +1,6 @@
1
- import { identityContract } from "./login.api-contract.js";
2
1
  import type { ClientInferResponseBody } from "@ts-rest/core";
3
2
  import { BaseRepository } from "@/lib/api/base-repository.js";
3
+ import { identityContract } from "./login.api-contract.js";
4
4
  type GetUserIdentityResponse = ClientInferResponseBody<typeof identityContract.getUserCredentials>;
5
5
  /**
6
6
  * Repository class for retrieving user identity-related information.
@@ -56,3 +56,4 @@ export declare class IdentityRepository extends BaseRepository<typeof identityCo
56
56
  getIdentity(): Promise<GetUserIdentityResponse>;
57
57
  }
58
58
  export {};
59
+ //# sourceMappingURL=login.repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.repository.d.ts","sourceRoot":"","sources":["../../../src/modules/login/login.repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,KAAK,uBAAuB,GAAG,uBAAuB,CAAC,OAAO,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;AAEnG;;;;;;;;;;;;;;GAcG;AACH,qBAAa,kBAAmB,SAAQ,cAAc,CAAC,OAAO,gBAAgB,CAAC;IAC7E;;;;;;;;;;;;;;OAcG;gBACS,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;IAIvD;;;;;;;;;;;;;;;OAeG;IACG,WAAW,IAAI,OAAO,CAAC,uBAAuB,CAAC;CAStD"}
@@ -52,3 +52,4 @@ export declare const Permissions: {
52
52
  * Permission Type
53
53
  */
54
54
  export type Permission = (typeof Permissions.Profile)[keyof typeof Permissions.Profile] | (typeof Permissions.Beneficiary)[keyof typeof Permissions.Beneficiary] | (typeof Permissions.Payment)[keyof typeof Permissions.Payment] | (typeof Permissions.Payout)[keyof typeof Permissions.Payout] | (typeof Permissions.Transfer)[keyof typeof Permissions.Transfer] | (typeof Permissions.TeamManagement)[keyof typeof Permissions.TeamManagement] | (typeof Permissions.Role)[keyof typeof Permissions.Role] | (typeof Permissions.Wallet)[keyof typeof Permissions.Wallet];
55
+ //# sourceMappingURL=permission.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission.type.d.ts","sourceRoot":"","sources":["../../../src/modules/login/permission.type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Cd,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,OAAO,CAAC,GAC9D,CAAC,OAAO,WAAW,CAAC,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,WAAW,CAAC,GACtE,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,OAAO,CAAC,GAC9D,CAAC,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,MAAM,CAAC,GAC5D,CAAC,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,QAAQ,CAAC,GAChE,CAAC,OAAO,WAAW,CAAC,cAAc,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,cAAc,CAAC,GAC5E,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,IAAI,CAAC,GACxD,CAAC,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
- export * from "./payout.repository.js";
2
1
  export * from "./payout.dtos.js";
3
- export * from "./payout-channel-handler.js";
4
2
  export * from "./payout.model.js";
5
3
  export * from "./payout.query.js";
4
+ export * from "./payout.repository.js";
5
+ export * from "./payout-channel-handler.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/payout/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
@@ -1,8 +1,8 @@
1
- import { Wallet } from "@/modules/wallet/wallet.model.js";
2
- import { Amount, ChannelType, PhoneNumber } from "@temboplus/frontend-core";
3
1
  import type { ISO2CountryCode, MobileMoneyProviderId } from "@temboplus/frontend-core";
4
- import { PayoutChannel, PayoutInputDTO } from "./payout.dtos.js";
5
- import { BankBeneficiaryInfo, BeneficiaryInfo } from "../beneficiary/beneficiary-info.model.js";
2
+ import { type Amount, ChannelType, PhoneNumber } from "@temboplus/frontend-core";
3
+ import type { Wallet } from "@/modules/wallet/wallet.model.js";
4
+ import { BankBeneficiaryInfo, type BeneficiaryInfo } from "../beneficiary/beneficiary-info.model.js";
5
+ import { PayoutChannel, type PayoutInputDTO } from "./payout.dtos.js";
6
6
  export type PayoutChannelCode = PayoutChannel;
7
7
  /**
8
8
  * Resolves the upstream payout channel owned by the library.
@@ -147,3 +147,4 @@ export declare const createPayoutChannelCode: {
147
147
  bank: typeof PayoutChannelResolver.forBank;
148
148
  mobile: typeof PayoutChannelResolver.forMobile;
149
149
  };
150
+ //# sourceMappingURL=payout-channel-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payout-channel-handler.d.ts","sourceRoot":"","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