@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,8 +1,8 @@
1
- import { Profile } from "../profile/profile.model.js";
1
+ import z from "zod";
2
2
  import { LogIn } from "../login/login.model.js";
3
- import { CompanyMembership } from "./company-membership.model.js";
3
+ import { Profile } from "../profile/profile.model.js";
4
4
  import { Role } from "../team-member/role.model.js";
5
- import z from "zod";
5
+ import { CompanyMembership } from "./company-membership.model.js";
6
6
  /**
7
7
  * Zod schema for User JSON serialization
8
8
  * Composes the schemas from nested objects
@@ -20,37 +20,9 @@ export declare const UserJSONSchema: z.ZodObject<{
20
20
  resetPassword: z.ZodBoolean;
21
21
  createdAt: z.ZodString;
22
22
  updatedAt: z.ZodString;
23
- access: z.ZodArray<z.ZodString, "many">;
23
+ access: z.ZodArray<z.ZodString>;
24
24
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
25
- }, "strip", z.ZodTypeAny, {
26
- type: string;
27
- name: string;
28
- createdAt: string;
29
- id: string;
30
- _version: string;
31
- profileId: string;
32
- identity: string;
33
- roleId: string;
34
- isActive: boolean;
35
- isArchived: boolean;
36
- resetPassword: boolean;
37
- updatedAt: string;
38
- access: string[];
39
- }, {
40
- type: string;
41
- name: string;
42
- createdAt: string;
43
- id: string;
44
- profileId: string;
45
- identity: string;
46
- roleId: string;
47
- isActive: boolean;
48
- isArchived: boolean;
49
- resetPassword: boolean;
50
- updatedAt: string;
51
- access: string[];
52
- _version?: string | undefined;
53
- }>;
25
+ }, z.z.core.$strip>;
54
26
  companyProfile: z.ZodObject<{
55
27
  id: z.ZodString;
56
28
  firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -61,128 +33,18 @@ export declare const UserJSONSchema: z.ZodObject<{
61
33
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
34
  autoApprove: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
63
35
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
64
- }, "strip", z.ZodTypeAny, {
65
- id: string;
66
- displayName: string;
67
- accountNo: string;
68
- _version: string;
69
- firstName?: string | null | undefined;
70
- lastName?: string | null | undefined;
71
- phone?: string | null | undefined;
72
- email?: string | null | undefined;
73
- autoApprove?: boolean | null | undefined;
74
- }, {
75
- id: string;
76
- displayName: string;
77
- accountNo: string;
78
- firstName?: string | null | undefined;
79
- lastName?: string | null | undefined;
80
- phone?: string | null | undefined;
81
- email?: string | null | undefined;
82
- autoApprove?: boolean | null | undefined;
83
- _version?: string | undefined;
84
- }>;
36
+ }, z.z.core.$strip>;
85
37
  role: z.ZodOptional<z.ZodObject<{
86
38
  id: z.ZodString;
87
39
  name: z.ZodString;
88
40
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
- access: z.ZodArray<z.ZodString, "many">;
41
+ access: z.ZodArray<z.ZodString>;
90
42
  createdAt: z.ZodString;
91
43
  updatedAt: z.ZodString;
92
44
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
93
- }, "strip", z.ZodTypeAny, {
94
- name: string;
95
- createdAt: string;
96
- id: string;
97
- _version: string;
98
- updatedAt: string;
99
- access: string[];
100
- description?: string | null | undefined;
101
- }, {
102
- name: string;
103
- createdAt: string;
104
- id: string;
105
- updatedAt: string;
106
- access: string[];
107
- _version?: string | undefined;
108
- description?: string | null | undefined;
109
- }>>;
45
+ }, z.z.core.$strip>>;
110
46
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
111
- }, "strip", z.ZodTypeAny, {
112
- _version: string;
113
- companyProfile: {
114
- id: string;
115
- displayName: string;
116
- accountNo: string;
117
- _version: string;
118
- firstName?: string | null | undefined;
119
- lastName?: string | null | undefined;
120
- phone?: string | null | undefined;
121
- email?: string | null | undefined;
122
- autoApprove?: boolean | null | undefined;
123
- };
124
- logIn: {
125
- type: string;
126
- name: string;
127
- createdAt: string;
128
- id: string;
129
- _version: string;
130
- profileId: string;
131
- identity: string;
132
- roleId: string;
133
- isActive: boolean;
134
- isArchived: boolean;
135
- resetPassword: boolean;
136
- updatedAt: string;
137
- access: string[];
138
- };
139
- role?: {
140
- name: string;
141
- createdAt: string;
142
- id: string;
143
- _version: string;
144
- updatedAt: string;
145
- access: string[];
146
- description?: string | null | undefined;
147
- } | undefined;
148
- }, {
149
- companyProfile: {
150
- id: string;
151
- displayName: string;
152
- accountNo: string;
153
- firstName?: string | null | undefined;
154
- lastName?: string | null | undefined;
155
- phone?: string | null | undefined;
156
- email?: string | null | undefined;
157
- autoApprove?: boolean | null | undefined;
158
- _version?: string | undefined;
159
- };
160
- logIn: {
161
- type: string;
162
- name: string;
163
- createdAt: string;
164
- id: string;
165
- profileId: string;
166
- identity: string;
167
- roleId: string;
168
- isActive: boolean;
169
- isArchived: boolean;
170
- resetPassword: boolean;
171
- updatedAt: string;
172
- access: string[];
173
- _version?: string | undefined;
174
- };
175
- _version?: string | undefined;
176
- role?: {
177
- name: string;
178
- createdAt: string;
179
- id: string;
180
- updatedAt: string;
181
- access: string[];
182
- _version?: string | undefined;
183
- description?: string | null | undefined;
184
- } | undefined;
185
- }>;
47
+ }, z.z.core.$strip>;
186
48
  /**
187
49
  * Infer the UserJSON type from the schema
188
50
  */
