@temboplus/afloat 0.1.76-beta.0 → 0.1.77-beta.2

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 (33) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/lib/error/error.permission.d.ts +1 -1
  7. package/dist/modules/auth/auth.contract.d.ts +4 -4
  8. package/dist/modules/auth/auth.manager.d.ts +1 -1
  9. package/dist/modules/auth/company-membership.model.d.ts +58 -0
  10. package/dist/modules/auth/index.d.ts +1 -1
  11. package/dist/modules/auth/user.model.d.ts +107 -33
  12. package/dist/modules/contact/contact.api-contract.d.ts +16 -16
  13. package/dist/modules/contact/contact.dtos.d.ts +4 -4
  14. package/dist/modules/login/index.d.ts +2 -0
  15. package/dist/modules/login/login.api-contract.d.ts +34 -5
  16. package/dist/modules/login/login.dtos.d.ts +85 -0
  17. package/dist/modules/login/login.model.d.ts +138 -1
  18. package/dist/modules/{auth → login}/permission.type.d.ts +8 -8
  19. package/dist/modules/payout/payout.api-contract.d.ts +46 -46
  20. package/dist/modules/payout/payout.dtos.d.ts +24 -24
  21. package/dist/modules/team-member/index.d.ts +4 -0
  22. package/dist/modules/{user → team-member}/role.model.d.ts +2 -2
  23. package/dist/modules/{user/user.contract.d.ts → team-member/team-member.contract.d.ts} +238 -127
  24. package/dist/modules/team-member/team-member.dtos.d.ts +261 -0
  25. package/dist/modules/team-member/team-member.model.d.ts +137 -0
  26. package/dist/modules/team-member/team-member.repository.d.ts +179 -0
  27. package/dist/modules/wallet/wallet.contract.d.ts +4 -4
  28. package/dist/modules/wallet/wallet.dtos.d.ts +8 -8
  29. package/package.json +1 -1
  30. package/dist/modules/user/index.d.ts +0 -4
  31. package/dist/modules/user/user.dtos.d.ts +0 -145
  32. package/dist/modules/user/user.model.d.ts +0 -108
  33. package/dist/modules/user/user.repository.d.ts +0 -179
