@dakkitor/api-contracts 1.9.1 → 1.9.3
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/abilities.contract.d.ts +28 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +31 -1
- package/dist/abilities/abilities.contract.spec.js +52 -3
- package/dist/abilities/admin-dashboard.abilities.test.js +1 -0
- package/dist/abilities/automatic-caller.abilities.json +1 -0
- package/dist/abilities/first-agent.abilities.json +14 -0
- package/dist/abilities/interconnection.abilities.json +17 -1
- package/dist/abilities/office-manager.abilities.json +4 -0
- package/dist/abilities/second-agent.abilities.json +32 -1
- package/dist/abilities/worker-curator.abilities.json +17 -1
- package/dist/actives/actives.contract.d.ts +7200 -6919
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +137 -137
- package/dist/auth/auth.contract.d.ts +85 -85
- package/dist/bookings/backdate-guard.spec.js +24 -32
- package/dist/bookings/bookings.contract.d.ts +10542 -10116
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +2 -16
- package/dist/call-history/call-history.contract.d.ts +315 -140
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +39 -6
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +9230 -4114
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.js +362 -16
- package/dist/candidate-calling/candidate-calling.contract.spec.js +164 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts +10 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.js +33 -0
- package/dist/client-contacts/client-contacts.contract.d.ts +622 -622
- package/dist/clients/clients.contract.d.ts +289 -289
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +601 -601
- package/dist/collaborations/collaborations.contract.d.ts +538 -538
- package/dist/common/callback-slots.d.ts +4 -0
- package/dist/common/callback-slots.d.ts.map +1 -0
- package/dist/common/callback-slots.js +20 -0
- package/dist/common/common-schemas.d.ts +10 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +6 -0
- package/dist/companies/companies.contract.d.ts +120 -120
- package/dist/crews/crews.contract.d.ts +278 -278
- package/dist/cron-executions/cron-executions.contract.d.ts +238 -238
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2154 -1296
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +36 -3
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +300 -300
- package/dist/curated-worker-leads/contact-history.spec.js +86 -0
- package/dist/curated-worker-leads/job-candidate-cards.spec.js +19 -0
- package/dist/curated-worker-leads/job-candidates.spec.js +179 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +8598 -2519
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +126 -1
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +110 -110
- package/dist/curated-workers/curated-workers.contract.d.ts +1213 -1131
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts +2 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts.map +1 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.js +160 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +1278 -535
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +46 -1
- package/dist/dashboards/dashboard.contract.d.ts +8 -8
- package/dist/document-intake/document-intake.contract.d.ts +1145 -1145
- package/dist/export-jobs/export-jobs.contract.d.ts +663 -663
- package/dist/exports-events/exports-events.schemas.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/jobs/jobs.contract.d.ts +5586 -3381
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +95 -2
- package/dist/jobs/jobs.contract.spec.js +231 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +123 -123
- package/dist/lead-assignments/lead-assignments.contract.d.ts +1897 -122
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-assignments/lead-assignments.contract.js +102 -2
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts +2 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts.map +1 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.js +51 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +103 -103
- package/dist/leads/leads.contract.d.ts +210 -210
- package/dist/locations/location-enrichment.contract.spec.d.ts +2 -0
- package/dist/locations/location-enrichment.contract.spec.d.ts.map +1 -0
- package/dist/locations/location-enrichment.contract.spec.js +50 -0
- package/dist/locations/locations.contract.d.ts +132 -98
- package/dist/locations/locations.contract.d.ts.map +1 -1
- package/dist/locations/locations.contract.js +10 -0
- package/dist/notifications/notifications.contract.d.ts +512 -40
- package/dist/notifications/notifications.contract.d.ts.map +1 -1
- package/dist/notifications/notifications.contract.js +36 -2
- package/dist/notifications/notifications.contract.spec.d.ts +2 -0
- package/dist/notifications/notifications.contract.spec.d.ts.map +1 -0
- package/dist/notifications/notifications.contract.spec.js +39 -0
- package/dist/own-research/own-research.contract.d.ts +196 -130
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/proofs/proofs.contract.d.ts +356 -356
- package/dist/proofs/proofs.dtos.d.ts +148 -148
- package/dist/realtime/job-call-priority-updated.d.ts +18 -0
- package/dist/realtime/job-call-priority-updated.d.ts.map +1 -0
- package/dist/realtime/job-call-priority-updated.js +17 -0
- package/dist/shared/summary-schemas.d.ts +36 -27
- package/dist/shared/summary-schemas.d.ts.map +1 -1
- package/dist/shared/summary-schemas.js +7 -0
- package/dist/sheets-sync/sheets-sync.contract.d.ts +683 -683
- package/dist/user-access-grants/user-access-grants.contract.d.ts +55 -55
- package/dist/users/users.contract.d.ts +236 -236
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +69 -69
- package/dist/workers/workers.contract.d.ts +2620 -2420
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -21,23 +21,23 @@ export declare const SupplierSchema: z.ZodObject<{
|
|
|
21
21
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
22
22
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
id: string;
|
|
25
24
|
name: string;
|
|
26
|
-
company: string | null;
|
|
27
25
|
email: string | null;
|
|
26
|
+
id: string;
|
|
28
27
|
phoneNumber: string;
|
|
29
28
|
notes: string | null;
|
|
30
|
-
|
|
29
|
+
company: string | null;
|
|
31
30
|
createdAt?: string | undefined;
|
|
31
|
+
updatedAt?: string | undefined;
|
|
32
32
|
}, {
|
|
33
|
-
id: string;
|
|
34
33
|
name: string;
|
|
35
|
-
company: string | null;
|
|
36
34
|
email: string | null;
|
|
35
|
+
id: string;
|
|
37
36
|
phoneNumber: string;
|
|
38
37
|
notes: string | null;
|
|
39
|
-
|
|
38
|
+
company: string | null;
|
|
40
39
|
createdAt?: string | undefined;
|
|
40
|
+
updatedAt?: string | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
export declare const CreateSupplierSchema: z.ZodObject<{
|
|
43
43
|
name: z.ZodString;
|
|
@@ -48,15 +48,15 @@ export declare const CreateSupplierSchema: z.ZodObject<{
|
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
49
|
name: string;
|
|
50
50
|
phoneNumber: string;
|
|
51
|
-
company?: string | null | undefined;
|
|
52
51
|
email?: string | null | undefined;
|
|
53
52
|
notes?: string | null | undefined;
|
|
53
|
+
company?: string | null | undefined;
|
|
54
54
|
}, {
|
|
55
55
|
name: string;
|
|
56
56
|
phoneNumber: string;
|
|
57
|
-
company?: string | null | undefined;
|
|
58
57
|
email?: string | null | undefined;
|
|
59
58
|
notes?: string | null | undefined;
|
|
59
|
+
company?: string | null | undefined;
|
|
60
60
|
}>;
|
|
61
61
|
export type Supplier = z.infer<typeof SupplierSchema>;
|
|
62
62
|
export type CreateSupplier = z.infer<typeof CreateSupplierSchema>;
|
|
@@ -66,13 +66,13 @@ export declare const CrewSummarySchema: z.ZodObject<{
|
|
|
66
66
|
leadName: z.ZodString;
|
|
67
67
|
leadPhone: z.ZodString;
|
|
68
68
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
id: string;
|
|
70
69
|
name: string;
|
|
70
|
+
id: string;
|
|
71
71
|
leadName: string;
|
|
72
72
|
leadPhone: string;
|
|
73
73
|
}, {
|
|
74
|
-
id: string;
|
|
75
74
|
name: string;
|
|
75
|
+
id: string;
|
|
76
76
|
leadName: string;
|
|
77
77
|
leadPhone: string;
|
|
78
78
|
}>;
|
|
@@ -110,23 +110,23 @@ export declare const CrewSchema: z.ZodObject<{
|
|
|
110
110
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
111
111
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
112
112
|
}, "strip", z.ZodTypeAny, {
|
|
113
|
-
id: string;
|
|
114
113
|
name: string;
|
|
115
|
-
company: string | null;
|
|
116
114
|
email: string | null;
|
|
115
|
+
id: string;
|
|
117
116
|
phoneNumber: string;
|
|
118
117
|
notes: string | null;
|
|
119
|
-
|
|
118
|
+
company: string | null;
|
|
120
119
|
createdAt?: string | undefined;
|
|
120
|
+
updatedAt?: string | undefined;
|
|
121
121
|
}, {
|
|
122
|
-
id: string;
|
|
123
122
|
name: string;
|
|
124
|
-
company: string | null;
|
|
125
123
|
email: string | null;
|
|
124
|
+
id: string;
|
|
126
125
|
phoneNumber: string;
|
|
127
126
|
notes: string | null;
|
|
128
|
-
|
|
127
|
+
company: string | null;
|
|
129
128
|
createdAt?: string | undefined;
|
|
129
|
+
updatedAt?: string | undefined;
|
|
130
130
|
}>>;
|
|
131
131
|
memberCount: z.ZodNumber;
|
|
132
132
|
maxMembers: z.ZodNumber;
|
|
@@ -196,8 +196,8 @@ export declare const CrewSchema: z.ZodObject<{
|
|
|
196
196
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
197
197
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
198
198
|
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
id: string;
|
|
200
199
|
name: string;
|
|
200
|
+
id: string;
|
|
201
201
|
leadType: "WORKER" | "SUPPLIER";
|
|
202
202
|
leadWorker: {
|
|
203
203
|
id: string;
|
|
@@ -207,19 +207,19 @@ export declare const CrewSchema: z.ZodObject<{
|
|
|
207
207
|
primaryPhoneNumber: string | null;
|
|
208
208
|
} | null;
|
|
209
209
|
leadSupplier: {
|
|
210
|
-
id: string;
|
|
211
210
|
name: string;
|
|
212
|
-
company: string | null;
|
|
213
211
|
email: string | null;
|
|
212
|
+
id: string;
|
|
214
213
|
phoneNumber: string;
|
|
215
214
|
notes: string | null;
|
|
216
|
-
|
|
215
|
+
company: string | null;
|
|
217
216
|
createdAt?: string | undefined;
|
|
217
|
+
updatedAt?: string | undefined;
|
|
218
218
|
} | null;
|
|
219
219
|
memberCount: number;
|
|
220
220
|
maxMembers: number;
|
|
221
|
-
updatedAt?: string | undefined;
|
|
222
221
|
createdAt?: string | undefined;
|
|
222
|
+
updatedAt?: string | undefined;
|
|
223
223
|
createdBy?: {
|
|
224
224
|
id: string;
|
|
225
225
|
lastName: string;
|
|
@@ -240,8 +240,8 @@ export declare const CrewSchema: z.ZodObject<{
|
|
|
240
240
|
primaryPhoneNumber: string | null;
|
|
241
241
|
}[] | undefined;
|
|
242
242
|
}, {
|
|
243
|
-
id: string;
|
|
244
243
|
name: string;
|
|
244
|
+
id: string;
|
|
245
245
|
leadType: "WORKER" | "SUPPLIER";
|
|
246
246
|
leadWorker: {
|
|
247
247
|
id: string;
|
|
@@ -251,19 +251,19 @@ export declare const CrewSchema: z.ZodObject<{
|
|
|
251
251
|
primaryPhoneNumber: string | null;
|
|
252
252
|
} | null;
|
|
253
253
|
leadSupplier: {
|
|
254
|
-
id: string;
|
|
255
254
|
name: string;
|
|
256
|
-
company: string | null;
|
|
257
255
|
email: string | null;
|
|
256
|
+
id: string;
|
|
258
257
|
phoneNumber: string;
|
|
259
258
|
notes: string | null;
|
|
260
|
-
|
|
259
|
+
company: string | null;
|
|
261
260
|
createdAt?: string | undefined;
|
|
261
|
+
updatedAt?: string | undefined;
|
|
262
262
|
} | null;
|
|
263
263
|
memberCount: number;
|
|
264
264
|
maxMembers: number;
|
|
265
|
-
updatedAt?: string | undefined;
|
|
266
265
|
createdAt?: string | undefined;
|
|
266
|
+
updatedAt?: string | undefined;
|
|
267
267
|
createdBy?: {
|
|
268
268
|
id: string;
|
|
269
269
|
lastName: string;
|
|
@@ -304,15 +304,15 @@ export declare const CreateCrewObjectSchema: z.ZodEffects<z.ZodObject<{
|
|
|
304
304
|
}, "strip", z.ZodTypeAny, {
|
|
305
305
|
name: string;
|
|
306
306
|
phoneNumber: string;
|
|
307
|
-
company?: string | null | undefined;
|
|
308
307
|
email?: string | null | undefined;
|
|
309
308
|
notes?: string | null | undefined;
|
|
309
|
+
company?: string | null | undefined;
|
|
310
310
|
}, {
|
|
311
311
|
name: string;
|
|
312
312
|
phoneNumber: string;
|
|
313
|
-
company?: string | null | undefined;
|
|
314
313
|
email?: string | null | undefined;
|
|
315
314
|
notes?: string | null | undefined;
|
|
315
|
+
company?: string | null | undefined;
|
|
316
316
|
}>>;
|
|
317
317
|
maxMembers: z.ZodOptional<z.ZodNumber>;
|
|
318
318
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -322,9 +322,9 @@ export declare const CreateCrewObjectSchema: z.ZodEffects<z.ZodObject<{
|
|
|
322
322
|
supplier?: {
|
|
323
323
|
name: string;
|
|
324
324
|
phoneNumber: string;
|
|
325
|
-
company?: string | null | undefined;
|
|
326
325
|
email?: string | null | undefined;
|
|
327
326
|
notes?: string | null | undefined;
|
|
327
|
+
company?: string | null | undefined;
|
|
328
328
|
} | undefined;
|
|
329
329
|
maxMembers?: number | undefined;
|
|
330
330
|
}, {
|
|
@@ -334,9 +334,9 @@ export declare const CreateCrewObjectSchema: z.ZodEffects<z.ZodObject<{
|
|
|
334
334
|
supplier?: {
|
|
335
335
|
name: string;
|
|
336
336
|
phoneNumber: string;
|
|
337
|
-
company?: string | null | undefined;
|
|
338
337
|
email?: string | null | undefined;
|
|
339
338
|
notes?: string | null | undefined;
|
|
339
|
+
company?: string | null | undefined;
|
|
340
340
|
} | undefined;
|
|
341
341
|
maxMembers?: number | undefined;
|
|
342
342
|
}>, {
|
|
@@ -346,9 +346,9 @@ export declare const CreateCrewObjectSchema: z.ZodEffects<z.ZodObject<{
|
|
|
346
346
|
supplier?: {
|
|
347
347
|
name: string;
|
|
348
348
|
phoneNumber: string;
|
|
349
|
-
company?: string | null | undefined;
|
|
350
349
|
email?: string | null | undefined;
|
|
351
350
|
notes?: string | null | undefined;
|
|
351
|
+
company?: string | null | undefined;
|
|
352
352
|
} | undefined;
|
|
353
353
|
maxMembers?: number | undefined;
|
|
354
354
|
}, {
|
|
@@ -358,9 +358,9 @@ export declare const CreateCrewObjectSchema: z.ZodEffects<z.ZodObject<{
|
|
|
358
358
|
supplier?: {
|
|
359
359
|
name: string;
|
|
360
360
|
phoneNumber: string;
|
|
361
|
-
company?: string | null | undefined;
|
|
362
361
|
email?: string | null | undefined;
|
|
363
362
|
notes?: string | null | undefined;
|
|
363
|
+
company?: string | null | undefined;
|
|
364
364
|
} | undefined;
|
|
365
365
|
maxMembers?: number | undefined;
|
|
366
366
|
}>;
|
|
@@ -389,15 +389,15 @@ export declare const CreateCrewSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
389
389
|
}, "strip", z.ZodTypeAny, {
|
|
390
390
|
name: string;
|
|
391
391
|
phoneNumber: string;
|
|
392
|
-
company?: string | null | undefined;
|
|
393
392
|
email?: string | null | undefined;
|
|
394
393
|
notes?: string | null | undefined;
|
|
394
|
+
company?: string | null | undefined;
|
|
395
395
|
}, {
|
|
396
396
|
name: string;
|
|
397
397
|
phoneNumber: string;
|
|
398
|
-
company?: string | null | undefined;
|
|
399
398
|
email?: string | null | undefined;
|
|
400
399
|
notes?: string | null | undefined;
|
|
400
|
+
company?: string | null | undefined;
|
|
401
401
|
}>>;
|
|
402
402
|
maxMembers: z.ZodOptional<z.ZodNumber>;
|
|
403
403
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -407,9 +407,9 @@ export declare const CreateCrewSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
407
407
|
supplier?: {
|
|
408
408
|
name: string;
|
|
409
409
|
phoneNumber: string;
|
|
410
|
-
company?: string | null | undefined;
|
|
411
410
|
email?: string | null | undefined;
|
|
412
411
|
notes?: string | null | undefined;
|
|
412
|
+
company?: string | null | undefined;
|
|
413
413
|
} | undefined;
|
|
414
414
|
maxMembers?: number | undefined;
|
|
415
415
|
}, {
|
|
@@ -419,9 +419,9 @@ export declare const CreateCrewSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
419
419
|
supplier?: {
|
|
420
420
|
name: string;
|
|
421
421
|
phoneNumber: string;
|
|
422
|
-
company?: string | null | undefined;
|
|
423
422
|
email?: string | null | undefined;
|
|
424
423
|
notes?: string | null | undefined;
|
|
424
|
+
company?: string | null | undefined;
|
|
425
425
|
} | undefined;
|
|
426
426
|
maxMembers?: number | undefined;
|
|
427
427
|
}>, {
|
|
@@ -431,9 +431,9 @@ export declare const CreateCrewSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
431
431
|
supplier?: {
|
|
432
432
|
name: string;
|
|
433
433
|
phoneNumber: string;
|
|
434
|
-
company?: string | null | undefined;
|
|
435
434
|
email?: string | null | undefined;
|
|
436
435
|
notes?: string | null | undefined;
|
|
436
|
+
company?: string | null | undefined;
|
|
437
437
|
} | undefined;
|
|
438
438
|
maxMembers?: number | undefined;
|
|
439
439
|
}, {
|
|
@@ -443,9 +443,9 @@ export declare const CreateCrewSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
443
443
|
supplier?: {
|
|
444
444
|
name: string;
|
|
445
445
|
phoneNumber: string;
|
|
446
|
-
company?: string | null | undefined;
|
|
447
446
|
email?: string | null | undefined;
|
|
448
447
|
notes?: string | null | undefined;
|
|
448
|
+
company?: string | null | undefined;
|
|
449
449
|
} | undefined;
|
|
450
450
|
maxMembers?: number | undefined;
|
|
451
451
|
}>, {
|
|
@@ -455,9 +455,9 @@ export declare const CreateCrewSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
455
455
|
supplier?: {
|
|
456
456
|
name: string;
|
|
457
457
|
phoneNumber: string;
|
|
458
|
-
company?: string | null | undefined;
|
|
459
458
|
email?: string | null | undefined;
|
|
460
459
|
notes?: string | null | undefined;
|
|
460
|
+
company?: string | null | undefined;
|
|
461
461
|
} | undefined;
|
|
462
462
|
maxMembers?: number | undefined;
|
|
463
463
|
}, unknown>;
|
|
@@ -485,10 +485,10 @@ export declare const FilterCrewSchema: z.ZodObject<{
|
|
|
485
485
|
field: z.ZodEnum<["name", "createdAt", "updatedAt"]>;
|
|
486
486
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
487
487
|
}, "strip", z.ZodTypeAny, {
|
|
488
|
-
field: "name" | "
|
|
488
|
+
field: "name" | "createdAt" | "updatedAt";
|
|
489
489
|
order: "ASC" | "DESC";
|
|
490
490
|
}, {
|
|
491
|
-
field: "name" | "
|
|
491
|
+
field: "name" | "createdAt" | "updatedAt";
|
|
492
492
|
order: "ASC" | "DESC";
|
|
493
493
|
}>, "many">>>;
|
|
494
494
|
} & {
|
|
@@ -497,20 +497,20 @@ export declare const FilterCrewSchema: z.ZodObject<{
|
|
|
497
497
|
}, "strip", z.ZodTypeAny, {
|
|
498
498
|
page: number;
|
|
499
499
|
limit: number;
|
|
500
|
+
name?: string | undefined;
|
|
500
501
|
sort?: {
|
|
501
|
-
field: "name" | "
|
|
502
|
+
field: "name" | "createdAt" | "updatedAt";
|
|
502
503
|
order: "ASC" | "DESC";
|
|
503
504
|
}[] | null | undefined;
|
|
504
|
-
name?: string | undefined;
|
|
505
505
|
leadType?: "WORKER" | "SUPPLIER" | undefined;
|
|
506
506
|
}, {
|
|
507
|
+
name?: string | undefined;
|
|
507
508
|
sort?: {
|
|
508
|
-
field: "name" | "
|
|
509
|
+
field: "name" | "createdAt" | "updatedAt";
|
|
509
510
|
order: "ASC" | "DESC";
|
|
510
511
|
}[] | null | undefined;
|
|
511
512
|
page?: number | undefined;
|
|
512
513
|
limit?: number | undefined;
|
|
513
|
-
name?: string | undefined;
|
|
514
514
|
leadType?: "WORKER" | "SUPPLIER" | undefined;
|
|
515
515
|
}>;
|
|
516
516
|
export type Crew = z.infer<typeof CrewSchema>;
|
|
@@ -552,23 +552,23 @@ export declare const PaginatedCrewResponseSchema: z.ZodObject<{
|
|
|
552
552
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
553
553
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
554
554
|
}, "strip", z.ZodTypeAny, {
|
|
555
|
-
id: string;
|
|
556
555
|
name: string;
|
|
557
|
-
company: string | null;
|
|
558
556
|
email: string | null;
|
|
557
|
+
id: string;
|
|
559
558
|
phoneNumber: string;
|
|
560
559
|
notes: string | null;
|
|
561
|
-
|
|
560
|
+
company: string | null;
|
|
562
561
|
createdAt?: string | undefined;
|
|
562
|
+
updatedAt?: string | undefined;
|
|
563
563
|
}, {
|
|
564
|
-
id: string;
|
|
565
564
|
name: string;
|
|
566
|
-
company: string | null;
|
|
567
565
|
email: string | null;
|
|
566
|
+
id: string;
|
|
568
567
|
phoneNumber: string;
|
|
569
568
|
notes: string | null;
|
|
570
|
-
|
|
569
|
+
company: string | null;
|
|
571
570
|
createdAt?: string | undefined;
|
|
571
|
+
updatedAt?: string | undefined;
|
|
572
572
|
}>>;
|
|
573
573
|
memberCount: z.ZodNumber;
|
|
574
574
|
maxMembers: z.ZodNumber;
|
|
@@ -638,8 +638,8 @@ export declare const PaginatedCrewResponseSchema: z.ZodObject<{
|
|
|
638
638
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
639
639
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
640
640
|
}, "strip", z.ZodTypeAny, {
|
|
641
|
-
id: string;
|
|
642
641
|
name: string;
|
|
642
|
+
id: string;
|
|
643
643
|
leadType: "WORKER" | "SUPPLIER";
|
|
644
644
|
leadWorker: {
|
|
645
645
|
id: string;
|
|
@@ -649,19 +649,19 @@ export declare const PaginatedCrewResponseSchema: z.ZodObject<{
|
|
|
649
649
|
primaryPhoneNumber: string | null;
|
|
650
650
|
} | null;
|
|
651
651
|
leadSupplier: {
|
|
652
|
-
id: string;
|
|
653
652
|
name: string;
|
|
654
|
-
company: string | null;
|
|
655
653
|
email: string | null;
|
|
654
|
+
id: string;
|
|
656
655
|
phoneNumber: string;
|
|
657
656
|
notes: string | null;
|
|
658
|
-
|
|
657
|
+
company: string | null;
|
|
659
658
|
createdAt?: string | undefined;
|
|
659
|
+
updatedAt?: string | undefined;
|
|
660
660
|
} | null;
|
|
661
661
|
memberCount: number;
|
|
662
662
|
maxMembers: number;
|
|
663
|
-
updatedAt?: string | undefined;
|
|
664
663
|
createdAt?: string | undefined;
|
|
664
|
+
updatedAt?: string | undefined;
|
|
665
665
|
createdBy?: {
|
|
666
666
|
id: string;
|
|
667
667
|
lastName: string;
|
|
@@ -682,8 +682,8 @@ export declare const PaginatedCrewResponseSchema: z.ZodObject<{
|
|
|
682
682
|
primaryPhoneNumber: string | null;
|
|
683
683
|
}[] | undefined;
|
|
684
684
|
}, {
|
|
685
|
-
id: string;
|
|
686
685
|
name: string;
|
|
686
|
+
id: string;
|
|
687
687
|
leadType: "WORKER" | "SUPPLIER";
|
|
688
688
|
leadWorker: {
|
|
689
689
|
id: string;
|
|
@@ -693,19 +693,19 @@ export declare const PaginatedCrewResponseSchema: z.ZodObject<{
|
|
|
693
693
|
primaryPhoneNumber: string | null;
|
|
694
694
|
} | null;
|
|
695
695
|
leadSupplier: {
|
|
696
|
-
id: string;
|
|
697
696
|
name: string;
|
|
698
|
-
company: string | null;
|
|
699
697
|
email: string | null;
|
|
698
|
+
id: string;
|
|
700
699
|
phoneNumber: string;
|
|
701
700
|
notes: string | null;
|
|
702
|
-
|
|
701
|
+
company: string | null;
|
|
703
702
|
createdAt?: string | undefined;
|
|
703
|
+
updatedAt?: string | undefined;
|
|
704
704
|
} | null;
|
|
705
705
|
memberCount: number;
|
|
706
706
|
maxMembers: number;
|
|
707
|
-
updatedAt?: string | undefined;
|
|
708
707
|
createdAt?: string | undefined;
|
|
708
|
+
updatedAt?: string | undefined;
|
|
709
709
|
createdBy?: {
|
|
710
710
|
id: string;
|
|
711
711
|
lastName: string;
|
|
@@ -734,8 +734,8 @@ export declare const PaginatedCrewResponseSchema: z.ZodObject<{
|
|
|
734
734
|
}, "strip", z.ZodTypeAny, {
|
|
735
735
|
limit: number;
|
|
736
736
|
items: {
|
|
737
|
-
id: string;
|
|
738
737
|
name: string;
|
|
738
|
+
id: string;
|
|
739
739
|
leadType: "WORKER" | "SUPPLIER";
|
|
740
740
|
leadWorker: {
|
|
741
741
|
id: string;
|
|
@@ -745,19 +745,19 @@ export declare const PaginatedCrewResponseSchema: z.ZodObject<{
|
|
|
745
745
|
primaryPhoneNumber: string | null;
|
|
746
746
|
} | null;
|
|
747
747
|
leadSupplier: {
|
|
748
|
-
id: string;
|
|
749
748
|
name: string;
|
|
750
|
-
company: string | null;
|
|
751
749
|
email: string | null;
|
|
750
|
+
id: string;
|
|
752
751
|
phoneNumber: string;
|
|
753
752
|
notes: string | null;
|
|
754
|
-
|
|
753
|
+
company: string | null;
|
|
755
754
|
createdAt?: string | undefined;
|
|
755
|
+
updatedAt?: string | undefined;
|
|
756
756
|
} | null;
|
|
757
757
|
memberCount: number;
|
|
758
758
|
maxMembers: number;
|
|
759
|
-
updatedAt?: string | undefined;
|
|
760
759
|
createdAt?: string | undefined;
|
|
760
|
+
updatedAt?: string | undefined;
|
|
761
761
|
createdBy?: {
|
|
762
762
|
id: string;
|
|
763
763
|
lastName: string;
|
|
@@ -785,8 +785,8 @@ export declare const PaginatedCrewResponseSchema: z.ZodObject<{
|
|
|
785
785
|
}, {
|
|
786
786
|
limit: number;
|
|
787
787
|
items: {
|
|
788
|
-
id: string;
|
|
789
788
|
name: string;
|
|
789
|
+
id: string;
|
|
790
790
|
leadType: "WORKER" | "SUPPLIER";
|
|
791
791
|
leadWorker: {
|
|
792
792
|
id: string;
|
|
@@ -796,19 +796,19 @@ export declare const PaginatedCrewResponseSchema: z.ZodObject<{
|
|
|
796
796
|
primaryPhoneNumber: string | null;
|
|
797
797
|
} | null;
|
|
798
798
|
leadSupplier: {
|
|
799
|
-
id: string;
|
|
800
799
|
name: string;
|
|
801
|
-
company: string | null;
|
|
802
800
|
email: string | null;
|
|
801
|
+
id: string;
|
|
803
802
|
phoneNumber: string;
|
|
804
803
|
notes: string | null;
|
|
805
|
-
|
|
804
|
+
company: string | null;
|
|
806
805
|
createdAt?: string | undefined;
|
|
806
|
+
updatedAt?: string | undefined;
|
|
807
807
|
} | null;
|
|
808
808
|
memberCount: number;
|
|
809
809
|
maxMembers: number;
|
|
810
|
-
updatedAt?: string | undefined;
|
|
811
810
|
createdAt?: string | undefined;
|
|
811
|
+
updatedAt?: string | undefined;
|
|
812
812
|
createdBy?: {
|
|
813
813
|
id: string;
|
|
814
814
|
lastName: string;
|
|
@@ -854,15 +854,15 @@ export declare const crewsContract: {
|
|
|
854
854
|
}, "strip", z.ZodTypeAny, {
|
|
855
855
|
name: string;
|
|
856
856
|
phoneNumber: string;
|
|
857
|
-
company?: string | null | undefined;
|
|
858
857
|
email?: string | null | undefined;
|
|
859
858
|
notes?: string | null | undefined;
|
|
859
|
+
company?: string | null | undefined;
|
|
860
860
|
}, {
|
|
861
861
|
name: string;
|
|
862
862
|
phoneNumber: string;
|
|
863
|
-
company?: string | null | undefined;
|
|
864
863
|
email?: string | null | undefined;
|
|
865
864
|
notes?: string | null | undefined;
|
|
865
|
+
company?: string | null | undefined;
|
|
866
866
|
}>>;
|
|
867
867
|
maxMembers: z.ZodOptional<z.ZodNumber>;
|
|
868
868
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -872,9 +872,9 @@ export declare const crewsContract: {
|
|
|
872
872
|
supplier?: {
|
|
873
873
|
name: string;
|
|
874
874
|
phoneNumber: string;
|
|
875
|
-
company?: string | null | undefined;
|
|
876
875
|
email?: string | null | undefined;
|
|
877
876
|
notes?: string | null | undefined;
|
|
877
|
+
company?: string | null | undefined;
|
|
878
878
|
} | undefined;
|
|
879
879
|
maxMembers?: number | undefined;
|
|
880
880
|
}, {
|
|
@@ -884,9 +884,9 @@ export declare const crewsContract: {
|
|
|
884
884
|
supplier?: {
|
|
885
885
|
name: string;
|
|
886
886
|
phoneNumber: string;
|
|
887
|
-
company?: string | null | undefined;
|
|
888
887
|
email?: string | null | undefined;
|
|
889
888
|
notes?: string | null | undefined;
|
|
889
|
+
company?: string | null | undefined;
|
|
890
890
|
} | undefined;
|
|
891
891
|
maxMembers?: number | undefined;
|
|
892
892
|
}>, {
|
|
@@ -896,9 +896,9 @@ export declare const crewsContract: {
|
|
|
896
896
|
supplier?: {
|
|
897
897
|
name: string;
|
|
898
898
|
phoneNumber: string;
|
|
899
|
-
company?: string | null | undefined;
|
|
900
899
|
email?: string | null | undefined;
|
|
901
900
|
notes?: string | null | undefined;
|
|
901
|
+
company?: string | null | undefined;
|
|
902
902
|
} | undefined;
|
|
903
903
|
maxMembers?: number | undefined;
|
|
904
904
|
}, {
|
|
@@ -908,9 +908,9 @@ export declare const crewsContract: {
|
|
|
908
908
|
supplier?: {
|
|
909
909
|
name: string;
|
|
910
910
|
phoneNumber: string;
|
|
911
|
-
company?: string | null | undefined;
|
|
912
911
|
email?: string | null | undefined;
|
|
913
912
|
notes?: string | null | undefined;
|
|
913
|
+
company?: string | null | undefined;
|
|
914
914
|
} | undefined;
|
|
915
915
|
maxMembers?: number | undefined;
|
|
916
916
|
}>, {
|
|
@@ -920,15 +920,15 @@ export declare const crewsContract: {
|
|
|
920
920
|
supplier?: {
|
|
921
921
|
name: string;
|
|
922
922
|
phoneNumber: string;
|
|
923
|
-
company?: string | null | undefined;
|
|
924
923
|
email?: string | null | undefined;
|
|
925
924
|
notes?: string | null | undefined;
|
|
925
|
+
company?: string | null | undefined;
|
|
926
926
|
} | undefined;
|
|
927
927
|
maxMembers?: number | undefined;
|
|
928
928
|
}, unknown>;
|
|
929
929
|
path: "/v2/crews";
|
|
930
930
|
responses: {
|
|
931
|
-
|
|
931
|
+
401: z.ZodObject<{
|
|
932
932
|
statusCode: z.ZodNumber;
|
|
933
933
|
message: z.ZodString;
|
|
934
934
|
code: z.ZodString;
|
|
@@ -937,23 +937,23 @@ export declare const crewsContract: {
|
|
|
937
937
|
path: z.ZodString;
|
|
938
938
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
939
939
|
}, "strip", z.ZodTypeAny, {
|
|
940
|
-
message: string;
|
|
941
940
|
code: string;
|
|
942
941
|
path: string;
|
|
942
|
+
message: string;
|
|
943
943
|
statusCode: number;
|
|
944
944
|
timestamp: string;
|
|
945
945
|
details?: unknown;
|
|
946
946
|
correlationId?: string | undefined;
|
|
947
947
|
}, {
|
|
948
|
-
message: string;
|
|
949
948
|
code: string;
|
|
950
949
|
path: string;
|
|
950
|
+
message: string;
|
|
951
951
|
statusCode: number;
|
|
952
952
|
timestamp: string;
|
|
953
953
|
details?: unknown;
|
|
954
954
|
correlationId?: string | undefined;
|
|
955
955
|
}>;
|
|
956
|
-
|
|
956
|
+
400: z.ZodObject<{
|
|
957
957
|
statusCode: z.ZodNumber;
|
|
958
958
|
message: z.ZodString;
|
|
959
959
|
code: z.ZodString;
|
|
@@ -962,17 +962,17 @@ export declare const crewsContract: {
|
|
|
962
962
|
path: z.ZodString;
|
|
963
963
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
964
964
|
}, "strip", z.ZodTypeAny, {
|
|
965
|
-
message: string;
|
|
966
965
|
code: string;
|
|
967
966
|
path: string;
|
|
967
|
+
message: string;
|
|
968
968
|
statusCode: number;
|
|
969
969
|
timestamp: string;
|
|
970
970
|
details?: unknown;
|
|
971
971
|
correlationId?: string | undefined;
|
|
972
972
|
}, {
|
|
973
|
-
message: string;
|
|
974
973
|
code: string;
|
|
975
974
|
path: string;
|
|
975
|
+
message: string;
|
|
976
976
|
statusCode: number;
|
|
977
977
|
timestamp: string;
|
|
978
978
|
details?: unknown;
|
|
@@ -987,17 +987,17 @@ export declare const crewsContract: {
|
|
|
987
987
|
path: z.ZodString;
|
|
988
988
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
989
989
|
}, "strip", z.ZodTypeAny, {
|
|
990
|
-
message: string;
|
|
991
990
|
code: string;
|
|
992
991
|
path: string;
|
|
992
|
+
message: string;
|
|
993
993
|
statusCode: number;
|
|
994
994
|
timestamp: string;
|
|
995
995
|
details?: unknown;
|
|
996
996
|
correlationId?: string | undefined;
|
|
997
997
|
}, {
|
|
998
|
-
message: string;
|
|
999
998
|
code: string;
|
|
1000
999
|
path: string;
|
|
1000
|
+
message: string;
|
|
1001
1001
|
statusCode: number;
|
|
1002
1002
|
timestamp: string;
|
|
1003
1003
|
details?: unknown;
|
|
@@ -1012,17 +1012,17 @@ export declare const crewsContract: {
|
|
|
1012
1012
|
path: z.ZodString;
|
|
1013
1013
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1014
1014
|
}, "strip", z.ZodTypeAny, {
|
|
1015
|
-
message: string;
|
|
1016
1015
|
code: string;
|
|
1017
1016
|
path: string;
|
|
1017
|
+
message: string;
|
|
1018
1018
|
statusCode: number;
|
|
1019
1019
|
timestamp: string;
|
|
1020
1020
|
details?: unknown;
|
|
1021
1021
|
correlationId?: string | undefined;
|
|
1022
1022
|
}, {
|
|
1023
|
-
message: string;
|
|
1024
1023
|
code: string;
|
|
1025
1024
|
path: string;
|
|
1025
|
+
message: string;
|
|
1026
1026
|
statusCode: number;
|
|
1027
1027
|
timestamp: string;
|
|
1028
1028
|
details?: unknown;
|
|
@@ -1061,23 +1061,23 @@ export declare const crewsContract: {
|
|
|
1061
1061
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
1062
1062
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1063
1063
|
}, "strip", z.ZodTypeAny, {
|
|
1064
|
-
id: string;
|
|
1065
1064
|
name: string;
|
|
1066
|
-
company: string | null;
|
|
1067
1065
|
email: string | null;
|
|
1066
|
+
id: string;
|
|
1068
1067
|
phoneNumber: string;
|
|
1069
1068
|
notes: string | null;
|
|
1070
|
-
|
|
1069
|
+
company: string | null;
|
|
1071
1070
|
createdAt?: string | undefined;
|
|
1071
|
+
updatedAt?: string | undefined;
|
|
1072
1072
|
}, {
|
|
1073
|
-
id: string;
|
|
1074
1073
|
name: string;
|
|
1075
|
-
company: string | null;
|
|
1076
1074
|
email: string | null;
|
|
1075
|
+
id: string;
|
|
1077
1076
|
phoneNumber: string;
|
|
1078
1077
|
notes: string | null;
|
|
1079
|
-
|
|
1078
|
+
company: string | null;
|
|
1080
1079
|
createdAt?: string | undefined;
|
|
1080
|
+
updatedAt?: string | undefined;
|
|
1081
1081
|
}>>;
|
|
1082
1082
|
memberCount: z.ZodNumber;
|
|
1083
1083
|
maxMembers: z.ZodNumber;
|
|
@@ -1147,8 +1147,8 @@ export declare const crewsContract: {
|
|
|
1147
1147
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
1148
1148
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1149
1149
|
}, "strip", z.ZodTypeAny, {
|
|
1150
|
-
id: string;
|
|
1151
1150
|
name: string;
|
|
1151
|
+
id: string;
|
|
1152
1152
|
leadType: "WORKER" | "SUPPLIER";
|
|
1153
1153
|
leadWorker: {
|
|
1154
1154
|
id: string;
|
|
@@ -1158,19 +1158,19 @@ export declare const crewsContract: {
|
|
|
1158
1158
|
primaryPhoneNumber: string | null;
|
|
1159
1159
|
} | null;
|
|
1160
1160
|
leadSupplier: {
|
|
1161
|
-
id: string;
|
|
1162
1161
|
name: string;
|
|
1163
|
-
company: string | null;
|
|
1164
1162
|
email: string | null;
|
|
1163
|
+
id: string;
|
|
1165
1164
|
phoneNumber: string;
|
|
1166
1165
|
notes: string | null;
|
|
1167
|
-
|
|
1166
|
+
company: string | null;
|
|
1168
1167
|
createdAt?: string | undefined;
|
|
1168
|
+
updatedAt?: string | undefined;
|
|
1169
1169
|
} | null;
|
|
1170
1170
|
memberCount: number;
|
|
1171
1171
|
maxMembers: number;
|
|
1172
|
-
updatedAt?: string | undefined;
|
|
1173
1172
|
createdAt?: string | undefined;
|
|
1173
|
+
updatedAt?: string | undefined;
|
|
1174
1174
|
createdBy?: {
|
|
1175
1175
|
id: string;
|
|
1176
1176
|
lastName: string;
|
|
@@ -1191,8 +1191,8 @@ export declare const crewsContract: {
|
|
|
1191
1191
|
primaryPhoneNumber: string | null;
|
|
1192
1192
|
}[] | undefined;
|
|
1193
1193
|
}, {
|
|
1194
|
-
id: string;
|
|
1195
1194
|
name: string;
|
|
1195
|
+
id: string;
|
|
1196
1196
|
leadType: "WORKER" | "SUPPLIER";
|
|
1197
1197
|
leadWorker: {
|
|
1198
1198
|
id: string;
|
|
@@ -1202,19 +1202,19 @@ export declare const crewsContract: {
|
|
|
1202
1202
|
primaryPhoneNumber: string | null;
|
|
1203
1203
|
} | null;
|
|
1204
1204
|
leadSupplier: {
|
|
1205
|
-
id: string;
|
|
1206
1205
|
name: string;
|
|
1207
|
-
company: string | null;
|
|
1208
1206
|
email: string | null;
|
|
1207
|
+
id: string;
|
|
1209
1208
|
phoneNumber: string;
|
|
1210
1209
|
notes: string | null;
|
|
1211
|
-
|
|
1210
|
+
company: string | null;
|
|
1212
1211
|
createdAt?: string | undefined;
|
|
1212
|
+
updatedAt?: string | undefined;
|
|
1213
1213
|
} | null;
|
|
1214
1214
|
memberCount: number;
|
|
1215
1215
|
maxMembers: number;
|
|
1216
|
-
updatedAt?: string | undefined;
|
|
1217
1216
|
createdAt?: string | undefined;
|
|
1217
|
+
updatedAt?: string | undefined;
|
|
1218
1218
|
createdBy?: {
|
|
1219
1219
|
id: string;
|
|
1220
1220
|
lastName: string;
|
|
@@ -1244,17 +1244,17 @@ export declare const crewsContract: {
|
|
|
1244
1244
|
path: z.ZodString;
|
|
1245
1245
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1246
1246
|
}, "strip", z.ZodTypeAny, {
|
|
1247
|
-
message: string;
|
|
1248
1247
|
code: string;
|
|
1249
1248
|
path: string;
|
|
1249
|
+
message: string;
|
|
1250
1250
|
statusCode: number;
|
|
1251
1251
|
timestamp: string;
|
|
1252
1252
|
details?: unknown;
|
|
1253
1253
|
correlationId?: string | undefined;
|
|
1254
1254
|
}, {
|
|
1255
|
-
message: string;
|
|
1256
1255
|
code: string;
|
|
1257
1256
|
path: string;
|
|
1257
|
+
message: string;
|
|
1258
1258
|
statusCode: number;
|
|
1259
1259
|
timestamp: string;
|
|
1260
1260
|
details?: unknown;
|
|
@@ -1270,10 +1270,10 @@ export declare const crewsContract: {
|
|
|
1270
1270
|
field: z.ZodEnum<["name", "createdAt", "updatedAt"]>;
|
|
1271
1271
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
1272
1272
|
}, "strip", z.ZodTypeAny, {
|
|
1273
|
-
field: "name" | "
|
|
1273
|
+
field: "name" | "createdAt" | "updatedAt";
|
|
1274
1274
|
order: "ASC" | "DESC";
|
|
1275
1275
|
}, {
|
|
1276
|
-
field: "name" | "
|
|
1276
|
+
field: "name" | "createdAt" | "updatedAt";
|
|
1277
1277
|
order: "ASC" | "DESC";
|
|
1278
1278
|
}>, "many">>>;
|
|
1279
1279
|
} & {
|
|
@@ -1282,20 +1282,20 @@ export declare const crewsContract: {
|
|
|
1282
1282
|
}, "strip", z.ZodTypeAny, {
|
|
1283
1283
|
page: number;
|
|
1284
1284
|
limit: number;
|
|
1285
|
+
name?: string | undefined;
|
|
1285
1286
|
sort?: {
|
|
1286
|
-
field: "name" | "
|
|
1287
|
+
field: "name" | "createdAt" | "updatedAt";
|
|
1287
1288
|
order: "ASC" | "DESC";
|
|
1288
1289
|
}[] | null | undefined;
|
|
1289
|
-
name?: string | undefined;
|
|
1290
1290
|
leadType?: "WORKER" | "SUPPLIER" | undefined;
|
|
1291
1291
|
}, {
|
|
1292
|
+
name?: string | undefined;
|
|
1292
1293
|
sort?: {
|
|
1293
|
-
field: "name" | "
|
|
1294
|
+
field: "name" | "createdAt" | "updatedAt";
|
|
1294
1295
|
order: "ASC" | "DESC";
|
|
1295
1296
|
}[] | null | undefined;
|
|
1296
1297
|
page?: number | undefined;
|
|
1297
1298
|
limit?: number | undefined;
|
|
1298
|
-
name?: string | undefined;
|
|
1299
1299
|
leadType?: "WORKER" | "SUPPLIER" | undefined;
|
|
1300
1300
|
}>;
|
|
1301
1301
|
metadata: {
|
|
@@ -1305,7 +1305,7 @@ export declare const crewsContract: {
|
|
|
1305
1305
|
method: "GET";
|
|
1306
1306
|
path: "/v2/crews";
|
|
1307
1307
|
responses: {
|
|
1308
|
-
|
|
1308
|
+
401: z.ZodObject<{
|
|
1309
1309
|
statusCode: z.ZodNumber;
|
|
1310
1310
|
message: z.ZodString;
|
|
1311
1311
|
code: z.ZodString;
|
|
@@ -1314,23 +1314,23 @@ export declare const crewsContract: {
|
|
|
1314
1314
|
path: z.ZodString;
|
|
1315
1315
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1316
1316
|
}, "strip", z.ZodTypeAny, {
|
|
1317
|
-
message: string;
|
|
1318
1317
|
code: string;
|
|
1319
1318
|
path: string;
|
|
1319
|
+
message: string;
|
|
1320
1320
|
statusCode: number;
|
|
1321
1321
|
timestamp: string;
|
|
1322
1322
|
details?: unknown;
|
|
1323
1323
|
correlationId?: string | undefined;
|
|
1324
1324
|
}, {
|
|
1325
|
-
message: string;
|
|
1326
1325
|
code: string;
|
|
1327
1326
|
path: string;
|
|
1327
|
+
message: string;
|
|
1328
1328
|
statusCode: number;
|
|
1329
1329
|
timestamp: string;
|
|
1330
1330
|
details?: unknown;
|
|
1331
1331
|
correlationId?: string | undefined;
|
|
1332
1332
|
}>;
|
|
1333
|
-
|
|
1333
|
+
400: z.ZodObject<{
|
|
1334
1334
|
statusCode: z.ZodNumber;
|
|
1335
1335
|
message: z.ZodString;
|
|
1336
1336
|
code: z.ZodString;
|
|
@@ -1339,17 +1339,17 @@ export declare const crewsContract: {
|
|
|
1339
1339
|
path: z.ZodString;
|
|
1340
1340
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1341
1341
|
}, "strip", z.ZodTypeAny, {
|
|
1342
|
-
message: string;
|
|
1343
1342
|
code: string;
|
|
1344
1343
|
path: string;
|
|
1344
|
+
message: string;
|
|
1345
1345
|
statusCode: number;
|
|
1346
1346
|
timestamp: string;
|
|
1347
1347
|
details?: unknown;
|
|
1348
1348
|
correlationId?: string | undefined;
|
|
1349
1349
|
}, {
|
|
1350
|
-
message: string;
|
|
1351
1350
|
code: string;
|
|
1352
1351
|
path: string;
|
|
1352
|
+
message: string;
|
|
1353
1353
|
statusCode: number;
|
|
1354
1354
|
timestamp: string;
|
|
1355
1355
|
details?: unknown;
|
|
@@ -1364,17 +1364,17 @@ export declare const crewsContract: {
|
|
|
1364
1364
|
path: z.ZodString;
|
|
1365
1365
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1366
1366
|
}, "strip", z.ZodTypeAny, {
|
|
1367
|
-
message: string;
|
|
1368
1367
|
code: string;
|
|
1369
1368
|
path: string;
|
|
1369
|
+
message: string;
|
|
1370
1370
|
statusCode: number;
|
|
1371
1371
|
timestamp: string;
|
|
1372
1372
|
details?: unknown;
|
|
1373
1373
|
correlationId?: string | undefined;
|
|
1374
1374
|
}, {
|
|
1375
|
-
message: string;
|
|
1376
1375
|
code: string;
|
|
1377
1376
|
path: string;
|
|
1377
|
+
message: string;
|
|
1378
1378
|
statusCode: number;
|
|
1379
1379
|
timestamp: string;
|
|
1380
1380
|
details?: unknown;
|
|
@@ -1389,17 +1389,17 @@ export declare const crewsContract: {
|
|
|
1389
1389
|
path: z.ZodString;
|
|
1390
1390
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1391
1391
|
}, "strip", z.ZodTypeAny, {
|
|
1392
|
-
message: string;
|
|
1393
1392
|
code: string;
|
|
1394
1393
|
path: string;
|
|
1394
|
+
message: string;
|
|
1395
1395
|
statusCode: number;
|
|
1396
1396
|
timestamp: string;
|
|
1397
1397
|
details?: unknown;
|
|
1398
1398
|
correlationId?: string | undefined;
|
|
1399
1399
|
}, {
|
|
1400
|
-
message: string;
|
|
1401
1400
|
code: string;
|
|
1402
1401
|
path: string;
|
|
1402
|
+
message: string;
|
|
1403
1403
|
statusCode: number;
|
|
1404
1404
|
timestamp: string;
|
|
1405
1405
|
details?: unknown;
|
|
@@ -1439,23 +1439,23 @@ export declare const crewsContract: {
|
|
|
1439
1439
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
1440
1440
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1441
1441
|
}, "strip", z.ZodTypeAny, {
|
|
1442
|
-
id: string;
|
|
1443
1442
|
name: string;
|
|
1444
|
-
company: string | null;
|
|
1445
1443
|
email: string | null;
|
|
1444
|
+
id: string;
|
|
1446
1445
|
phoneNumber: string;
|
|
1447
1446
|
notes: string | null;
|
|
1448
|
-
|
|
1447
|
+
company: string | null;
|
|
1449
1448
|
createdAt?: string | undefined;
|
|
1449
|
+
updatedAt?: string | undefined;
|
|
1450
1450
|
}, {
|
|
1451
|
-
id: string;
|
|
1452
1451
|
name: string;
|
|
1453
|
-
company: string | null;
|
|
1454
1452
|
email: string | null;
|
|
1453
|
+
id: string;
|
|
1455
1454
|
phoneNumber: string;
|
|
1456
1455
|
notes: string | null;
|
|
1457
|
-
|
|
1456
|
+
company: string | null;
|
|
1458
1457
|
createdAt?: string | undefined;
|
|
1458
|
+
updatedAt?: string | undefined;
|
|
1459
1459
|
}>>;
|
|
1460
1460
|
memberCount: z.ZodNumber;
|
|
1461
1461
|
maxMembers: z.ZodNumber;
|
|
@@ -1525,8 +1525,8 @@ export declare const crewsContract: {
|
|
|
1525
1525
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
1526
1526
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1527
1527
|
}, "strip", z.ZodTypeAny, {
|
|
1528
|
-
id: string;
|
|
1529
1528
|
name: string;
|
|
1529
|
+
id: string;
|
|
1530
1530
|
leadType: "WORKER" | "SUPPLIER";
|
|
1531
1531
|
leadWorker: {
|
|
1532
1532
|
id: string;
|
|
@@ -1536,19 +1536,19 @@ export declare const crewsContract: {
|
|
|
1536
1536
|
primaryPhoneNumber: string | null;
|
|
1537
1537
|
} | null;
|
|
1538
1538
|
leadSupplier: {
|
|
1539
|
-
id: string;
|
|
1540
1539
|
name: string;
|
|
1541
|
-
company: string | null;
|
|
1542
1540
|
email: string | null;
|
|
1541
|
+
id: string;
|
|
1543
1542
|
phoneNumber: string;
|
|
1544
1543
|
notes: string | null;
|
|
1545
|
-
|
|
1544
|
+
company: string | null;
|
|
1546
1545
|
createdAt?: string | undefined;
|
|
1546
|
+
updatedAt?: string | undefined;
|
|
1547
1547
|
} | null;
|
|
1548
1548
|
memberCount: number;
|
|
1549
1549
|
maxMembers: number;
|
|
1550
|
-
updatedAt?: string | undefined;
|
|
1551
1550
|
createdAt?: string | undefined;
|
|
1551
|
+
updatedAt?: string | undefined;
|
|
1552
1552
|
createdBy?: {
|
|
1553
1553
|
id: string;
|
|
1554
1554
|
lastName: string;
|
|
@@ -1569,8 +1569,8 @@ export declare const crewsContract: {
|
|
|
1569
1569
|
primaryPhoneNumber: string | null;
|
|
1570
1570
|
}[] | undefined;
|
|
1571
1571
|
}, {
|
|
1572
|
-
id: string;
|
|
1573
1572
|
name: string;
|
|
1573
|
+
id: string;
|
|
1574
1574
|
leadType: "WORKER" | "SUPPLIER";
|
|
1575
1575
|
leadWorker: {
|
|
1576
1576
|
id: string;
|
|
@@ -1580,19 +1580,19 @@ export declare const crewsContract: {
|
|
|
1580
1580
|
primaryPhoneNumber: string | null;
|
|
1581
1581
|
} | null;
|
|
1582
1582
|
leadSupplier: {
|
|
1583
|
-
id: string;
|
|
1584
1583
|
name: string;
|
|
1585
|
-
company: string | null;
|
|
1586
1584
|
email: string | null;
|
|
1585
|
+
id: string;
|
|
1587
1586
|
phoneNumber: string;
|
|
1588
1587
|
notes: string | null;
|
|
1589
|
-
|
|
1588
|
+
company: string | null;
|
|
1590
1589
|
createdAt?: string | undefined;
|
|
1590
|
+
updatedAt?: string | undefined;
|
|
1591
1591
|
} | null;
|
|
1592
1592
|
memberCount: number;
|
|
1593
1593
|
maxMembers: number;
|
|
1594
|
-
updatedAt?: string | undefined;
|
|
1595
1594
|
createdAt?: string | undefined;
|
|
1595
|
+
updatedAt?: string | undefined;
|
|
1596
1596
|
createdBy?: {
|
|
1597
1597
|
id: string;
|
|
1598
1598
|
lastName: string;
|
|
@@ -1621,8 +1621,8 @@ export declare const crewsContract: {
|
|
|
1621
1621
|
}, "strip", z.ZodTypeAny, {
|
|
1622
1622
|
limit: number;
|
|
1623
1623
|
items: {
|
|
1624
|
-
id: string;
|
|
1625
1624
|
name: string;
|
|
1625
|
+
id: string;
|
|
1626
1626
|
leadType: "WORKER" | "SUPPLIER";
|
|
1627
1627
|
leadWorker: {
|
|
1628
1628
|
id: string;
|
|
@@ -1632,19 +1632,19 @@ export declare const crewsContract: {
|
|
|
1632
1632
|
primaryPhoneNumber: string | null;
|
|
1633
1633
|
} | null;
|
|
1634
1634
|
leadSupplier: {
|
|
1635
|
-
id: string;
|
|
1636
1635
|
name: string;
|
|
1637
|
-
company: string | null;
|
|
1638
1636
|
email: string | null;
|
|
1637
|
+
id: string;
|
|
1639
1638
|
phoneNumber: string;
|
|
1640
1639
|
notes: string | null;
|
|
1641
|
-
|
|
1640
|
+
company: string | null;
|
|
1642
1641
|
createdAt?: string | undefined;
|
|
1642
|
+
updatedAt?: string | undefined;
|
|
1643
1643
|
} | null;
|
|
1644
1644
|
memberCount: number;
|
|
1645
1645
|
maxMembers: number;
|
|
1646
|
-
updatedAt?: string | undefined;
|
|
1647
1646
|
createdAt?: string | undefined;
|
|
1647
|
+
updatedAt?: string | undefined;
|
|
1648
1648
|
createdBy?: {
|
|
1649
1649
|
id: string;
|
|
1650
1650
|
lastName: string;
|
|
@@ -1672,8 +1672,8 @@ export declare const crewsContract: {
|
|
|
1672
1672
|
}, {
|
|
1673
1673
|
limit: number;
|
|
1674
1674
|
items: {
|
|
1675
|
-
id: string;
|
|
1676
1675
|
name: string;
|
|
1676
|
+
id: string;
|
|
1677
1677
|
leadType: "WORKER" | "SUPPLIER";
|
|
1678
1678
|
leadWorker: {
|
|
1679
1679
|
id: string;
|
|
@@ -1683,19 +1683,19 @@ export declare const crewsContract: {
|
|
|
1683
1683
|
primaryPhoneNumber: string | null;
|
|
1684
1684
|
} | null;
|
|
1685
1685
|
leadSupplier: {
|
|
1686
|
-
id: string;
|
|
1687
1686
|
name: string;
|
|
1688
|
-
company: string | null;
|
|
1689
1687
|
email: string | null;
|
|
1688
|
+
id: string;
|
|
1690
1689
|
phoneNumber: string;
|
|
1691
1690
|
notes: string | null;
|
|
1692
|
-
|
|
1691
|
+
company: string | null;
|
|
1693
1692
|
createdAt?: string | undefined;
|
|
1693
|
+
updatedAt?: string | undefined;
|
|
1694
1694
|
} | null;
|
|
1695
1695
|
memberCount: number;
|
|
1696
1696
|
maxMembers: number;
|
|
1697
|
-
updatedAt?: string | undefined;
|
|
1698
1697
|
createdAt?: string | undefined;
|
|
1698
|
+
updatedAt?: string | undefined;
|
|
1699
1699
|
createdBy?: {
|
|
1700
1700
|
id: string;
|
|
1701
1701
|
lastName: string;
|
|
@@ -1738,7 +1738,7 @@ export declare const crewsContract: {
|
|
|
1738
1738
|
method: "GET";
|
|
1739
1739
|
path: "/v2/crews/:id";
|
|
1740
1740
|
responses: {
|
|
1741
|
-
|
|
1741
|
+
401: z.ZodObject<{
|
|
1742
1742
|
statusCode: z.ZodNumber;
|
|
1743
1743
|
message: z.ZodString;
|
|
1744
1744
|
code: z.ZodString;
|
|
@@ -1747,23 +1747,23 @@ export declare const crewsContract: {
|
|
|
1747
1747
|
path: z.ZodString;
|
|
1748
1748
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1749
1749
|
}, "strip", z.ZodTypeAny, {
|
|
1750
|
-
message: string;
|
|
1751
1750
|
code: string;
|
|
1752
1751
|
path: string;
|
|
1752
|
+
message: string;
|
|
1753
1753
|
statusCode: number;
|
|
1754
1754
|
timestamp: string;
|
|
1755
1755
|
details?: unknown;
|
|
1756
1756
|
correlationId?: string | undefined;
|
|
1757
1757
|
}, {
|
|
1758
|
-
message: string;
|
|
1759
1758
|
code: string;
|
|
1760
1759
|
path: string;
|
|
1760
|
+
message: string;
|
|
1761
1761
|
statusCode: number;
|
|
1762
1762
|
timestamp: string;
|
|
1763
1763
|
details?: unknown;
|
|
1764
1764
|
correlationId?: string | undefined;
|
|
1765
1765
|
}>;
|
|
1766
|
-
|
|
1766
|
+
400: z.ZodObject<{
|
|
1767
1767
|
statusCode: z.ZodNumber;
|
|
1768
1768
|
message: z.ZodString;
|
|
1769
1769
|
code: z.ZodString;
|
|
@@ -1772,17 +1772,17 @@ export declare const crewsContract: {
|
|
|
1772
1772
|
path: z.ZodString;
|
|
1773
1773
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1774
1774
|
}, "strip", z.ZodTypeAny, {
|
|
1775
|
-
message: string;
|
|
1776
1775
|
code: string;
|
|
1777
1776
|
path: string;
|
|
1777
|
+
message: string;
|
|
1778
1778
|
statusCode: number;
|
|
1779
1779
|
timestamp: string;
|
|
1780
1780
|
details?: unknown;
|
|
1781
1781
|
correlationId?: string | undefined;
|
|
1782
1782
|
}, {
|
|
1783
|
-
message: string;
|
|
1784
1783
|
code: string;
|
|
1785
1784
|
path: string;
|
|
1785
|
+
message: string;
|
|
1786
1786
|
statusCode: number;
|
|
1787
1787
|
timestamp: string;
|
|
1788
1788
|
details?: unknown;
|
|
@@ -1797,17 +1797,17 @@ export declare const crewsContract: {
|
|
|
1797
1797
|
path: z.ZodString;
|
|
1798
1798
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1799
1799
|
}, "strip", z.ZodTypeAny, {
|
|
1800
|
-
message: string;
|
|
1801
1800
|
code: string;
|
|
1802
1801
|
path: string;
|
|
1802
|
+
message: string;
|
|
1803
1803
|
statusCode: number;
|
|
1804
1804
|
timestamp: string;
|
|
1805
1805
|
details?: unknown;
|
|
1806
1806
|
correlationId?: string | undefined;
|
|
1807
1807
|
}, {
|
|
1808
|
-
message: string;
|
|
1809
1808
|
code: string;
|
|
1810
1809
|
path: string;
|
|
1810
|
+
message: string;
|
|
1811
1811
|
statusCode: number;
|
|
1812
1812
|
timestamp: string;
|
|
1813
1813
|
details?: unknown;
|
|
@@ -1822,17 +1822,17 @@ export declare const crewsContract: {
|
|
|
1822
1822
|
path: z.ZodString;
|
|
1823
1823
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1824
1824
|
}, "strip", z.ZodTypeAny, {
|
|
1825
|
-
message: string;
|
|
1826
1825
|
code: string;
|
|
1827
1826
|
path: string;
|
|
1827
|
+
message: string;
|
|
1828
1828
|
statusCode: number;
|
|
1829
1829
|
timestamp: string;
|
|
1830
1830
|
details?: unknown;
|
|
1831
1831
|
correlationId?: string | undefined;
|
|
1832
1832
|
}, {
|
|
1833
|
-
message: string;
|
|
1834
1833
|
code: string;
|
|
1835
1834
|
path: string;
|
|
1835
|
+
message: string;
|
|
1836
1836
|
statusCode: number;
|
|
1837
1837
|
timestamp: string;
|
|
1838
1838
|
details?: unknown;
|
|
@@ -1871,23 +1871,23 @@ export declare const crewsContract: {
|
|
|
1871
1871
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
1872
1872
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1873
1873
|
}, "strip", z.ZodTypeAny, {
|
|
1874
|
-
id: string;
|
|
1875
1874
|
name: string;
|
|
1876
|
-
company: string | null;
|
|
1877
1875
|
email: string | null;
|
|
1876
|
+
id: string;
|
|
1878
1877
|
phoneNumber: string;
|
|
1879
1878
|
notes: string | null;
|
|
1880
|
-
|
|
1879
|
+
company: string | null;
|
|
1881
1880
|
createdAt?: string | undefined;
|
|
1881
|
+
updatedAt?: string | undefined;
|
|
1882
1882
|
}, {
|
|
1883
|
-
id: string;
|
|
1884
1883
|
name: string;
|
|
1885
|
-
company: string | null;
|
|
1886
1884
|
email: string | null;
|
|
1885
|
+
id: string;
|
|
1887
1886
|
phoneNumber: string;
|
|
1888
1887
|
notes: string | null;
|
|
1889
|
-
|
|
1888
|
+
company: string | null;
|
|
1890
1889
|
createdAt?: string | undefined;
|
|
1890
|
+
updatedAt?: string | undefined;
|
|
1891
1891
|
}>>;
|
|
1892
1892
|
memberCount: z.ZodNumber;
|
|
1893
1893
|
maxMembers: z.ZodNumber;
|
|
@@ -1957,8 +1957,8 @@ export declare const crewsContract: {
|
|
|
1957
1957
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
1958
1958
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1959
1959
|
}, "strip", z.ZodTypeAny, {
|
|
1960
|
-
id: string;
|
|
1961
1960
|
name: string;
|
|
1961
|
+
id: string;
|
|
1962
1962
|
leadType: "WORKER" | "SUPPLIER";
|
|
1963
1963
|
leadWorker: {
|
|
1964
1964
|
id: string;
|
|
@@ -1968,19 +1968,19 @@ export declare const crewsContract: {
|
|
|
1968
1968
|
primaryPhoneNumber: string | null;
|
|
1969
1969
|
} | null;
|
|
1970
1970
|
leadSupplier: {
|
|
1971
|
-
id: string;
|
|
1972
1971
|
name: string;
|
|
1973
|
-
company: string | null;
|
|
1974
1972
|
email: string | null;
|
|
1973
|
+
id: string;
|
|
1975
1974
|
phoneNumber: string;
|
|
1976
1975
|
notes: string | null;
|
|
1977
|
-
|
|
1976
|
+
company: string | null;
|
|
1978
1977
|
createdAt?: string | undefined;
|
|
1978
|
+
updatedAt?: string | undefined;
|
|
1979
1979
|
} | null;
|
|
1980
1980
|
memberCount: number;
|
|
1981
1981
|
maxMembers: number;
|
|
1982
|
-
updatedAt?: string | undefined;
|
|
1983
1982
|
createdAt?: string | undefined;
|
|
1983
|
+
updatedAt?: string | undefined;
|
|
1984
1984
|
createdBy?: {
|
|
1985
1985
|
id: string;
|
|
1986
1986
|
lastName: string;
|
|
@@ -2001,8 +2001,8 @@ export declare const crewsContract: {
|
|
|
2001
2001
|
primaryPhoneNumber: string | null;
|
|
2002
2002
|
}[] | undefined;
|
|
2003
2003
|
}, {
|
|
2004
|
-
id: string;
|
|
2005
2004
|
name: string;
|
|
2005
|
+
id: string;
|
|
2006
2006
|
leadType: "WORKER" | "SUPPLIER";
|
|
2007
2007
|
leadWorker: {
|
|
2008
2008
|
id: string;
|
|
@@ -2012,19 +2012,19 @@ export declare const crewsContract: {
|
|
|
2012
2012
|
primaryPhoneNumber: string | null;
|
|
2013
2013
|
} | null;
|
|
2014
2014
|
leadSupplier: {
|
|
2015
|
-
id: string;
|
|
2016
2015
|
name: string;
|
|
2017
|
-
company: string | null;
|
|
2018
2016
|
email: string | null;
|
|
2017
|
+
id: string;
|
|
2019
2018
|
phoneNumber: string;
|
|
2020
2019
|
notes: string | null;
|
|
2021
|
-
|
|
2020
|
+
company: string | null;
|
|
2022
2021
|
createdAt?: string | undefined;
|
|
2022
|
+
updatedAt?: string | undefined;
|
|
2023
2023
|
} | null;
|
|
2024
2024
|
memberCount: number;
|
|
2025
2025
|
maxMembers: number;
|
|
2026
|
-
updatedAt?: string | undefined;
|
|
2027
2026
|
createdAt?: string | undefined;
|
|
2027
|
+
updatedAt?: string | undefined;
|
|
2028
2028
|
createdBy?: {
|
|
2029
2029
|
id: string;
|
|
2030
2030
|
lastName: string;
|
|
@@ -2054,17 +2054,17 @@ export declare const crewsContract: {
|
|
|
2054
2054
|
path: z.ZodString;
|
|
2055
2055
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2056
2056
|
}, "strip", z.ZodTypeAny, {
|
|
2057
|
-
message: string;
|
|
2058
2057
|
code: string;
|
|
2059
2058
|
path: string;
|
|
2059
|
+
message: string;
|
|
2060
2060
|
statusCode: number;
|
|
2061
2061
|
timestamp: string;
|
|
2062
2062
|
details?: unknown;
|
|
2063
2063
|
correlationId?: string | undefined;
|
|
2064
2064
|
}, {
|
|
2065
|
-
message: string;
|
|
2066
2065
|
code: string;
|
|
2067
2066
|
path: string;
|
|
2067
|
+
message: string;
|
|
2068
2068
|
statusCode: number;
|
|
2069
2069
|
timestamp: string;
|
|
2070
2070
|
details?: unknown;
|
|
@@ -2097,7 +2097,7 @@ export declare const crewsContract: {
|
|
|
2097
2097
|
}>;
|
|
2098
2098
|
path: "/v2/crews/:id";
|
|
2099
2099
|
responses: {
|
|
2100
|
-
|
|
2100
|
+
401: z.ZodObject<{
|
|
2101
2101
|
statusCode: z.ZodNumber;
|
|
2102
2102
|
message: z.ZodString;
|
|
2103
2103
|
code: z.ZodString;
|
|
@@ -2106,23 +2106,23 @@ export declare const crewsContract: {
|
|
|
2106
2106
|
path: z.ZodString;
|
|
2107
2107
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2108
2108
|
}, "strip", z.ZodTypeAny, {
|
|
2109
|
-
message: string;
|
|
2110
2109
|
code: string;
|
|
2111
2110
|
path: string;
|
|
2111
|
+
message: string;
|
|
2112
2112
|
statusCode: number;
|
|
2113
2113
|
timestamp: string;
|
|
2114
2114
|
details?: unknown;
|
|
2115
2115
|
correlationId?: string | undefined;
|
|
2116
2116
|
}, {
|
|
2117
|
-
message: string;
|
|
2118
2117
|
code: string;
|
|
2119
2118
|
path: string;
|
|
2119
|
+
message: string;
|
|
2120
2120
|
statusCode: number;
|
|
2121
2121
|
timestamp: string;
|
|
2122
2122
|
details?: unknown;
|
|
2123
2123
|
correlationId?: string | undefined;
|
|
2124
2124
|
}>;
|
|
2125
|
-
|
|
2125
|
+
400: z.ZodObject<{
|
|
2126
2126
|
statusCode: z.ZodNumber;
|
|
2127
2127
|
message: z.ZodString;
|
|
2128
2128
|
code: z.ZodString;
|
|
@@ -2131,17 +2131,17 @@ export declare const crewsContract: {
|
|
|
2131
2131
|
path: z.ZodString;
|
|
2132
2132
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2133
2133
|
}, "strip", z.ZodTypeAny, {
|
|
2134
|
-
message: string;
|
|
2135
2134
|
code: string;
|
|
2136
2135
|
path: string;
|
|
2136
|
+
message: string;
|
|
2137
2137
|
statusCode: number;
|
|
2138
2138
|
timestamp: string;
|
|
2139
2139
|
details?: unknown;
|
|
2140
2140
|
correlationId?: string | undefined;
|
|
2141
2141
|
}, {
|
|
2142
|
-
message: string;
|
|
2143
2142
|
code: string;
|
|
2144
2143
|
path: string;
|
|
2144
|
+
message: string;
|
|
2145
2145
|
statusCode: number;
|
|
2146
2146
|
timestamp: string;
|
|
2147
2147
|
details?: unknown;
|
|
@@ -2156,17 +2156,17 @@ export declare const crewsContract: {
|
|
|
2156
2156
|
path: z.ZodString;
|
|
2157
2157
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2158
2158
|
}, "strip", z.ZodTypeAny, {
|
|
2159
|
-
message: string;
|
|
2160
2159
|
code: string;
|
|
2161
2160
|
path: string;
|
|
2161
|
+
message: string;
|
|
2162
2162
|
statusCode: number;
|
|
2163
2163
|
timestamp: string;
|
|
2164
2164
|
details?: unknown;
|
|
2165
2165
|
correlationId?: string | undefined;
|
|
2166
2166
|
}, {
|
|
2167
|
-
message: string;
|
|
2168
2167
|
code: string;
|
|
2169
2168
|
path: string;
|
|
2169
|
+
message: string;
|
|
2170
2170
|
statusCode: number;
|
|
2171
2171
|
timestamp: string;
|
|
2172
2172
|
details?: unknown;
|
|
@@ -2181,17 +2181,17 @@ export declare const crewsContract: {
|
|
|
2181
2181
|
path: z.ZodString;
|
|
2182
2182
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2183
2183
|
}, "strip", z.ZodTypeAny, {
|
|
2184
|
-
message: string;
|
|
2185
2184
|
code: string;
|
|
2186
2185
|
path: string;
|
|
2186
|
+
message: string;
|
|
2187
2187
|
statusCode: number;
|
|
2188
2188
|
timestamp: string;
|
|
2189
2189
|
details?: unknown;
|
|
2190
2190
|
correlationId?: string | undefined;
|
|
2191
2191
|
}, {
|
|
2192
|
-
message: string;
|
|
2193
2192
|
code: string;
|
|
2194
2193
|
path: string;
|
|
2194
|
+
message: string;
|
|
2195
2195
|
statusCode: number;
|
|
2196
2196
|
timestamp: string;
|
|
2197
2197
|
details?: unknown;
|
|
@@ -2230,23 +2230,23 @@ export declare const crewsContract: {
|
|
|
2230
2230
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
2231
2231
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
2232
2232
|
}, "strip", z.ZodTypeAny, {
|
|
2233
|
-
id: string;
|
|
2234
2233
|
name: string;
|
|
2235
|
-
company: string | null;
|
|
2236
2234
|
email: string | null;
|
|
2235
|
+
id: string;
|
|
2237
2236
|
phoneNumber: string;
|
|
2238
2237
|
notes: string | null;
|
|
2239
|
-
|
|
2238
|
+
company: string | null;
|
|
2240
2239
|
createdAt?: string | undefined;
|
|
2240
|
+
updatedAt?: string | undefined;
|
|
2241
2241
|
}, {
|
|
2242
|
-
id: string;
|
|
2243
2242
|
name: string;
|
|
2244
|
-
company: string | null;
|
|
2245
2243
|
email: string | null;
|
|
2244
|
+
id: string;
|
|
2246
2245
|
phoneNumber: string;
|
|
2247
2246
|
notes: string | null;
|
|
2248
|
-
|
|
2247
|
+
company: string | null;
|
|
2249
2248
|
createdAt?: string | undefined;
|
|
2249
|
+
updatedAt?: string | undefined;
|
|
2250
2250
|
}>>;
|
|
2251
2251
|
memberCount: z.ZodNumber;
|
|
2252
2252
|
maxMembers: z.ZodNumber;
|
|
@@ -2316,8 +2316,8 @@ export declare const crewsContract: {
|
|
|
2316
2316
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
2317
2317
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
2318
2318
|
}, "strip", z.ZodTypeAny, {
|
|
2319
|
-
id: string;
|
|
2320
2319
|
name: string;
|
|
2320
|
+
id: string;
|
|
2321
2321
|
leadType: "WORKER" | "SUPPLIER";
|
|
2322
2322
|
leadWorker: {
|
|
2323
2323
|
id: string;
|
|
@@ -2327,19 +2327,19 @@ export declare const crewsContract: {
|
|
|
2327
2327
|
primaryPhoneNumber: string | null;
|
|
2328
2328
|
} | null;
|
|
2329
2329
|
leadSupplier: {
|
|
2330
|
-
id: string;
|
|
2331
2330
|
name: string;
|
|
2332
|
-
company: string | null;
|
|
2333
2331
|
email: string | null;
|
|
2332
|
+
id: string;
|
|
2334
2333
|
phoneNumber: string;
|
|
2335
2334
|
notes: string | null;
|
|
2336
|
-
|
|
2335
|
+
company: string | null;
|
|
2337
2336
|
createdAt?: string | undefined;
|
|
2337
|
+
updatedAt?: string | undefined;
|
|
2338
2338
|
} | null;
|
|
2339
2339
|
memberCount: number;
|
|
2340
2340
|
maxMembers: number;
|
|
2341
|
-
updatedAt?: string | undefined;
|
|
2342
2341
|
createdAt?: string | undefined;
|
|
2342
|
+
updatedAt?: string | undefined;
|
|
2343
2343
|
createdBy?: {
|
|
2344
2344
|
id: string;
|
|
2345
2345
|
lastName: string;
|
|
@@ -2360,8 +2360,8 @@ export declare const crewsContract: {
|
|
|
2360
2360
|
primaryPhoneNumber: string | null;
|
|
2361
2361
|
}[] | undefined;
|
|
2362
2362
|
}, {
|
|
2363
|
-
id: string;
|
|
2364
2363
|
name: string;
|
|
2364
|
+
id: string;
|
|
2365
2365
|
leadType: "WORKER" | "SUPPLIER";
|
|
2366
2366
|
leadWorker: {
|
|
2367
2367
|
id: string;
|
|
@@ -2371,19 +2371,19 @@ export declare const crewsContract: {
|
|
|
2371
2371
|
primaryPhoneNumber: string | null;
|
|
2372
2372
|
} | null;
|
|
2373
2373
|
leadSupplier: {
|
|
2374
|
-
id: string;
|
|
2375
2374
|
name: string;
|
|
2376
|
-
company: string | null;
|
|
2377
2375
|
email: string | null;
|
|
2376
|
+
id: string;
|
|
2378
2377
|
phoneNumber: string;
|
|
2379
2378
|
notes: string | null;
|
|
2380
|
-
|
|
2379
|
+
company: string | null;
|
|
2381
2380
|
createdAt?: string | undefined;
|
|
2381
|
+
updatedAt?: string | undefined;
|
|
2382
2382
|
} | null;
|
|
2383
2383
|
memberCount: number;
|
|
2384
2384
|
maxMembers: number;
|
|
2385
|
-
updatedAt?: string | undefined;
|
|
2386
2385
|
createdAt?: string | undefined;
|
|
2386
|
+
updatedAt?: string | undefined;
|
|
2387
2387
|
createdBy?: {
|
|
2388
2388
|
id: string;
|
|
2389
2389
|
lastName: string;
|
|
@@ -2413,17 +2413,17 @@ export declare const crewsContract: {
|
|
|
2413
2413
|
path: z.ZodString;
|
|
2414
2414
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2415
2415
|
}, "strip", z.ZodTypeAny, {
|
|
2416
|
-
message: string;
|
|
2417
2416
|
code: string;
|
|
2418
2417
|
path: string;
|
|
2418
|
+
message: string;
|
|
2419
2419
|
statusCode: number;
|
|
2420
2420
|
timestamp: string;
|
|
2421
2421
|
details?: unknown;
|
|
2422
2422
|
correlationId?: string | undefined;
|
|
2423
2423
|
}, {
|
|
2424
|
-
message: string;
|
|
2425
2424
|
code: string;
|
|
2426
2425
|
path: string;
|
|
2426
|
+
message: string;
|
|
2427
2427
|
statusCode: number;
|
|
2428
2428
|
timestamp: string;
|
|
2429
2429
|
details?: unknown;
|
|
@@ -2447,7 +2447,7 @@ export declare const crewsContract: {
|
|
|
2447
2447
|
body: typeof import("@ts-rest/core").ContractNoBody;
|
|
2448
2448
|
path: "/v2/crews/:id";
|
|
2449
2449
|
responses: {
|
|
2450
|
-
|
|
2450
|
+
401: z.ZodObject<{
|
|
2451
2451
|
statusCode: z.ZodNumber;
|
|
2452
2452
|
message: z.ZodString;
|
|
2453
2453
|
code: z.ZodString;
|
|
@@ -2456,23 +2456,23 @@ export declare const crewsContract: {
|
|
|
2456
2456
|
path: z.ZodString;
|
|
2457
2457
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2458
2458
|
}, "strip", z.ZodTypeAny, {
|
|
2459
|
-
message: string;
|
|
2460
2459
|
code: string;
|
|
2461
2460
|
path: string;
|
|
2461
|
+
message: string;
|
|
2462
2462
|
statusCode: number;
|
|
2463
2463
|
timestamp: string;
|
|
2464
2464
|
details?: unknown;
|
|
2465
2465
|
correlationId?: string | undefined;
|
|
2466
2466
|
}, {
|
|
2467
|
-
message: string;
|
|
2468
2467
|
code: string;
|
|
2469
2468
|
path: string;
|
|
2469
|
+
message: string;
|
|
2470
2470
|
statusCode: number;
|
|
2471
2471
|
timestamp: string;
|
|
2472
2472
|
details?: unknown;
|
|
2473
2473
|
correlationId?: string | undefined;
|
|
2474
2474
|
}>;
|
|
2475
|
-
|
|
2475
|
+
400: z.ZodObject<{
|
|
2476
2476
|
statusCode: z.ZodNumber;
|
|
2477
2477
|
message: z.ZodString;
|
|
2478
2478
|
code: z.ZodString;
|
|
@@ -2481,17 +2481,17 @@ export declare const crewsContract: {
|
|
|
2481
2481
|
path: z.ZodString;
|
|
2482
2482
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2483
2483
|
}, "strip", z.ZodTypeAny, {
|
|
2484
|
-
message: string;
|
|
2485
2484
|
code: string;
|
|
2486
2485
|
path: string;
|
|
2486
|
+
message: string;
|
|
2487
2487
|
statusCode: number;
|
|
2488
2488
|
timestamp: string;
|
|
2489
2489
|
details?: unknown;
|
|
2490
2490
|
correlationId?: string | undefined;
|
|
2491
2491
|
}, {
|
|
2492
|
-
message: string;
|
|
2493
2492
|
code: string;
|
|
2494
2493
|
path: string;
|
|
2494
|
+
message: string;
|
|
2495
2495
|
statusCode: number;
|
|
2496
2496
|
timestamp: string;
|
|
2497
2497
|
details?: unknown;
|
|
@@ -2506,17 +2506,17 @@ export declare const crewsContract: {
|
|
|
2506
2506
|
path: z.ZodString;
|
|
2507
2507
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2508
2508
|
}, "strip", z.ZodTypeAny, {
|
|
2509
|
-
message: string;
|
|
2510
2509
|
code: string;
|
|
2511
2510
|
path: string;
|
|
2511
|
+
message: string;
|
|
2512
2512
|
statusCode: number;
|
|
2513
2513
|
timestamp: string;
|
|
2514
2514
|
details?: unknown;
|
|
2515
2515
|
correlationId?: string | undefined;
|
|
2516
2516
|
}, {
|
|
2517
|
-
message: string;
|
|
2518
2517
|
code: string;
|
|
2519
2518
|
path: string;
|
|
2519
|
+
message: string;
|
|
2520
2520
|
statusCode: number;
|
|
2521
2521
|
timestamp: string;
|
|
2522
2522
|
details?: unknown;
|
|
@@ -2531,17 +2531,17 @@ export declare const crewsContract: {
|
|
|
2531
2531
|
path: z.ZodString;
|
|
2532
2532
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2533
2533
|
}, "strip", z.ZodTypeAny, {
|
|
2534
|
-
message: string;
|
|
2535
2534
|
code: string;
|
|
2536
2535
|
path: string;
|
|
2536
|
+
message: string;
|
|
2537
2537
|
statusCode: number;
|
|
2538
2538
|
timestamp: string;
|
|
2539
2539
|
details?: unknown;
|
|
2540
2540
|
correlationId?: string | undefined;
|
|
2541
2541
|
}, {
|
|
2542
|
-
message: string;
|
|
2543
2542
|
code: string;
|
|
2544
2543
|
path: string;
|
|
2544
|
+
message: string;
|
|
2545
2545
|
statusCode: number;
|
|
2546
2546
|
timestamp: string;
|
|
2547
2547
|
details?: unknown;
|
|
@@ -2557,17 +2557,17 @@ export declare const crewsContract: {
|
|
|
2557
2557
|
path: z.ZodString;
|
|
2558
2558
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2559
2559
|
}, "strip", z.ZodTypeAny, {
|
|
2560
|
-
message: string;
|
|
2561
2560
|
code: string;
|
|
2562
2561
|
path: string;
|
|
2562
|
+
message: string;
|
|
2563
2563
|
statusCode: number;
|
|
2564
2564
|
timestamp: string;
|
|
2565
2565
|
details?: unknown;
|
|
2566
2566
|
correlationId?: string | undefined;
|
|
2567
2567
|
}, {
|
|
2568
|
-
message: string;
|
|
2569
2568
|
code: string;
|
|
2570
2569
|
path: string;
|
|
2570
|
+
message: string;
|
|
2571
2571
|
statusCode: number;
|
|
2572
2572
|
timestamp: string;
|
|
2573
2573
|
details?: unknown;
|
|
@@ -2582,17 +2582,17 @@ export declare const crewsContract: {
|
|
|
2582
2582
|
path: z.ZodString;
|
|
2583
2583
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2584
2584
|
}, "strip", z.ZodTypeAny, {
|
|
2585
|
-
message: string;
|
|
2586
2585
|
code: string;
|
|
2587
2586
|
path: string;
|
|
2587
|
+
message: string;
|
|
2588
2588
|
statusCode: number;
|
|
2589
2589
|
timestamp: string;
|
|
2590
2590
|
details?: unknown;
|
|
2591
2591
|
correlationId?: string | undefined;
|
|
2592
2592
|
}, {
|
|
2593
|
-
message: string;
|
|
2594
2593
|
code: string;
|
|
2595
2594
|
path: string;
|
|
2595
|
+
message: string;
|
|
2596
2596
|
statusCode: number;
|
|
2597
2597
|
timestamp: string;
|
|
2598
2598
|
details?: unknown;
|
|
@@ -2622,7 +2622,7 @@ export declare const crewsContract: {
|
|
|
2622
2622
|
}>;
|
|
2623
2623
|
path: "/v2/crews/:id/members";
|
|
2624
2624
|
responses: {
|
|
2625
|
-
|
|
2625
|
+
401: z.ZodObject<{
|
|
2626
2626
|
statusCode: z.ZodNumber;
|
|
2627
2627
|
message: z.ZodString;
|
|
2628
2628
|
code: z.ZodString;
|
|
@@ -2631,23 +2631,23 @@ export declare const crewsContract: {
|
|
|
2631
2631
|
path: z.ZodString;
|
|
2632
2632
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2633
2633
|
}, "strip", z.ZodTypeAny, {
|
|
2634
|
-
message: string;
|
|
2635
2634
|
code: string;
|
|
2636
2635
|
path: string;
|
|
2636
|
+
message: string;
|
|
2637
2637
|
statusCode: number;
|
|
2638
2638
|
timestamp: string;
|
|
2639
2639
|
details?: unknown;
|
|
2640
2640
|
correlationId?: string | undefined;
|
|
2641
2641
|
}, {
|
|
2642
|
-
message: string;
|
|
2643
2642
|
code: string;
|
|
2644
2643
|
path: string;
|
|
2644
|
+
message: string;
|
|
2645
2645
|
statusCode: number;
|
|
2646
2646
|
timestamp: string;
|
|
2647
2647
|
details?: unknown;
|
|
2648
2648
|
correlationId?: string | undefined;
|
|
2649
2649
|
}>;
|
|
2650
|
-
|
|
2650
|
+
400: z.ZodObject<{
|
|
2651
2651
|
statusCode: z.ZodNumber;
|
|
2652
2652
|
message: z.ZodString;
|
|
2653
2653
|
code: z.ZodString;
|
|
@@ -2656,17 +2656,17 @@ export declare const crewsContract: {
|
|
|
2656
2656
|
path: z.ZodString;
|
|
2657
2657
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2658
2658
|
}, "strip", z.ZodTypeAny, {
|
|
2659
|
-
message: string;
|
|
2660
2659
|
code: string;
|
|
2661
2660
|
path: string;
|
|
2661
|
+
message: string;
|
|
2662
2662
|
statusCode: number;
|
|
2663
2663
|
timestamp: string;
|
|
2664
2664
|
details?: unknown;
|
|
2665
2665
|
correlationId?: string | undefined;
|
|
2666
2666
|
}, {
|
|
2667
|
-
message: string;
|
|
2668
2667
|
code: string;
|
|
2669
2668
|
path: string;
|
|
2669
|
+
message: string;
|
|
2670
2670
|
statusCode: number;
|
|
2671
2671
|
timestamp: string;
|
|
2672
2672
|
details?: unknown;
|
|
@@ -2681,17 +2681,17 @@ export declare const crewsContract: {
|
|
|
2681
2681
|
path: z.ZodString;
|
|
2682
2682
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2683
2683
|
}, "strip", z.ZodTypeAny, {
|
|
2684
|
-
message: string;
|
|
2685
2684
|
code: string;
|
|
2686
2685
|
path: string;
|
|
2686
|
+
message: string;
|
|
2687
2687
|
statusCode: number;
|
|
2688
2688
|
timestamp: string;
|
|
2689
2689
|
details?: unknown;
|
|
2690
2690
|
correlationId?: string | undefined;
|
|
2691
2691
|
}, {
|
|
2692
|
-
message: string;
|
|
2693
2692
|
code: string;
|
|
2694
2693
|
path: string;
|
|
2694
|
+
message: string;
|
|
2695
2695
|
statusCode: number;
|
|
2696
2696
|
timestamp: string;
|
|
2697
2697
|
details?: unknown;
|
|
@@ -2706,17 +2706,17 @@ export declare const crewsContract: {
|
|
|
2706
2706
|
path: z.ZodString;
|
|
2707
2707
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2708
2708
|
}, "strip", z.ZodTypeAny, {
|
|
2709
|
-
message: string;
|
|
2710
2709
|
code: string;
|
|
2711
2710
|
path: string;
|
|
2711
|
+
message: string;
|
|
2712
2712
|
statusCode: number;
|
|
2713
2713
|
timestamp: string;
|
|
2714
2714
|
details?: unknown;
|
|
2715
2715
|
correlationId?: string | undefined;
|
|
2716
2716
|
}, {
|
|
2717
|
-
message: string;
|
|
2718
2717
|
code: string;
|
|
2719
2718
|
path: string;
|
|
2719
|
+
message: string;
|
|
2720
2720
|
statusCode: number;
|
|
2721
2721
|
timestamp: string;
|
|
2722
2722
|
details?: unknown;
|
|
@@ -2755,23 +2755,23 @@ export declare const crewsContract: {
|
|
|
2755
2755
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
2756
2756
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
2757
2757
|
}, "strip", z.ZodTypeAny, {
|
|
2758
|
-
id: string;
|
|
2759
2758
|
name: string;
|
|
2760
|
-
company: string | null;
|
|
2761
2759
|
email: string | null;
|
|
2760
|
+
id: string;
|
|
2762
2761
|
phoneNumber: string;
|
|
2763
2762
|
notes: string | null;
|
|
2764
|
-
|
|
2763
|
+
company: string | null;
|
|
2765
2764
|
createdAt?: string | undefined;
|
|
2765
|
+
updatedAt?: string | undefined;
|
|
2766
2766
|
}, {
|
|
2767
|
-
id: string;
|
|
2768
2767
|
name: string;
|
|
2769
|
-
company: string | null;
|
|
2770
2768
|
email: string | null;
|
|
2769
|
+
id: string;
|
|
2771
2770
|
phoneNumber: string;
|
|
2772
2771
|
notes: string | null;
|
|
2773
|
-
|
|
2772
|
+
company: string | null;
|
|
2774
2773
|
createdAt?: string | undefined;
|
|
2774
|
+
updatedAt?: string | undefined;
|
|
2775
2775
|
}>>;
|
|
2776
2776
|
memberCount: z.ZodNumber;
|
|
2777
2777
|
maxMembers: z.ZodNumber;
|
|
@@ -2841,8 +2841,8 @@ export declare const crewsContract: {
|
|
|
2841
2841
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
2842
2842
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
2843
2843
|
}, "strip", z.ZodTypeAny, {
|
|
2844
|
-
id: string;
|
|
2845
2844
|
name: string;
|
|
2845
|
+
id: string;
|
|
2846
2846
|
leadType: "WORKER" | "SUPPLIER";
|
|
2847
2847
|
leadWorker: {
|
|
2848
2848
|
id: string;
|
|
@@ -2852,19 +2852,19 @@ export declare const crewsContract: {
|
|
|
2852
2852
|
primaryPhoneNumber: string | null;
|
|
2853
2853
|
} | null;
|
|
2854
2854
|
leadSupplier: {
|
|
2855
|
-
id: string;
|
|
2856
2855
|
name: string;
|
|
2857
|
-
company: string | null;
|
|
2858
2856
|
email: string | null;
|
|
2857
|
+
id: string;
|
|
2859
2858
|
phoneNumber: string;
|
|
2860
2859
|
notes: string | null;
|
|
2861
|
-
|
|
2860
|
+
company: string | null;
|
|
2862
2861
|
createdAt?: string | undefined;
|
|
2862
|
+
updatedAt?: string | undefined;
|
|
2863
2863
|
} | null;
|
|
2864
2864
|
memberCount: number;
|
|
2865
2865
|
maxMembers: number;
|
|
2866
|
-
updatedAt?: string | undefined;
|
|
2867
2866
|
createdAt?: string | undefined;
|
|
2867
|
+
updatedAt?: string | undefined;
|
|
2868
2868
|
createdBy?: {
|
|
2869
2869
|
id: string;
|
|
2870
2870
|
lastName: string;
|
|
@@ -2885,8 +2885,8 @@ export declare const crewsContract: {
|
|
|
2885
2885
|
primaryPhoneNumber: string | null;
|
|
2886
2886
|
}[] | undefined;
|
|
2887
2887
|
}, {
|
|
2888
|
-
id: string;
|
|
2889
2888
|
name: string;
|
|
2889
|
+
id: string;
|
|
2890
2890
|
leadType: "WORKER" | "SUPPLIER";
|
|
2891
2891
|
leadWorker: {
|
|
2892
2892
|
id: string;
|
|
@@ -2896,19 +2896,19 @@ export declare const crewsContract: {
|
|
|
2896
2896
|
primaryPhoneNumber: string | null;
|
|
2897
2897
|
} | null;
|
|
2898
2898
|
leadSupplier: {
|
|
2899
|
-
id: string;
|
|
2900
2899
|
name: string;
|
|
2901
|
-
company: string | null;
|
|
2902
2900
|
email: string | null;
|
|
2901
|
+
id: string;
|
|
2903
2902
|
phoneNumber: string;
|
|
2904
2903
|
notes: string | null;
|
|
2905
|
-
|
|
2904
|
+
company: string | null;
|
|
2906
2905
|
createdAt?: string | undefined;
|
|
2906
|
+
updatedAt?: string | undefined;
|
|
2907
2907
|
} | null;
|
|
2908
2908
|
memberCount: number;
|
|
2909
2909
|
maxMembers: number;
|
|
2910
|
-
updatedAt?: string | undefined;
|
|
2911
2910
|
createdAt?: string | undefined;
|
|
2911
|
+
updatedAt?: string | undefined;
|
|
2912
2912
|
createdBy?: {
|
|
2913
2913
|
id: string;
|
|
2914
2914
|
lastName: string;
|
|
@@ -2938,17 +2938,17 @@ export declare const crewsContract: {
|
|
|
2938
2938
|
path: z.ZodString;
|
|
2939
2939
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2940
2940
|
}, "strip", z.ZodTypeAny, {
|
|
2941
|
-
message: string;
|
|
2942
2941
|
code: string;
|
|
2943
2942
|
path: string;
|
|
2943
|
+
message: string;
|
|
2944
2944
|
statusCode: number;
|
|
2945
2945
|
timestamp: string;
|
|
2946
2946
|
details?: unknown;
|
|
2947
2947
|
correlationId?: string | undefined;
|
|
2948
2948
|
}, {
|
|
2949
|
-
message: string;
|
|
2950
2949
|
code: string;
|
|
2951
2950
|
path: string;
|
|
2951
|
+
message: string;
|
|
2952
2952
|
statusCode: number;
|
|
2953
2953
|
timestamp: string;
|
|
2954
2954
|
details?: unknown;
|
|
@@ -2963,17 +2963,17 @@ export declare const crewsContract: {
|
|
|
2963
2963
|
path: z.ZodString;
|
|
2964
2964
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2965
2965
|
}, "strip", z.ZodTypeAny, {
|
|
2966
|
-
message: string;
|
|
2967
2966
|
code: string;
|
|
2968
2967
|
path: string;
|
|
2968
|
+
message: string;
|
|
2969
2969
|
statusCode: number;
|
|
2970
2970
|
timestamp: string;
|
|
2971
2971
|
details?: unknown;
|
|
2972
2972
|
correlationId?: string | undefined;
|
|
2973
2973
|
}, {
|
|
2974
|
-
message: string;
|
|
2975
2974
|
code: string;
|
|
2976
2975
|
path: string;
|
|
2976
|
+
message: string;
|
|
2977
2977
|
statusCode: number;
|
|
2978
2978
|
timestamp: string;
|
|
2979
2979
|
details?: unknown;
|
|
@@ -3000,7 +3000,7 @@ export declare const crewsContract: {
|
|
|
3000
3000
|
body: typeof import("@ts-rest/core").ContractNoBody;
|
|
3001
3001
|
path: "/v2/crews/:id/members/:workerId";
|
|
3002
3002
|
responses: {
|
|
3003
|
-
|
|
3003
|
+
401: z.ZodObject<{
|
|
3004
3004
|
statusCode: z.ZodNumber;
|
|
3005
3005
|
message: z.ZodString;
|
|
3006
3006
|
code: z.ZodString;
|
|
@@ -3009,23 +3009,23 @@ export declare const crewsContract: {
|
|
|
3009
3009
|
path: z.ZodString;
|
|
3010
3010
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3011
3011
|
}, "strip", z.ZodTypeAny, {
|
|
3012
|
-
message: string;
|
|
3013
3012
|
code: string;
|
|
3014
3013
|
path: string;
|
|
3014
|
+
message: string;
|
|
3015
3015
|
statusCode: number;
|
|
3016
3016
|
timestamp: string;
|
|
3017
3017
|
details?: unknown;
|
|
3018
3018
|
correlationId?: string | undefined;
|
|
3019
3019
|
}, {
|
|
3020
|
-
message: string;
|
|
3021
3020
|
code: string;
|
|
3022
3021
|
path: string;
|
|
3022
|
+
message: string;
|
|
3023
3023
|
statusCode: number;
|
|
3024
3024
|
timestamp: string;
|
|
3025
3025
|
details?: unknown;
|
|
3026
3026
|
correlationId?: string | undefined;
|
|
3027
3027
|
}>;
|
|
3028
|
-
|
|
3028
|
+
400: z.ZodObject<{
|
|
3029
3029
|
statusCode: z.ZodNumber;
|
|
3030
3030
|
message: z.ZodString;
|
|
3031
3031
|
code: z.ZodString;
|
|
@@ -3034,17 +3034,17 @@ export declare const crewsContract: {
|
|
|
3034
3034
|
path: z.ZodString;
|
|
3035
3035
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3036
3036
|
}, "strip", z.ZodTypeAny, {
|
|
3037
|
-
message: string;
|
|
3038
3037
|
code: string;
|
|
3039
3038
|
path: string;
|
|
3039
|
+
message: string;
|
|
3040
3040
|
statusCode: number;
|
|
3041
3041
|
timestamp: string;
|
|
3042
3042
|
details?: unknown;
|
|
3043
3043
|
correlationId?: string | undefined;
|
|
3044
3044
|
}, {
|
|
3045
|
-
message: string;
|
|
3046
3045
|
code: string;
|
|
3047
3046
|
path: string;
|
|
3047
|
+
message: string;
|
|
3048
3048
|
statusCode: number;
|
|
3049
3049
|
timestamp: string;
|
|
3050
3050
|
details?: unknown;
|
|
@@ -3059,17 +3059,17 @@ export declare const crewsContract: {
|
|
|
3059
3059
|
path: z.ZodString;
|
|
3060
3060
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3061
3061
|
}, "strip", z.ZodTypeAny, {
|
|
3062
|
-
message: string;
|
|
3063
3062
|
code: string;
|
|
3064
3063
|
path: string;
|
|
3064
|
+
message: string;
|
|
3065
3065
|
statusCode: number;
|
|
3066
3066
|
timestamp: string;
|
|
3067
3067
|
details?: unknown;
|
|
3068
3068
|
correlationId?: string | undefined;
|
|
3069
3069
|
}, {
|
|
3070
|
-
message: string;
|
|
3071
3070
|
code: string;
|
|
3072
3071
|
path: string;
|
|
3072
|
+
message: string;
|
|
3073
3073
|
statusCode: number;
|
|
3074
3074
|
timestamp: string;
|
|
3075
3075
|
details?: unknown;
|
|
@@ -3084,17 +3084,17 @@ export declare const crewsContract: {
|
|
|
3084
3084
|
path: z.ZodString;
|
|
3085
3085
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3086
3086
|
}, "strip", z.ZodTypeAny, {
|
|
3087
|
-
message: string;
|
|
3088
3087
|
code: string;
|
|
3089
3088
|
path: string;
|
|
3089
|
+
message: string;
|
|
3090
3090
|
statusCode: number;
|
|
3091
3091
|
timestamp: string;
|
|
3092
3092
|
details?: unknown;
|
|
3093
3093
|
correlationId?: string | undefined;
|
|
3094
3094
|
}, {
|
|
3095
|
-
message: string;
|
|
3096
3095
|
code: string;
|
|
3097
3096
|
path: string;
|
|
3097
|
+
message: string;
|
|
3098
3098
|
statusCode: number;
|
|
3099
3099
|
timestamp: string;
|
|
3100
3100
|
details?: unknown;
|
|
@@ -3133,23 +3133,23 @@ export declare const crewsContract: {
|
|
|
3133
3133
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
3134
3134
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
3135
3135
|
}, "strip", z.ZodTypeAny, {
|
|
3136
|
-
id: string;
|
|
3137
3136
|
name: string;
|
|
3138
|
-
company: string | null;
|
|
3139
3137
|
email: string | null;
|
|
3138
|
+
id: string;
|
|
3140
3139
|
phoneNumber: string;
|
|
3141
3140
|
notes: string | null;
|
|
3142
|
-
|
|
3141
|
+
company: string | null;
|
|
3143
3142
|
createdAt?: string | undefined;
|
|
3143
|
+
updatedAt?: string | undefined;
|
|
3144
3144
|
}, {
|
|
3145
|
-
id: string;
|
|
3146
3145
|
name: string;
|
|
3147
|
-
company: string | null;
|
|
3148
3146
|
email: string | null;
|
|
3147
|
+
id: string;
|
|
3149
3148
|
phoneNumber: string;
|
|
3150
3149
|
notes: string | null;
|
|
3151
|
-
|
|
3150
|
+
company: string | null;
|
|
3152
3151
|
createdAt?: string | undefined;
|
|
3152
|
+
updatedAt?: string | undefined;
|
|
3153
3153
|
}>>;
|
|
3154
3154
|
memberCount: z.ZodNumber;
|
|
3155
3155
|
maxMembers: z.ZodNumber;
|
|
@@ -3219,8 +3219,8 @@ export declare const crewsContract: {
|
|
|
3219
3219
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
3220
3220
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
3221
3221
|
}, "strip", z.ZodTypeAny, {
|
|
3222
|
-
id: string;
|
|
3223
3222
|
name: string;
|
|
3223
|
+
id: string;
|
|
3224
3224
|
leadType: "WORKER" | "SUPPLIER";
|
|
3225
3225
|
leadWorker: {
|
|
3226
3226
|
id: string;
|
|
@@ -3230,19 +3230,19 @@ export declare const crewsContract: {
|
|
|
3230
3230
|
primaryPhoneNumber: string | null;
|
|
3231
3231
|
} | null;
|
|
3232
3232
|
leadSupplier: {
|
|
3233
|
-
id: string;
|
|
3234
3233
|
name: string;
|
|
3235
|
-
company: string | null;
|
|
3236
3234
|
email: string | null;
|
|
3235
|
+
id: string;
|
|
3237
3236
|
phoneNumber: string;
|
|
3238
3237
|
notes: string | null;
|
|
3239
|
-
|
|
3238
|
+
company: string | null;
|
|
3240
3239
|
createdAt?: string | undefined;
|
|
3240
|
+
updatedAt?: string | undefined;
|
|
3241
3241
|
} | null;
|
|
3242
3242
|
memberCount: number;
|
|
3243
3243
|
maxMembers: number;
|
|
3244
|
-
updatedAt?: string | undefined;
|
|
3245
3244
|
createdAt?: string | undefined;
|
|
3245
|
+
updatedAt?: string | undefined;
|
|
3246
3246
|
createdBy?: {
|
|
3247
3247
|
id: string;
|
|
3248
3248
|
lastName: string;
|
|
@@ -3263,8 +3263,8 @@ export declare const crewsContract: {
|
|
|
3263
3263
|
primaryPhoneNumber: string | null;
|
|
3264
3264
|
}[] | undefined;
|
|
3265
3265
|
}, {
|
|
3266
|
-
id: string;
|
|
3267
3266
|
name: string;
|
|
3267
|
+
id: string;
|
|
3268
3268
|
leadType: "WORKER" | "SUPPLIER";
|
|
3269
3269
|
leadWorker: {
|
|
3270
3270
|
id: string;
|
|
@@ -3274,19 +3274,19 @@ export declare const crewsContract: {
|
|
|
3274
3274
|
primaryPhoneNumber: string | null;
|
|
3275
3275
|
} | null;
|
|
3276
3276
|
leadSupplier: {
|
|
3277
|
-
id: string;
|
|
3278
3277
|
name: string;
|
|
3279
|
-
company: string | null;
|
|
3280
3278
|
email: string | null;
|
|
3279
|
+
id: string;
|
|
3281
3280
|
phoneNumber: string;
|
|
3282
3281
|
notes: string | null;
|
|
3283
|
-
|
|
3282
|
+
company: string | null;
|
|
3284
3283
|
createdAt?: string | undefined;
|
|
3284
|
+
updatedAt?: string | undefined;
|
|
3285
3285
|
} | null;
|
|
3286
3286
|
memberCount: number;
|
|
3287
3287
|
maxMembers: number;
|
|
3288
|
-
updatedAt?: string | undefined;
|
|
3289
3288
|
createdAt?: string | undefined;
|
|
3289
|
+
updatedAt?: string | undefined;
|
|
3290
3290
|
createdBy?: {
|
|
3291
3291
|
id: string;
|
|
3292
3292
|
lastName: string;
|
|
@@ -3316,17 +3316,17 @@ export declare const crewsContract: {
|
|
|
3316
3316
|
path: z.ZodString;
|
|
3317
3317
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3318
3318
|
}, "strip", z.ZodTypeAny, {
|
|
3319
|
-
message: string;
|
|
3320
3319
|
code: string;
|
|
3321
3320
|
path: string;
|
|
3321
|
+
message: string;
|
|
3322
3322
|
statusCode: number;
|
|
3323
3323
|
timestamp: string;
|
|
3324
3324
|
details?: unknown;
|
|
3325
3325
|
correlationId?: string | undefined;
|
|
3326
3326
|
}, {
|
|
3327
|
-
message: string;
|
|
3328
3327
|
code: string;
|
|
3329
3328
|
path: string;
|
|
3329
|
+
message: string;
|
|
3330
3330
|
statusCode: number;
|
|
3331
3331
|
timestamp: string;
|
|
3332
3332
|
details?: unknown;
|
|
@@ -3341,17 +3341,17 @@ export declare const crewsContract: {
|
|
|
3341
3341
|
path: z.ZodString;
|
|
3342
3342
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3343
3343
|
}, "strip", z.ZodTypeAny, {
|
|
3344
|
-
message: string;
|
|
3345
3344
|
code: string;
|
|
3346
3345
|
path: string;
|
|
3346
|
+
message: string;
|
|
3347
3347
|
statusCode: number;
|
|
3348
3348
|
timestamp: string;
|
|
3349
3349
|
details?: unknown;
|
|
3350
3350
|
correlationId?: string | undefined;
|
|
3351
3351
|
}, {
|
|
3352
|
-
message: string;
|
|
3353
3352
|
code: string;
|
|
3354
3353
|
path: string;
|
|
3354
|
+
message: string;
|
|
3355
3355
|
statusCode: number;
|
|
3356
3356
|
timestamp: string;
|
|
3357
3357
|
details?: unknown;
|