@temboplus/afloat 0.1.76-beta.0 → 0.1.77-beta.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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/error/error.permission.d.ts +1 -1
- package/dist/modules/auth/auth.contract.d.ts +4 -4
- package/dist/modules/auth/auth.manager.d.ts +1 -1
- package/dist/modules/auth/company-membership.model.d.ts +58 -0
- package/dist/modules/auth/index.d.ts +1 -1
- package/dist/modules/auth/user.model.d.ts +107 -33
- package/dist/modules/contact/contact.api-contract.d.ts +16 -16
- package/dist/modules/contact/contact.dtos.d.ts +4 -4
- package/dist/modules/login/index.d.ts +2 -0
- package/dist/modules/login/login.api-contract.d.ts +34 -5
- package/dist/modules/login/login.dtos.d.ts +85 -0
- package/dist/modules/login/login.model.d.ts +138 -1
- package/dist/modules/{auth → login}/permission.type.d.ts +8 -8
- package/dist/modules/payout/payout.api-contract.d.ts +46 -46
- package/dist/modules/payout/payout.dtos.d.ts +24 -24
- package/dist/modules/team-member/index.d.ts +4 -0
- package/dist/modules/{user → team-member}/role.model.d.ts +2 -2
- package/dist/modules/{user/user.contract.d.ts → team-member/team-member.contract.d.ts} +232 -127
- package/dist/modules/team-member/team-member.dtos.d.ts +255 -0
- package/dist/modules/team-member/team-member.model.d.ts +137 -0
- package/dist/modules/team-member/team-member.repository.d.ts +179 -0
- package/dist/modules/wallet/wallet.contract.d.ts +4 -4
- package/dist/modules/wallet/wallet.dtos.d.ts +8 -8
- package/package.json +1 -1
- package/dist/modules/user/index.d.ts +0 -4
- package/dist/modules/user/user.dtos.d.ts +0 -145
- package/dist/modules/user/user.model.d.ts +0 -108
- package/dist/modules/user/user.repository.d.ts +0 -179
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
description: "Retrieve a list of all
|
|
2
|
+
export declare const teamManagementContract: {
|
|
3
|
+
getTeamMembers: {
|
|
4
|
+
description: "Retrieve a list of all team member accounts in the system";
|
|
5
5
|
query: z.ZodObject<{
|
|
6
6
|
id: z.ZodOptional<z.ZodString>;
|
|
7
7
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -15,34 +15,34 @@ export declare const userManagementContract: {
|
|
|
15
15
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
16
16
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
17
17
|
eager: z.ZodOptional<z.ZodString>;
|
|
18
|
-
},
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
19
|
type?: string | undefined;
|
|
20
20
|
name?: string | undefined;
|
|
21
21
|
id?: string | undefined;
|
|
22
|
-
resetPassword?: number | undefined;
|
|
23
|
-
identity?: string | undefined;
|
|
24
|
-
createdAt?: string | undefined;
|
|
25
|
-
eager?: string | undefined;
|
|
26
22
|
profileId?: string | undefined;
|
|
27
|
-
|
|
23
|
+
identity?: string | undefined;
|
|
28
24
|
roleId?: string | undefined;
|
|
29
25
|
isActive?: number | undefined;
|
|
30
26
|
isArchived?: number | undefined;
|
|
27
|
+
resetPassword?: number | undefined;
|
|
28
|
+
createdAt?: string | undefined;
|
|
29
|
+
updatedAt?: string | undefined;
|
|
30
|
+
eager?: string | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
type?: string | undefined;
|
|
33
33
|
name?: string | undefined;
|
|
34
34
|
id?: string | undefined;
|
|
35
|
-
resetPassword?: number | undefined;
|
|
36
|
-
identity?: string | undefined;
|
|
37
|
-
createdAt?: string | undefined;
|
|
38
|
-
eager?: string | undefined;
|
|
39
35
|
profileId?: string | undefined;
|
|
40
|
-
|
|
36
|
+
identity?: string | undefined;
|
|
41
37
|
roleId?: string | undefined;
|
|
42
38
|
isActive?: number | undefined;
|
|
43
39
|
isArchived?: number | undefined;
|
|
40
|
+
resetPassword?: number | undefined;
|
|
41
|
+
createdAt?: string | undefined;
|
|
42
|
+
updatedAt?: string | undefined;
|
|
43
|
+
eager?: string | undefined;
|
|
44
44
|
}>;
|
|
45
|
-
summary: "List all
|
|
45
|
+
summary: "List all team members";
|
|
46
46
|
method: "GET";
|
|
47
47
|
path: "/login";
|
|
48
48
|
responses: {
|
|
@@ -56,47 +56,68 @@ export declare const userManagementContract: {
|
|
|
56
56
|
resetPassword: z.ZodBoolean;
|
|
57
57
|
isActive: z.ZodBoolean;
|
|
58
58
|
isArchived: z.ZodBoolean;
|
|
59
|
-
role: z.ZodOptional<z.
|
|
59
|
+
role: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
description: z.ZodOptional<z.ZodString>;
|
|
63
|
+
access: z.ZodArray<z.ZodString, "many">;
|
|
64
|
+
createdAt: z.ZodString;
|
|
65
|
+
updatedAt: z.ZodString;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
name: string;
|
|
68
|
+
id: string;
|
|
69
|
+
createdAt: string;
|
|
70
|
+
updatedAt: string;
|
|
71
|
+
access: string[];
|
|
72
|
+
description?: string | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
name: string;
|
|
75
|
+
id: string;
|
|
76
|
+
createdAt: string;
|
|
77
|
+
updatedAt: string;
|
|
78
|
+
access: string[];
|
|
79
|
+
description?: string | undefined;
|
|
80
|
+
}>>;
|
|
60
81
|
createdAt: z.ZodString;
|
|
61
82
|
updatedAt: z.ZodString;
|
|
62
|
-
},
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
84
|
type: string;
|
|
64
85
|
name: string;
|
|
65
86
|
id: string;
|
|
66
|
-
resetPassword: boolean;
|
|
67
|
-
identity: string;
|
|
68
|
-
createdAt: string;
|
|
69
87
|
profileId: string;
|
|
70
|
-
|
|
88
|
+
identity: string;
|
|
71
89
|
roleId: string;
|
|
72
90
|
isActive: boolean;
|
|
73
91
|
isArchived: boolean;
|
|
92
|
+
resetPassword: boolean;
|
|
93
|
+
createdAt: string;
|
|
94
|
+
updatedAt: string;
|
|
74
95
|
role?: {
|
|
75
96
|
name: string;
|
|
76
97
|
id: string;
|
|
77
|
-
access: string[];
|
|
78
98
|
createdAt: string;
|
|
79
99
|
updatedAt: string;
|
|
100
|
+
access: string[];
|
|
80
101
|
description?: string | undefined;
|
|
81
102
|
} | undefined;
|
|
82
103
|
}, {
|
|
83
104
|
type: string;
|
|
84
105
|
name: string;
|
|
85
106
|
id: string;
|
|
86
|
-
resetPassword: boolean;
|
|
87
|
-
identity: string;
|
|
88
|
-
createdAt: string;
|
|
89
107
|
profileId: string;
|
|
90
|
-
|
|
108
|
+
identity: string;
|
|
91
109
|
roleId: string;
|
|
92
110
|
isActive: boolean;
|
|
93
111
|
isArchived: boolean;
|
|
112
|
+
resetPassword: boolean;
|
|
113
|
+
createdAt: string;
|
|
114
|
+
updatedAt: string;
|
|
94
115
|
role?: {
|
|
95
116
|
name: string;
|
|
96
117
|
id: string;
|
|
97
|
-
access: string[];
|
|
98
118
|
createdAt: string;
|
|
99
119
|
updatedAt: string;
|
|
120
|
+
access: string[];
|
|
100
121
|
description?: string | undefined;
|
|
101
122
|
} | undefined;
|
|
102
123
|
}>, "many">;
|
|
@@ -116,8 +137,8 @@ export declare const userManagementContract: {
|
|
|
116
137
|
}>;
|
|
117
138
|
};
|
|
118
139
|
};
|
|
119
|
-
|
|
120
|
-
description: "Retrieve detailed information about a specific
|
|
140
|
+
getTeamMember: {
|
|
141
|
+
description: "Retrieve detailed information about a specific team member";
|
|
121
142
|
pathParams: z.ZodObject<{
|
|
122
143
|
id: z.ZodString;
|
|
123
144
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -138,34 +159,34 @@ export declare const userManagementContract: {
|
|
|
138
159
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
139
160
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
140
161
|
eager: z.ZodOptional<z.ZodString>;
|
|
141
|
-
},
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
163
|
type?: string | undefined;
|
|
143
164
|
name?: string | undefined;
|
|
144
165
|
id?: string | undefined;
|
|
145
|
-
resetPassword?: number | undefined;
|
|
146
|
-
identity?: string | undefined;
|
|
147
|
-
createdAt?: string | undefined;
|
|
148
|
-
eager?: string | undefined;
|
|
149
166
|
profileId?: string | undefined;
|
|
150
|
-
|
|
167
|
+
identity?: string | undefined;
|
|
151
168
|
roleId?: string | undefined;
|
|
152
169
|
isActive?: number | undefined;
|
|
153
170
|
isArchived?: number | undefined;
|
|
171
|
+
resetPassword?: number | undefined;
|
|
172
|
+
createdAt?: string | undefined;
|
|
173
|
+
updatedAt?: string | undefined;
|
|
174
|
+
eager?: string | undefined;
|
|
154
175
|
}, {
|
|
155
176
|
type?: string | undefined;
|
|
156
177
|
name?: string | undefined;
|
|
157
178
|
id?: string | undefined;
|
|
158
|
-
resetPassword?: number | undefined;
|
|
159
|
-
identity?: string | undefined;
|
|
160
|
-
createdAt?: string | undefined;
|
|
161
|
-
eager?: string | undefined;
|
|
162
179
|
profileId?: string | undefined;
|
|
163
|
-
|
|
180
|
+
identity?: string | undefined;
|
|
164
181
|
roleId?: string | undefined;
|
|
165
182
|
isActive?: number | undefined;
|
|
166
183
|
isArchived?: number | undefined;
|
|
184
|
+
resetPassword?: number | undefined;
|
|
185
|
+
createdAt?: string | undefined;
|
|
186
|
+
updatedAt?: string | undefined;
|
|
187
|
+
eager?: string | undefined;
|
|
167
188
|
}>;
|
|
168
|
-
summary: "Get
|
|
189
|
+
summary: "Get team member details";
|
|
169
190
|
method: "GET";
|
|
170
191
|
path: "/login/:id";
|
|
171
192
|
responses: {
|
|
@@ -179,47 +200,68 @@ export declare const userManagementContract: {
|
|
|
179
200
|
resetPassword: z.ZodBoolean;
|
|
180
201
|
isActive: z.ZodBoolean;
|
|
181
202
|
isArchived: z.ZodBoolean;
|
|
182
|
-
role: z.ZodOptional<z.
|
|
203
|
+
role: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
id: z.ZodString;
|
|
205
|
+
name: z.ZodString;
|
|
206
|
+
description: z.ZodOptional<z.ZodString>;
|
|
207
|
+
access: z.ZodArray<z.ZodString, "many">;
|
|
208
|
+
createdAt: z.ZodString;
|
|
209
|
+
updatedAt: z.ZodString;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
name: string;
|
|
212
|
+
id: string;
|
|
213
|
+
createdAt: string;
|
|
214
|
+
updatedAt: string;
|
|
215
|
+
access: string[];
|
|
216
|
+
description?: string | undefined;
|
|
217
|
+
}, {
|
|
218
|
+
name: string;
|
|
219
|
+
id: string;
|
|
220
|
+
createdAt: string;
|
|
221
|
+
updatedAt: string;
|
|
222
|
+
access: string[];
|
|
223
|
+
description?: string | undefined;
|
|
224
|
+
}>>;
|
|
183
225
|
createdAt: z.ZodString;
|
|
184
226
|
updatedAt: z.ZodString;
|
|
185
|
-
},
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
228
|
type: string;
|
|
187
229
|
name: string;
|
|
188
230
|
id: string;
|
|
189
|
-
resetPassword: boolean;
|
|
190
|
-
identity: string;
|
|
191
|
-
createdAt: string;
|
|
192
231
|
profileId: string;
|
|
193
|
-
|
|
232
|
+
identity: string;
|
|
194
233
|
roleId: string;
|
|
195
234
|
isActive: boolean;
|
|
196
235
|
isArchived: boolean;
|
|
236
|
+
resetPassword: boolean;
|
|
237
|
+
createdAt: string;
|
|
238
|
+
updatedAt: string;
|
|
197
239
|
role?: {
|
|
198
240
|
name: string;
|
|
199
241
|
id: string;
|
|
200
|
-
access: string[];
|
|
201
242
|
createdAt: string;
|
|
202
243
|
updatedAt: string;
|
|
244
|
+
access: string[];
|
|
203
245
|
description?: string | undefined;
|
|
204
246
|
} | undefined;
|
|
205
247
|
}, {
|
|
206
248
|
type: string;
|
|
207
249
|
name: string;
|
|
208
250
|
id: string;
|
|
209
|
-
resetPassword: boolean;
|
|
210
|
-
identity: string;
|
|
211
|
-
createdAt: string;
|
|
212
251
|
profileId: string;
|
|
213
|
-
|
|
252
|
+
identity: string;
|
|
214
253
|
roleId: string;
|
|
215
254
|
isActive: boolean;
|
|
216
255
|
isArchived: boolean;
|
|
256
|
+
resetPassword: boolean;
|
|
257
|
+
createdAt: string;
|
|
258
|
+
updatedAt: string;
|
|
217
259
|
role?: {
|
|
218
260
|
name: string;
|
|
219
261
|
id: string;
|
|
220
|
-
access: string[];
|
|
221
262
|
createdAt: string;
|
|
222
263
|
updatedAt: string;
|
|
264
|
+
access: string[];
|
|
223
265
|
description?: string | undefined;
|
|
224
266
|
} | undefined;
|
|
225
267
|
}>;
|
|
@@ -246,9 +288,9 @@ export declare const userManagementContract: {
|
|
|
246
288
|
}>;
|
|
247
289
|
};
|
|
248
290
|
};
|
|
249
|
-
|
|
250
|
-
description: "Create a new
|
|
251
|
-
summary: "Create new
|
|
291
|
+
createTeamMember: {
|
|
292
|
+
description: "Create a new team member account with specified role and permissions";
|
|
293
|
+
summary: "Create new team member";
|
|
252
294
|
method: "POST";
|
|
253
295
|
body: z.ZodObject<{
|
|
254
296
|
name: z.ZodString;
|
|
@@ -256,18 +298,18 @@ export declare const userManagementContract: {
|
|
|
256
298
|
password: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
257
299
|
roleId: z.ZodOptional<z.ZodString>;
|
|
258
300
|
resetPassword: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
-
},
|
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
302
|
name: string;
|
|
261
303
|
identity: string;
|
|
304
|
+
roleId?: string | undefined;
|
|
262
305
|
resetPassword?: boolean | undefined;
|
|
263
306
|
password?: string | undefined;
|
|
264
|
-
roleId?: string | undefined;
|
|
265
307
|
}, {
|
|
266
308
|
name: string;
|
|
267
309
|
identity: string;
|
|
310
|
+
roleId?: string | undefined;
|
|
268
311
|
resetPassword?: boolean | undefined;
|
|
269
312
|
password?: string | undefined;
|
|
270
|
-
roleId?: string | undefined;
|
|
271
313
|
}>;
|
|
272
314
|
path: "/login";
|
|
273
315
|
responses: {
|
|
@@ -281,26 +323,26 @@ export declare const userManagementContract: {
|
|
|
281
323
|
isActive: z.ZodBoolean;
|
|
282
324
|
isArchived: z.ZodBoolean;
|
|
283
325
|
createdAt: z.ZodString;
|
|
284
|
-
},
|
|
326
|
+
}, "strip", z.ZodTypeAny, {
|
|
285
327
|
type: string;
|
|
286
328
|
name: string;
|
|
287
329
|
id: string;
|
|
288
|
-
identity: string;
|
|
289
|
-
createdAt: string;
|
|
290
330
|
profileId: string;
|
|
331
|
+
identity: string;
|
|
291
332
|
roleId: string;
|
|
292
333
|
isActive: boolean;
|
|
293
334
|
isArchived: boolean;
|
|
335
|
+
createdAt: string;
|
|
294
336
|
}, {
|
|
295
337
|
type: string;
|
|
296
338
|
name: string;
|
|
297
339
|
id: string;
|
|
298
|
-
identity: string;
|
|
299
|
-
createdAt: string;
|
|
300
340
|
profileId: string;
|
|
341
|
+
identity: string;
|
|
301
342
|
roleId: string;
|
|
302
343
|
isActive: boolean;
|
|
303
344
|
isArchived: boolean;
|
|
345
|
+
createdAt: string;
|
|
304
346
|
}>;
|
|
305
347
|
400: z.ZodObject<{
|
|
306
348
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -335,8 +377,8 @@ export declare const userManagementContract: {
|
|
|
335
377
|
}>;
|
|
336
378
|
};
|
|
337
379
|
};
|
|
338
|
-
|
|
339
|
-
description: "Update
|
|
380
|
+
updateTeamMember: {
|
|
381
|
+
description: "Update team member information, role, status, or force password reset";
|
|
340
382
|
pathParams: z.ZodObject<{
|
|
341
383
|
id: z.ZodString;
|
|
342
384
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -344,7 +386,7 @@ export declare const userManagementContract: {
|
|
|
344
386
|
}, {
|
|
345
387
|
id: string;
|
|
346
388
|
}>;
|
|
347
|
-
summary: "Update
|
|
389
|
+
summary: "Update team member";
|
|
348
390
|
method: "PATCH";
|
|
349
391
|
body: z.ZodObject<{
|
|
350
392
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -352,18 +394,18 @@ export declare const userManagementContract: {
|
|
|
352
394
|
password: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
353
395
|
resetPassword: z.ZodOptional<z.ZodBoolean>;
|
|
354
396
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
355
|
-
},
|
|
397
|
+
}, "strip", z.ZodTypeAny, {
|
|
356
398
|
name?: string | undefined;
|
|
357
|
-
resetPassword?: boolean | undefined;
|
|
358
|
-
password?: string | undefined;
|
|
359
399
|
roleId?: string | undefined;
|
|
360
400
|
isActive?: boolean | undefined;
|
|
361
|
-
}, {
|
|
362
|
-
name?: string | undefined;
|
|
363
401
|
resetPassword?: boolean | undefined;
|
|
364
402
|
password?: string | undefined;
|
|
403
|
+
}, {
|
|
404
|
+
name?: string | undefined;
|
|
365
405
|
roleId?: string | undefined;
|
|
366
406
|
isActive?: boolean | undefined;
|
|
407
|
+
resetPassword?: boolean | undefined;
|
|
408
|
+
password?: string | undefined;
|
|
367
409
|
}>;
|
|
368
410
|
path: "/login/:id";
|
|
369
411
|
responses: {
|
|
@@ -377,47 +419,68 @@ export declare const userManagementContract: {
|
|
|
377
419
|
resetPassword: z.ZodBoolean;
|
|
378
420
|
isActive: z.ZodBoolean;
|
|
379
421
|
isArchived: z.ZodBoolean;
|
|
380
|
-
role: z.ZodOptional<z.
|
|
422
|
+
role: z.ZodOptional<z.ZodObject<{
|
|
423
|
+
id: z.ZodString;
|
|
424
|
+
name: z.ZodString;
|
|
425
|
+
description: z.ZodOptional<z.ZodString>;
|
|
426
|
+
access: z.ZodArray<z.ZodString, "many">;
|
|
427
|
+
createdAt: z.ZodString;
|
|
428
|
+
updatedAt: z.ZodString;
|
|
429
|
+
}, "strip", z.ZodTypeAny, {
|
|
430
|
+
name: string;
|
|
431
|
+
id: string;
|
|
432
|
+
createdAt: string;
|
|
433
|
+
updatedAt: string;
|
|
434
|
+
access: string[];
|
|
435
|
+
description?: string | undefined;
|
|
436
|
+
}, {
|
|
437
|
+
name: string;
|
|
438
|
+
id: string;
|
|
439
|
+
createdAt: string;
|
|
440
|
+
updatedAt: string;
|
|
441
|
+
access: string[];
|
|
442
|
+
description?: string | undefined;
|
|
443
|
+
}>>;
|
|
381
444
|
createdAt: z.ZodString;
|
|
382
445
|
updatedAt: z.ZodString;
|
|
383
|
-
},
|
|
446
|
+
}, "strip", z.ZodTypeAny, {
|
|
384
447
|
type: string;
|
|
385
448
|
name: string;
|
|
386
449
|
id: string;
|
|
387
|
-
resetPassword: boolean;
|
|
388
|
-
identity: string;
|
|
389
|
-
createdAt: string;
|
|
390
450
|
profileId: string;
|
|
391
|
-
|
|
451
|
+
identity: string;
|
|
392
452
|
roleId: string;
|
|
393
453
|
isActive: boolean;
|
|
394
454
|
isArchived: boolean;
|
|
455
|
+
resetPassword: boolean;
|
|
456
|
+
createdAt: string;
|
|
457
|
+
updatedAt: string;
|
|
395
458
|
role?: {
|
|
396
459
|
name: string;
|
|
397
460
|
id: string;
|
|
398
|
-
access: string[];
|
|
399
461
|
createdAt: string;
|
|
400
462
|
updatedAt: string;
|
|
463
|
+
access: string[];
|
|
401
464
|
description?: string | undefined;
|
|
402
465
|
} | undefined;
|
|
403
466
|
}, {
|
|
404
467
|
type: string;
|
|
405
468
|
name: string;
|
|
406
469
|
id: string;
|
|
407
|
-
resetPassword: boolean;
|
|
408
|
-
identity: string;
|
|
409
|
-
createdAt: string;
|
|
410
470
|
profileId: string;
|
|
411
|
-
|
|
471
|
+
identity: string;
|
|
412
472
|
roleId: string;
|
|
413
473
|
isActive: boolean;
|
|
414
474
|
isArchived: boolean;
|
|
475
|
+
resetPassword: boolean;
|
|
476
|
+
createdAt: string;
|
|
477
|
+
updatedAt: string;
|
|
415
478
|
role?: {
|
|
416
479
|
name: string;
|
|
417
480
|
id: string;
|
|
418
|
-
access: string[];
|
|
419
481
|
createdAt: string;
|
|
420
482
|
updatedAt: string;
|
|
483
|
+
access: string[];
|
|
421
484
|
description?: string | undefined;
|
|
422
485
|
} | undefined;
|
|
423
486
|
}>;
|
|
@@ -454,8 +517,8 @@ export declare const userManagementContract: {
|
|
|
454
517
|
}>;
|
|
455
518
|
};
|
|
456
519
|
};
|
|
457
|
-
|
|
458
|
-
description: "Archive (soft delete) a
|
|
520
|
+
archiveTeamMember: {
|
|
521
|
+
description: "Archive (soft delete) a team member account";
|
|
459
522
|
pathParams: z.ZodObject<{
|
|
460
523
|
id: z.ZodString;
|
|
461
524
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -463,7 +526,7 @@ export declare const userManagementContract: {
|
|
|
463
526
|
}, {
|
|
464
527
|
id: string;
|
|
465
528
|
}>;
|
|
466
|
-
summary: "Archive
|
|
529
|
+
summary: "Archive team member";
|
|
467
530
|
method: "POST";
|
|
468
531
|
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
469
532
|
path: "/login/:id/archive";
|
|
@@ -478,47 +541,68 @@ export declare const userManagementContract: {
|
|
|
478
541
|
resetPassword: z.ZodBoolean;
|
|
479
542
|
isActive: z.ZodBoolean;
|
|
480
543
|
isArchived: z.ZodBoolean;
|
|
481
|
-
role: z.ZodOptional<z.
|
|
544
|
+
role: z.ZodOptional<z.ZodObject<{
|
|
545
|
+
id: z.ZodString;
|
|
546
|
+
name: z.ZodString;
|
|
547
|
+
description: z.ZodOptional<z.ZodString>;
|
|
548
|
+
access: z.ZodArray<z.ZodString, "many">;
|
|
549
|
+
createdAt: z.ZodString;
|
|
550
|
+
updatedAt: z.ZodString;
|
|
551
|
+
}, "strip", z.ZodTypeAny, {
|
|
552
|
+
name: string;
|
|
553
|
+
id: string;
|
|
554
|
+
createdAt: string;
|
|
555
|
+
updatedAt: string;
|
|
556
|
+
access: string[];
|
|
557
|
+
description?: string | undefined;
|
|
558
|
+
}, {
|
|
559
|
+
name: string;
|
|
560
|
+
id: string;
|
|
561
|
+
createdAt: string;
|
|
562
|
+
updatedAt: string;
|
|
563
|
+
access: string[];
|
|
564
|
+
description?: string | undefined;
|
|
565
|
+
}>>;
|
|
482
566
|
createdAt: z.ZodString;
|
|
483
567
|
updatedAt: z.ZodString;
|
|
484
|
-
},
|
|
568
|
+
}, "strip", z.ZodTypeAny, {
|
|
485
569
|
type: string;
|
|
486
570
|
name: string;
|
|
487
571
|
id: string;
|
|
488
|
-
resetPassword: boolean;
|
|
489
|
-
identity: string;
|
|
490
|
-
createdAt: string;
|
|
491
572
|
profileId: string;
|
|
492
|
-
|
|
573
|
+
identity: string;
|
|
493
574
|
roleId: string;
|
|
494
575
|
isActive: boolean;
|
|
495
576
|
isArchived: boolean;
|
|
577
|
+
resetPassword: boolean;
|
|
578
|
+
createdAt: string;
|
|
579
|
+
updatedAt: string;
|
|
496
580
|
role?: {
|
|
497
581
|
name: string;
|
|
498
582
|
id: string;
|
|
499
|
-
access: string[];
|
|
500
583
|
createdAt: string;
|
|
501
584
|
updatedAt: string;
|
|
585
|
+
access: string[];
|
|
502
586
|
description?: string | undefined;
|
|
503
587
|
} | undefined;
|
|
504
588
|
}, {
|
|
505
589
|
type: string;
|
|
506
590
|
name: string;
|
|
507
591
|
id: string;
|
|
508
|
-
resetPassword: boolean;
|
|
509
|
-
identity: string;
|
|
510
|
-
createdAt: string;
|
|
511
592
|
profileId: string;
|
|
512
|
-
|
|
593
|
+
identity: string;
|
|
513
594
|
roleId: string;
|
|
514
595
|
isActive: boolean;
|
|
515
596
|
isArchived: boolean;
|
|
597
|
+
resetPassword: boolean;
|
|
598
|
+
createdAt: string;
|
|
599
|
+
updatedAt: string;
|
|
516
600
|
role?: {
|
|
517
601
|
name: string;
|
|
518
602
|
id: string;
|
|
519
|
-
access: string[];
|
|
520
603
|
createdAt: string;
|
|
521
604
|
updatedAt: string;
|
|
605
|
+
access: string[];
|
|
522
606
|
description?: string | undefined;
|
|
523
607
|
} | undefined;
|
|
524
608
|
}>;
|
|
@@ -545,8 +629,8 @@ export declare const userManagementContract: {
|
|
|
545
629
|
}>;
|
|
546
630
|
};
|
|
547
631
|
};
|
|
548
|
-
|
|
549
|
-
description: "
|
|
632
|
+
unArchiveTeamMember: {
|
|
633
|
+
description: "Unarchive a previously archived team member account";
|
|
550
634
|
pathParams: z.ZodObject<{
|
|
551
635
|
id: z.ZodString;
|
|
552
636
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -554,7 +638,7 @@ export declare const userManagementContract: {
|
|
|
554
638
|
}, {
|
|
555
639
|
id: string;
|
|
556
640
|
}>;
|
|
557
|
-
summary: "
|
|
641
|
+
summary: "Unarchive team member";
|
|
558
642
|
method: "POST";
|
|
559
643
|
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
560
644
|
path: "/login/:id/unarchive";
|
|
@@ -569,47 +653,68 @@ export declare const userManagementContract: {
|
|
|
569
653
|
resetPassword: z.ZodBoolean;
|
|
570
654
|
isActive: z.ZodBoolean;
|
|
571
655
|
isArchived: z.ZodBoolean;
|
|
572
|
-
role: z.ZodOptional<z.
|
|
656
|
+
role: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
id: z.ZodString;
|
|
658
|
+
name: z.ZodString;
|
|
659
|
+
description: z.ZodOptional<z.ZodString>;
|
|
660
|
+
access: z.ZodArray<z.ZodString, "many">;
|
|
661
|
+
createdAt: z.ZodString;
|
|
662
|
+
updatedAt: z.ZodString;
|
|
663
|
+
}, "strip", z.ZodTypeAny, {
|
|
664
|
+
name: string;
|
|
665
|
+
id: string;
|
|
666
|
+
createdAt: string;
|
|
667
|
+
updatedAt: string;
|
|
668
|
+
access: string[];
|
|
669
|
+
description?: string | undefined;
|
|
670
|
+
}, {
|
|
671
|
+
name: string;
|
|
672
|
+
id: string;
|
|
673
|
+
createdAt: string;
|
|
674
|
+
updatedAt: string;
|
|
675
|
+
access: string[];
|
|
676
|
+
description?: string | undefined;
|
|
677
|
+
}>>;
|
|
573
678
|
createdAt: z.ZodString;
|
|
574
679
|
updatedAt: z.ZodString;
|
|
575
|
-
},
|
|
680
|
+
}, "strip", z.ZodTypeAny, {
|
|
576
681
|
type: string;
|
|
577
682
|
name: string;
|
|
578
683
|
id: string;
|
|
579
|
-
resetPassword: boolean;
|
|
580
|
-
identity: string;
|
|
581
|
-
createdAt: string;
|
|
582
684
|
profileId: string;
|
|
583
|
-
|
|
685
|
+
identity: string;
|
|
584
686
|
roleId: string;
|
|
585
687
|
isActive: boolean;
|
|
586
688
|
isArchived: boolean;
|
|
689
|
+
resetPassword: boolean;
|
|
690
|
+
createdAt: string;
|
|
691
|
+
updatedAt: string;
|
|
587
692
|
role?: {
|
|
588
693
|
name: string;
|
|
589
694
|
id: string;
|
|
590
|
-
access: string[];
|
|
591
695
|
createdAt: string;
|
|
592
696
|
updatedAt: string;
|
|
697
|
+
access: string[];
|
|
593
698
|
description?: string | undefined;
|
|
594
699
|
} | undefined;
|
|
595
700
|
}, {
|
|
596
701
|
type: string;
|
|
597
702
|
name: string;
|
|
598
703
|
id: string;
|
|
599
|
-
resetPassword: boolean;
|
|
600
|
-
identity: string;
|
|
601
|
-
createdAt: string;
|
|
602
704
|
profileId: string;
|
|
603
|
-
|
|
705
|
+
identity: string;
|
|
604
706
|
roleId: string;
|
|
605
707
|
isActive: boolean;
|
|
606
708
|
isArchived: boolean;
|
|
709
|
+
resetPassword: boolean;
|
|
710
|
+
createdAt: string;
|
|
711
|
+
updatedAt: string;
|
|
607
712
|
role?: {
|
|
608
713
|
name: string;
|
|
609
714
|
id: string;
|
|
610
|
-
access: string[];
|
|
611
715
|
createdAt: string;
|
|
612
716
|
updatedAt: string;
|
|
717
|
+
access: string[];
|
|
613
718
|
description?: string | undefined;
|
|
614
719
|
} | undefined;
|
|
615
720
|
}>;
|
|
@@ -637,7 +742,7 @@ export declare const userManagementContract: {
|
|
|
637
742
|
};
|
|
638
743
|
};
|
|
639
744
|
resetPassword: {
|
|
640
|
-
description: "Reset a
|
|
745
|
+
description: "Reset a team member's password and optionally send notification";
|
|
641
746
|
pathParams: z.ZodObject<{
|
|
642
747
|
id: z.ZodString;
|
|
643
748
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -645,12 +750,12 @@ export declare const userManagementContract: {
|
|
|
645
750
|
}, {
|
|
646
751
|
id: string;
|
|
647
752
|
}>;
|
|
648
|
-
summary: "Reset
|
|
753
|
+
summary: "Reset team member password";
|
|
649
754
|
method: "POST";
|
|
650
755
|
body: z.ZodObject<{
|
|
651
756
|
newPassword: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
652
757
|
sendNotification: z.ZodOptional<z.ZodBoolean>;
|
|
653
|
-
},
|
|
758
|
+
}, "strip", z.ZodTypeAny, {
|
|
654
759
|
newPassword?: string | undefined;
|
|
655
760
|
sendNotification?: boolean | undefined;
|
|
656
761
|
}, {
|
|
@@ -706,22 +811,22 @@ export declare const userManagementContract: {
|
|
|
706
811
|
id: z.ZodString;
|
|
707
812
|
name: z.ZodString;
|
|
708
813
|
description: z.ZodOptional<z.ZodString>;
|
|
709
|
-
access: z.ZodArray<z.ZodString>;
|
|
814
|
+
access: z.ZodArray<z.ZodString, "many">;
|
|
710
815
|
createdAt: z.ZodString;
|
|
711
816
|
updatedAt: z.ZodString;
|
|
712
|
-
},
|
|
817
|
+
}, "strip", z.ZodTypeAny, {
|
|
713
818
|
name: string;
|
|
714
819
|
id: string;
|
|
715
|
-
access: string[];
|
|
716
820
|
createdAt: string;
|
|
717
821
|
updatedAt: string;
|
|
822
|
+
access: string[];
|
|
718
823
|
description?: string | undefined;
|
|
719
824
|
}, {
|
|
720
825
|
name: string;
|
|
721
826
|
id: string;
|
|
722
|
-
access: string[];
|
|
723
827
|
createdAt: string;
|
|
724
828
|
updatedAt: string;
|
|
829
|
+
access: string[];
|
|
725
830
|
description?: string | undefined;
|
|
726
831
|
}>, "many">;
|
|
727
832
|
401: z.ZodObject<{
|
|
@@ -757,22 +862,22 @@ export declare const userManagementContract: {
|
|
|
757
862
|
id: z.ZodString;
|
|
758
863
|
name: z.ZodString;
|
|
759
864
|
description: z.ZodOptional<z.ZodString>;
|
|
760
|
-
access: z.ZodArray<z.ZodString>;
|
|
865
|
+
access: z.ZodArray<z.ZodString, "many">;
|
|
761
866
|
createdAt: z.ZodString;
|
|
762
867
|
updatedAt: z.ZodString;
|
|
763
|
-
},
|
|
868
|
+
}, "strip", z.ZodTypeAny, {
|
|
764
869
|
name: string;
|
|
765
870
|
id: string;
|
|
766
|
-
access: string[];
|
|
767
871
|
createdAt: string;
|
|
768
872
|
updatedAt: string;
|
|
873
|
+
access: string[];
|
|
769
874
|
description?: string | undefined;
|
|
770
875
|
}, {
|
|
771
876
|
name: string;
|
|
772
877
|
id: string;
|
|
773
|
-
access: string[];
|
|
774
878
|
createdAt: string;
|
|
775
879
|
updatedAt: string;
|
|
880
|
+
access: string[];
|
|
776
881
|
description?: string | undefined;
|
|
777
882
|
}>;
|
|
778
883
|
401: z.ZodObject<{
|
|
@@ -800,7 +905,7 @@ export declare const userManagementContract: {
|
|
|
800
905
|
};
|
|
801
906
|
};
|
|
802
907
|
/**
|
|
803
|
-
* TypeScript type for the complete
|
|
908
|
+
* TypeScript type for the complete team management contract.
|
|
804
909
|
* Use this type for strongly typed API client implementations.
|
|
805
910
|
*/
|
|
806
|
-
export type
|
|
911
|
+
export type TeamManagementContract = typeof teamManagementContract;
|