@@ -0,0 +1,261 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Collection of team management schemas for export.
4
+ * Provides access to all team member and role validation schemas.
5
+ */
6
+ export declare const TeamManagementDTOSchemas: {
7
+ role: z.ZodObject<{
8
+ id: z.ZodString;
9
+ name: z.ZodString;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ access: z.ZodArray<z.ZodString, "many">;
12
+ createdAt: z.ZodString;
13
+ updatedAt: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ name: string;
16
+ id: string;
17
+ createdAt: string;
18
+ updatedAt: string;
19
+ access: string[];
20
+ description?: string | undefined;
21
+ }, {
22
+ name: string;
23
+ id: string;
24
+ createdAt: string;
25
+ updatedAt: string;
26
+ access: string[];
27
+ description?: string | undefined;
28
+ }>;
29
+ teamMember: z.ZodObject<{
30
+ id: z.ZodString;
31
+ name: z.ZodString;
32
+ identity: z.ZodString;
33
+ type: z.ZodString;
34
+ profileId: z.ZodString;
35
+ roleId: z.ZodString;
36
+ resetPassword: z.ZodBoolean;
37
+ isActive: z.ZodBoolean;
38
+ isArchived: z.ZodBoolean;
39
+ role: z.ZodOptional<z.ZodObject<{
40
+ id: z.ZodString;
41
+ name: z.ZodString;
42
+ description: z.ZodOptional<z.ZodString>;
43
+ access: z.ZodArray<z.ZodString, "many">;
44
+ createdAt: z.ZodString;
45
+ updatedAt: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ name: string;
48
+ id: string;
49
+ createdAt: string;
50
+ updatedAt: string;
51
+ access: string[];
52
+ description?: string | undefined;
53
+ }, {
54
+ name: string;
55
+ id: string;
56
+ createdAt: string;
57
+ updatedAt: string;
58
+ access: string[];
59
+ description?: string | undefined;
60
+ }>>;
61
+ createdAt: z.ZodString;
62
+ updatedAt: z.ZodString;
63
+ }, "strip", z.ZodTypeAny, {
64
+ type: string;
65
+ name: string;
66
+ id: string;
67
+ profileId: string;
68
+ identity: string;
69
+ roleId: string;
70
+ isActive: boolean;
71
+ isArchived: boolean;
72
+ resetPassword: boolean;
73
+ createdAt: string;
74
+ updatedAt: string;
75
+ role?: {
76
+ name: string;
77
+ id: string;
78
+ createdAt: string;
79
+ updatedAt: string;
80
+ access: string[];
81
+ description?: string | undefined;
82
+ } | undefined;
83
+ }, {
84
+ type: string;
85
+ name: string;
86
+ id: string;
87
+ profileId: string;
88
+ identity: string;
89
+ roleId: string;
90
+ isActive: boolean;
91
+ isArchived: boolean;
92
+ resetPassword: boolean;
93
+ createdAt: string;
94
+ updatedAt: string;
95
+ role?: {
96
+ name: string;
97
+ id: string;
98
+ createdAt: string;
99
+ updatedAt: string;
100
+ access: string[];
101
+ description?: string | undefined;
102
+ } | undefined;
103
+ }>;
104
+ teamMemberQueryParams: z.ZodObject<{
105
+ id: z.ZodOptional<z.ZodString>;
106
+ name: z.ZodOptional<z.ZodString>;
107
+ identity: z.ZodOptional<z.ZodString>;
108
+ type: z.ZodOptional<z.ZodString>;
109
+ profileId: z.ZodOptional<z.ZodString>;
110
+ roleId: z.ZodOptional<z.ZodString>;
111
+ resetPassword: z.ZodOptional<z.ZodNumber>;
112
+ isActive: z.ZodOptional<z.ZodNumber>;
113
+ isArchived: z.ZodOptional<z.ZodNumber>;
114
+ createdAt: z.ZodOptional<z.ZodString>;
115
+ updatedAt: z.ZodOptional<z.ZodString>;
116
+ eager: z.ZodOptional<z.ZodString>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ type?: string | undefined;
119
+ name?: string | undefined;
120
+ id?: string | undefined;
121
+ profileId?: string | undefined;
122
+ identity?: string | undefined;
123
+ roleId?: string | undefined;
124
+ isActive?: number | undefined;
125
+ isArchived?: number | undefined;
126
+ resetPassword?: number | undefined;
127
+ createdAt?: string | undefined;
128
+ updatedAt?: string | undefined;
129
+ eager?: string | undefined;
130
+ }, {
131
+ type?: string | undefined;
132
+ name?: string | undefined;
133
+ id?: string | undefined;
134
+ profileId?: string | undefined;
135
+ identity?: string | undefined;
136
+ roleId?: string | undefined;
137
+ isActive?: number | undefined;
138
+ isArchived?: number | undefined;
139
+ resetPassword?: number | undefined;
140
+ createdAt?: string | undefined;
141
+ updatedAt?: string | undefined;
142
+ eager?: string | undefined;
143
+ }>;
144
+ createTeamMemberRequest: z.ZodObject<{
145
+ name: z.ZodString;
146
+ identity: z.ZodString;
147
+ password: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
148
+ roleId: z.ZodOptional<z.ZodString>;
149
+ resetPassword: z.ZodOptional<z.ZodBoolean>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ name: string;
152
+ identity: string;
153
+ roleId?: string | undefined;
154
+ resetPassword?: boolean | undefined;
155
+ password?: string | undefined;
156
+ }, {
157
+ name: string;
158
+ identity: string;
159
+ roleId?: string | undefined;
160
+ resetPassword?: boolean | undefined;
161
+ password?: string | undefined;
162
+ }>;
163
+ updateTeamMemberRequest: z.ZodObject<{
164
+ name: z.ZodOptional<z.ZodString>;
165
+ roleId: z.ZodOptional<z.ZodString>;
166
+ password: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
167
+ resetPassword: z.ZodOptional<z.ZodBoolean>;
168
+ isActive: z.ZodOptional<z.ZodBoolean>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ name?: string | undefined;
171
+ roleId?: string | undefined;
172
+ isActive?: boolean | undefined;
173
+ resetPassword?: boolean | undefined;
174
+ password?: string | undefined;
175
+ }, {
176
+ name?: string | undefined;
177
+ roleId?: string | undefined;
178
+ isActive?: boolean | undefined;
179
+ resetPassword?: boolean | undefined;
180
+ password?: string | undefined;
181
+ }>;
182
+ resetPasswordRequest: z.ZodObject<{
183
+ newPassword: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
184
+ sendNotification: z.ZodOptional<z.ZodBoolean>;
185
+ }, "strip", z.ZodTypeAny, {
186
+ newPassword?: string | undefined;
187
+ sendNotification?: boolean | undefined;
188
+ }, {
189
+ newPassword?: string | undefined;
190
+ sendNotification?: boolean | undefined;
191
+ }>;
192
+ createTeamMemberResponse: z.ZodObject<{
193
+ id: z.ZodString;
194
+ name: z.ZodString;
195
+ identity: z.ZodString;
196
+ type: z.ZodString;
197
+ profileId: z.ZodString;
198
+ resetPassword: z.ZodBoolean;
199
+ roleId: z.ZodString;
200
+ isActive: z.ZodBoolean;
201
+ isArchived: z.ZodBoolean;
202
+ createdAt: z.ZodString;
203
+ updatedAt: z.ZodString;
204
+ }, "strip", z.ZodTypeAny, {
205
+ type: string;
206
+ name: string;
207
+ id: string;
208
+ profileId: string;
209
+ identity: string;
210
+ roleId: string;
211
+ isActive: boolean;
212
+ isArchived: boolean;
213
+ resetPassword: boolean;
214
+ createdAt: string;
215
+ updatedAt: string;
216
+ }, {
217
+ type: string;
218
+ name: string;
219
+ id: string;
220
+ profileId: string;
221
+ identity: string;
222
+ roleId: string;
223
+ isActive: boolean;
224
+ isArchived: boolean;
225
+ resetPassword: boolean;
226
+ createdAt: string;
227
+ updatedAt: string;
228
+ }>;
229
+ password: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
230
+ };
231
+ /**
232
+ * TypeScript type for a validated role object.
233
+ * Use this type for role instances that have been validated against the schema.
234
+ */
235
+ export type RoleDTO = z.infer<typeof TeamManagementDTOSchemas.role>;
236
+ /**
237
+ * TypeScript type for a create team member request object.
238
+ * Use this type for team member creation requests that have been validated against the schema.
239
+ */
240
+ export type CreateTeamMemberRequestDTO = z.infer<typeof TeamManagementDTOSchemas.createTeamMemberRequest>;
241
+ /**
242
+ * TypeScript type for an update team member request object.
243
+ * Use this type for team member update requests that have been validated against the schema.
244
+ */
245
+ export type UpdateTeamMemberRequestDTO = z.infer<typeof TeamManagementDTOSchemas.updateTeamMemberRequest>;
246
+ /**
247
+ * TypeScript type for a reset password request object.
248
+ * Use this type for password reset requests that have been validated against the schema.
249
+ */
250
+ export type ResetPasswordRequestDTO = z.infer<typeof TeamManagementDTOSchemas.resetPasswordRequest>;
251
+ /**
252
+ * TypeScript type for a create team member response object.
253
+ * Use this type for team member creation responses that have been validated against the schema.
254
+ */
255
+ export type CreateTeamMemberResponseDTO = z.infer<typeof TeamManagementDTOSchemas.createTeamMemberResponse>;
256
+ /**
257
+ * TypeScript type for team member query parameters.
258
+ * Use this type for query parameter objects that have been validated against the schema.
259
+ * All fields are optional to allow flexible filtering and searching.
260
+ */
261
+ export type TeamMemberQueryParamsDTO = z.infer<typeof TeamManagementDTOSchemas.teamMemberQueryParams>;
@@ -0,0 +1,137 @@
1
+ import { Role } from "./role.model.js";
2
+ import { RoleDTO } from "./team-member.dtos.js";
3
+ export interface TeamMemberData {
4
+ id: string;
5
+ name: string;
6
+ identity: string;
7
+ type: string;
8
+ profileId: string;
9
+ roleId: string;
10
+ resetPassword: boolean;
11
+ isActive: boolean;
12
+ isArchived: boolean;
13
+ role?: RoleDTO;
14
+ createdAt: string;
15
+ updatedAt: string;
16
+ }
17
+ /**
18
+ * Represents a team member from the admin management perspective.
19
+ *
20
+ * This is how administrators view and manage people in the system.
21
+ * When a team member logs in, they become a User (authenticated session).
22
+ *
23
+ * TeamMember includes management metadata like:
24
+ * - isActive, isArchived (account status)
25
+ * - createdAt, updatedAt (audit trail)
26
+ * - role (their assigned role with permissions)
27
+ */
28
+ export declare class TeamMember {
29
+ readonly id: string;
30
+ readonly name: string;
31
+ readonly identity: string;
32
+ readonly type: string;
33
+ readonly profileId: string;
34
+ readonly roleId: string;
35
+ readonly resetPassword: boolean;
36
+ readonly isActive: boolean;
37
+ readonly isArchived: boolean;
38
+ readonly role?: Role;
39
+ readonly createdAt: Date;
40
+ readonly updatedAt: Date;
41
+ readonly permissions: ReadonlySet<string>;
42
+ private constructor();
43
+ /**
44
+ * Creates a TeamMember instance from a DTO.
45
+ *
46
+ * @param data - Team member data from the API
47
+ * @returns A new TeamMember instance, or undefined if data is invalid
48
+ *
49
+ * @example
50
+ * ```typescript
51
+ * const member = TeamMember.from({
52
+ * id: "member-123",
53
+ * name: "John Doe",
54
+ * identity: "john@example.com",
55
+ * roleId: "role-456",
56
+ * // ... other fields
57
+ * });
58
+ * ```
59
+ */
60
+ static from(data: TeamMemberData): TeamMember | undefined;
61
+ /**
62
+ * Creates a TeamMember instance from a JSON string.
63
+ *
64
+ * @param jsonString - JSON string containing team member data
65
+ * @returns A new TeamMember instance, or undefined if parsing failed
66
+ */
67
+ static fromJson(jsonString: string): TeamMember | undefined;
68
+ /**
69
+ * Creates multiple TeamMember instances from an array of data.
70
+ *
71
+ * @param dataArray - Array of team member data
72
+ * @returns Array of TeamMember instances (filters out invalid entries)
73
+ *
74
+ * @example
75
+ * ```typescript
76
+ * const members = TeamMember.createMany(apiResponse.data);
77
+ * ```
78
+ */
79
+ static createMany(dataArray: any[]): TeamMember[];
80
+ /**
81
+ * Check if team member has a specific permission
82
+ */
83
+ can(permission: string): boolean;
84
+ /**
85
+ * Check if team member has any of the specified permissions
86
+ */
87
+ canAny(permissions: string[]): boolean;
88
+ /**
89
+ * Check if team member has all of the specified permissions
90
+ */
91
+ canAll(permissions: string[]): boolean;
92
+ /**
93
+ * Check if team member account is active
94
+ */
95
+ isAccountActive(): boolean;
96
+ /**
97
+ * Check if team member account is archived
98
+ */
99
+ isAccountArchived(): boolean;
100
+ /**
101
+ * Check if team member needs to reset password
102
+ */
103
+ needsPasswordReset(): boolean;
104
+ /**
105
+ * Get comprehensive account status
106
+ */
107
+ getAccountStatus(): {
108
+ status: "active" | "inactive" | "archived" | "password_reset_required";
109
+ label: string;
110
+ color: "success" | "warning" | "error" | "default";
111
+ description: string;
112
+ };
113
+ /**
114
+ * Get role display name
115
+ */
116
+ getRoleName(): string;
117
+ /**
118
+ * Get formatted creation date
119
+ */
120
+ getCreatedDate(): string;
121
+ /**
122
+ * Get time since last update
123
+ */
124
+ getLastUpdateInfo(): string;
125
+ /**
126
+ * Converts the TeamMember instance to a plain object.
127
+ */
128
+ toObject(): any;
129
+ /**
130
+ * Converts the TeamMember instance to a JSON string.
131
+ */
132
+ toJson(): string;
133
+ /**
134
+ * Alias for toJson() to maintain consistency with other models
135
+ */
136
+ toJSON(): any;
137
+ }
@@ -0,0 +1,179 @@
1
+ import { BaseRepository } from "@/lib/api/base-repository.js";
2
+ import { teamManagementContract } from "./team-member.contract.js";
3
+ import { Role } from "./role.model.js";
4
+ import { CreateTeamMemberRequestDTO, CreateTeamMemberResponseDTO, UpdateTeamMemberRequestDTO, ResetPasswordRequestDTO, TeamMemberQueryParamsDTO } from "./team-member.dtos.js";
5
+ import { TeamMember } from "./team-member.model.js";
6
+ /**
7
+ * Repository class for managing team members through API interactions.
8
+ * Handles team member creation, updates, archiving, and role management.
9
+ *
10
+ * This repository handles pure API communication without permission checking.
11
+ * Permission validation should be handled at the service layer or route handlers.
12
+ *
13
+ * @extends {BaseRepository<typeof teamManagementContract>}
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * const repo = new TeamMemberRepository({ token: adminToken });
18
+ * const members = await repo.getAllTeamMembers();
19
+ * ```
20
+ */
21
+ export declare class TeamMemberRepository extends BaseRepository<typeof teamManagementContract> {
22
+ /**
23
+ * Creates an instance of TeamMemberRepository using the team management contract.
24
+ *
25
+ * @param options - Optional configuration
26
+ * @param options.token - Authentication token for API calls
27
+ * @param options.root - Custom API root URL
28
+ *
29
+ * @example
30
+ * ```typescript
31
+ * const repo = new TeamMemberRepository({
32
+ * token: "admin-auth-token",
33
+ * root: "https://api-staging.afloat.money/v1"
34
+ * });
35
+ * ```
36
+ */
37
+ constructor(options?: {
38
+ token?: string;
39
+ root?: string;
40
+ });
41
+ /**
42
+ * Creates a new team member account.
43
+ *
44
+ * @param input - The data required to create a new team member
45
+ * @returns Promise that resolves to the newly created team member response
46
+ * @throws {APIError} If the creation operation fails
47
+ *
48
+ * @example
49
+ * ```typescript
50
+ * const newMember = await repo.createTeamMember({
51
+ * identity: "newmember@example.com",
52
+ * name: "New Member",
53
+ * roleId: "role-id"
54
+ * });
55
+ * ```
56
+ */
57
+ createTeamMember(input: CreateTeamMemberRequestDTO): Promise<CreateTeamMemberResponseDTO>;
58
+ /**
59
+ * Updates an existing team member by ID.
60
+ *
61
+ * @param id - The unique identifier of the team member to update
62
+ * @param input - The data to update the team member with
63
+ * @returns Promise that resolves to the updated team member
64
+ * @throws {APIError} If the update operation fails
65
+ *
66
+ * @example
67
+ * ```typescript
68
+ * const updatedMember = await repo.updateTeamMember("member-id", {
69
+ * name: "Updated Name",
70
+ * roleId: "new-role-id"
71
+ * });
72
+ * ```
73
+ */
74
+ updateTeamMember(id: string, input: UpdateTeamMemberRequestDTO): Promise<TeamMember>;
75
+ /**
76
+ * Archives (soft deletes) a team member by ID.
77
+ *
78
+ * @param id - The unique identifier of the team member to archive
79
+ * @returns Promise that resolves to the updated team member object
80
+ * @throws {APIError} If the archive operation fails
81
+ *
82
+ * @example
83
+ * ```typescript
84
+ * const archivedMember = await repo.archiveTeamMember("member-id");
85
+ * ```
86
+ */
87
+ archiveTeamMember(id: string): Promise<TeamMember>;
88
+ /**
89
+ * Unarchives a previously archived team member by ID.
90
+ *
91
+ * @param id - The unique identifier of the team member to unarchive
92
+ * @returns Promise that resolves to the updated team member object
93
+ * @throws {APIError} If the unarchive operation fails
94
+ *
95
+ * @example
96
+ * ```typescript
97
+ * const restoredMember = await repo.unArchiveTeamMember("member-id");
98
+ * ```
99
+ */
100
+ unArchiveTeamMember(id: string): Promise<TeamMember>;
101
+ /**
102
+ * Resets a team member's password.
103
+ *
104
+ * @param id - The unique identifier of the team member
105
+ * @param input - Optional password reset configuration
106
+ * @returns Promise that resolves to success status
107
+ * @throws {APIError} If the password reset operation fails
108
+ *
109
+ * @example
110
+ * ```typescript
111
+ * const result = await repo.resetTeamMemberPassword("member-id", {
112
+ * sendNotification: true
113
+ * });
114
+ * ```
115
+ */
116
+ resetTeamMemberPassword(id: string, input?: ResetPasswordRequestDTO): Promise<{
117
+ success: boolean;
118
+ }>;
119
+ /**
120
+ * Retrieves all team members.
121
+ * Results are ordered in descending order by creation date by default.
122
+ *
123
+ * @param query - Optional query parameters for filtering and eager loading
124
+ * @returns Promise that resolves to an array of team members
125
+ * @throws {APIError} If the fetch operation fails
126
+ *
127
+ * @example
128
+ * ```typescript
129
+ * // Get all team members with role information
130
+ * const members = await repo.getAllTeamMembers({ eager: "role" });
131
+ *
132
+ * // Get team members with custom query
133
+ * const activeMembers = await repo.getAllTeamMembers({ isActive: 1 });
134
+ * ```
135
+ */
136
+ getAllTeamMembers(query?: TeamMemberQueryParamsDTO): Promise<TeamMember[]>;
137
+ /**
138
+ * Retrieves a specific team member by ID.
139
+ *
140
+ * @param id - The unique identifier of the team member to retrieve
141
+ * @param query - Optional query parameters for eager loading
142
+ * @returns Promise that resolves to the team member
143
+ * @throws {APIError} If the team member is not found or fetch operation fails
144
+ *
145
+ * @example
146
+ * ```typescript
147
+ * const member = await repo.getTeamMember("member-id", { eager: "role" });
148
+ * console.log(`Member: ${member.name}, Role: ${member.role?.name}`);
149
+ * ```
150
+ */
151
+ getTeamMember(id: string, query?: TeamMemberQueryParamsDTO): Promise<TeamMember>;
152
+ /**
153
+ * Retrieves all available roles in the system.
154
+ *
155
+ * @returns Promise that resolves to an array of roles
156
+ * @throws {APIError} If the fetch operation fails
157
+ *
158
+ * @example
159
+ * ```typescript
160
+ * const roles = await repo.getAllRoles();
161
+ * roles.forEach(role => console.log(`Role: ${role.name}`));
162
+ * ```
163
+ */
164
+ getAllRoles(): Promise<Role[]>;
165
+ /**
166
+ * Retrieves a specific role by ID.
167
+ *
168
+ * @param id - The unique identifier of the role to retrieve
169
+ * @returns Promise that resolves to the role
170
+ * @throws {APIError} If the role is not found or fetch operation fails
171
+ *
172
+ * @example
173
+ * ```typescript
174
+ * const role = await repo.getRole("role-id");
175
+ * console.log(`Role: ${role.name}, Permissions: ${role.permissions.size}`);
176
+ * ```
177
+ */
178
+ getRole(id: string): Promise<Role>;
179
+ }
@@ -42,21 +42,21 @@ export declare const contract: {
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  id: string;
44
44
  accountNo: string;
45
- createdAt: string;
46
45
  profileId: string;
46
+ createdAt: string;
47
+ updatedAt: string;
47
48
  accountName: string;
48
49
  channel: string;
49
50
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
50
51
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
51
- updatedAt: string;
52
52
  }, {
53
53
  id: string;
54
54
  accountNo: string;
55
- createdAt: string;
56
55
  profileId: string;
56
+ createdAt: string;
57
+ updatedAt: string;
57
58
  accountName: string;
58
59
  channel: string;
59
- updatedAt: string;
60
60
  countryCode?: string | undefined;
61
61
  currencyCode?: string | undefined;
62
62
  }>, "many">;