@@ -269,22 +131,22 @@ export declare class User {
269
131
  */
270
132
  get access(): ReadonlyArray<string>;
271
133
  /**
272
- * Serializes the User instance to a JSON-compatible object
273
- *
274
- * This method creates a complete snapshot of the user session including
275
- * all nested objects (LogIn, Profile, Role). Authentication tokens are kept
276
- * outside of the User model and are not serialized here.
277
- *
278
- * @returns {UserJSON} A plain object containing all necessary User data
279
- *
280
- * @example
281
- * ```typescript
282
- * const user = User.from({ ... });
283
- * const json = user.toJSON();
284
- * // Store in localStorage
285
- * localStorage.setItem('currentUser', JSON.stringify(json));
286
- * ```
287
- */
134
+ * Serializes the User instance to a JSON-compatible object
135
+ *
136
+ * This method creates a complete snapshot of the user session including
137
+ * all nested objects (LogIn, Profile, Role). Authentication tokens are kept
138
+ * outside of the User model and are not serialized here.
139
+ *
140
+ * @returns {UserJSON} A plain object containing all necessary User data
141
+ *
142
+ * @example
143
+ * ```typescript
144
+ * const user = User.from({ ... });
145
+ * const json = user.toJSON();
146
+ * // Store in localStorage
147
+ * localStorage.setItem('currentUser', JSON.stringify(json));
148
+ * ```
149
+ */
288
150
  toJSON(): UserJSON;
289
151
  /**
290
152
  * Serializes the User instance to a JSON string
@@ -322,3 +184,4 @@ export declare class User {
322
184
  */
323
185
  static isUserJSON(obj: unknown): obj is UserJSON;
324
186
  }
