@dakkitor/api-contracts 1.1.14 → 1.1.15

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.
@@ -38,22 +38,22 @@ export declare const BookingItemSchema: z.ZodObject<{
38
38
  id: string;
39
39
  };
40
40
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | undefined;
41
+ endDate?: string | null | undefined;
41
42
  pay?: {
42
43
  rate: number;
43
44
  unit: "DAILY" | "HOURLY";
44
45
  } | undefined;
45
- endDate?: string | null | undefined;
46
46
  }, {
47
47
  startDate: string;
48
48
  worker: {
49
49
  id: string;
50
50
  };
51
51
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | undefined;
52
+ endDate?: string | null | undefined;
52
53
  pay?: {
53
54
  rate: number;
54
55
  unit: "DAILY" | "HOURLY";
55
56
  } | undefined;
56
- endDate?: string | null | undefined;
57
57
  }>;
58
58
  export declare const FilterJobInBookingSchema: z.ZodObject<{
59
59
  userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -61,13 +61,13 @@ export declare const FilterJobInBookingSchema: z.ZodObject<{
61
61
  companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
62
  tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
63
63
  }, "strip", z.ZodTypeAny, {
64
- clientId?: string | null | undefined;
65
64
  userId?: string | null | undefined;
65
+ clientId?: string | null | undefined;
66
66
  companyId?: string | null | undefined;
67
67
  tradeId?: string | null | undefined;
68
68
  }, {
69
- clientId?: string | null | undefined;
70
69
  userId?: string | null | undefined;
70
+ clientId?: string | null | undefined;
71
71
  companyId?: string | null | undefined;
72
72
  tradeId?: string | null | undefined;
73
73
  }>;
@@ -86,13 +86,13 @@ export declare const BookingWorkerSchema: z.ZodObject<{
86
86
  }>;
87
87
  export declare const BookingJobSchema: z.ZodObject<{
88
88
  id: z.ZodString;
89
- title: z.ZodString;
89
+ description: z.ZodString;
90
90
  }, "strip", z.ZodTypeAny, {
91
91
  id: string;
92
- title: string;
92
+ description: string;
93
93
  }, {
94
94
  id: string;
95
- title: string;
95
+ description: string;
96
96
  }>;
97
97
  export declare const BookingSchema: z.ZodObject<{
98
98
  id: z.ZodString;
@@ -140,32 +140,33 @@ export declare const BookingSchema: z.ZodObject<{
140
140
  }>;
141
141
  job: z.ZodObject<{
142
142
  id: z.ZodString;
143
- title: z.ZodString;
143
+ description: z.ZodString;
144
144
  }, "strip", z.ZodTypeAny, {
145
145
  id: string;
146
- title: string;
146
+ description: string;
147
147
  }, {
148
148
  id: string;
149
- title: string;
149
+ description: string;
150
150
  }>;
151
151
  userId: z.ZodString;
152
152
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
153
153
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
154
154
  }, "strip", z.ZodTypeAny, {
155
155
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
156
- id: string;
156
+ startDate: string;
157
157
  createdAt: string;
158
158
  updatedAt: string;
159
- pay: {
160
- rate: number;
161
- unit: "DAILY" | "HOURLY";
162
- };
163
- startDate: string;
159
+ id: string;
164
160
  worker: {
165
161
  id: string;
166
162
  firstName: string;
167
163
  lastName: string;
168
164
  };
165
+ pay: {
166
+ rate: number;
167
+ unit: "DAILY" | "HOURLY";
168
+ };
169
+ userId: string;
169
170
  user: {
170
171
  id: string;
171
172
  firstName: string;
@@ -174,25 +175,25 @@ export declare const BookingSchema: z.ZodObject<{
174
175
  };
175
176
  job: {
176
177
  id: string;
177
- title: string;
178
+ description: string;
178
179
  };
179
- userId: string;
180
180
  endDate?: string | null | undefined;
181
181
  }, {
182
182
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
183
- id: string;
183
+ startDate: string | Date;
184
184
  createdAt: string | Date;
185
185
  updatedAt: string | Date;
186
- pay: {
187
- rate: number;
188
- unit: "DAILY" | "HOURLY";
189
- };
190
- startDate: string | Date;
186
+ id: string;
191
187
  worker: {
192
188
  id: string;
193
189
  firstName: string;
194
190
  lastName: string;
195
191
  };
192
+ pay: {
193
+ rate: number;
194
+ unit: "DAILY" | "HOURLY";
195
+ };
196
+ userId: string;
196
197
  user: {
197
198
  id: string;
198
199
  firstName: string;
@@ -201,9 +202,8 @@ export declare const BookingSchema: z.ZodObject<{
201
202
  };
202
203
  job: {
203
204
  id: string;
204
- title: string;
205
+ description: string;
205
206
  };
206
- userId: string;
207
207
  endDate?: string | Date | null | undefined;
208
208
  }>;
209
209
  export declare const CreateBookingSchema: z.ZodObject<{
@@ -241,22 +241,22 @@ export declare const CreateBookingSchema: z.ZodObject<{
241
241
  id: string;
242
242
  };
243
243
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | undefined;
244
+ endDate?: string | null | undefined;
244
245
  pay?: {
245
246
  rate: number;
246
247
  unit: "DAILY" | "HOURLY";
247
248
  } | undefined;
248
- endDate?: string | null | undefined;
249
249
  }, {
250
250
  startDate: string;
251
251
  worker: {
252
252
  id: string;
253
253
  };
254
254
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | undefined;
255
+ endDate?: string | null | undefined;
255
256
  pay?: {
256
257
  rate: number;
257
258
  unit: "DAILY" | "HOURLY";
258
259
  } | undefined;
259
- endDate?: string | null | undefined;
260
260
  }>, "many">;
261
261
  }, "strip", z.ZodTypeAny, {
262
262
  job: {
@@ -268,11 +268,11 @@ export declare const CreateBookingSchema: z.ZodObject<{
268
268
  id: string;
269
269
  };
270
270
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | undefined;
271
+ endDate?: string | null | undefined;
271
272
  pay?: {
272
273
  rate: number;
273
274
  unit: "DAILY" | "HOURLY";
274
275
  } | undefined;
275
- endDate?: string | null | undefined;
276
276
  }[];
277
277
  }, {
278
278
  job: {
@@ -284,11 +284,11 @@ export declare const CreateBookingSchema: z.ZodObject<{
284
284
  id: string;
285
285
  };
286
286
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | undefined;
287
+ endDate?: string | null | undefined;
287
288
  pay?: {
288
289
  rate: number;
289
290
  unit: "DAILY" | "HOURLY";
290
291
  } | undefined;
291
- endDate?: string | null | undefined;
292
292
  }[];
293
293
  }>;
294
294
  export declare const UpdateBookingSchema: z.ZodObject<{
@@ -315,13 +315,13 @@ export declare const FilterBookingSchema: z.ZodObject<{
315
315
  companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
316
316
  tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
317
317
  }, "strip", z.ZodTypeAny, {
318
- clientId?: string | null | undefined;
319
318
  userId?: string | null | undefined;
319
+ clientId?: string | null | undefined;
320
320
  companyId?: string | null | undefined;
321
321
  tradeId?: string | null | undefined;
322
322
  }, {
323
- clientId?: string | null | undefined;
324
323
  userId?: string | null | undefined;
324
+ clientId?: string | null | undefined;
325
325
  companyId?: string | null | undefined;
326
326
  tradeId?: string | null | undefined;
327
327
  }>>>;
@@ -365,14 +365,11 @@ export declare const FilterBookingSchema: z.ZodObject<{
365
365
  limit: number;
366
366
  page: number;
367
367
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | null | undefined;
368
- clientId?: string | null | undefined;
369
- createdAt?: {
368
+ startDate?: {
370
369
  from?: string | null | undefined;
371
370
  to?: string | null | undefined;
372
371
  } | null | undefined;
373
- sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
374
- sortOrder?: "ASC" | "DESC" | null | undefined;
375
- startDate?: {
372
+ createdAt?: {
376
373
  from?: string | null | undefined;
377
374
  to?: string | null | undefined;
378
375
  } | null | undefined;
@@ -380,27 +377,25 @@ export declare const FilterBookingSchema: z.ZodObject<{
380
377
  from?: string | null | undefined;
381
378
  to?: string | null | undefined;
382
379
  } | null | undefined;
380
+ clientId?: string | null | undefined;
381
+ companyId?: string | null | undefined;
383
382
  job?: {
384
- clientId?: string | null | undefined;
385
383
  userId?: string | null | undefined;
384
+ clientId?: string | null | undefined;
386
385
  companyId?: string | null | undefined;
387
386
  tradeId?: string | null | undefined;
388
387
  } | null | undefined;
389
388
  workerName?: string | null | undefined;
390
- companyId?: string | null | undefined;
389
+ sortBy?: "status" | "startDate" | "createdAt" | "updatedAt" | null | undefined;
390
+ sortOrder?: "ASC" | "DESC" | null | undefined;
391
391
  agentName?: string | null | undefined;
392
392
  }, {
393
393
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | null | undefined;
394
- clientId?: string | null | undefined;
395
- createdAt?: {
394
+ startDate?: {
396
395
  from?: string | null | undefined;
397
396
  to?: string | null | undefined;
398
397
  } | null | undefined;
399
- limit?: number | undefined;
400
- page?: number | undefined;
401
- sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
402
- sortOrder?: "ASC" | "DESC" | null | undefined;
403
- startDate?: {
398
+ createdAt?: {
404
399
  from?: string | null | undefined;
405
400
  to?: string | null | undefined;
406
401
  } | null | undefined;
@@ -408,14 +403,19 @@ export declare const FilterBookingSchema: z.ZodObject<{
408
403
  from?: string | null | undefined;
409
404
  to?: string | null | undefined;
410
405
  } | null | undefined;
406
+ clientId?: string | null | undefined;
407
+ companyId?: string | null | undefined;
411
408
  job?: {
412
- clientId?: string | null | undefined;
413
409
  userId?: string | null | undefined;
410
+ clientId?: string | null | undefined;
414
411
  companyId?: string | null | undefined;
415
412
  tradeId?: string | null | undefined;
416
413
  } | null | undefined;
414
+ limit?: number | undefined;
415
+ page?: number | undefined;
417
416
  workerName?: string | null | undefined;
418
- companyId?: string | null | undefined;
417
+ sortBy?: "status" | "startDate" | "createdAt" | "updatedAt" | null | undefined;
418
+ sortOrder?: "ASC" | "DESC" | null | undefined;
419
419
  agentName?: string | null | undefined;
420
420
  }>;
421
421
  export declare const PaginatedBookingResponseSchema: z.ZodObject<{
@@ -465,32 +465,33 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
465
465
  }>;
466
466
  job: z.ZodObject<{
467
467
  id: z.ZodString;
468
- title: z.ZodString;
468
+ description: z.ZodString;
469
469
  }, "strip", z.ZodTypeAny, {
470
470
  id: string;
471
- title: string;
471
+ description: string;
472
472
  }, {
473
473
  id: string;
474
- title: string;
474
+ description: string;
475
475
  }>;
476
476
  userId: z.ZodString;
477
477
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
478
478
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
479
479
  }, "strip", z.ZodTypeAny, {
480
480
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
481
- id: string;
481
+ startDate: string;
482
482
  createdAt: string;
483
483
  updatedAt: string;
484
- pay: {
485
- rate: number;
486
- unit: "DAILY" | "HOURLY";
487
- };
488
- startDate: string;
484
+ id: string;
489
485
  worker: {
490
486
  id: string;
491
487
  firstName: string;
492
488
  lastName: string;
493
489
  };
490
+ pay: {
491
+ rate: number;
492
+ unit: "DAILY" | "HOURLY";
493
+ };
494
+ userId: string;
494
495
  user: {
495
496
  id: string;
496
497
  firstName: string;
@@ -499,25 +500,25 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
499
500
  };
500
501
  job: {
501
502
  id: string;
502
- title: string;
503
+ description: string;
503
504
  };
504
- userId: string;
505
505
  endDate?: string | null | undefined;
506
506
  }, {
507
507
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
508
- id: string;
508
+ startDate: string | Date;
509
509
  createdAt: string | Date;
510
510
  updatedAt: string | Date;
511
- pay: {
512
- rate: number;
513
- unit: "DAILY" | "HOURLY";
514
- };
515
- startDate: string | Date;
511
+ id: string;
516
512
  worker: {
517
513
  id: string;
518
514
  firstName: string;
519
515
  lastName: string;
520
516
  };
517
+ pay: {
518
+ rate: number;
519
+ unit: "DAILY" | "HOURLY";
520
+ };
521
+ userId: string;
521
522
  user: {
522
523
  id: string;
523
524
  firstName: string;
@@ -526,9 +527,8 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
526
527
  };
527
528
  job: {
528
529
  id: string;
529
- title: string;
530
+ description: string;
530
531
  };
531
- userId: string;
532
532
  endDate?: string | Date | null | undefined;
533
533
  }>, "many">;
534
534
  totalCount: z.ZodNumber;
@@ -537,21 +537,23 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
537
537
  currentPage: z.ZodNumber;
538
538
  totalPages: z.ZodNumber;
539
539
  }, "strip", z.ZodTypeAny, {
540
+ limit: number;
540
541
  items: {
541
542
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
542
- id: string;
543
+ startDate: string;
543
544
  createdAt: string;
544
545
  updatedAt: string;
545
- pay: {
546
- rate: number;
547
- unit: "DAILY" | "HOURLY";
548
- };
549
- startDate: string;
546
+ id: string;
550
547
  worker: {
551
548
  id: string;
552
549
  firstName: string;
553
550
  lastName: string;
554
551
  };
552
+ pay: {
553
+ rate: number;
554
+ unit: "DAILY" | "HOURLY";
555
+ };
556
+ userId: string;
555
557
  user: {
556
558
  id: string;
557
559
  firstName: string;
@@ -560,32 +562,32 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
560
562
  };
561
563
  job: {
562
564
  id: string;
563
- title: string;
565
+ description: string;
564
566
  };
565
- userId: string;
566
567
  endDate?: string | null | undefined;
567
568
  }[];
568
569
  totalCount: number;
569
- limit: number;
570
570
  skip: number;
571
571
  currentPage: number;
572
572
  totalPages: number;
573
573
  }, {
574
+ limit: number;
574
575
  items: {
575
576
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
576
- id: string;
577
+ startDate: string | Date;
577
578
  createdAt: string | Date;
578
579
  updatedAt: string | Date;
579
- pay: {
580
- rate: number;
581
- unit: "DAILY" | "HOURLY";
582
- };
583
- startDate: string | Date;
580
+ id: string;
584
581
  worker: {
585
582
  id: string;
586
583
  firstName: string;
587
584
  lastName: string;
588
585
  };
586
+ pay: {
587
+ rate: number;
588
+ unit: "DAILY" | "HOURLY";
589
+ };
590
+ userId: string;
589
591
  user: {
590
592
  id: string;
591
593
  firstName: string;
@@ -594,13 +596,11 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
594
596
  };
595
597
  job: {
596
598
  id: string;
597
- title: string;
599
+ description: string;
598
600
  };
599
- userId: string;
600
601
  endDate?: string | Date | null | undefined;
601
602
  }[];
602
603
  totalCount: number;
603
- limit: number;
604
604
  skip: number;
605
605
  currentPage: number;
606
606
  totalPages: number;
@@ -651,32 +651,33 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
651
651
  }>;
652
652
  job: z.ZodObject<{
653
653
  id: z.ZodString;
654
- title: z.ZodString;
654
+ description: z.ZodString;
655
655
  }, "strip", z.ZodTypeAny, {
656
656
  id: string;
657
- title: string;
657
+ description: string;
658
658
  }, {
659
659
  id: string;
660
- title: string;
660
+ description: string;
661
661
  }>;
662
662
  userId: z.ZodString;
663
663
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
664
664
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
665
665
  }, "strip", z.ZodTypeAny, {
666
666
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
667
- id: string;
667
+ startDate: string;
668
668
  createdAt: string;
669
669
  updatedAt: string;
670
- pay: {
671
- rate: number;
672
- unit: "DAILY" | "HOURLY";
673
- };
674
- startDate: string;
670
+ id: string;
675
671
  worker: {
676
672
  id: string;
677
673
  firstName: string;
678
674
  lastName: string;
679
675
  };
676
+ pay: {
677
+ rate: number;
678
+ unit: "DAILY" | "HOURLY";
679
+ };
680
+ userId: string;
680
681
  user: {
681
682
  id: string;
682
683
  firstName: string;
@@ -685,25 +686,25 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
685
686
  };
686
687
  job: {
687
688
  id: string;
688
- title: string;
689
+ description: string;
689
690
  };
690
- userId: string;
691
691
  endDate?: string | null | undefined;
692
692
  }, {
693
693
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
694
- id: string;
694
+ startDate: string | Date;
695
695
  createdAt: string | Date;
696
696
  updatedAt: string | Date;
697
- pay: {
698
- rate: number;
699
- unit: "DAILY" | "HOURLY";
700
- };
701
- startDate: string | Date;
697
+ id: string;
702
698
  worker: {
703
699
  id: string;
704
700
  firstName: string;
705
701
  lastName: string;
706
702
  };
703
+ pay: {
704
+ rate: number;
705
+ unit: "DAILY" | "HOURLY";
706
+ };
707
+ userId: string;
707
708
  user: {
708
709
  id: string;
709
710
  firstName: string;
@@ -712,9 +713,8 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
712
713
  };
713
714
  job: {
714
715
  id: string;
715
- title: string;
716
+ description: string;
716
717
  };
717
- userId: string;
718
718
  endDate?: string | Date | null | undefined;
719
719
  }>, "many">;
720
720
  export type BookingStatus = z.infer<typeof BookingStatusSchema>;
@@ -775,22 +775,22 @@ export declare const bookingsContractRouter: {
775
775
  id: string;
776
776
  };
777
777
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | undefined;
778
+ endDate?: string | null | undefined;
778
779
  pay?: {
779
780
  rate: number;
780
781
  unit: "DAILY" | "HOURLY";
781
782
  } | undefined;
782
- endDate?: string | null | undefined;
783
783
  }, {
784
784
  startDate: string;
785
785
  worker: {
786
786
  id: string;
787
787
  };
788
788
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | undefined;
789
+ endDate?: string | null | undefined;
789
790
  pay?: {
790
791
  rate: number;
791
792
  unit: "DAILY" | "HOURLY";
792
793
  } | undefined;
793
- endDate?: string | null | undefined;
794
794
  }>, "many">;
795
795
  }, "strip", z.ZodTypeAny, {
796
796
  job: {
@@ -802,11 +802,11 @@ export declare const bookingsContractRouter: {
802
802
  id: string;
803
803
  };
804
804
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | undefined;
805
+ endDate?: string | null | undefined;
805
806
  pay?: {
806
807
  rate: number;
807
808
  unit: "DAILY" | "HOURLY";
808
809
  } | undefined;
809
- endDate?: string | null | undefined;
810
810
  }[];
811
811
  }, {
812
812
  job: {
@@ -818,11 +818,11 @@ export declare const bookingsContractRouter: {
818
818
  id: string;
819
819
  };
820
820
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | undefined;
821
+ endDate?: string | null | undefined;
821
822
  pay?: {
822
823
  rate: number;
823
824
  unit: "DAILY" | "HOURLY";
824
825
  } | undefined;
825
- endDate?: string | null | undefined;
826
826
  }[];
827
827
  }>;
828
828
  path: "/v2/bookings";
@@ -836,19 +836,19 @@ export declare const bookingsContractRouter: {
836
836
  path: z.ZodString;
837
837
  correlationId: z.ZodOptional<z.ZodString>;
838
838
  }, "strip", z.ZodTypeAny, {
839
- statusCode: number;
840
- message: string;
841
839
  code: string;
842
- timestamp: string;
843
840
  path: string;
841
+ message: string;
842
+ statusCode: number;
843
+ timestamp: string;
844
844
  details?: unknown;
845
845
  correlationId?: string | undefined;
846
846
  }, {
847
- statusCode: number;
848
- message: string;
849
847
  code: string;
850
- timestamp: string;
851
848
  path: string;
849
+ message: string;
850
+ statusCode: number;
851
+ timestamp: string;
852
852
  details?: unknown;
853
853
  correlationId?: string | undefined;
854
854
  }>;
@@ -861,19 +861,19 @@ export declare const bookingsContractRouter: {
861
861
  path: z.ZodString;
862
862
  correlationId: z.ZodOptional<z.ZodString>;
863
863
  }, "strip", z.ZodTypeAny, {
864
- statusCode: number;
865
- message: string;
866
864
  code: string;
867
- timestamp: string;
868
865
  path: string;
866
+ message: string;
867
+ statusCode: number;
868
+ timestamp: string;
869
869
  details?: unknown;
870
870
  correlationId?: string | undefined;
871
871
  }, {
872
- statusCode: number;
873
- message: string;
874
872
  code: string;
875
- timestamp: string;
876
873
  path: string;
874
+ message: string;
875
+ statusCode: number;
876
+ timestamp: string;
877
877
  details?: unknown;
878
878
  correlationId?: string | undefined;
879
879
  }>;
@@ -886,19 +886,19 @@ export declare const bookingsContractRouter: {
886
886
  path: z.ZodString;
887
887
  correlationId: z.ZodOptional<z.ZodString>;
888
888
  }, "strip", z.ZodTypeAny, {
889
- statusCode: number;
890
- message: string;
891
889
  code: string;
892
- timestamp: string;
893
890
  path: string;
891
+ message: string;
892
+ statusCode: number;
893
+ timestamp: string;
894
894
  details?: unknown;
895
895
  correlationId?: string | undefined;
896
896
  }, {
897
- statusCode: number;
898
- message: string;
899
897
  code: string;
900
- timestamp: string;
901
898
  path: string;
899
+ message: string;
900
+ statusCode: number;
901
+ timestamp: string;
902
902
  details?: unknown;
903
903
  correlationId?: string | undefined;
904
904
  }>;
@@ -911,19 +911,19 @@ export declare const bookingsContractRouter: {
911
911
  path: z.ZodString;
912
912
  correlationId: z.ZodOptional<z.ZodString>;
913
913
  }, "strip", z.ZodTypeAny, {
914
- statusCode: number;
915
- message: string;
916
914
  code: string;
917
- timestamp: string;
918
915
  path: string;
916
+ message: string;
917
+ statusCode: number;
918
+ timestamp: string;
919
919
  details?: unknown;
920
920
  correlationId?: string | undefined;
921
921
  }, {
922
- statusCode: number;
923
- message: string;
924
922
  code: string;
925
- timestamp: string;
926
923
  path: string;
924
+ message: string;
925
+ statusCode: number;
926
+ timestamp: string;
927
927
  details?: unknown;
928
928
  correlationId?: string | undefined;
929
929
  }>;
@@ -973,32 +973,33 @@ export declare const bookingsContractRouter: {
973
973
  }>;
974
974
  job: z.ZodObject<{
975
975
  id: z.ZodString;
976
- title: z.ZodString;
976
+ description: z.ZodString;
977
977
  }, "strip", z.ZodTypeAny, {
978
978
  id: string;
979
- title: string;
979
+ description: string;
980
980
  }, {
981
981
  id: string;
982
- title: string;
982
+ description: string;
983
983
  }>;
984
984
  userId: z.ZodString;
985
985
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
986
986
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
987
987
  }, "strip", z.ZodTypeAny, {
988
988
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
989
- id: string;
989
+ startDate: string;
990
990
  createdAt: string;
991
991
  updatedAt: string;
992
- pay: {
993
- rate: number;
994
- unit: "DAILY" | "HOURLY";
995
- };
996
- startDate: string;
992
+ id: string;
997
993
  worker: {
998
994
  id: string;
999
995
  firstName: string;
1000
996
  lastName: string;
1001
997
  };
998
+ pay: {
999
+ rate: number;
1000
+ unit: "DAILY" | "HOURLY";
1001
+ };
1002
+ userId: string;
1002
1003
  user: {
1003
1004
  id: string;
1004
1005
  firstName: string;
@@ -1007,25 +1008,25 @@ export declare const bookingsContractRouter: {
1007
1008
  };
1008
1009
  job: {
1009
1010
  id: string;
1010
- title: string;
1011
+ description: string;
1011
1012
  };
1012
- userId: string;
1013
1013
  endDate?: string | null | undefined;
1014
1014
  }, {
1015
1015
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
1016
- id: string;
1016
+ startDate: string | Date;
1017
1017
  createdAt: string | Date;
1018
1018
  updatedAt: string | Date;
1019
- pay: {
1020
- rate: number;
1021
- unit: "DAILY" | "HOURLY";
1022
- };
1023
- startDate: string | Date;
1019
+ id: string;
1024
1020
  worker: {
1025
1021
  id: string;
1026
1022
  firstName: string;
1027
1023
  lastName: string;
1028
1024
  };
1025
+ pay: {
1026
+ rate: number;
1027
+ unit: "DAILY" | "HOURLY";
1028
+ };
1029
+ userId: string;
1029
1030
  user: {
1030
1031
  id: string;
1031
1032
  firstName: string;
@@ -1034,9 +1035,8 @@ export declare const bookingsContractRouter: {
1034
1035
  };
1035
1036
  job: {
1036
1037
  id: string;
1037
- title: string;
1038
+ description: string;
1038
1039
  };
1039
- userId: string;
1040
1040
  endDate?: string | Date | null | undefined;
1041
1041
  }>, "many">;
1042
1042
  409: z.ZodObject<{
@@ -1048,19 +1048,19 @@ export declare const bookingsContractRouter: {
1048
1048
  path: z.ZodString;
1049
1049
  correlationId: z.ZodOptional<z.ZodString>;
1050
1050
  }, "strip", z.ZodTypeAny, {
1051
- statusCode: number;
1052
- message: string;
1053
1051
  code: string;
1054
- timestamp: string;
1055
1052
  path: string;
1053
+ message: string;
1054
+ statusCode: number;
1055
+ timestamp: string;
1056
1056
  details?: unknown;
1057
1057
  correlationId?: string | undefined;
1058
1058
  }, {
1059
- statusCode: number;
1060
- message: string;
1061
1059
  code: string;
1062
- timestamp: string;
1063
1060
  path: string;
1061
+ message: string;
1062
+ statusCode: number;
1063
+ timestamp: string;
1064
1064
  details?: unknown;
1065
1065
  correlationId?: string | undefined;
1066
1066
  }>;
@@ -1084,13 +1084,13 @@ export declare const bookingsContractRouter: {
1084
1084
  companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1085
1085
  tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1086
1086
  }, "strip", z.ZodTypeAny, {
1087
- clientId?: string | null | undefined;
1088
1087
  userId?: string | null | undefined;
1088
+ clientId?: string | null | undefined;
1089
1089
  companyId?: string | null | undefined;
1090
1090
  tradeId?: string | null | undefined;
1091
1091
  }, {
1092
- clientId?: string | null | undefined;
1093
1092
  userId?: string | null | undefined;
1093
+ clientId?: string | null | undefined;
1094
1094
  companyId?: string | null | undefined;
1095
1095
  tradeId?: string | null | undefined;
1096
1096
  }>>>;
@@ -1134,14 +1134,11 @@ export declare const bookingsContractRouter: {
1134
1134
  limit: number;
1135
1135
  page: number;
1136
1136
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | null | undefined;
1137
- clientId?: string | null | undefined;
1138
- createdAt?: {
1137
+ startDate?: {
1139
1138
  from?: string | null | undefined;
1140
1139
  to?: string | null | undefined;
1141
1140
  } | null | undefined;
1142
- sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
1143
- sortOrder?: "ASC" | "DESC" | null | undefined;
1144
- startDate?: {
1141
+ createdAt?: {
1145
1142
  from?: string | null | undefined;
1146
1143
  to?: string | null | undefined;
1147
1144
  } | null | undefined;
@@ -1149,27 +1146,25 @@ export declare const bookingsContractRouter: {
1149
1146
  from?: string | null | undefined;
1150
1147
  to?: string | null | undefined;
1151
1148
  } | null | undefined;
1149
+ clientId?: string | null | undefined;
1150
+ companyId?: string | null | undefined;
1152
1151
  job?: {
1153
- clientId?: string | null | undefined;
1154
1152
  userId?: string | null | undefined;
1153
+ clientId?: string | null | undefined;
1155
1154
  companyId?: string | null | undefined;
1156
1155
  tradeId?: string | null | undefined;
1157
1156
  } | null | undefined;
1158
1157
  workerName?: string | null | undefined;
1159
- companyId?: string | null | undefined;
1158
+ sortBy?: "status" | "startDate" | "createdAt" | "updatedAt" | null | undefined;
1159
+ sortOrder?: "ASC" | "DESC" | null | undefined;
1160
1160
  agentName?: string | null | undefined;
1161
1161
  }, {
1162
1162
  status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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" | null | undefined;
1163
- clientId?: string | null | undefined;
1164
- createdAt?: {
1163
+ startDate?: {
1165
1164
  from?: string | null | undefined;
1166
1165
  to?: string | null | undefined;
1167
1166
  } | null | undefined;
1168
- limit?: number | undefined;
1169
- page?: number | undefined;
1170
- sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
1171
- sortOrder?: "ASC" | "DESC" | null | undefined;
1172
- startDate?: {
1167
+ createdAt?: {
1173
1168
  from?: string | null | undefined;
1174
1169
  to?: string | null | undefined;
1175
1170
  } | null | undefined;
@@ -1177,14 +1172,19 @@ export declare const bookingsContractRouter: {
1177
1172
  from?: string | null | undefined;
1178
1173
  to?: string | null | undefined;
1179
1174
  } | null | undefined;
1175
+ clientId?: string | null | undefined;
1176
+ companyId?: string | null | undefined;
1180
1177
  job?: {
1181
- clientId?: string | null | undefined;
1182
1178
  userId?: string | null | undefined;
1179
+ clientId?: string | null | undefined;
1183
1180
  companyId?: string | null | undefined;
1184
1181
  tradeId?: string | null | undefined;
1185
1182
  } | null | undefined;
1183
+ limit?: number | undefined;
1184
+ page?: number | undefined;
1186
1185
  workerName?: string | null | undefined;
1187
- companyId?: string | null | undefined;
1186
+ sortBy?: "status" | "startDate" | "createdAt" | "updatedAt" | null | undefined;
1187
+ sortOrder?: "ASC" | "DESC" | null | undefined;
1188
1188
  agentName?: string | null | undefined;
1189
1189
  }>;
1190
1190
  summary: "Get all bookings";
@@ -1200,19 +1200,19 @@ export declare const bookingsContractRouter: {
1200
1200
  path: z.ZodString;
1201
1201
  correlationId: z.ZodOptional<z.ZodString>;
1202
1202
  }, "strip", z.ZodTypeAny, {
1203
- statusCode: number;
1204
- message: string;
1205
1203
  code: string;
1206
- timestamp: string;
1207
1204
  path: string;
1205
+ message: string;
1206
+ statusCode: number;
1207
+ timestamp: string;
1208
1208
  details?: unknown;
1209
1209
  correlationId?: string | undefined;
1210
1210
  }, {
1211
- statusCode: number;
1212
- message: string;
1213
1211
  code: string;
1214
- timestamp: string;
1215
1212
  path: string;
1213
+ message: string;
1214
+ statusCode: number;
1215
+ timestamp: string;
1216
1216
  details?: unknown;
1217
1217
  correlationId?: string | undefined;
1218
1218
  }>;
@@ -1225,19 +1225,19 @@ export declare const bookingsContractRouter: {
1225
1225
  path: z.ZodString;
1226
1226
  correlationId: z.ZodOptional<z.ZodString>;
1227
1227
  }, "strip", z.ZodTypeAny, {
1228
- statusCode: number;
1229
- message: string;
1230
1228
  code: string;
1231
- timestamp: string;
1232
1229
  path: string;
1230
+ message: string;
1231
+ statusCode: number;
1232
+ timestamp: string;
1233
1233
  details?: unknown;
1234
1234
  correlationId?: string | undefined;
1235
1235
  }, {
1236
- statusCode: number;
1237
- message: string;
1238
1236
  code: string;
1239
- timestamp: string;
1240
1237
  path: string;
1238
+ message: string;
1239
+ statusCode: number;
1240
+ timestamp: string;
1241
1241
  details?: unknown;
1242
1242
  correlationId?: string | undefined;
1243
1243
  }>;
@@ -1250,19 +1250,19 @@ export declare const bookingsContractRouter: {
1250
1250
  path: z.ZodString;
1251
1251
  correlationId: z.ZodOptional<z.ZodString>;
1252
1252
  }, "strip", z.ZodTypeAny, {
1253
- statusCode: number;
1254
- message: string;
1255
1253
  code: string;
1256
- timestamp: string;
1257
1254
  path: string;
1255
+ message: string;
1256
+ statusCode: number;
1257
+ timestamp: string;
1258
1258
  details?: unknown;
1259
1259
  correlationId?: string | undefined;
1260
1260
  }, {
1261
- statusCode: number;
1262
- message: string;
1263
1261
  code: string;
1264
- timestamp: string;
1265
1262
  path: string;
1263
+ message: string;
1264
+ statusCode: number;
1265
+ timestamp: string;
1266
1266
  details?: unknown;
1267
1267
  correlationId?: string | undefined;
1268
1268
  }>;
@@ -1275,19 +1275,19 @@ export declare const bookingsContractRouter: {
1275
1275
  path: z.ZodString;
1276
1276
  correlationId: z.ZodOptional<z.ZodString>;
1277
1277
  }, "strip", z.ZodTypeAny, {
1278
- statusCode: number;
1279
- message: string;
1280
1278
  code: string;
1281
- timestamp: string;
1282
1279
  path: string;
1280
+ message: string;
1281
+ statusCode: number;
1282
+ timestamp: string;
1283
1283
  details?: unknown;
1284
1284
  correlationId?: string | undefined;
1285
1285
  }, {
1286
- statusCode: number;
1287
- message: string;
1288
1286
  code: string;
1289
- timestamp: string;
1290
1287
  path: string;
1288
+ message: string;
1289
+ statusCode: number;
1290
+ timestamp: string;
1291
1291
  details?: unknown;
1292
1292
  correlationId?: string | undefined;
1293
1293
  }>;
@@ -1338,32 +1338,33 @@ export declare const bookingsContractRouter: {
1338
1338
  }>;
1339
1339
  job: z.ZodObject<{
1340
1340
  id: z.ZodString;
1341
- title: z.ZodString;
1341
+ description: z.ZodString;
1342
1342
  }, "strip", z.ZodTypeAny, {
1343
1343
  id: string;
1344
- title: string;
1344
+ description: string;
1345
1345
  }, {
1346
1346
  id: string;
1347
- title: string;
1347
+ description: string;
1348
1348
  }>;
1349
1349
  userId: z.ZodString;
1350
1350
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1351
1351
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1352
1352
  }, "strip", z.ZodTypeAny, {
1353
1353
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
1354
- id: string;
1354
+ startDate: string;
1355
1355
  createdAt: string;
1356
1356
  updatedAt: string;
1357
- pay: {
1358
- rate: number;
1359
- unit: "DAILY" | "HOURLY";
1360
- };
1361
- startDate: string;
1357
+ id: string;
1362
1358
  worker: {
1363
1359
  id: string;
1364
1360
  firstName: string;
1365
1361
  lastName: string;
1366
1362
  };
1363
+ pay: {
1364
+ rate: number;
1365
+ unit: "DAILY" | "HOURLY";
1366
+ };
1367
+ userId: string;
1367
1368
  user: {
1368
1369
  id: string;
1369
1370
  firstName: string;
@@ -1372,25 +1373,25 @@ export declare const bookingsContractRouter: {
1372
1373
  };
1373
1374
  job: {
1374
1375
  id: string;
1375
- title: string;
1376
+ description: string;
1376
1377
  };
1377
- userId: string;
1378
1378
  endDate?: string | null | undefined;
1379
1379
  }, {
1380
1380
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
1381
- id: string;
1381
+ startDate: string | Date;
1382
1382
  createdAt: string | Date;
1383
1383
  updatedAt: string | Date;
1384
- pay: {
1385
- rate: number;
1386
- unit: "DAILY" | "HOURLY";
1387
- };
1388
- startDate: string | Date;
1384
+ id: string;
1389
1385
  worker: {
1390
1386
  id: string;
1391
1387
  firstName: string;
1392
1388
  lastName: string;
1393
1389
  };
1390
+ pay: {
1391
+ rate: number;
1392
+ unit: "DAILY" | "HOURLY";
1393
+ };
1394
+ userId: string;
1394
1395
  user: {
1395
1396
  id: string;
1396
1397
  firstName: string;
@@ -1399,9 +1400,8 @@ export declare const bookingsContractRouter: {
1399
1400
  };
1400
1401
  job: {
1401
1402
  id: string;
1402
- title: string;
1403
+ description: string;
1403
1404
  };
1404
- userId: string;
1405
1405
  endDate?: string | Date | null | undefined;
1406
1406
  }>, "many">;
1407
1407
  totalCount: z.ZodNumber;
@@ -1410,21 +1410,23 @@ export declare const bookingsContractRouter: {
1410
1410
  currentPage: z.ZodNumber;
1411
1411
  totalPages: z.ZodNumber;
1412
1412
  }, "strip", z.ZodTypeAny, {
1413
+ limit: number;
1413
1414
  items: {
1414
1415
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
1415
- id: string;
1416
+ startDate: string;
1416
1417
  createdAt: string;
1417
1418
  updatedAt: string;
1418
- pay: {
1419
- rate: number;
1420
- unit: "DAILY" | "HOURLY";
1421
- };
1422
- startDate: string;
1419
+ id: string;
1423
1420
  worker: {
1424
1421
  id: string;
1425
1422
  firstName: string;
1426
1423
  lastName: string;
1427
1424
  };
1425
+ pay: {
1426
+ rate: number;
1427
+ unit: "DAILY" | "HOURLY";
1428
+ };
1429
+ userId: string;
1428
1430
  user: {
1429
1431
  id: string;
1430
1432
  firstName: string;
@@ -1433,32 +1435,32 @@ export declare const bookingsContractRouter: {
1433
1435
  };
1434
1436
  job: {
1435
1437
  id: string;
1436
- title: string;
1438
+ description: string;
1437
1439
  };
1438
- userId: string;
1439
1440
  endDate?: string | null | undefined;
1440
1441
  }[];
1441
1442
  totalCount: number;
1442
- limit: number;
1443
1443
  skip: number;
1444
1444
  currentPage: number;
1445
1445
  totalPages: number;
1446
1446
  }, {
1447
+ limit: number;
1447
1448
  items: {
1448
1449
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
1449
- id: string;
1450
+ startDate: string | Date;
1450
1451
  createdAt: string | Date;
1451
1452
  updatedAt: string | Date;
1452
- pay: {
1453
- rate: number;
1454
- unit: "DAILY" | "HOURLY";
1455
- };
1456
- startDate: string | Date;
1453
+ id: string;
1457
1454
  worker: {
1458
1455
  id: string;
1459
1456
  firstName: string;
1460
1457
  lastName: string;
1461
1458
  };
1459
+ pay: {
1460
+ rate: number;
1461
+ unit: "DAILY" | "HOURLY";
1462
+ };
1463
+ userId: string;
1462
1464
  user: {
1463
1465
  id: string;
1464
1466
  firstName: string;
@@ -1467,13 +1469,11 @@ export declare const bookingsContractRouter: {
1467
1469
  };
1468
1470
  job: {
1469
1471
  id: string;
1470
- title: string;
1472
+ description: string;
1471
1473
  };
1472
- userId: string;
1473
1474
  endDate?: string | Date | null | undefined;
1474
1475
  }[];
1475
1476
  totalCount: number;
1476
- limit: number;
1477
1477
  skip: number;
1478
1478
  currentPage: number;
1479
1479
  totalPages: number;
@@ -1507,19 +1507,19 @@ export declare const bookingsContractRouter: {
1507
1507
  path: z.ZodString;
1508
1508
  correlationId: z.ZodOptional<z.ZodString>;
1509
1509
  }, "strip", z.ZodTypeAny, {
1510
- statusCode: number;
1511
- message: string;
1512
1510
  code: string;
1513
- timestamp: string;
1514
1511
  path: string;
1512
+ message: string;
1513
+ statusCode: number;
1514
+ timestamp: string;
1515
1515
  details?: unknown;
1516
1516
  correlationId?: string | undefined;
1517
1517
  }, {
1518
- statusCode: number;
1519
- message: string;
1520
1518
  code: string;
1521
- timestamp: string;
1522
1519
  path: string;
1520
+ message: string;
1521
+ statusCode: number;
1522
+ timestamp: string;
1523
1523
  details?: unknown;
1524
1524
  correlationId?: string | undefined;
1525
1525
  }>;
@@ -1532,19 +1532,19 @@ export declare const bookingsContractRouter: {
1532
1532
  path: z.ZodString;
1533
1533
  correlationId: z.ZodOptional<z.ZodString>;
1534
1534
  }, "strip", z.ZodTypeAny, {
1535
- statusCode: number;
1536
- message: string;
1537
1535
  code: string;
1538
- timestamp: string;
1539
1536
  path: string;
1537
+ message: string;
1538
+ statusCode: number;
1539
+ timestamp: string;
1540
1540
  details?: unknown;
1541
1541
  correlationId?: string | undefined;
1542
1542
  }, {
1543
- statusCode: number;
1544
- message: string;
1545
1543
  code: string;
1546
- timestamp: string;
1547
1544
  path: string;
1545
+ message: string;
1546
+ statusCode: number;
1547
+ timestamp: string;
1548
1548
  details?: unknown;
1549
1549
  correlationId?: string | undefined;
1550
1550
  }>;
@@ -1557,19 +1557,19 @@ export declare const bookingsContractRouter: {
1557
1557
  path: z.ZodString;
1558
1558
  correlationId: z.ZodOptional<z.ZodString>;
1559
1559
  }, "strip", z.ZodTypeAny, {
1560
- statusCode: number;
1561
- message: string;
1562
1560
  code: string;
1563
- timestamp: string;
1564
1561
  path: string;
1562
+ message: string;
1563
+ statusCode: number;
1564
+ timestamp: string;
1565
1565
  details?: unknown;
1566
1566
  correlationId?: string | undefined;
1567
1567
  }, {
1568
- statusCode: number;
1569
- message: string;
1570
1568
  code: string;
1571
- timestamp: string;
1572
1569
  path: string;
1570
+ message: string;
1571
+ statusCode: number;
1572
+ timestamp: string;
1573
1573
  details?: unknown;
1574
1574
  correlationId?: string | undefined;
1575
1575
  }>;
@@ -1582,19 +1582,19 @@ export declare const bookingsContractRouter: {
1582
1582
  path: z.ZodString;
1583
1583
  correlationId: z.ZodOptional<z.ZodString>;
1584
1584
  }, "strip", z.ZodTypeAny, {
1585
- statusCode: number;
1586
- message: string;
1587
1585
  code: string;
1588
- timestamp: string;
1589
1586
  path: string;
1587
+ message: string;
1588
+ statusCode: number;
1589
+ timestamp: string;
1590
1590
  details?: unknown;
1591
1591
  correlationId?: string | undefined;
1592
1592
  }, {
1593
- statusCode: number;
1594
- message: string;
1595
1593
  code: string;
1596
- timestamp: string;
1597
1594
  path: string;
1595
+ message: string;
1596
+ statusCode: number;
1597
+ timestamp: string;
1598
1598
  details?: unknown;
1599
1599
  correlationId?: string | undefined;
1600
1600
  }>;
@@ -1644,32 +1644,33 @@ export declare const bookingsContractRouter: {
1644
1644
  }>;
1645
1645
  job: z.ZodObject<{
1646
1646
  id: z.ZodString;
1647
- title: z.ZodString;
1647
+ description: z.ZodString;
1648
1648
  }, "strip", z.ZodTypeAny, {
1649
1649
  id: string;
1650
- title: string;
1650
+ description: string;
1651
1651
  }, {
1652
1652
  id: string;
1653
- title: string;
1653
+ description: string;
1654
1654
  }>;
1655
1655
  userId: z.ZodString;
1656
1656
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1657
1657
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1658
1658
  }, "strip", z.ZodTypeAny, {
1659
1659
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
1660
- id: string;
1660
+ startDate: string;
1661
1661
  createdAt: string;
1662
1662
  updatedAt: string;
1663
- pay: {
1664
- rate: number;
1665
- unit: "DAILY" | "HOURLY";
1666
- };
1667
- startDate: string;
1663
+ id: string;
1668
1664
  worker: {
1669
1665
  id: string;
1670
1666
  firstName: string;
1671
1667
  lastName: string;
1672
1668
  };
1669
+ pay: {
1670
+ rate: number;
1671
+ unit: "DAILY" | "HOURLY";
1672
+ };
1673
+ userId: string;
1673
1674
  user: {
1674
1675
  id: string;
1675
1676
  firstName: string;
@@ -1678,25 +1679,25 @@ export declare const bookingsContractRouter: {
1678
1679
  };
1679
1680
  job: {
1680
1681
  id: string;
1681
- title: string;
1682
+ description: string;
1682
1683
  };
1683
- userId: string;
1684
1684
  endDate?: string | null | undefined;
1685
1685
  }, {
1686
1686
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
1687
- id: string;
1687
+ startDate: string | Date;
1688
1688
  createdAt: string | Date;
1689
1689
  updatedAt: string | Date;
1690
- pay: {
1691
- rate: number;
1692
- unit: "DAILY" | "HOURLY";
1693
- };
1694
- startDate: string | Date;
1690
+ id: string;
1695
1691
  worker: {
1696
1692
  id: string;
1697
1693
  firstName: string;
1698
1694
  lastName: string;
1699
1695
  };
1696
+ pay: {
1697
+ rate: number;
1698
+ unit: "DAILY" | "HOURLY";
1699
+ };
1700
+ userId: string;
1700
1701
  user: {
1701
1702
  id: string;
1702
1703
  firstName: string;
@@ -1705,9 +1706,8 @@ export declare const bookingsContractRouter: {
1705
1706
  };
1706
1707
  job: {
1707
1708
  id: string;
1708
- title: string;
1709
+ description: string;
1709
1710
  };
1710
- userId: string;
1711
1711
  endDate?: string | Date | null | undefined;
1712
1712
  }>;
1713
1713
  404: z.ZodObject<{
@@ -1719,19 +1719,19 @@ export declare const bookingsContractRouter: {
1719
1719
  path: z.ZodString;
1720
1720
  correlationId: z.ZodOptional<z.ZodString>;
1721
1721
  }, "strip", z.ZodTypeAny, {
1722
- statusCode: number;
1723
- message: string;
1724
1722
  code: string;
1725
- timestamp: string;
1726
1723
  path: string;
1724
+ message: string;
1725
+ statusCode: number;
1726
+ timestamp: string;
1727
1727
  details?: unknown;
1728
1728
  correlationId?: string | undefined;
1729
1729
  }, {
1730
- statusCode: number;
1731
- message: string;
1732
1730
  code: string;
1733
- timestamp: string;
1734
1731
  path: string;
1732
+ message: string;
1733
+ statusCode: number;
1734
+ timestamp: string;
1735
1735
  details?: unknown;
1736
1736
  correlationId?: string | undefined;
1737
1737
  }>;
@@ -1777,19 +1777,19 @@ export declare const bookingsContractRouter: {
1777
1777
  path: z.ZodString;
1778
1778
  correlationId: z.ZodOptional<z.ZodString>;
1779
1779
  }, "strip", z.ZodTypeAny, {
1780
- statusCode: number;
1781
- message: string;
1782
1780
  code: string;
1783
- timestamp: string;
1784
1781
  path: string;
1782
+ message: string;
1783
+ statusCode: number;
1784
+ timestamp: string;
1785
1785
  details?: unknown;
1786
1786
  correlationId?: string | undefined;
1787
1787
  }, {
1788
- statusCode: number;
1789
- message: string;
1790
1788
  code: string;
1791
- timestamp: string;
1792
1789
  path: string;
1790
+ message: string;
1791
+ statusCode: number;
1792
+ timestamp: string;
1793
1793
  details?: unknown;
1794
1794
  correlationId?: string | undefined;
1795
1795
  }>;
@@ -1802,19 +1802,19 @@ export declare const bookingsContractRouter: {
1802
1802
  path: z.ZodString;
1803
1803
  correlationId: z.ZodOptional<z.ZodString>;
1804
1804
  }, "strip", z.ZodTypeAny, {
1805
- statusCode: number;
1806
- message: string;
1807
1805
  code: string;
1808
- timestamp: string;
1809
1806
  path: string;
1807
+ message: string;
1808
+ statusCode: number;
1809
+ timestamp: string;
1810
1810
  details?: unknown;
1811
1811
  correlationId?: string | undefined;
1812
1812
  }, {
1813
- statusCode: number;
1814
- message: string;
1815
1813
  code: string;
1816
- timestamp: string;
1817
1814
  path: string;
1815
+ message: string;
1816
+ statusCode: number;
1817
+ timestamp: string;
1818
1818
  details?: unknown;
1819
1819
  correlationId?: string | undefined;
1820
1820
  }>;
@@ -1827,19 +1827,19 @@ export declare const bookingsContractRouter: {
1827
1827
  path: z.ZodString;
1828
1828
  correlationId: z.ZodOptional<z.ZodString>;
1829
1829
  }, "strip", z.ZodTypeAny, {
1830
- statusCode: number;
1831
- message: string;
1832
1830
  code: string;
1833
- timestamp: string;
1834
1831
  path: string;
1832
+ message: string;
1833
+ statusCode: number;
1834
+ timestamp: string;
1835
1835
  details?: unknown;
1836
1836
  correlationId?: string | undefined;
1837
1837
  }, {
1838
- statusCode: number;
1839
- message: string;
1840
1838
  code: string;
1841
- timestamp: string;
1842
1839
  path: string;
1840
+ message: string;
1841
+ statusCode: number;
1842
+ timestamp: string;
1843
1843
  details?: unknown;
1844
1844
  correlationId?: string | undefined;
1845
1845
  }>;
@@ -1852,19 +1852,19 @@ export declare const bookingsContractRouter: {
1852
1852
  path: z.ZodString;
1853
1853
  correlationId: z.ZodOptional<z.ZodString>;
1854
1854
  }, "strip", z.ZodTypeAny, {
1855
- statusCode: number;
1856
- message: string;
1857
1855
  code: string;
1858
- timestamp: string;
1859
1856
  path: string;
1857
+ message: string;
1858
+ statusCode: number;
1859
+ timestamp: string;
1860
1860
  details?: unknown;
1861
1861
  correlationId?: string | undefined;
1862
1862
  }, {
1863
- statusCode: number;
1864
- message: string;
1865
1863
  code: string;
1866
- timestamp: string;
1867
1864
  path: string;
1865
+ message: string;
1866
+ statusCode: number;
1867
+ timestamp: string;
1868
1868
  details?: unknown;
1869
1869
  correlationId?: string | undefined;
1870
1870
  }>;
@@ -1914,32 +1914,33 @@ export declare const bookingsContractRouter: {
1914
1914
  }>;
1915
1915
  job: z.ZodObject<{
1916
1916
  id: z.ZodString;
1917
- title: z.ZodString;
1917
+ description: z.ZodString;
1918
1918
  }, "strip", z.ZodTypeAny, {
1919
1919
  id: string;
1920
- title: string;
1920
+ description: string;
1921
1921
  }, {
1922
1922
  id: string;
1923
- title: string;
1923
+ description: string;
1924
1924
  }>;
1925
1925
  userId: z.ZodString;
1926
1926
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1927
1927
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1928
1928
  }, "strip", z.ZodTypeAny, {
1929
1929
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
1930
- id: string;
1930
+ startDate: string;
1931
1931
  createdAt: string;
1932
1932
  updatedAt: string;
1933
- pay: {
1934
- rate: number;
1935
- unit: "DAILY" | "HOURLY";
1936
- };
1937
- startDate: string;
1933
+ id: string;
1938
1934
  worker: {
1939
1935
  id: string;
1940
1936
  firstName: string;
1941
1937
  lastName: string;
1942
1938
  };
1939
+ pay: {
1940
+ rate: number;
1941
+ unit: "DAILY" | "HOURLY";
1942
+ };
1943
+ userId: string;
1943
1944
  user: {
1944
1945
  id: string;
1945
1946
  firstName: string;
@@ -1948,25 +1949,25 @@ export declare const bookingsContractRouter: {
1948
1949
  };
1949
1950
  job: {
1950
1951
  id: string;
1951
- title: string;
1952
+ description: string;
1952
1953
  };
1953
- userId: string;
1954
1954
  endDate?: string | null | undefined;
1955
1955
  }, {
1956
1956
  status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "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";
1957
- id: string;
1957
+ startDate: string | Date;
1958
1958
  createdAt: string | Date;
1959
1959
  updatedAt: string | Date;
1960
- pay: {
1961
- rate: number;
1962
- unit: "DAILY" | "HOURLY";
1963
- };
1964
- startDate: string | Date;
1960
+ id: string;
1965
1961
  worker: {
1966
1962
  id: string;
1967
1963
  firstName: string;
1968
1964
  lastName: string;
1969
1965
  };
1966
+ pay: {
1967
+ rate: number;
1968
+ unit: "DAILY" | "HOURLY";
1969
+ };
1970
+ userId: string;
1970
1971
  user: {
1971
1972
  id: string;
1972
1973
  firstName: string;
@@ -1975,9 +1976,8 @@ export declare const bookingsContractRouter: {
1975
1976
  };
1976
1977
  job: {
1977
1978
  id: string;
1978
- title: string;
1979
+ description: string;
1979
1980
  };
1980
- userId: string;
1981
1981
  endDate?: string | Date | null | undefined;
1982
1982
  }>;
1983
1983
  404: z.ZodObject<{
@@ -1989,19 +1989,19 @@ export declare const bookingsContractRouter: {
1989
1989
  path: z.ZodString;
1990
1990
  correlationId: z.ZodOptional<z.ZodString>;
1991
1991
  }, "strip", z.ZodTypeAny, {
1992
- statusCode: number;
1993
- message: string;
1994
1992
  code: string;
1995
- timestamp: string;
1996
1993
  path: string;
1994
+ message: string;
1995
+ statusCode: number;
1996
+ timestamp: string;
1997
1997
  details?: unknown;
1998
1998
  correlationId?: string | undefined;
1999
1999
  }, {
2000
- statusCode: number;
2001
- message: string;
2002
2000
  code: string;
2003
- timestamp: string;
2004
2001
  path: string;
2002
+ message: string;
2003
+ statusCode: number;
2004
+ timestamp: string;
2005
2005
  details?: unknown;
2006
2006
  correlationId?: string | undefined;
2007
2007
  }>;
@@ -2014,19 +2014,19 @@ export declare const bookingsContractRouter: {
2014
2014
  path: z.ZodString;
2015
2015
  correlationId: z.ZodOptional<z.ZodString>;
2016
2016
  }, "strip", z.ZodTypeAny, {
2017
- statusCode: number;
2018
- message: string;
2019
2017
  code: string;
2020
- timestamp: string;
2021
2018
  path: string;
2019
+ message: string;
2020
+ statusCode: number;
2021
+ timestamp: string;
2022
2022
  details?: unknown;
2023
2023
  correlationId?: string | undefined;
2024
2024
  }, {
2025
- statusCode: number;
2026
- message: string;
2027
2025
  code: string;
2028
- timestamp: string;
2029
2026
  path: string;
2027
+ message: string;
2028
+ statusCode: number;
2029
+ timestamp: string;
2030
2030
  details?: unknown;
2031
2031
  correlationId?: string | undefined;
2032
2032
  }>;
@@ -2060,19 +2060,19 @@ export declare const bookingsContractRouter: {
2060
2060
  path: z.ZodString;
2061
2061
  correlationId: z.ZodOptional<z.ZodString>;
2062
2062
  }, "strip", z.ZodTypeAny, {
2063
- statusCode: number;
2064
- message: string;
2065
2063
  code: string;
2066
- timestamp: string;
2067
2064
  path: string;
2065
+ message: string;
2066
+ statusCode: number;
2067
+ timestamp: string;
2068
2068
  details?: unknown;
2069
2069
  correlationId?: string | undefined;
2070
2070
  }, {
2071
- statusCode: number;
2072
- message: string;
2073
2071
  code: string;
2074
- timestamp: string;
2075
2072
  path: string;
2073
+ message: string;
2074
+ statusCode: number;
2075
+ timestamp: string;
2076
2076
  details?: unknown;
2077
2077
  correlationId?: string | undefined;
2078
2078
  }>;
@@ -2085,19 +2085,19 @@ export declare const bookingsContractRouter: {
2085
2085
  path: z.ZodString;
2086
2086
  correlationId: z.ZodOptional<z.ZodString>;
2087
2087
  }, "strip", z.ZodTypeAny, {
2088
- statusCode: number;
2089
- message: string;
2090
2088
  code: string;
2091
- timestamp: string;
2092
2089
  path: string;
2090
+ message: string;
2091
+ statusCode: number;
2092
+ timestamp: string;
2093
2093
  details?: unknown;
2094
2094
  correlationId?: string | undefined;
2095
2095
  }, {
2096
- statusCode: number;
2097
- message: string;
2098
2096
  code: string;
2099
- timestamp: string;
2100
2097
  path: string;
2098
+ message: string;
2099
+ statusCode: number;
2100
+ timestamp: string;
2101
2101
  details?: unknown;
2102
2102
  correlationId?: string | undefined;
2103
2103
  }>;
@@ -2110,19 +2110,19 @@ export declare const bookingsContractRouter: {
2110
2110
  path: z.ZodString;
2111
2111
  correlationId: z.ZodOptional<z.ZodString>;
2112
2112
  }, "strip", z.ZodTypeAny, {
2113
- statusCode: number;
2114
- message: string;
2115
2113
  code: string;
2116
- timestamp: string;
2117
2114
  path: string;
2115
+ message: string;
2116
+ statusCode: number;
2117
+ timestamp: string;
2118
2118
  details?: unknown;
2119
2119
  correlationId?: string | undefined;
2120
2120
  }, {
2121
- statusCode: number;
2122
- message: string;
2123
2121
  code: string;
2124
- timestamp: string;
2125
2122
  path: string;
2123
+ message: string;
2124
+ statusCode: number;
2125
+ timestamp: string;
2126
2126
  details?: unknown;
2127
2127
  correlationId?: string | undefined;
2128
2128
  }>;
@@ -2135,19 +2135,19 @@ export declare const bookingsContractRouter: {
2135
2135
  path: z.ZodString;
2136
2136
  correlationId: z.ZodOptional<z.ZodString>;
2137
2137
  }, "strip", z.ZodTypeAny, {
2138
- statusCode: number;
2139
- message: string;
2140
2138
  code: string;
2141
- timestamp: string;
2142
2139
  path: string;
2140
+ message: string;
2141
+ statusCode: number;
2142
+ timestamp: string;
2143
2143
  details?: unknown;
2144
2144
  correlationId?: string | undefined;
2145
2145
  }, {
2146
- statusCode: number;
2147
- message: string;
2148
2146
  code: string;
2149
- timestamp: string;
2150
2147
  path: string;
2148
+ message: string;
2149
+ statusCode: number;
2150
+ timestamp: string;
2151
2151
  details?: unknown;
2152
2152
  correlationId?: string | undefined;
2153
2153
  }>;
@@ -2161,19 +2161,19 @@ export declare const bookingsContractRouter: {
2161
2161
  path: z.ZodString;
2162
2162
  correlationId: z.ZodOptional<z.ZodString>;
2163
2163
  }, "strip", z.ZodTypeAny, {
2164
- statusCode: number;
2165
- message: string;
2166
2164
  code: string;
2167
- timestamp: string;
2168
2165
  path: string;
2166
+ message: string;
2167
+ statusCode: number;
2168
+ timestamp: string;
2169
2169
  details?: unknown;
2170
2170
  correlationId?: string | undefined;
2171
2171
  }, {
2172
- statusCode: number;
2173
- message: string;
2174
2172
  code: string;
2175
- timestamp: string;
2176
2173
  path: string;
2174
+ message: string;
2175
+ statusCode: number;
2176
+ timestamp: string;
2177
2177
  details?: unknown;
2178
2178
  correlationId?: string | undefined;
2179
2179
  }>;