@temboplus/afloat 0.1.38 → 0.1.40
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/esm/src/features/admin/contract.d.ts +126 -132
- package/esm/src/features/admin/contract.d.ts.map +1 -1
- package/esm/src/features/admin/contract.js +56 -28
- package/esm/src/features/admin/repository.d.ts +17 -3
- package/esm/src/features/admin/repository.d.ts.map +1 -1
- package/esm/src/features/admin/repository.js +23 -9
- package/esm/src/models/permission.d.ts +1 -0
- package/esm/src/models/permission.d.ts.map +1 -1
- package/esm/src/models/permission.js +1 -0
- package/package.json +1 -1
- package/script/src/features/admin/contract.d.ts +126 -132
- package/script/src/features/admin/contract.d.ts.map +1 -1
- package/script/src/features/admin/contract.js +56 -28
- package/script/src/features/admin/repository.d.ts +17 -3
- package/script/src/features/admin/repository.d.ts.map +1 -1
- package/script/src/features/admin/repository.js +23 -9
- package/script/src/models/permission.d.ts +1 -0
- package/script/src/models/permission.d.ts.map +1 -1
- package/script/src/models/permission.js +1 -0
|
@@ -68,7 +68,7 @@ export class UserManagementRepository extends BaseRepository {
|
|
|
68
68
|
/**
|
|
69
69
|
* Archives (soft deletes) a user account by ID.
|
|
70
70
|
* @param {string} id - The unique identifier of the user account to archive.
|
|
71
|
-
* @returns {Promise<
|
|
71
|
+
* @returns {Promise<{ isArchived: boolean }>} A promise that resolves to whether isArchived.
|
|
72
72
|
* @throws {PermissionError} If the user lacks required permissions
|
|
73
73
|
* @throws {APIError} If the response status code is not 200.
|
|
74
74
|
*/
|
|
@@ -77,17 +77,31 @@ export class UserManagementRepository extends BaseRepository {
|
|
|
77
77
|
const requiredPerm = Permissions.UserManagement.ArchiveUser;
|
|
78
78
|
if (!auth.checkPermission(requiredPerm)) {
|
|
79
79
|
throw new PermissionError({
|
|
80
|
-
message: "You are not authorized to archive
|
|
80
|
+
message: "You are not authorized to archive users.",
|
|
81
81
|
requiredPermissions: [requiredPerm],
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
const result = await this.client.archiveUser({ params: { id } });
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
return this.handleResponse(result, 200);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Archives (soft deletes) a user account by ID.
|
|
89
|
+
* @param {string} id - The unique identifier of the user account to archive.
|
|
90
|
+
* @returns {Promise<{ isArchived: boolean }>} A promise that resolves to whether isArchived.
|
|
91
|
+
* @throws {PermissionError} If the user lacks required permissions
|
|
92
|
+
* @throws {APIError} If the response status code is not 200.
|
|
93
|
+
*/
|
|
94
|
+
async unArchiveUser(id) {
|
|
95
|
+
const auth = this.getAuthForPermissionCheck();
|
|
96
|
+
const requiredPerm = Permissions.UserManagement.UnArchiveUser;
|
|
97
|
+
if (!auth.checkPermission(requiredPerm)) {
|
|
98
|
+
throw new PermissionError({
|
|
99
|
+
message: "You are not authorized to un-archive users.",
|
|
100
|
+
requiredPermissions: [requiredPerm],
|
|
101
|
+
});
|
|
89
102
|
}
|
|
90
|
-
|
|
103
|
+
const result = await this.client.unarchiveUser({ params: { id } });
|
|
104
|
+
return this.handleResponse(result, 200);
|
|
91
105
|
}
|
|
92
106
|
/**
|
|
93
107
|
* Resets a user's password.
|
|
@@ -110,7 +124,7 @@ export class UserManagementRepository extends BaseRepository {
|
|
|
110
124
|
params: { id },
|
|
111
125
|
body: input,
|
|
112
126
|
});
|
|
113
|
-
this.handleResponse(result, 200);
|
|
127
|
+
return this.handleResponse(result, 200);
|
|
114
128
|
}
|
|
115
129
|
/**
|
|
116
130
|
* Retrieves all user accounts.
|
|
@@ -209,7 +223,7 @@ export class UserManagementRepository extends BaseRepository {
|
|
|
209
223
|
*/
|
|
210
224
|
async getRole(id) {
|
|
211
225
|
const auth = this.getAuthForPermissionCheck();
|
|
212
|
-
const requiredPerm = Permissions.Role.
|
|
226
|
+
const requiredPerm = Permissions.Role.ViewRole;
|
|
213
227
|
if (!auth.checkPermission(requiredPerm)) {
|
|
214
228
|
throw new PermissionError({
|
|
215
229
|
message: "You are not authorized to view role details.",
|
|
@@ -44,6 +44,7 @@ export declare const Permissions: {
|
|
|
44
44
|
readonly CreateUser: "login.create";
|
|
45
45
|
readonly UpdateUser: "login.update";
|
|
46
46
|
readonly ArchiveUser: "login.archive";
|
|
47
|
+
readonly UnArchiveUser: "login.unarchive";
|
|
47
48
|
readonly ResetPassword: "login.resetPassword";
|
|
48
49
|
};
|
|
49
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../../../src/src/models/permission.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../../../src/src/models/permission.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Cd,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,OAAO,WAAW,CAAC,OAAO,CAAC,MAAM,OAAO,WAAW,CAAC,OAAO,CAAC,GAC5D,OAAO,WAAW,CAAC,OAAO,CAAC,MAAM,OAAO,WAAW,CAAC,OAAO,CAAC,GAC5D,OAAO,WAAW,CAAC,OAAO,CAAC,MAAM,OAAO,WAAW,CAAC,OAAO,CAAC,GAC5D,OAAO,WAAW,CAAC,MAAM,CAAC,MAAM,OAAO,WAAW,CAAC,MAAM,CAAC,GAC1D,OAAO,WAAW,CAAC,QAAQ,CAAC,MAAM,OAAO,WAAW,CAAC,QAAQ,CAAC,GAC9D,OAAO,WAAW,CAAC,cAAc,CAAC,MAAM,OAAO,WAAW,CAAC,cAAc,CAAC,GAC1E,OAAO,WAAW,CAAC,IAAI,CAAC,MAAM,OAAO,WAAW,CAAC,IAAI,CAAC,GACtD,OAAO,WAAW,CAAC,MAAM,CAAC,MAAM,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -72,18 +72,18 @@ export declare const userManagementContract: {
|
|
|
72
72
|
};
|
|
73
73
|
}>, "many">;
|
|
74
74
|
401: z.ZodObject<{
|
|
75
|
-
message: z.ZodString
|
|
75
|
+
message: z.ZodOptional<z.ZodString>;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
message
|
|
77
|
+
message?: string | undefined;
|
|
78
78
|
}, {
|
|
79
|
-
message
|
|
79
|
+
message?: string | undefined;
|
|
80
80
|
}>;
|
|
81
81
|
403: z.ZodObject<{
|
|
82
|
-
message: z.ZodString
|
|
82
|
+
message: z.ZodOptional<z.ZodString>;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
message
|
|
84
|
+
message?: string | undefined;
|
|
85
85
|
}, {
|
|
86
|
-
message
|
|
86
|
+
message?: string | undefined;
|
|
87
87
|
}>;
|
|
88
88
|
};
|
|
89
89
|
};
|
|
@@ -166,25 +166,25 @@ export declare const userManagementContract: {
|
|
|
166
166
|
};
|
|
167
167
|
}>;
|
|
168
168
|
401: z.ZodObject<{
|
|
169
|
-
message: z.ZodString
|
|
169
|
+
message: z.ZodOptional<z.ZodString>;
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
message
|
|
171
|
+
message?: string | undefined;
|
|
172
172
|
}, {
|
|
173
|
-
message
|
|
173
|
+
message?: string | undefined;
|
|
174
174
|
}>;
|
|
175
175
|
403: z.ZodObject<{
|
|
176
|
-
message: z.ZodString
|
|
176
|
+
message: z.ZodOptional<z.ZodString>;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
message
|
|
178
|
+
message?: string | undefined;
|
|
179
179
|
}, {
|
|
180
|
-
message
|
|
180
|
+
message?: string | undefined;
|
|
181
181
|
}>;
|
|
182
182
|
404: z.ZodObject<{
|
|
183
|
-
message: z.ZodString
|
|
183
|
+
message: z.ZodOptional<z.ZodString>;
|
|
184
184
|
}, "strip", z.ZodTypeAny, {
|
|
185
|
-
message
|
|
185
|
+
message?: string | undefined;
|
|
186
186
|
}, {
|
|
187
|
-
message
|
|
187
|
+
message?: string | undefined;
|
|
188
188
|
}>;
|
|
189
189
|
};
|
|
190
190
|
};
|
|
@@ -242,35 +242,35 @@ export declare const userManagementContract: {
|
|
|
242
242
|
isActive: boolean;
|
|
243
243
|
}>;
|
|
244
244
|
400: z.ZodObject<{
|
|
245
|
-
message: z.ZodString
|
|
245
|
+
message: z.ZodOptional<z.ZodString>;
|
|
246
246
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
247
247
|
}, "strip", z.ZodTypeAny, {
|
|
248
|
-
message
|
|
248
|
+
message?: string | undefined;
|
|
249
249
|
errors?: string[] | undefined;
|
|
250
250
|
}, {
|
|
251
|
-
message
|
|
251
|
+
message?: string | undefined;
|
|
252
252
|
errors?: string[] | undefined;
|
|
253
253
|
}>;
|
|
254
254
|
401: z.ZodObject<{
|
|
255
|
-
message: z.ZodString
|
|
255
|
+
message: z.ZodOptional<z.ZodString>;
|
|
256
256
|
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
message
|
|
257
|
+
message?: string | undefined;
|
|
258
258
|
}, {
|
|
259
|
-
message
|
|
259
|
+
message?: string | undefined;
|
|
260
260
|
}>;
|
|
261
261
|
403: z.ZodObject<{
|
|
262
|
-
message: z.ZodString
|
|
262
|
+
message: z.ZodOptional<z.ZodString>;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
message
|
|
264
|
+
message?: string | undefined;
|
|
265
265
|
}, {
|
|
266
|
-
message
|
|
266
|
+
message?: string | undefined;
|
|
267
267
|
}>;
|
|
268
268
|
409: z.ZodObject<{
|
|
269
|
-
message: z.ZodString
|
|
269
|
+
message: z.ZodOptional<z.ZodString>;
|
|
270
270
|
}, "strip", z.ZodTypeAny, {
|
|
271
|
-
message
|
|
271
|
+
message?: string | undefined;
|
|
272
272
|
}, {
|
|
273
|
-
message
|
|
273
|
+
message?: string | undefined;
|
|
274
274
|
}>;
|
|
275
275
|
};
|
|
276
276
|
};
|
|
@@ -365,35 +365,35 @@ export declare const userManagementContract: {
|
|
|
365
365
|
};
|
|
366
366
|
}>;
|
|
367
367
|
400: z.ZodObject<{
|
|
368
|
-
message: z.ZodString
|
|
368
|
+
message: z.ZodOptional<z.ZodString>;
|
|
369
369
|
errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
370
370
|
}, "strip", z.ZodTypeAny, {
|
|
371
|
-
message
|
|
371
|
+
message?: string | undefined;
|
|
372
372
|
errors?: string[] | undefined;
|
|
373
373
|
}, {
|
|
374
|
-
message
|
|
374
|
+
message?: string | undefined;
|
|
375
375
|
errors?: string[] | undefined;
|
|
376
376
|
}>;
|
|
377
377
|
401: z.ZodObject<{
|
|
378
|
-
message: z.ZodString
|
|
378
|
+
message: z.ZodOptional<z.ZodString>;
|
|
379
379
|
}, "strip", z.ZodTypeAny, {
|
|
380
|
-
message
|
|
380
|
+
message?: string | undefined;
|
|
381
381
|
}, {
|
|
382
|
-
message
|
|
382
|
+
message?: string | undefined;
|
|
383
383
|
}>;
|
|
384
384
|
403: z.ZodObject<{
|
|
385
|
-
message: z.ZodString
|
|
385
|
+
message: z.ZodOptional<z.ZodString>;
|
|
386
386
|
}, "strip", z.ZodTypeAny, {
|
|
387
|
-
message
|
|
387
|
+
message?: string | undefined;
|
|
388
388
|
}, {
|
|
389
|
-
message
|
|
389
|
+
message?: string | undefined;
|
|
390
390
|
}>;
|
|
391
391
|
404: z.ZodObject<{
|
|
392
|
-
message: z.ZodString
|
|
392
|
+
message: z.ZodOptional<z.ZodString>;
|
|
393
393
|
}, "strip", z.ZodTypeAny, {
|
|
394
|
-
message
|
|
394
|
+
message?: string | undefined;
|
|
395
395
|
}, {
|
|
396
|
-
message
|
|
396
|
+
message?: string | undefined;
|
|
397
397
|
}>;
|
|
398
398
|
};
|
|
399
399
|
};
|
|
@@ -407,87 +407,81 @@ export declare const userManagementContract: {
|
|
|
407
407
|
id: string;
|
|
408
408
|
}>;
|
|
409
409
|
summary: "Archive user account";
|
|
410
|
-
method: "
|
|
411
|
-
|
|
410
|
+
method: "POST";
|
|
411
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
412
|
+
path: "/login/:id/archive";
|
|
412
413
|
responses: {
|
|
413
414
|
200: z.ZodObject<{
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
type: z.ZodString;
|
|
418
|
-
profileId: z.ZodString;
|
|
419
|
-
roleId: z.ZodString;
|
|
420
|
-
resetPassword: z.ZodBoolean;
|
|
421
|
-
isActive: z.ZodBoolean;
|
|
422
|
-
role: z.ZodType<{
|
|
423
|
-
id: string;
|
|
424
|
-
access: string[];
|
|
425
|
-
name: string;
|
|
426
|
-
createdAt: string;
|
|
427
|
-
updatedAt: string;
|
|
428
|
-
description?: string | undefined;
|
|
429
|
-
}>;
|
|
430
|
-
createdAt: z.ZodString;
|
|
431
|
-
updatedAt: z.ZodString;
|
|
432
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
433
|
-
type: string;
|
|
434
|
-
id: string;
|
|
435
|
-
resetPassword: boolean;
|
|
436
|
-
name: string;
|
|
437
|
-
identity: string;
|
|
438
|
-
profileId: string;
|
|
439
|
-
createdAt: string;
|
|
440
|
-
updatedAt: string;
|
|
441
|
-
roleId: string;
|
|
442
|
-
isActive: boolean;
|
|
443
|
-
role: {
|
|
444
|
-
id: string;
|
|
445
|
-
access: string[];
|
|
446
|
-
name: string;
|
|
447
|
-
createdAt: string;
|
|
448
|
-
updatedAt: string;
|
|
449
|
-
description?: string | undefined;
|
|
450
|
-
};
|
|
415
|
+
isArchived: z.ZodBoolean;
|
|
416
|
+
}, "strip", z.ZodTypeAny, {
|
|
417
|
+
isArchived: boolean;
|
|
451
418
|
}, {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
419
|
+
isArchived: boolean;
|
|
420
|
+
}>;
|
|
421
|
+
401: z.ZodObject<{
|
|
422
|
+
message: z.ZodOptional<z.ZodString>;
|
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
|
424
|
+
message?: string | undefined;
|
|
425
|
+
}, {
|
|
426
|
+
message?: string | undefined;
|
|
427
|
+
}>;
|
|
428
|
+
403: z.ZodObject<{
|
|
429
|
+
message: z.ZodOptional<z.ZodString>;
|
|
430
|
+
}, "strip", z.ZodTypeAny, {
|
|
431
|
+
message?: string | undefined;
|
|
432
|
+
}, {
|
|
433
|
+
message?: string | undefined;
|
|
434
|
+
}>;
|
|
435
|
+
404: z.ZodObject<{
|
|
436
|
+
message: z.ZodOptional<z.ZodString>;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
message?: string | undefined;
|
|
439
|
+
}, {
|
|
440
|
+
message?: string | undefined;
|
|
441
|
+
}>;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
unarchiveUser: {
|
|
445
|
+
description: "Un-archive (soft delete) a user account";
|
|
446
|
+
pathParams: z.ZodObject<{
|
|
447
|
+
id: z.ZodString;
|
|
448
|
+
}, "strip", z.ZodTypeAny, {
|
|
449
|
+
id: string;
|
|
450
|
+
}, {
|
|
451
|
+
id: string;
|
|
452
|
+
}>;
|
|
453
|
+
summary: "Un-archive user account";
|
|
454
|
+
method: "POST";
|
|
455
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
456
|
+
path: "/login/:id/unarchive";
|
|
457
|
+
responses: {
|
|
458
|
+
200: z.ZodObject<{
|
|
459
|
+
isArchived: z.ZodBoolean;
|
|
460
|
+
}, "strip", z.ZodTypeAny, {
|
|
461
|
+
isArchived: boolean;
|
|
462
|
+
}, {
|
|
463
|
+
isArchived: boolean;
|
|
470
464
|
}>;
|
|
471
465
|
401: z.ZodObject<{
|
|
472
|
-
message: z.ZodString
|
|
466
|
+
message: z.ZodOptional<z.ZodString>;
|
|
473
467
|
}, "strip", z.ZodTypeAny, {
|
|
474
|
-
message
|
|
468
|
+
message?: string | undefined;
|
|
475
469
|
}, {
|
|
476
|
-
message
|
|
470
|
+
message?: string | undefined;
|
|
477
471
|
}>;
|
|
478
472
|
403: z.ZodObject<{
|
|
479
|
-
message: z.ZodString
|
|
473
|
+
message: z.ZodOptional<z.ZodString>;
|
|
480
474
|
}, "strip", z.ZodTypeAny, {
|
|
481
|
-
message
|
|
475
|
+
message?: string | undefined;
|
|
482
476
|
}, {
|
|
483
|
-
message
|
|
477
|
+
message?: string | undefined;
|
|
484
478
|
}>;
|
|
485
479
|
404: z.ZodObject<{
|
|
486
|
-
message: z.ZodString
|
|
480
|
+
message: z.ZodOptional<z.ZodString>;
|
|
487
481
|
}, "strip", z.ZodTypeAny, {
|
|
488
|
-
message
|
|
482
|
+
message?: string | undefined;
|
|
489
483
|
}, {
|
|
490
|
-
message
|
|
484
|
+
message?: string | undefined;
|
|
491
485
|
}>;
|
|
492
486
|
};
|
|
493
487
|
};
|
|
@@ -522,32 +516,32 @@ export declare const userManagementContract: {
|
|
|
522
516
|
success: boolean;
|
|
523
517
|
}>;
|
|
524
518
|
400: z.ZodObject<{
|
|
525
|
-
message: z.ZodString
|
|
519
|
+
message: z.ZodOptional<z.ZodString>;
|
|
526
520
|
}, "strip", z.ZodTypeAny, {
|
|
527
|
-
message
|
|
521
|
+
message?: string | undefined;
|
|
528
522
|
}, {
|
|
529
|
-
message
|
|
523
|
+
message?: string | undefined;
|
|
530
524
|
}>;
|
|
531
525
|
401: z.ZodObject<{
|
|
532
|
-
message: z.ZodString
|
|
526
|
+
message: z.ZodOptional<z.ZodString>;
|
|
533
527
|
}, "strip", z.ZodTypeAny, {
|
|
534
|
-
message
|
|
528
|
+
message?: string | undefined;
|
|
535
529
|
}, {
|
|
536
|
-
message
|
|
530
|
+
message?: string | undefined;
|
|
537
531
|
}>;
|
|
538
532
|
403: z.ZodObject<{
|
|
539
|
-
message: z.ZodString
|
|
533
|
+
message: z.ZodOptional<z.ZodString>;
|
|
540
534
|
}, "strip", z.ZodTypeAny, {
|
|
541
|
-
message
|
|
535
|
+
message?: string | undefined;
|
|
542
536
|
}, {
|
|
543
|
-
message
|
|
537
|
+
message?: string | undefined;
|
|
544
538
|
}>;
|
|
545
539
|
404: z.ZodObject<{
|
|
546
|
-
message: z.ZodString
|
|
540
|
+
message: z.ZodOptional<z.ZodString>;
|
|
547
541
|
}, "strip", z.ZodTypeAny, {
|
|
548
|
-
message
|
|
542
|
+
message?: string | undefined;
|
|
549
543
|
}, {
|
|
550
|
-
message
|
|
544
|
+
message?: string | undefined;
|
|
551
545
|
}>;
|
|
552
546
|
};
|
|
553
547
|
};
|
|
@@ -580,18 +574,18 @@ export declare const userManagementContract: {
|
|
|
580
574
|
description?: string | undefined;
|
|
581
575
|
}>, "many">;
|
|
582
576
|
401: z.ZodObject<{
|
|
583
|
-
message: z.ZodString
|
|
577
|
+
message: z.ZodOptional<z.ZodString>;
|
|
584
578
|
}, "strip", z.ZodTypeAny, {
|
|
585
|
-
message
|
|
579
|
+
message?: string | undefined;
|
|
586
580
|
}, {
|
|
587
|
-
message
|
|
581
|
+
message?: string | undefined;
|
|
588
582
|
}>;
|
|
589
583
|
403: z.ZodObject<{
|
|
590
|
-
message: z.ZodString
|
|
584
|
+
message: z.ZodOptional<z.ZodString>;
|
|
591
585
|
}, "strip", z.ZodTypeAny, {
|
|
592
|
-
message
|
|
586
|
+
message?: string | undefined;
|
|
593
587
|
}, {
|
|
594
|
-
message
|
|
588
|
+
message?: string | undefined;
|
|
595
589
|
}>;
|
|
596
590
|
};
|
|
597
591
|
};
|
|
@@ -631,25 +625,25 @@ export declare const userManagementContract: {
|
|
|
631
625
|
description?: string | undefined;
|
|
632
626
|
}>;
|
|
633
627
|
401: z.ZodObject<{
|
|
634
|
-
message: z.ZodString
|
|
628
|
+
message: z.ZodOptional<z.ZodString>;
|
|
635
629
|
}, "strip", z.ZodTypeAny, {
|
|
636
|
-
message
|
|
630
|
+
message?: string | undefined;
|
|
637
631
|
}, {
|
|
638
|
-
message
|
|
632
|
+
message?: string | undefined;
|
|
639
633
|
}>;
|
|
640
634
|
403: z.ZodObject<{
|
|
641
|
-
message: z.ZodString
|
|
635
|
+
message: z.ZodOptional<z.ZodString>;
|
|
642
636
|
}, "strip", z.ZodTypeAny, {
|
|
643
|
-
message
|
|
637
|
+
message?: string | undefined;
|
|
644
638
|
}, {
|
|
645
|
-
message
|
|
639
|
+
message?: string | undefined;
|
|
646
640
|
}>;
|
|
647
641
|
404: z.ZodObject<{
|
|
648
|
-
message: z.ZodString
|
|
642
|
+
message: z.ZodOptional<z.ZodString>;
|
|
649
643
|
}, "strip", z.ZodTypeAny, {
|
|
650
|
-
message
|
|
644
|
+
message?: string | undefined;
|
|
651
645
|
}, {
|
|
652
|
-
message
|
|
646
|
+
message?: string | undefined;
|
|
653
647
|
}>;
|
|
654
648
|
};
|
|
655
649
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/src/features/admin/contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/src/features/admin/contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8NjC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC"}
|