@dakkitor/api-contracts 1.1.8 → 1.1.10

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.
@@ -0,0 +1,2092 @@
1
+ import { z } from 'zod';
2
+ export declare const BookingStatusSchema: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
3
+ export declare const BookingSortableFieldsSchema: z.ZodEnum<["status", "startDate", "createdAt", "updatedAt"]>;
4
+ export declare const BookingPaySchema: z.ZodObject<{
5
+ rate: z.ZodNumber;
6
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ rate: number;
9
+ unit: "DAILY" | "HOURLY";
10
+ }, {
11
+ rate: number;
12
+ unit: "DAILY" | "HOURLY";
13
+ }>;
14
+ export declare const ResourceIdSchema: z.ZodObject<{
15
+ id: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ id: string;
18
+ }, {
19
+ id: string;
20
+ }>;
21
+ export declare const BookingItemSchema: z.ZodObject<{
22
+ worker: z.ZodObject<{
23
+ id: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ id: string;
26
+ }, {
27
+ id: string;
28
+ }>;
29
+ startDate: z.ZodString;
30
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ status: z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>;
32
+ pay: z.ZodOptional<z.ZodObject<{
33
+ rate: z.ZodNumber;
34
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ rate: number;
37
+ unit: "DAILY" | "HOURLY";
38
+ }, {
39
+ rate: number;
40
+ unit: "DAILY" | "HOURLY";
41
+ }>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ startDate: string;
44
+ worker: {
45
+ id: string;
46
+ };
47
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
48
+ pay?: {
49
+ rate: number;
50
+ unit: "DAILY" | "HOURLY";
51
+ } | undefined;
52
+ endDate?: string | null | undefined;
53
+ }, {
54
+ startDate: string;
55
+ worker: {
56
+ id: string;
57
+ };
58
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
59
+ pay?: {
60
+ rate: number;
61
+ unit: "DAILY" | "HOURLY";
62
+ } | undefined;
63
+ endDate?: string | null | undefined;
64
+ }>;
65
+ export declare const FilterJobInBookingSchema: z.ZodObject<{
66
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
67
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
69
+ tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ userId?: string | null | undefined;
72
+ clientId?: string | null | undefined;
73
+ companyId?: string | null | undefined;
74
+ tradeId?: string | null | undefined;
75
+ }, {
76
+ userId?: string | null | undefined;
77
+ clientId?: string | null | undefined;
78
+ companyId?: string | null | undefined;
79
+ tradeId?: string | null | undefined;
80
+ }>;
81
+ export declare const BookingUserSchema: z.ZodObject<{
82
+ id: z.ZodString;
83
+ firstName: z.ZodString;
84
+ lastName: z.ZodString;
85
+ email: z.ZodString;
86
+ }, "strip", z.ZodTypeAny, {
87
+ id: string;
88
+ firstName: string;
89
+ lastName: string;
90
+ email: string;
91
+ }, {
92
+ id: string;
93
+ firstName: string;
94
+ lastName: string;
95
+ email: string;
96
+ }>;
97
+ export declare const BookingWorkerSchema: z.ZodObject<{
98
+ id: z.ZodString;
99
+ firstName: z.ZodString;
100
+ lastName: z.ZodString;
101
+ }, "strip", z.ZodTypeAny, {
102
+ id: string;
103
+ firstName: string;
104
+ lastName: string;
105
+ }, {
106
+ id: string;
107
+ firstName: string;
108
+ lastName: string;
109
+ }>;
110
+ export declare const BookingJobSchema: z.ZodObject<{
111
+ id: z.ZodString;
112
+ title: z.ZodString;
113
+ }, "strip", z.ZodTypeAny, {
114
+ id: string;
115
+ title: string;
116
+ }, {
117
+ id: string;
118
+ title: string;
119
+ }>;
120
+ export declare const BookingSchema: z.ZodObject<{
121
+ id: z.ZodString;
122
+ status: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
123
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
124
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
125
+ worker: z.ZodObject<{
126
+ id: z.ZodString;
127
+ firstName: z.ZodString;
128
+ lastName: z.ZodString;
129
+ }, "strip", z.ZodTypeAny, {
130
+ id: string;
131
+ firstName: string;
132
+ lastName: string;
133
+ }, {
134
+ id: string;
135
+ firstName: string;
136
+ lastName: string;
137
+ }>;
138
+ user: z.ZodObject<{
139
+ id: z.ZodString;
140
+ firstName: z.ZodString;
141
+ lastName: z.ZodString;
142
+ email: z.ZodString;
143
+ }, "strip", z.ZodTypeAny, {
144
+ id: string;
145
+ firstName: string;
146
+ lastName: string;
147
+ email: string;
148
+ }, {
149
+ id: string;
150
+ firstName: string;
151
+ lastName: string;
152
+ email: string;
153
+ }>;
154
+ pay: z.ZodObject<{
155
+ rate: z.ZodNumber;
156
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ rate: number;
159
+ unit: "DAILY" | "HOURLY";
160
+ }, {
161
+ rate: number;
162
+ unit: "DAILY" | "HOURLY";
163
+ }>;
164
+ job: z.ZodObject<{
165
+ id: z.ZodString;
166
+ title: z.ZodString;
167
+ }, "strip", z.ZodTypeAny, {
168
+ id: string;
169
+ title: string;
170
+ }, {
171
+ id: string;
172
+ title: string;
173
+ }>;
174
+ userId: z.ZodString;
175
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
176
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
179
+ createdAt: string;
180
+ updatedAt: string;
181
+ id: string;
182
+ pay: {
183
+ rate: number;
184
+ unit: "DAILY" | "HOURLY";
185
+ };
186
+ startDate: string;
187
+ worker: {
188
+ id: string;
189
+ firstName: string;
190
+ lastName: string;
191
+ };
192
+ userId: string;
193
+ user: {
194
+ id: string;
195
+ firstName: string;
196
+ lastName: string;
197
+ email: string;
198
+ };
199
+ job: {
200
+ id: string;
201
+ title: string;
202
+ };
203
+ endDate?: string | null | undefined;
204
+ }, {
205
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
206
+ createdAt: string | Date;
207
+ updatedAt: string | Date;
208
+ id: string;
209
+ pay: {
210
+ rate: number;
211
+ unit: "DAILY" | "HOURLY";
212
+ };
213
+ startDate: string | Date;
214
+ worker: {
215
+ id: string;
216
+ firstName: string;
217
+ lastName: string;
218
+ };
219
+ userId: string;
220
+ user: {
221
+ id: string;
222
+ firstName: string;
223
+ lastName: string;
224
+ email: string;
225
+ };
226
+ job: {
227
+ id: string;
228
+ title: string;
229
+ };
230
+ endDate?: string | Date | null | undefined;
231
+ }>;
232
+ export declare const CreateBookingSchema: z.ZodObject<{
233
+ job: z.ZodObject<{
234
+ id: z.ZodString;
235
+ }, "strip", z.ZodTypeAny, {
236
+ id: string;
237
+ }, {
238
+ id: string;
239
+ }>;
240
+ bookings: z.ZodArray<z.ZodObject<{
241
+ worker: z.ZodObject<{
242
+ id: z.ZodString;
243
+ }, "strip", z.ZodTypeAny, {
244
+ id: string;
245
+ }, {
246
+ id: string;
247
+ }>;
248
+ startDate: z.ZodString;
249
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ status: z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>;
251
+ pay: z.ZodOptional<z.ZodObject<{
252
+ rate: z.ZodNumber;
253
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ rate: number;
256
+ unit: "DAILY" | "HOURLY";
257
+ }, {
258
+ rate: number;
259
+ unit: "DAILY" | "HOURLY";
260
+ }>>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ startDate: string;
263
+ worker: {
264
+ id: string;
265
+ };
266
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
267
+ pay?: {
268
+ rate: number;
269
+ unit: "DAILY" | "HOURLY";
270
+ } | undefined;
271
+ endDate?: string | null | undefined;
272
+ }, {
273
+ startDate: string;
274
+ worker: {
275
+ id: string;
276
+ };
277
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
278
+ pay?: {
279
+ rate: number;
280
+ unit: "DAILY" | "HOURLY";
281
+ } | undefined;
282
+ endDate?: string | null | undefined;
283
+ }>, "many">;
284
+ }, "strip", z.ZodTypeAny, {
285
+ job: {
286
+ id: string;
287
+ };
288
+ bookings: {
289
+ startDate: string;
290
+ worker: {
291
+ id: string;
292
+ };
293
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
294
+ pay?: {
295
+ rate: number;
296
+ unit: "DAILY" | "HOURLY";
297
+ } | undefined;
298
+ endDate?: string | null | undefined;
299
+ }[];
300
+ }, {
301
+ job: {
302
+ id: string;
303
+ };
304
+ bookings: {
305
+ startDate: string;
306
+ worker: {
307
+ id: string;
308
+ };
309
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
310
+ pay?: {
311
+ rate: number;
312
+ unit: "DAILY" | "HOURLY";
313
+ } | undefined;
314
+ endDate?: string | null | undefined;
315
+ }[];
316
+ }>;
317
+ export declare const UpdateBookingSchema: z.ZodObject<{
318
+ startDate: z.ZodOptional<z.ZodString>;
319
+ endDate: z.ZodOptional<z.ZodString>;
320
+ status: z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
323
+ startDate?: string | undefined;
324
+ endDate?: string | undefined;
325
+ }, {
326
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
327
+ startDate?: string | undefined;
328
+ endDate?: string | undefined;
329
+ }>;
330
+ export declare const FilterBookingSchema: z.ZodObject<{
331
+ limit: z.ZodDefault<z.ZodNumber>;
332
+ page: z.ZodDefault<z.ZodNumber>;
333
+ } & {
334
+ workerName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
335
+ job: z.ZodNullable<z.ZodOptional<z.ZodObject<{
336
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
337
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
338
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
339
+ tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ userId?: string | null | undefined;
342
+ clientId?: string | null | undefined;
343
+ companyId?: string | null | undefined;
344
+ tradeId?: string | null | undefined;
345
+ }, {
346
+ userId?: string | null | undefined;
347
+ clientId?: string | null | undefined;
348
+ companyId?: string | null | undefined;
349
+ tradeId?: string | null | undefined;
350
+ }>>>;
351
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
352
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
353
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
+ }, "strip", z.ZodTypeAny, {
355
+ from?: string | null | undefined;
356
+ to?: string | null | undefined;
357
+ }, {
358
+ from?: string | null | undefined;
359
+ to?: string | null | undefined;
360
+ }>>>;
361
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
362
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
363
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ from?: string | null | undefined;
366
+ to?: string | null | undefined;
367
+ }, {
368
+ from?: string | null | undefined;
369
+ to?: string | null | undefined;
370
+ }>>>;
371
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
372
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
373
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ from?: string | null | undefined;
376
+ to?: string | null | undefined;
377
+ }, {
378
+ from?: string | null | undefined;
379
+ to?: string | null | undefined;
380
+ }>>>;
381
+ sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["status", "startDate", "createdAt", "updatedAt"]>>>;
382
+ sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
383
+ status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>>;
384
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
385
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
386
+ agentName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ limit: number;
389
+ page: number;
390
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | null | undefined;
391
+ createdAt?: {
392
+ from?: string | null | undefined;
393
+ to?: string | null | undefined;
394
+ } | null | undefined;
395
+ sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
396
+ sortOrder?: "ASC" | "DESC" | null | undefined;
397
+ startDate?: {
398
+ from?: string | null | undefined;
399
+ to?: string | null | undefined;
400
+ } | null | undefined;
401
+ endDate?: {
402
+ from?: string | null | undefined;
403
+ to?: string | null | undefined;
404
+ } | null | undefined;
405
+ clientId?: string | null | undefined;
406
+ companyId?: string | null | undefined;
407
+ job?: {
408
+ userId?: string | null | undefined;
409
+ clientId?: string | null | undefined;
410
+ companyId?: string | null | undefined;
411
+ tradeId?: string | null | undefined;
412
+ } | null | undefined;
413
+ workerName?: string | null | undefined;
414
+ agentName?: string | null | undefined;
415
+ }, {
416
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | null | undefined;
417
+ limit?: number | undefined;
418
+ page?: number | undefined;
419
+ createdAt?: {
420
+ from?: string | null | undefined;
421
+ to?: string | null | undefined;
422
+ } | null | undefined;
423
+ sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
424
+ sortOrder?: "ASC" | "DESC" | null | undefined;
425
+ startDate?: {
426
+ from?: string | null | undefined;
427
+ to?: string | null | undefined;
428
+ } | null | undefined;
429
+ endDate?: {
430
+ from?: string | null | undefined;
431
+ to?: string | null | undefined;
432
+ } | null | undefined;
433
+ clientId?: string | null | undefined;
434
+ companyId?: string | null | undefined;
435
+ job?: {
436
+ userId?: string | null | undefined;
437
+ clientId?: string | null | undefined;
438
+ companyId?: string | null | undefined;
439
+ tradeId?: string | null | undefined;
440
+ } | null | undefined;
441
+ workerName?: string | null | undefined;
442
+ agentName?: string | null | undefined;
443
+ }>;
444
+ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
445
+ items: z.ZodArray<z.ZodObject<{
446
+ id: z.ZodString;
447
+ status: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
448
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
449
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
450
+ worker: z.ZodObject<{
451
+ id: z.ZodString;
452
+ firstName: z.ZodString;
453
+ lastName: z.ZodString;
454
+ }, "strip", z.ZodTypeAny, {
455
+ id: string;
456
+ firstName: string;
457
+ lastName: string;
458
+ }, {
459
+ id: string;
460
+ firstName: string;
461
+ lastName: string;
462
+ }>;
463
+ user: z.ZodObject<{
464
+ id: z.ZodString;
465
+ firstName: z.ZodString;
466
+ lastName: z.ZodString;
467
+ email: z.ZodString;
468
+ }, "strip", z.ZodTypeAny, {
469
+ id: string;
470
+ firstName: string;
471
+ lastName: string;
472
+ email: string;
473
+ }, {
474
+ id: string;
475
+ firstName: string;
476
+ lastName: string;
477
+ email: string;
478
+ }>;
479
+ pay: z.ZodObject<{
480
+ rate: z.ZodNumber;
481
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
482
+ }, "strip", z.ZodTypeAny, {
483
+ rate: number;
484
+ unit: "DAILY" | "HOURLY";
485
+ }, {
486
+ rate: number;
487
+ unit: "DAILY" | "HOURLY";
488
+ }>;
489
+ job: z.ZodObject<{
490
+ id: z.ZodString;
491
+ title: z.ZodString;
492
+ }, "strip", z.ZodTypeAny, {
493
+ id: string;
494
+ title: string;
495
+ }, {
496
+ id: string;
497
+ title: string;
498
+ }>;
499
+ userId: z.ZodString;
500
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
501
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
502
+ }, "strip", z.ZodTypeAny, {
503
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
504
+ createdAt: string;
505
+ updatedAt: string;
506
+ id: string;
507
+ pay: {
508
+ rate: number;
509
+ unit: "DAILY" | "HOURLY";
510
+ };
511
+ startDate: string;
512
+ worker: {
513
+ id: string;
514
+ firstName: string;
515
+ lastName: string;
516
+ };
517
+ userId: string;
518
+ user: {
519
+ id: string;
520
+ firstName: string;
521
+ lastName: string;
522
+ email: string;
523
+ };
524
+ job: {
525
+ id: string;
526
+ title: string;
527
+ };
528
+ endDate?: string | null | undefined;
529
+ }, {
530
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
531
+ createdAt: string | Date;
532
+ updatedAt: string | Date;
533
+ id: string;
534
+ pay: {
535
+ rate: number;
536
+ unit: "DAILY" | "HOURLY";
537
+ };
538
+ startDate: string | Date;
539
+ worker: {
540
+ id: string;
541
+ firstName: string;
542
+ lastName: string;
543
+ };
544
+ userId: string;
545
+ user: {
546
+ id: string;
547
+ firstName: string;
548
+ lastName: string;
549
+ email: string;
550
+ };
551
+ job: {
552
+ id: string;
553
+ title: string;
554
+ };
555
+ endDate?: string | Date | null | undefined;
556
+ }>, "many">;
557
+ totalCount: z.ZodNumber;
558
+ limit: z.ZodNumber;
559
+ skip: z.ZodNumber;
560
+ currentPage: z.ZodNumber;
561
+ totalPages: z.ZodNumber;
562
+ }, "strip", z.ZodTypeAny, {
563
+ limit: number;
564
+ items: {
565
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
566
+ createdAt: string;
567
+ updatedAt: string;
568
+ id: string;
569
+ pay: {
570
+ rate: number;
571
+ unit: "DAILY" | "HOURLY";
572
+ };
573
+ startDate: string;
574
+ worker: {
575
+ id: string;
576
+ firstName: string;
577
+ lastName: string;
578
+ };
579
+ userId: string;
580
+ user: {
581
+ id: string;
582
+ firstName: string;
583
+ lastName: string;
584
+ email: string;
585
+ };
586
+ job: {
587
+ id: string;
588
+ title: string;
589
+ };
590
+ endDate?: string | null | undefined;
591
+ }[];
592
+ totalCount: number;
593
+ skip: number;
594
+ currentPage: number;
595
+ totalPages: number;
596
+ }, {
597
+ limit: number;
598
+ items: {
599
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
600
+ createdAt: string | Date;
601
+ updatedAt: string | Date;
602
+ id: string;
603
+ pay: {
604
+ rate: number;
605
+ unit: "DAILY" | "HOURLY";
606
+ };
607
+ startDate: string | Date;
608
+ worker: {
609
+ id: string;
610
+ firstName: string;
611
+ lastName: string;
612
+ };
613
+ userId: string;
614
+ user: {
615
+ id: string;
616
+ firstName: string;
617
+ lastName: string;
618
+ email: string;
619
+ };
620
+ job: {
621
+ id: string;
622
+ title: string;
623
+ };
624
+ endDate?: string | Date | null | undefined;
625
+ }[];
626
+ totalCount: number;
627
+ skip: number;
628
+ currentPage: number;
629
+ totalPages: number;
630
+ }>;
631
+ export type BookingStatus = z.infer<typeof BookingStatusSchema>;
632
+ export type BookingSortableFields = z.infer<typeof BookingSortableFieldsSchema>;
633
+ export type BookingPay = z.infer<typeof BookingPaySchema>;
634
+ export type ResourceId = z.infer<typeof ResourceIdSchema>;
635
+ export type BookingItem = z.infer<typeof BookingItemSchema>;
636
+ export type FilterJobInBooking = z.infer<typeof FilterJobInBookingSchema>;
637
+ export type Booking = z.infer<typeof BookingSchema>;
638
+ export type CreateBooking = z.infer<typeof CreateBookingSchema>;
639
+ export type UpdateBooking = z.infer<typeof UpdateBookingSchema>;
640
+ export type FilterBooking = z.infer<typeof FilterBookingSchema>;
641
+ export type PaginatedBookingResponse = z.infer<typeof PaginatedBookingResponseSchema>;
642
+ export declare const bookingsContractRouter: {
643
+ create: {
644
+ metadata: {
645
+ tags: string[];
646
+ openApi: {
647
+ operationId: string;
648
+ };
649
+ };
650
+ summary: "Create new bookings (bulk operation)";
651
+ method: "POST";
652
+ body: z.ZodObject<{
653
+ job: z.ZodObject<{
654
+ id: z.ZodString;
655
+ }, "strip", z.ZodTypeAny, {
656
+ id: string;
657
+ }, {
658
+ id: string;
659
+ }>;
660
+ bookings: z.ZodArray<z.ZodObject<{
661
+ worker: z.ZodObject<{
662
+ id: z.ZodString;
663
+ }, "strip", z.ZodTypeAny, {
664
+ id: string;
665
+ }, {
666
+ id: string;
667
+ }>;
668
+ startDate: z.ZodString;
669
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
670
+ status: z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>;
671
+ pay: z.ZodOptional<z.ZodObject<{
672
+ rate: z.ZodNumber;
673
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
674
+ }, "strip", z.ZodTypeAny, {
675
+ rate: number;
676
+ unit: "DAILY" | "HOURLY";
677
+ }, {
678
+ rate: number;
679
+ unit: "DAILY" | "HOURLY";
680
+ }>>;
681
+ }, "strip", z.ZodTypeAny, {
682
+ startDate: string;
683
+ worker: {
684
+ id: string;
685
+ };
686
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
687
+ pay?: {
688
+ rate: number;
689
+ unit: "DAILY" | "HOURLY";
690
+ } | undefined;
691
+ endDate?: string | null | undefined;
692
+ }, {
693
+ startDate: string;
694
+ worker: {
695
+ id: string;
696
+ };
697
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
698
+ pay?: {
699
+ rate: number;
700
+ unit: "DAILY" | "HOURLY";
701
+ } | undefined;
702
+ endDate?: string | null | undefined;
703
+ }>, "many">;
704
+ }, "strip", z.ZodTypeAny, {
705
+ job: {
706
+ id: string;
707
+ };
708
+ bookings: {
709
+ startDate: string;
710
+ worker: {
711
+ id: string;
712
+ };
713
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
714
+ pay?: {
715
+ rate: number;
716
+ unit: "DAILY" | "HOURLY";
717
+ } | undefined;
718
+ endDate?: string | null | undefined;
719
+ }[];
720
+ }, {
721
+ job: {
722
+ id: string;
723
+ };
724
+ bookings: {
725
+ startDate: string;
726
+ worker: {
727
+ id: string;
728
+ };
729
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
730
+ pay?: {
731
+ rate: number;
732
+ unit: "DAILY" | "HOURLY";
733
+ } | undefined;
734
+ endDate?: string | null | undefined;
735
+ }[];
736
+ }>;
737
+ path: "/v2/bookings";
738
+ responses: {
739
+ 400: z.ZodObject<{
740
+ statusCode: z.ZodNumber;
741
+ message: z.ZodString;
742
+ code: z.ZodString;
743
+ details: z.ZodOptional<z.ZodUnknown>;
744
+ timestamp: z.ZodString;
745
+ path: z.ZodString;
746
+ correlationId: z.ZodOptional<z.ZodString>;
747
+ }, "strip", z.ZodTypeAny, {
748
+ code: string;
749
+ path: string;
750
+ message: string;
751
+ statusCode: number;
752
+ timestamp: string;
753
+ details?: unknown;
754
+ correlationId?: string | undefined;
755
+ }, {
756
+ code: string;
757
+ path: string;
758
+ message: string;
759
+ statusCode: number;
760
+ timestamp: string;
761
+ details?: unknown;
762
+ correlationId?: string | undefined;
763
+ }>;
764
+ 401: z.ZodObject<{
765
+ statusCode: z.ZodNumber;
766
+ message: z.ZodString;
767
+ code: z.ZodString;
768
+ details: z.ZodOptional<z.ZodUnknown>;
769
+ timestamp: z.ZodString;
770
+ path: z.ZodString;
771
+ correlationId: z.ZodOptional<z.ZodString>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ code: string;
774
+ path: string;
775
+ message: string;
776
+ statusCode: number;
777
+ timestamp: string;
778
+ details?: unknown;
779
+ correlationId?: string | undefined;
780
+ }, {
781
+ code: string;
782
+ path: string;
783
+ message: string;
784
+ statusCode: number;
785
+ timestamp: string;
786
+ details?: unknown;
787
+ correlationId?: string | undefined;
788
+ }>;
789
+ 403: z.ZodObject<{
790
+ statusCode: z.ZodNumber;
791
+ message: z.ZodString;
792
+ code: z.ZodString;
793
+ details: z.ZodOptional<z.ZodUnknown>;
794
+ timestamp: z.ZodString;
795
+ path: z.ZodString;
796
+ correlationId: z.ZodOptional<z.ZodString>;
797
+ }, "strip", z.ZodTypeAny, {
798
+ code: string;
799
+ path: string;
800
+ message: string;
801
+ statusCode: number;
802
+ timestamp: string;
803
+ details?: unknown;
804
+ correlationId?: string | undefined;
805
+ }, {
806
+ code: string;
807
+ path: string;
808
+ message: string;
809
+ statusCode: number;
810
+ timestamp: string;
811
+ details?: unknown;
812
+ correlationId?: string | undefined;
813
+ }>;
814
+ 500: z.ZodObject<{
815
+ statusCode: z.ZodNumber;
816
+ message: z.ZodString;
817
+ code: z.ZodString;
818
+ details: z.ZodOptional<z.ZodUnknown>;
819
+ timestamp: z.ZodString;
820
+ path: z.ZodString;
821
+ correlationId: z.ZodOptional<z.ZodString>;
822
+ }, "strip", z.ZodTypeAny, {
823
+ code: string;
824
+ path: string;
825
+ message: string;
826
+ statusCode: number;
827
+ timestamp: string;
828
+ details?: unknown;
829
+ correlationId?: string | undefined;
830
+ }, {
831
+ code: string;
832
+ path: string;
833
+ message: string;
834
+ statusCode: number;
835
+ timestamp: string;
836
+ details?: unknown;
837
+ correlationId?: string | undefined;
838
+ }>;
839
+ 201: z.ZodArray<z.ZodObject<{
840
+ id: z.ZodString;
841
+ status: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
842
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
843
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
844
+ worker: z.ZodObject<{
845
+ id: z.ZodString;
846
+ firstName: z.ZodString;
847
+ lastName: z.ZodString;
848
+ }, "strip", z.ZodTypeAny, {
849
+ id: string;
850
+ firstName: string;
851
+ lastName: string;
852
+ }, {
853
+ id: string;
854
+ firstName: string;
855
+ lastName: string;
856
+ }>;
857
+ user: z.ZodObject<{
858
+ id: z.ZodString;
859
+ firstName: z.ZodString;
860
+ lastName: z.ZodString;
861
+ email: z.ZodString;
862
+ }, "strip", z.ZodTypeAny, {
863
+ id: string;
864
+ firstName: string;
865
+ lastName: string;
866
+ email: string;
867
+ }, {
868
+ id: string;
869
+ firstName: string;
870
+ lastName: string;
871
+ email: string;
872
+ }>;
873
+ pay: z.ZodObject<{
874
+ rate: z.ZodNumber;
875
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
876
+ }, "strip", z.ZodTypeAny, {
877
+ rate: number;
878
+ unit: "DAILY" | "HOURLY";
879
+ }, {
880
+ rate: number;
881
+ unit: "DAILY" | "HOURLY";
882
+ }>;
883
+ job: z.ZodObject<{
884
+ id: z.ZodString;
885
+ title: z.ZodString;
886
+ }, "strip", z.ZodTypeAny, {
887
+ id: string;
888
+ title: string;
889
+ }, {
890
+ id: string;
891
+ title: string;
892
+ }>;
893
+ userId: z.ZodString;
894
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
895
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
896
+ }, "strip", z.ZodTypeAny, {
897
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
898
+ createdAt: string;
899
+ updatedAt: string;
900
+ id: string;
901
+ pay: {
902
+ rate: number;
903
+ unit: "DAILY" | "HOURLY";
904
+ };
905
+ startDate: string;
906
+ worker: {
907
+ id: string;
908
+ firstName: string;
909
+ lastName: string;
910
+ };
911
+ userId: string;
912
+ user: {
913
+ id: string;
914
+ firstName: string;
915
+ lastName: string;
916
+ email: string;
917
+ };
918
+ job: {
919
+ id: string;
920
+ title: string;
921
+ };
922
+ endDate?: string | null | undefined;
923
+ }, {
924
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
925
+ createdAt: string | Date;
926
+ updatedAt: string | Date;
927
+ id: string;
928
+ pay: {
929
+ rate: number;
930
+ unit: "DAILY" | "HOURLY";
931
+ };
932
+ startDate: string | Date;
933
+ worker: {
934
+ id: string;
935
+ firstName: string;
936
+ lastName: string;
937
+ };
938
+ userId: string;
939
+ user: {
940
+ id: string;
941
+ firstName: string;
942
+ lastName: string;
943
+ email: string;
944
+ };
945
+ job: {
946
+ id: string;
947
+ title: string;
948
+ };
949
+ endDate?: string | Date | null | undefined;
950
+ }>, "many">;
951
+ 409: z.ZodObject<{
952
+ statusCode: z.ZodNumber;
953
+ message: z.ZodString;
954
+ code: z.ZodString;
955
+ details: z.ZodOptional<z.ZodUnknown>;
956
+ timestamp: z.ZodString;
957
+ path: z.ZodString;
958
+ correlationId: z.ZodOptional<z.ZodString>;
959
+ }, "strip", z.ZodTypeAny, {
960
+ code: string;
961
+ path: string;
962
+ message: string;
963
+ statusCode: number;
964
+ timestamp: string;
965
+ details?: unknown;
966
+ correlationId?: string | undefined;
967
+ }, {
968
+ code: string;
969
+ path: string;
970
+ message: string;
971
+ statusCode: number;
972
+ timestamp: string;
973
+ details?: unknown;
974
+ correlationId?: string | undefined;
975
+ }>;
976
+ };
977
+ };
978
+ findAll: {
979
+ metadata: {
980
+ tags: string[];
981
+ openApi: {
982
+ operationId: string;
983
+ };
984
+ };
985
+ query: z.ZodObject<{
986
+ limit: z.ZodDefault<z.ZodNumber>;
987
+ page: z.ZodDefault<z.ZodNumber>;
988
+ } & {
989
+ workerName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
990
+ job: z.ZodNullable<z.ZodOptional<z.ZodObject<{
991
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
992
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
993
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
994
+ tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
995
+ }, "strip", z.ZodTypeAny, {
996
+ userId?: string | null | undefined;
997
+ clientId?: string | null | undefined;
998
+ companyId?: string | null | undefined;
999
+ tradeId?: string | null | undefined;
1000
+ }, {
1001
+ userId?: string | null | undefined;
1002
+ clientId?: string | null | undefined;
1003
+ companyId?: string | null | undefined;
1004
+ tradeId?: string | null | undefined;
1005
+ }>>>;
1006
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1007
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1008
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ from?: string | null | undefined;
1011
+ to?: string | null | undefined;
1012
+ }, {
1013
+ from?: string | null | undefined;
1014
+ to?: string | null | undefined;
1015
+ }>>>;
1016
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1017
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1018
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ from?: string | null | undefined;
1021
+ to?: string | null | undefined;
1022
+ }, {
1023
+ from?: string | null | undefined;
1024
+ to?: string | null | undefined;
1025
+ }>>>;
1026
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1027
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1028
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ from?: string | null | undefined;
1031
+ to?: string | null | undefined;
1032
+ }, {
1033
+ from?: string | null | undefined;
1034
+ to?: string | null | undefined;
1035
+ }>>>;
1036
+ sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["status", "startDate", "createdAt", "updatedAt"]>>>;
1037
+ sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
1038
+ status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>>;
1039
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1040
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1041
+ agentName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1042
+ }, "strip", z.ZodTypeAny, {
1043
+ limit: number;
1044
+ page: number;
1045
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | null | undefined;
1046
+ createdAt?: {
1047
+ from?: string | null | undefined;
1048
+ to?: string | null | undefined;
1049
+ } | null | undefined;
1050
+ sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
1051
+ sortOrder?: "ASC" | "DESC" | null | undefined;
1052
+ startDate?: {
1053
+ from?: string | null | undefined;
1054
+ to?: string | null | undefined;
1055
+ } | null | undefined;
1056
+ endDate?: {
1057
+ from?: string | null | undefined;
1058
+ to?: string | null | undefined;
1059
+ } | null | undefined;
1060
+ clientId?: string | null | undefined;
1061
+ companyId?: string | null | undefined;
1062
+ job?: {
1063
+ userId?: string | null | undefined;
1064
+ clientId?: string | null | undefined;
1065
+ companyId?: string | null | undefined;
1066
+ tradeId?: string | null | undefined;
1067
+ } | null | undefined;
1068
+ workerName?: string | null | undefined;
1069
+ agentName?: string | null | undefined;
1070
+ }, {
1071
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | null | undefined;
1072
+ limit?: number | undefined;
1073
+ page?: number | undefined;
1074
+ createdAt?: {
1075
+ from?: string | null | undefined;
1076
+ to?: string | null | undefined;
1077
+ } | null | undefined;
1078
+ sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
1079
+ sortOrder?: "ASC" | "DESC" | null | undefined;
1080
+ startDate?: {
1081
+ from?: string | null | undefined;
1082
+ to?: string | null | undefined;
1083
+ } | null | undefined;
1084
+ endDate?: {
1085
+ from?: string | null | undefined;
1086
+ to?: string | null | undefined;
1087
+ } | null | undefined;
1088
+ clientId?: string | null | undefined;
1089
+ companyId?: string | null | undefined;
1090
+ job?: {
1091
+ userId?: string | null | undefined;
1092
+ clientId?: string | null | undefined;
1093
+ companyId?: string | null | undefined;
1094
+ tradeId?: string | null | undefined;
1095
+ } | null | undefined;
1096
+ workerName?: string | null | undefined;
1097
+ agentName?: string | null | undefined;
1098
+ }>;
1099
+ summary: "Get all bookings";
1100
+ method: "GET";
1101
+ path: "/v2/bookings";
1102
+ responses: {
1103
+ 400: z.ZodObject<{
1104
+ statusCode: z.ZodNumber;
1105
+ message: z.ZodString;
1106
+ code: z.ZodString;
1107
+ details: z.ZodOptional<z.ZodUnknown>;
1108
+ timestamp: z.ZodString;
1109
+ path: z.ZodString;
1110
+ correlationId: z.ZodOptional<z.ZodString>;
1111
+ }, "strip", z.ZodTypeAny, {
1112
+ code: string;
1113
+ path: string;
1114
+ message: string;
1115
+ statusCode: number;
1116
+ timestamp: string;
1117
+ details?: unknown;
1118
+ correlationId?: string | undefined;
1119
+ }, {
1120
+ code: string;
1121
+ path: string;
1122
+ message: string;
1123
+ statusCode: number;
1124
+ timestamp: string;
1125
+ details?: unknown;
1126
+ correlationId?: string | undefined;
1127
+ }>;
1128
+ 401: z.ZodObject<{
1129
+ statusCode: z.ZodNumber;
1130
+ message: z.ZodString;
1131
+ code: z.ZodString;
1132
+ details: z.ZodOptional<z.ZodUnknown>;
1133
+ timestamp: z.ZodString;
1134
+ path: z.ZodString;
1135
+ correlationId: z.ZodOptional<z.ZodString>;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ code: string;
1138
+ path: string;
1139
+ message: string;
1140
+ statusCode: number;
1141
+ timestamp: string;
1142
+ details?: unknown;
1143
+ correlationId?: string | undefined;
1144
+ }, {
1145
+ code: string;
1146
+ path: string;
1147
+ message: string;
1148
+ statusCode: number;
1149
+ timestamp: string;
1150
+ details?: unknown;
1151
+ correlationId?: string | undefined;
1152
+ }>;
1153
+ 403: z.ZodObject<{
1154
+ statusCode: z.ZodNumber;
1155
+ message: z.ZodString;
1156
+ code: z.ZodString;
1157
+ details: z.ZodOptional<z.ZodUnknown>;
1158
+ timestamp: z.ZodString;
1159
+ path: z.ZodString;
1160
+ correlationId: z.ZodOptional<z.ZodString>;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ code: string;
1163
+ path: string;
1164
+ message: string;
1165
+ statusCode: number;
1166
+ timestamp: string;
1167
+ details?: unknown;
1168
+ correlationId?: string | undefined;
1169
+ }, {
1170
+ code: string;
1171
+ path: string;
1172
+ message: string;
1173
+ statusCode: number;
1174
+ timestamp: string;
1175
+ details?: unknown;
1176
+ correlationId?: string | undefined;
1177
+ }>;
1178
+ 500: z.ZodObject<{
1179
+ statusCode: z.ZodNumber;
1180
+ message: z.ZodString;
1181
+ code: z.ZodString;
1182
+ details: z.ZodOptional<z.ZodUnknown>;
1183
+ timestamp: z.ZodString;
1184
+ path: z.ZodString;
1185
+ correlationId: z.ZodOptional<z.ZodString>;
1186
+ }, "strip", z.ZodTypeAny, {
1187
+ code: string;
1188
+ path: string;
1189
+ message: string;
1190
+ statusCode: number;
1191
+ timestamp: string;
1192
+ details?: unknown;
1193
+ correlationId?: string | undefined;
1194
+ }, {
1195
+ code: string;
1196
+ path: string;
1197
+ message: string;
1198
+ statusCode: number;
1199
+ timestamp: string;
1200
+ details?: unknown;
1201
+ correlationId?: string | undefined;
1202
+ }>;
1203
+ 200: z.ZodObject<{
1204
+ items: z.ZodArray<z.ZodObject<{
1205
+ id: z.ZodString;
1206
+ status: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
1207
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1208
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1209
+ worker: z.ZodObject<{
1210
+ id: z.ZodString;
1211
+ firstName: z.ZodString;
1212
+ lastName: z.ZodString;
1213
+ }, "strip", z.ZodTypeAny, {
1214
+ id: string;
1215
+ firstName: string;
1216
+ lastName: string;
1217
+ }, {
1218
+ id: string;
1219
+ firstName: string;
1220
+ lastName: string;
1221
+ }>;
1222
+ user: z.ZodObject<{
1223
+ id: z.ZodString;
1224
+ firstName: z.ZodString;
1225
+ lastName: z.ZodString;
1226
+ email: z.ZodString;
1227
+ }, "strip", z.ZodTypeAny, {
1228
+ id: string;
1229
+ firstName: string;
1230
+ lastName: string;
1231
+ email: string;
1232
+ }, {
1233
+ id: string;
1234
+ firstName: string;
1235
+ lastName: string;
1236
+ email: string;
1237
+ }>;
1238
+ pay: z.ZodObject<{
1239
+ rate: z.ZodNumber;
1240
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ rate: number;
1243
+ unit: "DAILY" | "HOURLY";
1244
+ }, {
1245
+ rate: number;
1246
+ unit: "DAILY" | "HOURLY";
1247
+ }>;
1248
+ job: z.ZodObject<{
1249
+ id: z.ZodString;
1250
+ title: z.ZodString;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ id: string;
1253
+ title: string;
1254
+ }, {
1255
+ id: string;
1256
+ title: string;
1257
+ }>;
1258
+ userId: z.ZodString;
1259
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1260
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1261
+ }, "strip", z.ZodTypeAny, {
1262
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
1263
+ createdAt: string;
1264
+ updatedAt: string;
1265
+ id: string;
1266
+ pay: {
1267
+ rate: number;
1268
+ unit: "DAILY" | "HOURLY";
1269
+ };
1270
+ startDate: string;
1271
+ worker: {
1272
+ id: string;
1273
+ firstName: string;
1274
+ lastName: string;
1275
+ };
1276
+ userId: string;
1277
+ user: {
1278
+ id: string;
1279
+ firstName: string;
1280
+ lastName: string;
1281
+ email: string;
1282
+ };
1283
+ job: {
1284
+ id: string;
1285
+ title: string;
1286
+ };
1287
+ endDate?: string | null | undefined;
1288
+ }, {
1289
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
1290
+ createdAt: string | Date;
1291
+ updatedAt: string | Date;
1292
+ id: string;
1293
+ pay: {
1294
+ rate: number;
1295
+ unit: "DAILY" | "HOURLY";
1296
+ };
1297
+ startDate: string | Date;
1298
+ worker: {
1299
+ id: string;
1300
+ firstName: string;
1301
+ lastName: string;
1302
+ };
1303
+ userId: string;
1304
+ user: {
1305
+ id: string;
1306
+ firstName: string;
1307
+ lastName: string;
1308
+ email: string;
1309
+ };
1310
+ job: {
1311
+ id: string;
1312
+ title: string;
1313
+ };
1314
+ endDate?: string | Date | null | undefined;
1315
+ }>, "many">;
1316
+ totalCount: z.ZodNumber;
1317
+ limit: z.ZodNumber;
1318
+ skip: z.ZodNumber;
1319
+ currentPage: z.ZodNumber;
1320
+ totalPages: z.ZodNumber;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ limit: number;
1323
+ items: {
1324
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
1325
+ createdAt: string;
1326
+ updatedAt: string;
1327
+ id: string;
1328
+ pay: {
1329
+ rate: number;
1330
+ unit: "DAILY" | "HOURLY";
1331
+ };
1332
+ startDate: string;
1333
+ worker: {
1334
+ id: string;
1335
+ firstName: string;
1336
+ lastName: string;
1337
+ };
1338
+ userId: string;
1339
+ user: {
1340
+ id: string;
1341
+ firstName: string;
1342
+ lastName: string;
1343
+ email: string;
1344
+ };
1345
+ job: {
1346
+ id: string;
1347
+ title: string;
1348
+ };
1349
+ endDate?: string | null | undefined;
1350
+ }[];
1351
+ totalCount: number;
1352
+ skip: number;
1353
+ currentPage: number;
1354
+ totalPages: number;
1355
+ }, {
1356
+ limit: number;
1357
+ items: {
1358
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
1359
+ createdAt: string | Date;
1360
+ updatedAt: string | Date;
1361
+ id: string;
1362
+ pay: {
1363
+ rate: number;
1364
+ unit: "DAILY" | "HOURLY";
1365
+ };
1366
+ startDate: string | Date;
1367
+ worker: {
1368
+ id: string;
1369
+ firstName: string;
1370
+ lastName: string;
1371
+ };
1372
+ userId: string;
1373
+ user: {
1374
+ id: string;
1375
+ firstName: string;
1376
+ lastName: string;
1377
+ email: string;
1378
+ };
1379
+ job: {
1380
+ id: string;
1381
+ title: string;
1382
+ };
1383
+ endDate?: string | Date | null | undefined;
1384
+ }[];
1385
+ totalCount: number;
1386
+ skip: number;
1387
+ currentPage: number;
1388
+ totalPages: number;
1389
+ }>;
1390
+ };
1391
+ };
1392
+ findOne: {
1393
+ metadata: {
1394
+ tags: string[];
1395
+ openApi: {
1396
+ operationId: string;
1397
+ };
1398
+ };
1399
+ pathParams: z.ZodObject<{
1400
+ id: z.ZodString;
1401
+ }, "strip", z.ZodTypeAny, {
1402
+ id: string;
1403
+ }, {
1404
+ id: string;
1405
+ }>;
1406
+ summary: "Get a booking by ID";
1407
+ method: "GET";
1408
+ path: "/v2/bookings/:id";
1409
+ responses: {
1410
+ 400: z.ZodObject<{
1411
+ statusCode: z.ZodNumber;
1412
+ message: z.ZodString;
1413
+ code: z.ZodString;
1414
+ details: z.ZodOptional<z.ZodUnknown>;
1415
+ timestamp: z.ZodString;
1416
+ path: z.ZodString;
1417
+ correlationId: z.ZodOptional<z.ZodString>;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ code: string;
1420
+ path: string;
1421
+ message: string;
1422
+ statusCode: number;
1423
+ timestamp: string;
1424
+ details?: unknown;
1425
+ correlationId?: string | undefined;
1426
+ }, {
1427
+ code: string;
1428
+ path: string;
1429
+ message: string;
1430
+ statusCode: number;
1431
+ timestamp: string;
1432
+ details?: unknown;
1433
+ correlationId?: string | undefined;
1434
+ }>;
1435
+ 401: z.ZodObject<{
1436
+ statusCode: z.ZodNumber;
1437
+ message: z.ZodString;
1438
+ code: z.ZodString;
1439
+ details: z.ZodOptional<z.ZodUnknown>;
1440
+ timestamp: z.ZodString;
1441
+ path: z.ZodString;
1442
+ correlationId: z.ZodOptional<z.ZodString>;
1443
+ }, "strip", z.ZodTypeAny, {
1444
+ code: string;
1445
+ path: string;
1446
+ message: string;
1447
+ statusCode: number;
1448
+ timestamp: string;
1449
+ details?: unknown;
1450
+ correlationId?: string | undefined;
1451
+ }, {
1452
+ code: string;
1453
+ path: string;
1454
+ message: string;
1455
+ statusCode: number;
1456
+ timestamp: string;
1457
+ details?: unknown;
1458
+ correlationId?: string | undefined;
1459
+ }>;
1460
+ 403: z.ZodObject<{
1461
+ statusCode: z.ZodNumber;
1462
+ message: z.ZodString;
1463
+ code: z.ZodString;
1464
+ details: z.ZodOptional<z.ZodUnknown>;
1465
+ timestamp: z.ZodString;
1466
+ path: z.ZodString;
1467
+ correlationId: z.ZodOptional<z.ZodString>;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ code: string;
1470
+ path: string;
1471
+ message: string;
1472
+ statusCode: number;
1473
+ timestamp: string;
1474
+ details?: unknown;
1475
+ correlationId?: string | undefined;
1476
+ }, {
1477
+ code: string;
1478
+ path: string;
1479
+ message: string;
1480
+ statusCode: number;
1481
+ timestamp: string;
1482
+ details?: unknown;
1483
+ correlationId?: string | undefined;
1484
+ }>;
1485
+ 500: z.ZodObject<{
1486
+ statusCode: z.ZodNumber;
1487
+ message: z.ZodString;
1488
+ code: z.ZodString;
1489
+ details: z.ZodOptional<z.ZodUnknown>;
1490
+ timestamp: z.ZodString;
1491
+ path: z.ZodString;
1492
+ correlationId: z.ZodOptional<z.ZodString>;
1493
+ }, "strip", z.ZodTypeAny, {
1494
+ code: string;
1495
+ path: string;
1496
+ message: string;
1497
+ statusCode: number;
1498
+ timestamp: string;
1499
+ details?: unknown;
1500
+ correlationId?: string | undefined;
1501
+ }, {
1502
+ code: string;
1503
+ path: string;
1504
+ message: string;
1505
+ statusCode: number;
1506
+ timestamp: string;
1507
+ details?: unknown;
1508
+ correlationId?: string | undefined;
1509
+ }>;
1510
+ 200: z.ZodObject<{
1511
+ id: z.ZodString;
1512
+ status: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
1513
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1514
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1515
+ worker: z.ZodObject<{
1516
+ id: z.ZodString;
1517
+ firstName: z.ZodString;
1518
+ lastName: z.ZodString;
1519
+ }, "strip", z.ZodTypeAny, {
1520
+ id: string;
1521
+ firstName: string;
1522
+ lastName: string;
1523
+ }, {
1524
+ id: string;
1525
+ firstName: string;
1526
+ lastName: string;
1527
+ }>;
1528
+ user: z.ZodObject<{
1529
+ id: z.ZodString;
1530
+ firstName: z.ZodString;
1531
+ lastName: z.ZodString;
1532
+ email: z.ZodString;
1533
+ }, "strip", z.ZodTypeAny, {
1534
+ id: string;
1535
+ firstName: string;
1536
+ lastName: string;
1537
+ email: string;
1538
+ }, {
1539
+ id: string;
1540
+ firstName: string;
1541
+ lastName: string;
1542
+ email: string;
1543
+ }>;
1544
+ pay: z.ZodObject<{
1545
+ rate: z.ZodNumber;
1546
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
1547
+ }, "strip", z.ZodTypeAny, {
1548
+ rate: number;
1549
+ unit: "DAILY" | "HOURLY";
1550
+ }, {
1551
+ rate: number;
1552
+ unit: "DAILY" | "HOURLY";
1553
+ }>;
1554
+ job: z.ZodObject<{
1555
+ id: z.ZodString;
1556
+ title: z.ZodString;
1557
+ }, "strip", z.ZodTypeAny, {
1558
+ id: string;
1559
+ title: string;
1560
+ }, {
1561
+ id: string;
1562
+ title: string;
1563
+ }>;
1564
+ userId: z.ZodString;
1565
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1566
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1567
+ }, "strip", z.ZodTypeAny, {
1568
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
1569
+ createdAt: string;
1570
+ updatedAt: string;
1571
+ id: string;
1572
+ pay: {
1573
+ rate: number;
1574
+ unit: "DAILY" | "HOURLY";
1575
+ };
1576
+ startDate: string;
1577
+ worker: {
1578
+ id: string;
1579
+ firstName: string;
1580
+ lastName: string;
1581
+ };
1582
+ userId: string;
1583
+ user: {
1584
+ id: string;
1585
+ firstName: string;
1586
+ lastName: string;
1587
+ email: string;
1588
+ };
1589
+ job: {
1590
+ id: string;
1591
+ title: string;
1592
+ };
1593
+ endDate?: string | null | undefined;
1594
+ }, {
1595
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
1596
+ createdAt: string | Date;
1597
+ updatedAt: string | Date;
1598
+ id: string;
1599
+ pay: {
1600
+ rate: number;
1601
+ unit: "DAILY" | "HOURLY";
1602
+ };
1603
+ startDate: string | Date;
1604
+ worker: {
1605
+ id: string;
1606
+ firstName: string;
1607
+ lastName: string;
1608
+ };
1609
+ userId: string;
1610
+ user: {
1611
+ id: string;
1612
+ firstName: string;
1613
+ lastName: string;
1614
+ email: string;
1615
+ };
1616
+ job: {
1617
+ id: string;
1618
+ title: string;
1619
+ };
1620
+ endDate?: string | Date | null | undefined;
1621
+ }>;
1622
+ 404: z.ZodObject<{
1623
+ statusCode: z.ZodNumber;
1624
+ message: z.ZodString;
1625
+ code: z.ZodString;
1626
+ details: z.ZodOptional<z.ZodUnknown>;
1627
+ timestamp: z.ZodString;
1628
+ path: z.ZodString;
1629
+ correlationId: z.ZodOptional<z.ZodString>;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ code: string;
1632
+ path: string;
1633
+ message: string;
1634
+ statusCode: number;
1635
+ timestamp: string;
1636
+ details?: unknown;
1637
+ correlationId?: string | undefined;
1638
+ }, {
1639
+ code: string;
1640
+ path: string;
1641
+ message: string;
1642
+ statusCode: number;
1643
+ timestamp: string;
1644
+ details?: unknown;
1645
+ correlationId?: string | undefined;
1646
+ }>;
1647
+ };
1648
+ };
1649
+ update: {
1650
+ metadata: {
1651
+ tags: string[];
1652
+ openApi: {
1653
+ operationId: string;
1654
+ };
1655
+ };
1656
+ pathParams: z.ZodObject<{
1657
+ id: z.ZodString;
1658
+ }, "strip", z.ZodTypeAny, {
1659
+ id: string;
1660
+ }, {
1661
+ id: string;
1662
+ }>;
1663
+ summary: "Update a booking";
1664
+ method: "PATCH";
1665
+ body: z.ZodObject<{
1666
+ startDate: z.ZodOptional<z.ZodString>;
1667
+ endDate: z.ZodOptional<z.ZodString>;
1668
+ status: z.ZodOptional<z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>>;
1669
+ }, "strip", z.ZodTypeAny, {
1670
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
1671
+ startDate?: string | undefined;
1672
+ endDate?: string | undefined;
1673
+ }, {
1674
+ status?: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED" | undefined;
1675
+ startDate?: string | undefined;
1676
+ endDate?: string | undefined;
1677
+ }>;
1678
+ path: "/v2/bookings/:id";
1679
+ responses: {
1680
+ 400: z.ZodObject<{
1681
+ statusCode: z.ZodNumber;
1682
+ message: z.ZodString;
1683
+ code: z.ZodString;
1684
+ details: z.ZodOptional<z.ZodUnknown>;
1685
+ timestamp: z.ZodString;
1686
+ path: z.ZodString;
1687
+ correlationId: z.ZodOptional<z.ZodString>;
1688
+ }, "strip", z.ZodTypeAny, {
1689
+ code: string;
1690
+ path: string;
1691
+ message: string;
1692
+ statusCode: number;
1693
+ timestamp: string;
1694
+ details?: unknown;
1695
+ correlationId?: string | undefined;
1696
+ }, {
1697
+ code: string;
1698
+ path: string;
1699
+ message: string;
1700
+ statusCode: number;
1701
+ timestamp: string;
1702
+ details?: unknown;
1703
+ correlationId?: string | undefined;
1704
+ }>;
1705
+ 401: z.ZodObject<{
1706
+ statusCode: z.ZodNumber;
1707
+ message: z.ZodString;
1708
+ code: z.ZodString;
1709
+ details: z.ZodOptional<z.ZodUnknown>;
1710
+ timestamp: z.ZodString;
1711
+ path: z.ZodString;
1712
+ correlationId: z.ZodOptional<z.ZodString>;
1713
+ }, "strip", z.ZodTypeAny, {
1714
+ code: string;
1715
+ path: string;
1716
+ message: string;
1717
+ statusCode: number;
1718
+ timestamp: string;
1719
+ details?: unknown;
1720
+ correlationId?: string | undefined;
1721
+ }, {
1722
+ code: string;
1723
+ path: string;
1724
+ message: string;
1725
+ statusCode: number;
1726
+ timestamp: string;
1727
+ details?: unknown;
1728
+ correlationId?: string | undefined;
1729
+ }>;
1730
+ 403: z.ZodObject<{
1731
+ statusCode: z.ZodNumber;
1732
+ message: z.ZodString;
1733
+ code: z.ZodString;
1734
+ details: z.ZodOptional<z.ZodUnknown>;
1735
+ timestamp: z.ZodString;
1736
+ path: z.ZodString;
1737
+ correlationId: z.ZodOptional<z.ZodString>;
1738
+ }, "strip", z.ZodTypeAny, {
1739
+ code: string;
1740
+ path: string;
1741
+ message: string;
1742
+ statusCode: number;
1743
+ timestamp: string;
1744
+ details?: unknown;
1745
+ correlationId?: string | undefined;
1746
+ }, {
1747
+ code: string;
1748
+ path: string;
1749
+ message: string;
1750
+ statusCode: number;
1751
+ timestamp: string;
1752
+ details?: unknown;
1753
+ correlationId?: string | undefined;
1754
+ }>;
1755
+ 500: z.ZodObject<{
1756
+ statusCode: z.ZodNumber;
1757
+ message: z.ZodString;
1758
+ code: z.ZodString;
1759
+ details: z.ZodOptional<z.ZodUnknown>;
1760
+ timestamp: z.ZodString;
1761
+ path: z.ZodString;
1762
+ correlationId: z.ZodOptional<z.ZodString>;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ code: string;
1765
+ path: string;
1766
+ message: string;
1767
+ statusCode: number;
1768
+ timestamp: string;
1769
+ details?: unknown;
1770
+ correlationId?: string | undefined;
1771
+ }, {
1772
+ code: string;
1773
+ path: string;
1774
+ message: string;
1775
+ statusCode: number;
1776
+ timestamp: string;
1777
+ details?: unknown;
1778
+ correlationId?: string | undefined;
1779
+ }>;
1780
+ 200: z.ZodObject<{
1781
+ id: z.ZodString;
1782
+ status: z.ZodEnum<["JOB_CANCELLED", "REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION", "CONFIRMED_OVERBOOK", "CONFIRMED", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "COMPLETED"]>;
1783
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1784
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1785
+ worker: z.ZodObject<{
1786
+ id: z.ZodString;
1787
+ firstName: z.ZodString;
1788
+ lastName: z.ZodString;
1789
+ }, "strip", z.ZodTypeAny, {
1790
+ id: string;
1791
+ firstName: string;
1792
+ lastName: string;
1793
+ }, {
1794
+ id: string;
1795
+ firstName: string;
1796
+ lastName: string;
1797
+ }>;
1798
+ user: z.ZodObject<{
1799
+ id: z.ZodString;
1800
+ firstName: z.ZodString;
1801
+ lastName: z.ZodString;
1802
+ email: z.ZodString;
1803
+ }, "strip", z.ZodTypeAny, {
1804
+ id: string;
1805
+ firstName: string;
1806
+ lastName: string;
1807
+ email: string;
1808
+ }, {
1809
+ id: string;
1810
+ firstName: string;
1811
+ lastName: string;
1812
+ email: string;
1813
+ }>;
1814
+ pay: z.ZodObject<{
1815
+ rate: z.ZodNumber;
1816
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
1817
+ }, "strip", z.ZodTypeAny, {
1818
+ rate: number;
1819
+ unit: "DAILY" | "HOURLY";
1820
+ }, {
1821
+ rate: number;
1822
+ unit: "DAILY" | "HOURLY";
1823
+ }>;
1824
+ job: z.ZodObject<{
1825
+ id: z.ZodString;
1826
+ title: z.ZodString;
1827
+ }, "strip", z.ZodTypeAny, {
1828
+ id: string;
1829
+ title: string;
1830
+ }, {
1831
+ id: string;
1832
+ title: string;
1833
+ }>;
1834
+ userId: z.ZodString;
1835
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1836
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1837
+ }, "strip", z.ZodTypeAny, {
1838
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
1839
+ createdAt: string;
1840
+ updatedAt: string;
1841
+ id: string;
1842
+ pay: {
1843
+ rate: number;
1844
+ unit: "DAILY" | "HOURLY";
1845
+ };
1846
+ startDate: string;
1847
+ worker: {
1848
+ id: string;
1849
+ firstName: string;
1850
+ lastName: string;
1851
+ };
1852
+ userId: string;
1853
+ user: {
1854
+ id: string;
1855
+ firstName: string;
1856
+ lastName: string;
1857
+ email: string;
1858
+ };
1859
+ job: {
1860
+ id: string;
1861
+ title: string;
1862
+ };
1863
+ endDate?: string | null | undefined;
1864
+ }, {
1865
+ status: "JOB_CANCELLED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | "CONFIRMED_OVERBOOK" | "CONFIRMED" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "COMPLETED";
1866
+ createdAt: string | Date;
1867
+ updatedAt: string | Date;
1868
+ id: string;
1869
+ pay: {
1870
+ rate: number;
1871
+ unit: "DAILY" | "HOURLY";
1872
+ };
1873
+ startDate: string | Date;
1874
+ worker: {
1875
+ id: string;
1876
+ firstName: string;
1877
+ lastName: string;
1878
+ };
1879
+ userId: string;
1880
+ user: {
1881
+ id: string;
1882
+ firstName: string;
1883
+ lastName: string;
1884
+ email: string;
1885
+ };
1886
+ job: {
1887
+ id: string;
1888
+ title: string;
1889
+ };
1890
+ endDate?: string | Date | null | undefined;
1891
+ }>;
1892
+ 404: z.ZodObject<{
1893
+ statusCode: z.ZodNumber;
1894
+ message: z.ZodString;
1895
+ code: z.ZodString;
1896
+ details: z.ZodOptional<z.ZodUnknown>;
1897
+ timestamp: z.ZodString;
1898
+ path: z.ZodString;
1899
+ correlationId: z.ZodOptional<z.ZodString>;
1900
+ }, "strip", z.ZodTypeAny, {
1901
+ code: string;
1902
+ path: string;
1903
+ message: string;
1904
+ statusCode: number;
1905
+ timestamp: string;
1906
+ details?: unknown;
1907
+ correlationId?: string | undefined;
1908
+ }, {
1909
+ code: string;
1910
+ path: string;
1911
+ message: string;
1912
+ statusCode: number;
1913
+ timestamp: string;
1914
+ details?: unknown;
1915
+ correlationId?: string | undefined;
1916
+ }>;
1917
+ 409: z.ZodObject<{
1918
+ statusCode: z.ZodNumber;
1919
+ message: z.ZodString;
1920
+ code: z.ZodString;
1921
+ details: z.ZodOptional<z.ZodUnknown>;
1922
+ timestamp: z.ZodString;
1923
+ path: z.ZodString;
1924
+ correlationId: z.ZodOptional<z.ZodString>;
1925
+ }, "strip", z.ZodTypeAny, {
1926
+ code: string;
1927
+ path: string;
1928
+ message: string;
1929
+ statusCode: number;
1930
+ timestamp: string;
1931
+ details?: unknown;
1932
+ correlationId?: string | undefined;
1933
+ }, {
1934
+ code: string;
1935
+ path: string;
1936
+ message: string;
1937
+ statusCode: number;
1938
+ timestamp: string;
1939
+ details?: unknown;
1940
+ correlationId?: string | undefined;
1941
+ }>;
1942
+ };
1943
+ };
1944
+ remove: {
1945
+ metadata: {
1946
+ tags: string[];
1947
+ openApi: {
1948
+ operationId: string;
1949
+ };
1950
+ };
1951
+ pathParams: z.ZodObject<{
1952
+ id: z.ZodString;
1953
+ }, "strip", z.ZodTypeAny, {
1954
+ id: string;
1955
+ }, {
1956
+ id: string;
1957
+ }>;
1958
+ summary: "Delete a booking";
1959
+ method: "DELETE";
1960
+ body: typeof import("@ts-rest/core").ContractNoBody;
1961
+ path: "/v2/bookings/:id";
1962
+ responses: {
1963
+ 400: z.ZodObject<{
1964
+ statusCode: z.ZodNumber;
1965
+ message: z.ZodString;
1966
+ code: z.ZodString;
1967
+ details: z.ZodOptional<z.ZodUnknown>;
1968
+ timestamp: z.ZodString;
1969
+ path: z.ZodString;
1970
+ correlationId: z.ZodOptional<z.ZodString>;
1971
+ }, "strip", z.ZodTypeAny, {
1972
+ code: string;
1973
+ path: string;
1974
+ message: string;
1975
+ statusCode: number;
1976
+ timestamp: string;
1977
+ details?: unknown;
1978
+ correlationId?: string | undefined;
1979
+ }, {
1980
+ code: string;
1981
+ path: string;
1982
+ message: string;
1983
+ statusCode: number;
1984
+ timestamp: string;
1985
+ details?: unknown;
1986
+ correlationId?: string | undefined;
1987
+ }>;
1988
+ 401: z.ZodObject<{
1989
+ statusCode: z.ZodNumber;
1990
+ message: z.ZodString;
1991
+ code: z.ZodString;
1992
+ details: z.ZodOptional<z.ZodUnknown>;
1993
+ timestamp: z.ZodString;
1994
+ path: z.ZodString;
1995
+ correlationId: z.ZodOptional<z.ZodString>;
1996
+ }, "strip", z.ZodTypeAny, {
1997
+ code: string;
1998
+ path: string;
1999
+ message: string;
2000
+ statusCode: number;
2001
+ timestamp: string;
2002
+ details?: unknown;
2003
+ correlationId?: string | undefined;
2004
+ }, {
2005
+ code: string;
2006
+ path: string;
2007
+ message: string;
2008
+ statusCode: number;
2009
+ timestamp: string;
2010
+ details?: unknown;
2011
+ correlationId?: string | undefined;
2012
+ }>;
2013
+ 403: z.ZodObject<{
2014
+ statusCode: z.ZodNumber;
2015
+ message: z.ZodString;
2016
+ code: z.ZodString;
2017
+ details: z.ZodOptional<z.ZodUnknown>;
2018
+ timestamp: z.ZodString;
2019
+ path: z.ZodString;
2020
+ correlationId: z.ZodOptional<z.ZodString>;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ code: string;
2023
+ path: string;
2024
+ message: string;
2025
+ statusCode: number;
2026
+ timestamp: string;
2027
+ details?: unknown;
2028
+ correlationId?: string | undefined;
2029
+ }, {
2030
+ code: string;
2031
+ path: string;
2032
+ message: string;
2033
+ statusCode: number;
2034
+ timestamp: string;
2035
+ details?: unknown;
2036
+ correlationId?: string | undefined;
2037
+ }>;
2038
+ 500: z.ZodObject<{
2039
+ statusCode: z.ZodNumber;
2040
+ message: z.ZodString;
2041
+ code: z.ZodString;
2042
+ details: z.ZodOptional<z.ZodUnknown>;
2043
+ timestamp: z.ZodString;
2044
+ path: z.ZodString;
2045
+ correlationId: z.ZodOptional<z.ZodString>;
2046
+ }, "strip", z.ZodTypeAny, {
2047
+ code: string;
2048
+ path: string;
2049
+ message: string;
2050
+ statusCode: number;
2051
+ timestamp: string;
2052
+ details?: unknown;
2053
+ correlationId?: string | undefined;
2054
+ }, {
2055
+ code: string;
2056
+ path: string;
2057
+ message: string;
2058
+ statusCode: number;
2059
+ timestamp: string;
2060
+ details?: unknown;
2061
+ correlationId?: string | undefined;
2062
+ }>;
2063
+ 204: z.ZodUndefined;
2064
+ 404: z.ZodObject<{
2065
+ statusCode: z.ZodNumber;
2066
+ message: z.ZodString;
2067
+ code: z.ZodString;
2068
+ details: z.ZodOptional<z.ZodUnknown>;
2069
+ timestamp: z.ZodString;
2070
+ path: z.ZodString;
2071
+ correlationId: z.ZodOptional<z.ZodString>;
2072
+ }, "strip", z.ZodTypeAny, {
2073
+ code: string;
2074
+ path: string;
2075
+ message: string;
2076
+ statusCode: number;
2077
+ timestamp: string;
2078
+ details?: unknown;
2079
+ correlationId?: string | undefined;
2080
+ }, {
2081
+ code: string;
2082
+ path: string;
2083
+ message: string;
2084
+ statusCode: number;
2085
+ timestamp: string;
2086
+ details?: unknown;
2087
+ correlationId?: string | undefined;
2088
+ }>;
2089
+ };
2090
+ };
2091
+ };
2092
+ //# sourceMappingURL=bookings.contract.d.ts.map