@dakkitor/api-contracts 1.1.22 → 1.1.23

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.
@@ -40,12 +40,12 @@ export declare const ActiveSchema: z.ZodObject<{
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  phoneNumber: string;
42
42
  isPrimary: boolean;
43
- description?: string | undefined;
44
43
  id?: string | undefined;
44
+ description?: string | undefined;
45
45
  }, {
46
46
  phoneNumber: string;
47
- description?: string | undefined;
48
47
  id?: string | undefined;
48
+ description?: string | undefined;
49
49
  isPrimary?: boolean | undefined;
50
50
  }>, "many">>>;
51
51
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -161,12 +161,13 @@ export declare const ActiveSchema: z.ZodObject<{
161
161
  phoneNumbers: {
162
162
  phoneNumber: string;
163
163
  isPrimary: boolean;
164
- description?: string | undefined;
165
164
  id?: string | undefined;
165
+ description?: string | undefined;
166
166
  }[];
167
167
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
168
168
  hasTools: boolean;
169
169
  hasPpe: boolean;
170
+ email?: string | null | undefined;
170
171
  location?: {
171
172
  address?: string | null | undefined;
172
173
  postcode?: string | null | undefined;
@@ -176,7 +177,6 @@ export declare const ActiveSchema: z.ZodObject<{
176
177
  postTown?: string | null | undefined;
177
178
  areaCovered?: string | null | undefined;
178
179
  } | null | undefined;
179
- email?: string | null | undefined;
180
180
  nino?: string | null | undefined;
181
181
  dateOfBirth?: string | null | undefined;
182
182
  bio?: string | null | undefined;
@@ -218,6 +218,7 @@ export declare const ActiveSchema: z.ZodObject<{
218
218
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
219
219
  hasTools: boolean;
220
220
  hasPpe: boolean;
221
+ email?: string | null | undefined;
221
222
  location?: {
222
223
  address?: string | null | undefined;
223
224
  postcode?: string | null | undefined;
@@ -227,11 +228,10 @@ export declare const ActiveSchema: z.ZodObject<{
227
228
  postTown?: string | null | undefined;
228
229
  areaCovered?: string | null | undefined;
229
230
  } | null | undefined;
230
- email?: string | null | undefined;
231
231
  phoneNumbers?: {
232
232
  phoneNumber: string;
233
- description?: string | undefined;
234
233
  id?: string | undefined;
234
+ description?: string | undefined;
235
235
  isPrimary?: boolean | undefined;
236
236
  }[] | undefined;
237
237
  nino?: string | null | undefined;
@@ -368,7 +368,7 @@ export declare const ActiveSchema: z.ZodObject<{
368
368
  }>, "many">>>;
369
369
  currentCollaboration: z.ZodNullable<z.ZodObject<{
370
370
  id: z.ZodString;
371
- company: z.ZodObject<{
371
+ company: z.ZodOptional<z.ZodObject<{
372
372
  id: z.ZodString;
373
373
  name: z.ZodString;
374
374
  }, "strip", z.ZodTypeAny, {
@@ -377,8 +377,8 @@ export declare const ActiveSchema: z.ZodObject<{
377
377
  }, {
378
378
  id: string;
379
379
  name: string;
380
- }>;
381
- client: z.ZodObject<{
380
+ }>>;
381
+ client: z.ZodOptional<z.ZodObject<{
382
382
  id: z.ZodString;
383
383
  name: z.ZodString;
384
384
  }, "strip", z.ZodTypeAny, {
@@ -387,8 +387,8 @@ export declare const ActiveSchema: z.ZodObject<{
387
387
  }, {
388
388
  id: string;
389
389
  name: string;
390
- }>;
391
- user: z.ZodObject<{
390
+ }>>;
391
+ user: z.ZodOptional<z.ZodObject<{
392
392
  id: z.ZodString;
393
393
  firstName: z.ZodString;
394
394
  lastName: z.ZodString;
@@ -403,7 +403,7 @@ export declare const ActiveSchema: z.ZodObject<{
403
403
  firstName: string;
404
404
  lastName: string;
405
405
  email: string;
406
- }>;
406
+ }>>;
407
407
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
408
408
  userId: z.ZodString;
409
409
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -416,48 +416,48 @@ export declare const ActiveSchema: z.ZodObject<{
416
416
  id: string;
417
417
  }>>>;
418
418
  }, "strip", z.ZodTypeAny, {
419
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
420
419
  createdAt: string;
421
420
  updatedAt: string;
421
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
422
422
  id: string;
423
- company: {
423
+ userId: string;
424
+ company?: {
424
425
  id: string;
425
426
  name: string;
426
- };
427
- client: {
427
+ } | undefined;
428
+ client?: {
428
429
  id: string;
429
430
  name: string;
430
- };
431
- user: {
431
+ } | undefined;
432
+ user?: {
432
433
  id: string;
433
434
  firstName: string;
434
435
  lastName: string;
435
436
  email: string;
436
- };
437
- userId: string;
437
+ } | undefined;
438
438
  newCollaboration?: {
439
439
  id: string;
440
440
  } | null | undefined;
441
441
  }, {
442
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
443
442
  createdAt: string | Date;
444
443
  updatedAt: string | Date;
444
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
445
445
  id: string;
446
- company: {
446
+ userId: string;
447
+ company?: {
447
448
  id: string;
448
449
  name: string;
449
- };
450
- client: {
450
+ } | undefined;
451
+ client?: {
451
452
  id: string;
452
453
  name: string;
453
- };
454
- user: {
454
+ } | undefined;
455
+ user?: {
455
456
  id: string;
456
457
  firstName: string;
457
458
  lastName: string;
458
459
  email: string;
459
- };
460
- userId: string;
460
+ } | undefined;
461
461
  newCollaboration?: {
462
462
  id: string;
463
463
  } | null | undefined;
@@ -465,12 +465,12 @@ export declare const ActiveSchema: z.ZodObject<{
465
465
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
466
466
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
467
467
  }, "strip", z.ZodTypeAny, {
468
- description: string;
469
- numberOfPositions: number;
470
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
471
468
  createdAt: string;
472
469
  updatedAt: string;
470
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
473
471
  id: string;
472
+ description: string;
473
+ numberOfPositions: number;
474
474
  pay: {
475
475
  rateUnit: "DAILY" | "HOURLY";
476
476
  rate: number;
@@ -484,25 +484,25 @@ export declare const ActiveSchema: z.ZodObject<{
484
484
  qualificationTypeId?: string | null | undefined;
485
485
  }[];
486
486
  currentCollaboration: {
487
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
488
487
  createdAt: string;
489
488
  updatedAt: string;
489
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
490
490
  id: string;
491
- company: {
491
+ userId: string;
492
+ company?: {
492
493
  id: string;
493
494
  name: string;
494
- };
495
- client: {
495
+ } | undefined;
496
+ client?: {
496
497
  id: string;
497
498
  name: string;
498
- };
499
- user: {
499
+ } | undefined;
500
+ user?: {
500
501
  id: string;
501
502
  firstName: string;
502
503
  lastName: string;
503
504
  email: string;
504
- };
505
- userId: string;
505
+ } | undefined;
506
506
  newCollaboration?: {
507
507
  id: string;
508
508
  } | null | undefined;
@@ -518,12 +518,12 @@ export declare const ActiveSchema: z.ZodObject<{
518
518
  areaCovered?: string | null | undefined;
519
519
  } | null | undefined;
520
520
  }, {
521
- description: string;
522
- numberOfPositions: number;
523
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
524
521
  createdAt: string | Date;
525
522
  updatedAt: string | Date;
523
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
526
524
  id: string;
525
+ description: string;
526
+ numberOfPositions: number;
527
527
  pay: {
528
528
  rateUnit: "DAILY" | "HOURLY";
529
529
  rate: number;
@@ -532,25 +532,25 @@ export declare const ActiveSchema: z.ZodObject<{
532
532
  };
533
533
  tradeId: string;
534
534
  currentCollaboration: {
535
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
536
535
  createdAt: string | Date;
537
536
  updatedAt: string | Date;
537
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
538
538
  id: string;
539
- company: {
539
+ userId: string;
540
+ company?: {
540
541
  id: string;
541
542
  name: string;
542
- };
543
- client: {
543
+ } | undefined;
544
+ client?: {
544
545
  id: string;
545
546
  name: string;
546
- };
547
- user: {
547
+ } | undefined;
548
+ user?: {
548
549
  id: string;
549
550
  firstName: string;
550
551
  lastName: string;
551
552
  email: string;
552
- };
553
- userId: string;
553
+ } | undefined;
554
554
  newCollaboration?: {
555
555
  id: string;
556
556
  } | null | undefined;
@@ -575,14 +575,10 @@ export declare const ActiveSchema: z.ZodObject<{
575
575
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
576
576
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
577
577
  }, "strip", z.ZodTypeAny, {
578
- 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";
579
578
  createdAt: string;
580
579
  updatedAt: string;
580
+ 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";
581
581
  id: string;
582
- pay: {
583
- rate: number;
584
- unit: "DAILY" | "HOURLY";
585
- };
586
582
  user: {
587
583
  createdAt: string;
588
584
  updatedAt: string;
@@ -594,6 +590,10 @@ export declare const ActiveSchema: z.ZodObject<{
594
590
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
595
591
  };
596
592
  userId: string;
593
+ pay: {
594
+ rate: number;
595
+ unit: "DAILY" | "HOURLY";
596
+ };
597
597
  startDate: string;
598
598
  worker: {
599
599
  createdAt: string;
@@ -604,12 +604,13 @@ export declare const ActiveSchema: z.ZodObject<{
604
604
  phoneNumbers: {
605
605
  phoneNumber: string;
606
606
  isPrimary: boolean;
607
- description?: string | undefined;
608
607
  id?: string | undefined;
608
+ description?: string | undefined;
609
609
  }[];
610
610
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
611
611
  hasTools: boolean;
612
612
  hasPpe: boolean;
613
+ email?: string | null | undefined;
613
614
  location?: {
614
615
  address?: string | null | undefined;
615
616
  postcode?: string | null | undefined;
@@ -619,7 +620,6 @@ export declare const ActiveSchema: z.ZodObject<{
619
620
  postTown?: string | null | undefined;
620
621
  areaCovered?: string | null | undefined;
621
622
  } | null | undefined;
622
- email?: string | null | undefined;
623
623
  nino?: string | null | undefined;
624
624
  dateOfBirth?: string | null | undefined;
625
625
  bio?: string | null | undefined;
@@ -654,12 +654,12 @@ export declare const ActiveSchema: z.ZodObject<{
654
654
  distanceKm?: number | null | undefined;
655
655
  };
656
656
  job: {
657
- description: string;
658
- numberOfPositions: number;
659
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
660
657
  createdAt: string;
661
658
  updatedAt: string;
659
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
662
660
  id: string;
661
+ description: string;
662
+ numberOfPositions: number;
663
663
  pay: {
664
664
  rateUnit: "DAILY" | "HOURLY";
665
665
  rate: number;
@@ -673,25 +673,25 @@ export declare const ActiveSchema: z.ZodObject<{
673
673
  qualificationTypeId?: string | null | undefined;
674
674
  }[];
675
675
  currentCollaboration: {
676
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
677
676
  createdAt: string;
678
677
  updatedAt: string;
678
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
679
679
  id: string;
680
- company: {
680
+ userId: string;
681
+ company?: {
681
682
  id: string;
682
683
  name: string;
683
- };
684
- client: {
684
+ } | undefined;
685
+ client?: {
685
686
  id: string;
686
687
  name: string;
687
- };
688
- user: {
688
+ } | undefined;
689
+ user?: {
689
690
  id: string;
690
691
  firstName: string;
691
692
  lastName: string;
692
693
  email: string;
693
- };
694
- userId: string;
694
+ } | undefined;
695
695
  newCollaboration?: {
696
696
  id: string;
697
697
  } | null | undefined;
@@ -709,14 +709,10 @@ export declare const ActiveSchema: z.ZodObject<{
709
709
  };
710
710
  endDate?: string | null | undefined;
711
711
  }, {
712
- 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";
713
712
  createdAt: string | Date;
714
713
  updatedAt: string | Date;
714
+ 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";
715
715
  id: string;
716
- pay: {
717
- rate: number;
718
- unit: "DAILY" | "HOURLY";
719
- };
720
716
  user: {
721
717
  createdAt: string | Date;
722
718
  updatedAt: string | Date;
@@ -728,6 +724,10 @@ export declare const ActiveSchema: z.ZodObject<{
728
724
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
729
725
  };
730
726
  userId: string;
727
+ pay: {
728
+ rate: number;
729
+ unit: "DAILY" | "HOURLY";
730
+ };
731
731
  startDate: string | Date;
732
732
  worker: {
733
733
  createdAt: string | Date;
@@ -738,6 +738,7 @@ export declare const ActiveSchema: z.ZodObject<{
738
738
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
739
739
  hasTools: boolean;
740
740
  hasPpe: boolean;
741
+ email?: string | null | undefined;
741
742
  location?: {
742
743
  address?: string | null | undefined;
743
744
  postcode?: string | null | undefined;
@@ -747,11 +748,10 @@ export declare const ActiveSchema: z.ZodObject<{
747
748
  postTown?: string | null | undefined;
748
749
  areaCovered?: string | null | undefined;
749
750
  } | null | undefined;
750
- email?: string | null | undefined;
751
751
  phoneNumbers?: {
752
752
  phoneNumber: string;
753
- description?: string | undefined;
754
753
  id?: string | undefined;
754
+ description?: string | undefined;
755
755
  isPrimary?: boolean | undefined;
756
756
  }[] | undefined;
757
757
  nino?: string | null | undefined;
@@ -788,12 +788,12 @@ export declare const ActiveSchema: z.ZodObject<{
788
788
  distanceKm?: number | null | undefined;
789
789
  };
790
790
  job: {
791
- description: string;
792
- numberOfPositions: number;
793
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
794
791
  createdAt: string | Date;
795
792
  updatedAt: string | Date;
793
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
796
794
  id: string;
795
+ description: string;
796
+ numberOfPositions: number;
797
797
  pay: {
798
798
  rateUnit: "DAILY" | "HOURLY";
799
799
  rate: number;
@@ -802,25 +802,25 @@ export declare const ActiveSchema: z.ZodObject<{
802
802
  };
803
803
  tradeId: string;
804
804
  currentCollaboration: {
805
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
806
805
  createdAt: string | Date;
807
806
  updatedAt: string | Date;
807
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
808
808
  id: string;
809
- company: {
809
+ userId: string;
810
+ company?: {
810
811
  id: string;
811
812
  name: string;
812
- };
813
- client: {
813
+ } | undefined;
814
+ client?: {
814
815
  id: string;
815
816
  name: string;
816
- };
817
- user: {
817
+ } | undefined;
818
+ user?: {
818
819
  id: string;
819
820
  firstName: string;
820
821
  lastName: string;
821
822
  email: string;
822
- };
823
- userId: string;
823
+ } | undefined;
824
824
  newCollaboration?: {
825
825
  id: string;
826
826
  } | null | undefined;
@@ -849,11 +849,11 @@ export declare const ActiveSchema: z.ZodObject<{
849
849
  createdAt: string;
850
850
  updatedAt: string;
851
851
  id: string;
852
+ date: string;
852
853
  pay: {
853
854
  rate: number;
854
855
  unit: "DAILY" | "HOURLY";
855
856
  };
856
- date: string;
857
857
  comment: string | null;
858
858
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
859
859
  statusSaUpdatedAt: string | null;
@@ -862,14 +862,10 @@ export declare const ActiveSchema: z.ZodObject<{
862
862
  hoursWorked: number | null;
863
863
  hoursWorkedUpdatedAt: string | null;
864
864
  booking: {
865
- 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";
866
865
  createdAt: string;
867
866
  updatedAt: string;
867
+ 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";
868
868
  id: string;
869
- pay: {
870
- rate: number;
871
- unit: "DAILY" | "HOURLY";
872
- };
873
869
  user: {
874
870
  createdAt: string;
875
871
  updatedAt: string;
@@ -881,6 +877,10 @@ export declare const ActiveSchema: z.ZodObject<{
881
877
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
882
878
  };
883
879
  userId: string;
880
+ pay: {
881
+ rate: number;
882
+ unit: "DAILY" | "HOURLY";
883
+ };
884
884
  startDate: string;
885
885
  worker: {
886
886
  createdAt: string;
@@ -891,12 +891,13 @@ export declare const ActiveSchema: z.ZodObject<{
891
891
  phoneNumbers: {
892
892
  phoneNumber: string;
893
893
  isPrimary: boolean;
894
- description?: string | undefined;
895
894
  id?: string | undefined;
895
+ description?: string | undefined;
896
896
  }[];
897
897
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
898
898
  hasTools: boolean;
899
899
  hasPpe: boolean;
900
+ email?: string | null | undefined;
900
901
  location?: {
901
902
  address?: string | null | undefined;
902
903
  postcode?: string | null | undefined;
@@ -906,7 +907,6 @@ export declare const ActiveSchema: z.ZodObject<{
906
907
  postTown?: string | null | undefined;
907
908
  areaCovered?: string | null | undefined;
908
909
  } | null | undefined;
909
- email?: string | null | undefined;
910
910
  nino?: string | null | undefined;
911
911
  dateOfBirth?: string | null | undefined;
912
912
  bio?: string | null | undefined;
@@ -941,12 +941,12 @@ export declare const ActiveSchema: z.ZodObject<{
941
941
  distanceKm?: number | null | undefined;
942
942
  };
943
943
  job: {
944
- description: string;
945
- numberOfPositions: number;
946
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
947
944
  createdAt: string;
948
945
  updatedAt: string;
946
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
949
947
  id: string;
948
+ description: string;
949
+ numberOfPositions: number;
950
950
  pay: {
951
951
  rateUnit: "DAILY" | "HOURLY";
952
952
  rate: number;
@@ -960,25 +960,25 @@ export declare const ActiveSchema: z.ZodObject<{
960
960
  qualificationTypeId?: string | null | undefined;
961
961
  }[];
962
962
  currentCollaboration: {
963
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
964
963
  createdAt: string;
965
964
  updatedAt: string;
965
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
966
966
  id: string;
967
- company: {
967
+ userId: string;
968
+ company?: {
968
969
  id: string;
969
970
  name: string;
970
- };
971
- client: {
971
+ } | undefined;
972
+ client?: {
972
973
  id: string;
973
974
  name: string;
974
- };
975
- user: {
975
+ } | undefined;
976
+ user?: {
976
977
  id: string;
977
978
  firstName: string;
978
979
  lastName: string;
979
980
  email: string;
980
- };
981
- userId: string;
981
+ } | undefined;
982
982
  newCollaboration?: {
983
983
  id: string;
984
984
  } | null | undefined;
@@ -1000,11 +1000,11 @@ export declare const ActiveSchema: z.ZodObject<{
1000
1000
  createdAt: string | Date;
1001
1001
  updatedAt: string | Date;
1002
1002
  id: string;
1003
+ date: string;
1003
1004
  pay: {
1004
1005
  rate: number;
1005
1006
  unit: "DAILY" | "HOURLY";
1006
1007
  };
1007
- date: string;
1008
1008
  comment: string | null;
1009
1009
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
1010
1010
  statusSaUpdatedAt: string | Date | null;
@@ -1013,14 +1013,10 @@ export declare const ActiveSchema: z.ZodObject<{
1013
1013
  hoursWorked: number | null;
1014
1014
  hoursWorkedUpdatedAt: string | Date | null;
1015
1015
  booking: {
1016
- 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";
1017
1016
  createdAt: string | Date;
1018
1017
  updatedAt: string | Date;
1018
+ 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";
1019
1019
  id: string;
1020
- pay: {
1021
- rate: number;
1022
- unit: "DAILY" | "HOURLY";
1023
- };
1024
1020
  user: {
1025
1021
  createdAt: string | Date;
1026
1022
  updatedAt: string | Date;
@@ -1032,6 +1028,10 @@ export declare const ActiveSchema: z.ZodObject<{
1032
1028
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1033
1029
  };
1034
1030
  userId: string;
1031
+ pay: {
1032
+ rate: number;
1033
+ unit: "DAILY" | "HOURLY";
1034
+ };
1035
1035
  startDate: string | Date;
1036
1036
  worker: {
1037
1037
  createdAt: string | Date;
@@ -1042,6 +1042,7 @@ export declare const ActiveSchema: z.ZodObject<{
1042
1042
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1043
1043
  hasTools: boolean;
1044
1044
  hasPpe: boolean;
1045
+ email?: string | null | undefined;
1045
1046
  location?: {
1046
1047
  address?: string | null | undefined;
1047
1048
  postcode?: string | null | undefined;
@@ -1051,11 +1052,10 @@ export declare const ActiveSchema: z.ZodObject<{
1051
1052
  postTown?: string | null | undefined;
1052
1053
  areaCovered?: string | null | undefined;
1053
1054
  } | null | undefined;
1054
- email?: string | null | undefined;
1055
1055
  phoneNumbers?: {
1056
1056
  phoneNumber: string;
1057
- description?: string | undefined;
1058
1057
  id?: string | undefined;
1058
+ description?: string | undefined;
1059
1059
  isPrimary?: boolean | undefined;
1060
1060
  }[] | undefined;
1061
1061
  nino?: string | null | undefined;
@@ -1092,12 +1092,12 @@ export declare const ActiveSchema: z.ZodObject<{
1092
1092
  distanceKm?: number | null | undefined;
1093
1093
  };
1094
1094
  job: {
1095
- description: string;
1096
- numberOfPositions: number;
1097
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
1098
1095
  createdAt: string | Date;
1099
1096
  updatedAt: string | Date;
1097
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
1100
1098
  id: string;
1099
+ description: string;
1100
+ numberOfPositions: number;
1101
1101
  pay: {
1102
1102
  rateUnit: "DAILY" | "HOURLY";
1103
1103
  rate: number;
@@ -1106,25 +1106,25 @@ export declare const ActiveSchema: z.ZodObject<{
1106
1106
  };
1107
1107
  tradeId: string;
1108
1108
  currentCollaboration: {
1109
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1110
1109
  createdAt: string | Date;
1111
1110
  updatedAt: string | Date;
1111
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1112
1112
  id: string;
1113
- company: {
1113
+ userId: string;
1114
+ company?: {
1114
1115
  id: string;
1115
1116
  name: string;
1116
- };
1117
- client: {
1117
+ } | undefined;
1118
+ client?: {
1118
1119
  id: string;
1119
1120
  name: string;
1120
- };
1121
- user: {
1121
+ } | undefined;
1122
+ user?: {
1122
1123
  id: string;
1123
1124
  firstName: string;
1124
1125
  lastName: string;
1125
1126
  email: string;
1126
- };
1127
- userId: string;
1127
+ } | undefined;
1128
1128
  newCollaboration?: {
1129
1129
  id: string;
1130
1130
  } | null | undefined;
@@ -1164,20 +1164,20 @@ export declare const CreateActiveSchema: z.ZodObject<{
1164
1164
  statusSa: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
1165
1165
  statusFa: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
1166
1166
  }, "strip", z.ZodTypeAny, {
1167
+ date: string;
1167
1168
  pay: {
1168
1169
  rate: number;
1169
1170
  unit: "DAILY" | "HOURLY";
1170
1171
  };
1171
- date: string;
1172
1172
  comment?: string | undefined;
1173
1173
  statusSa?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
1174
1174
  statusFa?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
1175
1175
  }, {
1176
+ date: string;
1176
1177
  pay: {
1177
1178
  rate: number;
1178
1179
  unit: "DAILY" | "HOURLY";
1179
1180
  };
1180
- date: string;
1181
1181
  comment?: string | undefined;
1182
1182
  statusSa?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
1183
1183
  statusFa?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
@@ -1266,11 +1266,17 @@ export declare const FilterActiveSchema: z.ZodObject<{
1266
1266
  }, "strip", z.ZodTypeAny, {
1267
1267
  limit: number;
1268
1268
  page: number;
1269
+ createdAt?: {
1270
+ from?: string | null | undefined;
1271
+ to?: string | null | undefined;
1272
+ } | null | undefined;
1269
1273
  status?: {
1270
1274
  filterType: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER";
1271
1275
  status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
1272
1276
  } | null | undefined;
1273
- createdAt?: {
1277
+ sortBy?: "createdAt" | "updatedAt" | "status" | "date" | "payRate" | null | undefined;
1278
+ sortOrder?: "ASC" | "DESC" | null | undefined;
1279
+ date?: {
1274
1280
  from?: string | null | undefined;
1275
1281
  to?: string | null | undefined;
1276
1282
  } | null | undefined;
@@ -1278,34 +1284,28 @@ export declare const FilterActiveSchema: z.ZodObject<{
1278
1284
  minRate?: number | null | undefined;
1279
1285
  maxRate?: number | null | undefined;
1280
1286
  } | null | undefined;
1281
- sortBy?: "status" | "createdAt" | "updatedAt" | "date" | "payRate" | null | undefined;
1282
- sortOrder?: "ASC" | "DESC" | null | undefined;
1283
- date?: {
1284
- from?: string | null | undefined;
1285
- to?: string | null | undefined;
1286
- } | null | undefined;
1287
1287
  bookingId?: string | null | undefined;
1288
1288
  }, {
1289
- status?: {
1290
- status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
1291
- filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
1292
- } | null | undefined;
1293
1289
  createdAt?: {
1294
1290
  from?: string | null | undefined;
1295
1291
  to?: string | null | undefined;
1296
1292
  } | null | undefined;
1297
- pay?: {
1298
- minRate?: number | null | undefined;
1299
- maxRate?: number | null | undefined;
1293
+ status?: {
1294
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
1295
+ filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
1300
1296
  } | null | undefined;
1301
1297
  limit?: number | undefined;
1302
1298
  page?: number | undefined;
1303
- sortBy?: "status" | "createdAt" | "updatedAt" | "date" | "payRate" | null | undefined;
1299
+ sortBy?: "createdAt" | "updatedAt" | "status" | "date" | "payRate" | null | undefined;
1304
1300
  sortOrder?: "ASC" | "DESC" | null | undefined;
1305
1301
  date?: {
1306
1302
  from?: string | null | undefined;
1307
1303
  to?: string | null | undefined;
1308
1304
  } | null | undefined;
1305
+ pay?: {
1306
+ minRate?: number | null | undefined;
1307
+ maxRate?: number | null | undefined;
1308
+ } | null | undefined;
1309
1309
  bookingId?: string | null | undefined;
1310
1310
  }>;
1311
1311
  export declare const PaginatedActiveResponseSchema: z.ZodObject<{
@@ -1347,12 +1347,12 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1347
1347
  }, "strip", z.ZodTypeAny, {
1348
1348
  phoneNumber: string;
1349
1349
  isPrimary: boolean;
1350
- description?: string | undefined;
1351
1350
  id?: string | undefined;
1351
+ description?: string | undefined;
1352
1352
  }, {
1353
1353
  phoneNumber: string;
1354
- description?: string | undefined;
1355
1354
  id?: string | undefined;
1355
+ description?: string | undefined;
1356
1356
  isPrimary?: boolean | undefined;
1357
1357
  }>, "many">>>;
1358
1358
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1468,12 +1468,13 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1468
1468
  phoneNumbers: {
1469
1469
  phoneNumber: string;
1470
1470
  isPrimary: boolean;
1471
- description?: string | undefined;
1472
1471
  id?: string | undefined;
1472
+ description?: string | undefined;
1473
1473
  }[];
1474
1474
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1475
1475
  hasTools: boolean;
1476
1476
  hasPpe: boolean;
1477
+ email?: string | null | undefined;
1477
1478
  location?: {
1478
1479
  address?: string | null | undefined;
1479
1480
  postcode?: string | null | undefined;
@@ -1483,7 +1484,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1483
1484
  postTown?: string | null | undefined;
1484
1485
  areaCovered?: string | null | undefined;
1485
1486
  } | null | undefined;
1486
- email?: string | null | undefined;
1487
1487
  nino?: string | null | undefined;
1488
1488
  dateOfBirth?: string | null | undefined;
1489
1489
  bio?: string | null | undefined;
@@ -1525,6 +1525,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1525
1525
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1526
1526
  hasTools: boolean;
1527
1527
  hasPpe: boolean;
1528
+ email?: string | null | undefined;
1528
1529
  location?: {
1529
1530
  address?: string | null | undefined;
1530
1531
  postcode?: string | null | undefined;
@@ -1534,11 +1535,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1534
1535
  postTown?: string | null | undefined;
1535
1536
  areaCovered?: string | null | undefined;
1536
1537
  } | null | undefined;
1537
- email?: string | null | undefined;
1538
1538
  phoneNumbers?: {
1539
1539
  phoneNumber: string;
1540
- description?: string | undefined;
1541
1540
  id?: string | undefined;
1541
+ description?: string | undefined;
1542
1542
  isPrimary?: boolean | undefined;
1543
1543
  }[] | undefined;
1544
1544
  nino?: string | null | undefined;
@@ -1675,7 +1675,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1675
1675
  }>, "many">>>;
1676
1676
  currentCollaboration: z.ZodNullable<z.ZodObject<{
1677
1677
  id: z.ZodString;
1678
- company: z.ZodObject<{
1678
+ company: z.ZodOptional<z.ZodObject<{
1679
1679
  id: z.ZodString;
1680
1680
  name: z.ZodString;
1681
1681
  }, "strip", z.ZodTypeAny, {
@@ -1684,8 +1684,8 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1684
1684
  }, {
1685
1685
  id: string;
1686
1686
  name: string;
1687
- }>;
1688
- client: z.ZodObject<{
1687
+ }>>;
1688
+ client: z.ZodOptional<z.ZodObject<{
1689
1689
  id: z.ZodString;
1690
1690
  name: z.ZodString;
1691
1691
  }, "strip", z.ZodTypeAny, {
@@ -1694,8 +1694,8 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1694
1694
  }, {
1695
1695
  id: string;
1696
1696
  name: string;
1697
- }>;
1698
- user: z.ZodObject<{
1697
+ }>>;
1698
+ user: z.ZodOptional<z.ZodObject<{
1699
1699
  id: z.ZodString;
1700
1700
  firstName: z.ZodString;
1701
1701
  lastName: z.ZodString;
@@ -1710,7 +1710,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1710
1710
  firstName: string;
1711
1711
  lastName: string;
1712
1712
  email: string;
1713
- }>;
1713
+ }>>;
1714
1714
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
1715
1715
  userId: z.ZodString;
1716
1716
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -1723,48 +1723,48 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1723
1723
  id: string;
1724
1724
  }>>>;
1725
1725
  }, "strip", z.ZodTypeAny, {
1726
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1727
1726
  createdAt: string;
1728
1727
  updatedAt: string;
1728
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1729
1729
  id: string;
1730
- company: {
1730
+ userId: string;
1731
+ company?: {
1731
1732
  id: string;
1732
1733
  name: string;
1733
- };
1734
- client: {
1734
+ } | undefined;
1735
+ client?: {
1735
1736
  id: string;
1736
1737
  name: string;
1737
- };
1738
- user: {
1738
+ } | undefined;
1739
+ user?: {
1739
1740
  id: string;
1740
1741
  firstName: string;
1741
1742
  lastName: string;
1742
1743
  email: string;
1743
- };
1744
- userId: string;
1744
+ } | undefined;
1745
1745
  newCollaboration?: {
1746
1746
  id: string;
1747
1747
  } | null | undefined;
1748
1748
  }, {
1749
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1750
1749
  createdAt: string | Date;
1751
1750
  updatedAt: string | Date;
1751
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1752
1752
  id: string;
1753
- company: {
1753
+ userId: string;
1754
+ company?: {
1754
1755
  id: string;
1755
1756
  name: string;
1756
- };
1757
- client: {
1757
+ } | undefined;
1758
+ client?: {
1758
1759
  id: string;
1759
1760
  name: string;
1760
- };
1761
- user: {
1761
+ } | undefined;
1762
+ user?: {
1762
1763
  id: string;
1763
1764
  firstName: string;
1764
1765
  lastName: string;
1765
1766
  email: string;
1766
- };
1767
- userId: string;
1767
+ } | undefined;
1768
1768
  newCollaboration?: {
1769
1769
  id: string;
1770
1770
  } | null | undefined;
@@ -1772,12 +1772,12 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1772
1772
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1773
1773
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1774
1774
  }, "strip", z.ZodTypeAny, {
1775
- description: string;
1776
- numberOfPositions: number;
1777
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
1778
1775
  createdAt: string;
1779
1776
  updatedAt: string;
1777
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
1780
1778
  id: string;
1779
+ description: string;
1780
+ numberOfPositions: number;
1781
1781
  pay: {
1782
1782
  rateUnit: "DAILY" | "HOURLY";
1783
1783
  rate: number;
@@ -1791,25 +1791,25 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1791
1791
  qualificationTypeId?: string | null | undefined;
1792
1792
  }[];
1793
1793
  currentCollaboration: {
1794
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1795
1794
  createdAt: string;
1796
1795
  updatedAt: string;
1796
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1797
1797
  id: string;
1798
- company: {
1798
+ userId: string;
1799
+ company?: {
1799
1800
  id: string;
1800
1801
  name: string;
1801
- };
1802
- client: {
1802
+ } | undefined;
1803
+ client?: {
1803
1804
  id: string;
1804
1805
  name: string;
1805
- };
1806
- user: {
1806
+ } | undefined;
1807
+ user?: {
1807
1808
  id: string;
1808
1809
  firstName: string;
1809
1810
  lastName: string;
1810
1811
  email: string;
1811
- };
1812
- userId: string;
1812
+ } | undefined;
1813
1813
  newCollaboration?: {
1814
1814
  id: string;
1815
1815
  } | null | undefined;
@@ -1825,12 +1825,12 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1825
1825
  areaCovered?: string | null | undefined;
1826
1826
  } | null | undefined;
1827
1827
  }, {
1828
- description: string;
1829
- numberOfPositions: number;
1830
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
1831
1828
  createdAt: string | Date;
1832
1829
  updatedAt: string | Date;
1830
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
1833
1831
  id: string;
1832
+ description: string;
1833
+ numberOfPositions: number;
1834
1834
  pay: {
1835
1835
  rateUnit: "DAILY" | "HOURLY";
1836
1836
  rate: number;
@@ -1839,25 +1839,25 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1839
1839
  };
1840
1840
  tradeId: string;
1841
1841
  currentCollaboration: {
1842
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1843
1842
  createdAt: string | Date;
1844
1843
  updatedAt: string | Date;
1844
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1845
1845
  id: string;
1846
- company: {
1846
+ userId: string;
1847
+ company?: {
1847
1848
  id: string;
1848
1849
  name: string;
1849
- };
1850
- client: {
1850
+ } | undefined;
1851
+ client?: {
1851
1852
  id: string;
1852
1853
  name: string;
1853
- };
1854
- user: {
1854
+ } | undefined;
1855
+ user?: {
1855
1856
  id: string;
1856
1857
  firstName: string;
1857
1858
  lastName: string;
1858
1859
  email: string;
1859
- };
1860
- userId: string;
1860
+ } | undefined;
1861
1861
  newCollaboration?: {
1862
1862
  id: string;
1863
1863
  } | null | undefined;
@@ -1882,14 +1882,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1882
1882
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1883
1883
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1884
1884
  }, "strip", z.ZodTypeAny, {
1885
- 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";
1886
1885
  createdAt: string;
1887
1886
  updatedAt: string;
1887
+ 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";
1888
1888
  id: string;
1889
- pay: {
1890
- rate: number;
1891
- unit: "DAILY" | "HOURLY";
1892
- };
1893
1889
  user: {
1894
1890
  createdAt: string;
1895
1891
  updatedAt: string;
@@ -1901,6 +1897,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1901
1897
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
1902
1898
  };
1903
1899
  userId: string;
1900
+ pay: {
1901
+ rate: number;
1902
+ unit: "DAILY" | "HOURLY";
1903
+ };
1904
1904
  startDate: string;
1905
1905
  worker: {
1906
1906
  createdAt: string;
@@ -1911,12 +1911,13 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1911
1911
  phoneNumbers: {
1912
1912
  phoneNumber: string;
1913
1913
  isPrimary: boolean;
1914
- description?: string | undefined;
1915
1914
  id?: string | undefined;
1915
+ description?: string | undefined;
1916
1916
  }[];
1917
1917
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1918
1918
  hasTools: boolean;
1919
1919
  hasPpe: boolean;
1920
+ email?: string | null | undefined;
1920
1921
  location?: {
1921
1922
  address?: string | null | undefined;
1922
1923
  postcode?: string | null | undefined;
@@ -1926,7 +1927,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1926
1927
  postTown?: string | null | undefined;
1927
1928
  areaCovered?: string | null | undefined;
1928
1929
  } | null | undefined;
1929
- email?: string | null | undefined;
1930
1930
  nino?: string | null | undefined;
1931
1931
  dateOfBirth?: string | null | undefined;
1932
1932
  bio?: string | null | undefined;
@@ -1961,12 +1961,12 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1961
1961
  distanceKm?: number | null | undefined;
1962
1962
  };
1963
1963
  job: {
1964
- description: string;
1965
- numberOfPositions: number;
1966
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
1967
1964
  createdAt: string;
1968
1965
  updatedAt: string;
1966
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
1969
1967
  id: string;
1968
+ description: string;
1969
+ numberOfPositions: number;
1970
1970
  pay: {
1971
1971
  rateUnit: "DAILY" | "HOURLY";
1972
1972
  rate: number;
@@ -1980,25 +1980,25 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
1980
1980
  qualificationTypeId?: string | null | undefined;
1981
1981
  }[];
1982
1982
  currentCollaboration: {
1983
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1984
1983
  createdAt: string;
1985
1984
  updatedAt: string;
1985
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
1986
1986
  id: string;
1987
- company: {
1987
+ userId: string;
1988
+ company?: {
1988
1989
  id: string;
1989
1990
  name: string;
1990
- };
1991
- client: {
1991
+ } | undefined;
1992
+ client?: {
1992
1993
  id: string;
1993
1994
  name: string;
1994
- };
1995
- user: {
1995
+ } | undefined;
1996
+ user?: {
1996
1997
  id: string;
1997
1998
  firstName: string;
1998
1999
  lastName: string;
1999
2000
  email: string;
2000
- };
2001
- userId: string;
2001
+ } | undefined;
2002
2002
  newCollaboration?: {
2003
2003
  id: string;
2004
2004
  } | null | undefined;
@@ -2016,14 +2016,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2016
2016
  };
2017
2017
  endDate?: string | null | undefined;
2018
2018
  }, {
2019
- 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";
2020
2019
  createdAt: string | Date;
2021
2020
  updatedAt: string | Date;
2021
+ 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";
2022
2022
  id: string;
2023
- pay: {
2024
- rate: number;
2025
- unit: "DAILY" | "HOURLY";
2026
- };
2027
2023
  user: {
2028
2024
  createdAt: string | Date;
2029
2025
  updatedAt: string | Date;
@@ -2035,6 +2031,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2035
2031
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
2036
2032
  };
2037
2033
  userId: string;
2034
+ pay: {
2035
+ rate: number;
2036
+ unit: "DAILY" | "HOURLY";
2037
+ };
2038
2038
  startDate: string | Date;
2039
2039
  worker: {
2040
2040
  createdAt: string | Date;
@@ -2045,6 +2045,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2045
2045
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2046
2046
  hasTools: boolean;
2047
2047
  hasPpe: boolean;
2048
+ email?: string | null | undefined;
2048
2049
  location?: {
2049
2050
  address?: string | null | undefined;
2050
2051
  postcode?: string | null | undefined;
@@ -2054,11 +2055,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2054
2055
  postTown?: string | null | undefined;
2055
2056
  areaCovered?: string | null | undefined;
2056
2057
  } | null | undefined;
2057
- email?: string | null | undefined;
2058
2058
  phoneNumbers?: {
2059
2059
  phoneNumber: string;
2060
- description?: string | undefined;
2061
2060
  id?: string | undefined;
2061
+ description?: string | undefined;
2062
2062
  isPrimary?: boolean | undefined;
2063
2063
  }[] | undefined;
2064
2064
  nino?: string | null | undefined;
@@ -2095,12 +2095,12 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2095
2095
  distanceKm?: number | null | undefined;
2096
2096
  };
2097
2097
  job: {
2098
- description: string;
2099
- numberOfPositions: number;
2100
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2101
2098
  createdAt: string | Date;
2102
2099
  updatedAt: string | Date;
2100
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2103
2101
  id: string;
2102
+ description: string;
2103
+ numberOfPositions: number;
2104
2104
  pay: {
2105
2105
  rateUnit: "DAILY" | "HOURLY";
2106
2106
  rate: number;
@@ -2109,25 +2109,25 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2109
2109
  };
2110
2110
  tradeId: string;
2111
2111
  currentCollaboration: {
2112
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2113
2112
  createdAt: string | Date;
2114
2113
  updatedAt: string | Date;
2114
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2115
2115
  id: string;
2116
- company: {
2116
+ userId: string;
2117
+ company?: {
2117
2118
  id: string;
2118
2119
  name: string;
2119
- };
2120
- client: {
2120
+ } | undefined;
2121
+ client?: {
2121
2122
  id: string;
2122
2123
  name: string;
2123
- };
2124
- user: {
2124
+ } | undefined;
2125
+ user?: {
2125
2126
  id: string;
2126
2127
  firstName: string;
2127
2128
  lastName: string;
2128
2129
  email: string;
2129
- };
2130
- userId: string;
2130
+ } | undefined;
2131
2131
  newCollaboration?: {
2132
2132
  id: string;
2133
2133
  } | null | undefined;
@@ -2156,11 +2156,11 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2156
2156
  createdAt: string;
2157
2157
  updatedAt: string;
2158
2158
  id: string;
2159
+ date: string;
2159
2160
  pay: {
2160
2161
  rate: number;
2161
2162
  unit: "DAILY" | "HOURLY";
2162
2163
  };
2163
- date: string;
2164
2164
  comment: string | null;
2165
2165
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
2166
2166
  statusSaUpdatedAt: string | null;
@@ -2169,14 +2169,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2169
2169
  hoursWorked: number | null;
2170
2170
  hoursWorkedUpdatedAt: string | null;
2171
2171
  booking: {
2172
- 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";
2173
2172
  createdAt: string;
2174
2173
  updatedAt: string;
2174
+ 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";
2175
2175
  id: string;
2176
- pay: {
2177
- rate: number;
2178
- unit: "DAILY" | "HOURLY";
2179
- };
2180
2176
  user: {
2181
2177
  createdAt: string;
2182
2178
  updatedAt: string;
@@ -2188,6 +2184,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2188
2184
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
2189
2185
  };
2190
2186
  userId: string;
2187
+ pay: {
2188
+ rate: number;
2189
+ unit: "DAILY" | "HOURLY";
2190
+ };
2191
2191
  startDate: string;
2192
2192
  worker: {
2193
2193
  createdAt: string;
@@ -2198,12 +2198,13 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2198
2198
  phoneNumbers: {
2199
2199
  phoneNumber: string;
2200
2200
  isPrimary: boolean;
2201
- description?: string | undefined;
2202
2201
  id?: string | undefined;
2202
+ description?: string | undefined;
2203
2203
  }[];
2204
2204
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2205
2205
  hasTools: boolean;
2206
2206
  hasPpe: boolean;
2207
+ email?: string | null | undefined;
2207
2208
  location?: {
2208
2209
  address?: string | null | undefined;
2209
2210
  postcode?: string | null | undefined;
@@ -2213,7 +2214,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2213
2214
  postTown?: string | null | undefined;
2214
2215
  areaCovered?: string | null | undefined;
2215
2216
  } | null | undefined;
2216
- email?: string | null | undefined;
2217
2217
  nino?: string | null | undefined;
2218
2218
  dateOfBirth?: string | null | undefined;
2219
2219
  bio?: string | null | undefined;
@@ -2248,12 +2248,12 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2248
2248
  distanceKm?: number | null | undefined;
2249
2249
  };
2250
2250
  job: {
2251
- description: string;
2252
- numberOfPositions: number;
2253
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2254
2251
  createdAt: string;
2255
2252
  updatedAt: string;
2253
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2256
2254
  id: string;
2255
+ description: string;
2256
+ numberOfPositions: number;
2257
2257
  pay: {
2258
2258
  rateUnit: "DAILY" | "HOURLY";
2259
2259
  rate: number;
@@ -2267,25 +2267,25 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2267
2267
  qualificationTypeId?: string | null | undefined;
2268
2268
  }[];
2269
2269
  currentCollaboration: {
2270
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2271
2270
  createdAt: string;
2272
2271
  updatedAt: string;
2272
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2273
2273
  id: string;
2274
- company: {
2274
+ userId: string;
2275
+ company?: {
2275
2276
  id: string;
2276
2277
  name: string;
2277
- };
2278
- client: {
2278
+ } | undefined;
2279
+ client?: {
2279
2280
  id: string;
2280
2281
  name: string;
2281
- };
2282
- user: {
2282
+ } | undefined;
2283
+ user?: {
2283
2284
  id: string;
2284
2285
  firstName: string;
2285
2286
  lastName: string;
2286
2287
  email: string;
2287
- };
2288
- userId: string;
2288
+ } | undefined;
2289
2289
  newCollaboration?: {
2290
2290
  id: string;
2291
2291
  } | null | undefined;
@@ -2307,11 +2307,11 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2307
2307
  createdAt: string | Date;
2308
2308
  updatedAt: string | Date;
2309
2309
  id: string;
2310
+ date: string;
2310
2311
  pay: {
2311
2312
  rate: number;
2312
2313
  unit: "DAILY" | "HOURLY";
2313
2314
  };
2314
- date: string;
2315
2315
  comment: string | null;
2316
2316
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
2317
2317
  statusSaUpdatedAt: string | Date | null;
@@ -2320,14 +2320,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2320
2320
  hoursWorked: number | null;
2321
2321
  hoursWorkedUpdatedAt: string | Date | null;
2322
2322
  booking: {
2323
- 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";
2324
2323
  createdAt: string | Date;
2325
2324
  updatedAt: string | Date;
2325
+ 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";
2326
2326
  id: string;
2327
- pay: {
2328
- rate: number;
2329
- unit: "DAILY" | "HOURLY";
2330
- };
2331
2327
  user: {
2332
2328
  createdAt: string | Date;
2333
2329
  updatedAt: string | Date;
@@ -2339,6 +2335,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2339
2335
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
2340
2336
  };
2341
2337
  userId: string;
2338
+ pay: {
2339
+ rate: number;
2340
+ unit: "DAILY" | "HOURLY";
2341
+ };
2342
2342
  startDate: string | Date;
2343
2343
  worker: {
2344
2344
  createdAt: string | Date;
@@ -2349,6 +2349,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2349
2349
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2350
2350
  hasTools: boolean;
2351
2351
  hasPpe: boolean;
2352
+ email?: string | null | undefined;
2352
2353
  location?: {
2353
2354
  address?: string | null | undefined;
2354
2355
  postcode?: string | null | undefined;
@@ -2358,11 +2359,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2358
2359
  postTown?: string | null | undefined;
2359
2360
  areaCovered?: string | null | undefined;
2360
2361
  } | null | undefined;
2361
- email?: string | null | undefined;
2362
2362
  phoneNumbers?: {
2363
2363
  phoneNumber: string;
2364
- description?: string | undefined;
2365
2364
  id?: string | undefined;
2365
+ description?: string | undefined;
2366
2366
  isPrimary?: boolean | undefined;
2367
2367
  }[] | undefined;
2368
2368
  nino?: string | null | undefined;
@@ -2399,12 +2399,12 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2399
2399
  distanceKm?: number | null | undefined;
2400
2400
  };
2401
2401
  job: {
2402
- description: string;
2403
- numberOfPositions: number;
2404
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2405
2402
  createdAt: string | Date;
2406
2403
  updatedAt: string | Date;
2404
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2407
2405
  id: string;
2406
+ description: string;
2407
+ numberOfPositions: number;
2408
2408
  pay: {
2409
2409
  rateUnit: "DAILY" | "HOURLY";
2410
2410
  rate: number;
@@ -2413,25 +2413,25 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2413
2413
  };
2414
2414
  tradeId: string;
2415
2415
  currentCollaboration: {
2416
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2417
2416
  createdAt: string | Date;
2418
2417
  updatedAt: string | Date;
2418
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2419
2419
  id: string;
2420
- company: {
2420
+ userId: string;
2421
+ company?: {
2421
2422
  id: string;
2422
2423
  name: string;
2423
- };
2424
- client: {
2424
+ } | undefined;
2425
+ client?: {
2425
2426
  id: string;
2426
2427
  name: string;
2427
- };
2428
- user: {
2428
+ } | undefined;
2429
+ user?: {
2429
2430
  id: string;
2430
2431
  firstName: string;
2431
2432
  lastName: string;
2432
2433
  email: string;
2433
- };
2434
- userId: string;
2434
+ } | undefined;
2435
2435
  newCollaboration?: {
2436
2436
  id: string;
2437
2437
  } | null | undefined;
@@ -2466,11 +2466,11 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2466
2466
  createdAt: string;
2467
2467
  updatedAt: string;
2468
2468
  id: string;
2469
+ date: string;
2469
2470
  pay: {
2470
2471
  rate: number;
2471
2472
  unit: "DAILY" | "HOURLY";
2472
2473
  };
2473
- date: string;
2474
2474
  comment: string | null;
2475
2475
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
2476
2476
  statusSaUpdatedAt: string | null;
@@ -2479,14 +2479,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2479
2479
  hoursWorked: number | null;
2480
2480
  hoursWorkedUpdatedAt: string | null;
2481
2481
  booking: {
2482
- 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";
2483
2482
  createdAt: string;
2484
2483
  updatedAt: string;
2484
+ 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";
2485
2485
  id: string;
2486
- pay: {
2487
- rate: number;
2488
- unit: "DAILY" | "HOURLY";
2489
- };
2490
2486
  user: {
2491
2487
  createdAt: string;
2492
2488
  updatedAt: string;
@@ -2498,6 +2494,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2498
2494
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
2499
2495
  };
2500
2496
  userId: string;
2497
+ pay: {
2498
+ rate: number;
2499
+ unit: "DAILY" | "HOURLY";
2500
+ };
2501
2501
  startDate: string;
2502
2502
  worker: {
2503
2503
  createdAt: string;
@@ -2508,12 +2508,13 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2508
2508
  phoneNumbers: {
2509
2509
  phoneNumber: string;
2510
2510
  isPrimary: boolean;
2511
- description?: string | undefined;
2512
2511
  id?: string | undefined;
2512
+ description?: string | undefined;
2513
2513
  }[];
2514
2514
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2515
2515
  hasTools: boolean;
2516
2516
  hasPpe: boolean;
2517
+ email?: string | null | undefined;
2517
2518
  location?: {
2518
2519
  address?: string | null | undefined;
2519
2520
  postcode?: string | null | undefined;
@@ -2523,7 +2524,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2523
2524
  postTown?: string | null | undefined;
2524
2525
  areaCovered?: string | null | undefined;
2525
2526
  } | null | undefined;
2526
- email?: string | null | undefined;
2527
2527
  nino?: string | null | undefined;
2528
2528
  dateOfBirth?: string | null | undefined;
2529
2529
  bio?: string | null | undefined;
@@ -2558,12 +2558,12 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2558
2558
  distanceKm?: number | null | undefined;
2559
2559
  };
2560
2560
  job: {
2561
- description: string;
2562
- numberOfPositions: number;
2563
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2564
2561
  createdAt: string;
2565
2562
  updatedAt: string;
2563
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2566
2564
  id: string;
2565
+ description: string;
2566
+ numberOfPositions: number;
2567
2567
  pay: {
2568
2568
  rateUnit: "DAILY" | "HOURLY";
2569
2569
  rate: number;
@@ -2577,25 +2577,25 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2577
2577
  qualificationTypeId?: string | null | undefined;
2578
2578
  }[];
2579
2579
  currentCollaboration: {
2580
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2581
2580
  createdAt: string;
2582
2581
  updatedAt: string;
2582
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2583
2583
  id: string;
2584
- company: {
2584
+ userId: string;
2585
+ company?: {
2585
2586
  id: string;
2586
2587
  name: string;
2587
- };
2588
- client: {
2588
+ } | undefined;
2589
+ client?: {
2589
2590
  id: string;
2590
2591
  name: string;
2591
- };
2592
- user: {
2592
+ } | undefined;
2593
+ user?: {
2593
2594
  id: string;
2594
2595
  firstName: string;
2595
2596
  lastName: string;
2596
2597
  email: string;
2597
- };
2598
- userId: string;
2598
+ } | undefined;
2599
2599
  newCollaboration?: {
2600
2600
  id: string;
2601
2601
  } | null | undefined;
@@ -2624,11 +2624,11 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2624
2624
  createdAt: string | Date;
2625
2625
  updatedAt: string | Date;
2626
2626
  id: string;
2627
+ date: string;
2627
2628
  pay: {
2628
2629
  rate: number;
2629
2630
  unit: "DAILY" | "HOURLY";
2630
2631
  };
2631
- date: string;
2632
2632
  comment: string | null;
2633
2633
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
2634
2634
  statusSaUpdatedAt: string | Date | null;
@@ -2637,14 +2637,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2637
2637
  hoursWorked: number | null;
2638
2638
  hoursWorkedUpdatedAt: string | Date | null;
2639
2639
  booking: {
2640
- 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";
2641
2640
  createdAt: string | Date;
2642
2641
  updatedAt: string | Date;
2642
+ 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";
2643
2643
  id: string;
2644
- pay: {
2645
- rate: number;
2646
- unit: "DAILY" | "HOURLY";
2647
- };
2648
2644
  user: {
2649
2645
  createdAt: string | Date;
2650
2646
  updatedAt: string | Date;
@@ -2656,6 +2652,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2656
2652
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
2657
2653
  };
2658
2654
  userId: string;
2655
+ pay: {
2656
+ rate: number;
2657
+ unit: "DAILY" | "HOURLY";
2658
+ };
2659
2659
  startDate: string | Date;
2660
2660
  worker: {
2661
2661
  createdAt: string | Date;
@@ -2666,6 +2666,7 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2666
2666
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2667
2667
  hasTools: boolean;
2668
2668
  hasPpe: boolean;
2669
+ email?: string | null | undefined;
2669
2670
  location?: {
2670
2671
  address?: string | null | undefined;
2671
2672
  postcode?: string | null | undefined;
@@ -2675,11 +2676,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2675
2676
  postTown?: string | null | undefined;
2676
2677
  areaCovered?: string | null | undefined;
2677
2678
  } | null | undefined;
2678
- email?: string | null | undefined;
2679
2679
  phoneNumbers?: {
2680
2680
  phoneNumber: string;
2681
- description?: string | undefined;
2682
2681
  id?: string | undefined;
2682
+ description?: string | undefined;
2683
2683
  isPrimary?: boolean | undefined;
2684
2684
  }[] | undefined;
2685
2685
  nino?: string | null | undefined;
@@ -2716,12 +2716,12 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2716
2716
  distanceKm?: number | null | undefined;
2717
2717
  };
2718
2718
  job: {
2719
- description: string;
2720
- numberOfPositions: number;
2721
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2722
2719
  createdAt: string | Date;
2723
2720
  updatedAt: string | Date;
2721
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2724
2722
  id: string;
2723
+ description: string;
2724
+ numberOfPositions: number;
2725
2725
  pay: {
2726
2726
  rateUnit: "DAILY" | "HOURLY";
2727
2727
  rate: number;
@@ -2730,25 +2730,25 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
2730
2730
  };
2731
2731
  tradeId: string;
2732
2732
  currentCollaboration: {
2733
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2734
2733
  createdAt: string | Date;
2735
2734
  updatedAt: string | Date;
2735
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
2736
2736
  id: string;
2737
- company: {
2737
+ userId: string;
2738
+ company?: {
2738
2739
  id: string;
2739
2740
  name: string;
2740
- };
2741
- client: {
2741
+ } | undefined;
2742
+ client?: {
2742
2743
  id: string;
2743
2744
  name: string;
2744
- };
2745
- user: {
2745
+ } | undefined;
2746
+ user?: {
2746
2747
  id: string;
2747
2748
  firstName: string;
2748
2749
  lastName: string;
2749
2750
  email: string;
2750
- };
2751
- userId: string;
2751
+ } | undefined;
2752
2752
  newCollaboration?: {
2753
2753
  id: string;
2754
2754
  } | null | undefined;
@@ -2818,20 +2818,20 @@ export declare const activesContractRouter: {
2818
2818
  statusSa: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
2819
2819
  statusFa: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>>;
2820
2820
  }, "strip", z.ZodTypeAny, {
2821
+ date: string;
2821
2822
  pay: {
2822
2823
  rate: number;
2823
2824
  unit: "DAILY" | "HOURLY";
2824
2825
  };
2825
- date: string;
2826
2826
  comment?: string | undefined;
2827
2827
  statusSa?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
2828
2828
  statusFa?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
2829
2829
  }, {
2830
+ date: string;
2830
2831
  pay: {
2831
2832
  rate: number;
2832
2833
  unit: "DAILY" | "HOURLY";
2833
2834
  };
2834
- date: string;
2835
2835
  comment?: string | undefined;
2836
2836
  statusSa?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
2837
2837
  statusFa?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
@@ -2976,12 +2976,12 @@ export declare const activesContractRouter: {
2976
2976
  }, "strip", z.ZodTypeAny, {
2977
2977
  phoneNumber: string;
2978
2978
  isPrimary: boolean;
2979
- description?: string | undefined;
2980
2979
  id?: string | undefined;
2980
+ description?: string | undefined;
2981
2981
  }, {
2982
2982
  phoneNumber: string;
2983
- description?: string | undefined;
2984
2983
  id?: string | undefined;
2984
+ description?: string | undefined;
2985
2985
  isPrimary?: boolean | undefined;
2986
2986
  }>, "many">>>;
2987
2987
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3097,12 +3097,13 @@ export declare const activesContractRouter: {
3097
3097
  phoneNumbers: {
3098
3098
  phoneNumber: string;
3099
3099
  isPrimary: boolean;
3100
- description?: string | undefined;
3101
3100
  id?: string | undefined;
3101
+ description?: string | undefined;
3102
3102
  }[];
3103
3103
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3104
3104
  hasTools: boolean;
3105
3105
  hasPpe: boolean;
3106
+ email?: string | null | undefined;
3106
3107
  location?: {
3107
3108
  address?: string | null | undefined;
3108
3109
  postcode?: string | null | undefined;
@@ -3112,7 +3113,6 @@ export declare const activesContractRouter: {
3112
3113
  postTown?: string | null | undefined;
3113
3114
  areaCovered?: string | null | undefined;
3114
3115
  } | null | undefined;
3115
- email?: string | null | undefined;
3116
3116
  nino?: string | null | undefined;
3117
3117
  dateOfBirth?: string | null | undefined;
3118
3118
  bio?: string | null | undefined;
@@ -3154,6 +3154,7 @@ export declare const activesContractRouter: {
3154
3154
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3155
3155
  hasTools: boolean;
3156
3156
  hasPpe: boolean;
3157
+ email?: string | null | undefined;
3157
3158
  location?: {
3158
3159
  address?: string | null | undefined;
3159
3160
  postcode?: string | null | undefined;
@@ -3163,11 +3164,10 @@ export declare const activesContractRouter: {
3163
3164
  postTown?: string | null | undefined;
3164
3165
  areaCovered?: string | null | undefined;
3165
3166
  } | null | undefined;
3166
- email?: string | null | undefined;
3167
3167
  phoneNumbers?: {
3168
3168
  phoneNumber: string;
3169
- description?: string | undefined;
3170
3169
  id?: string | undefined;
3170
+ description?: string | undefined;
3171
3171
  isPrimary?: boolean | undefined;
3172
3172
  }[] | undefined;
3173
3173
  nino?: string | null | undefined;
@@ -3304,7 +3304,7 @@ export declare const activesContractRouter: {
3304
3304
  }>, "many">>>;
3305
3305
  currentCollaboration: z.ZodNullable<z.ZodObject<{
3306
3306
  id: z.ZodString;
3307
- company: z.ZodObject<{
3307
+ company: z.ZodOptional<z.ZodObject<{
3308
3308
  id: z.ZodString;
3309
3309
  name: z.ZodString;
3310
3310
  }, "strip", z.ZodTypeAny, {
@@ -3313,8 +3313,8 @@ export declare const activesContractRouter: {
3313
3313
  }, {
3314
3314
  id: string;
3315
3315
  name: string;
3316
- }>;
3317
- client: z.ZodObject<{
3316
+ }>>;
3317
+ client: z.ZodOptional<z.ZodObject<{
3318
3318
  id: z.ZodString;
3319
3319
  name: z.ZodString;
3320
3320
  }, "strip", z.ZodTypeAny, {
@@ -3323,8 +3323,8 @@ export declare const activesContractRouter: {
3323
3323
  }, {
3324
3324
  id: string;
3325
3325
  name: string;
3326
- }>;
3327
- user: z.ZodObject<{
3326
+ }>>;
3327
+ user: z.ZodOptional<z.ZodObject<{
3328
3328
  id: z.ZodString;
3329
3329
  firstName: z.ZodString;
3330
3330
  lastName: z.ZodString;
@@ -3339,7 +3339,7 @@ export declare const activesContractRouter: {
3339
3339
  firstName: string;
3340
3340
  lastName: string;
3341
3341
  email: string;
3342
- }>;
3342
+ }>>;
3343
3343
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
3344
3344
  userId: z.ZodString;
3345
3345
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -3352,48 +3352,48 @@ export declare const activesContractRouter: {
3352
3352
  id: string;
3353
3353
  }>>>;
3354
3354
  }, "strip", z.ZodTypeAny, {
3355
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3356
3355
  createdAt: string;
3357
3356
  updatedAt: string;
3357
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3358
3358
  id: string;
3359
- company: {
3359
+ userId: string;
3360
+ company?: {
3360
3361
  id: string;
3361
3362
  name: string;
3362
- };
3363
- client: {
3363
+ } | undefined;
3364
+ client?: {
3364
3365
  id: string;
3365
3366
  name: string;
3366
- };
3367
- user: {
3367
+ } | undefined;
3368
+ user?: {
3368
3369
  id: string;
3369
3370
  firstName: string;
3370
3371
  lastName: string;
3371
3372
  email: string;
3372
- };
3373
- userId: string;
3373
+ } | undefined;
3374
3374
  newCollaboration?: {
3375
3375
  id: string;
3376
3376
  } | null | undefined;
3377
3377
  }, {
3378
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3379
3378
  createdAt: string | Date;
3380
3379
  updatedAt: string | Date;
3380
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3381
3381
  id: string;
3382
- company: {
3382
+ userId: string;
3383
+ company?: {
3383
3384
  id: string;
3384
3385
  name: string;
3385
- };
3386
- client: {
3386
+ } | undefined;
3387
+ client?: {
3387
3388
  id: string;
3388
3389
  name: string;
3389
- };
3390
- user: {
3390
+ } | undefined;
3391
+ user?: {
3391
3392
  id: string;
3392
3393
  firstName: string;
3393
3394
  lastName: string;
3394
3395
  email: string;
3395
- };
3396
- userId: string;
3396
+ } | undefined;
3397
3397
  newCollaboration?: {
3398
3398
  id: string;
3399
3399
  } | null | undefined;
@@ -3401,12 +3401,12 @@ export declare const activesContractRouter: {
3401
3401
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3402
3402
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3403
3403
  }, "strip", z.ZodTypeAny, {
3404
- description: string;
3405
- numberOfPositions: number;
3406
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
3407
3404
  createdAt: string;
3408
3405
  updatedAt: string;
3406
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
3409
3407
  id: string;
3408
+ description: string;
3409
+ numberOfPositions: number;
3410
3410
  pay: {
3411
3411
  rateUnit: "DAILY" | "HOURLY";
3412
3412
  rate: number;
@@ -3420,25 +3420,25 @@ export declare const activesContractRouter: {
3420
3420
  qualificationTypeId?: string | null | undefined;
3421
3421
  }[];
3422
3422
  currentCollaboration: {
3423
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3424
3423
  createdAt: string;
3425
3424
  updatedAt: string;
3425
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3426
3426
  id: string;
3427
- company: {
3427
+ userId: string;
3428
+ company?: {
3428
3429
  id: string;
3429
3430
  name: string;
3430
- };
3431
- client: {
3431
+ } | undefined;
3432
+ client?: {
3432
3433
  id: string;
3433
3434
  name: string;
3434
- };
3435
- user: {
3435
+ } | undefined;
3436
+ user?: {
3436
3437
  id: string;
3437
3438
  firstName: string;
3438
3439
  lastName: string;
3439
3440
  email: string;
3440
- };
3441
- userId: string;
3441
+ } | undefined;
3442
3442
  newCollaboration?: {
3443
3443
  id: string;
3444
3444
  } | null | undefined;
@@ -3454,12 +3454,12 @@ export declare const activesContractRouter: {
3454
3454
  areaCovered?: string | null | undefined;
3455
3455
  } | null | undefined;
3456
3456
  }, {
3457
- description: string;
3458
- numberOfPositions: number;
3459
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
3460
3457
  createdAt: string | Date;
3461
3458
  updatedAt: string | Date;
3459
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
3462
3460
  id: string;
3461
+ description: string;
3462
+ numberOfPositions: number;
3463
3463
  pay: {
3464
3464
  rateUnit: "DAILY" | "HOURLY";
3465
3465
  rate: number;
@@ -3468,25 +3468,25 @@ export declare const activesContractRouter: {
3468
3468
  };
3469
3469
  tradeId: string;
3470
3470
  currentCollaboration: {
3471
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3472
3471
  createdAt: string | Date;
3473
3472
  updatedAt: string | Date;
3473
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3474
3474
  id: string;
3475
- company: {
3475
+ userId: string;
3476
+ company?: {
3476
3477
  id: string;
3477
3478
  name: string;
3478
- };
3479
- client: {
3479
+ } | undefined;
3480
+ client?: {
3480
3481
  id: string;
3481
3482
  name: string;
3482
- };
3483
- user: {
3483
+ } | undefined;
3484
+ user?: {
3484
3485
  id: string;
3485
3486
  firstName: string;
3486
3487
  lastName: string;
3487
3488
  email: string;
3488
- };
3489
- userId: string;
3489
+ } | undefined;
3490
3490
  newCollaboration?: {
3491
3491
  id: string;
3492
3492
  } | null | undefined;
@@ -3511,14 +3511,10 @@ export declare const activesContractRouter: {
3511
3511
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3512
3512
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3513
3513
  }, "strip", z.ZodTypeAny, {
3514
- 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";
3515
3514
  createdAt: string;
3516
3515
  updatedAt: string;
3516
+ 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";
3517
3517
  id: string;
3518
- pay: {
3519
- rate: number;
3520
- unit: "DAILY" | "HOURLY";
3521
- };
3522
3518
  user: {
3523
3519
  createdAt: string;
3524
3520
  updatedAt: string;
@@ -3530,6 +3526,10 @@ export declare const activesContractRouter: {
3530
3526
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
3531
3527
  };
3532
3528
  userId: string;
3529
+ pay: {
3530
+ rate: number;
3531
+ unit: "DAILY" | "HOURLY";
3532
+ };
3533
3533
  startDate: string;
3534
3534
  worker: {
3535
3535
  createdAt: string;
@@ -3540,12 +3540,13 @@ export declare const activesContractRouter: {
3540
3540
  phoneNumbers: {
3541
3541
  phoneNumber: string;
3542
3542
  isPrimary: boolean;
3543
- description?: string | undefined;
3544
3543
  id?: string | undefined;
3544
+ description?: string | undefined;
3545
3545
  }[];
3546
3546
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3547
3547
  hasTools: boolean;
3548
3548
  hasPpe: boolean;
3549
+ email?: string | null | undefined;
3549
3550
  location?: {
3550
3551
  address?: string | null | undefined;
3551
3552
  postcode?: string | null | undefined;
@@ -3555,7 +3556,6 @@ export declare const activesContractRouter: {
3555
3556
  postTown?: string | null | undefined;
3556
3557
  areaCovered?: string | null | undefined;
3557
3558
  } | null | undefined;
3558
- email?: string | null | undefined;
3559
3559
  nino?: string | null | undefined;
3560
3560
  dateOfBirth?: string | null | undefined;
3561
3561
  bio?: string | null | undefined;
@@ -3590,12 +3590,12 @@ export declare const activesContractRouter: {
3590
3590
  distanceKm?: number | null | undefined;
3591
3591
  };
3592
3592
  job: {
3593
- description: string;
3594
- numberOfPositions: number;
3595
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
3596
3593
  createdAt: string;
3597
3594
  updatedAt: string;
3595
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
3598
3596
  id: string;
3597
+ description: string;
3598
+ numberOfPositions: number;
3599
3599
  pay: {
3600
3600
  rateUnit: "DAILY" | "HOURLY";
3601
3601
  rate: number;
@@ -3609,25 +3609,25 @@ export declare const activesContractRouter: {
3609
3609
  qualificationTypeId?: string | null | undefined;
3610
3610
  }[];
3611
3611
  currentCollaboration: {
3612
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3613
3612
  createdAt: string;
3614
3613
  updatedAt: string;
3614
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3615
3615
  id: string;
3616
- company: {
3616
+ userId: string;
3617
+ company?: {
3617
3618
  id: string;
3618
3619
  name: string;
3619
- };
3620
- client: {
3620
+ } | undefined;
3621
+ client?: {
3621
3622
  id: string;
3622
3623
  name: string;
3623
- };
3624
- user: {
3624
+ } | undefined;
3625
+ user?: {
3625
3626
  id: string;
3626
3627
  firstName: string;
3627
3628
  lastName: string;
3628
3629
  email: string;
3629
- };
3630
- userId: string;
3630
+ } | undefined;
3631
3631
  newCollaboration?: {
3632
3632
  id: string;
3633
3633
  } | null | undefined;
@@ -3645,14 +3645,10 @@ export declare const activesContractRouter: {
3645
3645
  };
3646
3646
  endDate?: string | null | undefined;
3647
3647
  }, {
3648
- 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";
3649
3648
  createdAt: string | Date;
3650
3649
  updatedAt: string | Date;
3650
+ 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";
3651
3651
  id: string;
3652
- pay: {
3653
- rate: number;
3654
- unit: "DAILY" | "HOURLY";
3655
- };
3656
3652
  user: {
3657
3653
  createdAt: string | Date;
3658
3654
  updatedAt: string | Date;
@@ -3664,6 +3660,10 @@ export declare const activesContractRouter: {
3664
3660
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
3665
3661
  };
3666
3662
  userId: string;
3663
+ pay: {
3664
+ rate: number;
3665
+ unit: "DAILY" | "HOURLY";
3666
+ };
3667
3667
  startDate: string | Date;
3668
3668
  worker: {
3669
3669
  createdAt: string | Date;
@@ -3674,6 +3674,7 @@ export declare const activesContractRouter: {
3674
3674
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3675
3675
  hasTools: boolean;
3676
3676
  hasPpe: boolean;
3677
+ email?: string | null | undefined;
3677
3678
  location?: {
3678
3679
  address?: string | null | undefined;
3679
3680
  postcode?: string | null | undefined;
@@ -3683,11 +3684,10 @@ export declare const activesContractRouter: {
3683
3684
  postTown?: string | null | undefined;
3684
3685
  areaCovered?: string | null | undefined;
3685
3686
  } | null | undefined;
3686
- email?: string | null | undefined;
3687
3687
  phoneNumbers?: {
3688
3688
  phoneNumber: string;
3689
- description?: string | undefined;
3690
3689
  id?: string | undefined;
3690
+ description?: string | undefined;
3691
3691
  isPrimary?: boolean | undefined;
3692
3692
  }[] | undefined;
3693
3693
  nino?: string | null | undefined;
@@ -3724,12 +3724,12 @@ export declare const activesContractRouter: {
3724
3724
  distanceKm?: number | null | undefined;
3725
3725
  };
3726
3726
  job: {
3727
- description: string;
3728
- numberOfPositions: number;
3729
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
3730
3727
  createdAt: string | Date;
3731
3728
  updatedAt: string | Date;
3729
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
3732
3730
  id: string;
3731
+ description: string;
3732
+ numberOfPositions: number;
3733
3733
  pay: {
3734
3734
  rateUnit: "DAILY" | "HOURLY";
3735
3735
  rate: number;
@@ -3738,25 +3738,25 @@ export declare const activesContractRouter: {
3738
3738
  };
3739
3739
  tradeId: string;
3740
3740
  currentCollaboration: {
3741
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3742
3741
  createdAt: string | Date;
3743
3742
  updatedAt: string | Date;
3743
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3744
3744
  id: string;
3745
- company: {
3745
+ userId: string;
3746
+ company?: {
3746
3747
  id: string;
3747
3748
  name: string;
3748
- };
3749
- client: {
3749
+ } | undefined;
3750
+ client?: {
3750
3751
  id: string;
3751
3752
  name: string;
3752
- };
3753
- user: {
3753
+ } | undefined;
3754
+ user?: {
3754
3755
  id: string;
3755
3756
  firstName: string;
3756
3757
  lastName: string;
3757
3758
  email: string;
3758
- };
3759
- userId: string;
3759
+ } | undefined;
3760
3760
  newCollaboration?: {
3761
3761
  id: string;
3762
3762
  } | null | undefined;
@@ -3785,11 +3785,11 @@ export declare const activesContractRouter: {
3785
3785
  createdAt: string;
3786
3786
  updatedAt: string;
3787
3787
  id: string;
3788
+ date: string;
3788
3789
  pay: {
3789
3790
  rate: number;
3790
3791
  unit: "DAILY" | "HOURLY";
3791
3792
  };
3792
- date: string;
3793
3793
  comment: string | null;
3794
3794
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
3795
3795
  statusSaUpdatedAt: string | null;
@@ -3798,14 +3798,10 @@ export declare const activesContractRouter: {
3798
3798
  hoursWorked: number | null;
3799
3799
  hoursWorkedUpdatedAt: string | null;
3800
3800
  booking: {
3801
- 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";
3802
3801
  createdAt: string;
3803
3802
  updatedAt: string;
3803
+ 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";
3804
3804
  id: string;
3805
- pay: {
3806
- rate: number;
3807
- unit: "DAILY" | "HOURLY";
3808
- };
3809
3805
  user: {
3810
3806
  createdAt: string;
3811
3807
  updatedAt: string;
@@ -3817,6 +3813,10 @@ export declare const activesContractRouter: {
3817
3813
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
3818
3814
  };
3819
3815
  userId: string;
3816
+ pay: {
3817
+ rate: number;
3818
+ unit: "DAILY" | "HOURLY";
3819
+ };
3820
3820
  startDate: string;
3821
3821
  worker: {
3822
3822
  createdAt: string;
@@ -3827,12 +3827,13 @@ export declare const activesContractRouter: {
3827
3827
  phoneNumbers: {
3828
3828
  phoneNumber: string;
3829
3829
  isPrimary: boolean;
3830
- description?: string | undefined;
3831
3830
  id?: string | undefined;
3831
+ description?: string | undefined;
3832
3832
  }[];
3833
3833
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3834
3834
  hasTools: boolean;
3835
3835
  hasPpe: boolean;
3836
+ email?: string | null | undefined;
3836
3837
  location?: {
3837
3838
  address?: string | null | undefined;
3838
3839
  postcode?: string | null | undefined;
@@ -3842,7 +3843,6 @@ export declare const activesContractRouter: {
3842
3843
  postTown?: string | null | undefined;
3843
3844
  areaCovered?: string | null | undefined;
3844
3845
  } | null | undefined;
3845
- email?: string | null | undefined;
3846
3846
  nino?: string | null | undefined;
3847
3847
  dateOfBirth?: string | null | undefined;
3848
3848
  bio?: string | null | undefined;
@@ -3877,12 +3877,12 @@ export declare const activesContractRouter: {
3877
3877
  distanceKm?: number | null | undefined;
3878
3878
  };
3879
3879
  job: {
3880
- description: string;
3881
- numberOfPositions: number;
3882
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
3883
3880
  createdAt: string;
3884
3881
  updatedAt: string;
3882
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
3885
3883
  id: string;
3884
+ description: string;
3885
+ numberOfPositions: number;
3886
3886
  pay: {
3887
3887
  rateUnit: "DAILY" | "HOURLY";
3888
3888
  rate: number;
@@ -3896,25 +3896,25 @@ export declare const activesContractRouter: {
3896
3896
  qualificationTypeId?: string | null | undefined;
3897
3897
  }[];
3898
3898
  currentCollaboration: {
3899
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3900
3899
  createdAt: string;
3901
3900
  updatedAt: string;
3901
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
3902
3902
  id: string;
3903
- company: {
3903
+ userId: string;
3904
+ company?: {
3904
3905
  id: string;
3905
3906
  name: string;
3906
- };
3907
- client: {
3907
+ } | undefined;
3908
+ client?: {
3908
3909
  id: string;
3909
3910
  name: string;
3910
- };
3911
- user: {
3911
+ } | undefined;
3912
+ user?: {
3912
3913
  id: string;
3913
3914
  firstName: string;
3914
3915
  lastName: string;
3915
3916
  email: string;
3916
- };
3917
- userId: string;
3917
+ } | undefined;
3918
3918
  newCollaboration?: {
3919
3919
  id: string;
3920
3920
  } | null | undefined;
@@ -3936,11 +3936,11 @@ export declare const activesContractRouter: {
3936
3936
  createdAt: string | Date;
3937
3937
  updatedAt: string | Date;
3938
3938
  id: string;
3939
+ date: string;
3939
3940
  pay: {
3940
3941
  rate: number;
3941
3942
  unit: "DAILY" | "HOURLY";
3942
3943
  };
3943
- date: string;
3944
3944
  comment: string | null;
3945
3945
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
3946
3946
  statusSaUpdatedAt: string | Date | null;
@@ -3949,14 +3949,10 @@ export declare const activesContractRouter: {
3949
3949
  hoursWorked: number | null;
3950
3950
  hoursWorkedUpdatedAt: string | Date | null;
3951
3951
  booking: {
3952
- 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";
3953
3952
  createdAt: string | Date;
3954
3953
  updatedAt: string | Date;
3954
+ 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";
3955
3955
  id: string;
3956
- pay: {
3957
- rate: number;
3958
- unit: "DAILY" | "HOURLY";
3959
- };
3960
3956
  user: {
3961
3957
  createdAt: string | Date;
3962
3958
  updatedAt: string | Date;
@@ -3968,6 +3964,10 @@ export declare const activesContractRouter: {
3968
3964
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
3969
3965
  };
3970
3966
  userId: string;
3967
+ pay: {
3968
+ rate: number;
3969
+ unit: "DAILY" | "HOURLY";
3970
+ };
3971
3971
  startDate: string | Date;
3972
3972
  worker: {
3973
3973
  createdAt: string | Date;
@@ -3978,6 +3978,7 @@ export declare const activesContractRouter: {
3978
3978
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3979
3979
  hasTools: boolean;
3980
3980
  hasPpe: boolean;
3981
+ email?: string | null | undefined;
3981
3982
  location?: {
3982
3983
  address?: string | null | undefined;
3983
3984
  postcode?: string | null | undefined;
@@ -3987,11 +3988,10 @@ export declare const activesContractRouter: {
3987
3988
  postTown?: string | null | undefined;
3988
3989
  areaCovered?: string | null | undefined;
3989
3990
  } | null | undefined;
3990
- email?: string | null | undefined;
3991
3991
  phoneNumbers?: {
3992
3992
  phoneNumber: string;
3993
- description?: string | undefined;
3994
3993
  id?: string | undefined;
3994
+ description?: string | undefined;
3995
3995
  isPrimary?: boolean | undefined;
3996
3996
  }[] | undefined;
3997
3997
  nino?: string | null | undefined;
@@ -4028,12 +4028,12 @@ export declare const activesContractRouter: {
4028
4028
  distanceKm?: number | null | undefined;
4029
4029
  };
4030
4030
  job: {
4031
- description: string;
4032
- numberOfPositions: number;
4033
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
4034
4031
  createdAt: string | Date;
4035
4032
  updatedAt: string | Date;
4033
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
4036
4034
  id: string;
4035
+ description: string;
4036
+ numberOfPositions: number;
4037
4037
  pay: {
4038
4038
  rateUnit: "DAILY" | "HOURLY";
4039
4039
  rate: number;
@@ -4042,25 +4042,25 @@ export declare const activesContractRouter: {
4042
4042
  };
4043
4043
  tradeId: string;
4044
4044
  currentCollaboration: {
4045
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4046
4045
  createdAt: string | Date;
4047
4046
  updatedAt: string | Date;
4047
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4048
4048
  id: string;
4049
- company: {
4049
+ userId: string;
4050
+ company?: {
4050
4051
  id: string;
4051
4052
  name: string;
4052
- };
4053
- client: {
4053
+ } | undefined;
4054
+ client?: {
4054
4055
  id: string;
4055
4056
  name: string;
4056
- };
4057
- user: {
4057
+ } | undefined;
4058
+ user?: {
4058
4059
  id: string;
4059
4060
  firstName: string;
4060
4061
  lastName: string;
4061
4062
  email: string;
4062
- };
4063
- userId: string;
4063
+ } | undefined;
4064
4064
  newCollaboration?: {
4065
4065
  id: string;
4066
4066
  } | null | undefined;
@@ -4193,11 +4193,17 @@ export declare const activesContractRouter: {
4193
4193
  }, "strip", z.ZodTypeAny, {
4194
4194
  limit: number;
4195
4195
  page: number;
4196
+ createdAt?: {
4197
+ from?: string | null | undefined;
4198
+ to?: string | null | undefined;
4199
+ } | null | undefined;
4196
4200
  status?: {
4197
4201
  filterType: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER";
4198
4202
  status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
4199
4203
  } | null | undefined;
4200
- createdAt?: {
4204
+ sortBy?: "createdAt" | "updatedAt" | "status" | "date" | "payRate" | null | undefined;
4205
+ sortOrder?: "ASC" | "DESC" | null | undefined;
4206
+ date?: {
4201
4207
  from?: string | null | undefined;
4202
4208
  to?: string | null | undefined;
4203
4209
  } | null | undefined;
@@ -4205,34 +4211,28 @@ export declare const activesContractRouter: {
4205
4211
  minRate?: number | null | undefined;
4206
4212
  maxRate?: number | null | undefined;
4207
4213
  } | null | undefined;
4208
- sortBy?: "status" | "createdAt" | "updatedAt" | "date" | "payRate" | null | undefined;
4209
- sortOrder?: "ASC" | "DESC" | null | undefined;
4210
- date?: {
4211
- from?: string | null | undefined;
4212
- to?: string | null | undefined;
4213
- } | null | undefined;
4214
4214
  bookingId?: string | null | undefined;
4215
4215
  }, {
4216
- status?: {
4217
- status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
4218
- filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
4219
- } | null | undefined;
4220
4216
  createdAt?: {
4221
4217
  from?: string | null | undefined;
4222
4218
  to?: string | null | undefined;
4223
4219
  } | null | undefined;
4224
- pay?: {
4225
- minRate?: number | null | undefined;
4226
- maxRate?: number | null | undefined;
4220
+ status?: {
4221
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
4222
+ filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
4227
4223
  } | null | undefined;
4228
4224
  limit?: number | undefined;
4229
4225
  page?: number | undefined;
4230
- sortBy?: "status" | "createdAt" | "updatedAt" | "date" | "payRate" | null | undefined;
4226
+ sortBy?: "createdAt" | "updatedAt" | "status" | "date" | "payRate" | null | undefined;
4231
4227
  sortOrder?: "ASC" | "DESC" | null | undefined;
4232
4228
  date?: {
4233
4229
  from?: string | null | undefined;
4234
4230
  to?: string | null | undefined;
4235
4231
  } | null | undefined;
4232
+ pay?: {
4233
+ minRate?: number | null | undefined;
4234
+ maxRate?: number | null | undefined;
4235
+ } | null | undefined;
4236
4236
  bookingId?: string | null | undefined;
4237
4237
  }>;
4238
4238
  summary: "Get all active records";
@@ -4378,12 +4378,12 @@ export declare const activesContractRouter: {
4378
4378
  }, "strip", z.ZodTypeAny, {
4379
4379
  phoneNumber: string;
4380
4380
  isPrimary: boolean;
4381
- description?: string | undefined;
4382
4381
  id?: string | undefined;
4382
+ description?: string | undefined;
4383
4383
  }, {
4384
4384
  phoneNumber: string;
4385
- description?: string | undefined;
4386
4385
  id?: string | undefined;
4386
+ description?: string | undefined;
4387
4387
  isPrimary?: boolean | undefined;
4388
4388
  }>, "many">>>;
4389
4389
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4499,12 +4499,13 @@ export declare const activesContractRouter: {
4499
4499
  phoneNumbers: {
4500
4500
  phoneNumber: string;
4501
4501
  isPrimary: boolean;
4502
- description?: string | undefined;
4503
4502
  id?: string | undefined;
4503
+ description?: string | undefined;
4504
4504
  }[];
4505
4505
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
4506
4506
  hasTools: boolean;
4507
4507
  hasPpe: boolean;
4508
+ email?: string | null | undefined;
4508
4509
  location?: {
4509
4510
  address?: string | null | undefined;
4510
4511
  postcode?: string | null | undefined;
@@ -4514,7 +4515,6 @@ export declare const activesContractRouter: {
4514
4515
  postTown?: string | null | undefined;
4515
4516
  areaCovered?: string | null | undefined;
4516
4517
  } | null | undefined;
4517
- email?: string | null | undefined;
4518
4518
  nino?: string | null | undefined;
4519
4519
  dateOfBirth?: string | null | undefined;
4520
4520
  bio?: string | null | undefined;
@@ -4556,6 +4556,7 @@ export declare const activesContractRouter: {
4556
4556
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
4557
4557
  hasTools: boolean;
4558
4558
  hasPpe: boolean;
4559
+ email?: string | null | undefined;
4559
4560
  location?: {
4560
4561
  address?: string | null | undefined;
4561
4562
  postcode?: string | null | undefined;
@@ -4565,11 +4566,10 @@ export declare const activesContractRouter: {
4565
4566
  postTown?: string | null | undefined;
4566
4567
  areaCovered?: string | null | undefined;
4567
4568
  } | null | undefined;
4568
- email?: string | null | undefined;
4569
4569
  phoneNumbers?: {
4570
4570
  phoneNumber: string;
4571
- description?: string | undefined;
4572
4571
  id?: string | undefined;
4572
+ description?: string | undefined;
4573
4573
  isPrimary?: boolean | undefined;
4574
4574
  }[] | undefined;
4575
4575
  nino?: string | null | undefined;
@@ -4706,7 +4706,7 @@ export declare const activesContractRouter: {
4706
4706
  }>, "many">>>;
4707
4707
  currentCollaboration: z.ZodNullable<z.ZodObject<{
4708
4708
  id: z.ZodString;
4709
- company: z.ZodObject<{
4709
+ company: z.ZodOptional<z.ZodObject<{
4710
4710
  id: z.ZodString;
4711
4711
  name: z.ZodString;
4712
4712
  }, "strip", z.ZodTypeAny, {
@@ -4715,8 +4715,8 @@ export declare const activesContractRouter: {
4715
4715
  }, {
4716
4716
  id: string;
4717
4717
  name: string;
4718
- }>;
4719
- client: z.ZodObject<{
4718
+ }>>;
4719
+ client: z.ZodOptional<z.ZodObject<{
4720
4720
  id: z.ZodString;
4721
4721
  name: z.ZodString;
4722
4722
  }, "strip", z.ZodTypeAny, {
@@ -4725,8 +4725,8 @@ export declare const activesContractRouter: {
4725
4725
  }, {
4726
4726
  id: string;
4727
4727
  name: string;
4728
- }>;
4729
- user: z.ZodObject<{
4728
+ }>>;
4729
+ user: z.ZodOptional<z.ZodObject<{
4730
4730
  id: z.ZodString;
4731
4731
  firstName: z.ZodString;
4732
4732
  lastName: z.ZodString;
@@ -4741,7 +4741,7 @@ export declare const activesContractRouter: {
4741
4741
  firstName: string;
4742
4742
  lastName: string;
4743
4743
  email: string;
4744
- }>;
4744
+ }>>;
4745
4745
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
4746
4746
  userId: z.ZodString;
4747
4747
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -4754,61 +4754,61 @@ export declare const activesContractRouter: {
4754
4754
  id: string;
4755
4755
  }>>>;
4756
4756
  }, "strip", z.ZodTypeAny, {
4757
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4758
4757
  createdAt: string;
4759
4758
  updatedAt: string;
4759
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4760
4760
  id: string;
4761
- company: {
4761
+ userId: string;
4762
+ company?: {
4762
4763
  id: string;
4763
4764
  name: string;
4764
- };
4765
- client: {
4765
+ } | undefined;
4766
+ client?: {
4766
4767
  id: string;
4767
4768
  name: string;
4768
- };
4769
- user: {
4769
+ } | undefined;
4770
+ user?: {
4770
4771
  id: string;
4771
4772
  firstName: string;
4772
4773
  lastName: string;
4773
4774
  email: string;
4774
- };
4775
- userId: string;
4775
+ } | undefined;
4776
4776
  newCollaboration?: {
4777
4777
  id: string;
4778
4778
  } | null | undefined;
4779
4779
  }, {
4780
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4781
4780
  createdAt: string | Date;
4782
4781
  updatedAt: string | Date;
4782
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4783
4783
  id: string;
4784
- company: {
4784
+ userId: string;
4785
+ company?: {
4785
4786
  id: string;
4786
4787
  name: string;
4787
- };
4788
- client: {
4788
+ } | undefined;
4789
+ client?: {
4789
4790
  id: string;
4790
4791
  name: string;
4791
- };
4792
- user: {
4792
+ } | undefined;
4793
+ user?: {
4793
4794
  id: string;
4794
4795
  firstName: string;
4795
4796
  lastName: string;
4796
4797
  email: string;
4797
- };
4798
- userId: string;
4798
+ } | undefined;
4799
4799
  newCollaboration?: {
4800
4800
  id: string;
4801
4801
  } | null | undefined;
4802
4802
  }>>;
4803
4803
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4804
4804
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4805
- }, "strip", z.ZodTypeAny, {
4806
- description: string;
4807
- numberOfPositions: number;
4808
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
4805
+ }, "strip", z.ZodTypeAny, {
4809
4806
  createdAt: string;
4810
4807
  updatedAt: string;
4808
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
4811
4809
  id: string;
4810
+ description: string;
4811
+ numberOfPositions: number;
4812
4812
  pay: {
4813
4813
  rateUnit: "DAILY" | "HOURLY";
4814
4814
  rate: number;
@@ -4822,25 +4822,25 @@ export declare const activesContractRouter: {
4822
4822
  qualificationTypeId?: string | null | undefined;
4823
4823
  }[];
4824
4824
  currentCollaboration: {
4825
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4826
4825
  createdAt: string;
4827
4826
  updatedAt: string;
4827
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4828
4828
  id: string;
4829
- company: {
4829
+ userId: string;
4830
+ company?: {
4830
4831
  id: string;
4831
4832
  name: string;
4832
- };
4833
- client: {
4833
+ } | undefined;
4834
+ client?: {
4834
4835
  id: string;
4835
4836
  name: string;
4836
- };
4837
- user: {
4837
+ } | undefined;
4838
+ user?: {
4838
4839
  id: string;
4839
4840
  firstName: string;
4840
4841
  lastName: string;
4841
4842
  email: string;
4842
- };
4843
- userId: string;
4843
+ } | undefined;
4844
4844
  newCollaboration?: {
4845
4845
  id: string;
4846
4846
  } | null | undefined;
@@ -4856,12 +4856,12 @@ export declare const activesContractRouter: {
4856
4856
  areaCovered?: string | null | undefined;
4857
4857
  } | null | undefined;
4858
4858
  }, {
4859
- description: string;
4860
- numberOfPositions: number;
4861
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
4862
4859
  createdAt: string | Date;
4863
4860
  updatedAt: string | Date;
4861
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
4864
4862
  id: string;
4863
+ description: string;
4864
+ numberOfPositions: number;
4865
4865
  pay: {
4866
4866
  rateUnit: "DAILY" | "HOURLY";
4867
4867
  rate: number;
@@ -4870,25 +4870,25 @@ export declare const activesContractRouter: {
4870
4870
  };
4871
4871
  tradeId: string;
4872
4872
  currentCollaboration: {
4873
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4874
4873
  createdAt: string | Date;
4875
4874
  updatedAt: string | Date;
4875
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
4876
4876
  id: string;
4877
- company: {
4877
+ userId: string;
4878
+ company?: {
4878
4879
  id: string;
4879
4880
  name: string;
4880
- };
4881
- client: {
4881
+ } | undefined;
4882
+ client?: {
4882
4883
  id: string;
4883
4884
  name: string;
4884
- };
4885
- user: {
4885
+ } | undefined;
4886
+ user?: {
4886
4887
  id: string;
4887
4888
  firstName: string;
4888
4889
  lastName: string;
4889
4890
  email: string;
4890
- };
4891
- userId: string;
4891
+ } | undefined;
4892
4892
  newCollaboration?: {
4893
4893
  id: string;
4894
4894
  } | null | undefined;
@@ -4913,14 +4913,10 @@ export declare const activesContractRouter: {
4913
4913
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4914
4914
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
4915
4915
  }, "strip", z.ZodTypeAny, {
4916
- 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";
4917
4916
  createdAt: string;
4918
4917
  updatedAt: string;
4918
+ 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";
4919
4919
  id: string;
4920
- pay: {
4921
- rate: number;
4922
- unit: "DAILY" | "HOURLY";
4923
- };
4924
4920
  user: {
4925
4921
  createdAt: string;
4926
4922
  updatedAt: string;
@@ -4932,6 +4928,10 @@ export declare const activesContractRouter: {
4932
4928
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
4933
4929
  };
4934
4930
  userId: string;
4931
+ pay: {
4932
+ rate: number;
4933
+ unit: "DAILY" | "HOURLY";
4934
+ };
4935
4935
  startDate: string;
4936
4936
  worker: {
4937
4937
  createdAt: string;
@@ -4942,12 +4942,13 @@ export declare const activesContractRouter: {
4942
4942
  phoneNumbers: {
4943
4943
  phoneNumber: string;
4944
4944
  isPrimary: boolean;
4945
- description?: string | undefined;
4946
4945
  id?: string | undefined;
4946
+ description?: string | undefined;
4947
4947
  }[];
4948
4948
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
4949
4949
  hasTools: boolean;
4950
4950
  hasPpe: boolean;
4951
+ email?: string | null | undefined;
4951
4952
  location?: {
4952
4953
  address?: string | null | undefined;
4953
4954
  postcode?: string | null | undefined;
@@ -4957,7 +4958,6 @@ export declare const activesContractRouter: {
4957
4958
  postTown?: string | null | undefined;
4958
4959
  areaCovered?: string | null | undefined;
4959
4960
  } | null | undefined;
4960
- email?: string | null | undefined;
4961
4961
  nino?: string | null | undefined;
4962
4962
  dateOfBirth?: string | null | undefined;
4963
4963
  bio?: string | null | undefined;
@@ -4992,12 +4992,12 @@ export declare const activesContractRouter: {
4992
4992
  distanceKm?: number | null | undefined;
4993
4993
  };
4994
4994
  job: {
4995
- description: string;
4996
- numberOfPositions: number;
4997
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
4998
4995
  createdAt: string;
4999
4996
  updatedAt: string;
4997
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5000
4998
  id: string;
4999
+ description: string;
5000
+ numberOfPositions: number;
5001
5001
  pay: {
5002
5002
  rateUnit: "DAILY" | "HOURLY";
5003
5003
  rate: number;
@@ -5011,25 +5011,25 @@ export declare const activesContractRouter: {
5011
5011
  qualificationTypeId?: string | null | undefined;
5012
5012
  }[];
5013
5013
  currentCollaboration: {
5014
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
5015
5014
  createdAt: string;
5016
5015
  updatedAt: string;
5016
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
5017
5017
  id: string;
5018
- company: {
5018
+ userId: string;
5019
+ company?: {
5019
5020
  id: string;
5020
5021
  name: string;
5021
- };
5022
- client: {
5022
+ } | undefined;
5023
+ client?: {
5023
5024
  id: string;
5024
5025
  name: string;
5025
- };
5026
- user: {
5026
+ } | undefined;
5027
+ user?: {
5027
5028
  id: string;
5028
5029
  firstName: string;
5029
5030
  lastName: string;
5030
5031
  email: string;
5031
- };
5032
- userId: string;
5032
+ } | undefined;
5033
5033
  newCollaboration?: {
5034
5034
  id: string;
5035
5035
  } | null | undefined;
@@ -5047,14 +5047,10 @@ export declare const activesContractRouter: {
5047
5047
  };
5048
5048
  endDate?: string | null | undefined;
5049
5049
  }, {
5050
- 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";
5051
5050
  createdAt: string | Date;
5052
5051
  updatedAt: string | Date;
5052
+ 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";
5053
5053
  id: string;
5054
- pay: {
5055
- rate: number;
5056
- unit: "DAILY" | "HOURLY";
5057
- };
5058
5054
  user: {
5059
5055
  createdAt: string | Date;
5060
5056
  updatedAt: string | Date;
@@ -5066,6 +5062,10 @@ export declare const activesContractRouter: {
5066
5062
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
5067
5063
  };
5068
5064
  userId: string;
5065
+ pay: {
5066
+ rate: number;
5067
+ unit: "DAILY" | "HOURLY";
5068
+ };
5069
5069
  startDate: string | Date;
5070
5070
  worker: {
5071
5071
  createdAt: string | Date;
@@ -5076,6 +5076,7 @@ export declare const activesContractRouter: {
5076
5076
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
5077
5077
  hasTools: boolean;
5078
5078
  hasPpe: boolean;
5079
+ email?: string | null | undefined;
5079
5080
  location?: {
5080
5081
  address?: string | null | undefined;
5081
5082
  postcode?: string | null | undefined;
@@ -5085,11 +5086,10 @@ export declare const activesContractRouter: {
5085
5086
  postTown?: string | null | undefined;
5086
5087
  areaCovered?: string | null | undefined;
5087
5088
  } | null | undefined;
5088
- email?: string | null | undefined;
5089
5089
  phoneNumbers?: {
5090
5090
  phoneNumber: string;
5091
- description?: string | undefined;
5092
5091
  id?: string | undefined;
5092
+ description?: string | undefined;
5093
5093
  isPrimary?: boolean | undefined;
5094
5094
  }[] | undefined;
5095
5095
  nino?: string | null | undefined;
@@ -5126,12 +5126,12 @@ export declare const activesContractRouter: {
5126
5126
  distanceKm?: number | null | undefined;
5127
5127
  };
5128
5128
  job: {
5129
- description: string;
5130
- numberOfPositions: number;
5131
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5132
5129
  createdAt: string | Date;
5133
5130
  updatedAt: string | Date;
5131
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5134
5132
  id: string;
5133
+ description: string;
5134
+ numberOfPositions: number;
5135
5135
  pay: {
5136
5136
  rateUnit: "DAILY" | "HOURLY";
5137
5137
  rate: number;
@@ -5140,25 +5140,25 @@ export declare const activesContractRouter: {
5140
5140
  };
5141
5141
  tradeId: string;
5142
5142
  currentCollaboration: {
5143
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
5144
5143
  createdAt: string | Date;
5145
5144
  updatedAt: string | Date;
5145
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
5146
5146
  id: string;
5147
- company: {
5147
+ userId: string;
5148
+ company?: {
5148
5149
  id: string;
5149
5150
  name: string;
5150
- };
5151
- client: {
5151
+ } | undefined;
5152
+ client?: {
5152
5153
  id: string;
5153
5154
  name: string;
5154
- };
5155
- user: {
5155
+ } | undefined;
5156
+ user?: {
5156
5157
  id: string;
5157
5158
  firstName: string;
5158
5159
  lastName: string;
5159
5160
  email: string;
5160
- };
5161
- userId: string;
5161
+ } | undefined;
5162
5162
  newCollaboration?: {
5163
5163
  id: string;
5164
5164
  } | null | undefined;
@@ -5187,11 +5187,11 @@ export declare const activesContractRouter: {
5187
5187
  createdAt: string;
5188
5188
  updatedAt: string;
5189
5189
  id: string;
5190
+ date: string;
5190
5191
  pay: {
5191
5192
  rate: number;
5192
5193
  unit: "DAILY" | "HOURLY";
5193
5194
  };
5194
- date: string;
5195
5195
  comment: string | null;
5196
5196
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
5197
5197
  statusSaUpdatedAt: string | null;
@@ -5200,14 +5200,10 @@ export declare const activesContractRouter: {
5200
5200
  hoursWorked: number | null;
5201
5201
  hoursWorkedUpdatedAt: string | null;
5202
5202
  booking: {
5203
- 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";
5204
5203
  createdAt: string;
5205
5204
  updatedAt: string;
5205
+ 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";
5206
5206
  id: string;
5207
- pay: {
5208
- rate: number;
5209
- unit: "DAILY" | "HOURLY";
5210
- };
5211
5207
  user: {
5212
5208
  createdAt: string;
5213
5209
  updatedAt: string;
@@ -5219,6 +5215,10 @@ export declare const activesContractRouter: {
5219
5215
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
5220
5216
  };
5221
5217
  userId: string;
5218
+ pay: {
5219
+ rate: number;
5220
+ unit: "DAILY" | "HOURLY";
5221
+ };
5222
5222
  startDate: string;
5223
5223
  worker: {
5224
5224
  createdAt: string;
@@ -5229,12 +5229,13 @@ export declare const activesContractRouter: {
5229
5229
  phoneNumbers: {
5230
5230
  phoneNumber: string;
5231
5231
  isPrimary: boolean;
5232
- description?: string | undefined;
5233
5232
  id?: string | undefined;
5233
+ description?: string | undefined;
5234
5234
  }[];
5235
5235
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
5236
5236
  hasTools: boolean;
5237
5237
  hasPpe: boolean;
5238
+ email?: string | null | undefined;
5238
5239
  location?: {
5239
5240
  address?: string | null | undefined;
5240
5241
  postcode?: string | null | undefined;
@@ -5244,7 +5245,6 @@ export declare const activesContractRouter: {
5244
5245
  postTown?: string | null | undefined;
5245
5246
  areaCovered?: string | null | undefined;
5246
5247
  } | null | undefined;
5247
- email?: string | null | undefined;
5248
5248
  nino?: string | null | undefined;
5249
5249
  dateOfBirth?: string | null | undefined;
5250
5250
  bio?: string | null | undefined;
@@ -5279,12 +5279,12 @@ export declare const activesContractRouter: {
5279
5279
  distanceKm?: number | null | undefined;
5280
5280
  };
5281
5281
  job: {
5282
- description: string;
5283
- numberOfPositions: number;
5284
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5285
5282
  createdAt: string;
5286
5283
  updatedAt: string;
5284
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5287
5285
  id: string;
5286
+ description: string;
5287
+ numberOfPositions: number;
5288
5288
  pay: {
5289
5289
  rateUnit: "DAILY" | "HOURLY";
5290
5290
  rate: number;
@@ -5298,25 +5298,25 @@ export declare const activesContractRouter: {
5298
5298
  qualificationTypeId?: string | null | undefined;
5299
5299
  }[];
5300
5300
  currentCollaboration: {
5301
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
5302
5301
  createdAt: string;
5303
5302
  updatedAt: string;
5303
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
5304
5304
  id: string;
5305
- company: {
5305
+ userId: string;
5306
+ company?: {
5306
5307
  id: string;
5307
5308
  name: string;
5308
- };
5309
- client: {
5309
+ } | undefined;
5310
+ client?: {
5310
5311
  id: string;
5311
5312
  name: string;
5312
- };
5313
- user: {
5313
+ } | undefined;
5314
+ user?: {
5314
5315
  id: string;
5315
5316
  firstName: string;
5316
5317
  lastName: string;
5317
5318
  email: string;
5318
- };
5319
- userId: string;
5319
+ } | undefined;
5320
5320
  newCollaboration?: {
5321
5321
  id: string;
5322
5322
  } | null | undefined;
@@ -5338,11 +5338,11 @@ export declare const activesContractRouter: {
5338
5338
  createdAt: string | Date;
5339
5339
  updatedAt: string | Date;
5340
5340
  id: string;
5341
+ date: string;
5341
5342
  pay: {
5342
5343
  rate: number;
5343
5344
  unit: "DAILY" | "HOURLY";
5344
5345
  };
5345
- date: string;
5346
5346
  comment: string | null;
5347
5347
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
5348
5348
  statusSaUpdatedAt: string | Date | null;
@@ -5351,14 +5351,10 @@ export declare const activesContractRouter: {
5351
5351
  hoursWorked: number | null;
5352
5352
  hoursWorkedUpdatedAt: string | Date | null;
5353
5353
  booking: {
5354
- 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";
5355
5354
  createdAt: string | Date;
5356
5355
  updatedAt: string | Date;
5356
+ 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";
5357
5357
  id: string;
5358
- pay: {
5359
- rate: number;
5360
- unit: "DAILY" | "HOURLY";
5361
- };
5362
5358
  user: {
5363
5359
  createdAt: string | Date;
5364
5360
  updatedAt: string | Date;
@@ -5370,6 +5366,10 @@ export declare const activesContractRouter: {
5370
5366
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
5371
5367
  };
5372
5368
  userId: string;
5369
+ pay: {
5370
+ rate: number;
5371
+ unit: "DAILY" | "HOURLY";
5372
+ };
5373
5373
  startDate: string | Date;
5374
5374
  worker: {
5375
5375
  createdAt: string | Date;
@@ -5380,6 +5380,7 @@ export declare const activesContractRouter: {
5380
5380
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
5381
5381
  hasTools: boolean;
5382
5382
  hasPpe: boolean;
5383
+ email?: string | null | undefined;
5383
5384
  location?: {
5384
5385
  address?: string | null | undefined;
5385
5386
  postcode?: string | null | undefined;
@@ -5389,11 +5390,10 @@ export declare const activesContractRouter: {
5389
5390
  postTown?: string | null | undefined;
5390
5391
  areaCovered?: string | null | undefined;
5391
5392
  } | null | undefined;
5392
- email?: string | null | undefined;
5393
5393
  phoneNumbers?: {
5394
5394
  phoneNumber: string;
5395
- description?: string | undefined;
5396
5395
  id?: string | undefined;
5396
+ description?: string | undefined;
5397
5397
  isPrimary?: boolean | undefined;
5398
5398
  }[] | undefined;
5399
5399
  nino?: string | null | undefined;
@@ -5430,12 +5430,12 @@ export declare const activesContractRouter: {
5430
5430
  distanceKm?: number | null | undefined;
5431
5431
  };
5432
5432
  job: {
5433
- description: string;
5434
- numberOfPositions: number;
5435
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5436
5433
  createdAt: string | Date;
5437
5434
  updatedAt: string | Date;
5435
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5438
5436
  id: string;
5437
+ description: string;
5438
+ numberOfPositions: number;
5439
5439
  pay: {
5440
5440
  rateUnit: "DAILY" | "HOURLY";
5441
5441
  rate: number;
@@ -5444,25 +5444,25 @@ export declare const activesContractRouter: {
5444
5444
  };
5445
5445
  tradeId: string;
5446
5446
  currentCollaboration: {
5447
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
5448
5447
  createdAt: string | Date;
5449
5448
  updatedAt: string | Date;
5449
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
5450
5450
  id: string;
5451
- company: {
5451
+ userId: string;
5452
+ company?: {
5452
5453
  id: string;
5453
5454
  name: string;
5454
- };
5455
- client: {
5455
+ } | undefined;
5456
+ client?: {
5456
5457
  id: string;
5457
5458
  name: string;
5458
- };
5459
- user: {
5459
+ } | undefined;
5460
+ user?: {
5460
5461
  id: string;
5461
5462
  firstName: string;
5462
5463
  lastName: string;
5463
5464
  email: string;
5464
- };
5465
- userId: string;
5465
+ } | undefined;
5466
5466
  newCollaboration?: {
5467
5467
  id: string;
5468
5468
  } | null | undefined;
@@ -5497,11 +5497,11 @@ export declare const activesContractRouter: {
5497
5497
  createdAt: string;
5498
5498
  updatedAt: string;
5499
5499
  id: string;
5500
+ date: string;
5500
5501
  pay: {
5501
5502
  rate: number;
5502
5503
  unit: "DAILY" | "HOURLY";
5503
5504
  };
5504
- date: string;
5505
5505
  comment: string | null;
5506
5506
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
5507
5507
  statusSaUpdatedAt: string | null;
@@ -5510,14 +5510,10 @@ export declare const activesContractRouter: {
5510
5510
  hoursWorked: number | null;
5511
5511
  hoursWorkedUpdatedAt: string | null;
5512
5512
  booking: {
5513
- 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";
5514
5513
  createdAt: string;
5515
5514
  updatedAt: string;
5515
+ 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";
5516
5516
  id: string;
5517
- pay: {
5518
- rate: number;
5519
- unit: "DAILY" | "HOURLY";
5520
- };
5521
5517
  user: {
5522
5518
  createdAt: string;
5523
5519
  updatedAt: string;
@@ -5529,6 +5525,10 @@ export declare const activesContractRouter: {
5529
5525
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
5530
5526
  };
5531
5527
  userId: string;
5528
+ pay: {
5529
+ rate: number;
5530
+ unit: "DAILY" | "HOURLY";
5531
+ };
5532
5532
  startDate: string;
5533
5533
  worker: {
5534
5534
  createdAt: string;
@@ -5539,12 +5539,13 @@ export declare const activesContractRouter: {
5539
5539
  phoneNumbers: {
5540
5540
  phoneNumber: string;
5541
5541
  isPrimary: boolean;
5542
- description?: string | undefined;
5543
5542
  id?: string | undefined;
5543
+ description?: string | undefined;
5544
5544
  }[];
5545
5545
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
5546
5546
  hasTools: boolean;
5547
5547
  hasPpe: boolean;
5548
+ email?: string | null | undefined;
5548
5549
  location?: {
5549
5550
  address?: string | null | undefined;
5550
5551
  postcode?: string | null | undefined;
@@ -5554,7 +5555,6 @@ export declare const activesContractRouter: {
5554
5555
  postTown?: string | null | undefined;
5555
5556
  areaCovered?: string | null | undefined;
5556
5557
  } | null | undefined;
5557
- email?: string | null | undefined;
5558
5558
  nino?: string | null | undefined;
5559
5559
  dateOfBirth?: string | null | undefined;
5560
5560
  bio?: string | null | undefined;
@@ -5589,12 +5589,12 @@ export declare const activesContractRouter: {
5589
5589
  distanceKm?: number | null | undefined;
5590
5590
  };
5591
5591
  job: {
5592
- description: string;
5593
- numberOfPositions: number;
5594
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5595
5592
  createdAt: string;
5596
5593
  updatedAt: string;
5594
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5597
5595
  id: string;
5596
+ description: string;
5597
+ numberOfPositions: number;
5598
5598
  pay: {
5599
5599
  rateUnit: "DAILY" | "HOURLY";
5600
5600
  rate: number;
@@ -5608,25 +5608,25 @@ export declare const activesContractRouter: {
5608
5608
  qualificationTypeId?: string | null | undefined;
5609
5609
  }[];
5610
5610
  currentCollaboration: {
5611
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
5612
5611
  createdAt: string;
5613
5612
  updatedAt: string;
5613
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
5614
5614
  id: string;
5615
- company: {
5615
+ userId: string;
5616
+ company?: {
5616
5617
  id: string;
5617
5618
  name: string;
5618
- };
5619
- client: {
5619
+ } | undefined;
5620
+ client?: {
5620
5621
  id: string;
5621
5622
  name: string;
5622
- };
5623
- user: {
5623
+ } | undefined;
5624
+ user?: {
5624
5625
  id: string;
5625
5626
  firstName: string;
5626
5627
  lastName: string;
5627
5628
  email: string;
5628
- };
5629
- userId: string;
5629
+ } | undefined;
5630
5630
  newCollaboration?: {
5631
5631
  id: string;
5632
5632
  } | null | undefined;
@@ -5655,11 +5655,11 @@ export declare const activesContractRouter: {
5655
5655
  createdAt: string | Date;
5656
5656
  updatedAt: string | Date;
5657
5657
  id: string;
5658
+ date: string;
5658
5659
  pay: {
5659
5660
  rate: number;
5660
5661
  unit: "DAILY" | "HOURLY";
5661
5662
  };
5662
- date: string;
5663
5663
  comment: string | null;
5664
5664
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
5665
5665
  statusSaUpdatedAt: string | Date | null;
@@ -5668,14 +5668,10 @@ export declare const activesContractRouter: {
5668
5668
  hoursWorked: number | null;
5669
5669
  hoursWorkedUpdatedAt: string | Date | null;
5670
5670
  booking: {
5671
- 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";
5672
5671
  createdAt: string | Date;
5673
5672
  updatedAt: string | Date;
5673
+ 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";
5674
5674
  id: string;
5675
- pay: {
5676
- rate: number;
5677
- unit: "DAILY" | "HOURLY";
5678
- };
5679
5675
  user: {
5680
5676
  createdAt: string | Date;
5681
5677
  updatedAt: string | Date;
@@ -5687,6 +5683,10 @@ export declare const activesContractRouter: {
5687
5683
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
5688
5684
  };
5689
5685
  userId: string;
5686
+ pay: {
5687
+ rate: number;
5688
+ unit: "DAILY" | "HOURLY";
5689
+ };
5690
5690
  startDate: string | Date;
5691
5691
  worker: {
5692
5692
  createdAt: string | Date;
@@ -5697,6 +5697,7 @@ export declare const activesContractRouter: {
5697
5697
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
5698
5698
  hasTools: boolean;
5699
5699
  hasPpe: boolean;
5700
+ email?: string | null | undefined;
5700
5701
  location?: {
5701
5702
  address?: string | null | undefined;
5702
5703
  postcode?: string | null | undefined;
@@ -5706,11 +5707,10 @@ export declare const activesContractRouter: {
5706
5707
  postTown?: string | null | undefined;
5707
5708
  areaCovered?: string | null | undefined;
5708
5709
  } | null | undefined;
5709
- email?: string | null | undefined;
5710
5710
  phoneNumbers?: {
5711
5711
  phoneNumber: string;
5712
- description?: string | undefined;
5713
5712
  id?: string | undefined;
5713
+ description?: string | undefined;
5714
5714
  isPrimary?: boolean | undefined;
5715
5715
  }[] | undefined;
5716
5716
  nino?: string | null | undefined;
@@ -5747,12 +5747,12 @@ export declare const activesContractRouter: {
5747
5747
  distanceKm?: number | null | undefined;
5748
5748
  };
5749
5749
  job: {
5750
- description: string;
5751
- numberOfPositions: number;
5752
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5753
5750
  createdAt: string | Date;
5754
5751
  updatedAt: string | Date;
5752
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5755
5753
  id: string;
5754
+ description: string;
5755
+ numberOfPositions: number;
5756
5756
  pay: {
5757
5757
  rateUnit: "DAILY" | "HOURLY";
5758
5758
  rate: number;
@@ -5761,25 +5761,25 @@ export declare const activesContractRouter: {
5761
5761
  };
5762
5762
  tradeId: string;
5763
5763
  currentCollaboration: {
5764
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
5765
5764
  createdAt: string | Date;
5766
5765
  updatedAt: string | Date;
5766
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
5767
5767
  id: string;
5768
- company: {
5768
+ userId: string;
5769
+ company?: {
5769
5770
  id: string;
5770
5771
  name: string;
5771
- };
5772
- client: {
5772
+ } | undefined;
5773
+ client?: {
5773
5774
  id: string;
5774
5775
  name: string;
5775
- };
5776
- user: {
5776
+ } | undefined;
5777
+ user?: {
5777
5778
  id: string;
5778
5779
  firstName: string;
5779
5780
  lastName: string;
5780
5781
  email: string;
5781
- };
5782
- userId: string;
5782
+ } | undefined;
5783
5783
  newCollaboration?: {
5784
5784
  id: string;
5785
5785
  } | null | undefined;
@@ -5966,12 +5966,12 @@ export declare const activesContractRouter: {
5966
5966
  }, "strip", z.ZodTypeAny, {
5967
5967
  phoneNumber: string;
5968
5968
  isPrimary: boolean;
5969
- description?: string | undefined;
5970
5969
  id?: string | undefined;
5970
+ description?: string | undefined;
5971
5971
  }, {
5972
5972
  phoneNumber: string;
5973
- description?: string | undefined;
5974
5973
  id?: string | undefined;
5974
+ description?: string | undefined;
5975
5975
  isPrimary?: boolean | undefined;
5976
5976
  }>, "many">>>;
5977
5977
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6087,12 +6087,13 @@ export declare const activesContractRouter: {
6087
6087
  phoneNumbers: {
6088
6088
  phoneNumber: string;
6089
6089
  isPrimary: boolean;
6090
- description?: string | undefined;
6091
6090
  id?: string | undefined;
6091
+ description?: string | undefined;
6092
6092
  }[];
6093
6093
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
6094
6094
  hasTools: boolean;
6095
6095
  hasPpe: boolean;
6096
+ email?: string | null | undefined;
6096
6097
  location?: {
6097
6098
  address?: string | null | undefined;
6098
6099
  postcode?: string | null | undefined;
@@ -6102,7 +6103,6 @@ export declare const activesContractRouter: {
6102
6103
  postTown?: string | null | undefined;
6103
6104
  areaCovered?: string | null | undefined;
6104
6105
  } | null | undefined;
6105
- email?: string | null | undefined;
6106
6106
  nino?: string | null | undefined;
6107
6107
  dateOfBirth?: string | null | undefined;
6108
6108
  bio?: string | null | undefined;
@@ -6144,6 +6144,7 @@ export declare const activesContractRouter: {
6144
6144
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
6145
6145
  hasTools: boolean;
6146
6146
  hasPpe: boolean;
6147
+ email?: string | null | undefined;
6147
6148
  location?: {
6148
6149
  address?: string | null | undefined;
6149
6150
  postcode?: string | null | undefined;
@@ -6153,11 +6154,10 @@ export declare const activesContractRouter: {
6153
6154
  postTown?: string | null | undefined;
6154
6155
  areaCovered?: string | null | undefined;
6155
6156
  } | null | undefined;
6156
- email?: string | null | undefined;
6157
6157
  phoneNumbers?: {
6158
6158
  phoneNumber: string;
6159
- description?: string | undefined;
6160
6159
  id?: string | undefined;
6160
+ description?: string | undefined;
6161
6161
  isPrimary?: boolean | undefined;
6162
6162
  }[] | undefined;
6163
6163
  nino?: string | null | undefined;
@@ -6294,7 +6294,7 @@ export declare const activesContractRouter: {
6294
6294
  }>, "many">>>;
6295
6295
  currentCollaboration: z.ZodNullable<z.ZodObject<{
6296
6296
  id: z.ZodString;
6297
- company: z.ZodObject<{
6297
+ company: z.ZodOptional<z.ZodObject<{
6298
6298
  id: z.ZodString;
6299
6299
  name: z.ZodString;
6300
6300
  }, "strip", z.ZodTypeAny, {
@@ -6303,8 +6303,8 @@ export declare const activesContractRouter: {
6303
6303
  }, {
6304
6304
  id: string;
6305
6305
  name: string;
6306
- }>;
6307
- client: z.ZodObject<{
6306
+ }>>;
6307
+ client: z.ZodOptional<z.ZodObject<{
6308
6308
  id: z.ZodString;
6309
6309
  name: z.ZodString;
6310
6310
  }, "strip", z.ZodTypeAny, {
@@ -6313,8 +6313,8 @@ export declare const activesContractRouter: {
6313
6313
  }, {
6314
6314
  id: string;
6315
6315
  name: string;
6316
- }>;
6317
- user: z.ZodObject<{
6316
+ }>>;
6317
+ user: z.ZodOptional<z.ZodObject<{
6318
6318
  id: z.ZodString;
6319
6319
  firstName: z.ZodString;
6320
6320
  lastName: z.ZodString;
@@ -6329,7 +6329,7 @@ export declare const activesContractRouter: {
6329
6329
  firstName: string;
6330
6330
  lastName: string;
6331
6331
  email: string;
6332
- }>;
6332
+ }>>;
6333
6333
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
6334
6334
  userId: z.ZodString;
6335
6335
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -6342,48 +6342,48 @@ export declare const activesContractRouter: {
6342
6342
  id: string;
6343
6343
  }>>>;
6344
6344
  }, "strip", z.ZodTypeAny, {
6345
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6346
6345
  createdAt: string;
6347
6346
  updatedAt: string;
6347
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6348
6348
  id: string;
6349
- company: {
6349
+ userId: string;
6350
+ company?: {
6350
6351
  id: string;
6351
6352
  name: string;
6352
- };
6353
- client: {
6353
+ } | undefined;
6354
+ client?: {
6354
6355
  id: string;
6355
6356
  name: string;
6356
- };
6357
- user: {
6357
+ } | undefined;
6358
+ user?: {
6358
6359
  id: string;
6359
6360
  firstName: string;
6360
6361
  lastName: string;
6361
6362
  email: string;
6362
- };
6363
- userId: string;
6363
+ } | undefined;
6364
6364
  newCollaboration?: {
6365
6365
  id: string;
6366
6366
  } | null | undefined;
6367
6367
  }, {
6368
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6369
6368
  createdAt: string | Date;
6370
6369
  updatedAt: string | Date;
6370
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6371
6371
  id: string;
6372
- company: {
6372
+ userId: string;
6373
+ company?: {
6373
6374
  id: string;
6374
6375
  name: string;
6375
- };
6376
- client: {
6376
+ } | undefined;
6377
+ client?: {
6377
6378
  id: string;
6378
6379
  name: string;
6379
- };
6380
- user: {
6380
+ } | undefined;
6381
+ user?: {
6381
6382
  id: string;
6382
6383
  firstName: string;
6383
6384
  lastName: string;
6384
6385
  email: string;
6385
- };
6386
- userId: string;
6386
+ } | undefined;
6387
6387
  newCollaboration?: {
6388
6388
  id: string;
6389
6389
  } | null | undefined;
@@ -6391,12 +6391,12 @@ export declare const activesContractRouter: {
6391
6391
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
6392
6392
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
6393
6393
  }, "strip", z.ZodTypeAny, {
6394
- description: string;
6395
- numberOfPositions: number;
6396
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
6397
6394
  createdAt: string;
6398
6395
  updatedAt: string;
6396
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
6399
6397
  id: string;
6398
+ description: string;
6399
+ numberOfPositions: number;
6400
6400
  pay: {
6401
6401
  rateUnit: "DAILY" | "HOURLY";
6402
6402
  rate: number;
@@ -6410,25 +6410,25 @@ export declare const activesContractRouter: {
6410
6410
  qualificationTypeId?: string | null | undefined;
6411
6411
  }[];
6412
6412
  currentCollaboration: {
6413
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6414
6413
  createdAt: string;
6415
6414
  updatedAt: string;
6415
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6416
6416
  id: string;
6417
- company: {
6417
+ userId: string;
6418
+ company?: {
6418
6419
  id: string;
6419
6420
  name: string;
6420
- };
6421
- client: {
6421
+ } | undefined;
6422
+ client?: {
6422
6423
  id: string;
6423
6424
  name: string;
6424
- };
6425
- user: {
6425
+ } | undefined;
6426
+ user?: {
6426
6427
  id: string;
6427
6428
  firstName: string;
6428
6429
  lastName: string;
6429
6430
  email: string;
6430
- };
6431
- userId: string;
6431
+ } | undefined;
6432
6432
  newCollaboration?: {
6433
6433
  id: string;
6434
6434
  } | null | undefined;
@@ -6444,12 +6444,12 @@ export declare const activesContractRouter: {
6444
6444
  areaCovered?: string | null | undefined;
6445
6445
  } | null | undefined;
6446
6446
  }, {
6447
- description: string;
6448
- numberOfPositions: number;
6449
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
6450
6447
  createdAt: string | Date;
6451
6448
  updatedAt: string | Date;
6449
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
6452
6450
  id: string;
6451
+ description: string;
6452
+ numberOfPositions: number;
6453
6453
  pay: {
6454
6454
  rateUnit: "DAILY" | "HOURLY";
6455
6455
  rate: number;
@@ -6458,25 +6458,25 @@ export declare const activesContractRouter: {
6458
6458
  };
6459
6459
  tradeId: string;
6460
6460
  currentCollaboration: {
6461
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6462
6461
  createdAt: string | Date;
6463
6462
  updatedAt: string | Date;
6463
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6464
6464
  id: string;
6465
- company: {
6465
+ userId: string;
6466
+ company?: {
6466
6467
  id: string;
6467
6468
  name: string;
6468
- };
6469
- client: {
6469
+ } | undefined;
6470
+ client?: {
6470
6471
  id: string;
6471
6472
  name: string;
6472
- };
6473
- user: {
6473
+ } | undefined;
6474
+ user?: {
6474
6475
  id: string;
6475
6476
  firstName: string;
6476
6477
  lastName: string;
6477
6478
  email: string;
6478
- };
6479
- userId: string;
6479
+ } | undefined;
6480
6480
  newCollaboration?: {
6481
6481
  id: string;
6482
6482
  } | null | undefined;
@@ -6501,14 +6501,10 @@ export declare const activesContractRouter: {
6501
6501
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
6502
6502
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
6503
6503
  }, "strip", z.ZodTypeAny, {
6504
- 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";
6505
6504
  createdAt: string;
6506
6505
  updatedAt: string;
6506
+ 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";
6507
6507
  id: string;
6508
- pay: {
6509
- rate: number;
6510
- unit: "DAILY" | "HOURLY";
6511
- };
6512
6508
  user: {
6513
6509
  createdAt: string;
6514
6510
  updatedAt: string;
@@ -6520,6 +6516,10 @@ export declare const activesContractRouter: {
6520
6516
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
6521
6517
  };
6522
6518
  userId: string;
6519
+ pay: {
6520
+ rate: number;
6521
+ unit: "DAILY" | "HOURLY";
6522
+ };
6523
6523
  startDate: string;
6524
6524
  worker: {
6525
6525
  createdAt: string;
@@ -6530,12 +6530,13 @@ export declare const activesContractRouter: {
6530
6530
  phoneNumbers: {
6531
6531
  phoneNumber: string;
6532
6532
  isPrimary: boolean;
6533
- description?: string | undefined;
6534
6533
  id?: string | undefined;
6534
+ description?: string | undefined;
6535
6535
  }[];
6536
6536
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
6537
6537
  hasTools: boolean;
6538
6538
  hasPpe: boolean;
6539
+ email?: string | null | undefined;
6539
6540
  location?: {
6540
6541
  address?: string | null | undefined;
6541
6542
  postcode?: string | null | undefined;
@@ -6545,7 +6546,6 @@ export declare const activesContractRouter: {
6545
6546
  postTown?: string | null | undefined;
6546
6547
  areaCovered?: string | null | undefined;
6547
6548
  } | null | undefined;
6548
- email?: string | null | undefined;
6549
6549
  nino?: string | null | undefined;
6550
6550
  dateOfBirth?: string | null | undefined;
6551
6551
  bio?: string | null | undefined;
@@ -6580,12 +6580,12 @@ export declare const activesContractRouter: {
6580
6580
  distanceKm?: number | null | undefined;
6581
6581
  };
6582
6582
  job: {
6583
- description: string;
6584
- numberOfPositions: number;
6585
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
6586
6583
  createdAt: string;
6587
6584
  updatedAt: string;
6585
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
6588
6586
  id: string;
6587
+ description: string;
6588
+ numberOfPositions: number;
6589
6589
  pay: {
6590
6590
  rateUnit: "DAILY" | "HOURLY";
6591
6591
  rate: number;
@@ -6599,25 +6599,25 @@ export declare const activesContractRouter: {
6599
6599
  qualificationTypeId?: string | null | undefined;
6600
6600
  }[];
6601
6601
  currentCollaboration: {
6602
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6603
6602
  createdAt: string;
6604
6603
  updatedAt: string;
6604
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6605
6605
  id: string;
6606
- company: {
6606
+ userId: string;
6607
+ company?: {
6607
6608
  id: string;
6608
6609
  name: string;
6609
- };
6610
- client: {
6610
+ } | undefined;
6611
+ client?: {
6611
6612
  id: string;
6612
6613
  name: string;
6613
- };
6614
- user: {
6614
+ } | undefined;
6615
+ user?: {
6615
6616
  id: string;
6616
6617
  firstName: string;
6617
6618
  lastName: string;
6618
- email: string;
6619
- };
6620
- userId: string;
6619
+ email: string;
6620
+ } | undefined;
6621
6621
  newCollaboration?: {
6622
6622
  id: string;
6623
6623
  } | null | undefined;
@@ -6635,14 +6635,10 @@ export declare const activesContractRouter: {
6635
6635
  };
6636
6636
  endDate?: string | null | undefined;
6637
6637
  }, {
6638
- 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";
6639
6638
  createdAt: string | Date;
6640
6639
  updatedAt: string | Date;
6640
+ 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";
6641
6641
  id: string;
6642
- pay: {
6643
- rate: number;
6644
- unit: "DAILY" | "HOURLY";
6645
- };
6646
6642
  user: {
6647
6643
  createdAt: string | Date;
6648
6644
  updatedAt: string | Date;
@@ -6654,6 +6650,10 @@ export declare const activesContractRouter: {
6654
6650
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
6655
6651
  };
6656
6652
  userId: string;
6653
+ pay: {
6654
+ rate: number;
6655
+ unit: "DAILY" | "HOURLY";
6656
+ };
6657
6657
  startDate: string | Date;
6658
6658
  worker: {
6659
6659
  createdAt: string | Date;
@@ -6664,6 +6664,7 @@ export declare const activesContractRouter: {
6664
6664
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
6665
6665
  hasTools: boolean;
6666
6666
  hasPpe: boolean;
6667
+ email?: string | null | undefined;
6667
6668
  location?: {
6668
6669
  address?: string | null | undefined;
6669
6670
  postcode?: string | null | undefined;
@@ -6673,11 +6674,10 @@ export declare const activesContractRouter: {
6673
6674
  postTown?: string | null | undefined;
6674
6675
  areaCovered?: string | null | undefined;
6675
6676
  } | null | undefined;
6676
- email?: string | null | undefined;
6677
6677
  phoneNumbers?: {
6678
6678
  phoneNumber: string;
6679
- description?: string | undefined;
6680
6679
  id?: string | undefined;
6680
+ description?: string | undefined;
6681
6681
  isPrimary?: boolean | undefined;
6682
6682
  }[] | undefined;
6683
6683
  nino?: string | null | undefined;
@@ -6714,12 +6714,12 @@ export declare const activesContractRouter: {
6714
6714
  distanceKm?: number | null | undefined;
6715
6715
  };
6716
6716
  job: {
6717
- description: string;
6718
- numberOfPositions: number;
6719
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
6720
6717
  createdAt: string | Date;
6721
6718
  updatedAt: string | Date;
6719
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
6722
6720
  id: string;
6721
+ description: string;
6722
+ numberOfPositions: number;
6723
6723
  pay: {
6724
6724
  rateUnit: "DAILY" | "HOURLY";
6725
6725
  rate: number;
@@ -6728,25 +6728,25 @@ export declare const activesContractRouter: {
6728
6728
  };
6729
6729
  tradeId: string;
6730
6730
  currentCollaboration: {
6731
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6732
6731
  createdAt: string | Date;
6733
6732
  updatedAt: string | Date;
6733
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6734
6734
  id: string;
6735
- company: {
6735
+ userId: string;
6736
+ company?: {
6736
6737
  id: string;
6737
6738
  name: string;
6738
- };
6739
- client: {
6739
+ } | undefined;
6740
+ client?: {
6740
6741
  id: string;
6741
6742
  name: string;
6742
- };
6743
- user: {
6743
+ } | undefined;
6744
+ user?: {
6744
6745
  id: string;
6745
6746
  firstName: string;
6746
6747
  lastName: string;
6747
6748
  email: string;
6748
- };
6749
- userId: string;
6749
+ } | undefined;
6750
6750
  newCollaboration?: {
6751
6751
  id: string;
6752
6752
  } | null | undefined;
@@ -6775,11 +6775,11 @@ export declare const activesContractRouter: {
6775
6775
  createdAt: string;
6776
6776
  updatedAt: string;
6777
6777
  id: string;
6778
+ date: string;
6778
6779
  pay: {
6779
6780
  rate: number;
6780
6781
  unit: "DAILY" | "HOURLY";
6781
6782
  };
6782
- date: string;
6783
6783
  comment: string | null;
6784
6784
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
6785
6785
  statusSaUpdatedAt: string | null;
@@ -6788,14 +6788,10 @@ export declare const activesContractRouter: {
6788
6788
  hoursWorked: number | null;
6789
6789
  hoursWorkedUpdatedAt: string | null;
6790
6790
  booking: {
6791
- 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";
6792
6791
  createdAt: string;
6793
6792
  updatedAt: string;
6793
+ 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";
6794
6794
  id: string;
6795
- pay: {
6796
- rate: number;
6797
- unit: "DAILY" | "HOURLY";
6798
- };
6799
6795
  user: {
6800
6796
  createdAt: string;
6801
6797
  updatedAt: string;
@@ -6807,6 +6803,10 @@ export declare const activesContractRouter: {
6807
6803
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
6808
6804
  };
6809
6805
  userId: string;
6806
+ pay: {
6807
+ rate: number;
6808
+ unit: "DAILY" | "HOURLY";
6809
+ };
6810
6810
  startDate: string;
6811
6811
  worker: {
6812
6812
  createdAt: string;
@@ -6817,12 +6817,13 @@ export declare const activesContractRouter: {
6817
6817
  phoneNumbers: {
6818
6818
  phoneNumber: string;
6819
6819
  isPrimary: boolean;
6820
- description?: string | undefined;
6821
6820
  id?: string | undefined;
6821
+ description?: string | undefined;
6822
6822
  }[];
6823
6823
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
6824
6824
  hasTools: boolean;
6825
6825
  hasPpe: boolean;
6826
+ email?: string | null | undefined;
6826
6827
  location?: {
6827
6828
  address?: string | null | undefined;
6828
6829
  postcode?: string | null | undefined;
@@ -6832,7 +6833,6 @@ export declare const activesContractRouter: {
6832
6833
  postTown?: string | null | undefined;
6833
6834
  areaCovered?: string | null | undefined;
6834
6835
  } | null | undefined;
6835
- email?: string | null | undefined;
6836
6836
  nino?: string | null | undefined;
6837
6837
  dateOfBirth?: string | null | undefined;
6838
6838
  bio?: string | null | undefined;
@@ -6867,12 +6867,12 @@ export declare const activesContractRouter: {
6867
6867
  distanceKm?: number | null | undefined;
6868
6868
  };
6869
6869
  job: {
6870
- description: string;
6871
- numberOfPositions: number;
6872
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
6873
6870
  createdAt: string;
6874
6871
  updatedAt: string;
6872
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
6875
6873
  id: string;
6874
+ description: string;
6875
+ numberOfPositions: number;
6876
6876
  pay: {
6877
6877
  rateUnit: "DAILY" | "HOURLY";
6878
6878
  rate: number;
@@ -6886,25 +6886,25 @@ export declare const activesContractRouter: {
6886
6886
  qualificationTypeId?: string | null | undefined;
6887
6887
  }[];
6888
6888
  currentCollaboration: {
6889
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6890
6889
  createdAt: string;
6891
6890
  updatedAt: string;
6891
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
6892
6892
  id: string;
6893
- company: {
6893
+ userId: string;
6894
+ company?: {
6894
6895
  id: string;
6895
6896
  name: string;
6896
- };
6897
- client: {
6897
+ } | undefined;
6898
+ client?: {
6898
6899
  id: string;
6899
6900
  name: string;
6900
- };
6901
- user: {
6901
+ } | undefined;
6902
+ user?: {
6902
6903
  id: string;
6903
6904
  firstName: string;
6904
6905
  lastName: string;
6905
6906
  email: string;
6906
- };
6907
- userId: string;
6907
+ } | undefined;
6908
6908
  newCollaboration?: {
6909
6909
  id: string;
6910
6910
  } | null | undefined;
@@ -6926,11 +6926,11 @@ export declare const activesContractRouter: {
6926
6926
  createdAt: string | Date;
6927
6927
  updatedAt: string | Date;
6928
6928
  id: string;
6929
+ date: string;
6929
6930
  pay: {
6930
6931
  rate: number;
6931
6932
  unit: "DAILY" | "HOURLY";
6932
6933
  };
6933
- date: string;
6934
6934
  comment: string | null;
6935
6935
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
6936
6936
  statusSaUpdatedAt: string | Date | null;
@@ -6939,14 +6939,10 @@ export declare const activesContractRouter: {
6939
6939
  hoursWorked: number | null;
6940
6940
  hoursWorkedUpdatedAt: string | Date | null;
6941
6941
  booking: {
6942
- 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";
6943
6942
  createdAt: string | Date;
6944
6943
  updatedAt: string | Date;
6944
+ 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";
6945
6945
  id: string;
6946
- pay: {
6947
- rate: number;
6948
- unit: "DAILY" | "HOURLY";
6949
- };
6950
6946
  user: {
6951
6947
  createdAt: string | Date;
6952
6948
  updatedAt: string | Date;
@@ -6958,6 +6954,10 @@ export declare const activesContractRouter: {
6958
6954
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
6959
6955
  };
6960
6956
  userId: string;
6957
+ pay: {
6958
+ rate: number;
6959
+ unit: "DAILY" | "HOURLY";
6960
+ };
6961
6961
  startDate: string | Date;
6962
6962
  worker: {
6963
6963
  createdAt: string | Date;
@@ -6968,6 +6968,7 @@ export declare const activesContractRouter: {
6968
6968
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
6969
6969
  hasTools: boolean;
6970
6970
  hasPpe: boolean;
6971
+ email?: string | null | undefined;
6971
6972
  location?: {
6972
6973
  address?: string | null | undefined;
6973
6974
  postcode?: string | null | undefined;
@@ -6977,11 +6978,10 @@ export declare const activesContractRouter: {
6977
6978
  postTown?: string | null | undefined;
6978
6979
  areaCovered?: string | null | undefined;
6979
6980
  } | null | undefined;
6980
- email?: string | null | undefined;
6981
6981
  phoneNumbers?: {
6982
6982
  phoneNumber: string;
6983
- description?: string | undefined;
6984
6983
  id?: string | undefined;
6984
+ description?: string | undefined;
6985
6985
  isPrimary?: boolean | undefined;
6986
6986
  }[] | undefined;
6987
6987
  nino?: string | null | undefined;
@@ -7018,12 +7018,12 @@ export declare const activesContractRouter: {
7018
7018
  distanceKm?: number | null | undefined;
7019
7019
  };
7020
7020
  job: {
7021
- description: string;
7022
- numberOfPositions: number;
7023
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
7024
7021
  createdAt: string | Date;
7025
7022
  updatedAt: string | Date;
7023
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
7026
7024
  id: string;
7025
+ description: string;
7026
+ numberOfPositions: number;
7027
7027
  pay: {
7028
7028
  rateUnit: "DAILY" | "HOURLY";
7029
7029
  rate: number;
@@ -7032,25 +7032,25 @@ export declare const activesContractRouter: {
7032
7032
  };
7033
7033
  tradeId: string;
7034
7034
  currentCollaboration: {
7035
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
7036
7035
  createdAt: string | Date;
7037
7036
  updatedAt: string | Date;
7037
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
7038
7038
  id: string;
7039
- company: {
7039
+ userId: string;
7040
+ company?: {
7040
7041
  id: string;
7041
7042
  name: string;
7042
- };
7043
- client: {
7043
+ } | undefined;
7044
+ client?: {
7044
7045
  id: string;
7045
7046
  name: string;
7046
- };
7047
- user: {
7047
+ } | undefined;
7048
+ user?: {
7048
7049
  id: string;
7049
7050
  firstName: string;
7050
7051
  lastName: string;
7051
7052
  email: string;
7052
- };
7053
- userId: string;
7053
+ } | undefined;
7054
7054
  newCollaboration?: {
7055
7055
  id: string;
7056
7056
  } | null | undefined;
@@ -7291,12 +7291,12 @@ export declare const activesContractRouter: {
7291
7291
  }, "strip", z.ZodTypeAny, {
7292
7292
  phoneNumber: string;
7293
7293
  isPrimary: boolean;
7294
- description?: string | undefined;
7295
7294
  id?: string | undefined;
7295
+ description?: string | undefined;
7296
7296
  }, {
7297
7297
  phoneNumber: string;
7298
- description?: string | undefined;
7299
7298
  id?: string | undefined;
7299
+ description?: string | undefined;
7300
7300
  isPrimary?: boolean | undefined;
7301
7301
  }>, "many">>>;
7302
7302
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7412,12 +7412,13 @@ export declare const activesContractRouter: {
7412
7412
  phoneNumbers: {
7413
7413
  phoneNumber: string;
7414
7414
  isPrimary: boolean;
7415
- description?: string | undefined;
7416
7415
  id?: string | undefined;
7416
+ description?: string | undefined;
7417
7417
  }[];
7418
7418
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
7419
7419
  hasTools: boolean;
7420
7420
  hasPpe: boolean;
7421
+ email?: string | null | undefined;
7421
7422
  location?: {
7422
7423
  address?: string | null | undefined;
7423
7424
  postcode?: string | null | undefined;
@@ -7427,7 +7428,6 @@ export declare const activesContractRouter: {
7427
7428
  postTown?: string | null | undefined;
7428
7429
  areaCovered?: string | null | undefined;
7429
7430
  } | null | undefined;
7430
- email?: string | null | undefined;
7431
7431
  nino?: string | null | undefined;
7432
7432
  dateOfBirth?: string | null | undefined;
7433
7433
  bio?: string | null | undefined;
@@ -7469,6 +7469,7 @@ export declare const activesContractRouter: {
7469
7469
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
7470
7470
  hasTools: boolean;
7471
7471
  hasPpe: boolean;
7472
+ email?: string | null | undefined;
7472
7473
  location?: {
7473
7474
  address?: string | null | undefined;
7474
7475
  postcode?: string | null | undefined;
@@ -7478,11 +7479,10 @@ export declare const activesContractRouter: {
7478
7479
  postTown?: string | null | undefined;
7479
7480
  areaCovered?: string | null | undefined;
7480
7481
  } | null | undefined;
7481
- email?: string | null | undefined;
7482
7482
  phoneNumbers?: {
7483
7483
  phoneNumber: string;
7484
- description?: string | undefined;
7485
7484
  id?: string | undefined;
7485
+ description?: string | undefined;
7486
7486
  isPrimary?: boolean | undefined;
7487
7487
  }[] | undefined;
7488
7488
  nino?: string | null | undefined;
@@ -7619,7 +7619,7 @@ export declare const activesContractRouter: {
7619
7619
  }>, "many">>>;
7620
7620
  currentCollaboration: z.ZodNullable<z.ZodObject<{
7621
7621
  id: z.ZodString;
7622
- company: z.ZodObject<{
7622
+ company: z.ZodOptional<z.ZodObject<{
7623
7623
  id: z.ZodString;
7624
7624
  name: z.ZodString;
7625
7625
  }, "strip", z.ZodTypeAny, {
@@ -7628,8 +7628,8 @@ export declare const activesContractRouter: {
7628
7628
  }, {
7629
7629
  id: string;
7630
7630
  name: string;
7631
- }>;
7632
- client: z.ZodObject<{
7631
+ }>>;
7632
+ client: z.ZodOptional<z.ZodObject<{
7633
7633
  id: z.ZodString;
7634
7634
  name: z.ZodString;
7635
7635
  }, "strip", z.ZodTypeAny, {
@@ -7638,8 +7638,8 @@ export declare const activesContractRouter: {
7638
7638
  }, {
7639
7639
  id: string;
7640
7640
  name: string;
7641
- }>;
7642
- user: z.ZodObject<{
7641
+ }>>;
7642
+ user: z.ZodOptional<z.ZodObject<{
7643
7643
  id: z.ZodString;
7644
7644
  firstName: z.ZodString;
7645
7645
  lastName: z.ZodString;
@@ -7654,7 +7654,7 @@ export declare const activesContractRouter: {
7654
7654
  firstName: string;
7655
7655
  lastName: string;
7656
7656
  email: string;
7657
- }>;
7657
+ }>>;
7658
7658
  status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
7659
7659
  userId: z.ZodString;
7660
7660
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -7667,48 +7667,48 @@ export declare const activesContractRouter: {
7667
7667
  id: string;
7668
7668
  }>>>;
7669
7669
  }, "strip", z.ZodTypeAny, {
7670
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
7671
7670
  createdAt: string;
7672
7671
  updatedAt: string;
7672
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
7673
7673
  id: string;
7674
- company: {
7674
+ userId: string;
7675
+ company?: {
7675
7676
  id: string;
7676
7677
  name: string;
7677
- };
7678
- client: {
7678
+ } | undefined;
7679
+ client?: {
7679
7680
  id: string;
7680
7681
  name: string;
7681
- };
7682
- user: {
7682
+ } | undefined;
7683
+ user?: {
7683
7684
  id: string;
7684
7685
  firstName: string;
7685
7686
  lastName: string;
7686
7687
  email: string;
7687
- };
7688
- userId: string;
7688
+ } | undefined;
7689
7689
  newCollaboration?: {
7690
7690
  id: string;
7691
7691
  } | null | undefined;
7692
7692
  }, {
7693
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
7694
7693
  createdAt: string | Date;
7695
7694
  updatedAt: string | Date;
7695
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
7696
7696
  id: string;
7697
- company: {
7697
+ userId: string;
7698
+ company?: {
7698
7699
  id: string;
7699
7700
  name: string;
7700
- };
7701
- client: {
7701
+ } | undefined;
7702
+ client?: {
7702
7703
  id: string;
7703
7704
  name: string;
7704
- };
7705
- user: {
7705
+ } | undefined;
7706
+ user?: {
7706
7707
  id: string;
7707
7708
  firstName: string;
7708
7709
  lastName: string;
7709
7710
  email: string;
7710
- };
7711
- userId: string;
7711
+ } | undefined;
7712
7712
  newCollaboration?: {
7713
7713
  id: string;
7714
7714
  } | null | undefined;
@@ -7716,12 +7716,12 @@ export declare const activesContractRouter: {
7716
7716
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
7717
7717
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
7718
7718
  }, "strip", z.ZodTypeAny, {
7719
- description: string;
7720
- numberOfPositions: number;
7721
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
7722
7719
  createdAt: string;
7723
7720
  updatedAt: string;
7721
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
7724
7722
  id: string;
7723
+ description: string;
7724
+ numberOfPositions: number;
7725
7725
  pay: {
7726
7726
  rateUnit: "DAILY" | "HOURLY";
7727
7727
  rate: number;
@@ -7735,25 +7735,25 @@ export declare const activesContractRouter: {
7735
7735
  qualificationTypeId?: string | null | undefined;
7736
7736
  }[];
7737
7737
  currentCollaboration: {
7738
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
7739
7738
  createdAt: string;
7740
7739
  updatedAt: string;
7740
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
7741
7741
  id: string;
7742
- company: {
7742
+ userId: string;
7743
+ company?: {
7743
7744
  id: string;
7744
7745
  name: string;
7745
- };
7746
- client: {
7746
+ } | undefined;
7747
+ client?: {
7747
7748
  id: string;
7748
7749
  name: string;
7749
- };
7750
- user: {
7750
+ } | undefined;
7751
+ user?: {
7751
7752
  id: string;
7752
7753
  firstName: string;
7753
7754
  lastName: string;
7754
7755
  email: string;
7755
- };
7756
- userId: string;
7756
+ } | undefined;
7757
7757
  newCollaboration?: {
7758
7758
  id: string;
7759
7759
  } | null | undefined;
@@ -7769,12 +7769,12 @@ export declare const activesContractRouter: {
7769
7769
  areaCovered?: string | null | undefined;
7770
7770
  } | null | undefined;
7771
7771
  }, {
7772
- description: string;
7773
- numberOfPositions: number;
7774
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
7775
7772
  createdAt: string | Date;
7776
7773
  updatedAt: string | Date;
7774
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
7777
7775
  id: string;
7776
+ description: string;
7777
+ numberOfPositions: number;
7778
7778
  pay: {
7779
7779
  rateUnit: "DAILY" | "HOURLY";
7780
7780
  rate: number;
@@ -7783,25 +7783,25 @@ export declare const activesContractRouter: {
7783
7783
  };
7784
7784
  tradeId: string;
7785
7785
  currentCollaboration: {
7786
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
7787
7786
  createdAt: string | Date;
7788
7787
  updatedAt: string | Date;
7788
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
7789
7789
  id: string;
7790
- company: {
7790
+ userId: string;
7791
+ company?: {
7791
7792
  id: string;
7792
7793
  name: string;
7793
- };
7794
- client: {
7794
+ } | undefined;
7795
+ client?: {
7795
7796
  id: string;
7796
7797
  name: string;
7797
- };
7798
- user: {
7798
+ } | undefined;
7799
+ user?: {
7799
7800
  id: string;
7800
7801
  firstName: string;
7801
7802
  lastName: string;
7802
7803
  email: string;
7803
- };
7804
- userId: string;
7804
+ } | undefined;
7805
7805
  newCollaboration?: {
7806
7806
  id: string;
7807
7807
  } | null | undefined;
@@ -7826,14 +7826,10 @@ export declare const activesContractRouter: {
7826
7826
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
7827
7827
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
7828
7828
  }, "strip", z.ZodTypeAny, {
7829
- 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";
7830
7829
  createdAt: string;
7831
7830
  updatedAt: string;
7831
+ 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";
7832
7832
  id: string;
7833
- pay: {
7834
- rate: number;
7835
- unit: "DAILY" | "HOURLY";
7836
- };
7837
7833
  user: {
7838
7834
  createdAt: string;
7839
7835
  updatedAt: string;
@@ -7845,6 +7841,10 @@ export declare const activesContractRouter: {
7845
7841
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
7846
7842
  };
7847
7843
  userId: string;
7844
+ pay: {
7845
+ rate: number;
7846
+ unit: "DAILY" | "HOURLY";
7847
+ };
7848
7848
  startDate: string;
7849
7849
  worker: {
7850
7850
  createdAt: string;
@@ -7855,12 +7855,13 @@ export declare const activesContractRouter: {
7855
7855
  phoneNumbers: {
7856
7856
  phoneNumber: string;
7857
7857
  isPrimary: boolean;
7858
- description?: string | undefined;
7859
7858
  id?: string | undefined;
7859
+ description?: string | undefined;
7860
7860
  }[];
7861
7861
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
7862
7862
  hasTools: boolean;
7863
7863
  hasPpe: boolean;
7864
+ email?: string | null | undefined;
7864
7865
  location?: {
7865
7866
  address?: string | null | undefined;
7866
7867
  postcode?: string | null | undefined;
@@ -7870,7 +7871,6 @@ export declare const activesContractRouter: {
7870
7871
  postTown?: string | null | undefined;
7871
7872
  areaCovered?: string | null | undefined;
7872
7873
  } | null | undefined;
7873
- email?: string | null | undefined;
7874
7874
  nino?: string | null | undefined;
7875
7875
  dateOfBirth?: string | null | undefined;
7876
7876
  bio?: string | null | undefined;
@@ -7905,12 +7905,12 @@ export declare const activesContractRouter: {
7905
7905
  distanceKm?: number | null | undefined;
7906
7906
  };
7907
7907
  job: {
7908
- description: string;
7909
- numberOfPositions: number;
7910
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
7911
7908
  createdAt: string;
7912
7909
  updatedAt: string;
7910
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
7913
7911
  id: string;
7912
+ description: string;
7913
+ numberOfPositions: number;
7914
7914
  pay: {
7915
7915
  rateUnit: "DAILY" | "HOURLY";
7916
7916
  rate: number;
@@ -7924,25 +7924,25 @@ export declare const activesContractRouter: {
7924
7924
  qualificationTypeId?: string | null | undefined;
7925
7925
  }[];
7926
7926
  currentCollaboration: {
7927
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
7928
7927
  createdAt: string;
7929
7928
  updatedAt: string;
7929
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
7930
7930
  id: string;
7931
- company: {
7931
+ userId: string;
7932
+ company?: {
7932
7933
  id: string;
7933
7934
  name: string;
7934
- };
7935
- client: {
7935
+ } | undefined;
7936
+ client?: {
7936
7937
  id: string;
7937
7938
  name: string;
7938
- };
7939
- user: {
7939
+ } | undefined;
7940
+ user?: {
7940
7941
  id: string;
7941
7942
  firstName: string;
7942
7943
  lastName: string;
7943
7944
  email: string;
7944
- };
7945
- userId: string;
7945
+ } | undefined;
7946
7946
  newCollaboration?: {
7947
7947
  id: string;
7948
7948
  } | null | undefined;
@@ -7960,14 +7960,10 @@ export declare const activesContractRouter: {
7960
7960
  };
7961
7961
  endDate?: string | null | undefined;
7962
7962
  }, {
7963
- 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";
7964
7963
  createdAt: string | Date;
7965
7964
  updatedAt: string | Date;
7965
+ 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";
7966
7966
  id: string;
7967
- pay: {
7968
- rate: number;
7969
- unit: "DAILY" | "HOURLY";
7970
- };
7971
7967
  user: {
7972
7968
  createdAt: string | Date;
7973
7969
  updatedAt: string | Date;
@@ -7979,6 +7975,10 @@ export declare const activesContractRouter: {
7979
7975
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
7980
7976
  };
7981
7977
  userId: string;
7978
+ pay: {
7979
+ rate: number;
7980
+ unit: "DAILY" | "HOURLY";
7981
+ };
7982
7982
  startDate: string | Date;
7983
7983
  worker: {
7984
7984
  createdAt: string | Date;
@@ -7989,6 +7989,7 @@ export declare const activesContractRouter: {
7989
7989
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
7990
7990
  hasTools: boolean;
7991
7991
  hasPpe: boolean;
7992
+ email?: string | null | undefined;
7992
7993
  location?: {
7993
7994
  address?: string | null | undefined;
7994
7995
  postcode?: string | null | undefined;
@@ -7998,11 +7999,10 @@ export declare const activesContractRouter: {
7998
7999
  postTown?: string | null | undefined;
7999
8000
  areaCovered?: string | null | undefined;
8000
8001
  } | null | undefined;
8001
- email?: string | null | undefined;
8002
8002
  phoneNumbers?: {
8003
8003
  phoneNumber: string;
8004
- description?: string | undefined;
8005
8004
  id?: string | undefined;
8005
+ description?: string | undefined;
8006
8006
  isPrimary?: boolean | undefined;
8007
8007
  }[] | undefined;
8008
8008
  nino?: string | null | undefined;
@@ -8039,12 +8039,12 @@ export declare const activesContractRouter: {
8039
8039
  distanceKm?: number | null | undefined;
8040
8040
  };
8041
8041
  job: {
8042
- description: string;
8043
- numberOfPositions: number;
8044
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
8045
8042
  createdAt: string | Date;
8046
8043
  updatedAt: string | Date;
8044
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
8047
8045
  id: string;
8046
+ description: string;
8047
+ numberOfPositions: number;
8048
8048
  pay: {
8049
8049
  rateUnit: "DAILY" | "HOURLY";
8050
8050
  rate: number;
@@ -8053,25 +8053,25 @@ export declare const activesContractRouter: {
8053
8053
  };
8054
8054
  tradeId: string;
8055
8055
  currentCollaboration: {
8056
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
8057
8056
  createdAt: string | Date;
8058
8057
  updatedAt: string | Date;
8058
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
8059
8059
  id: string;
8060
- company: {
8060
+ userId: string;
8061
+ company?: {
8061
8062
  id: string;
8062
8063
  name: string;
8063
- };
8064
- client: {
8064
+ } | undefined;
8065
+ client?: {
8065
8066
  id: string;
8066
8067
  name: string;
8067
- };
8068
- user: {
8068
+ } | undefined;
8069
+ user?: {
8069
8070
  id: string;
8070
8071
  firstName: string;
8071
8072
  lastName: string;
8072
8073
  email: string;
8073
- };
8074
- userId: string;
8074
+ } | undefined;
8075
8075
  newCollaboration?: {
8076
8076
  id: string;
8077
8077
  } | null | undefined;
@@ -8100,11 +8100,11 @@ export declare const activesContractRouter: {
8100
8100
  createdAt: string;
8101
8101
  updatedAt: string;
8102
8102
  id: string;
8103
+ date: string;
8103
8104
  pay: {
8104
8105
  rate: number;
8105
8106
  unit: "DAILY" | "HOURLY";
8106
8107
  };
8107
- date: string;
8108
8108
  comment: string | null;
8109
8109
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
8110
8110
  statusSaUpdatedAt: string | null;
@@ -8113,14 +8113,10 @@ export declare const activesContractRouter: {
8113
8113
  hoursWorked: number | null;
8114
8114
  hoursWorkedUpdatedAt: string | null;
8115
8115
  booking: {
8116
- 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";
8117
8116
  createdAt: string;
8118
8117
  updatedAt: string;
8118
+ 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";
8119
8119
  id: string;
8120
- pay: {
8121
- rate: number;
8122
- unit: "DAILY" | "HOURLY";
8123
- };
8124
8120
  user: {
8125
8121
  createdAt: string;
8126
8122
  updatedAt: string;
@@ -8132,6 +8128,10 @@ export declare const activesContractRouter: {
8132
8128
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
8133
8129
  };
8134
8130
  userId: string;
8131
+ pay: {
8132
+ rate: number;
8133
+ unit: "DAILY" | "HOURLY";
8134
+ };
8135
8135
  startDate: string;
8136
8136
  worker: {
8137
8137
  createdAt: string;
@@ -8142,12 +8142,13 @@ export declare const activesContractRouter: {
8142
8142
  phoneNumbers: {
8143
8143
  phoneNumber: string;
8144
8144
  isPrimary: boolean;
8145
- description?: string | undefined;
8146
8145
  id?: string | undefined;
8146
+ description?: string | undefined;
8147
8147
  }[];
8148
8148
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
8149
8149
  hasTools: boolean;
8150
8150
  hasPpe: boolean;
8151
+ email?: string | null | undefined;
8151
8152
  location?: {
8152
8153
  address?: string | null | undefined;
8153
8154
  postcode?: string | null | undefined;
@@ -8157,7 +8158,6 @@ export declare const activesContractRouter: {
8157
8158
  postTown?: string | null | undefined;
8158
8159
  areaCovered?: string | null | undefined;
8159
8160
  } | null | undefined;
8160
- email?: string | null | undefined;
8161
8161
  nino?: string | null | undefined;
8162
8162
  dateOfBirth?: string | null | undefined;
8163
8163
  bio?: string | null | undefined;
@@ -8192,12 +8192,12 @@ export declare const activesContractRouter: {
8192
8192
  distanceKm?: number | null | undefined;
8193
8193
  };
8194
8194
  job: {
8195
- description: string;
8196
- numberOfPositions: number;
8197
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
8198
8195
  createdAt: string;
8199
8196
  updatedAt: string;
8197
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
8200
8198
  id: string;
8199
+ description: string;
8200
+ numberOfPositions: number;
8201
8201
  pay: {
8202
8202
  rateUnit: "DAILY" | "HOURLY";
8203
8203
  rate: number;
@@ -8211,25 +8211,25 @@ export declare const activesContractRouter: {
8211
8211
  qualificationTypeId?: string | null | undefined;
8212
8212
  }[];
8213
8213
  currentCollaboration: {
8214
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
8215
8214
  createdAt: string;
8216
8215
  updatedAt: string;
8216
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
8217
8217
  id: string;
8218
- company: {
8218
+ userId: string;
8219
+ company?: {
8219
8220
  id: string;
8220
8221
  name: string;
8221
- };
8222
- client: {
8222
+ } | undefined;
8223
+ client?: {
8223
8224
  id: string;
8224
8225
  name: string;
8225
- };
8226
- user: {
8226
+ } | undefined;
8227
+ user?: {
8227
8228
  id: string;
8228
8229
  firstName: string;
8229
8230
  lastName: string;
8230
8231
  email: string;
8231
- };
8232
- userId: string;
8232
+ } | undefined;
8233
8233
  newCollaboration?: {
8234
8234
  id: string;
8235
8235
  } | null | undefined;
@@ -8251,11 +8251,11 @@ export declare const activesContractRouter: {
8251
8251
  createdAt: string | Date;
8252
8252
  updatedAt: string | Date;
8253
8253
  id: string;
8254
+ date: string;
8254
8255
  pay: {
8255
8256
  rate: number;
8256
8257
  unit: "DAILY" | "HOURLY";
8257
8258
  };
8258
- date: string;
8259
8259
  comment: string | null;
8260
8260
  statusSa: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY";
8261
8261
  statusSaUpdatedAt: string | Date | null;
@@ -8264,14 +8264,10 @@ export declare const activesContractRouter: {
8264
8264
  hoursWorked: number | null;
8265
8265
  hoursWorkedUpdatedAt: string | Date | null;
8266
8266
  booking: {
8267
- 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";
8268
8267
  createdAt: string | Date;
8269
8268
  updatedAt: string | Date;
8269
+ 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";
8270
8270
  id: string;
8271
- pay: {
8272
- rate: number;
8273
- unit: "DAILY" | "HOURLY";
8274
- };
8275
8271
  user: {
8276
8272
  createdAt: string | Date;
8277
8273
  updatedAt: string | Date;
@@ -8283,6 +8279,10 @@ export declare const activesContractRouter: {
8283
8279
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
8284
8280
  };
8285
8281
  userId: string;
8282
+ pay: {
8283
+ rate: number;
8284
+ unit: "DAILY" | "HOURLY";
8285
+ };
8286
8286
  startDate: string | Date;
8287
8287
  worker: {
8288
8288
  createdAt: string | Date;
@@ -8293,6 +8293,7 @@ export declare const activesContractRouter: {
8293
8293
  availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
8294
8294
  hasTools: boolean;
8295
8295
  hasPpe: boolean;
8296
+ email?: string | null | undefined;
8296
8297
  location?: {
8297
8298
  address?: string | null | undefined;
8298
8299
  postcode?: string | null | undefined;
@@ -8302,11 +8303,10 @@ export declare const activesContractRouter: {
8302
8303
  postTown?: string | null | undefined;
8303
8304
  areaCovered?: string | null | undefined;
8304
8305
  } | null | undefined;
8305
- email?: string | null | undefined;
8306
8306
  phoneNumbers?: {
8307
8307
  phoneNumber: string;
8308
- description?: string | undefined;
8309
8308
  id?: string | undefined;
8309
+ description?: string | undefined;
8310
8310
  isPrimary?: boolean | undefined;
8311
8311
  }[] | undefined;
8312
8312
  nino?: string | null | undefined;
@@ -8343,12 +8343,12 @@ export declare const activesContractRouter: {
8343
8343
  distanceKm?: number | null | undefined;
8344
8344
  };
8345
8345
  job: {
8346
- description: string;
8347
- numberOfPositions: number;
8348
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
8349
8346
  createdAt: string | Date;
8350
8347
  updatedAt: string | Date;
8348
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
8351
8349
  id: string;
8350
+ description: string;
8351
+ numberOfPositions: number;
8352
8352
  pay: {
8353
8353
  rateUnit: "DAILY" | "HOURLY";
8354
8354
  rate: number;
@@ -8357,25 +8357,25 @@ export declare const activesContractRouter: {
8357
8357
  };
8358
8358
  tradeId: string;
8359
8359
  currentCollaboration: {
8360
- status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
8361
8360
  createdAt: string | Date;
8362
8361
  updatedAt: string | Date;
8362
+ status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
8363
8363
  id: string;
8364
- company: {
8364
+ userId: string;
8365
+ company?: {
8365
8366
  id: string;
8366
8367
  name: string;
8367
- };
8368
- client: {
8368
+ } | undefined;
8369
+ client?: {
8369
8370
  id: string;
8370
8371
  name: string;
8371
- };
8372
- user: {
8372
+ } | undefined;
8373
+ user?: {
8373
8374
  id: string;
8374
8375
  firstName: string;
8375
8376
  lastName: string;
8376
8377
  email: string;
8377
- };
8378
- userId: string;
8378
+ } | undefined;
8379
8379
  newCollaboration?: {
8380
8380
  id: string;
8381
8381
  } | null | undefined;