@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
@@ -1 +1,138 @@
1
- export {};
1
+ import { LogInDTO } from "./login.dtos.js";
2
+ export type LogInJson = {
3
+ id: string;
4
+ profileId: string;
5
+ name: string;
6
+ identity: string;
7
+ type: string;
8
+ roleId: string;
9
+ isActive: boolean;
10
+ isArchived: boolean;
11
+ resetPassword: boolean;
12
+ createdAt: string;
13
+ updatedAt: string;
14
+ access: string[];
15
+ };
16
+ /**
17
+ * Represents the authenticated user's identity and account information.
18
+ *
19
+ * This class encapsulates the complete user account data returned from /login/me:
20
+ * - Basic identity: name, email (identity)
21
+ * - Account metadata: id, profileId, type, roleId
22
+ * - Account status: isActive, isArchived, resetPassword
23
+ * - Permissions: access array
24
+ * - Audit trail: createdAt, updatedAt
25
+ */
26
+ export declare class LogIn {
27
+ private readonly _id;
28
+ private readonly _profileId;
29
+ private readonly _name;
30
+ private readonly _identity;
31
+ private readonly _type;
32
+ private readonly _roleId;
33
+ private readonly _isActive;
34
+ private readonly _isArchived;
35
+ private readonly _resetPassword;
36
+ private readonly _createdAt;
37
+ private readonly _updatedAt;
38
+ private readonly _access;
39
+ private constructor();
40
+ /**
41
+ * Creates a LogIn instance from a validated DTO.
42
+ *
43
+ * @param dto - The login data transfer object from /login/me endpoint
44
+ * @returns A new LogIn instance
45
+ * @throws {ZodError} If the DTO fails validation
46
+ *
47
+ * @example
48
+ * ```typescript
49
+ * const logIn = LogIn.from({
50
+ * id: "n4mpb2HqHUlg",
51
+ * profileId: "M63ZW3q5Mg0n",
52
+ * name: "Admin",
53
+ * identity: "admin@test.temboplus.com",
54
+ * type: "password",
55
+ * roleId: "4jS7pR8E9K6W",
56
+ * isActive: true,
57
+ * isArchived: false,
58
+ * resetPassword: false,
59
+ * createdAt: "2024-04-25T11:13:00.000Z",
60
+ * updatedAt: "2024-04-25T11:13:00.000Z",
61
+ * access: ["profile.getCurrent", "profile.update", ...]
62
+ * });
63
+ * ```
64
+ */
65
+ static from(dto: LogInDTO): LogIn;
66
+ /**
67
+ * Creates a LogIn instance from a JSON string.
68
+ *
69
+ * @param json - JSON string containing login data
70
+ * @returns A new LogIn instance, or undefined if parsing failed
71
+ *
72
+ * @example
73
+ * ```typescript
74
+ * const logIn = LogIn.fromJson('{"id":"abc","name":"John",...}');
75
+ * ```
76
+ */
77
+ static fromJson(json: string): LogIn | undefined;
78
+ /**
79
+ * Gets the user's unique identifier.
80
+ */
81
+ get id(): string;
82
+ /**
83
+ * Gets the profile ID this user belongs to.
84
+ */
85
+ get profileId(): string;
86
+ /**
87
+ * Gets the user's name.
88
+ */
89
+ get name(): string;
90
+ /**
91
+ * Gets the user's identity (email address).
92
+ */
93
+ get identity(): string;
94
+ /**
95
+ * Gets the user's authentication type (e.g., "password").
96
+ */
97
+ get type(): string;
98
+ /**
99
+ * Gets the user's role ID.
100
+ */
101
+ get roleId(): string;
102
+ /**
103
+ * Gets whether the account is active.
104
+ */
105
+ get isActive(): boolean;
106
+ /**
107
+ * Gets whether the account is archived.
108
+ */
109
+ get isArchived(): boolean;
110
+ /**
111
+ * Gets whether the user must reset their password.
112
+ */
113
+ get resetPassword(): boolean;
114
+ /**
115
+ * Gets the account creation date.
116
+ */
117
+ get createdAt(): Date;
118
+ /**
119
+ * Gets the last update date.
120
+ */
121
+ get updatedAt(): Date;
122
+ /**
123
+ * Gets the user's permissions/access list.
124
+ */
125
+ get access(): ReadonlyArray<string>;
126
+ /**
127
+ * Converts the LogIn instance to a plain object.
128
+ *
129
+ * @returns A plain object representation
130
+ */
131
+ toObject(): LogInJson;
132
+ /**
133
+ * Converts the LogIn instance to a JSON string.
134
+ *
135
+ * @returns A JSON string representation
136
+ */
137
+ toJson(): string;
138
+ }
@@ -38,17 +38,17 @@ export declare const Permissions: {
38
38
  readonly ViewRoles: "role.findAll";
39
39
  readonly ViewRole: "role.findById";
40
40
  };