187
+ //# sourceMappingURL=user.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/user.model.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,KAAK,EAAmB,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,OAAO,EAAqB,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,IAAI,EAAkB,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAKzB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,KAAK,CAAC;IACb,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,qBAAa,IAAI;IACf,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAoB;IAEhD,OAAO;IAQP;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS;IA2B7C;;OAEG;IACH,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,iBAAiB,CAElC;IAED;;OAEG;IACH,IAAI,EAAE,IAAI,MAAM,CAEf;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,IAAI,GAAG,SAAS,CAE3B;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,aAAa,CAAC,MAAM,CAAC,CAElC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,IAAI,QAAQ;IASlB;;;;OAIG;IACH,YAAY,IAAI,MAAM;IAItB;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS;IA8C1D;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,QAAQ;CAGjD"}
@@ -1,90 +1,52 @@
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";
4
- import { Bank, PhoneNumber } from "@temboplus/frontend-core";
5
1
  import type { BankSwiftCode, ISO2CountryCode, MobileMoneyProvider, MobileMoneyProviderId } from "@temboplus/frontend-core";
2
+ import { Bank, PhoneNumber } from "@temboplus/frontend-core";
6
3
  import { z } from "zod";
4
+ import type { BeneficiaryDTO, BeneficiaryInputDTO } from "@/modules/beneficiary/beneficiary.dtos.js";
5
+ import { BeneficiaryType } from "@/modules/beneficiary/beneficiary.dtos.js";
6
+ import type { PayoutDTO } from "@/modules/payout/payout.dtos.js";
7
7
  export declare const MobileBeneficiaryJSONSchema: z.ZodObject<{
8
8
  type: z.ZodLiteral<BeneficiaryType.MOBILE>;
9
9
  name: z.ZodString;
10
10
  phoneNumber: z.ZodString;
11
- mnoId: z.ZodUnion<[z.ZodEnum<["VODACOM", "AIRTEL", "TIGO", "HALOTEL"]>, z.ZodEnum<["SAFARICOM"]>]>;
11
+ mnoId: z.ZodUnion<readonly [z.ZodEnum<{
12
+ VODACOM: "VODACOM";
13
+ AIRTEL: "AIRTEL";
14
+ TIGO: "TIGO";
15
+ HALOTEL: "HALOTEL";
16
+ }>, z.ZodEnum<{
17
+ SAFARICOM: "SAFARICOM";
18
+ }>]>;
12
19
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
13
- }, "strip", z.ZodTypeAny, {
14
- type: BeneficiaryType.MOBILE;
15
- name: string;
16
- _version: string;
17
- phoneNumber: string;
18
- mnoId: "VODACOM" | "AIRTEL" | "TIGO" | "HALOTEL" | "SAFARICOM";
19
- }, {
20
- type: BeneficiaryType.MOBILE;
21
- name: string;
22
- phoneNumber: string;
23
- mnoId: "VODACOM" | "AIRTEL" | "TIGO" | "HALOTEL" | "SAFARICOM";
24
- _version?: string | undefined;
25
- }>;
20
+ }, z.core.$strip>;
26
21
  export declare const BankBeneficiaryJSONSchema: z.ZodObject<{
27
22
  type: z.ZodLiteral<BeneficiaryType.BANK>;
28
23
  accName: z.ZodString;
29
- swiftCode: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
30
- countryCode: z.ZodEffects<z.ZodString, string, string>;
24
+ swiftCode: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
25
+ countryCode: z.ZodString;
31
26
  accNo: z.ZodString;
32
27
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
33
- }, "strip", z.ZodTypeAny, {
34
- type: BeneficiaryType.BANK;
35
- _version: string;
36
- countryCode: string;
37
- accName: string;
38
- swiftCode: string;
39
- accNo: string;
40
- }, {
41
- type: BeneficiaryType.BANK;
42
- countryCode: string;
43
- accName: string;
44
- swiftCode: string;
45
- accNo: string;
46
- _version?: string | undefined;
47
- }>;
48
- export declare const BeneficiaryJSONSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
28
+ }, z.core.$strip>;
29
+ export declare const BeneficiaryJSONSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
49
30
  type: z.ZodLiteral<BeneficiaryType.MOBILE>;