@@ -17,21 +17,21 @@ declare const walletSchema: z.ZodObject<{
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  id: string;
19
19
  accountNo: string;
20
- createdAt: string;
21
20
  profileId: string;
21
+ createdAt: string;
22
+ updatedAt: string;
22
23
  accountName: string;
23
24
  channel: string;
24
25
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
25
26
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
26
- updatedAt: string;
27
27
  }, {
28
28
  id: string;
29
29
  accountNo: string;
30
- createdAt: string;
31
30
  profileId: string;
31
+ createdAt: string;
32
+ updatedAt: string;
32
33
  accountName: string;
33
34
  channel: string;
34
- updatedAt: string;
35
35
  countryCode?: string | undefined;
36
36
  currencyCode?: string | undefined;
37
37
  }>;
@@ -120,21 +120,21 @@ export declare const WalletDTOSchemas: {
120
120
  }, "strip", z.ZodTypeAny, {
121
121
  id: string;
122
122
  accountNo: string;
123
- createdAt: string;
124
123
  profileId: string;
124
+ createdAt: string;
125
+ updatedAt: string;
125
126
  accountName: string;
126
127
  channel: string;
127
128
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
128
129
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
129
- updatedAt: string;
130
130
  }, {
131
131
  id: string;
132
132
  accountNo: string;
133
- createdAt: string;
134
133
  profileId: string;
134
+ createdAt: string;
135
+ updatedAt: string;
135
136
  accountName: string;
136
137
  channel: string;
137
- updatedAt: string;
138
138
  countryCode?: string | undefined;
139
139
  currencyCode?: string | undefined;
140
140
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temboplus/afloat",
3
- "version": "0.1.76-beta.0",
3
+ "version": "0.1.77-beta.2",
4
4
  "description": "A foundational library for Temboplus-Afloat projects.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -1,4 +0,0 @@
1
- export * from "./user.repository.js";
2
- export * from "./user.dtos.js";
3
- export * from "./user.model.js";
4
- export * from "./role.model.js";