@dakkitor/api-contracts 1.1.13 → 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.
@@ -24,15 +24,119 @@ export declare const ActiveSchema: z.ZodObject<{
24
24
  hoursWorkedUpdatedAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>;
25
25
  booking: z.ZodObject<{
26
26
  id: z.ZodString;
27
+ status: z.ZodEnum<["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"]>;
28
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
29
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
30
+ worker: z.ZodObject<{
31
+ id: z.ZodString;
32
+ firstName: z.ZodString;
33
+ lastName: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ id: string;
36
+ firstName: string;
37
+ lastName: string;
38
+ }, {
39
+ id: string;
40
+ firstName: string;
41
+ lastName: string;
42
+ }>;
43
+ user: z.ZodObject<{
44
+ id: z.ZodString;
45
+ firstName: z.ZodString;
46
+ lastName: z.ZodString;
47
+ email: z.ZodString;
48
+ }, "strip", z.ZodTypeAny, {
49
+ id: string;
50
+ firstName: string;
51
+ lastName: string;
52
+ email: string;
53
+ }, {
54
+ id: string;
55
+ firstName: string;
56
+ lastName: string;
57
+ email: string;
58
+ }>;
59
+ pay: z.ZodObject<{
60
+ rate: z.ZodNumber;
61
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ rate: number;
64
+ unit: "DAILY" | "HOURLY";
65
+ }, {
66
+ rate: number;
67
+ unit: "DAILY" | "HOURLY";
68
+ }>;
69
+ job: z.ZodObject<{
70
+ id: z.ZodString;
71
+ description: z.ZodString;
72
+ }, "strip", z.ZodTypeAny, {
73
+ id: string;
74
+ description: string;
75
+ }, {
76
+ id: string;
77
+ description: string;
78
+ }>;
79
+ userId: z.ZodString;
80
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
81
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
27
82
  }, "strip", z.ZodTypeAny, {
83
+ 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";
84
+ startDate: string;
85
+ createdAt: string;
86
+ updatedAt: string;
28
87
  id: string;
88
+ worker: {
89
+ id: string;
90
+ firstName: string;
91
+ lastName: string;
92
+ };
93
+ pay: {
94
+ rate: number;
95
+ unit: "DAILY" | "HOURLY";
96
+ };
97
+ userId: string;
98
+ user: {
99
+ id: string;
100
+ firstName: string;
101
+ lastName: string;
102
+ email: string;
103
+ };
104
+ job: {
105
+ id: string;
106
+ description: string;
107
+ };
108
+ endDate?: string | null | undefined;
29
109
  }, {
110
+ 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";
111
+ startDate: string | Date;
112
+ createdAt: string | Date;
113
+ updatedAt: string | Date;
30
114
  id: string;
115
+ worker: {
116
+ id: string;
117
+ firstName: string;
118
+ lastName: string;
119
+ };
120
+ pay: {
121
+ rate: number;
122
+ unit: "DAILY" | "HOURLY";
123
+ };
124
+ userId: string;
125
+ user: {
126
+ id: string;
127
+ firstName: string;
128
+ lastName: string;
129
+ email: string;
130
+ };
131
+ job: {
132
+ id: string;
133
+ description: string;
134
+ };
135
+ endDate?: string | Date | null | undefined;
31
136
  }>;
32
137
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
33
138
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
34
139
  }, "strip", z.ZodTypeAny, {
35
- date: string;
36
140
  createdAt: string;
37
141
  updatedAt: string;
38
142
  id: string;
@@ -40,6 +144,7 @@ export declare const ActiveSchema: z.ZodObject<{
40
144
  rate: number;
41
145
  unit: "DAILY" | "HOURLY";
42
146
  };
147
+ date: string;
43
148
  comment: string | null;
44
149
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
45
150
  statusSaUpdatedAt: string | null;
@@ -48,10 +153,34 @@ export declare const ActiveSchema: z.ZodObject<{
48
153
  hoursWorked: number | null;
49
154
  hoursWorkedUpdatedAt: string | null;
50
155
  booking: {
156
+ 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";
157
+ startDate: string;
158
+ createdAt: string;
159
+ updatedAt: string;
51
160
  id: string;
161
+ worker: {
162
+ id: string;
163
+ firstName: string;
164
+ lastName: string;
165
+ };
166
+ pay: {
167
+ rate: number;
168
+ unit: "DAILY" | "HOURLY";
169
+ };
170
+ userId: string;
171
+ user: {
172
+ id: string;
173
+ firstName: string;
174
+ lastName: string;
175
+ email: string;
176
+ };
177
+ job: {
178
+ id: string;
179
+ description: string;
180
+ };
181
+ endDate?: string | null | undefined;
52
182
  };
53
183
  }, {
54
- date: string | Date;
55
184
  createdAt: string | Date;
56
185
  updatedAt: string | Date;
57
186
  id: string;
@@ -59,6 +188,7 @@ export declare const ActiveSchema: z.ZodObject<{
59
188
  rate: number;
60
189
  unit: "DAILY" | "HOURLY";
61
190
  };
191
+ date: string | Date;
62
192
  comment: string | null;
63
193
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
64
194
  statusSaUpdatedAt: string | Date | null;
@@ -67,7 +197,32 @@ export declare const ActiveSchema: z.ZodObject<{
67
197
  hoursWorked: number | null;
68
198
  hoursWorkedUpdatedAt: string | Date | null;
69
199
  booking: {
200
+ 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";
201
+ startDate: string | Date;
202
+ createdAt: string | Date;
203
+ updatedAt: string | Date;
70
204
  id: string;
205
+ worker: {
206
+ id: string;
207
+ firstName: string;
208
+ lastName: string;
209
+ };
210
+ pay: {
211
+ rate: number;
212
+ unit: "DAILY" | "HOURLY";
213
+ };
214
+ userId: string;
215
+ user: {
216
+ id: string;
217
+ firstName: string;
218
+ lastName: string;
219
+ email: string;
220
+ };
221
+ job: {
222
+ id: string;
223
+ description: string;
224
+ };
225
+ endDate?: string | Date | null | undefined;
71
226
  };
72
227
  }>;
73
228
  export declare const CreateActiveSchema: z.ZodObject<{
@@ -86,20 +241,20 @@ export declare const CreateActiveSchema: z.ZodObject<{
86
241
  statusSa: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
87
242
  statusFa: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
88
243
  }, "strip", z.ZodTypeAny, {
89
- date: string;
90
244
  pay: {
91
245
  rate: number;
92
246
  unit: "DAILY" | "HOURLY";
93
247
  };
248
+ date: string;
94
249
  comment?: string | undefined;
95
250
  statusSa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
96
251
  statusFa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
97
252
  }, {
98
- date: string;
99
253
  pay: {
100
254
  rate: number;
101
255
  unit: "DAILY" | "HOURLY";
102
256
  };
257
+ date: string;
103
258
  comment?: string | undefined;
104
259
  statusSa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
105
260
  statusFa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
@@ -188,10 +343,6 @@ export declare const FilterActiveSchema: z.ZodObject<{
188
343
  }, "strip", z.ZodTypeAny, {
189
344
  limit: number;
190
345
  page: number;
191
- date?: {
192
- from?: string | null | undefined;
193
- to?: string | null | undefined;
194
- } | null | undefined;
195
346
  status?: {
196
347
  filterType: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER";
197
348
  status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
@@ -204,14 +355,14 @@ export declare const FilterActiveSchema: z.ZodObject<{
204
355
  min?: number | undefined;
205
356
  max?: number | undefined;
206
357
  } | null | undefined;
207
- bookingId?: string | null | undefined;
208
- sortBy?: "date" | "payRate" | "status" | "createdAt" | "updatedAt" | null | undefined;
358
+ sortBy?: "status" | "createdAt" | "updatedAt" | "date" | "payRate" | null | undefined;
209
359
  sortOrder?: "ASC" | "DESC" | null | undefined;
210
- }, {
211
360
  date?: {
212
361
  from?: string | null | undefined;
213
362
  to?: string | null | undefined;
214
363
  } | null | undefined;
364
+ bookingId?: string | null | undefined;
365
+ }, {
215
366
  status?: {
216
367
  status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
217
368
  filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
@@ -226,9 +377,13 @@ export declare const FilterActiveSchema: z.ZodObject<{
226
377
  } | null | undefined;
227
378
  limit?: number | undefined;
228
379
  page?: number | undefined;
229
- bookingId?: string | null | undefined;
230
- sortBy?: "date" | "payRate" | "status" | "createdAt" | "updatedAt" | null | undefined;
380
+ sortBy?: "status" | "createdAt" | "updatedAt" | "date" | "payRate" | null | undefined;
231
381
  sortOrder?: "ASC" | "DESC" | null | undefined;
382
+ date?: {
383
+ from?: string | null | undefined;
384
+ to?: string | null | undefined;
385
+ } | null | undefined;
386
+ bookingId?: string | null | undefined;
232
387
  }>;
233
388
  export declare const PaginatedActiveResponseSchema: z.ZodObject<{
234
389
  items: z.ZodArray<z.ZodObject<{
@@ -253,15 +408,119 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
253
408
  hoursWorkedUpdatedAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>;
254
409
  booking: z.ZodObject<{
255
410
  id: z.ZodString;
411
+ status: z.ZodEnum<["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"]>;
412
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
413
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
414
+ worker: z.ZodObject<{
415
+ id: z.ZodString;
416
+ firstName: z.ZodString;
417
+ lastName: z.ZodString;
418
+ }, "strip", z.ZodTypeAny, {
419
+ id: string;
420
+ firstName: string;
421
+ lastName: string;
422
+ }, {
423
+ id: string;
424
+ firstName: string;
425
+ lastName: string;
426
+ }>;
427
+ user: z.ZodObject<{
428
+ id: z.ZodString;
429
+ firstName: z.ZodString;
430
+ lastName: z.ZodString;
431
+ email: z.ZodString;
432
+ }, "strip", z.ZodTypeAny, {
433
+ id: string;
434
+ firstName: string;
435
+ lastName: string;
436
+ email: string;
437
+ }, {
438
+ id: string;
439
+ firstName: string;
440
+ lastName: string;
441
+ email: string;
442
+ }>;
443
+ pay: z.ZodObject<{
444
+ rate: z.ZodNumber;
445
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ rate: number;
448
+ unit: "DAILY" | "HOURLY";
449
+ }, {
450
+ rate: number;
451
+ unit: "DAILY" | "HOURLY";
452
+ }>;
453
+ job: z.ZodObject<{
454
+ id: z.ZodString;
455
+ description: z.ZodString;
456
+ }, "strip", z.ZodTypeAny, {
457
+ id: string;
458
+ description: string;
459
+ }, {
460
+ id: string;
461
+ description: string;
462
+ }>;
463
+ userId: z.ZodString;
464
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
465
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
256
466
  }, "strip", z.ZodTypeAny, {
467
+ 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";
468
+ startDate: string;
469
+ createdAt: string;
470
+ updatedAt: string;
257
471
  id: string;
472
+ worker: {
473
+ id: string;
474
+ firstName: string;
475
+ lastName: string;
476
+ };
477
+ pay: {
478
+ rate: number;
479
+ unit: "DAILY" | "HOURLY";
480
+ };
481
+ userId: string;
482
+ user: {
483
+ id: string;
484
+ firstName: string;
485
+ lastName: string;
486
+ email: string;
487
+ };
488
+ job: {
489
+ id: string;
490
+ description: string;
491
+ };
492
+ endDate?: string | null | undefined;
258
493
  }, {
494
+ 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";
495
+ startDate: string | Date;
496
+ createdAt: string | Date;
497
+ updatedAt: string | Date;
259
498
  id: string;
499
+ worker: {
500
+ id: string;
501
+ firstName: string;
502
+ lastName: string;
503
+ };
504
+ pay: {
505
+ rate: number;
506
+ unit: "DAILY" | "HOURLY";
507
+ };
508
+ userId: string;
509
+ user: {
510
+ id: string;
511
+ firstName: string;
512
+ lastName: string;
513
+ email: string;
514
+ };
515
+ job: {
516
+ id: string;
517
+ description: string;
518
+ };
519
+ endDate?: string | Date | null | undefined;
260
520
  }>;
261
521
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
262
522
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
263
523
  }, "strip", z.ZodTypeAny, {
264
- date: string;
265
524
  createdAt: string;
266
525
  updatedAt: string;
267
526
  id: string;
@@ -269,6 +528,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
269
528
  rate: number;
270
529
  unit: "DAILY" | "HOURLY";
271
530
  };
531
+ date: string;
272
532
  comment: string | null;
273
533
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
274
534
  statusSaUpdatedAt: string | null;
@@ -277,10 +537,34 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
277
537
  hoursWorked: number | null;
278
538
  hoursWorkedUpdatedAt: string | null;
279
539
  booking: {
540
+ 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";
541
+ startDate: string;
542
+ createdAt: string;
543
+ updatedAt: string;
280
544
  id: string;
545
+ worker: {
546
+ id: string;
547
+ firstName: string;
548
+ lastName: string;
549
+ };
550
+ pay: {
551
+ rate: number;
552
+ unit: "DAILY" | "HOURLY";
553
+ };
554
+ userId: string;
555
+ user: {
556
+ id: string;
557
+ firstName: string;
558
+ lastName: string;
559
+ email: string;
560
+ };
561
+ job: {
562
+ id: string;
563
+ description: string;
564
+ };
565
+ endDate?: string | null | undefined;
281
566
  };
282
567
  }, {
283
- date: string | Date;
284
568
  createdAt: string | Date;
285
569
  updatedAt: string | Date;
286
570
  id: string;
@@ -288,6 +572,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
288
572
  rate: number;
289
573
  unit: "DAILY" | "HOURLY";
290
574
  };
575
+ date: string | Date;
291
576
  comment: string | null;
292
577
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
293
578
  statusSaUpdatedAt: string | Date | null;
@@ -296,7 +581,32 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
296
581
  hoursWorked: number | null;
297
582
  hoursWorkedUpdatedAt: string | Date | null;
298
583
  booking: {
584
+ 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";
585
+ startDate: string | Date;
586
+ createdAt: string | Date;
587
+ updatedAt: string | Date;
299
588
  id: string;
589
+ worker: {
590
+ id: string;
591
+ firstName: string;
592
+ lastName: string;
593
+ };
594
+ pay: {
595
+ rate: number;
596
+ unit: "DAILY" | "HOURLY";
597
+ };
598
+ userId: string;
599
+ user: {
600
+ id: string;
601
+ firstName: string;
602
+ lastName: string;
603
+ email: string;
604
+ };
605
+ job: {
606
+ id: string;
607
+ description: string;
608
+ };
609
+ endDate?: string | Date | null | undefined;
300
610
  };
301
611
  }>, "many">;
302
612
  totalCount: z.ZodNumber;
@@ -307,7 +617,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
307
617
  }, "strip", z.ZodTypeAny, {
308
618
  limit: number;
309
619
  items: {
310
- date: string;
311
620
  createdAt: string;
312
621
  updatedAt: string;
313
622
  id: string;
@@ -315,6 +624,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
315
624
  rate: number;
316
625
  unit: "DAILY" | "HOURLY";
317
626
  };
627
+ date: string;
318
628
  comment: string | null;
319
629
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
320
630
  statusSaUpdatedAt: string | null;
@@ -323,7 +633,32 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
323
633
  hoursWorked: number | null;
324
634
  hoursWorkedUpdatedAt: string | null;
325
635
  booking: {
636
+ 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";
637
+ startDate: string;
638
+ createdAt: string;
639
+ updatedAt: string;
326
640
  id: string;
641
+ worker: {
642
+ id: string;
643
+ firstName: string;
644
+ lastName: string;
645
+ };
646
+ pay: {
647
+ rate: number;
648
+ unit: "DAILY" | "HOURLY";
649
+ };
650
+ userId: string;
651
+ user: {
652
+ id: string;
653
+ firstName: string;
654
+ lastName: string;
655
+ email: string;
656
+ };
657
+ job: {
658
+ id: string;
659
+ description: string;
660
+ };
661
+ endDate?: string | null | undefined;
327
662
  };
328
663
  }[];
329
664
  totalCount: number;
@@ -333,7 +668,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
333
668
  }, {
334
669
  limit: number;
335
670
  items: {
336
- date: string | Date;
337
671
  createdAt: string | Date;
338
672
  updatedAt: string | Date;
339
673
  id: string;
@@ -341,6 +675,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
341
675
  rate: number;
342
676
  unit: "DAILY" | "HOURLY";
343
677
  };
678
+ date: string | Date;
344
679
  comment: string | null;
345
680
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
346
681
  statusSaUpdatedAt: string | Date | null;
@@ -349,7 +684,32 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
349
684
  hoursWorked: number | null;
350
685
  hoursWorkedUpdatedAt: string | Date | null;
351
686
  booking: {
687
+ 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";
688
+ startDate: string | Date;
689
+ createdAt: string | Date;
690
+ updatedAt: string | Date;
352
691
  id: string;
692
+ worker: {
693
+ id: string;
694
+ firstName: string;
695
+ lastName: string;
696
+ };
697
+ pay: {
698
+ rate: number;
699
+ unit: "DAILY" | "HOURLY";
700
+ };
701
+ userId: string;
702
+ user: {
703
+ id: string;
704
+ firstName: string;
705
+ lastName: string;
706
+ email: string;
707
+ };
708
+ job: {
709
+ id: string;
710
+ description: string;
711
+ };
712
+ endDate?: string | Date | null | undefined;
353
713
  };
354
714
  }[];
355
715
  totalCount: number;
@@ -398,20 +758,20 @@ export declare const activesContractRouter: {
398
758
  statusSa: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
399
759
  statusFa: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
400
760
  }, "strip", z.ZodTypeAny, {
401
- date: string;
402
761
  pay: {
403
762
  rate: number;
404
763
  unit: "DAILY" | "HOURLY";
405
764
  };
765
+ date: string;
406
766
  comment?: string | undefined;
407
767
  statusSa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
408
768
  statusFa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
409
769
  }, {
410
- date: string;
411
770
  pay: {
412
771
  rate: number;
413
772
  unit: "DAILY" | "HOURLY";
414
773
  };
774
+ date: string;
415
775
  comment?: string | undefined;
416
776
  statusSa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
417
777
  statusFa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
@@ -540,15 +900,119 @@ export declare const activesContractRouter: {
540
900
  hoursWorkedUpdatedAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>;
541
901
  booking: z.ZodObject<{
542
902
  id: z.ZodString;
903
+ status: z.ZodEnum<["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"]>;
904
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
905
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
906
+ worker: z.ZodObject<{
907
+ id: z.ZodString;
908
+ firstName: z.ZodString;
909
+ lastName: z.ZodString;
910
+ }, "strip", z.ZodTypeAny, {
911
+ id: string;
912
+ firstName: string;
913
+ lastName: string;
914
+ }, {
915
+ id: string;
916
+ firstName: string;
917
+ lastName: string;
918
+ }>;
919
+ user: z.ZodObject<{
920
+ id: z.ZodString;
921
+ firstName: z.ZodString;
922
+ lastName: z.ZodString;
923
+ email: z.ZodString;
924
+ }, "strip", z.ZodTypeAny, {
925
+ id: string;
926
+ firstName: string;
927
+ lastName: string;
928
+ email: string;
929
+ }, {
930
+ id: string;
931
+ firstName: string;
932
+ lastName: string;
933
+ email: string;
934
+ }>;
935
+ pay: z.ZodObject<{
936
+ rate: z.ZodNumber;
937
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
938
+ }, "strip", z.ZodTypeAny, {
939
+ rate: number;
940
+ unit: "DAILY" | "HOURLY";
941
+ }, {
942
+ rate: number;
943
+ unit: "DAILY" | "HOURLY";
944
+ }>;
945
+ job: z.ZodObject<{
946
+ id: z.ZodString;
947
+ description: z.ZodString;
948
+ }, "strip", z.ZodTypeAny, {
949
+ id: string;
950
+ description: string;
951
+ }, {
952
+ id: string;
953
+ description: string;
954
+ }>;
955
+ userId: z.ZodString;
956
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
957
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
543
958
  }, "strip", z.ZodTypeAny, {
959
+ 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";
960
+ startDate: string;
961
+ createdAt: string;
962
+ updatedAt: string;
544
963
  id: string;
964
+ worker: {
965
+ id: string;
966
+ firstName: string;
967
+ lastName: string;
968
+ };
969
+ pay: {
970
+ rate: number;
971
+ unit: "DAILY" | "HOURLY";
972
+ };
973
+ userId: string;
974
+ user: {
975
+ id: string;
976
+ firstName: string;
977
+ lastName: string;
978
+ email: string;
979
+ };
980
+ job: {
981
+ id: string;
982
+ description: string;
983
+ };
984
+ endDate?: string | null | undefined;
545
985
  }, {
986
+ 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";
987
+ startDate: string | Date;
988
+ createdAt: string | Date;
989
+ updatedAt: string | Date;
546
990
  id: string;
991
+ worker: {
992
+ id: string;
993
+ firstName: string;
994
+ lastName: string;
995
+ };
996
+ pay: {
997
+ rate: number;
998
+ unit: "DAILY" | "HOURLY";
999
+ };
1000
+ userId: string;
1001
+ user: {
1002
+ id: string;
1003
+ firstName: string;
1004
+ lastName: string;
1005
+ email: string;
1006
+ };
1007
+ job: {
1008
+ id: string;
1009
+ description: string;
1010
+ };
1011
+ endDate?: string | Date | null | undefined;
547
1012
  }>;
548
1013
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
549
1014
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
550
1015
  }, "strip", z.ZodTypeAny, {
551
- date: string;
552
1016
  createdAt: string;
553
1017
  updatedAt: string;
554
1018
  id: string;
@@ -556,6 +1020,7 @@ export declare const activesContractRouter: {
556
1020
  rate: number;
557
1021
  unit: "DAILY" | "HOURLY";
558
1022
  };
1023
+ date: string;
559
1024
  comment: string | null;
560
1025
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
561
1026
  statusSaUpdatedAt: string | null;
@@ -564,10 +1029,34 @@ export declare const activesContractRouter: {
564
1029
  hoursWorked: number | null;
565
1030
  hoursWorkedUpdatedAt: string | null;
566
1031
  booking: {
1032
+ 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";
1033
+ startDate: string;
1034
+ createdAt: string;
1035
+ updatedAt: string;
567
1036
  id: string;
1037
+ worker: {
1038
+ id: string;
1039
+ firstName: string;
1040
+ lastName: string;
1041
+ };
1042
+ pay: {
1043
+ rate: number;
1044
+ unit: "DAILY" | "HOURLY";
1045
+ };
1046
+ userId: string;
1047
+ user: {
1048
+ id: string;
1049
+ firstName: string;
1050
+ lastName: string;
1051
+ email: string;
1052
+ };
1053
+ job: {
1054
+ id: string;
1055
+ description: string;
1056
+ };
1057
+ endDate?: string | null | undefined;
568
1058
  };
569
1059
  }, {
570
- date: string | Date;
571
1060
  createdAt: string | Date;
572
1061
  updatedAt: string | Date;
573
1062
  id: string;
@@ -575,6 +1064,7 @@ export declare const activesContractRouter: {
575
1064
  rate: number;
576
1065
  unit: "DAILY" | "HOURLY";
577
1066
  };
1067
+ date: string | Date;
578
1068
  comment: string | null;
579
1069
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
580
1070
  statusSaUpdatedAt: string | Date | null;
@@ -583,7 +1073,32 @@ export declare const activesContractRouter: {
583
1073
  hoursWorked: number | null;
584
1074
  hoursWorkedUpdatedAt: string | Date | null;
585
1075
  booking: {
1076
+ 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";
1077
+ startDate: string | Date;
1078
+ createdAt: string | Date;
1079
+ updatedAt: string | Date;
586
1080
  id: string;
1081
+ worker: {
1082
+ id: string;
1083
+ firstName: string;
1084
+ lastName: string;
1085
+ };
1086
+ pay: {
1087
+ rate: number;
1088
+ unit: "DAILY" | "HOURLY";
1089
+ };
1090
+ userId: string;
1091
+ user: {
1092
+ id: string;
1093
+ firstName: string;
1094
+ lastName: string;
1095
+ email: string;
1096
+ };
1097
+ job: {
1098
+ id: string;
1099
+ description: string;
1100
+ };
1101
+ endDate?: string | Date | null | undefined;
587
1102
  };
588
1103
  }>;
589
1104
  404: z.ZodObject<{
@@ -695,10 +1210,6 @@ export declare const activesContractRouter: {
695
1210
  }, "strip", z.ZodTypeAny, {
696
1211
  limit: number;
697
1212
  page: number;
698
- date?: {
699
- from?: string | null | undefined;
700
- to?: string | null | undefined;
701
- } | null | undefined;
702
1213
  status?: {
703
1214
  filterType: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER";
704
1215
  status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
@@ -711,14 +1222,14 @@ export declare const activesContractRouter: {
711
1222
  min?: number | undefined;
712
1223
  max?: number | undefined;
713
1224
  } | null | undefined;
714
- bookingId?: string | null | undefined;
715
- sortBy?: "date" | "payRate" | "status" | "createdAt" | "updatedAt" | null | undefined;
1225
+ sortBy?: "status" | "createdAt" | "updatedAt" | "date" | "payRate" | null | undefined;
716
1226
  sortOrder?: "ASC" | "DESC" | null | undefined;
717
- }, {
718
1227
  date?: {
719
1228
  from?: string | null | undefined;
720
1229
  to?: string | null | undefined;
721
1230
  } | null | undefined;
1231
+ bookingId?: string | null | undefined;
1232
+ }, {
722
1233
  status?: {
723
1234
  status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
724
1235
  filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
@@ -733,9 +1244,13 @@ export declare const activesContractRouter: {
733
1244
  } | null | undefined;
734
1245
  limit?: number | undefined;
735
1246
  page?: number | undefined;
736
- bookingId?: string | null | undefined;
737
- sortBy?: "date" | "payRate" | "status" | "createdAt" | "updatedAt" | null | undefined;
1247
+ sortBy?: "status" | "createdAt" | "updatedAt" | "date" | "payRate" | null | undefined;
738
1248
  sortOrder?: "ASC" | "DESC" | null | undefined;
1249
+ date?: {
1250
+ from?: string | null | undefined;
1251
+ to?: string | null | undefined;
1252
+ } | null | undefined;
1253
+ bookingId?: string | null | undefined;
739
1254
  }>;
740
1255
  summary: "Get all active records";
741
1256
  method: "GET";
@@ -864,15 +1379,119 @@ export declare const activesContractRouter: {
864
1379
  hoursWorkedUpdatedAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>;
865
1380
  booking: z.ZodObject<{
866
1381
  id: z.ZodString;
1382
+ status: z.ZodEnum<["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"]>;
1383
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1384
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1385
+ worker: z.ZodObject<{
1386
+ id: z.ZodString;
1387
+ firstName: z.ZodString;
1388
+ lastName: z.ZodString;
1389
+ }, "strip", z.ZodTypeAny, {
1390
+ id: string;
1391
+ firstName: string;
1392
+ lastName: string;
1393
+ }, {
1394
+ id: string;
1395
+ firstName: string;
1396
+ lastName: string;
1397
+ }>;
1398
+ user: z.ZodObject<{
1399
+ id: z.ZodString;
1400
+ firstName: z.ZodString;
1401
+ lastName: z.ZodString;
1402
+ email: z.ZodString;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ id: string;
1405
+ firstName: string;
1406
+ lastName: string;
1407
+ email: string;
1408
+ }, {
1409
+ id: string;
1410
+ firstName: string;
1411
+ lastName: string;
1412
+ email: string;
1413
+ }>;
1414
+ pay: z.ZodObject<{
1415
+ rate: z.ZodNumber;
1416
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
1417
+ }, "strip", z.ZodTypeAny, {
1418
+ rate: number;
1419
+ unit: "DAILY" | "HOURLY";
1420
+ }, {
1421
+ rate: number;
1422
+ unit: "DAILY" | "HOURLY";
1423
+ }>;
1424
+ job: z.ZodObject<{
1425
+ id: z.ZodString;
1426
+ description: z.ZodString;
1427
+ }, "strip", z.ZodTypeAny, {
1428
+ id: string;
1429
+ description: string;
1430
+ }, {
1431
+ id: string;
1432
+ description: string;
1433
+ }>;
1434
+ userId: z.ZodString;
1435
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1436
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
867
1437
  }, "strip", z.ZodTypeAny, {
1438
+ 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";
1439
+ startDate: string;
1440
+ createdAt: string;
1441
+ updatedAt: string;
868
1442
  id: string;
1443
+ worker: {
1444
+ id: string;
1445
+ firstName: string;
1446
+ lastName: string;
1447
+ };
1448
+ pay: {
1449
+ rate: number;
1450
+ unit: "DAILY" | "HOURLY";
1451
+ };
1452
+ userId: string;
1453
+ user: {
1454
+ id: string;
1455
+ firstName: string;
1456
+ lastName: string;
1457
+ email: string;
1458
+ };
1459
+ job: {
1460
+ id: string;
1461
+ description: string;
1462
+ };
1463
+ endDate?: string | null | undefined;
869
1464
  }, {
1465
+ 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";
1466
+ startDate: string | Date;
1467
+ createdAt: string | Date;
1468
+ updatedAt: string | Date;
870
1469
  id: string;
1470
+ worker: {
1471
+ id: string;
1472
+ firstName: string;
1473
+ lastName: string;
1474
+ };
1475
+ pay: {
1476
+ rate: number;
1477
+ unit: "DAILY" | "HOURLY";
1478
+ };
1479
+ userId: string;
1480
+ user: {
1481
+ id: string;
1482
+ firstName: string;
1483
+ lastName: string;
1484
+ email: string;
1485
+ };
1486
+ job: {
1487
+ id: string;
1488
+ description: string;
1489
+ };
1490
+ endDate?: string | Date | null | undefined;
871
1491
  }>;
872
1492
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
873
1493
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
874
1494
  }, "strip", z.ZodTypeAny, {
875
- date: string;
876
1495
  createdAt: string;
877
1496
  updatedAt: string;
878
1497
  id: string;
@@ -880,6 +1499,7 @@ export declare const activesContractRouter: {
880
1499
  rate: number;
881
1500
  unit: "DAILY" | "HOURLY";
882
1501
  };
1502
+ date: string;
883
1503
  comment: string | null;
884
1504
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
885
1505
  statusSaUpdatedAt: string | null;
@@ -888,10 +1508,34 @@ export declare const activesContractRouter: {
888
1508
  hoursWorked: number | null;
889
1509
  hoursWorkedUpdatedAt: string | null;
890
1510
  booking: {
1511
+ 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";
1512
+ startDate: string;
1513
+ createdAt: string;
1514
+ updatedAt: string;
891
1515
  id: string;
1516
+ worker: {
1517
+ id: string;
1518
+ firstName: string;
1519
+ lastName: string;
1520
+ };
1521
+ pay: {
1522
+ rate: number;
1523
+ unit: "DAILY" | "HOURLY";
1524
+ };
1525
+ userId: string;
1526
+ user: {
1527
+ id: string;
1528
+ firstName: string;
1529
+ lastName: string;
1530
+ email: string;
1531
+ };
1532
+ job: {
1533
+ id: string;
1534
+ description: string;
1535
+ };
1536
+ endDate?: string | null | undefined;
892
1537
  };
893
1538
  }, {
894
- date: string | Date;
895
1539
  createdAt: string | Date;
896
1540
  updatedAt: string | Date;
897
1541
  id: string;
@@ -899,6 +1543,7 @@ export declare const activesContractRouter: {
899
1543
  rate: number;
900
1544
  unit: "DAILY" | "HOURLY";
901
1545
  };
1546
+ date: string | Date;
902
1547
  comment: string | null;
903
1548
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
904
1549
  statusSaUpdatedAt: string | Date | null;
@@ -907,7 +1552,32 @@ export declare const activesContractRouter: {
907
1552
  hoursWorked: number | null;
908
1553
  hoursWorkedUpdatedAt: string | Date | null;
909
1554
  booking: {
1555
+ 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";
1556
+ startDate: string | Date;
1557
+ createdAt: string | Date;
1558
+ updatedAt: string | Date;
910
1559
  id: string;
1560
+ worker: {
1561
+ id: string;
1562
+ firstName: string;
1563
+ lastName: string;
1564
+ };
1565
+ pay: {
1566
+ rate: number;
1567
+ unit: "DAILY" | "HOURLY";
1568
+ };
1569
+ userId: string;
1570
+ user: {
1571
+ id: string;
1572
+ firstName: string;
1573
+ lastName: string;
1574
+ email: string;
1575
+ };
1576
+ job: {
1577
+ id: string;
1578
+ description: string;
1579
+ };
1580
+ endDate?: string | Date | null | undefined;
911
1581
  };
912
1582
  }>, "many">;
913
1583
  totalCount: z.ZodNumber;
@@ -918,7 +1588,6 @@ export declare const activesContractRouter: {
918
1588
  }, "strip", z.ZodTypeAny, {
919
1589
  limit: number;
920
1590
  items: {
921
- date: string;
922
1591
  createdAt: string;
923
1592
  updatedAt: string;
924
1593
  id: string;
@@ -926,6 +1595,7 @@ export declare const activesContractRouter: {
926
1595
  rate: number;
927
1596
  unit: "DAILY" | "HOURLY";
928
1597
  };
1598
+ date: string;
929
1599
  comment: string | null;
930
1600
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
931
1601
  statusSaUpdatedAt: string | null;
@@ -934,7 +1604,32 @@ export declare const activesContractRouter: {
934
1604
  hoursWorked: number | null;
935
1605
  hoursWorkedUpdatedAt: string | null;
936
1606
  booking: {
1607
+ 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";
1608
+ startDate: string;
1609
+ createdAt: string;
1610
+ updatedAt: string;
937
1611
  id: string;
1612
+ worker: {
1613
+ id: string;
1614
+ firstName: string;
1615
+ lastName: string;
1616
+ };
1617
+ pay: {
1618
+ rate: number;
1619
+ unit: "DAILY" | "HOURLY";
1620
+ };
1621
+ userId: string;
1622
+ user: {
1623
+ id: string;
1624
+ firstName: string;
1625
+ lastName: string;
1626
+ email: string;
1627
+ };
1628
+ job: {
1629
+ id: string;
1630
+ description: string;
1631
+ };
1632
+ endDate?: string | null | undefined;
938
1633
  };
939
1634
  }[];
940
1635
  totalCount: number;
@@ -944,7 +1639,6 @@ export declare const activesContractRouter: {
944
1639
  }, {
945
1640
  limit: number;
946
1641
  items: {
947
- date: string | Date;
948
1642
  createdAt: string | Date;
949
1643
  updatedAt: string | Date;
950
1644
  id: string;
@@ -952,6 +1646,7 @@ export declare const activesContractRouter: {
952
1646
  rate: number;
953
1647
  unit: "DAILY" | "HOURLY";
954
1648
  };
1649
+ date: string | Date;
955
1650
  comment: string | null;
956
1651
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
957
1652
  statusSaUpdatedAt: string | Date | null;
@@ -960,7 +1655,32 @@ export declare const activesContractRouter: {
960
1655
  hoursWorked: number | null;
961
1656
  hoursWorkedUpdatedAt: string | Date | null;
962
1657
  booking: {
1658
+ 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";
1659
+ startDate: string | Date;
1660
+ createdAt: string | Date;
1661
+ updatedAt: string | Date;
963
1662
  id: string;
1663
+ worker: {
1664
+ id: string;
1665
+ firstName: string;
1666
+ lastName: string;
1667
+ };
1668
+ pay: {
1669
+ rate: number;
1670
+ unit: "DAILY" | "HOURLY";
1671
+ };
1672
+ userId: string;
1673
+ user: {
1674
+ id: string;
1675
+ firstName: string;
1676
+ lastName: string;
1677
+ email: string;
1678
+ };
1679
+ job: {
1680
+ id: string;
1681
+ description: string;
1682
+ };
1683
+ endDate?: string | Date | null | undefined;
964
1684
  };
965
1685
  }[];
966
1686
  totalCount: number;
@@ -1110,15 +1830,119 @@ export declare const activesContractRouter: {
1110
1830
  hoursWorkedUpdatedAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>;
1111
1831
  booking: z.ZodObject<{
1112
1832
  id: z.ZodString;
1833
+ status: z.ZodEnum<["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"]>;
1834
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1835
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1836
+ worker: z.ZodObject<{
1837
+ id: z.ZodString;
1838
+ firstName: z.ZodString;
1839
+ lastName: z.ZodString;
1840
+ }, "strip", z.ZodTypeAny, {
1841
+ id: string;
1842
+ firstName: string;
1843
+ lastName: string;
1844
+ }, {
1845
+ id: string;
1846
+ firstName: string;
1847
+ lastName: string;
1848
+ }>;
1849
+ user: z.ZodObject<{
1850
+ id: z.ZodString;
1851
+ firstName: z.ZodString;
1852
+ lastName: z.ZodString;
1853
+ email: z.ZodString;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ id: string;
1856
+ firstName: string;
1857
+ lastName: string;
1858
+ email: string;
1859
+ }, {
1860
+ id: string;
1861
+ firstName: string;
1862
+ lastName: string;
1863
+ email: string;
1864
+ }>;
1865
+ pay: z.ZodObject<{
1866
+ rate: z.ZodNumber;
1867
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
1868
+ }, "strip", z.ZodTypeAny, {
1869
+ rate: number;
1870
+ unit: "DAILY" | "HOURLY";
1871
+ }, {
1872
+ rate: number;
1873
+ unit: "DAILY" | "HOURLY";
1874
+ }>;
1875
+ job: z.ZodObject<{
1876
+ id: z.ZodString;
1877
+ description: z.ZodString;
1878
+ }, "strip", z.ZodTypeAny, {
1879
+ id: string;
1880
+ description: string;
1881
+ }, {
1882
+ id: string;
1883
+ description: string;
1884
+ }>;
1885
+ userId: z.ZodString;
1886
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1887
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1113
1888
  }, "strip", z.ZodTypeAny, {
1889
+ 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";
1890
+ startDate: string;
1891
+ createdAt: string;
1892
+ updatedAt: string;
1114
1893
  id: string;
1894
+ worker: {
1895
+ id: string;
1896
+ firstName: string;
1897
+ lastName: string;
1898
+ };
1899
+ pay: {
1900
+ rate: number;
1901
+ unit: "DAILY" | "HOURLY";
1902
+ };
1903
+ userId: string;
1904
+ user: {
1905
+ id: string;
1906
+ firstName: string;
1907
+ lastName: string;
1908
+ email: string;
1909
+ };
1910
+ job: {
1911
+ id: string;
1912
+ description: string;
1913
+ };
1914
+ endDate?: string | null | undefined;
1115
1915
  }, {
1916
+ 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";
1917
+ startDate: string | Date;
1918
+ createdAt: string | Date;
1919
+ updatedAt: string | Date;
1116
1920
  id: string;
1921
+ worker: {
1922
+ id: string;
1923
+ firstName: string;
1924
+ lastName: string;
1925
+ };
1926
+ pay: {
1927
+ rate: number;
1928
+ unit: "DAILY" | "HOURLY";
1929
+ };
1930
+ userId: string;
1931
+ user: {
1932
+ id: string;
1933
+ firstName: string;
1934
+ lastName: string;
1935
+ email: string;
1936
+ };
1937
+ job: {
1938
+ id: string;
1939
+ description: string;
1940
+ };
1941
+ endDate?: string | Date | null | undefined;
1117
1942
  }>;
1118
1943
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1119
1944
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1120
1945
  }, "strip", z.ZodTypeAny, {
1121
- date: string;
1122
1946
  createdAt: string;
1123
1947
  updatedAt: string;
1124
1948
  id: string;
@@ -1126,6 +1950,7 @@ export declare const activesContractRouter: {
1126
1950
  rate: number;
1127
1951
  unit: "DAILY" | "HOURLY";
1128
1952
  };
1953
+ date: string;
1129
1954
  comment: string | null;
1130
1955
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
1131
1956
  statusSaUpdatedAt: string | null;
@@ -1134,10 +1959,34 @@ export declare const activesContractRouter: {
1134
1959
  hoursWorked: number | null;
1135
1960
  hoursWorkedUpdatedAt: string | null;
1136
1961
  booking: {
1962
+ 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";
1963
+ startDate: string;
1964
+ createdAt: string;
1965
+ updatedAt: string;
1137
1966
  id: string;
1967
+ worker: {
1968
+ id: string;
1969
+ firstName: string;
1970
+ lastName: string;
1971
+ };
1972
+ pay: {
1973
+ rate: number;
1974
+ unit: "DAILY" | "HOURLY";
1975
+ };
1976
+ userId: string;
1977
+ user: {
1978
+ id: string;
1979
+ firstName: string;
1980
+ lastName: string;
1981
+ email: string;
1982
+ };
1983
+ job: {
1984
+ id: string;
1985
+ description: string;
1986
+ };
1987
+ endDate?: string | null | undefined;
1138
1988
  };
1139
1989
  }, {
1140
- date: string | Date;
1141
1990
  createdAt: string | Date;
1142
1991
  updatedAt: string | Date;
1143
1992
  id: string;
@@ -1145,6 +1994,7 @@ export declare const activesContractRouter: {
1145
1994
  rate: number;
1146
1995
  unit: "DAILY" | "HOURLY";
1147
1996
  };
1997
+ date: string | Date;
1148
1998
  comment: string | null;
1149
1999
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
1150
2000
  statusSaUpdatedAt: string | Date | null;
@@ -1153,7 +2003,32 @@ export declare const activesContractRouter: {
1153
2003
  hoursWorked: number | null;
1154
2004
  hoursWorkedUpdatedAt: string | Date | null;
1155
2005
  booking: {
2006
+ 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";
2007
+ startDate: string | Date;
2008
+ createdAt: string | Date;
2009
+ updatedAt: string | Date;
1156
2010
  id: string;
2011
+ worker: {
2012
+ id: string;
2013
+ firstName: string;
2014
+ lastName: string;
2015
+ };
2016
+ pay: {
2017
+ rate: number;
2018
+ unit: "DAILY" | "HOURLY";
2019
+ };
2020
+ userId: string;
2021
+ user: {
2022
+ id: string;
2023
+ firstName: string;
2024
+ lastName: string;
2025
+ email: string;
2026
+ };
2027
+ job: {
2028
+ id: string;
2029
+ description: string;
2030
+ };
2031
+ endDate?: string | Date | null | undefined;
1157
2032
  };
1158
2033
  }>;
1159
2034
  404: z.ZodObject<{
@@ -1357,15 +2232,119 @@ export declare const activesContractRouter: {
1357
2232
  hoursWorkedUpdatedAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>;
1358
2233
  booking: z.ZodObject<{
1359
2234
  id: z.ZodString;
2235
+ status: z.ZodEnum<["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"]>;
2236
+ startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2237
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
2238
+ worker: z.ZodObject<{
2239
+ id: z.ZodString;
2240
+ firstName: z.ZodString;
2241
+ lastName: z.ZodString;
2242
+ }, "strip", z.ZodTypeAny, {
2243
+ id: string;
2244
+ firstName: string;
2245
+ lastName: string;
2246
+ }, {
2247
+ id: string;
2248
+ firstName: string;
2249
+ lastName: string;
2250
+ }>;
2251
+ user: z.ZodObject<{
2252
+ id: z.ZodString;
2253
+ firstName: z.ZodString;
2254
+ lastName: z.ZodString;
2255
+ email: z.ZodString;
2256
+ }, "strip", z.ZodTypeAny, {
2257
+ id: string;
2258
+ firstName: string;
2259
+ lastName: string;
2260
+ email: string;
2261
+ }, {
2262
+ id: string;
2263
+ firstName: string;
2264
+ lastName: string;
2265
+ email: string;
2266
+ }>;
2267
+ pay: z.ZodObject<{
2268
+ rate: z.ZodNumber;
2269
+ unit: z.ZodEnum<["DAILY", "HOURLY"]>;
2270
+ }, "strip", z.ZodTypeAny, {
2271
+ rate: number;
2272
+ unit: "DAILY" | "HOURLY";
2273
+ }, {
2274
+ rate: number;
2275
+ unit: "DAILY" | "HOURLY";
2276
+ }>;
2277
+ job: z.ZodObject<{
2278
+ id: z.ZodString;
2279
+ description: z.ZodString;
2280
+ }, "strip", z.ZodTypeAny, {
2281
+ id: string;
2282
+ description: string;
2283
+ }, {
2284
+ id: string;
2285
+ description: string;
2286
+ }>;
2287
+ userId: z.ZodString;
2288
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2289
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1360
2290
  }, "strip", z.ZodTypeAny, {
2291
+ 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";
2292
+ startDate: string;
2293
+ createdAt: string;
2294
+ updatedAt: string;
1361
2295
  id: string;
2296
+ worker: {
2297
+ id: string;
2298
+ firstName: string;
2299
+ lastName: string;
2300
+ };
2301
+ pay: {
2302
+ rate: number;
2303
+ unit: "DAILY" | "HOURLY";
2304
+ };
2305
+ userId: string;
2306
+ user: {
2307
+ id: string;
2308
+ firstName: string;
2309
+ lastName: string;
2310
+ email: string;
2311
+ };
2312
+ job: {
2313
+ id: string;
2314
+ description: string;
2315
+ };
2316
+ endDate?: string | null | undefined;
1362
2317
  }, {
2318
+ 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";
2319
+ startDate: string | Date;
2320
+ createdAt: string | Date;
2321
+ updatedAt: string | Date;
1363
2322
  id: string;
2323
+ worker: {
2324
+ id: string;
2325
+ firstName: string;
2326
+ lastName: string;
2327
+ };
2328
+ pay: {
2329
+ rate: number;
2330
+ unit: "DAILY" | "HOURLY";
2331
+ };
2332
+ userId: string;
2333
+ user: {
2334
+ id: string;
2335
+ firstName: string;
2336
+ lastName: string;
2337
+ email: string;
2338
+ };
2339
+ job: {
2340
+ id: string;
2341
+ description: string;
2342
+ };
2343
+ endDate?: string | Date | null | undefined;
1364
2344
  }>;
1365
2345
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1366
2346
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1367
2347
  }, "strip", z.ZodTypeAny, {
1368
- date: string;
1369
2348
  createdAt: string;
1370
2349
  updatedAt: string;
1371
2350
  id: string;
@@ -1373,6 +2352,7 @@ export declare const activesContractRouter: {
1373
2352
  rate: number;
1374
2353
  unit: "DAILY" | "HOURLY";
1375
2354
  };
2355
+ date: string;
1376
2356
  comment: string | null;
1377
2357
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
1378
2358
  statusSaUpdatedAt: string | null;
@@ -1381,10 +2361,34 @@ export declare const activesContractRouter: {
1381
2361
  hoursWorked: number | null;
1382
2362
  hoursWorkedUpdatedAt: string | null;
1383
2363
  booking: {
2364
+ 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";
2365
+ startDate: string;
2366
+ createdAt: string;
2367
+ updatedAt: string;
1384
2368
  id: string;
2369
+ worker: {
2370
+ id: string;
2371
+ firstName: string;
2372
+ lastName: string;
2373
+ };
2374
+ pay: {
2375
+ rate: number;
2376
+ unit: "DAILY" | "HOURLY";
2377
+ };
2378
+ userId: string;
2379
+ user: {
2380
+ id: string;
2381
+ firstName: string;
2382
+ lastName: string;
2383
+ email: string;
2384
+ };
2385
+ job: {
2386
+ id: string;
2387
+ description: string;
2388
+ };
2389
+ endDate?: string | null | undefined;
1385
2390
  };
1386
2391
  }, {
1387
- date: string | Date;
1388
2392
  createdAt: string | Date;
1389
2393
  updatedAt: string | Date;
1390
2394
  id: string;
@@ -1392,6 +2396,7 @@ export declare const activesContractRouter: {
1392
2396
  rate: number;
1393
2397
  unit: "DAILY" | "HOURLY";
1394
2398
  };
2399
+ date: string | Date;
1395
2400
  comment: string | null;
1396
2401
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
1397
2402
  statusSaUpdatedAt: string | Date | null;
@@ -1400,7 +2405,32 @@ export declare const activesContractRouter: {
1400
2405
  hoursWorked: number | null;
1401
2406
  hoursWorkedUpdatedAt: string | Date | null;
1402
2407
  booking: {
2408
+ 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";
2409
+ startDate: string | Date;
2410
+ createdAt: string | Date;
2411
+ updatedAt: string | Date;
1403
2412
  id: string;
2413
+ worker: {
2414
+ id: string;
2415
+ firstName: string;
2416
+ lastName: string;
2417
+ };
2418
+ pay: {
2419
+ rate: number;
2420
+ unit: "DAILY" | "HOURLY";
2421
+ };
2422
+ userId: string;
2423
+ user: {
2424
+ id: string;
2425
+ firstName: string;
2426
+ lastName: string;
2427
+ email: string;
2428
+ };
2429
+ job: {
2430
+ id: string;
2431
+ description: string;
2432
+ };
2433
+ endDate?: string | Date | null | undefined;
1404
2434
  };
1405
2435
  }>;
1406
2436
  404: z.ZodObject<{