50
31
  name: z.ZodString;
51
32
  phoneNumber: z.ZodString;
52
- mnoId: z.ZodUnion<[z.ZodEnum<["VODACOM", "AIRTEL", "TIGO", "HALOTEL"]>, z.ZodEnum<["SAFARICOM"]>]>;
33
+ mnoId: z.ZodUnion<readonly [z.ZodEnum<{
34
+ VODACOM: "VODACOM";
35
+ AIRTEL: "AIRTEL";
36
+ TIGO: "TIGO";
37
+ HALOTEL: "HALOTEL";
38
+ }>, z.ZodEnum<{
39
+ SAFARICOM: "SAFARICOM";
40
+ }>]>;
53
41
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
54
- }, "strip", z.ZodTypeAny, {
55
- type: BeneficiaryType.MOBILE;
56
- name: string;
57
- _version: string;
58
- phoneNumber: string;
59
- mnoId: "VODACOM" | "AIRTEL" | "TIGO" | "HALOTEL" | "SAFARICOM";
60
- }, {
61
- type: BeneficiaryType.MOBILE;
62
- name: string;
63
- phoneNumber: string;
64
- mnoId: "VODACOM" | "AIRTEL" | "TIGO" | "HALOTEL" | "SAFARICOM";
65
- _version?: string | undefined;
66
- }>, z.ZodObject<{
42
+ }, z.core.$strip>, z.ZodObject<{
67
43
  type: z.ZodLiteral<BeneficiaryType.BANK>;
68
44
  accName: z.ZodString;
69
- swiftCode: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
70
- countryCode: z.ZodEffects<z.ZodString, string, string>;
45
+ swiftCode: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
46
+ countryCode: z.ZodString;
71
47
  accNo: z.ZodString;
72
48
  _version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
73
- }, "strip", z.ZodTypeAny, {
74
- type: BeneficiaryType.BANK;
75
- _version: string;
76
- countryCode: string;
77
- accName: string;
78
- swiftCode: string;
79
- accNo: string;
80
- }, {
81
- type: BeneficiaryType.BANK;
82
- countryCode: string;
83
- accName: string;
84
- swiftCode: string;
85
- accNo: string;
86
- _version?: string | undefined;
87
- }>]>;
49
+ }, z.core.$strip>], "type">;
88
50
  export type MobileBeneficiaryJSON = z.infer<typeof MobileBeneficiaryJSONSchema>;
89
51
  export type BankBeneficiaryJSON = z.infer<typeof BankBeneficiaryJSONSchema>;
90
52
  export type BeneficiaryJSON = z.infer<typeof BeneficiaryJSONSchema>;
@@ -242,3 +204,4 @@ export declare const BeneficiaryInfo: {
242
204
  isJSON(obj: unknown): obj is BeneficiaryJSON;
243
205
  };
244
206
  export {};
207
+ //# sourceMappingURL=beneficiary-info.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beneficiary-info.model.d.ts","sourceRoot":"","sources":["../../../src/modules/beneficiary/beneficiary-info.model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,IAAI,EAQJ,WAAW,EAIZ,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AACrG,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAMjE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;iBAMtC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;iBAOpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;2BAGhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B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mB,GAAG,eAAe,GAAG,SAAS;6BAI3C,cAAc,GAAG,eAAe,GAAG,SAAS;wBAIjD,SAAS,GAAG,eAAe,GAAG,SAAS;mBAI5C,eAAe,GAAG,MAAM,GAAG,eAAe,GAAG,SAAS;sBAInD,MAAM,GAAG,eAAe,GAAG,SAAS;YAI9C,OAAO,GAAG,GAAG,IAAI,eAAe;gBAI5B,OAAO,GAAG,GAAG,IAAI,eAAe;CAG7C,CAAC"}
@@ -1,5 +1,5 @@
1
- import { BeneficiaryInfo } from "@/modules/beneficiary/beneficiary-info.model.js";
2
- import { BeneficiaryInputDTO } from "./beneficiary.dtos.js";
1
+ import { type BeneficiaryInfo } from "@/modules/beneficiary/beneficiary-info.model.js";
2
+ import { type BeneficiaryInputDTO } from "./beneficiary.dtos.js";
3
3
  /**
4
4
  * Factory for resolving and validating a raw `BeneficiaryInput` into a typed and valid version.
5
5
  */
