@dakkitor/api-contracts 1.1.73 → 1.1.76
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/abilities/first-agent.abilities.json +4 -1
- package/dist/abilities/second-agent.abilities.json +1 -0
- package/dist/actives/actives.contract.d.ts +2959 -2199
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +416 -416
- package/dist/auth/auth.contract.d.ts +4 -4
- package/dist/bookings/bookings.contract.d.ts +2634 -1894
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +0 -2
- package/dist/call-history/call-history.contract.d.ts +409 -409
- package/dist/client-contacts/client-contacts.contract.d.ts +231 -231
- package/dist/clients/clients.contract.d.ts +98 -98
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1269 -749
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +1069 -609
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.js +2 -11
- package/dist/common/common-schemas.d.ts +0 -17
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +1 -9
- package/dist/companies/companies.contract.d.ts +36 -36
- package/dist/curated-workers/curated-workers.contract.d.ts +213 -213
- package/dist/jobs/jobs.contract.d.ts +1053 -533
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/lead-assignments/lead-assignments.contract.d.ts +344 -344
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +111 -111
- package/dist/leads/leads.contract.d.ts +101 -101
- package/dist/users/users.contract.d.ts +132 -132
- package/dist/workers/workers.contract.d.ts +200 -200
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collaborations.contract.d.ts","sourceRoot":"","sources":["../../contracts/collaborations/collaborations.contract.ts"],"names":[],"mappings":"A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHxC,CAAC"}
|
|
@@ -10,6 +10,7 @@ const pagination_query_schema_1 = require("../common/pagination-query.schema");
|
|
|
10
10
|
const pagination_schema_1 = require("../common/pagination.schema");
|
|
11
11
|
const clients_contract_1 = require("../clients/clients.contract");
|
|
12
12
|
const companies_contract_1 = require("../companies/companies.contract");
|
|
13
|
+
const users_contract_1 = require("../users/users.contract");
|
|
13
14
|
(0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
|
|
14
15
|
/**
|
|
15
16
|
* Collaboration Status Enum
|
|
@@ -31,14 +32,6 @@ exports.CollaborationStatusSchema = zod_1.z
|
|
|
31
32
|
exports.CollaborationSortableFieldsSchema = zod_1.z
|
|
32
33
|
.enum(['createdAt', 'updatedAt', 'status'])
|
|
33
34
|
.openapi({ title: 'CollaborationSortableFields' });
|
|
34
|
-
const UserSummaryForCollaborationSchema = zod_1.z
|
|
35
|
-
.object({
|
|
36
|
-
id: zod_1.z.string().uuid().describe('User ID'),
|
|
37
|
-
firstName: zod_1.z.string().describe('First Name'),
|
|
38
|
-
lastName: zod_1.z.string().describe('Last Name'),
|
|
39
|
-
email: zod_1.z.string().email().describe('Email'),
|
|
40
|
-
})
|
|
41
|
-
.openapi({ title: 'UserSummaryForCollaboration' });
|
|
42
35
|
/**
|
|
43
36
|
* Base Collaboration Schema (without self-reference, used for nested collaboration)
|
|
44
37
|
*/
|
|
@@ -46,9 +39,7 @@ const BaseCollaborationSchema = zod_1.z.object({
|
|
|
46
39
|
id: zod_1.z.string().uuid().describe('Collaboration ID'),
|
|
47
40
|
company: companies_contract_1.CompanySchema.nullable().optional(),
|
|
48
41
|
client: clients_contract_1.ClientSchema.nullable().optional(),
|
|
49
|
-
user:
|
|
50
|
-
.optional()
|
|
51
|
-
.describe('User (Agent)'),
|
|
42
|
+
user: users_contract_1.UserSchema.nullable().optional().describe('User (Agent)'),
|
|
52
43
|
status: exports.CollaborationStatusSchema.describe('Collaboration Status'),
|
|
53
44
|
userId: zod_1.z.string().uuid().describe('User ID'),
|
|
54
45
|
createdAt: zod_1.z
|
|
@@ -81,23 +81,6 @@ export declare const ResourceIdSchema: z.ZodObject<{
|
|
|
81
81
|
id: string;
|
|
82
82
|
}>;
|
|
83
83
|
export type ResourceId = z.infer<typeof ResourceIdSchema>;
|
|
84
|
-
export declare const UserSummarySchema: z.ZodObject<{
|
|
85
|
-
id: z.ZodString;
|
|
86
|
-
firstName: z.ZodString;
|
|
87
|
-
lastName: z.ZodString;
|
|
88
|
-
email: z.ZodString;
|
|
89
|
-
}, "strip", z.ZodTypeAny, {
|
|
90
|
-
id: string;
|
|
91
|
-
firstName: string;
|
|
92
|
-
lastName: string;
|
|
93
|
-
email: string;
|
|
94
|
-
}, {
|
|
95
|
-
id: string;
|
|
96
|
-
firstName: string;
|
|
97
|
-
lastName: string;
|
|
98
|
-
email: string;
|
|
99
|
-
}>;
|
|
100
|
-
export type UserSummary = z.infer<typeof UserSummarySchema>;
|
|
101
84
|
export declare const PayRangeSchema: z.ZodObject<{
|
|
102
85
|
minRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
103
86
|
maxRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-schemas.d.ts","sourceRoot":"","sources":["../../contracts/common/common-schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AAEH,eAAO,MAAM,eAAe,4BAEM,CAAC;AAEnC,eAAO,MAAM,cAAc,gCAA8B,CAAC;AAE1D,eAAO,MAAM,eAAe;;;;;;;;;EAKM,CAAC;AAEnC,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,kBAAkB,oEAEM,CAAC;AAEtC,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,iBAAiB,i6EAoMM,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EAYhC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAA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KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;EAYM,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;EAeM,CAAC;AAElC,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,qBAAqB;;;;;;EAIM,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageResponseSchema = exports.PayRangeSchema = exports.
|
|
3
|
+
exports.MessageResponseSchema = exports.PayRangeSchema = exports.ResourceIdSchema = exports.AutocompleteQuerySchema = exports.LocationDetailsSchema = exports.CreateLocationSchema = exports.NationalitySchema = exports.EnglishLevelSchema = exports.DateRangeSchema = exports.RateUnitSchema = exports.SortOrderSchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@anatine/zod-openapi");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
(0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
|
|
@@ -255,14 +255,6 @@ exports.AutocompleteQuerySchema = zod_1.z
|
|
|
255
255
|
exports.ResourceIdSchema = zod_1.z.object({
|
|
256
256
|
id: zod_1.z.string().uuid().describe('The unique identifier of the resource'),
|
|
257
257
|
});
|
|
258
|
-
exports.UserSummarySchema = zod_1.z
|
|
259
|
-
.object({
|
|
260
|
-
id: zod_1.z.string().uuid().describe('User ID'),
|
|
261
|
-
firstName: zod_1.z.string().describe('First Name'),
|
|
262
|
-
lastName: zod_1.z.string().describe('Last Name'),
|
|
263
|
-
email: zod_1.z.string().email().describe('Email Address'),
|
|
264
|
-
})
|
|
265
|
-
.openapi({ title: 'UserSummary' });
|
|
266
258
|
exports.PayRangeSchema = zod_1.z
|
|
267
259
|
.object({
|
|
268
260
|
minRate: zod_1.z.coerce
|
|
@@ -9,14 +9,14 @@ export declare const CompanySchema: z.ZodObject<{
|
|
|
9
9
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
id: string;
|
|
12
|
-
name: string;
|
|
13
12
|
createdAt: string;
|
|
14
13
|
updatedAt: string;
|
|
14
|
+
name: string;
|
|
15
15
|
}, {
|
|
16
16
|
id: string;
|
|
17
|
-
name: string;
|
|
18
17
|
createdAt: string | Date;
|
|
19
18
|
updatedAt: string | Date;
|
|
19
|
+
name: string;
|
|
20
20
|
}>;
|
|
21
21
|
export declare const CreateCompanySchema: z.ZodObject<{
|
|
22
22
|
name: z.ZodString;
|
|
@@ -43,13 +43,13 @@ export declare const FilterCompanySchema: z.ZodObject<{
|
|
|
43
43
|
limit: number;
|
|
44
44
|
page: number;
|
|
45
45
|
name?: string | null | undefined;
|
|
46
|
-
sortBy?: "
|
|
46
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | null | undefined;
|
|
47
47
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
name?: string | null | undefined;
|
|
50
49
|
limit?: number | undefined;
|
|
51
50
|
page?: number | undefined;
|
|
52
|
-
|
|
51
|
+
name?: string | null | undefined;
|
|
52
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | null | undefined;
|
|
53
53
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
54
54
|
}>;
|
|
55
55
|
export declare const CompanyAutocompleteResponseSchema: z.ZodObject<{
|
|
@@ -80,14 +80,14 @@ export declare const CompaniesPaginatedResponseSchema: z.ZodObject<{
|
|
|
80
80
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
82
|
id: string;
|
|
83
|
-
name: string;
|
|
84
83
|
createdAt: string;
|
|
85
84
|
updatedAt: string;
|
|
85
|
+
name: string;
|
|
86
86
|
}, {
|
|
87
87
|
id: string;
|
|
88
|
-
name: string;
|
|
89
88
|
createdAt: string | Date;
|
|
90
89
|
updatedAt: string | Date;
|
|
90
|
+
name: string;
|
|
91
91
|
}>, "many">;
|
|
92
92
|
totalCount: z.ZodNumber;
|
|
93
93
|
limit: z.ZodNumber;
|
|
@@ -98,9 +98,9 @@ export declare const CompaniesPaginatedResponseSchema: z.ZodObject<{
|
|
|
98
98
|
limit: number;
|
|
99
99
|
items: {
|
|
100
100
|
id: string;
|
|
101
|
-
name: string;
|
|
102
101
|
createdAt: string;
|
|
103
102
|
updatedAt: string;
|
|
103
|
+
name: string;
|
|
104
104
|
}[];
|
|
105
105
|
totalCount: number;
|
|
106
106
|
skip: number;
|
|
@@ -110,9 +110,9 @@ export declare const CompaniesPaginatedResponseSchema: z.ZodObject<{
|
|
|
110
110
|
limit: number;
|
|
111
111
|
items: {
|
|
112
112
|
id: string;
|
|
113
|
-
name: string;
|
|
114
113
|
createdAt: string | Date;
|
|
115
114
|
updatedAt: string | Date;
|
|
115
|
+
name: string;
|
|
116
116
|
}[];
|
|
117
117
|
totalCount: number;
|
|
118
118
|
skip: number;
|
|
@@ -253,14 +253,14 @@ export declare const companiesContractRouter: {
|
|
|
253
253
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
254
254
|
}, "strip", z.ZodTypeAny, {
|
|
255
255
|
id: string;
|
|
256
|
-
name: string;
|
|
257
256
|
createdAt: string;
|
|
258
257
|
updatedAt: string;
|
|
258
|
+
name: string;
|
|
259
259
|
}, {
|
|
260
260
|
id: string;
|
|
261
|
-
name: string;
|
|
262
261
|
createdAt: string | Date;
|
|
263
262
|
updatedAt: string | Date;
|
|
263
|
+
name: string;
|
|
264
264
|
}>;
|
|
265
265
|
409: z.ZodObject<{
|
|
266
266
|
statusCode: z.ZodNumber;
|
|
@@ -290,12 +290,6 @@ export declare const companiesContractRouter: {
|
|
|
290
290
|
};
|
|
291
291
|
};
|
|
292
292
|
findAll: {
|
|
293
|
-
metadata: {
|
|
294
|
-
tags: string[];
|
|
295
|
-
openApi: {
|
|
296
|
-
operationId: string;
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
293
|
query: z.ZodObject<{
|
|
300
294
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
301
295
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -307,15 +301,21 @@ export declare const companiesContractRouter: {
|
|
|
307
301
|
limit: number;
|
|
308
302
|
page: number;
|
|
309
303
|
name?: string | null | undefined;
|
|
310
|
-
sortBy?: "
|
|
304
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | null | undefined;
|
|
311
305
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
312
306
|
}, {
|
|
313
|
-
name?: string | null | undefined;
|
|
314
307
|
limit?: number | undefined;
|
|
315
308
|
page?: number | undefined;
|
|
316
|
-
|
|
309
|
+
name?: string | null | undefined;
|
|
310
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | null | undefined;
|
|
317
311
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
318
312
|
}>;
|
|
313
|
+
metadata: {
|
|
314
|
+
tags: string[];
|
|
315
|
+
openApi: {
|
|
316
|
+
operationId: string;
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
319
|
summary: "Get all companies";
|
|
320
320
|
method: "GET";
|
|
321
321
|
path: "/v2/companies";
|
|
@@ -428,14 +428,14 @@ export declare const companiesContractRouter: {
|
|
|
428
428
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
429
429
|
}, "strip", z.ZodTypeAny, {
|
|
430
430
|
id: string;
|
|
431
|
-
name: string;
|
|
432
431
|
createdAt: string;
|
|
433
432
|
updatedAt: string;
|
|
433
|
+
name: string;
|
|
434
434
|
}, {
|
|
435
435
|
id: string;
|
|
436
|
-
name: string;
|
|
437
436
|
createdAt: string | Date;
|
|
438
437
|
updatedAt: string | Date;
|
|
438
|
+
name: string;
|
|
439
439
|
}>, "many">;
|
|
440
440
|
totalCount: z.ZodNumber;
|
|
441
441
|
limit: z.ZodNumber;
|
|
@@ -446,9 +446,9 @@ export declare const companiesContractRouter: {
|
|
|
446
446
|
limit: number;
|
|
447
447
|
items: {
|
|
448
448
|
id: string;
|
|
449
|
-
name: string;
|
|
450
449
|
createdAt: string;
|
|
451
450
|
updatedAt: string;
|
|
451
|
+
name: string;
|
|
452
452
|
}[];
|
|
453
453
|
totalCount: number;
|
|
454
454
|
skip: number;
|
|
@@ -458,9 +458,9 @@ export declare const companiesContractRouter: {
|
|
|
458
458
|
limit: number;
|
|
459
459
|
items: {
|
|
460
460
|
id: string;
|
|
461
|
-
name: string;
|
|
462
461
|
createdAt: string | Date;
|
|
463
462
|
updatedAt: string | Date;
|
|
463
|
+
name: string;
|
|
464
464
|
}[];
|
|
465
465
|
totalCount: number;
|
|
466
466
|
skip: number;
|
|
@@ -470,22 +470,22 @@ export declare const companiesContractRouter: {
|
|
|
470
470
|
};
|
|
471
471
|
};
|
|
472
472
|
autocomplete: {
|
|
473
|
-
metadata: {
|
|
474
|
-
tags: string[];
|
|
475
|
-
openApi: {
|
|
476
|
-
operationId: string;
|
|
477
|
-
};
|
|
478
|
-
};
|
|
479
473
|
query: z.ZodObject<{
|
|
480
474
|
query: z.ZodOptional<z.ZodString>;
|
|
481
475
|
id: z.ZodOptional<z.ZodString>;
|
|
482
476
|
}, "strip", z.ZodTypeAny, {
|
|
483
|
-
id?: string | undefined;
|
|
484
477
|
query?: string | undefined;
|
|
485
|
-
}, {
|
|
486
478
|
id?: string | undefined;
|
|
479
|
+
}, {
|
|
487
480
|
query?: string | undefined;
|
|
481
|
+
id?: string | undefined;
|
|
488
482
|
}>;
|
|
483
|
+
metadata: {
|
|
484
|
+
tags: string[];
|
|
485
|
+
openApi: {
|
|
486
|
+
operationId: string;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
489
|
summary: "Get companies for autocomplete";
|
|
490
490
|
method: "GET";
|
|
491
491
|
path: "/v2/companies/autocomplete";
|
|
@@ -727,14 +727,14 @@ export declare const companiesContractRouter: {
|
|
|
727
727
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
728
728
|
}, "strip", z.ZodTypeAny, {
|
|
729
729
|
id: string;
|
|
730
|
-
name: string;
|
|
731
730
|
createdAt: string;
|
|
732
731
|
updatedAt: string;
|
|
732
|
+
name: string;
|
|
733
733
|
}, {
|
|
734
734
|
id: string;
|
|
735
|
-
name: string;
|
|
736
735
|
createdAt: string | Date;
|
|
737
736
|
updatedAt: string | Date;
|
|
737
|
+
name: string;
|
|
738
738
|
}>;
|
|
739
739
|
404: z.ZodObject<{
|
|
740
740
|
statusCode: z.ZodNumber;
|
|
@@ -895,14 +895,14 @@ export declare const companiesContractRouter: {
|
|
|
895
895
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
896
896
|
}, "strip", z.ZodTypeAny, {
|
|
897
897
|
id: string;
|
|
898
|
-
name: string;
|
|
899
898
|
createdAt: string;
|
|
900
899
|
updatedAt: string;
|
|
900
|
+
name: string;
|
|
901
901
|
}, {
|
|
902
902
|
id: string;
|
|
903
|
-
name: string;
|
|
904
903
|
createdAt: string | Date;
|
|
905
904
|
updatedAt: string | Date;
|
|
905
|
+
name: string;
|
|
906
906
|
}>;
|
|
907
907
|
404: z.ZodObject<{
|
|
908
908
|
statusCode: z.ZodNumber;
|