@dakkitor/api-contracts 1.1.16 → 1.1.19

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.
@@ -4,7 +4,7 @@ export declare const ActiveStatusFilterTypeSchema: z.ZodEnum<["SECOND_AGENT", "F
4
4
  export declare const ActiveSortableFieldsSchema: z.ZodEnum<["date", "payRate", "status", "createdAt", "updatedAt"]>;
5
5
  export declare const ActiveSchema: z.ZodObject<{
6
6
  id: z.ZodString;
7
- date: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
7
+ date: z.ZodString;
8
8
  pay: z.ZodObject<{
9
9
  rate: z.ZodNumber;
10
10
  unit: z.ZodEnum<["DAILY", "HOURLY"]>;
@@ -127,9 +127,9 @@ export declare const ActiveSchema: z.ZodObject<{
127
127
  receivedRate: number;
128
128
  rateMax?: number | null | undefined;
129
129
  };
130
- tradeId: string;
131
130
  description: string;
132
131
  numberOfPositions: number;
132
+ tradeId: string;
133
133
  workHours?: number | null | undefined;
134
134
  location?: {
135
135
  address?: string | null | undefined;
@@ -151,9 +151,9 @@ export declare const ActiveSchema: z.ZodObject<{
151
151
  receivedRate: number;
152
152
  rateMax?: number | null | undefined;
153
153
  };
154
- tradeId: string;
155
154
  description: string;
156
155
  numberOfPositions: number;
156
+ tradeId: string;
157
157
  workHours?: number | null | undefined;
158
158
  location?: {
159
159
  address?: string | null | undefined;
@@ -170,20 +170,19 @@ export declare const ActiveSchema: z.ZodObject<{
170
170
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
171
171
  }, "strip", z.ZodTypeAny, {
172
172
  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";
173
- startDate: string;
174
173
  createdAt: string;
175
174
  updatedAt: string;
176
175
  id: string;
176
+ pay: {
177
+ rate: number;
178
+ unit: "DAILY" | "HOURLY";
179
+ };
180
+ startDate: string;
177
181
  worker: {
178
182
  id: string;
179
183
  firstName: string;
180
184
  lastName: string;
181
185
  };
182
- pay: {
183
- rate: number;
184
- unit: "DAILY" | "HOURLY";
185
- };
186
- userId: string;
187
186
  user: {
188
187
  id: string;
189
188
  firstName: string;
@@ -201,9 +200,9 @@ export declare const ActiveSchema: z.ZodObject<{
201
200
  receivedRate: number;
202
201
  rateMax?: number | null | undefined;
203
202
  };
204
- tradeId: string;
205
203
  description: string;
206
204
  numberOfPositions: number;
205
+ tradeId: string;
207
206
  workHours?: number | null | undefined;
208
207
  location?: {
209
208
  address?: string | null | undefined;
@@ -215,23 +214,23 @@ export declare const ActiveSchema: z.ZodObject<{
215
214
  areaCovered?: string | null | undefined;
216
215
  } | null | undefined;
217
216
  };
217
+ userId: string;
218
218
  endDate?: string | null | undefined;
219
219
  }, {
220
220
  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";
221
- startDate: string | Date;
222
221
  createdAt: string | Date;
223
222
  updatedAt: string | Date;
224
223
  id: string;
224
+ pay: {
225
+ rate: number;
226
+ unit: "DAILY" | "HOURLY";
227
+ };
228
+ startDate: string | Date;
225
229
  worker: {
226
230
  id: string;
227
231
  firstName: string;
228
232
  lastName: string;
229
233
  };
230
- pay: {
231
- rate: number;
232
- unit: "DAILY" | "HOURLY";
233
- };
234
- userId: string;
235
234
  user: {
236
235
  id: string;
237
236
  firstName: string;
@@ -249,9 +248,9 @@ export declare const ActiveSchema: z.ZodObject<{
249
248
  receivedRate: number;
250
249
  rateMax?: number | null | undefined;
251
250
  };
252
- tradeId: string;
253
251
  description: string;
254
252
  numberOfPositions: number;
253
+ tradeId: string;
255
254
  workHours?: number | null | undefined;
256
255
  location?: {
257
256
  address?: string | null | undefined;
@@ -263,11 +262,13 @@ export declare const ActiveSchema: z.ZodObject<{
263
262
  areaCovered?: string | null | undefined;
264
263
  } | null | undefined;
265
264
  };
265
+ userId: string;
266
266
  endDate?: string | Date | null | undefined;
267
267
  }>;
268
268
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
269
269
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
270
270
  }, "strip", z.ZodTypeAny, {
271
+ date: string;
271
272
  createdAt: string;
272
273
  updatedAt: string;
273
274
  id: string;
@@ -275,7 +276,6 @@ export declare const ActiveSchema: z.ZodObject<{
275
276
  rate: number;
276
277
  unit: "DAILY" | "HOURLY";
277
278
  };
278
- date: string;
279
279
  comment: string | null;
280
280
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
281
281
  statusSaUpdatedAt: string | null;
@@ -285,20 +285,19 @@ export declare const ActiveSchema: z.ZodObject<{
285
285
  hoursWorkedUpdatedAt: string | null;
286
286
  booking: {
287
287
  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";
288
- startDate: string;
289
288
  createdAt: string;
290
289
  updatedAt: string;
291
290
  id: string;
291
+ pay: {
292
+ rate: number;
293
+ unit: "DAILY" | "HOURLY";
294
+ };
295
+ startDate: string;
292
296
  worker: {
293
297
  id: string;
294
298
  firstName: string;
295
299
  lastName: string;
296
300
  };
297
- pay: {
298
- rate: number;
299
- unit: "DAILY" | "HOURLY";
300
- };
301
- userId: string;
302
301
  user: {
303
302
  id: string;
304
303
  firstName: string;
@@ -316,9 +315,9 @@ export declare const ActiveSchema: z.ZodObject<{
316
315
  receivedRate: number;
317
316
  rateMax?: number | null | undefined;
318
317
  };
319
- tradeId: string;
320
318
  description: string;
321
319
  numberOfPositions: number;
320
+ tradeId: string;
322
321
  workHours?: number | null | undefined;
323
322
  location?: {
324
323
  address?: string | null | undefined;
@@ -330,9 +329,11 @@ export declare const ActiveSchema: z.ZodObject<{
330
329
  areaCovered?: string | null | undefined;
331
330
  } | null | undefined;
332
331
  };
332
+ userId: string;
333
333
  endDate?: string | null | undefined;
334
334
  };
335
335
  }, {
336
+ date: string;
336
337
  createdAt: string | Date;
337
338
  updatedAt: string | Date;
338
339
  id: string;
@@ -340,7 +341,6 @@ export declare const ActiveSchema: z.ZodObject<{
340
341
  rate: number;
341
342
  unit: "DAILY" | "HOURLY";
342
343
  };
343
- date: string | Date;
344
344
  comment: string | null;
345
345
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
346
346
  statusSaUpdatedAt: string | Date | null;
@@ -350,20 +350,19 @@ export declare const ActiveSchema: z.ZodObject<{
350
350
  hoursWorkedUpdatedAt: string | Date | null;
351
351
  booking: {
352
352
  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";
353
- startDate: string | Date;
354
353
  createdAt: string | Date;
355
354
  updatedAt: string | Date;
356
355
  id: string;
356
+ pay: {
357
+ rate: number;
358
+ unit: "DAILY" | "HOURLY";
359
+ };
360
+ startDate: string | Date;
357
361
  worker: {
358
362
  id: string;
359
363
  firstName: string;
360
364
  lastName: string;
361
365
  };
362
- pay: {
363
- rate: number;
364
- unit: "DAILY" | "HOURLY";
365
- };
366
- userId: string;
367
366
  user: {
368
367
  id: string;
369
368
  firstName: string;
@@ -381,9 +380,9 @@ export declare const ActiveSchema: z.ZodObject<{
381
380
  receivedRate: number;
382
381
  rateMax?: number | null | undefined;
383
382
  };
384
- tradeId: string;
385
383
  description: string;
386
384
  numberOfPositions: number;
385
+ tradeId: string;
387
386
  workHours?: number | null | undefined;
388
387
  location?: {
389
388
  address?: string | null | undefined;
@@ -395,6 +394,7 @@ export declare const ActiveSchema: z.ZodObject<{
395
394
  areaCovered?: string | null | undefined;
396
395
  } | null | undefined;
397
396
  };
397
+ userId: string;
398
398
  endDate?: string | Date | null | undefined;
399
399
  };
400
400
  }>;
@@ -414,20 +414,20 @@ export declare const CreateActiveSchema: z.ZodObject<{
414
414
  statusSa: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
415
415
  statusFa: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
416
416
  }, "strip", z.ZodTypeAny, {
417
+ date: string;
417
418
  pay: {
418
419
  rate: number;
419
420
  unit: "DAILY" | "HOURLY";
420
421
  };
421
- date: string;
422
422
  comment?: string | undefined;
423
423
  statusSa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
424
424
  statusFa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
425
425
  }, {
426
+ date: string;
426
427
  pay: {
427
428
  rate: number;
428
429
  unit: "DAILY" | "HOURLY";
429
430
  };
430
- date: string;
431
431
  comment?: string | undefined;
432
432
  statusSa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
433
433
  statusFa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
@@ -482,14 +482,14 @@ export declare const FilterActiveSchema: z.ZodObject<{
482
482
  to?: string | null | undefined;
483
483
  }>>>;
484
484
  pay: z.ZodNullable<z.ZodOptional<z.ZodObject<{
485
- min: z.ZodOptional<z.ZodNumber>;
486
- max: z.ZodOptional<z.ZodNumber>;
485
+ minRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
486
+ maxRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
487
487
  }, "strip", z.ZodTypeAny, {
488
- min?: number | undefined;
489
- max?: number | undefined;
488
+ minRate?: number | null | undefined;
489
+ maxRate?: number | null | undefined;
490
490
  }, {
491
- min?: number | undefined;
492
- max?: number | undefined;
491
+ minRate?: number | null | undefined;
492
+ maxRate?: number | null | undefined;
493
493
  }>>>;
494
494
  status: z.ZodNullable<z.ZodOptional<z.ZodObject<{
495
495
  status: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
@@ -516,6 +516,10 @@ export declare const FilterActiveSchema: z.ZodObject<{
516
516
  }, "strip", z.ZodTypeAny, {
517
517
  limit: number;
518
518
  page: number;
519
+ date?: {
520
+ from?: string | null | undefined;
521
+ to?: string | null | undefined;
522
+ } | null | undefined;
519
523
  status?: {
520
524
  filterType: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER";
521
525
  status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
@@ -525,17 +529,17 @@ export declare const FilterActiveSchema: z.ZodObject<{
525
529
  to?: string | null | undefined;
526
530
  } | null | undefined;
527
531
  pay?: {
528
- min?: number | undefined;
529
- max?: number | undefined;
532
+ minRate?: number | null | undefined;
533
+ maxRate?: number | null | undefined;
530
534
  } | null | undefined;
531
- sortBy?: "status" | "createdAt" | "updatedAt" | "date" | "payRate" | null | undefined;
535
+ bookingId?: string | null | undefined;
536
+ sortBy?: "date" | "payRate" | "status" | "createdAt" | "updatedAt" | null | undefined;
532
537
  sortOrder?: "ASC" | "DESC" | null | undefined;
538
+ }, {
533
539
  date?: {
534
540
  from?: string | null | undefined;
535
541
  to?: string | null | undefined;
536
542
  } | null | undefined;
537
- bookingId?: string | null | undefined;
538
- }, {
539
543
  status?: {
540
544
  status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
541
545
  filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
@@ -545,23 +549,19 @@ export declare const FilterActiveSchema: z.ZodObject<{
545
549
  to?: string | null | undefined;
546
550
  } | null | undefined;
547
551
  pay?: {
548
- min?: number | undefined;
549
- max?: number | undefined;
552
+ minRate?: number | null | undefined;
553
+ maxRate?: number | null | undefined;
550
554
  } | null | undefined;
551
555
  limit?: number | undefined;
552
556
  page?: number | undefined;
553
- sortBy?: "status" | "createdAt" | "updatedAt" | "date" | "payRate" | null | undefined;
554
- sortOrder?: "ASC" | "DESC" | null | undefined;
555
- date?: {
556
- from?: string | null | undefined;
557
- to?: string | null | undefined;
558
- } | null | undefined;
559
557
  bookingId?: string | null | undefined;
558
+ sortBy?: "date" | "payRate" | "status" | "createdAt" | "updatedAt" | null | undefined;
559
+ sortOrder?: "ASC" | "DESC" | null | undefined;
560
560
  }>;
561
561
  export declare const PaginatedActiveResponseSchema: z.ZodObject<{
562
562
  items: z.ZodArray<z.ZodObject<{
563
563
  id: z.ZodString;
564
- date: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
564
+ date: z.ZodString;
565
565
  pay: z.ZodObject<{
566
566
  rate: z.ZodNumber;
567
567
  unit: z.ZodEnum<["DAILY", "HOURLY"]>;
@@ -684,9 +684,9 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
684
684
  receivedRate: number;
685
685
  rateMax?: number | null | undefined;
686
686
  };
687
- tradeId: string;
688
687
  description: string;
689
688
  numberOfPositions: number;
689
+ tradeId: string;
690
690
  workHours?: number | null | undefined;
691
691
  location?: {
692
692
  address?: string | null | undefined;
@@ -708,9 +708,9 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
708
708
  receivedRate: number;
709
709
  rateMax?: number | null | undefined;
710
710
  };
711
- tradeId: string;
712
711
  description: string;
713
712
  numberOfPositions: number;
713
+ tradeId: string;
714
714
  workHours?: number | null | undefined;
715
715
  location?: {
716
716
  address?: string | null | undefined;
@@ -727,20 +727,19 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
727
727
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
728
728
  }, "strip", z.ZodTypeAny, {
729
729
  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";
730
- startDate: string;
731
730
  createdAt: string;
732
731
  updatedAt: string;
733
732
  id: string;
733
+ pay: {
734
+ rate: number;
735
+ unit: "DAILY" | "HOURLY";
736
+ };
737
+ startDate: string;
734
738
  worker: {
735
739
  id: string;
736
740
  firstName: string;
737
741
  lastName: string;
738
742
  };
739
- pay: {
740
- rate: number;
741
- unit: "DAILY" | "HOURLY";
742
- };
743
- userId: string;
744
743
  user: {
745
744
  id: string;
746
745
  firstName: string;
@@ -758,9 +757,9 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
758
757
  receivedRate: number;
759
758
  rateMax?: number | null | undefined;
760
759
  };
761
- tradeId: string;
762
760
  description: string;
763
761
  numberOfPositions: number;
762
+ tradeId: string;
764
763
  workHours?: number | null | undefined;
765
764
  location?: {
766
765
  address?: string | null | undefined;
@@ -772,23 +771,23 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
772
771
  areaCovered?: string | null | undefined;
773
772
  } | null | undefined;
774
773
  };
774
+ userId: string;
775
775
  endDate?: string | null | undefined;
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";
778
- startDate: string | Date;
779
778
  createdAt: string | Date;
780
779
  updatedAt: string | Date;
781
780
  id: string;
781
+ pay: {
782
+ rate: number;
783
+ unit: "DAILY" | "HOURLY";
784
+ };
785
+ startDate: string | Date;
782
786
  worker: {
783
787
  id: string;
784
788
  firstName: string;
785
789
  lastName: string;
786
790
  };
787
- pay: {
788
- rate: number;
789
- unit: "DAILY" | "HOURLY";
790
- };
791
- userId: string;
792
791
  user: {
793
792
  id: string;
794
793
  firstName: string;
@@ -806,9 +805,9 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
806
805
  receivedRate: number;
807
806
  rateMax?: number | null | undefined;
808
807
  };
809
- tradeId: string;
810
808
  description: string;
811
809
  numberOfPositions: number;
810
+ tradeId: string;
812
811
  workHours?: number | null | undefined;
813
812
  location?: {
814
813
  address?: string | null | undefined;
@@ -820,11 +819,13 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
820
819
  areaCovered?: string | null | undefined;
821
820
  } | null | undefined;
822
821
  };
822
+ userId: string;
823
823
  endDate?: string | Date | null | undefined;
824
824
  }>;
825
825
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
826
826
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
827
827
  }, "strip", z.ZodTypeAny, {
828
+ date: string;
828
829
  createdAt: string;
829
830
  updatedAt: string;
830
831
  id: string;
@@ -832,7 +833,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
832
833
  rate: number;
833
834
  unit: "DAILY" | "HOURLY";
834
835
  };
835
- date: string;
836
836
  comment: string | null;
837
837
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
838
838
  statusSaUpdatedAt: string | null;
@@ -842,20 +842,19 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
842
842
  hoursWorkedUpdatedAt: string | null;
843
843
  booking: {
844
844
  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";
845
- startDate: string;
846
845
  createdAt: string;
847
846
  updatedAt: string;
848
847
  id: string;
848
+ pay: {
849
+ rate: number;
850
+ unit: "DAILY" | "HOURLY";
851
+ };
852
+ startDate: string;
849
853
  worker: {
850
854
  id: string;
851
855
  firstName: string;
852
856
  lastName: string;
853
857
  };
854
- pay: {
855
- rate: number;
856
- unit: "DAILY" | "HOURLY";
857
- };
858
- userId: string;
859
858
  user: {
860
859
  id: string;
861
860
  firstName: string;
@@ -873,9 +872,9 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
873
872
  receivedRate: number;
874
873
  rateMax?: number | null | undefined;
875
874
  };
876
- tradeId: string;
877
875
  description: string;
878
876
  numberOfPositions: number;
877
+ tradeId: string;
879
878
  workHours?: number | null | undefined;
880
879
  location?: {
881
880
  address?: string | null | undefined;
@@ -887,9 +886,11 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
887
886
  areaCovered?: string | null | undefined;
888
887
  } | null | undefined;
889
888
  };
889
+ userId: string;
890
890
  endDate?: string | null | undefined;
891
891
  };
892
892
  }, {
893
+ date: string;
893
894
  createdAt: string | Date;
894
895
  updatedAt: string | Date;
895
896
  id: string;
@@ -897,7 +898,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
897
898
  rate: number;
898
899
  unit: "DAILY" | "HOURLY";
899
900
  };
900
- date: string | Date;
901
901
  comment: string | null;
902
902
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
903
903
  statusSaUpdatedAt: string | Date | null;
@@ -907,20 +907,19 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
907
907
  hoursWorkedUpdatedAt: string | Date | null;
908
908
  booking: {
909
909
  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";
910
- startDate: string | Date;
911
910
  createdAt: string | Date;
912
911
  updatedAt: string | Date;
913
912
  id: string;
913
+ pay: {
914
+ rate: number;
915
+ unit: "DAILY" | "HOURLY";
916
+ };
917
+ startDate: string | Date;
914
918
  worker: {
915
919
  id: string;
916
920
  firstName: string;
917
921
  lastName: string;
918
922
  };
919
- pay: {
920
- rate: number;
921
- unit: "DAILY" | "HOURLY";
922
- };
923
- userId: string;
924
923
  user: {
925
924
  id: string;
926
925
  firstName: string;
@@ -938,9 +937,9 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
938
937
  receivedRate: number;
939
938
  rateMax?: number | null | undefined;
940
939
  };
941
- tradeId: string;
942
940
  description: string;
943
941
  numberOfPositions: number;
942
+ tradeId: string;
944
943
  workHours?: number | null | undefined;
945
944
  location?: {
946
945
  address?: string | null | undefined;
@@ -952,6 +951,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
952
951
  areaCovered?: string | null | undefined;
953
952
  } | null | undefined;
954
953
  };
954
+ userId: string;
955
955
  endDate?: string | Date | null | undefined;
956
956
  };
957
957
  }>, "many">;
@@ -963,6 +963,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
963
963
  }, "strip", z.ZodTypeAny, {
964
964
  limit: number;
965
965
  items: {
966
+ date: string;
966
967
  createdAt: string;
967
968
  updatedAt: string;
968
969
  id: string;
@@ -970,7 +971,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
970
971
  rate: number;
971
972
  unit: "DAILY" | "HOURLY";
972
973
  };
973
- date: string;
974
974
  comment: string | null;
975
975
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
976
976
  statusSaUpdatedAt: string | null;
@@ -980,20 +980,19 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
980
980
  hoursWorkedUpdatedAt: string | null;
981
981
  booking: {
982
982
  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";
983
- startDate: string;
984
983
  createdAt: string;
985
984
  updatedAt: string;
986
985
  id: string;
986
+ pay: {
987
+ rate: number;
988
+ unit: "DAILY" | "HOURLY";
989
+ };
990
+ startDate: string;
987
991
  worker: {
988
992
  id: string;
989
993
  firstName: string;
990
994
  lastName: string;
991
995
  };
992
- pay: {
993
- rate: number;
994
- unit: "DAILY" | "HOURLY";
995
- };
996
- userId: string;
997
996
  user: {
998
997
  id: string;
999
998
  firstName: string;
@@ -1011,9 +1010,9 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1011
1010
  receivedRate: number;
1012
1011
  rateMax?: number | null | undefined;
1013
1012
  };
1014
- tradeId: string;
1015
1013
  description: string;
1016
1014
  numberOfPositions: number;
1015
+ tradeId: string;
1017
1016
  workHours?: number | null | undefined;
1018
1017
  location?: {
1019
1018
  address?: string | null | undefined;
@@ -1025,6 +1024,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1025
1024
  areaCovered?: string | null | undefined;
1026
1025
  } | null | undefined;
1027
1026
  };
1027
+ userId: string;
1028
1028
  endDate?: string | null | undefined;
1029
1029
  };
1030
1030
  }[];
@@ -1035,6 +1035,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1035
1035
  }, {
1036
1036
  limit: number;
1037
1037
  items: {
1038
+ date: string;
1038
1039
  createdAt: string | Date;
1039
1040
  updatedAt: string | Date;
1040
1041
  id: string;
@@ -1042,7 +1043,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1042
1043
  rate: number;
1043
1044
  unit: "DAILY" | "HOURLY";
1044
1045
  };
1045
- date: string | Date;
1046
1046
  comment: string | null;
1047
1047
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
1048
1048
  statusSaUpdatedAt: string | Date | null;
@@ -1052,20 +1052,19 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1052
1052
  hoursWorkedUpdatedAt: string | Date | null;
1053
1053
  booking: {
1054
1054
  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";
1055
- startDate: string | Date;
1056
1055
  createdAt: string | Date;
1057
1056
  updatedAt: string | Date;
1058
1057
  id: string;
1058
+ pay: {
1059
+ rate: number;
1060
+ unit: "DAILY" | "HOURLY";
1061
+ };
1062
+ startDate: string | Date;
1059
1063
  worker: {
1060
1064
  id: string;
1061
1065
  firstName: string;
1062
1066
  lastName: string;
1063
1067
  };
1064
- pay: {
1065
- rate: number;
1066
- unit: "DAILY" | "HOURLY";
1067
- };
1068
- userId: string;
1069
1068
  user: {
1070
1069
  id: string;
1071
1070
  firstName: string;
@@ -1083,9 +1082,9 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1083
1082
  receivedRate: number;
1084
1083
  rateMax?: number | null | undefined;
1085
1084
  };
1086
- tradeId: string;
1087
1085
  description: string;
1088
1086
  numberOfPositions: number;
1087
+ tradeId: string;
1089
1088
  workHours?: number | null | undefined;
1090
1089
  location?: {
1091
1090
  address?: string | null | undefined;
@@ -1097,6 +1096,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1097
1096
  areaCovered?: string | null | undefined;
1098
1097
  } | null | undefined;
1099
1098
  };
1099
+ userId: string;
1100
1100
  endDate?: string | Date | null | undefined;
1101
1101
  };
1102
1102
  }[];
@@ -1146,20 +1146,20 @@ export declare const activesContractRouter: {
1146
1146
  statusSa: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
1147
1147
  statusFa: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
1148
1148
  }, "strip", z.ZodTypeAny, {
1149
+ date: string;
1149
1150
  pay: {
1150
1151
  rate: number;
1151
1152
  unit: "DAILY" | "HOURLY";
1152
1153
  };
1153
- date: string;
1154
1154
  comment?: string | undefined;
1155
1155
  statusSa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
1156
1156
  statusFa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
1157
1157
  }, {
1158
+ date: string;
1158
1159
  pay: {
1159
1160
  rate: number;
1160
1161
  unit: "DAILY" | "HOURLY";
1161
1162
  };
1162
- date: string;
1163
1163
  comment?: string | undefined;
1164
1164
  statusSa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
1165
1165
  statusFa?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
@@ -1268,7 +1268,7 @@ export declare const activesContractRouter: {
1268
1268
  }>;
1269
1269
  201: z.ZodObject<{
1270
1270
  id: z.ZodString;
1271
- date: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1271
+ date: z.ZodString;
1272
1272
  pay: z.ZodObject<{
1273
1273
  rate: z.ZodNumber;
1274
1274
  unit: z.ZodEnum<["DAILY", "HOURLY"]>;
@@ -1391,9 +1391,9 @@ export declare const activesContractRouter: {
1391
1391
  receivedRate: number;
1392
1392
  rateMax?: number | null | undefined;
1393
1393
  };
1394
- tradeId: string;
1395
1394
  description: string;
1396
1395
  numberOfPositions: number;
1396
+ tradeId: string;
1397
1397
  workHours?: number | null | undefined;
1398
1398
  location?: {
1399
1399
  address?: string | null | undefined;
@@ -1415,9 +1415,9 @@ export declare const activesContractRouter: {
1415
1415
  receivedRate: number;
1416
1416
  rateMax?: number | null | undefined;
1417
1417
  };
1418
- tradeId: string;
1419
1418
  description: string;
1420
1419
  numberOfPositions: number;
1420
+ tradeId: string;
1421
1421
  workHours?: number | null | undefined;
1422
1422
  location?: {
1423
1423
  address?: string | null | undefined;
@@ -1434,20 +1434,19 @@ export declare const activesContractRouter: {
1434
1434
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1435
1435
  }, "strip", z.ZodTypeAny, {
1436
1436
  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";
1437
- startDate: string;
1438
1437
  createdAt: string;
1439
1438
  updatedAt: string;
1440
1439
  id: string;
1440
+ pay: {
1441
+ rate: number;
1442
+ unit: "DAILY" | "HOURLY";
1443
+ };
1444
+ startDate: string;
1441
1445
  worker: {
1442
1446
  id: string;
1443
1447
  firstName: string;
1444
1448
  lastName: string;
1445
1449
  };
1446
- pay: {
1447
- rate: number;
1448
- unit: "DAILY" | "HOURLY";
1449
- };
1450
- userId: string;
1451
1450
  user: {
1452
1451
  id: string;
1453
1452
  firstName: string;
@@ -1465,9 +1464,9 @@ export declare const activesContractRouter: {
1465
1464
  receivedRate: number;
1466
1465
  rateMax?: number | null | undefined;
1467
1466
  };
1468
- tradeId: string;
1469
1467
  description: string;
1470
1468
  numberOfPositions: number;
1469
+ tradeId: string;
1471
1470
  workHours?: number | null | undefined;
1472
1471
  location?: {
1473
1472
  address?: string | null | undefined;
@@ -1479,23 +1478,23 @@ export declare const activesContractRouter: {
1479
1478
  areaCovered?: string | null | undefined;
1480
1479
  } | null | undefined;
1481
1480
  };
1481
+ userId: string;
1482
1482
  endDate?: string | null | undefined;
1483
1483
  }, {
1484
1484
  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";
1485
- startDate: string | Date;
1486
1485
  createdAt: string | Date;
1487
1486
  updatedAt: string | Date;
1488
1487
  id: string;
1488
+ pay: {
1489
+ rate: number;
1490
+ unit: "DAILY" | "HOURLY";
1491
+ };
1492
+ startDate: string | Date;
1489
1493
  worker: {
1490
1494
  id: string;
1491
1495
  firstName: string;
1492
1496
  lastName: string;
1493
1497
  };
1494
- pay: {
1495
- rate: number;
1496
- unit: "DAILY" | "HOURLY";
1497
- };
1498
- userId: string;
1499
1498
  user: {
1500
1499
  id: string;
1501
1500
  firstName: string;
@@ -1513,9 +1512,9 @@ export declare const activesContractRouter: {
1513
1512
  receivedRate: number;
1514
1513
  rateMax?: number | null | undefined;
1515
1514
  };
1516
- tradeId: string;
1517
1515
  description: string;
1518
1516
  numberOfPositions: number;
1517
+ tradeId: string;
1519
1518
  workHours?: number | null | undefined;
1520
1519
  location?: {
1521
1520
  address?: string | null | undefined;
@@ -1527,11 +1526,13 @@ export declare const activesContractRouter: {
1527
1526
  areaCovered?: string | null | undefined;
1528
1527
  } | null | undefined;
1529
1528
  };
1529
+ userId: string;
1530
1530
  endDate?: string | Date | null | undefined;
1531
1531
  }>;
1532
1532
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1533
1533
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1534
1534
  }, "strip", z.ZodTypeAny, {
1535
+ date: string;
1535
1536
  createdAt: string;
1536
1537
  updatedAt: string;
1537
1538
  id: string;
@@ -1539,7 +1540,6 @@ export declare const activesContractRouter: {
1539
1540
  rate: number;
1540
1541
  unit: "DAILY" | "HOURLY";
1541
1542
  };
1542
- date: string;
1543
1543
  comment: string | null;
1544
1544
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
1545
1545
  statusSaUpdatedAt: string | null;
@@ -1549,20 +1549,19 @@ export declare const activesContractRouter: {
1549
1549
  hoursWorkedUpdatedAt: string | null;
1550
1550
  booking: {
1551
1551
  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";
1552
- startDate: string;
1553
1552
  createdAt: string;
1554
1553
  updatedAt: string;
1555
1554
  id: string;
1555
+ pay: {
1556
+ rate: number;
1557
+ unit: "DAILY" | "HOURLY";
1558
+ };
1559
+ startDate: string;
1556
1560
  worker: {
1557
1561
  id: string;
1558
1562
  firstName: string;
1559
1563
  lastName: string;
1560
1564
  };
1561
- pay: {
1562
- rate: number;
1563
- unit: "DAILY" | "HOURLY";
1564
- };
1565
- userId: string;
1566
1565
  user: {
1567
1566
  id: string;
1568
1567
  firstName: string;
@@ -1580,9 +1579,9 @@ export declare const activesContractRouter: {
1580
1579
  receivedRate: number;
1581
1580
  rateMax?: number | null | undefined;
1582
1581
  };
1583
- tradeId: string;
1584
1582
  description: string;
1585
1583
  numberOfPositions: number;
1584
+ tradeId: string;
1586
1585
  workHours?: number | null | undefined;
1587
1586
  location?: {
1588
1587
  address?: string | null | undefined;
@@ -1594,9 +1593,11 @@ export declare const activesContractRouter: {
1594
1593
  areaCovered?: string | null | undefined;
1595
1594
  } | null | undefined;
1596
1595
  };
1596
+ userId: string;
1597
1597
  endDate?: string | null | undefined;
1598
1598
  };
1599
1599
  }, {
1600
+ date: string;
1600
1601
  createdAt: string | Date;
1601
1602
  updatedAt: string | Date;
1602
1603
  id: string;
@@ -1604,7 +1605,6 @@ export declare const activesContractRouter: {
1604
1605
  rate: number;
1605
1606
  unit: "DAILY" | "HOURLY";
1606
1607
  };
1607
- date: string | Date;
1608
1608
  comment: string | null;
1609
1609
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
1610
1610
  statusSaUpdatedAt: string | Date | null;
@@ -1614,20 +1614,19 @@ export declare const activesContractRouter: {
1614
1614
  hoursWorkedUpdatedAt: string | Date | null;
1615
1615
  booking: {
1616
1616
  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";
1617
- startDate: string | Date;
1618
1617
  createdAt: string | Date;
1619
1618
  updatedAt: string | Date;
1620
1619
  id: string;
1620
+ pay: {
1621
+ rate: number;
1622
+ unit: "DAILY" | "HOURLY";
1623
+ };
1624
+ startDate: string | Date;
1621
1625
  worker: {
1622
1626
  id: string;
1623
1627
  firstName: string;
1624
1628
  lastName: string;
1625
1629
  };
1626
- pay: {
1627
- rate: number;
1628
- unit: "DAILY" | "HOURLY";
1629
- };
1630
- userId: string;
1631
1630
  user: {
1632
1631
  id: string;
1633
1632
  firstName: string;
@@ -1645,9 +1644,9 @@ export declare const activesContractRouter: {
1645
1644
  receivedRate: number;
1646
1645
  rateMax?: number | null | undefined;
1647
1646
  };
1648
- tradeId: string;
1649
1647
  description: string;
1650
1648
  numberOfPositions: number;
1649
+ tradeId: string;
1651
1650
  workHours?: number | null | undefined;
1652
1651
  location?: {
1653
1652
  address?: string | null | undefined;
@@ -1659,6 +1658,7 @@ export declare const activesContractRouter: {
1659
1658
  areaCovered?: string | null | undefined;
1660
1659
  } | null | undefined;
1661
1660
  };
1661
+ userId: string;
1662
1662
  endDate?: string | Date | null | undefined;
1663
1663
  };
1664
1664
  }>;
@@ -1737,14 +1737,14 @@ export declare const activesContractRouter: {
1737
1737
  to?: string | null | undefined;
1738
1738
  }>>>;
1739
1739
  pay: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1740
- min: z.ZodOptional<z.ZodNumber>;
1741
- max: z.ZodOptional<z.ZodNumber>;
1740
+ minRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1741
+ maxRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1742
1742
  }, "strip", z.ZodTypeAny, {
1743
- min?: number | undefined;
1744
- max?: number | undefined;
1743
+ minRate?: number | null | undefined;
1744
+ maxRate?: number | null | undefined;
1745
1745
  }, {
1746
- min?: number | undefined;
1747
- max?: number | undefined;
1746
+ minRate?: number | null | undefined;
1747
+ maxRate?: number | null | undefined;
1748
1748
  }>>>;
1749
1749
  status: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1750
1750
  status: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
@@ -1771,6 +1771,10 @@ export declare const activesContractRouter: {
1771
1771
  }, "strip", z.ZodTypeAny, {
1772
1772
  limit: number;
1773
1773
  page: number;
1774
+ date?: {
1775
+ from?: string | null | undefined;
1776
+ to?: string | null | undefined;
1777
+ } | null | undefined;
1774
1778
  status?: {
1775
1779
  filterType: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER";
1776
1780
  status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
@@ -1780,17 +1784,17 @@ export declare const activesContractRouter: {
1780
1784
  to?: string | null | undefined;
1781
1785
  } | null | undefined;
1782
1786
  pay?: {
1783
- min?: number | undefined;
1784
- max?: number | undefined;
1787
+ minRate?: number | null | undefined;
1788
+ maxRate?: number | null | undefined;
1785
1789
  } | null | undefined;
1786
- sortBy?: "status" | "createdAt" | "updatedAt" | "date" | "payRate" | null | undefined;
1790
+ bookingId?: string | null | undefined;
1791
+ sortBy?: "date" | "payRate" | "status" | "createdAt" | "updatedAt" | null | undefined;
1787
1792
  sortOrder?: "ASC" | "DESC" | null | undefined;
1793
+ }, {
1788
1794
  date?: {
1789
1795
  from?: string | null | undefined;
1790
1796
  to?: string | null | undefined;
1791
1797
  } | null | undefined;
1792
- bookingId?: string | null | undefined;
1793
- }, {
1794
1798
  status?: {
1795
1799
  status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
1796
1800
  filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
@@ -1800,18 +1804,14 @@ export declare const activesContractRouter: {
1800
1804
  to?: string | null | undefined;
1801
1805
  } | null | undefined;
1802
1806
  pay?: {
1803
- min?: number | undefined;
1804
- max?: number | undefined;
1807
+ minRate?: number | null | undefined;
1808
+ maxRate?: number | null | undefined;
1805
1809
  } | null | undefined;
1806
1810
  limit?: number | undefined;
1807
1811
  page?: number | undefined;
1808
- sortBy?: "status" | "createdAt" | "updatedAt" | "date" | "payRate" | null | undefined;
1809
- sortOrder?: "ASC" | "DESC" | null | undefined;
1810
- date?: {
1811
- from?: string | null | undefined;
1812
- to?: string | null | undefined;
1813
- } | null | undefined;
1814
1812
  bookingId?: string | null | undefined;
1813
+ sortBy?: "date" | "payRate" | "status" | "createdAt" | "updatedAt" | null | undefined;
1814
+ sortOrder?: "ASC" | "DESC" | null | undefined;
1815
1815
  }>;
1816
1816
  summary: "Get all active records";
1817
1817
  method: "GET";
@@ -1920,7 +1920,7 @@ export declare const activesContractRouter: {
1920
1920
  200: z.ZodObject<{
1921
1921
  items: z.ZodArray<z.ZodObject<{
1922
1922
  id: z.ZodString;
1923
- date: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1923
+ date: z.ZodString;
1924
1924
  pay: z.ZodObject<{
1925
1925
  rate: z.ZodNumber;
1926
1926
  unit: z.ZodEnum<["DAILY", "HOURLY"]>;
@@ -2043,9 +2043,9 @@ export declare const activesContractRouter: {
2043
2043
  receivedRate: number;
2044
2044
  rateMax?: number | null | undefined;
2045
2045
  };
2046
- tradeId: string;
2047
2046
  description: string;
2048
2047
  numberOfPositions: number;
2048
+ tradeId: string;
2049
2049
  workHours?: number | null | undefined;
2050
2050
  location?: {
2051
2051
  address?: string | null | undefined;
@@ -2067,9 +2067,9 @@ export declare const activesContractRouter: {
2067
2067
  receivedRate: number;
2068
2068
  rateMax?: number | null | undefined;
2069
2069
  };
2070
- tradeId: string;
2071
2070
  description: string;
2072
2071
  numberOfPositions: number;
2072
+ tradeId: string;
2073
2073
  workHours?: number | null | undefined;
2074
2074
  location?: {
2075
2075
  address?: string | null | undefined;
@@ -2086,20 +2086,19 @@ export declare const activesContractRouter: {
2086
2086
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2087
2087
  }, "strip", z.ZodTypeAny, {
2088
2088
  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";
2089
- startDate: string;
2090
2089
  createdAt: string;
2091
2090
  updatedAt: string;
2092
2091
  id: string;
2092
+ pay: {
2093
+ rate: number;
2094
+ unit: "DAILY" | "HOURLY";
2095
+ };
2096
+ startDate: string;
2093
2097
  worker: {
2094
2098
  id: string;
2095
2099
  firstName: string;
2096
2100
  lastName: string;
2097
2101
  };
2098
- pay: {
2099
- rate: number;
2100
- unit: "DAILY" | "HOURLY";
2101
- };
2102
- userId: string;
2103
2102
  user: {
2104
2103
  id: string;
2105
2104
  firstName: string;
@@ -2117,9 +2116,9 @@ export declare const activesContractRouter: {
2117
2116
  receivedRate: number;
2118
2117
  rateMax?: number | null | undefined;
2119
2118
  };
2120
- tradeId: string;
2121
2119
  description: string;
2122
2120
  numberOfPositions: number;
2121
+ tradeId: string;
2123
2122
  workHours?: number | null | undefined;
2124
2123
  location?: {
2125
2124
  address?: string | null | undefined;
@@ -2131,23 +2130,23 @@ export declare const activesContractRouter: {
2131
2130
  areaCovered?: string | null | undefined;
2132
2131
  } | null | undefined;
2133
2132
  };
2133
+ userId: string;
2134
2134
  endDate?: string | null | undefined;
2135
2135
  }, {
2136
2136
  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";
2137
- startDate: string | Date;
2138
2137
  createdAt: string | Date;
2139
2138
  updatedAt: string | Date;
2140
2139
  id: string;
2140
+ pay: {
2141
+ rate: number;
2142
+ unit: "DAILY" | "HOURLY";
2143
+ };
2144
+ startDate: string | Date;
2141
2145
  worker: {
2142
2146
  id: string;
2143
2147
  firstName: string;
2144
2148
  lastName: string;
2145
2149
  };
2146
- pay: {
2147
- rate: number;
2148
- unit: "DAILY" | "HOURLY";
2149
- };
2150
- userId: string;
2151
2150
  user: {
2152
2151
  id: string;
2153
2152
  firstName: string;
@@ -2165,9 +2164,9 @@ export declare const activesContractRouter: {
2165
2164
  receivedRate: number;
2166
2165
  rateMax?: number | null | undefined;
2167
2166
  };
2168
- tradeId: string;
2169
2167
  description: string;
2170
2168
  numberOfPositions: number;
2169
+ tradeId: string;
2171
2170
  workHours?: number | null | undefined;
2172
2171
  location?: {
2173
2172
  address?: string | null | undefined;
@@ -2179,11 +2178,13 @@ export declare const activesContractRouter: {
2179
2178
  areaCovered?: string | null | undefined;
2180
2179
  } | null | undefined;
2181
2180
  };
2181
+ userId: string;
2182
2182
  endDate?: string | Date | null | undefined;
2183
2183
  }>;
2184
2184
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2185
2185
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2186
2186
  }, "strip", z.ZodTypeAny, {
2187
+ date: string;
2187
2188
  createdAt: string;
2188
2189
  updatedAt: string;
2189
2190
  id: string;
@@ -2191,7 +2192,6 @@ export declare const activesContractRouter: {
2191
2192
  rate: number;
2192
2193
  unit: "DAILY" | "HOURLY";
2193
2194
  };
2194
- date: string;
2195
2195
  comment: string | null;
2196
2196
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
2197
2197
  statusSaUpdatedAt: string | null;
@@ -2201,20 +2201,19 @@ export declare const activesContractRouter: {
2201
2201
  hoursWorkedUpdatedAt: string | null;
2202
2202
  booking: {
2203
2203
  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";
2204
- startDate: string;
2205
2204
  createdAt: string;
2206
2205
  updatedAt: string;
2207
2206
  id: string;
2207
+ pay: {
2208
+ rate: number;
2209
+ unit: "DAILY" | "HOURLY";
2210
+ };
2211
+ startDate: string;
2208
2212
  worker: {
2209
2213
  id: string;
2210
2214
  firstName: string;
2211
2215
  lastName: string;
2212
2216
  };
2213
- pay: {
2214
- rate: number;
2215
- unit: "DAILY" | "HOURLY";
2216
- };
2217
- userId: string;
2218
2217
  user: {
2219
2218
  id: string;
2220
2219
  firstName: string;
@@ -2232,9 +2231,9 @@ export declare const activesContractRouter: {
2232
2231
  receivedRate: number;
2233
2232
  rateMax?: number | null | undefined;
2234
2233
  };
2235
- tradeId: string;
2236
2234
  description: string;
2237
2235
  numberOfPositions: number;
2236
+ tradeId: string;
2238
2237
  workHours?: number | null | undefined;
2239
2238
  location?: {
2240
2239
  address?: string | null | undefined;
@@ -2246,9 +2245,11 @@ export declare const activesContractRouter: {
2246
2245
  areaCovered?: string | null | undefined;
2247
2246
  } | null | undefined;
2248
2247
  };
2248
+ userId: string;
2249
2249
  endDate?: string | null | undefined;
2250
2250
  };
2251
2251
  }, {
2252
+ date: string;
2252
2253
  createdAt: string | Date;
2253
2254
  updatedAt: string | Date;
2254
2255
  id: string;
@@ -2256,7 +2257,6 @@ export declare const activesContractRouter: {
2256
2257
  rate: number;
2257
2258
  unit: "DAILY" | "HOURLY";
2258
2259
  };
2259
- date: string | Date;
2260
2260
  comment: string | null;
2261
2261
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
2262
2262
  statusSaUpdatedAt: string | Date | null;
@@ -2266,20 +2266,19 @@ export declare const activesContractRouter: {
2266
2266
  hoursWorkedUpdatedAt: string | Date | null;
2267
2267
  booking: {
2268
2268
  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";
2269
- startDate: string | Date;
2270
2269
  createdAt: string | Date;
2271
2270
  updatedAt: string | Date;
2272
2271
  id: string;
2272
+ pay: {
2273
+ rate: number;
2274
+ unit: "DAILY" | "HOURLY";
2275
+ };
2276
+ startDate: string | Date;
2273
2277
  worker: {
2274
2278
  id: string;
2275
2279
  firstName: string;
2276
2280
  lastName: string;
2277
2281
  };
2278
- pay: {
2279
- rate: number;
2280
- unit: "DAILY" | "HOURLY";
2281
- };
2282
- userId: string;
2283
2282
  user: {
2284
2283
  id: string;
2285
2284
  firstName: string;
@@ -2297,9 +2296,9 @@ export declare const activesContractRouter: {
2297
2296
  receivedRate: number;
2298
2297
  rateMax?: number | null | undefined;
2299
2298
  };
2300
- tradeId: string;
2301
2299
  description: string;
2302
2300
  numberOfPositions: number;
2301
+ tradeId: string;
2303
2302
  workHours?: number | null | undefined;
2304
2303
  location?: {
2305
2304
  address?: string | null | undefined;
@@ -2311,6 +2310,7 @@ export declare const activesContractRouter: {
2311
2310
  areaCovered?: string | null | undefined;
2312
2311
  } | null | undefined;
2313
2312
  };
2313
+ userId: string;
2314
2314
  endDate?: string | Date | null | undefined;
2315
2315
  };
2316
2316
  }>, "many">;
@@ -2322,6 +2322,7 @@ export declare const activesContractRouter: {
2322
2322
  }, "strip", z.ZodTypeAny, {
2323
2323
  limit: number;
2324
2324
  items: {
2325
+ date: string;
2325
2326
  createdAt: string;
2326
2327
  updatedAt: string;
2327
2328
  id: string;
@@ -2329,7 +2330,6 @@ export declare const activesContractRouter: {
2329
2330
  rate: number;
2330
2331
  unit: "DAILY" | "HOURLY";
2331
2332
  };
2332
- date: string;
2333
2333
  comment: string | null;
2334
2334
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
2335
2335
  statusSaUpdatedAt: string | null;
@@ -2339,20 +2339,19 @@ export declare const activesContractRouter: {
2339
2339
  hoursWorkedUpdatedAt: string | null;
2340
2340
  booking: {
2341
2341
  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";
2342
- startDate: string;
2343
2342
  createdAt: string;
2344
2343
  updatedAt: string;
2345
2344
  id: string;
2345
+ pay: {
2346
+ rate: number;
2347
+ unit: "DAILY" | "HOURLY";
2348
+ };
2349
+ startDate: string;
2346
2350
  worker: {
2347
2351
  id: string;
2348
2352
  firstName: string;
2349
2353
  lastName: string;
2350
2354
  };
2351
- pay: {
2352
- rate: number;
2353
- unit: "DAILY" | "HOURLY";
2354
- };
2355
- userId: string;
2356
2355
  user: {
2357
2356
  id: string;
2358
2357
  firstName: string;
@@ -2370,9 +2369,9 @@ export declare const activesContractRouter: {
2370
2369
  receivedRate: number;
2371
2370
  rateMax?: number | null | undefined;
2372
2371
  };
2373
- tradeId: string;
2374
2372
  description: string;
2375
2373
  numberOfPositions: number;
2374
+ tradeId: string;
2376
2375
  workHours?: number | null | undefined;
2377
2376
  location?: {
2378
2377
  address?: string | null | undefined;
@@ -2384,6 +2383,7 @@ export declare const activesContractRouter: {
2384
2383
  areaCovered?: string | null | undefined;
2385
2384
  } | null | undefined;
2386
2385
  };
2386
+ userId: string;
2387
2387
  endDate?: string | null | undefined;
2388
2388
  };
2389
2389
  }[];
@@ -2394,6 +2394,7 @@ export declare const activesContractRouter: {
2394
2394
  }, {
2395
2395
  limit: number;
2396
2396
  items: {
2397
+ date: string;
2397
2398
  createdAt: string | Date;
2398
2399
  updatedAt: string | Date;
2399
2400
  id: string;
@@ -2401,7 +2402,6 @@ export declare const activesContractRouter: {
2401
2402
  rate: number;
2402
2403
  unit: "DAILY" | "HOURLY";
2403
2404
  };
2404
- date: string | Date;
2405
2405
  comment: string | null;
2406
2406
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
2407
2407
  statusSaUpdatedAt: string | Date | null;
@@ -2411,20 +2411,19 @@ export declare const activesContractRouter: {
2411
2411
  hoursWorkedUpdatedAt: string | Date | null;
2412
2412
  booking: {
2413
2413
  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";
2414
- startDate: string | Date;
2415
2414
  createdAt: string | Date;
2416
2415
  updatedAt: string | Date;
2417
2416
  id: string;
2417
+ pay: {
2418
+ rate: number;
2419
+ unit: "DAILY" | "HOURLY";
2420
+ };
2421
+ startDate: string | Date;
2418
2422
  worker: {
2419
2423
  id: string;
2420
2424
  firstName: string;
2421
2425
  lastName: string;
2422
2426
  };
2423
- pay: {
2424
- rate: number;
2425
- unit: "DAILY" | "HOURLY";
2426
- };
2427
- userId: string;
2428
2427
  user: {
2429
2428
  id: string;
2430
2429
  firstName: string;
@@ -2442,9 +2441,9 @@ export declare const activesContractRouter: {
2442
2441
  receivedRate: number;
2443
2442
  rateMax?: number | null | undefined;
2444
2443
  };
2445
- tradeId: string;
2446
2444
  description: string;
2447
2445
  numberOfPositions: number;
2446
+ tradeId: string;
2448
2447
  workHours?: number | null | undefined;
2449
2448
  location?: {
2450
2449
  address?: string | null | undefined;
@@ -2456,6 +2455,7 @@ export declare const activesContractRouter: {
2456
2455
  areaCovered?: string | null | undefined;
2457
2456
  } | null | undefined;
2458
2457
  };
2458
+ userId: string;
2459
2459
  endDate?: string | Date | null | undefined;
2460
2460
  };
2461
2461
  }[];
@@ -2586,7 +2586,7 @@ export declare const activesContractRouter: {
2586
2586
  }>;
2587
2587
  200: z.ZodObject<{
2588
2588
  id: z.ZodString;
2589
- date: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2589
+ date: z.ZodString;
2590
2590
  pay: z.ZodObject<{
2591
2591
  rate: z.ZodNumber;
2592
2592
  unit: z.ZodEnum<["DAILY", "HOURLY"]>;
@@ -2709,9 +2709,9 @@ export declare const activesContractRouter: {
2709
2709
  receivedRate: number;
2710
2710
  rateMax?: number | null | undefined;
2711
2711
  };
2712
- tradeId: string;
2713
2712
  description: string;
2714
2713
  numberOfPositions: number;
2714
+ tradeId: string;
2715
2715
  workHours?: number | null | undefined;
2716
2716
  location?: {
2717
2717
  address?: string | null | undefined;
@@ -2733,9 +2733,9 @@ export declare const activesContractRouter: {
2733
2733
  receivedRate: number;
2734
2734
  rateMax?: number | null | undefined;
2735
2735
  };
2736
- tradeId: string;
2737
2736
  description: string;
2738
2737
  numberOfPositions: number;
2738
+ tradeId: string;
2739
2739
  workHours?: number | null | undefined;
2740
2740
  location?: {
2741
2741
  address?: string | null | undefined;
@@ -2752,20 +2752,19 @@ export declare const activesContractRouter: {
2752
2752
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2753
2753
  }, "strip", z.ZodTypeAny, {
2754
2754
  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";
2755
- startDate: string;
2756
2755
  createdAt: string;
2757
2756
  updatedAt: string;
2758
2757
  id: string;
2758
+ pay: {
2759
+ rate: number;
2760
+ unit: "DAILY" | "HOURLY";
2761
+ };
2762
+ startDate: string;
2759
2763
  worker: {
2760
2764
  id: string;
2761
2765
  firstName: string;
2762
2766
  lastName: string;
2763
2767
  };
2764
- pay: {
2765
- rate: number;
2766
- unit: "DAILY" | "HOURLY";
2767
- };
2768
- userId: string;
2769
2768
  user: {
2770
2769
  id: string;
2771
2770
  firstName: string;
@@ -2783,9 +2782,9 @@ export declare const activesContractRouter: {
2783
2782
  receivedRate: number;
2784
2783
  rateMax?: number | null | undefined;
2785
2784
  };
2786
- tradeId: string;
2787
2785
  description: string;
2788
2786
  numberOfPositions: number;
2787
+ tradeId: string;
2789
2788
  workHours?: number | null | undefined;
2790
2789
  location?: {
2791
2790
  address?: string | null | undefined;
@@ -2797,23 +2796,23 @@ export declare const activesContractRouter: {
2797
2796
  areaCovered?: string | null | undefined;
2798
2797
  } | null | undefined;
2799
2798
  };
2799
+ userId: string;
2800
2800
  endDate?: string | null | undefined;
2801
2801
  }, {
2802
2802
  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";
2803
- startDate: string | Date;
2804
2803
  createdAt: string | Date;
2805
2804
  updatedAt: string | Date;
2806
2805
  id: string;
2806
+ pay: {
2807
+ rate: number;
2808
+ unit: "DAILY" | "HOURLY";
2809
+ };
2810
+ startDate: string | Date;
2807
2811
  worker: {
2808
2812
  id: string;
2809
2813
  firstName: string;
2810
2814
  lastName: string;
2811
2815
  };
2812
- pay: {
2813
- rate: number;
2814
- unit: "DAILY" | "HOURLY";
2815
- };
2816
- userId: string;
2817
2816
  user: {
2818
2817
  id: string;
2819
2818
  firstName: string;
@@ -2831,9 +2830,9 @@ export declare const activesContractRouter: {
2831
2830
  receivedRate: number;
2832
2831
  rateMax?: number | null | undefined;
2833
2832
  };
2834
- tradeId: string;
2835
2833
  description: string;
2836
2834
  numberOfPositions: number;
2835
+ tradeId: string;
2837
2836
  workHours?: number | null | undefined;
2838
2837
  location?: {
2839
2838
  address?: string | null | undefined;
@@ -2845,11 +2844,13 @@ export declare const activesContractRouter: {
2845
2844
  areaCovered?: string | null | undefined;
2846
2845
  } | null | undefined;
2847
2846
  };
2847
+ userId: string;
2848
2848
  endDate?: string | Date | null | undefined;
2849
2849
  }>;
2850
2850
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2851
2851
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2852
2852
  }, "strip", z.ZodTypeAny, {
2853
+ date: string;
2853
2854
  createdAt: string;
2854
2855
  updatedAt: string;
2855
2856
  id: string;
@@ -2857,7 +2858,6 @@ export declare const activesContractRouter: {
2857
2858
  rate: number;
2858
2859
  unit: "DAILY" | "HOURLY";
2859
2860
  };
2860
- date: string;
2861
2861
  comment: string | null;
2862
2862
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
2863
2863
  statusSaUpdatedAt: string | null;
@@ -2867,20 +2867,19 @@ export declare const activesContractRouter: {
2867
2867
  hoursWorkedUpdatedAt: string | null;
2868
2868
  booking: {
2869
2869
  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";
2870
- startDate: string;
2871
2870
  createdAt: string;
2872
2871
  updatedAt: string;
2873
2872
  id: string;
2873
+ pay: {
2874
+ rate: number;
2875
+ unit: "DAILY" | "HOURLY";
2876
+ };
2877
+ startDate: string;
2874
2878
  worker: {
2875
2879
  id: string;
2876
2880
  firstName: string;
2877
2881
  lastName: string;
2878
2882
  };
2879
- pay: {
2880
- rate: number;
2881
- unit: "DAILY" | "HOURLY";
2882
- };
2883
- userId: string;
2884
2883
  user: {
2885
2884
  id: string;
2886
2885
  firstName: string;
@@ -2898,9 +2897,9 @@ export declare const activesContractRouter: {
2898
2897
  receivedRate: number;
2899
2898
  rateMax?: number | null | undefined;
2900
2899
  };
2901
- tradeId: string;
2902
2900
  description: string;
2903
2901
  numberOfPositions: number;
2902
+ tradeId: string;
2904
2903
  workHours?: number | null | undefined;
2905
2904
  location?: {
2906
2905
  address?: string | null | undefined;
@@ -2912,9 +2911,11 @@ export declare const activesContractRouter: {
2912
2911
  areaCovered?: string | null | undefined;
2913
2912
  } | null | undefined;
2914
2913
  };
2914
+ userId: string;
2915
2915
  endDate?: string | null | undefined;
2916
2916
  };
2917
2917
  }, {
2918
+ date: string;
2918
2919
  createdAt: string | Date;
2919
2920
  updatedAt: string | Date;
2920
2921
  id: string;
@@ -2922,7 +2923,6 @@ export declare const activesContractRouter: {
2922
2923
  rate: number;
2923
2924
  unit: "DAILY" | "HOURLY";
2924
2925
  };
2925
- date: string | Date;
2926
2926
  comment: string | null;
2927
2927
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
2928
2928
  statusSaUpdatedAt: string | Date | null;
@@ -2932,20 +2932,19 @@ export declare const activesContractRouter: {
2932
2932
  hoursWorkedUpdatedAt: string | Date | null;
2933
2933
  booking: {
2934
2934
  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";
2935
- startDate: string | Date;
2936
2935
  createdAt: string | Date;
2937
2936
  updatedAt: string | Date;
2938
2937
  id: string;
2938
+ pay: {
2939
+ rate: number;
2940
+ unit: "DAILY" | "HOURLY";
2941
+ };
2942
+ startDate: string | Date;
2939
2943
  worker: {
2940
2944
  id: string;
2941
2945
  firstName: string;
2942
2946
  lastName: string;
2943
2947
  };
2944
- pay: {
2945
- rate: number;
2946
- unit: "DAILY" | "HOURLY";
2947
- };
2948
- userId: string;
2949
2948
  user: {
2950
2949
  id: string;
2951
2950
  firstName: string;
@@ -2963,9 +2962,9 @@ export declare const activesContractRouter: {
2963
2962
  receivedRate: number;
2964
2963
  rateMax?: number | null | undefined;
2965
2964
  };
2966
- tradeId: string;
2967
2965
  description: string;
2968
2966
  numberOfPositions: number;
2967
+ tradeId: string;
2969
2968
  workHours?: number | null | undefined;
2970
2969
  location?: {
2971
2970
  address?: string | null | undefined;
@@ -2977,6 +2976,7 @@ export declare const activesContractRouter: {
2977
2976
  areaCovered?: string | null | undefined;
2978
2977
  } | null | undefined;
2979
2978
  };
2979
+ userId: string;
2980
2980
  endDate?: string | Date | null | undefined;
2981
2981
  };
2982
2982
  }>;
@@ -3161,7 +3161,7 @@ export declare const activesContractRouter: {
3161
3161
  }>;
3162
3162
  200: z.ZodObject<{
3163
3163
  id: z.ZodString;
3164
- date: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3164
+ date: z.ZodString;
3165
3165
  pay: z.ZodObject<{
3166
3166
  rate: z.ZodNumber;
3167
3167
  unit: z.ZodEnum<["DAILY", "HOURLY"]>;
@@ -3284,9 +3284,9 @@ export declare const activesContractRouter: {
3284
3284
  receivedRate: number;
3285
3285
  rateMax?: number | null | undefined;
3286
3286
  };
3287
- tradeId: string;
3288
3287
  description: string;
3289
3288
  numberOfPositions: number;
3289
+ tradeId: string;
3290
3290
  workHours?: number | null | undefined;
3291
3291
  location?: {
3292
3292
  address?: string | null | undefined;
@@ -3308,9 +3308,9 @@ export declare const activesContractRouter: {
3308
3308
  receivedRate: number;
3309
3309
  rateMax?: number | null | undefined;
3310
3310
  };
3311
- tradeId: string;
3312
3311
  description: string;
3313
3312
  numberOfPositions: number;
3313
+ tradeId: string;
3314
3314
  workHours?: number | null | undefined;
3315
3315
  location?: {
3316
3316
  address?: string | null | undefined;
@@ -3327,20 +3327,19 @@ export declare const activesContractRouter: {
3327
3327
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3328
3328
  }, "strip", z.ZodTypeAny, {
3329
3329
  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";
3330
- startDate: string;
3331
3330
  createdAt: string;
3332
3331
  updatedAt: string;
3333
3332
  id: string;
3333
+ pay: {
3334
+ rate: number;
3335
+ unit: "DAILY" | "HOURLY";
3336
+ };
3337
+ startDate: string;
3334
3338
  worker: {
3335
3339
  id: string;
3336
3340
  firstName: string;
3337
3341
  lastName: string;
3338
3342
  };
3339
- pay: {
3340
- rate: number;
3341
- unit: "DAILY" | "HOURLY";
3342
- };
3343
- userId: string;
3344
3343
  user: {
3345
3344
  id: string;
3346
3345
  firstName: string;
@@ -3358,9 +3357,9 @@ export declare const activesContractRouter: {
3358
3357
  receivedRate: number;
3359
3358
  rateMax?: number | null | undefined;
3360
3359
  };
3361
- tradeId: string;
3362
3360
  description: string;
3363
3361
  numberOfPositions: number;
3362
+ tradeId: string;
3364
3363
  workHours?: number | null | undefined;
3365
3364
  location?: {
3366
3365
  address?: string | null | undefined;
@@ -3372,23 +3371,23 @@ export declare const activesContractRouter: {
3372
3371
  areaCovered?: string | null | undefined;
3373
3372
  } | null | undefined;
3374
3373
  };
3374
+ userId: string;
3375
3375
  endDate?: string | null | undefined;
3376
3376
  }, {
3377
3377
  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";
3378
- startDate: string | Date;
3379
3378
  createdAt: string | Date;
3380
3379
  updatedAt: string | Date;
3381
3380
  id: string;
3381
+ pay: {
3382
+ rate: number;
3383
+ unit: "DAILY" | "HOURLY";
3384
+ };
3385
+ startDate: string | Date;
3382
3386
  worker: {
3383
3387
  id: string;
3384
3388
  firstName: string;
3385
3389
  lastName: string;
3386
3390
  };
3387
- pay: {
3388
- rate: number;
3389
- unit: "DAILY" | "HOURLY";
3390
- };
3391
- userId: string;
3392
3391
  user: {
3393
3392
  id: string;
3394
3393
  firstName: string;
@@ -3406,9 +3405,9 @@ export declare const activesContractRouter: {
3406
3405
  receivedRate: number;
3407
3406
  rateMax?: number | null | undefined;
3408
3407
  };
3409
- tradeId: string;
3410
3408
  description: string;
3411
3409
  numberOfPositions: number;
3410
+ tradeId: string;
3412
3411
  workHours?: number | null | undefined;
3413
3412
  location?: {
3414
3413
  address?: string | null | undefined;
@@ -3420,11 +3419,13 @@ export declare const activesContractRouter: {
3420
3419
  areaCovered?: string | null | undefined;
3421
3420
  } | null | undefined;
3422
3421
  };
3422
+ userId: string;
3423
3423
  endDate?: string | Date | null | undefined;
3424
3424
  }>;
3425
3425
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3426
3426
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3427
3427
  }, "strip", z.ZodTypeAny, {
3428
+ date: string;
3428
3429
  createdAt: string;
3429
3430
  updatedAt: string;
3430
3431
  id: string;
@@ -3432,7 +3433,6 @@ export declare const activesContractRouter: {
3432
3433
  rate: number;
3433
3434
  unit: "DAILY" | "HOURLY";
3434
3435
  };
3435
- date: string;
3436
3436
  comment: string | null;
3437
3437
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
3438
3438
  statusSaUpdatedAt: string | null;
@@ -3442,20 +3442,19 @@ export declare const activesContractRouter: {
3442
3442
  hoursWorkedUpdatedAt: string | null;
3443
3443
  booking: {
3444
3444
  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";
3445
- startDate: string;
3446
3445
  createdAt: string;
3447
3446
  updatedAt: string;
3448
3447
  id: string;
3448
+ pay: {
3449
+ rate: number;
3450
+ unit: "DAILY" | "HOURLY";
3451
+ };
3452
+ startDate: string;
3449
3453
  worker: {
3450
3454
  id: string;
3451
3455
  firstName: string;
3452
3456
  lastName: string;
3453
3457
  };
3454
- pay: {
3455
- rate: number;
3456
- unit: "DAILY" | "HOURLY";
3457
- };
3458
- userId: string;
3459
3458
  user: {
3460
3459
  id: string;
3461
3460
  firstName: string;
@@ -3473,9 +3472,9 @@ export declare const activesContractRouter: {
3473
3472
  receivedRate: number;
3474
3473
  rateMax?: number | null | undefined;
3475
3474
  };
3476
- tradeId: string;
3477
3475
  description: string;
3478
3476
  numberOfPositions: number;
3477
+ tradeId: string;
3479
3478
  workHours?: number | null | undefined;
3480
3479
  location?: {
3481
3480
  address?: string | null | undefined;
@@ -3487,9 +3486,11 @@ export declare const activesContractRouter: {
3487
3486
  areaCovered?: string | null | undefined;
3488
3487
  } | null | undefined;
3489
3488
  };
3489
+ userId: string;
3490
3490
  endDate?: string | null | undefined;
3491
3491
  };
3492
3492
  }, {
3493
+ date: string;
3493
3494
  createdAt: string | Date;
3494
3495
  updatedAt: string | Date;
3495
3496
  id: string;
@@ -3497,7 +3498,6 @@ export declare const activesContractRouter: {
3497
3498
  rate: number;
3498
3499
  unit: "DAILY" | "HOURLY";
3499
3500
  };
3500
- date: string | Date;
3501
3501
  comment: string | null;
3502
3502
  statusSa: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
3503
3503
  statusSaUpdatedAt: string | Date | null;
@@ -3507,20 +3507,19 @@ export declare const activesContractRouter: {
3507
3507
  hoursWorkedUpdatedAt: string | Date | null;
3508
3508
  booking: {
3509
3509
  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";
3510
- startDate: string | Date;
3511
3510
  createdAt: string | Date;
3512
3511
  updatedAt: string | Date;
3513
3512
  id: string;
3513
+ pay: {
3514
+ rate: number;
3515
+ unit: "DAILY" | "HOURLY";
3516
+ };
3517
+ startDate: string | Date;
3514
3518
  worker: {
3515
3519
  id: string;
3516
3520
  firstName: string;
3517
3521
  lastName: string;
3518
3522
  };
3519
- pay: {
3520
- rate: number;
3521
- unit: "DAILY" | "HOURLY";
3522
- };
3523
- userId: string;
3524
3523
  user: {
3525
3524
  id: string;
3526
3525
  firstName: string;
@@ -3538,9 +3537,9 @@ export declare const activesContractRouter: {
3538
3537
  receivedRate: number;
3539
3538
  rateMax?: number | null | undefined;
3540
3539
  };
3541
- tradeId: string;
3542
3540
  description: string;
3543
3541
  numberOfPositions: number;
3542
+ tradeId: string;
3544
3543
  workHours?: number | null | undefined;
3545
3544
  location?: {
3546
3545
  address?: string | null | undefined;
@@ -3552,6 +3551,7 @@ export declare const activesContractRouter: {
3552
3551
  areaCovered?: string | null | undefined;
3553
3552
  } | null | undefined;
3554
3553
  };
3554
+ userId: string;
3555
3555
  endDate?: string | Date | null | undefined;
3556
3556
  };
3557
3557
  }>;