@@ -14,3 +14,4 @@ export declare class ValidatedBeneficiaryInputFactory {
14
14
  */
15
15
  resolve(data: BeneficiaryInfo): BeneficiaryInputDTO;
16
16
  }
17
+ //# sourceMappingURL=beneficiary-input-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beneficiary-input-handler.d.ts","sourceRoot":"","sources":["../../../src/modules/beneficiary/beneficiary-input-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,KAAK,mBAAmB,EAAmB,MAAM,uBAAuB,CAAC;AA0DlF;;GAEG;AACH,qBAAa,gCAAgC;IAC3C,OAAO,CAAC,QAAQ,CAAiF;IAEjG;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE,eAAe,GAAG,mBAAmB;CASpD"}
@@ -15,18 +15,8 @@ export declare const contract: {
15
15
  displayName: z.ZodString;
16
16
  accountNo: z.ZodString;
17
17
  channel: z.ZodString;
18
- type: z.ZodNativeEnum<typeof import("./beneficiary.dtos.js").BeneficiaryType>;
19
- }, "strip", z.ZodTypeAny, {
20
- type: import("./beneficiary.dtos.js").BeneficiaryType;
21
- displayName: string;
22
- accountNo: string;
23
- channel: string;
24
- }, {
25
- type: import("./beneficiary.dtos.js").BeneficiaryType;
26
- displayName: string;
27
- accountNo: string;
28
- channel: string;
29
- }>;
18
+ type: z.ZodEnum<typeof import("./beneficiary.dtos.js").BeneficiaryType>;
19
+ }, z.core.$strip>;
30
20
  path: "/";
31
21
  responses: {
32
22
  201: z.ZodObject<{
@@ -34,30 +24,11 @@ export declare const contract: {
34
24
  profileId: z.ZodString;
35
25
  createdAt: z.ZodString;
36
26
  updatedAt: z.ZodString;
37
- } & {
38
27
  displayName: z.ZodString;
39
28
  accountNo: z.ZodString;
40
29
  channel: z.ZodString;
41
- type: z.ZodNativeEnum<typeof import("./beneficiary.dtos.js").BeneficiaryType>;
42
- }, "strip", z.ZodTypeAny, {
43
- type: import("./beneficiary.dtos.js").BeneficiaryType;
44
- createdAt: string;
45
- id: string;
46
- displayName: string;
47
- accountNo: string;
48
- profileId: string;
49
- updatedAt: string;
50
- channel: string;
51
- }, {
52
- type: import("./beneficiary.dtos.js").BeneficiaryType;
53
- createdAt: string;
54
- id: string;
55
- displayName: string;
56
- accountNo: string;
57
- profileId: string;
58
- updatedAt: string;
59
- channel: string;
60
- }>;
30
+ type: z.ZodEnum<typeof import("./beneficiary.dtos.js").BeneficiaryType>;
31
+ }, z.core.$strip>;
61
32
  };
62
33
  };
63
34
  editBeneficiary: {
@@ -66,18 +37,8 @@ export declare const contract: {
66
37
  displayName: z.ZodString;
67
38
  accountNo: z.ZodString;
68
39
  channel: z.ZodString;
69
- type: z.ZodNativeEnum<typeof import("./beneficiary.dtos.js").BeneficiaryType>;
70
- }, "strip", z.ZodTypeAny, {
71
- type: import("./beneficiary.dtos.js").BeneficiaryType;
72
- displayName: string;
73
- accountNo: string;
74
- channel: string;
75
- }, {
76
- type: import("./beneficiary.dtos.js").BeneficiaryType;
77
- displayName: string;
78
- accountNo: string;
79
- channel: string;
80
- }>;
40
+ type: z.ZodEnum<typeof import("./beneficiary.dtos.js").BeneficiaryType>;
41
+ }, z.core.$strip>;
81
42
  path: "/:id";