41
- readonly UserManagement: {
42
- readonly ViewUsers: "login.findAll";
43
- readonly ViewUser: "login.findById";
44
- readonly CreateUser: "login.create";
45
- readonly UpdateUser: "login.update";
46
- readonly ArchiveUser: "login.archive";
47
- readonly UnArchiveUser: "login.unarchive";
41
+ readonly TeamManagement: {
42
+ readonly ViewMembers: "login.findAll";
43
+ readonly ViewMember: "login.findById";
44
+ readonly CreateMember: "login.create";
45
+ readonly UpdateMember: "login.update";
46
+ readonly ArchiveMember: "login.archive";
47
+ readonly UnArchiveMember: "login.unarchive";
48
48
  readonly ResetPassword: "login.resetPassword";
49
49
  };
50
50
  };
51
51
  /**
52
52
  * Permission Type
53
53
  */
54
- export type Permission = (typeof Permissions.Profile)[keyof typeof Permissions.Profile] | (typeof Permissions.Contact)[keyof typeof Permissions.Contact] | (typeof Permissions.Payment)[keyof typeof Permissions.Payment] | (typeof Permissions.Payout)[keyof typeof Permissions.Payout] | (typeof Permissions.Transfer)[keyof typeof Permissions.Transfer] | (typeof Permissions.UserManagement)[keyof typeof Permissions.UserManagement] | (typeof Permissions.Role)[keyof typeof Permissions.Role] | (typeof Permissions.Wallet)[keyof typeof Permissions.Wallet];
54
+ export type Permission = (typeof Permissions.Profile)[keyof typeof Permissions.Profile] | (typeof Permissions.Contact)[keyof typeof Permissions.Contact] | (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];
@@ -67,15 +67,15 @@ export declare const contract: {
67
67
  }, "strip", z.ZodTypeAny, {
68
68
  status: import("./payout.dtos.js").PayoutStatus;
69
69
  id: string;
70
- createdAt: Date;
71
70
  profileId: string;
71
+ createdAt: Date;
72
+ updatedAt: Date;
73
+ description: string;
72
74
  channel: string;
73
75
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
74
76
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
75
- updatedAt: Date;
76
77
  msisdn: string;
77
78
  amount: number;
78
- description: string;
79
79
  payeeName: string;
80
80
  statusMessage: string;
81
81
  notes?: string | null | undefined;
@@ -95,13 +95,13 @@ export declare const contract: {
95
95
  }, {
96
96
  status: import("./payout.dtos.js").PayoutStatus;
97
97
  id: string;
98
- createdAt: Date;
99
98
  profileId: string;
100
- channel: string;
99
+ createdAt: Date;
101
100
  updatedAt: Date;
101
+ description: string;
102
+ channel: string;
102
103
  msisdn: string;
103
104
  amount: number;
104
- description: string;
105
105
  payeeName: string;
106
106
  statusMessage: string;
107
107
  countryCode?: string | undefined;
@@ -127,15 +127,15 @@ export declare const contract: {
127
127
  results: {
128
128
  status: import("./payout.dtos.js").PayoutStatus;
129
129
  id: string;
130
- createdAt: Date;
131
130
  profileId: string;
131
+ createdAt: Date;
132
+ updatedAt: Date;
133
+ description: string;
132
134
  channel: string;
133
135
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
134
136
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
135
- updatedAt: Date;
136
137
  msisdn: string;
137
138
  amount: number;
138
- description: string;
139
139
  payeeName: string;
140
140
  statusMessage: string;
141
141
  notes?: string | null | undefined;
@@ -158,13 +158,13 @@ export declare const contract: {
158
158
  results: {
159
159
  status: import("./payout.dtos.js").PayoutStatus;
160
160
  id: string;
161
- createdAt: Date;
162
161
  profileId: string;
163
- channel: string;
162
+ createdAt: Date;
164
163
  updatedAt: Date;
164
+ description: string;
165
+ channel: string;
165
166
  msisdn: string;
166
167
  amount: number;
167
- description: string;
168
168
  payeeName: string;
169
169
  statusMessage: string;
170
170
  countryCode?: string | undefined;
@@ -195,16 +195,16 @@ export declare const contract: {
195
195
  approvalStatus: z.ZodNativeEnum<typeof import("./payout.dtos.js").PayoutApprovalStatus>;
196
196
  orderByDesc: z.ZodString;
197
197
  }, "strip", z.ZodTypeAny, {
198
+ eager: string;
198
199
  rangeStart: number;
199
200
  rangeEnd: number;
200
201
  orderByDesc: string;
201
- eager: string;
202
202
  approvalStatus: import("./payout.dtos.js").PayoutApprovalStatus;
203
203
  }, {
204
+ eager: string;
204
205
  rangeStart: number;
205
206
  rangeEnd: number;
206
207
  orderByDesc: string;
207
- eager: string;
208
208
  approvalStatus: import("./payout.dtos.js").PayoutApprovalStatus;
209
209
  }>;
210
210
  method: "GET";
@@ -259,15 +259,15 @@ export declare const contract: {
259
259
  }, "strip", z.ZodTypeAny, {
260
260
  status: import("./payout.dtos.js").PayoutStatus;
261
261
  id: string;
262
- createdAt: Date;
263
262
  profileId: string;
263
+ createdAt: Date;
264
+ updatedAt: Date;
265
+ description: string;
264
266
  channel: string;
265
267
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
266
268
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
267
- updatedAt: Date;
268
269
  msisdn: string;
269
270
  amount: number;
270
- description: string;
271
271
  payeeName: string;
272
272
  statusMessage: string;
273
273
  notes?: string | null | undefined;
@@ -287,13 +287,13 @@ export declare const contract: {
287
287
  }, {
288
288
  status: import("./payout.dtos.js").PayoutStatus;
289
289
  id: string;
290
- createdAt: Date;
291
290
  profileId: string;
292
- channel: string;
291
+ createdAt: Date;
293
292
  updatedAt: Date;
293
+ description: string;
294
+ channel: string;
294
295
  msisdn: string;
295
296
  amount: number;
296
- description: string;
297
297
  payeeName: string;
298
298
  statusMessage: string;
299
299
  countryCode?: string | undefined;
@@ -319,15 +319,15 @@ export declare const contract: {
319
319
  results: {
320
320
  status: import("./payout.dtos.js").PayoutStatus;
321
321
  id: string;
322
- createdAt: Date;
323
322
  profileId: string;
323
+ createdAt: Date;
324
+ updatedAt: Date;
325
+ description: string;
324
326
  channel: string;
325
327
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
326
328
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
327
- updatedAt: Date;
328
329
  msisdn: string;
329
330
  amount: number;
330
- description: string;
331
331
  payeeName: string;
332
332
  statusMessage: string;
333
333
  notes?: string | null | undefined;
@@ -350,13 +350,13 @@ export declare const contract: {
350
350
  results: {
351
351
  status: import("./payout.dtos.js").PayoutStatus;
352
352
  id: string;
353
- createdAt: Date;
354
353
  profileId: string;
355
- channel: string;
354
+ createdAt: Date;
356
355
  updatedAt: Date;
356
+ description: string;
357
+ channel: string;
357
358
  msisdn: string;
358
359
  amount: number;
359
- description: string;
360
360
  payeeName: string;
361
361
  statusMessage: string;
362
362
  countryCode?: string | undefined;
@@ -390,17 +390,17 @@ export declare const contract: {
390
390
  } & {
391
391
  payeeName: z.ZodString;
392
392
  }, "strip", z.ZodTypeAny, {
393
+ description: string;
393
394
  channel: string;
394
395
  msisdn: string;
395
396
  amount: number;
396
- description: string;
397
397
  payeeName: string;
398
398
  notes?: string | null | undefined;
399
399
  }, {
400
+ description: string;
400
401
  channel: string;
401
402
  msisdn: string;
402
403
  amount: number;
403
- description: string;
404
404
  payeeName: string;
405
405
  notes?: string | null | undefined;
406
406
  }>;
@@ -454,15 +454,15 @@ export declare const contract: {
454
454
  }, "strip", z.ZodTypeAny, {
455
455
  status: import("./payout.dtos.js").PayoutStatus;
456
456
  id: string;
457
- createdAt: Date;
458
457
  profileId: string;
458
+ createdAt: Date;
459
+ updatedAt: Date;
460
+ description: string;
459
461
  channel: string;
460
462
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
461
463
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
462
- updatedAt: Date;
463
464
  msisdn: string;
464
465
  amount: number;
465
- description: string;
466
466
  payeeName: string;
467
467
  statusMessage: string;
468
468
  notes?: string | null | undefined;
@@ -482,13 +482,13 @@ export declare const contract: {
482
482
  }, {
483
483
  status: import("./payout.dtos.js").PayoutStatus;
484
484
  id: string;
485
- createdAt: Date;
486
485
  profileId: string;
487
- channel: string;
486
+ createdAt: Date;
488
487
  updatedAt: Date;
488
+ description: string;
489
+ channel: string;
489
490
  msisdn: string;
490
491
  amount: number;
491
- description: string;
492
492
  payeeName: string;
493
493
  statusMessage: string;
494
494
  countryCode?: string | undefined;
@@ -592,15 +592,15 @@ export declare const contract: {
592
592
  }, "strip", z.ZodTypeAny, {
593
593
  status: import("./payout.dtos.js").PayoutStatus;
594
594
  id: string;
595
- createdAt: Date;
596
595
  profileId: string;
596
+ createdAt: Date;
597
+ updatedAt: Date;
598
+ description: string;
597
599
  channel: string;
598
600
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
599
601
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
600
- updatedAt: Date;
601
602
  msisdn: string;
602
603
  amount: number;
603
- description: string;
604
604
  payeeName: string;
605
605
  statusMessage: string;
606
606
  notes?: string | null | undefined;
@@ -620,13 +620,13 @@ export declare const contract: {
620
620
  }, {
621
621
  status: import("./payout.dtos.js").PayoutStatus;
622
622
  id: string;
623
- createdAt: Date;
624
623
  profileId: string;
625
- channel: string;
624
+ createdAt: Date;
626
625
  updatedAt: Date;
626
+ description: string;
627
+ channel: string;
627
628
  msisdn: string;
628
629
  amount: number;
629
- description: string;
630
630
  payeeName: string;
631
631
  statusMessage: string;
632
632
  countryCode?: string | undefined;
@@ -702,15 +702,15 @@ export declare const contract: {
702
702
  }, "strip", z.ZodTypeAny, {
703
703
  status: import("./payout.dtos.js").PayoutStatus;
704
704
  id: string;
705
- createdAt: Date;
706
705
  profileId: string;
706
+ createdAt: Date;
707
+ updatedAt: Date;
708
+ description: string;
707
709
  channel: string;
708
710
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
709
711
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
710
- updatedAt: Date;
711
712
  msisdn: string;
712
713
  amount: number;
713
- description: string;
714
714
  payeeName: string;
715
715
  statusMessage: string;
716
716
  notes?: string | null | undefined;
@@ -730,13 +730,13 @@ export declare const contract: {
730
730
  }, {
731
731
  status: import("./payout.dtos.js").PayoutStatus;
732
732
  id: string;
733
- createdAt: Date;
734
733
  profileId: string;
735
- channel: string;
734
+ createdAt: Date;
736
735
  updatedAt: Date;
736
+ description: string;
737
+ channel: string;
737
738
  msisdn: string;
738
739
  amount: number;
739
- description: string;
740
740
  payeeName: string;
741
741
  statusMessage: string;
742
742
  countryCode?: string | undefined;
@@ -72,17 +72,17 @@ declare const PayoutInputDTOSchema: z.ZodObject<{
72
72
  } & {
73
73
  payeeName: z.ZodString;
74
74
  }, "strip", z.ZodTypeAny, {
75
+ description: string;
75
76
  channel: string;
76
77
  msisdn: string;
77
78
  amount: number;
78
- description: string;
79
79
  payeeName: string;
80
80
  notes?: string | null | undefined;
81
81
  }, {
82
+ description: string;
82
83
  channel: string;
83
84
  msisdn: string;
84
85
  amount: number;
85
- description: string;
86
86
  payeeName: string;
87
87
  notes?: string | null | undefined;
88
88
  }>;
@@ -143,15 +143,15 @@ declare const PayoutDTOSchema: z.ZodObject<{
143
143
  }, "strip", z.ZodTypeAny, {
144
144
  status: PayoutStatus;
145
145
  id: string;
146
- createdAt: Date;
147
146
  profileId: string;
147
+ createdAt: Date;
148
+ updatedAt: Date;
149
+ description: string;
148
150
  channel: string;
149
151
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
150
152
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
151
- updatedAt: Date;
152
153
  msisdn: string;
153
154
  amount: number;
154
- description: string;
155
155
  payeeName: string;
156
156
  statusMessage: string;
157
157
  notes?: string | null | undefined;
@@ -171,13 +171,13 @@ declare const PayoutDTOSchema: z.ZodObject<{
171
171
  }, {
172
172
  status: PayoutStatus;
173
173
  id: string;
174
- createdAt: Date;
175
174
  profileId: string;
176
- channel: string;
175
+ createdAt: Date;
177
176
  updatedAt: Date;
177
+ description: string;
178
+ channel: string;
178
179
  msisdn: string;
179
180
  amount: number;
180
- description: string;
181
181
  payeeName: string;
182
182
  statusMessage: string;
183
183
  countryCode?: string | undefined;
@@ -225,10 +225,10 @@ declare const PayoutFiltersSchema: z.ZodObject<{
225
225
  sortOrder: "asc" | "desc";
226
226
  status?: PayoutStatus | null | undefined;
227
227
  id?: string | null | undefined;
228
+ profileId?: string | null | undefined;
228
229
  search?: string | null | undefined;
229
230
  startDate?: string | null | undefined;
230
231
  endDate?: string | null | undefined;
231
- profileId?: string | null | undefined;
232
232
  channel?: string | null | undefined;
233
233
  msisdn?: string | null | undefined;
234
234
  payeeName?: string | null | undefined;
@@ -239,12 +239,12 @@ declare const PayoutFiltersSchema: z.ZodObject<{
239
239
  }, {
240
240
  status?: PayoutStatus | null | undefined;
241
241
  id?: string | null | undefined;
242
+ profileId?: string | null | undefined;
242
243
  search?: string | null | undefined;
243
244
  startDate?: string | null | undefined;
244
245
  endDate?: string | null | undefined;
245
246
  page?: number | undefined;
246
247
  limit?: number | undefined;
247
- profileId?: string | null | undefined;
248
248
  channel?: string | null | undefined;
249
249
  msisdn?: string | null | undefined;
250
250
  payeeName?: string | null | undefined;
@@ -281,12 +281,12 @@ declare const PayoutURLQueryParamsSchema: z.ZodObject<{
281
281
  sortOrder: "asc" | "desc";
282
282
  status?: PayoutStatus | undefined;
283
283
  id?: string | undefined;
284
+ profileId?: string | undefined;
284
285
  search?: string | undefined;
285
286
  startDate?: string | undefined;
286
287
  endDate?: string | undefined;
287
288
  page?: number | undefined;
288
289
  limit?: number | undefined;
289
- profileId?: string | undefined;
290
290
  channel?: string | undefined;
291
291
  msisdn?: string | undefined;
292
292
  payeeName?: string | undefined;
@@ -297,12 +297,12 @@ declare const PayoutURLQueryParamsSchema: z.ZodObject<{
297
297
  }, {
298
298
  status?: string | undefined;
299
299
  id?: string | undefined;
300
+ profileId?: string | undefined;
300
301
  search?: string | undefined;
301
302
  startDate?: string | undefined;
302
303
  endDate?: string | undefined;
303
304
  page?: string | undefined;
304
305
  limit?: string | undefined;
305
- profileId?: string | undefined;
306
306
  channel?: string | undefined;
307
307
  msisdn?: string | undefined;
308
308
  payeeName?: string | undefined;
@@ -389,15 +389,15 @@ export declare const PayoutDTOSchemas: {
389
389
  }, "strip", z.ZodTypeAny, {
390
390
  status: PayoutStatus;
391
391
  id: string;
392
- createdAt: Date;
393
392
  profileId: string;
393
+ createdAt: Date;
394
+ updatedAt: Date;
395
+ description: string;
394
396
  channel: string;
395
397
  countryCode: import("@temboplus/frontend-core").ISO2CountryCode;
396
398
  currencyCode: import("@temboplus/frontend-core").CurrencyCode;
397
- updatedAt: Date;
398
399
  msisdn: string;
399
400
  amount: number;
400
- description: string;
401
401
  payeeName: string;
402
402
  statusMessage: string;
403
403
  notes?: string | null | undefined;
@@ -417,13 +417,13 @@ export declare const PayoutDTOSchemas: {
417
417
  }, {
418
418
  status: PayoutStatus;
419
419
  id: string;
420
- createdAt: Date;
421
420
  profileId: string;
422
- channel: string;
421
+ createdAt: Date;
423
422
  updatedAt: Date;
423
+ description: string;
424
+ channel: string;
424
425
  msisdn: string;
425
426
  amount: number;
426
- description: string;
427
427
  payeeName: string;
428
428
  statusMessage: string;
429
429
  countryCode?: string | undefined;
@@ -452,17 +452,17 @@ export declare const PayoutDTOSchemas: {
452
452
  } & {
453
453
  payeeName: z.ZodString;
454
454
  }, "strip", z.ZodTypeAny, {
455
+ description: string;
455
456
  channel: string;
456
457
  msisdn: string;
457
458
  amount: number;
458
- description: string;
459
459
  payeeName: string;
460
460
  notes?: string | null | undefined;
461
461
  }, {
462
+ description: string;
462
463
  channel: string;
463
464
  msisdn: string;
464
465
  amount: number;
465
- description: string;
466
466
  payeeName: string;
467
467
  notes?: string | null | undefined;
468
468
  }>;
@@ -506,10 +506,10 @@ export declare const PayoutDTOSchemas: {
506
506
  sortOrder: "asc" | "desc";
507
507
  status?: PayoutStatus | null | undefined;
508
508
  id?: string | null | undefined;
509
+ profileId?: string | null | undefined;
509
510
  search?: string | null | undefined;
510
511
  startDate?: string | null | undefined;
511
512
  endDate?: string | null | undefined;
512
- profileId?: string | null | undefined;
513
513
  channel?: string | null | undefined;
514
514
  msisdn?: string | null | undefined;
515
515
  payeeName?: string | null | undefined;
@@ -520,12 +520,12 @@ export declare const PayoutDTOSchemas: {
520
520
  }, {
521
521
  status?: PayoutStatus | null | undefined;
522
522
  id?: string | null | undefined;
523
+ profileId?: string | null | undefined;
523
524
  search?: string | null | undefined;
524
525
  startDate?: string | null | undefined;
525
526
  endDate?: string | null | undefined;
526
527
  page?: number | undefined;
527
528
  limit?: number | undefined;
528
- profileId?: string | null | undefined;
529
529
  channel?: string | null | undefined;
530
530
  msisdn?: string | null | undefined;
531
531
  payeeName?: string | null | undefined;
@@ -559,12 +559,12 @@ export declare const PayoutDTOSchemas: {
559
559
  sortOrder: "asc" | "desc";
560
560
  status?: PayoutStatus | undefined;
561
561
  id?: string | undefined;
562
+ profileId?: string | undefined;
562
563
  search?: string | undefined;
563
564
  startDate?: string | undefined;
564
565
  endDate?: string | undefined;
565
566
  page?: number | undefined;
566
567
  limit?: number | undefined;
567
- profileId?: string | undefined;
568
568
  channel?: string | undefined;
569
569
  msisdn?: string | undefined;
570
570
  payeeName?: string | undefined;
@@ -575,12 +575,12 @@ export declare const PayoutDTOSchemas: {
575
575
  }, {
576
576
  status?: string | undefined;
577
577
  id?: string | undefined;
578
+ profileId?: string | undefined;
578
579
  search?: string | undefined;
579
580
  startDate?: string | undefined;
580
581
  endDate?: string | undefined;
581
582
  page?: string | undefined;
582
583
  limit?: string | undefined;
583
- profileId?: string | undefined;
584
584
  channel?: string | undefined;
585
585
  msisdn?: string | undefined;
586
586
  payeeName?: string | undefined;
@@ -0,0 +1,4 @@
1
+ export * from "./team-member.repository.js";
2
+ export * from "./team-member.dtos.js";
3
+ export * from "./team-member.model.js";
4
+ export * from "./role.model.js";
@@ -1,4 +1,4 @@
1
- import { RoleDTO } from "@/modules/user/user.dtos.js";
1
+ import { RoleDTO } from "./team-member.dtos.js";
2
2
  export declare class Role {
3
3
  readonly id: string;
4
4
  readonly name: string;
@@ -8,6 +8,6 @@ export declare class Role {
8
8
  readonly updatedAt: Date;
9
9
  constructor(data: RoleDTO);
10
10
  hasPermission(permission: string): boolean;
11
- static from(data: any): Role | undefined;
11
+ static from(data: RoleDTO): Role | undefined;
12
12
  toJSON(): any;
13
13
  }