82
43
  responses: {
83
44
  200: z.ZodObject<{
@@ -85,40 +46,17 @@ export declare const contract: {
85
46
  profileId: z.ZodString;
86
47
  createdAt: z.ZodString;
87
48
  updatedAt: z.ZodString;
88
- } & {
89
49
  displayName: z.ZodString;
90
50
  accountNo: z.ZodString;
91
51
  channel: z.ZodString;
92
- type: z.ZodNativeEnum<typeof import("./beneficiary.dtos.js").BeneficiaryType>;
93
- }, "strip", z.ZodTypeAny, {
94
- type: import("./beneficiary.dtos.js").BeneficiaryType;
95
- createdAt: string;
96
- id: string;
97
- displayName: string;
98
- accountNo: string;
99
- profileId: string;
100
- updatedAt: string;
101
- channel: string;
102
- }, {
103
- type: import("./beneficiary.dtos.js").BeneficiaryType;
104
- createdAt: string;
105
- id: string;
106
- displayName: string;
107
- accountNo: string;
108
- profileId: string;
109
- updatedAt: string;
110
- channel: string;
111
- }>;
52
+ type: z.ZodEnum<typeof import("./beneficiary.dtos.js").BeneficiaryType>;
53
+ }, z.core.$strip>;
112
54
  };
113
55
  };
114
56
  getBeneficiaries: {
115
57
  query: z.ZodObject<{
116
58
  orderByDesc: z.ZodString;
117
- }, "strip", z.ZodTypeAny, {
118
- orderByDesc: string;
119
- }, {
120
- orderByDesc: string;
121
- }>;
59
+ }, z.core.$strip>;
122
60
  method: "GET";
123
61
  path: "/";
124
62
  responses: {
@@ -127,30 +65,11 @@ export declare const contract: {
127
65
  profileId: z.ZodString;
128
66
  createdAt: z.ZodString;
129
67
  updatedAt: z.ZodString;
130
- } & {
131
68
  displayName: z.ZodString;
132
69
  accountNo: z.ZodString;
133
70
  channel: z.ZodString;
134
- type: z.ZodNativeEnum<typeof import("./beneficiary.dtos.js").BeneficiaryType>;
135
- }, "strip", z.ZodTypeAny, {
136
- type: import("./beneficiary.dtos.js").BeneficiaryType;
137
- createdAt: string;
138
- id: string;
139
- displayName: string;
140
- accountNo: string;
141
- profileId: string;
142
- updatedAt: string;
143
- channel: string;
144
- }, {
145
- type: import("./beneficiary.dtos.js").BeneficiaryType;
146
- createdAt: string;
147
- id: string;
148
- displayName: string;
149
- accountNo: string;
150
- profileId: string;
151
- updatedAt: string;
152
- channel: string;
153
- }>, "many">;
71
+ type: z.ZodEnum<typeof import("./beneficiary.dtos.js").BeneficiaryType>;
72
+ }, z.core.$strip>>;
154
73
  };
155
74
  };
156
75
  getByID: {
@@ -162,38 +81,19 @@ export declare const contract: {
162
81
  profileId: z.ZodString;
163
82
  createdAt: z.ZodString;
164
83
  updatedAt: z.ZodString;
165
- } & {
166
84
  displayName: z.ZodString;
167
85
  accountNo: z.ZodString;
168
86
  channel: z.ZodString;
169
- type: z.ZodNativeEnum<typeof import("./beneficiary.dtos.js").BeneficiaryType>;
170
- }, "strip", z.ZodTypeAny, {
171
- type: import("./beneficiary.dtos.js").BeneficiaryType;
172
- createdAt: string;
173
- id: string;
174
- displayName: string;
175
- accountNo: string;
176
- profileId: string;
177
- updatedAt: string;
178
- channel: string;
179
- }, {
180
- type: import("./beneficiary.dtos.js").BeneficiaryType;
181
- createdAt: string;
182
- id: string;
183
- displayName: string;
184
- accountNo: string;
185
- profileId: string;
186
- updatedAt: string;
187
- channel: string;
188
- }>;
87
+ type: z.ZodEnum<typeof import("./beneficiary.dtos.js").BeneficiaryType>;
88
+ }, z.core.$strip>;
189
89
  };
190
90
  };
191
91
  deleteBeneficiary: {
192
92
  method: "DELETE";
193
- body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
93
+ body: z.ZodObject<{}, z.core.$strip>;
194
94
  path: "/:id";
195
95
  responses: {
196
- 200: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
96
+ 200: z.ZodObject<{}, z.core.$strip>;
197
97
  };
198
98
  };
199
99
  };
@@ -201,3 +101,4 @@ export declare const contract: {
201
101
  * Export type for use in client implementations
202
102
  */
203
103
  export type BeneficiaryAPI = typeof contract;
104
+ //# sourceMappingURL=beneficiary.api-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beneficiary.api-contract.d.ts","sourceRoot":"","sources":["../../../src/modules/beneficiary/beneficiary.api-contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCnB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,QAAQ,CAAC"}
@@ -38,47 +38,19 @@ export declare const BeneficiaryDTOSchemas: {
38
38
  profileId: z.ZodString;
39
39
  createdAt: z.ZodString;
40
40
  updatedAt: z.ZodString;
41
- } & {
42
41
  displayName: z.ZodString;
43
42
  accountNo: z.ZodString;
44
43
  channel: z.ZodString;
45
- type: z.ZodNativeEnum<typeof BeneficiaryType>;
46
- }, "strip", z.ZodTypeAny, {
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
- }, {
56
- type: BeneficiaryType;
57
- createdAt: string;
58
- id: string;
59
- displayName: string;
60
- accountNo: string;
61
- profileId: string;
62
- updatedAt: string;
63
- channel: string;
64
- }>;
44
+ type: z.ZodEnum<typeof BeneficiaryType>;
45
+ }, z.core.$strip>;
65
46
  /** Schema for beneficiary input validation */
66
47
  beneficiaryInputDTO: z.ZodObject<{
67
48
  displayName: z.ZodString;
68
49
  accountNo: z.ZodString;
69
50
  channel: z.ZodString;
70
- type: z.ZodNativeEnum<typeof BeneficiaryType>;
71
- }, "strip", z.ZodTypeAny, {
72
- type: BeneficiaryType;
73
- displayName: string;
74
- accountNo: string;
75
- channel: string;
76
- }, {
77
- type: BeneficiaryType;
78
- displayName: string;
79
- accountNo: string;
80
- channel: string;
81
- }>;
51
+ type: z.ZodEnum<typeof BeneficiaryType>;
52
+ }, z.core.$strip>;
82
53
  /** Schema for beneficiary channel types */
83
- beneficiaryType: z.ZodNativeEnum<typeof BeneficiaryType>;
54
+ beneficiaryType: z.ZodEnum<typeof BeneficiaryType>;
84
55
  };
56
+ //# sourceMappingURL=beneficiary.dtos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beneficiary.dtos.d.ts","sourceRoot":"","sources":["../../../src/modules/beneficiary/beneficiary.dtos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;GASG;AACH,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAID;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,mBAAmB,CAAC,CAAC;AAsC5F;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,cAAc,CAAC,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,qBAAqB;IAChC,8CAA8C;;;;;;;;;;;IAE9C,8CAA8C;;;;;;;IAE9C,2CAA2C;;CAE5C,CAAC"}