@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.
- package/dist/actives/actives.contract.d.ts +856 -856
- package/dist/bookings/bookings.contract.d.ts +711 -711
- package/dist/collaborations/collaborations.contract.d.ts +168 -168
- package/dist/collaborations/collaborations.contract.js +3 -3
- package/dist/jobs/jobs.contract.d.ts +328 -328
- package/package.json +1 -1
|
@@ -61,15 +61,15 @@ export declare const FilterJobInBookingSchema: z.ZodObject<{
|
|
|
61
61
|
companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
62
62
|
tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
tradeId?: string | null | undefined;
|
|
65
64
|
userId?: string | null | undefined;
|
|
66
|
-
clientId?: string | null | undefined;
|
|
67
65
|
companyId?: string | null | undefined;
|
|
68
|
-
|
|
66
|
+
clientId?: string | null | undefined;
|
|
69
67
|
tradeId?: string | null | undefined;
|
|
68
|
+
}, {
|
|
70
69
|
userId?: string | null | undefined;
|
|
71
|
-
clientId?: string | null | undefined;
|
|
72
70
|
companyId?: string | null | undefined;
|
|
71
|
+
clientId?: string | null | undefined;
|
|
72
|
+
tradeId?: string | null | undefined;
|
|
73
73
|
}>;
|
|
74
74
|
export declare const BookingWorkerSchema: z.ZodObject<{
|
|
75
75
|
id: z.ZodString;
|
|
@@ -102,12 +102,12 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
103
|
phoneNumber: string;
|
|
104
104
|
isPrimary: boolean;
|
|
105
|
-
description?: string | undefined;
|
|
106
105
|
id?: string | undefined;
|
|
106
|
+
description?: string | undefined;
|
|
107
107
|
}, {
|
|
108
108
|
phoneNumber: string;
|
|
109
|
-
description?: string | undefined;
|
|
110
109
|
id?: string | undefined;
|
|
110
|
+
description?: string | undefined;
|
|
111
111
|
isPrimary?: boolean | undefined;
|
|
112
112
|
}>, "many">>>;
|
|
113
113
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -223,12 +223,13 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
223
223
|
phoneNumbers: {
|
|
224
224
|
phoneNumber: string;
|
|
225
225
|
isPrimary: boolean;
|
|
226
|
-
description?: string | undefined;
|
|
227
226
|
id?: string | undefined;
|
|
227
|
+
description?: string | undefined;
|
|
228
228
|
}[];
|
|
229
229
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
230
230
|
hasTools: boolean;
|
|
231
231
|
hasPpe: boolean;
|
|
232
|
+
email?: string | null | undefined;
|
|
232
233
|
location?: {
|
|
233
234
|
address?: string | null | undefined;
|
|
234
235
|
postcode?: string | null | undefined;
|
|
@@ -238,7 +239,6 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
238
239
|
postTown?: string | null | undefined;
|
|
239
240
|
areaCovered?: string | null | undefined;
|
|
240
241
|
} | null | undefined;
|
|
241
|
-
email?: string | null | undefined;
|
|
242
242
|
nino?: string | null | undefined;
|
|
243
243
|
dateOfBirth?: string | null | undefined;
|
|
244
244
|
bio?: string | null | undefined;
|
|
@@ -280,6 +280,7 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
280
280
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
281
281
|
hasTools: boolean;
|
|
282
282
|
hasPpe: boolean;
|
|
283
|
+
email?: string | null | undefined;
|
|
283
284
|
location?: {
|
|
284
285
|
address?: string | null | undefined;
|
|
285
286
|
postcode?: string | null | undefined;
|
|
@@ -289,11 +290,10 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
289
290
|
postTown?: string | null | undefined;
|
|
290
291
|
areaCovered?: string | null | undefined;
|
|
291
292
|
} | null | undefined;
|
|
292
|
-
email?: string | null | undefined;
|
|
293
293
|
phoneNumbers?: {
|
|
294
294
|
phoneNumber: string;
|
|
295
|
-
description?: string | undefined;
|
|
296
295
|
id?: string | undefined;
|
|
296
|
+
description?: string | undefined;
|
|
297
297
|
isPrimary?: boolean | undefined;
|
|
298
298
|
}[] | undefined;
|
|
299
299
|
nino?: string | null | undefined;
|
|
@@ -430,7 +430,7 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
430
430
|
}>, "many">>>;
|
|
431
431
|
currentCollaboration: z.ZodNullable<z.ZodObject<{
|
|
432
432
|
id: z.ZodString;
|
|
433
|
-
company: z.ZodObject<{
|
|
433
|
+
company: z.ZodOptional<z.ZodObject<{
|
|
434
434
|
id: z.ZodString;
|
|
435
435
|
name: z.ZodString;
|
|
436
436
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -439,8 +439,8 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
439
439
|
}, {
|
|
440
440
|
id: string;
|
|
441
441
|
name: string;
|
|
442
|
-
}
|
|
443
|
-
client: z.ZodObject<{
|
|
442
|
+
}>>;
|
|
443
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
444
444
|
id: z.ZodString;
|
|
445
445
|
name: z.ZodString;
|
|
446
446
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -449,8 +449,8 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
449
449
|
}, {
|
|
450
450
|
id: string;
|
|
451
451
|
name: string;
|
|
452
|
-
}
|
|
453
|
-
user: z.ZodObject<{
|
|
452
|
+
}>>;
|
|
453
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
454
454
|
id: z.ZodString;
|
|
455
455
|
firstName: z.ZodString;
|
|
456
456
|
lastName: z.ZodString;
|
|
@@ -465,7 +465,7 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
465
465
|
firstName: string;
|
|
466
466
|
lastName: string;
|
|
467
467
|
email: string;
|
|
468
|
-
}
|
|
468
|
+
}>>;
|
|
469
469
|
status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
|
|
470
470
|
userId: z.ZodString;
|
|
471
471
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -478,48 +478,48 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
478
478
|
id: string;
|
|
479
479
|
}>>>;
|
|
480
480
|
}, "strip", z.ZodTypeAny, {
|
|
481
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
482
481
|
createdAt: string;
|
|
483
482
|
updatedAt: string;
|
|
483
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
484
484
|
id: string;
|
|
485
|
-
|
|
485
|
+
userId: string;
|
|
486
|
+
company?: {
|
|
486
487
|
id: string;
|
|
487
488
|
name: string;
|
|
488
|
-
};
|
|
489
|
-
client
|
|
489
|
+
} | undefined;
|
|
490
|
+
client?: {
|
|
490
491
|
id: string;
|
|
491
492
|
name: string;
|
|
492
|
-
};
|
|
493
|
-
user
|
|
493
|
+
} | undefined;
|
|
494
|
+
user?: {
|
|
494
495
|
id: string;
|
|
495
496
|
firstName: string;
|
|
496
497
|
lastName: string;
|
|
497
498
|
email: string;
|
|
498
|
-
};
|
|
499
|
-
userId: string;
|
|
499
|
+
} | undefined;
|
|
500
500
|
newCollaboration?: {
|
|
501
501
|
id: string;
|
|
502
502
|
} | null | undefined;
|
|
503
503
|
}, {
|
|
504
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
505
504
|
createdAt: string | Date;
|
|
506
505
|
updatedAt: string | Date;
|
|
506
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
507
507
|
id: string;
|
|
508
|
-
|
|
508
|
+
userId: string;
|
|
509
|
+
company?: {
|
|
509
510
|
id: string;
|
|
510
511
|
name: string;
|
|
511
|
-
};
|
|
512
|
-
client
|
|
512
|
+
} | undefined;
|
|
513
|
+
client?: {
|
|
513
514
|
id: string;
|
|
514
515
|
name: string;
|
|
515
|
-
};
|
|
516
|
-
user
|
|
516
|
+
} | undefined;
|
|
517
|
+
user?: {
|
|
517
518
|
id: string;
|
|
518
519
|
firstName: string;
|
|
519
520
|
lastName: string;
|
|
520
521
|
email: string;
|
|
521
|
-
};
|
|
522
|
-
userId: string;
|
|
522
|
+
} | undefined;
|
|
523
523
|
newCollaboration?: {
|
|
524
524
|
id: string;
|
|
525
525
|
} | null | undefined;
|
|
@@ -527,12 +527,12 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
527
527
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
528
528
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
529
529
|
}, "strip", z.ZodTypeAny, {
|
|
530
|
-
description: string;
|
|
531
|
-
numberOfPositions: number;
|
|
532
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
533
530
|
createdAt: string;
|
|
534
531
|
updatedAt: string;
|
|
532
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
535
533
|
id: string;
|
|
534
|
+
description: string;
|
|
535
|
+
numberOfPositions: number;
|
|
536
536
|
pay: {
|
|
537
537
|
rateUnit: "DAILY" | "HOURLY";
|
|
538
538
|
rate: number;
|
|
@@ -546,25 +546,25 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
546
546
|
qualificationTypeId?: string | null | undefined;
|
|
547
547
|
}[];
|
|
548
548
|
currentCollaboration: {
|
|
549
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
550
549
|
createdAt: string;
|
|
551
550
|
updatedAt: string;
|
|
551
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
552
552
|
id: string;
|
|
553
|
-
|
|
553
|
+
userId: string;
|
|
554
|
+
company?: {
|
|
554
555
|
id: string;
|
|
555
556
|
name: string;
|
|
556
|
-
};
|
|
557
|
-
client
|
|
557
|
+
} | undefined;
|
|
558
|
+
client?: {
|
|
558
559
|
id: string;
|
|
559
560
|
name: string;
|
|
560
|
-
};
|
|
561
|
-
user
|
|
561
|
+
} | undefined;
|
|
562
|
+
user?: {
|
|
562
563
|
id: string;
|
|
563
564
|
firstName: string;
|
|
564
565
|
lastName: string;
|
|
565
566
|
email: string;
|
|
566
|
-
};
|
|
567
|
-
userId: string;
|
|
567
|
+
} | undefined;
|
|
568
568
|
newCollaboration?: {
|
|
569
569
|
id: string;
|
|
570
570
|
} | null | undefined;
|
|
@@ -580,12 +580,12 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
580
580
|
areaCovered?: string | null | undefined;
|
|
581
581
|
} | null | undefined;
|
|
582
582
|
}, {
|
|
583
|
-
description: string;
|
|
584
|
-
numberOfPositions: number;
|
|
585
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
586
583
|
createdAt: string | Date;
|
|
587
584
|
updatedAt: string | Date;
|
|
585
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
588
586
|
id: string;
|
|
587
|
+
description: string;
|
|
588
|
+
numberOfPositions: number;
|
|
589
589
|
pay: {
|
|
590
590
|
rateUnit: "DAILY" | "HOURLY";
|
|
591
591
|
rate: number;
|
|
@@ -594,25 +594,25 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
594
594
|
};
|
|
595
595
|
tradeId: string;
|
|
596
596
|
currentCollaboration: {
|
|
597
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
598
597
|
createdAt: string | Date;
|
|
599
598
|
updatedAt: string | Date;
|
|
599
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
600
600
|
id: string;
|
|
601
|
-
|
|
601
|
+
userId: string;
|
|
602
|
+
company?: {
|
|
602
603
|
id: string;
|
|
603
604
|
name: string;
|
|
604
|
-
};
|
|
605
|
-
client
|
|
605
|
+
} | undefined;
|
|
606
|
+
client?: {
|
|
606
607
|
id: string;
|
|
607
608
|
name: string;
|
|
608
|
-
};
|
|
609
|
-
user
|
|
609
|
+
} | undefined;
|
|
610
|
+
user?: {
|
|
610
611
|
id: string;
|
|
611
612
|
firstName: string;
|
|
612
613
|
lastName: string;
|
|
613
614
|
email: string;
|
|
614
|
-
};
|
|
615
|
-
userId: string;
|
|
615
|
+
} | undefined;
|
|
616
616
|
newCollaboration?: {
|
|
617
617
|
id: string;
|
|
618
618
|
} | null | undefined;
|
|
@@ -637,14 +637,10 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
637
637
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
638
638
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
639
639
|
}, "strip", z.ZodTypeAny, {
|
|
640
|
-
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";
|
|
641
640
|
createdAt: string;
|
|
642
641
|
updatedAt: string;
|
|
642
|
+
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";
|
|
643
643
|
id: string;
|
|
644
|
-
pay: {
|
|
645
|
-
rate: number;
|
|
646
|
-
unit: "DAILY" | "HOURLY";
|
|
647
|
-
};
|
|
648
644
|
user: {
|
|
649
645
|
createdAt: string;
|
|
650
646
|
updatedAt: string;
|
|
@@ -656,6 +652,10 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
656
652
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
657
653
|
};
|
|
658
654
|
userId: string;
|
|
655
|
+
pay: {
|
|
656
|
+
rate: number;
|
|
657
|
+
unit: "DAILY" | "HOURLY";
|
|
658
|
+
};
|
|
659
659
|
startDate: string;
|
|
660
660
|
worker: {
|
|
661
661
|
createdAt: string;
|
|
@@ -666,12 +666,13 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
666
666
|
phoneNumbers: {
|
|
667
667
|
phoneNumber: string;
|
|
668
668
|
isPrimary: boolean;
|
|
669
|
-
description?: string | undefined;
|
|
670
669
|
id?: string | undefined;
|
|
670
|
+
description?: string | undefined;
|
|
671
671
|
}[];
|
|
672
672
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
673
673
|
hasTools: boolean;
|
|
674
674
|
hasPpe: boolean;
|
|
675
|
+
email?: string | null | undefined;
|
|
675
676
|
location?: {
|
|
676
677
|
address?: string | null | undefined;
|
|
677
678
|
postcode?: string | null | undefined;
|
|
@@ -681,7 +682,6 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
681
682
|
postTown?: string | null | undefined;
|
|
682
683
|
areaCovered?: string | null | undefined;
|
|
683
684
|
} | null | undefined;
|
|
684
|
-
email?: string | null | undefined;
|
|
685
685
|
nino?: string | null | undefined;
|
|
686
686
|
dateOfBirth?: string | null | undefined;
|
|
687
687
|
bio?: string | null | undefined;
|
|
@@ -716,12 +716,12 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
716
716
|
distanceKm?: number | null | undefined;
|
|
717
717
|
};
|
|
718
718
|
job: {
|
|
719
|
-
description: string;
|
|
720
|
-
numberOfPositions: number;
|
|
721
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
722
719
|
createdAt: string;
|
|
723
720
|
updatedAt: string;
|
|
721
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
724
722
|
id: string;
|
|
723
|
+
description: string;
|
|
724
|
+
numberOfPositions: number;
|
|
725
725
|
pay: {
|
|
726
726
|
rateUnit: "DAILY" | "HOURLY";
|
|
727
727
|
rate: number;
|
|
@@ -735,25 +735,25 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
735
735
|
qualificationTypeId?: string | null | undefined;
|
|
736
736
|
}[];
|
|
737
737
|
currentCollaboration: {
|
|
738
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
739
738
|
createdAt: string;
|
|
740
739
|
updatedAt: string;
|
|
740
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
741
741
|
id: string;
|
|
742
|
-
|
|
742
|
+
userId: string;
|
|
743
|
+
company?: {
|
|
743
744
|
id: string;
|
|
744
745
|
name: string;
|
|
745
|
-
};
|
|
746
|
-
client
|
|
746
|
+
} | undefined;
|
|
747
|
+
client?: {
|
|
747
748
|
id: string;
|
|
748
749
|
name: string;
|
|
749
|
-
};
|
|
750
|
-
user
|
|
750
|
+
} | undefined;
|
|
751
|
+
user?: {
|
|
751
752
|
id: string;
|
|
752
753
|
firstName: string;
|
|
753
754
|
lastName: string;
|
|
754
755
|
email: string;
|
|
755
|
-
};
|
|
756
|
-
userId: string;
|
|
756
|
+
} | undefined;
|
|
757
757
|
newCollaboration?: {
|
|
758
758
|
id: string;
|
|
759
759
|
} | null | undefined;
|
|
@@ -771,14 +771,10 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
771
771
|
};
|
|
772
772
|
endDate?: string | null | undefined;
|
|
773
773
|
}, {
|
|
774
|
-
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";
|
|
775
774
|
createdAt: string | Date;
|
|
776
775
|
updatedAt: string | Date;
|
|
776
|
+
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";
|
|
777
777
|
id: string;
|
|
778
|
-
pay: {
|
|
779
|
-
rate: number;
|
|
780
|
-
unit: "DAILY" | "HOURLY";
|
|
781
|
-
};
|
|
782
778
|
user: {
|
|
783
779
|
createdAt: string | Date;
|
|
784
780
|
updatedAt: string | Date;
|
|
@@ -790,6 +786,10 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
790
786
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
791
787
|
};
|
|
792
788
|
userId: string;
|
|
789
|
+
pay: {
|
|
790
|
+
rate: number;
|
|
791
|
+
unit: "DAILY" | "HOURLY";
|
|
792
|
+
};
|
|
793
793
|
startDate: string | Date;
|
|
794
794
|
worker: {
|
|
795
795
|
createdAt: string | Date;
|
|
@@ -800,6 +800,7 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
800
800
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
801
801
|
hasTools: boolean;
|
|
802
802
|
hasPpe: boolean;
|
|
803
|
+
email?: string | null | undefined;
|
|
803
804
|
location?: {
|
|
804
805
|
address?: string | null | undefined;
|
|
805
806
|
postcode?: string | null | undefined;
|
|
@@ -809,11 +810,10 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
809
810
|
postTown?: string | null | undefined;
|
|
810
811
|
areaCovered?: string | null | undefined;
|
|
811
812
|
} | null | undefined;
|
|
812
|
-
email?: string | null | undefined;
|
|
813
813
|
phoneNumbers?: {
|
|
814
814
|
phoneNumber: string;
|
|
815
|
-
description?: string | undefined;
|
|
816
815
|
id?: string | undefined;
|
|
816
|
+
description?: string | undefined;
|
|
817
817
|
isPrimary?: boolean | undefined;
|
|
818
818
|
}[] | undefined;
|
|
819
819
|
nino?: string | null | undefined;
|
|
@@ -850,12 +850,12 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
850
850
|
distanceKm?: number | null | undefined;
|
|
851
851
|
};
|
|
852
852
|
job: {
|
|
853
|
-
description: string;
|
|
854
|
-
numberOfPositions: number;
|
|
855
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
856
853
|
createdAt: string | Date;
|
|
857
854
|
updatedAt: string | Date;
|
|
855
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
858
856
|
id: string;
|
|
857
|
+
description: string;
|
|
858
|
+
numberOfPositions: number;
|
|
859
859
|
pay: {
|
|
860
860
|
rateUnit: "DAILY" | "HOURLY";
|
|
861
861
|
rate: number;
|
|
@@ -864,25 +864,25 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
864
864
|
};
|
|
865
865
|
tradeId: string;
|
|
866
866
|
currentCollaboration: {
|
|
867
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
868
867
|
createdAt: string | Date;
|
|
869
868
|
updatedAt: string | Date;
|
|
869
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
870
870
|
id: string;
|
|
871
|
-
|
|
871
|
+
userId: string;
|
|
872
|
+
company?: {
|
|
872
873
|
id: string;
|
|
873
874
|
name: string;
|
|
874
|
-
};
|
|
875
|
-
client
|
|
875
|
+
} | undefined;
|
|
876
|
+
client?: {
|
|
876
877
|
id: string;
|
|
877
878
|
name: string;
|
|
878
|
-
};
|
|
879
|
-
user
|
|
879
|
+
} | undefined;
|
|
880
|
+
user?: {
|
|
880
881
|
id: string;
|
|
881
882
|
firstName: string;
|
|
882
883
|
lastName: string;
|
|
883
884
|
email: string;
|
|
884
|
-
};
|
|
885
|
-
userId: string;
|
|
885
|
+
} | undefined;
|
|
886
886
|
newCollaboration?: {
|
|
887
887
|
id: string;
|
|
888
888
|
} | null | undefined;
|
|
@@ -1014,15 +1014,15 @@ export declare const FilterBookingSchema: z.ZodObject<{
|
|
|
1014
1014
|
companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1015
1015
|
tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1016
1016
|
}, "strip", z.ZodTypeAny, {
|
|
1017
|
-
tradeId?: string | null | undefined;
|
|
1018
1017
|
userId?: string | null | undefined;
|
|
1019
|
-
clientId?: string | null | undefined;
|
|
1020
1018
|
companyId?: string | null | undefined;
|
|
1021
|
-
|
|
1019
|
+
clientId?: string | null | undefined;
|
|
1022
1020
|
tradeId?: string | null | undefined;
|
|
1021
|
+
}, {
|
|
1023
1022
|
userId?: string | null | undefined;
|
|
1024
|
-
clientId?: string | null | undefined;
|
|
1025
1023
|
companyId?: string | null | undefined;
|
|
1024
|
+
clientId?: string | null | undefined;
|
|
1025
|
+
tradeId?: string | null | undefined;
|
|
1026
1026
|
}>>>;
|
|
1027
1027
|
createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1028
1028
|
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1063,12 +1063,14 @@ export declare const FilterBookingSchema: z.ZodObject<{
|
|
|
1063
1063
|
}, "strip", z.ZodTypeAny, {
|
|
1064
1064
|
limit: number;
|
|
1065
1065
|
page: number;
|
|
1066
|
-
status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | null | undefined;
|
|
1067
1066
|
createdAt?: {
|
|
1068
1067
|
from?: string | null | undefined;
|
|
1069
1068
|
to?: string | null | undefined;
|
|
1070
1069
|
} | null | undefined;
|
|
1071
|
-
|
|
1070
|
+
status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | null | undefined;
|
|
1071
|
+
companyId?: string | null | undefined;
|
|
1072
|
+
clientId?: string | null | undefined;
|
|
1073
|
+
sortBy?: "createdAt" | "updatedAt" | "status" | "startDate" | null | undefined;
|
|
1072
1074
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1073
1075
|
startDate?: {
|
|
1074
1076
|
from?: string | null | undefined;
|
|
@@ -1078,25 +1080,25 @@ export declare const FilterBookingSchema: z.ZodObject<{
|
|
|
1078
1080
|
from?: string | null | undefined;
|
|
1079
1081
|
to?: string | null | undefined;
|
|
1080
1082
|
} | null | undefined;
|
|
1081
|
-
clientId?: string | null | undefined;
|
|
1082
|
-
companyId?: string | null | undefined;
|
|
1083
1083
|
job?: {
|
|
1084
|
-
tradeId?: string | null | undefined;
|
|
1085
1084
|
userId?: string | null | undefined;
|
|
1086
|
-
clientId?: string | null | undefined;
|
|
1087
1085
|
companyId?: string | null | undefined;
|
|
1086
|
+
clientId?: string | null | undefined;
|
|
1087
|
+
tradeId?: string | null | undefined;
|
|
1088
1088
|
} | null | undefined;
|
|
1089
1089
|
workerName?: string | null | undefined;
|
|
1090
1090
|
agentName?: string | null | undefined;
|
|
1091
1091
|
}, {
|
|
1092
|
-
status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | null | undefined;
|
|
1093
1092
|
createdAt?: {
|
|
1094
1093
|
from?: string | null | undefined;
|
|
1095
1094
|
to?: string | null | undefined;
|
|
1096
1095
|
} | null | undefined;
|
|
1096
|
+
status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | null | undefined;
|
|
1097
1097
|
limit?: number | undefined;
|
|
1098
1098
|
page?: number | undefined;
|
|
1099
|
-
|
|
1099
|
+
companyId?: string | null | undefined;
|
|
1100
|
+
clientId?: string | null | undefined;
|
|
1101
|
+
sortBy?: "createdAt" | "updatedAt" | "status" | "startDate" | null | undefined;
|
|
1100
1102
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1101
1103
|
startDate?: {
|
|
1102
1104
|
from?: string | null | undefined;
|
|
@@ -1106,13 +1108,11 @@ export declare const FilterBookingSchema: z.ZodObject<{
|
|
|
1106
1108
|
from?: string | null | undefined;
|
|
1107
1109
|
to?: string | null | undefined;
|
|
1108
1110
|
} | null | undefined;
|
|
1109
|
-
clientId?: string | null | undefined;
|
|
1110
|
-
companyId?: string | null | undefined;
|
|
1111
1111
|
job?: {
|
|
1112
|
-
tradeId?: string | null | undefined;
|
|
1113
1112
|
userId?: string | null | undefined;
|
|
1114
|
-
clientId?: string | null | undefined;
|
|
1115
1113
|
companyId?: string | null | undefined;
|
|
1114
|
+
clientId?: string | null | undefined;
|
|
1115
|
+
tradeId?: string | null | undefined;
|
|
1116
1116
|
} | null | undefined;
|
|
1117
1117
|
workerName?: string | null | undefined;
|
|
1118
1118
|
agentName?: string | null | undefined;
|
|
@@ -1136,12 +1136,12 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1136
1136
|
}, "strip", z.ZodTypeAny, {
|
|
1137
1137
|
phoneNumber: string;
|
|
1138
1138
|
isPrimary: boolean;
|
|
1139
|
-
description?: string | undefined;
|
|
1140
1139
|
id?: string | undefined;
|
|
1140
|
+
description?: string | undefined;
|
|
1141
1141
|
}, {
|
|
1142
1142
|
phoneNumber: string;
|
|
1143
|
-
description?: string | undefined;
|
|
1144
1143
|
id?: string | undefined;
|
|
1144
|
+
description?: string | undefined;
|
|
1145
1145
|
isPrimary?: boolean | undefined;
|
|
1146
1146
|
}>, "many">>>;
|
|
1147
1147
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1257,12 +1257,13 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1257
1257
|
phoneNumbers: {
|
|
1258
1258
|
phoneNumber: string;
|
|
1259
1259
|
isPrimary: boolean;
|
|
1260
|
-
description?: string | undefined;
|
|
1261
1260
|
id?: string | undefined;
|
|
1261
|
+
description?: string | undefined;
|
|
1262
1262
|
}[];
|
|
1263
1263
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1264
1264
|
hasTools: boolean;
|
|
1265
1265
|
hasPpe: boolean;
|
|
1266
|
+
email?: string | null | undefined;
|
|
1266
1267
|
location?: {
|
|
1267
1268
|
address?: string | null | undefined;
|
|
1268
1269
|
postcode?: string | null | undefined;
|
|
@@ -1272,7 +1273,6 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1272
1273
|
postTown?: string | null | undefined;
|
|
1273
1274
|
areaCovered?: string | null | undefined;
|
|
1274
1275
|
} | null | undefined;
|
|
1275
|
-
email?: string | null | undefined;
|
|
1276
1276
|
nino?: string | null | undefined;
|
|
1277
1277
|
dateOfBirth?: string | null | undefined;
|
|
1278
1278
|
bio?: string | null | undefined;
|
|
@@ -1314,6 +1314,7 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1314
1314
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1315
1315
|
hasTools: boolean;
|
|
1316
1316
|
hasPpe: boolean;
|
|
1317
|
+
email?: string | null | undefined;
|
|
1317
1318
|
location?: {
|
|
1318
1319
|
address?: string | null | undefined;
|
|
1319
1320
|
postcode?: string | null | undefined;
|
|
@@ -1323,11 +1324,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1323
1324
|
postTown?: string | null | undefined;
|
|
1324
1325
|
areaCovered?: string | null | undefined;
|
|
1325
1326
|
} | null | undefined;
|
|
1326
|
-
email?: string | null | undefined;
|
|
1327
1327
|
phoneNumbers?: {
|
|
1328
1328
|
phoneNumber: string;
|
|
1329
|
-
description?: string | undefined;
|
|
1330
1329
|
id?: string | undefined;
|
|
1330
|
+
description?: string | undefined;
|
|
1331
1331
|
isPrimary?: boolean | undefined;
|
|
1332
1332
|
}[] | undefined;
|
|
1333
1333
|
nino?: string | null | undefined;
|
|
@@ -1464,7 +1464,7 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1464
1464
|
}>, "many">>>;
|
|
1465
1465
|
currentCollaboration: z.ZodNullable<z.ZodObject<{
|
|
1466
1466
|
id: z.ZodString;
|
|
1467
|
-
company: z.ZodObject<{
|
|
1467
|
+
company: z.ZodOptional<z.ZodObject<{
|
|
1468
1468
|
id: z.ZodString;
|
|
1469
1469
|
name: z.ZodString;
|
|
1470
1470
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1473,8 +1473,8 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1473
1473
|
}, {
|
|
1474
1474
|
id: string;
|
|
1475
1475
|
name: string;
|
|
1476
|
-
}
|
|
1477
|
-
client: z.ZodObject<{
|
|
1476
|
+
}>>;
|
|
1477
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
1478
1478
|
id: z.ZodString;
|
|
1479
1479
|
name: z.ZodString;
|
|
1480
1480
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1483,8 +1483,8 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1483
1483
|
}, {
|
|
1484
1484
|
id: string;
|
|
1485
1485
|
name: string;
|
|
1486
|
-
}
|
|
1487
|
-
user: z.ZodObject<{
|
|
1486
|
+
}>>;
|
|
1487
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
1488
1488
|
id: z.ZodString;
|
|
1489
1489
|
firstName: z.ZodString;
|
|
1490
1490
|
lastName: z.ZodString;
|
|
@@ -1499,7 +1499,7 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1499
1499
|
firstName: string;
|
|
1500
1500
|
lastName: string;
|
|
1501
1501
|
email: string;
|
|
1502
|
-
}
|
|
1502
|
+
}>>;
|
|
1503
1503
|
status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
|
|
1504
1504
|
userId: z.ZodString;
|
|
1505
1505
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1512,48 +1512,48 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1512
1512
|
id: string;
|
|
1513
1513
|
}>>>;
|
|
1514
1514
|
}, "strip", z.ZodTypeAny, {
|
|
1515
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1516
1515
|
createdAt: string;
|
|
1517
1516
|
updatedAt: string;
|
|
1517
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1518
1518
|
id: string;
|
|
1519
|
-
|
|
1519
|
+
userId: string;
|
|
1520
|
+
company?: {
|
|
1520
1521
|
id: string;
|
|
1521
1522
|
name: string;
|
|
1522
|
-
};
|
|
1523
|
-
client
|
|
1523
|
+
} | undefined;
|
|
1524
|
+
client?: {
|
|
1524
1525
|
id: string;
|
|
1525
1526
|
name: string;
|
|
1526
|
-
};
|
|
1527
|
-
user
|
|
1527
|
+
} | undefined;
|
|
1528
|
+
user?: {
|
|
1528
1529
|
id: string;
|
|
1529
1530
|
firstName: string;
|
|
1530
1531
|
lastName: string;
|
|
1531
1532
|
email: string;
|
|
1532
|
-
};
|
|
1533
|
-
userId: string;
|
|
1533
|
+
} | undefined;
|
|
1534
1534
|
newCollaboration?: {
|
|
1535
1535
|
id: string;
|
|
1536
1536
|
} | null | undefined;
|
|
1537
1537
|
}, {
|
|
1538
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1539
1538
|
createdAt: string | Date;
|
|
1540
1539
|
updatedAt: string | Date;
|
|
1540
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1541
1541
|
id: string;
|
|
1542
|
-
|
|
1542
|
+
userId: string;
|
|
1543
|
+
company?: {
|
|
1543
1544
|
id: string;
|
|
1544
1545
|
name: string;
|
|
1545
|
-
};
|
|
1546
|
-
client
|
|
1546
|
+
} | undefined;
|
|
1547
|
+
client?: {
|
|
1547
1548
|
id: string;
|
|
1548
1549
|
name: string;
|
|
1549
|
-
};
|
|
1550
|
-
user
|
|
1550
|
+
} | undefined;
|
|
1551
|
+
user?: {
|
|
1551
1552
|
id: string;
|
|
1552
1553
|
firstName: string;
|
|
1553
1554
|
lastName: string;
|
|
1554
1555
|
email: string;
|
|
1555
|
-
};
|
|
1556
|
-
userId: string;
|
|
1556
|
+
} | undefined;
|
|
1557
1557
|
newCollaboration?: {
|
|
1558
1558
|
id: string;
|
|
1559
1559
|
} | null | undefined;
|
|
@@ -1561,12 +1561,12 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1561
1561
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1562
1562
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1563
1563
|
}, "strip", z.ZodTypeAny, {
|
|
1564
|
-
description: string;
|
|
1565
|
-
numberOfPositions: number;
|
|
1566
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
1567
1564
|
createdAt: string;
|
|
1568
1565
|
updatedAt: string;
|
|
1566
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
1569
1567
|
id: string;
|
|
1568
|
+
description: string;
|
|
1569
|
+
numberOfPositions: number;
|
|
1570
1570
|
pay: {
|
|
1571
1571
|
rateUnit: "DAILY" | "HOURLY";
|
|
1572
1572
|
rate: number;
|
|
@@ -1580,25 +1580,25 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1580
1580
|
qualificationTypeId?: string | null | undefined;
|
|
1581
1581
|
}[];
|
|
1582
1582
|
currentCollaboration: {
|
|
1583
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1584
1583
|
createdAt: string;
|
|
1585
1584
|
updatedAt: string;
|
|
1585
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1586
1586
|
id: string;
|
|
1587
|
-
|
|
1587
|
+
userId: string;
|
|
1588
|
+
company?: {
|
|
1588
1589
|
id: string;
|
|
1589
1590
|
name: string;
|
|
1590
|
-
};
|
|
1591
|
-
client
|
|
1591
|
+
} | undefined;
|
|
1592
|
+
client?: {
|
|
1592
1593
|
id: string;
|
|
1593
1594
|
name: string;
|
|
1594
|
-
};
|
|
1595
|
-
user
|
|
1595
|
+
} | undefined;
|
|
1596
|
+
user?: {
|
|
1596
1597
|
id: string;
|
|
1597
1598
|
firstName: string;
|
|
1598
1599
|
lastName: string;
|
|
1599
1600
|
email: string;
|
|
1600
|
-
};
|
|
1601
|
-
userId: string;
|
|
1601
|
+
} | undefined;
|
|
1602
1602
|
newCollaboration?: {
|
|
1603
1603
|
id: string;
|
|
1604
1604
|
} | null | undefined;
|
|
@@ -1614,12 +1614,12 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1614
1614
|
areaCovered?: string | null | undefined;
|
|
1615
1615
|
} | null | undefined;
|
|
1616
1616
|
}, {
|
|
1617
|
-
description: string;
|
|
1618
|
-
numberOfPositions: number;
|
|
1619
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
1620
1617
|
createdAt: string | Date;
|
|
1621
1618
|
updatedAt: string | Date;
|
|
1619
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
1622
1620
|
id: string;
|
|
1621
|
+
description: string;
|
|
1622
|
+
numberOfPositions: number;
|
|
1623
1623
|
pay: {
|
|
1624
1624
|
rateUnit: "DAILY" | "HOURLY";
|
|
1625
1625
|
rate: number;
|
|
@@ -1628,25 +1628,25 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1628
1628
|
};
|
|
1629
1629
|
tradeId: string;
|
|
1630
1630
|
currentCollaboration: {
|
|
1631
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1632
1631
|
createdAt: string | Date;
|
|
1633
1632
|
updatedAt: string | Date;
|
|
1633
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1634
1634
|
id: string;
|
|
1635
|
-
|
|
1635
|
+
userId: string;
|
|
1636
|
+
company?: {
|
|
1636
1637
|
id: string;
|
|
1637
1638
|
name: string;
|
|
1638
|
-
};
|
|
1639
|
-
client
|
|
1639
|
+
} | undefined;
|
|
1640
|
+
client?: {
|
|
1640
1641
|
id: string;
|
|
1641
1642
|
name: string;
|
|
1642
|
-
};
|
|
1643
|
-
user
|
|
1643
|
+
} | undefined;
|
|
1644
|
+
user?: {
|
|
1644
1645
|
id: string;
|
|
1645
1646
|
firstName: string;
|
|
1646
1647
|
lastName: string;
|
|
1647
1648
|
email: string;
|
|
1648
|
-
};
|
|
1649
|
-
userId: string;
|
|
1649
|
+
} | undefined;
|
|
1650
1650
|
newCollaboration?: {
|
|
1651
1651
|
id: string;
|
|
1652
1652
|
} | null | undefined;
|
|
@@ -1671,14 +1671,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1671
1671
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1672
1672
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1673
1673
|
}, "strip", z.ZodTypeAny, {
|
|
1674
|
-
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";
|
|
1675
1674
|
createdAt: string;
|
|
1676
1675
|
updatedAt: string;
|
|
1676
|
+
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";
|
|
1677
1677
|
id: string;
|
|
1678
|
-
pay: {
|
|
1679
|
-
rate: number;
|
|
1680
|
-
unit: "DAILY" | "HOURLY";
|
|
1681
|
-
};
|
|
1682
1678
|
user: {
|
|
1683
1679
|
createdAt: string;
|
|
1684
1680
|
updatedAt: string;
|
|
@@ -1690,6 +1686,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1690
1686
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
1691
1687
|
};
|
|
1692
1688
|
userId: string;
|
|
1689
|
+
pay: {
|
|
1690
|
+
rate: number;
|
|
1691
|
+
unit: "DAILY" | "HOURLY";
|
|
1692
|
+
};
|
|
1693
1693
|
startDate: string;
|
|
1694
1694
|
worker: {
|
|
1695
1695
|
createdAt: string;
|
|
@@ -1700,12 +1700,13 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1700
1700
|
phoneNumbers: {
|
|
1701
1701
|
phoneNumber: string;
|
|
1702
1702
|
isPrimary: boolean;
|
|
1703
|
-
description?: string | undefined;
|
|
1704
1703
|
id?: string | undefined;
|
|
1704
|
+
description?: string | undefined;
|
|
1705
1705
|
}[];
|
|
1706
1706
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1707
1707
|
hasTools: boolean;
|
|
1708
1708
|
hasPpe: boolean;
|
|
1709
|
+
email?: string | null | undefined;
|
|
1709
1710
|
location?: {
|
|
1710
1711
|
address?: string | null | undefined;
|
|
1711
1712
|
postcode?: string | null | undefined;
|
|
@@ -1715,7 +1716,6 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1715
1716
|
postTown?: string | null | undefined;
|
|
1716
1717
|
areaCovered?: string | null | undefined;
|
|
1717
1718
|
} | null | undefined;
|
|
1718
|
-
email?: string | null | undefined;
|
|
1719
1719
|
nino?: string | null | undefined;
|
|
1720
1720
|
dateOfBirth?: string | null | undefined;
|
|
1721
1721
|
bio?: string | null | undefined;
|
|
@@ -1750,12 +1750,12 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1750
1750
|
distanceKm?: number | null | undefined;
|
|
1751
1751
|
};
|
|
1752
1752
|
job: {
|
|
1753
|
-
description: string;
|
|
1754
|
-
numberOfPositions: number;
|
|
1755
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
1756
1753
|
createdAt: string;
|
|
1757
1754
|
updatedAt: string;
|
|
1755
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
1758
1756
|
id: string;
|
|
1757
|
+
description: string;
|
|
1758
|
+
numberOfPositions: number;
|
|
1759
1759
|
pay: {
|
|
1760
1760
|
rateUnit: "DAILY" | "HOURLY";
|
|
1761
1761
|
rate: number;
|
|
@@ -1769,25 +1769,25 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1769
1769
|
qualificationTypeId?: string | null | undefined;
|
|
1770
1770
|
}[];
|
|
1771
1771
|
currentCollaboration: {
|
|
1772
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1773
1772
|
createdAt: string;
|
|
1774
1773
|
updatedAt: string;
|
|
1774
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1775
1775
|
id: string;
|
|
1776
|
-
|
|
1776
|
+
userId: string;
|
|
1777
|
+
company?: {
|
|
1777
1778
|
id: string;
|
|
1778
1779
|
name: string;
|
|
1779
|
-
};
|
|
1780
|
-
client
|
|
1780
|
+
} | undefined;
|
|
1781
|
+
client?: {
|
|
1781
1782
|
id: string;
|
|
1782
1783
|
name: string;
|
|
1783
|
-
};
|
|
1784
|
-
user
|
|
1784
|
+
} | undefined;
|
|
1785
|
+
user?: {
|
|
1785
1786
|
id: string;
|
|
1786
1787
|
firstName: string;
|
|
1787
1788
|
lastName: string;
|
|
1788
1789
|
email: string;
|
|
1789
|
-
};
|
|
1790
|
-
userId: string;
|
|
1790
|
+
} | undefined;
|
|
1791
1791
|
newCollaboration?: {
|
|
1792
1792
|
id: string;
|
|
1793
1793
|
} | null | undefined;
|
|
@@ -1805,14 +1805,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1805
1805
|
};
|
|
1806
1806
|
endDate?: string | null | undefined;
|
|
1807
1807
|
}, {
|
|
1808
|
-
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";
|
|
1809
1808
|
createdAt: string | Date;
|
|
1810
1809
|
updatedAt: string | Date;
|
|
1810
|
+
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";
|
|
1811
1811
|
id: string;
|
|
1812
|
-
pay: {
|
|
1813
|
-
rate: number;
|
|
1814
|
-
unit: "DAILY" | "HOURLY";
|
|
1815
|
-
};
|
|
1816
1812
|
user: {
|
|
1817
1813
|
createdAt: string | Date;
|
|
1818
1814
|
updatedAt: string | Date;
|
|
@@ -1824,6 +1820,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1824
1820
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
1825
1821
|
};
|
|
1826
1822
|
userId: string;
|
|
1823
|
+
pay: {
|
|
1824
|
+
rate: number;
|
|
1825
|
+
unit: "DAILY" | "HOURLY";
|
|
1826
|
+
};
|
|
1827
1827
|
startDate: string | Date;
|
|
1828
1828
|
worker: {
|
|
1829
1829
|
createdAt: string | Date;
|
|
@@ -1834,6 +1834,7 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1834
1834
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1835
1835
|
hasTools: boolean;
|
|
1836
1836
|
hasPpe: boolean;
|
|
1837
|
+
email?: string | null | undefined;
|
|
1837
1838
|
location?: {
|
|
1838
1839
|
address?: string | null | undefined;
|
|
1839
1840
|
postcode?: string | null | undefined;
|
|
@@ -1843,11 +1844,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1843
1844
|
postTown?: string | null | undefined;
|
|
1844
1845
|
areaCovered?: string | null | undefined;
|
|
1845
1846
|
} | null | undefined;
|
|
1846
|
-
email?: string | null | undefined;
|
|
1847
1847
|
phoneNumbers?: {
|
|
1848
1848
|
phoneNumber: string;
|
|
1849
|
-
description?: string | undefined;
|
|
1850
1849
|
id?: string | undefined;
|
|
1850
|
+
description?: string | undefined;
|
|
1851
1851
|
isPrimary?: boolean | undefined;
|
|
1852
1852
|
}[] | undefined;
|
|
1853
1853
|
nino?: string | null | undefined;
|
|
@@ -1884,12 +1884,12 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1884
1884
|
distanceKm?: number | null | undefined;
|
|
1885
1885
|
};
|
|
1886
1886
|
job: {
|
|
1887
|
-
description: string;
|
|
1888
|
-
numberOfPositions: number;
|
|
1889
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
1890
1887
|
createdAt: string | Date;
|
|
1891
1888
|
updatedAt: string | Date;
|
|
1889
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
1892
1890
|
id: string;
|
|
1891
|
+
description: string;
|
|
1892
|
+
numberOfPositions: number;
|
|
1893
1893
|
pay: {
|
|
1894
1894
|
rateUnit: "DAILY" | "HOURLY";
|
|
1895
1895
|
rate: number;
|
|
@@ -1898,25 +1898,25 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1898
1898
|
};
|
|
1899
1899
|
tradeId: string;
|
|
1900
1900
|
currentCollaboration: {
|
|
1901
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1902
1901
|
createdAt: string | Date;
|
|
1903
1902
|
updatedAt: string | Date;
|
|
1903
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1904
1904
|
id: string;
|
|
1905
|
-
|
|
1905
|
+
userId: string;
|
|
1906
|
+
company?: {
|
|
1906
1907
|
id: string;
|
|
1907
1908
|
name: string;
|
|
1908
|
-
};
|
|
1909
|
-
client
|
|
1909
|
+
} | undefined;
|
|
1910
|
+
client?: {
|
|
1910
1911
|
id: string;
|
|
1911
1912
|
name: string;
|
|
1912
|
-
};
|
|
1913
|
-
user
|
|
1913
|
+
} | undefined;
|
|
1914
|
+
user?: {
|
|
1914
1915
|
id: string;
|
|
1915
1916
|
firstName: string;
|
|
1916
1917
|
lastName: string;
|
|
1917
1918
|
email: string;
|
|
1918
|
-
};
|
|
1919
|
-
userId: string;
|
|
1919
|
+
} | undefined;
|
|
1920
1920
|
newCollaboration?: {
|
|
1921
1921
|
id: string;
|
|
1922
1922
|
} | null | undefined;
|
|
@@ -1947,14 +1947,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1947
1947
|
}, "strip", z.ZodTypeAny, {
|
|
1948
1948
|
limit: number;
|
|
1949
1949
|
items: {
|
|
1950
|
-
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";
|
|
1951
1950
|
createdAt: string;
|
|
1952
1951
|
updatedAt: string;
|
|
1952
|
+
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";
|
|
1953
1953
|
id: string;
|
|
1954
|
-
pay: {
|
|
1955
|
-
rate: number;
|
|
1956
|
-
unit: "DAILY" | "HOURLY";
|
|
1957
|
-
};
|
|
1958
1954
|
user: {
|
|
1959
1955
|
createdAt: string;
|
|
1960
1956
|
updatedAt: string;
|
|
@@ -1966,6 +1962,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1966
1962
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
1967
1963
|
};
|
|
1968
1964
|
userId: string;
|
|
1965
|
+
pay: {
|
|
1966
|
+
rate: number;
|
|
1967
|
+
unit: "DAILY" | "HOURLY";
|
|
1968
|
+
};
|
|
1969
1969
|
startDate: string;
|
|
1970
1970
|
worker: {
|
|
1971
1971
|
createdAt: string;
|
|
@@ -1976,12 +1976,13 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1976
1976
|
phoneNumbers: {
|
|
1977
1977
|
phoneNumber: string;
|
|
1978
1978
|
isPrimary: boolean;
|
|
1979
|
-
description?: string | undefined;
|
|
1980
1979
|
id?: string | undefined;
|
|
1980
|
+
description?: string | undefined;
|
|
1981
1981
|
}[];
|
|
1982
1982
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1983
1983
|
hasTools: boolean;
|
|
1984
1984
|
hasPpe: boolean;
|
|
1985
|
+
email?: string | null | undefined;
|
|
1985
1986
|
location?: {
|
|
1986
1987
|
address?: string | null | undefined;
|
|
1987
1988
|
postcode?: string | null | undefined;
|
|
@@ -1991,7 +1992,6 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1991
1992
|
postTown?: string | null | undefined;
|
|
1992
1993
|
areaCovered?: string | null | undefined;
|
|
1993
1994
|
} | null | undefined;
|
|
1994
|
-
email?: string | null | undefined;
|
|
1995
1995
|
nino?: string | null | undefined;
|
|
1996
1996
|
dateOfBirth?: string | null | undefined;
|
|
1997
1997
|
bio?: string | null | undefined;
|
|
@@ -2026,12 +2026,12 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
2026
2026
|
distanceKm?: number | null | undefined;
|
|
2027
2027
|
};
|
|
2028
2028
|
job: {
|
|
2029
|
-
description: string;
|
|
2030
|
-
numberOfPositions: number;
|
|
2031
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
2032
2029
|
createdAt: string;
|
|
2033
2030
|
updatedAt: string;
|
|
2031
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
2034
2032
|
id: string;
|
|
2033
|
+
description: string;
|
|
2034
|
+
numberOfPositions: number;
|
|
2035
2035
|
pay: {
|
|
2036
2036
|
rateUnit: "DAILY" | "HOURLY";
|
|
2037
2037
|
rate: number;
|
|
@@ -2045,25 +2045,25 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
2045
2045
|
qualificationTypeId?: string | null | undefined;
|
|
2046
2046
|
}[];
|
|
2047
2047
|
currentCollaboration: {
|
|
2048
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2049
2048
|
createdAt: string;
|
|
2050
2049
|
updatedAt: string;
|
|
2050
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2051
2051
|
id: string;
|
|
2052
|
-
|
|
2052
|
+
userId: string;
|
|
2053
|
+
company?: {
|
|
2053
2054
|
id: string;
|
|
2054
2055
|
name: string;
|
|
2055
|
-
};
|
|
2056
|
-
client
|
|
2056
|
+
} | undefined;
|
|
2057
|
+
client?: {
|
|
2057
2058
|
id: string;
|
|
2058
2059
|
name: string;
|
|
2059
|
-
};
|
|
2060
|
-
user
|
|
2060
|
+
} | undefined;
|
|
2061
|
+
user?: {
|
|
2061
2062
|
id: string;
|
|
2062
2063
|
firstName: string;
|
|
2063
2064
|
lastName: string;
|
|
2064
2065
|
email: string;
|
|
2065
|
-
};
|
|
2066
|
-
userId: string;
|
|
2066
|
+
} | undefined;
|
|
2067
2067
|
newCollaboration?: {
|
|
2068
2068
|
id: string;
|
|
2069
2069
|
} | null | undefined;
|
|
@@ -2088,14 +2088,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
2088
2088
|
}, {
|
|
2089
2089
|
limit: number;
|
|
2090
2090
|
items: {
|
|
2091
|
-
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";
|
|
2092
2091
|
createdAt: string | Date;
|
|
2093
2092
|
updatedAt: string | Date;
|
|
2093
|
+
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";
|
|
2094
2094
|
id: string;
|
|
2095
|
-
pay: {
|
|
2096
|
-
rate: number;
|
|
2097
|
-
unit: "DAILY" | "HOURLY";
|
|
2098
|
-
};
|
|
2099
2095
|
user: {
|
|
2100
2096
|
createdAt: string | Date;
|
|
2101
2097
|
updatedAt: string | Date;
|
|
@@ -2107,6 +2103,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
2107
2103
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
2108
2104
|
};
|
|
2109
2105
|
userId: string;
|
|
2106
|
+
pay: {
|
|
2107
|
+
rate: number;
|
|
2108
|
+
unit: "DAILY" | "HOURLY";
|
|
2109
|
+
};
|
|
2110
2110
|
startDate: string | Date;
|
|
2111
2111
|
worker: {
|
|
2112
2112
|
createdAt: string | Date;
|
|
@@ -2117,6 +2117,7 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
2117
2117
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2118
2118
|
hasTools: boolean;
|
|
2119
2119
|
hasPpe: boolean;
|
|
2120
|
+
email?: string | null | undefined;
|
|
2120
2121
|
location?: {
|
|
2121
2122
|
address?: string | null | undefined;
|
|
2122
2123
|
postcode?: string | null | undefined;
|
|
@@ -2126,11 +2127,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
2126
2127
|
postTown?: string | null | undefined;
|
|
2127
2128
|
areaCovered?: string | null | undefined;
|
|
2128
2129
|
} | null | undefined;
|
|
2129
|
-
email?: string | null | undefined;
|
|
2130
2130
|
phoneNumbers?: {
|
|
2131
2131
|
phoneNumber: string;
|
|
2132
|
-
description?: string | undefined;
|
|
2133
2132
|
id?: string | undefined;
|
|
2133
|
+
description?: string | undefined;
|
|
2134
2134
|
isPrimary?: boolean | undefined;
|
|
2135
2135
|
}[] | undefined;
|
|
2136
2136
|
nino?: string | null | undefined;
|
|
@@ -2167,12 +2167,12 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
2167
2167
|
distanceKm?: number | null | undefined;
|
|
2168
2168
|
};
|
|
2169
2169
|
job: {
|
|
2170
|
-
description: string;
|
|
2171
|
-
numberOfPositions: number;
|
|
2172
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
2173
2170
|
createdAt: string | Date;
|
|
2174
2171
|
updatedAt: string | Date;
|
|
2172
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
2175
2173
|
id: string;
|
|
2174
|
+
description: string;
|
|
2175
|
+
numberOfPositions: number;
|
|
2176
2176
|
pay: {
|
|
2177
2177
|
rateUnit: "DAILY" | "HOURLY";
|
|
2178
2178
|
rate: number;
|
|
@@ -2181,25 +2181,25 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
2181
2181
|
};
|
|
2182
2182
|
tradeId: string;
|
|
2183
2183
|
currentCollaboration: {
|
|
2184
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2185
2184
|
createdAt: string | Date;
|
|
2186
2185
|
updatedAt: string | Date;
|
|
2186
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2187
2187
|
id: string;
|
|
2188
|
-
|
|
2188
|
+
userId: string;
|
|
2189
|
+
company?: {
|
|
2189
2190
|
id: string;
|
|
2190
2191
|
name: string;
|
|
2191
|
-
};
|
|
2192
|
-
client
|
|
2192
|
+
} | undefined;
|
|
2193
|
+
client?: {
|
|
2193
2194
|
id: string;
|
|
2194
2195
|
name: string;
|
|
2195
|
-
};
|
|
2196
|
-
user
|
|
2196
|
+
} | undefined;
|
|
2197
|
+
user?: {
|
|
2197
2198
|
id: string;
|
|
2198
2199
|
firstName: string;
|
|
2199
2200
|
lastName: string;
|
|
2200
2201
|
email: string;
|
|
2201
|
-
};
|
|
2202
|
-
userId: string;
|
|
2202
|
+
} | undefined;
|
|
2203
2203
|
newCollaboration?: {
|
|
2204
2204
|
id: string;
|
|
2205
2205
|
} | null | undefined;
|
|
@@ -2245,12 +2245,12 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2245
2245
|
}, "strip", z.ZodTypeAny, {
|
|
2246
2246
|
phoneNumber: string;
|
|
2247
2247
|
isPrimary: boolean;
|
|
2248
|
-
description?: string | undefined;
|
|
2249
2248
|
id?: string | undefined;
|
|
2249
|
+
description?: string | undefined;
|
|
2250
2250
|
}, {
|
|
2251
2251
|
phoneNumber: string;
|
|
2252
|
-
description?: string | undefined;
|
|
2253
2252
|
id?: string | undefined;
|
|
2253
|
+
description?: string | undefined;
|
|
2254
2254
|
isPrimary?: boolean | undefined;
|
|
2255
2255
|
}>, "many">>>;
|
|
2256
2256
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2366,12 +2366,13 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2366
2366
|
phoneNumbers: {
|
|
2367
2367
|
phoneNumber: string;
|
|
2368
2368
|
isPrimary: boolean;
|
|
2369
|
-
description?: string | undefined;
|
|
2370
2369
|
id?: string | undefined;
|
|
2370
|
+
description?: string | undefined;
|
|
2371
2371
|
}[];
|
|
2372
2372
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2373
2373
|
hasTools: boolean;
|
|
2374
2374
|
hasPpe: boolean;
|
|
2375
|
+
email?: string | null | undefined;
|
|
2375
2376
|
location?: {
|
|
2376
2377
|
address?: string | null | undefined;
|
|
2377
2378
|
postcode?: string | null | undefined;
|
|
@@ -2381,7 +2382,6 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2381
2382
|
postTown?: string | null | undefined;
|
|
2382
2383
|
areaCovered?: string | null | undefined;
|
|
2383
2384
|
} | null | undefined;
|
|
2384
|
-
email?: string | null | undefined;
|
|
2385
2385
|
nino?: string | null | undefined;
|
|
2386
2386
|
dateOfBirth?: string | null | undefined;
|
|
2387
2387
|
bio?: string | null | undefined;
|
|
@@ -2423,6 +2423,7 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2423
2423
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2424
2424
|
hasTools: boolean;
|
|
2425
2425
|
hasPpe: boolean;
|
|
2426
|
+
email?: string | null | undefined;
|
|
2426
2427
|
location?: {
|
|
2427
2428
|
address?: string | null | undefined;
|
|
2428
2429
|
postcode?: string | null | undefined;
|
|
@@ -2432,11 +2433,10 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2432
2433
|
postTown?: string | null | undefined;
|
|
2433
2434
|
areaCovered?: string | null | undefined;
|
|
2434
2435
|
} | null | undefined;
|
|
2435
|
-
email?: string | null | undefined;
|
|
2436
2436
|
phoneNumbers?: {
|
|
2437
2437
|
phoneNumber: string;
|
|
2438
|
-
description?: string | undefined;
|
|
2439
2438
|
id?: string | undefined;
|
|
2439
|
+
description?: string | undefined;
|
|
2440
2440
|
isPrimary?: boolean | undefined;
|
|
2441
2441
|
}[] | undefined;
|
|
2442
2442
|
nino?: string | null | undefined;
|
|
@@ -2573,7 +2573,7 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2573
2573
|
}>, "many">>>;
|
|
2574
2574
|
currentCollaboration: z.ZodNullable<z.ZodObject<{
|
|
2575
2575
|
id: z.ZodString;
|
|
2576
|
-
company: z.ZodObject<{
|
|
2576
|
+
company: z.ZodOptional<z.ZodObject<{
|
|
2577
2577
|
id: z.ZodString;
|
|
2578
2578
|
name: z.ZodString;
|
|
2579
2579
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2582,8 +2582,8 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2582
2582
|
}, {
|
|
2583
2583
|
id: string;
|
|
2584
2584
|
name: string;
|
|
2585
|
-
}
|
|
2586
|
-
client: z.ZodObject<{
|
|
2585
|
+
}>>;
|
|
2586
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
2587
2587
|
id: z.ZodString;
|
|
2588
2588
|
name: z.ZodString;
|
|
2589
2589
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2592,8 +2592,8 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2592
2592
|
}, {
|
|
2593
2593
|
id: string;
|
|
2594
2594
|
name: string;
|
|
2595
|
-
}
|
|
2596
|
-
user: z.ZodObject<{
|
|
2595
|
+
}>>;
|
|
2596
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
2597
2597
|
id: z.ZodString;
|
|
2598
2598
|
firstName: z.ZodString;
|
|
2599
2599
|
lastName: z.ZodString;
|
|
@@ -2608,7 +2608,7 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2608
2608
|
firstName: string;
|
|
2609
2609
|
lastName: string;
|
|
2610
2610
|
email: string;
|
|
2611
|
-
}
|
|
2611
|
+
}>>;
|
|
2612
2612
|
status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
|
|
2613
2613
|
userId: z.ZodString;
|
|
2614
2614
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -2621,48 +2621,48 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2621
2621
|
id: string;
|
|
2622
2622
|
}>>>;
|
|
2623
2623
|
}, "strip", z.ZodTypeAny, {
|
|
2624
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2625
2624
|
createdAt: string;
|
|
2626
2625
|
updatedAt: string;
|
|
2626
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2627
2627
|
id: string;
|
|
2628
|
-
|
|
2628
|
+
userId: string;
|
|
2629
|
+
company?: {
|
|
2629
2630
|
id: string;
|
|
2630
2631
|
name: string;
|
|
2631
|
-
};
|
|
2632
|
-
client
|
|
2632
|
+
} | undefined;
|
|
2633
|
+
client?: {
|
|
2633
2634
|
id: string;
|
|
2634
2635
|
name: string;
|
|
2635
|
-
};
|
|
2636
|
-
user
|
|
2636
|
+
} | undefined;
|
|
2637
|
+
user?: {
|
|
2637
2638
|
id: string;
|
|
2638
2639
|
firstName: string;
|
|
2639
2640
|
lastName: string;
|
|
2640
2641
|
email: string;
|
|
2641
|
-
};
|
|
2642
|
-
userId: string;
|
|
2642
|
+
} | undefined;
|
|
2643
2643
|
newCollaboration?: {
|
|
2644
2644
|
id: string;
|
|
2645
2645
|
} | null | undefined;
|
|
2646
2646
|
}, {
|
|
2647
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2648
2647
|
createdAt: string | Date;
|
|
2649
2648
|
updatedAt: string | Date;
|
|
2649
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2650
2650
|
id: string;
|
|
2651
|
-
|
|
2651
|
+
userId: string;
|
|
2652
|
+
company?: {
|
|
2652
2653
|
id: string;
|
|
2653
2654
|
name: string;
|
|
2654
|
-
};
|
|
2655
|
-
client
|
|
2655
|
+
} | undefined;
|
|
2656
|
+
client?: {
|
|
2656
2657
|
id: string;
|
|
2657
2658
|
name: string;
|
|
2658
|
-
};
|
|
2659
|
-
user
|
|
2659
|
+
} | undefined;
|
|
2660
|
+
user?: {
|
|
2660
2661
|
id: string;
|
|
2661
2662
|
firstName: string;
|
|
2662
2663
|
lastName: string;
|
|
2663
2664
|
email: string;
|
|
2664
|
-
};
|
|
2665
|
-
userId: string;
|
|
2665
|
+
} | undefined;
|
|
2666
2666
|
newCollaboration?: {
|
|
2667
2667
|
id: string;
|
|
2668
2668
|
} | null | undefined;
|
|
@@ -2670,12 +2670,12 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2670
2670
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2671
2671
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2672
2672
|
}, "strip", z.ZodTypeAny, {
|
|
2673
|
-
description: string;
|
|
2674
|
-
numberOfPositions: number;
|
|
2675
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
2676
2673
|
createdAt: string;
|
|
2677
2674
|
updatedAt: string;
|
|
2675
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
2678
2676
|
id: string;
|
|
2677
|
+
description: string;
|
|
2678
|
+
numberOfPositions: number;
|
|
2679
2679
|
pay: {
|
|
2680
2680
|
rateUnit: "DAILY" | "HOURLY";
|
|
2681
2681
|
rate: number;
|
|
@@ -2689,25 +2689,25 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2689
2689
|
qualificationTypeId?: string | null | undefined;
|
|
2690
2690
|
}[];
|
|
2691
2691
|
currentCollaboration: {
|
|
2692
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2693
2692
|
createdAt: string;
|
|
2694
2693
|
updatedAt: string;
|
|
2694
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2695
2695
|
id: string;
|
|
2696
|
-
|
|
2696
|
+
userId: string;
|
|
2697
|
+
company?: {
|
|
2697
2698
|
id: string;
|
|
2698
2699
|
name: string;
|
|
2699
|
-
};
|
|
2700
|
-
client
|
|
2700
|
+
} | undefined;
|
|
2701
|
+
client?: {
|
|
2701
2702
|
id: string;
|
|
2702
2703
|
name: string;
|
|
2703
|
-
};
|
|
2704
|
-
user
|
|
2704
|
+
} | undefined;
|
|
2705
|
+
user?: {
|
|
2705
2706
|
id: string;
|
|
2706
2707
|
firstName: string;
|
|
2707
2708
|
lastName: string;
|
|
2708
2709
|
email: string;
|
|
2709
|
-
};
|
|
2710
|
-
userId: string;
|
|
2710
|
+
} | undefined;
|
|
2711
2711
|
newCollaboration?: {
|
|
2712
2712
|
id: string;
|
|
2713
2713
|
} | null | undefined;
|
|
@@ -2723,12 +2723,12 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2723
2723
|
areaCovered?: string | null | undefined;
|
|
2724
2724
|
} | null | undefined;
|
|
2725
2725
|
}, {
|
|
2726
|
-
description: string;
|
|
2727
|
-
numberOfPositions: number;
|
|
2728
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
2729
2726
|
createdAt: string | Date;
|
|
2730
2727
|
updatedAt: string | Date;
|
|
2728
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
2731
2729
|
id: string;
|
|
2730
|
+
description: string;
|
|
2731
|
+
numberOfPositions: number;
|
|
2732
2732
|
pay: {
|
|
2733
2733
|
rateUnit: "DAILY" | "HOURLY";
|
|
2734
2734
|
rate: number;
|
|
@@ -2737,25 +2737,25 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2737
2737
|
};
|
|
2738
2738
|
tradeId: string;
|
|
2739
2739
|
currentCollaboration: {
|
|
2740
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2741
2740
|
createdAt: string | Date;
|
|
2742
2741
|
updatedAt: string | Date;
|
|
2742
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2743
2743
|
id: string;
|
|
2744
|
-
|
|
2744
|
+
userId: string;
|
|
2745
|
+
company?: {
|
|
2745
2746
|
id: string;
|
|
2746
2747
|
name: string;
|
|
2747
|
-
};
|
|
2748
|
-
client
|
|
2748
|
+
} | undefined;
|
|
2749
|
+
client?: {
|
|
2749
2750
|
id: string;
|
|
2750
2751
|
name: string;
|
|
2751
|
-
};
|
|
2752
|
-
user
|
|
2752
|
+
} | undefined;
|
|
2753
|
+
user?: {
|
|
2753
2754
|
id: string;
|
|
2754
2755
|
firstName: string;
|
|
2755
2756
|
lastName: string;
|
|
2756
2757
|
email: string;
|
|
2757
|
-
};
|
|
2758
|
-
userId: string;
|
|
2758
|
+
} | undefined;
|
|
2759
2759
|
newCollaboration?: {
|
|
2760
2760
|
id: string;
|
|
2761
2761
|
} | null | undefined;
|
|
@@ -2780,14 +2780,10 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2780
2780
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2781
2781
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2782
2782
|
}, "strip", z.ZodTypeAny, {
|
|
2783
|
-
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";
|
|
2784
2783
|
createdAt: string;
|
|
2785
2784
|
updatedAt: string;
|
|
2785
|
+
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";
|
|
2786
2786
|
id: string;
|
|
2787
|
-
pay: {
|
|
2788
|
-
rate: number;
|
|
2789
|
-
unit: "DAILY" | "HOURLY";
|
|
2790
|
-
};
|
|
2791
2787
|
user: {
|
|
2792
2788
|
createdAt: string;
|
|
2793
2789
|
updatedAt: string;
|
|
@@ -2799,6 +2795,10 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2799
2795
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
2800
2796
|
};
|
|
2801
2797
|
userId: string;
|
|
2798
|
+
pay: {
|
|
2799
|
+
rate: number;
|
|
2800
|
+
unit: "DAILY" | "HOURLY";
|
|
2801
|
+
};
|
|
2802
2802
|
startDate: string;
|
|
2803
2803
|
worker: {
|
|
2804
2804
|
createdAt: string;
|
|
@@ -2809,12 +2809,13 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2809
2809
|
phoneNumbers: {
|
|
2810
2810
|
phoneNumber: string;
|
|
2811
2811
|
isPrimary: boolean;
|
|
2812
|
-
description?: string | undefined;
|
|
2813
2812
|
id?: string | undefined;
|
|
2813
|
+
description?: string | undefined;
|
|
2814
2814
|
}[];
|
|
2815
2815
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2816
2816
|
hasTools: boolean;
|
|
2817
2817
|
hasPpe: boolean;
|
|
2818
|
+
email?: string | null | undefined;
|
|
2818
2819
|
location?: {
|
|
2819
2820
|
address?: string | null | undefined;
|
|
2820
2821
|
postcode?: string | null | undefined;
|
|
@@ -2824,7 +2825,6 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2824
2825
|
postTown?: string | null | undefined;
|
|
2825
2826
|
areaCovered?: string | null | undefined;
|
|
2826
2827
|
} | null | undefined;
|
|
2827
|
-
email?: string | null | undefined;
|
|
2828
2828
|
nino?: string | null | undefined;
|
|
2829
2829
|
dateOfBirth?: string | null | undefined;
|
|
2830
2830
|
bio?: string | null | undefined;
|
|
@@ -2859,12 +2859,12 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2859
2859
|
distanceKm?: number | null | undefined;
|
|
2860
2860
|
};
|
|
2861
2861
|
job: {
|
|
2862
|
-
description: string;
|
|
2863
|
-
numberOfPositions: number;
|
|
2864
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
2865
2862
|
createdAt: string;
|
|
2866
2863
|
updatedAt: string;
|
|
2864
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
2867
2865
|
id: string;
|
|
2866
|
+
description: string;
|
|
2867
|
+
numberOfPositions: number;
|
|
2868
2868
|
pay: {
|
|
2869
2869
|
rateUnit: "DAILY" | "HOURLY";
|
|
2870
2870
|
rate: number;
|
|
@@ -2878,25 +2878,25 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2878
2878
|
qualificationTypeId?: string | null | undefined;
|
|
2879
2879
|
}[];
|
|
2880
2880
|
currentCollaboration: {
|
|
2881
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2882
2881
|
createdAt: string;
|
|
2883
2882
|
updatedAt: string;
|
|
2883
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2884
2884
|
id: string;
|
|
2885
|
-
|
|
2885
|
+
userId: string;
|
|
2886
|
+
company?: {
|
|
2886
2887
|
id: string;
|
|
2887
2888
|
name: string;
|
|
2888
|
-
};
|
|
2889
|
-
client
|
|
2889
|
+
} | undefined;
|
|
2890
|
+
client?: {
|
|
2890
2891
|
id: string;
|
|
2891
2892
|
name: string;
|
|
2892
|
-
};
|
|
2893
|
-
user
|
|
2893
|
+
} | undefined;
|
|
2894
|
+
user?: {
|
|
2894
2895
|
id: string;
|
|
2895
2896
|
firstName: string;
|
|
2896
2897
|
lastName: string;
|
|
2897
2898
|
email: string;
|
|
2898
|
-
};
|
|
2899
|
-
userId: string;
|
|
2899
|
+
} | undefined;
|
|
2900
2900
|
newCollaboration?: {
|
|
2901
2901
|
id: string;
|
|
2902
2902
|
} | null | undefined;
|
|
@@ -2914,14 +2914,10 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2914
2914
|
};
|
|
2915
2915
|
endDate?: string | null | undefined;
|
|
2916
2916
|
}, {
|
|
2917
|
-
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";
|
|
2918
2917
|
createdAt: string | Date;
|
|
2919
2918
|
updatedAt: string | Date;
|
|
2919
|
+
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";
|
|
2920
2920
|
id: string;
|
|
2921
|
-
pay: {
|
|
2922
|
-
rate: number;
|
|
2923
|
-
unit: "DAILY" | "HOURLY";
|
|
2924
|
-
};
|
|
2925
2921
|
user: {
|
|
2926
2922
|
createdAt: string | Date;
|
|
2927
2923
|
updatedAt: string | Date;
|
|
@@ -2933,6 +2929,10 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2933
2929
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
2934
2930
|
};
|
|
2935
2931
|
userId: string;
|
|
2932
|
+
pay: {
|
|
2933
|
+
rate: number;
|
|
2934
|
+
unit: "DAILY" | "HOURLY";
|
|
2935
|
+
};
|
|
2936
2936
|
startDate: string | Date;
|
|
2937
2937
|
worker: {
|
|
2938
2938
|
createdAt: string | Date;
|
|
@@ -2943,6 +2943,7 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2943
2943
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2944
2944
|
hasTools: boolean;
|
|
2945
2945
|
hasPpe: boolean;
|
|
2946
|
+
email?: string | null | undefined;
|
|
2946
2947
|
location?: {
|
|
2947
2948
|
address?: string | null | undefined;
|
|
2948
2949
|
postcode?: string | null | undefined;
|
|
@@ -2952,11 +2953,10 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2952
2953
|
postTown?: string | null | undefined;
|
|
2953
2954
|
areaCovered?: string | null | undefined;
|
|
2954
2955
|
} | null | undefined;
|
|
2955
|
-
email?: string | null | undefined;
|
|
2956
2956
|
phoneNumbers?: {
|
|
2957
2957
|
phoneNumber: string;
|
|
2958
|
-
description?: string | undefined;
|
|
2959
2958
|
id?: string | undefined;
|
|
2959
|
+
description?: string | undefined;
|
|
2960
2960
|
isPrimary?: boolean | undefined;
|
|
2961
2961
|
}[] | undefined;
|
|
2962
2962
|
nino?: string | null | undefined;
|
|
@@ -2993,12 +2993,12 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2993
2993
|
distanceKm?: number | null | undefined;
|
|
2994
2994
|
};
|
|
2995
2995
|
job: {
|
|
2996
|
-
description: string;
|
|
2997
|
-
numberOfPositions: number;
|
|
2998
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
2999
2996
|
createdAt: string | Date;
|
|
3000
2997
|
updatedAt: string | Date;
|
|
2998
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
3001
2999
|
id: string;
|
|
3000
|
+
description: string;
|
|
3001
|
+
numberOfPositions: number;
|
|
3002
3002
|
pay: {
|
|
3003
3003
|
rateUnit: "DAILY" | "HOURLY";
|
|
3004
3004
|
rate: number;
|
|
@@ -3007,25 +3007,25 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
3007
3007
|
};
|
|
3008
3008
|
tradeId: string;
|
|
3009
3009
|
currentCollaboration: {
|
|
3010
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3011
3010
|
createdAt: string | Date;
|
|
3012
3011
|
updatedAt: string | Date;
|
|
3012
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3013
3013
|
id: string;
|
|
3014
|
-
|
|
3014
|
+
userId: string;
|
|
3015
|
+
company?: {
|
|
3015
3016
|
id: string;
|
|
3016
3017
|
name: string;
|
|
3017
|
-
};
|
|
3018
|
-
client
|
|
3018
|
+
} | undefined;
|
|
3019
|
+
client?: {
|
|
3019
3020
|
id: string;
|
|
3020
3021
|
name: string;
|
|
3021
|
-
};
|
|
3022
|
-
user
|
|
3022
|
+
} | undefined;
|
|
3023
|
+
user?: {
|
|
3023
3024
|
id: string;
|
|
3024
3025
|
firstName: string;
|
|
3025
3026
|
lastName: string;
|
|
3026
3027
|
email: string;
|
|
3027
|
-
};
|
|
3028
|
-
userId: string;
|
|
3028
|
+
} | undefined;
|
|
3029
3029
|
newCollaboration?: {
|
|
3030
3030
|
id: string;
|
|
3031
3031
|
} | null | undefined;
|
|
@@ -3275,12 +3275,12 @@ export declare const bookingsContractRouter: {
|
|
|
3275
3275
|
}, "strip", z.ZodTypeAny, {
|
|
3276
3276
|
phoneNumber: string;
|
|
3277
3277
|
isPrimary: boolean;
|
|
3278
|
-
description?: string | undefined;
|
|
3279
3278
|
id?: string | undefined;
|
|
3279
|
+
description?: string | undefined;
|
|
3280
3280
|
}, {
|
|
3281
3281
|
phoneNumber: string;
|
|
3282
|
-
description?: string | undefined;
|
|
3283
3282
|
id?: string | undefined;
|
|
3283
|
+
description?: string | undefined;
|
|
3284
3284
|
isPrimary?: boolean | undefined;
|
|
3285
3285
|
}>, "many">>>;
|
|
3286
3286
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3396,12 +3396,13 @@ export declare const bookingsContractRouter: {
|
|
|
3396
3396
|
phoneNumbers: {
|
|
3397
3397
|
phoneNumber: string;
|
|
3398
3398
|
isPrimary: boolean;
|
|
3399
|
-
description?: string | undefined;
|
|
3400
3399
|
id?: string | undefined;
|
|
3400
|
+
description?: string | undefined;
|
|
3401
3401
|
}[];
|
|
3402
3402
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
3403
3403
|
hasTools: boolean;
|
|
3404
3404
|
hasPpe: boolean;
|
|
3405
|
+
email?: string | null | undefined;
|
|
3405
3406
|
location?: {
|
|
3406
3407
|
address?: string | null | undefined;
|
|
3407
3408
|
postcode?: string | null | undefined;
|
|
@@ -3411,7 +3412,6 @@ export declare const bookingsContractRouter: {
|
|
|
3411
3412
|
postTown?: string | null | undefined;
|
|
3412
3413
|
areaCovered?: string | null | undefined;
|
|
3413
3414
|
} | null | undefined;
|
|
3414
|
-
email?: string | null | undefined;
|
|
3415
3415
|
nino?: string | null | undefined;
|
|
3416
3416
|
dateOfBirth?: string | null | undefined;
|
|
3417
3417
|
bio?: string | null | undefined;
|
|
@@ -3453,6 +3453,7 @@ export declare const bookingsContractRouter: {
|
|
|
3453
3453
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
3454
3454
|
hasTools: boolean;
|
|
3455
3455
|
hasPpe: boolean;
|
|
3456
|
+
email?: string | null | undefined;
|
|
3456
3457
|
location?: {
|
|
3457
3458
|
address?: string | null | undefined;
|
|
3458
3459
|
postcode?: string | null | undefined;
|
|
@@ -3462,11 +3463,10 @@ export declare const bookingsContractRouter: {
|
|
|
3462
3463
|
postTown?: string | null | undefined;
|
|
3463
3464
|
areaCovered?: string | null | undefined;
|
|
3464
3465
|
} | null | undefined;
|
|
3465
|
-
email?: string | null | undefined;
|
|
3466
3466
|
phoneNumbers?: {
|
|
3467
3467
|
phoneNumber: string;
|
|
3468
|
-
description?: string | undefined;
|
|
3469
3468
|
id?: string | undefined;
|
|
3469
|
+
description?: string | undefined;
|
|
3470
3470
|
isPrimary?: boolean | undefined;
|
|
3471
3471
|
}[] | undefined;
|
|
3472
3472
|
nino?: string | null | undefined;
|
|
@@ -3603,7 +3603,7 @@ export declare const bookingsContractRouter: {
|
|
|
3603
3603
|
}>, "many">>>;
|
|
3604
3604
|
currentCollaboration: z.ZodNullable<z.ZodObject<{
|
|
3605
3605
|
id: z.ZodString;
|
|
3606
|
-
company: z.ZodObject<{
|
|
3606
|
+
company: z.ZodOptional<z.ZodObject<{
|
|
3607
3607
|
id: z.ZodString;
|
|
3608
3608
|
name: z.ZodString;
|
|
3609
3609
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3612,8 +3612,8 @@ export declare const bookingsContractRouter: {
|
|
|
3612
3612
|
}, {
|
|
3613
3613
|
id: string;
|
|
3614
3614
|
name: string;
|
|
3615
|
-
}
|
|
3616
|
-
client: z.ZodObject<{
|
|
3615
|
+
}>>;
|
|
3616
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
3617
3617
|
id: z.ZodString;
|
|
3618
3618
|
name: z.ZodString;
|
|
3619
3619
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3622,8 +3622,8 @@ export declare const bookingsContractRouter: {
|
|
|
3622
3622
|
}, {
|
|
3623
3623
|
id: string;
|
|
3624
3624
|
name: string;
|
|
3625
|
-
}
|
|
3626
|
-
user: z.ZodObject<{
|
|
3625
|
+
}>>;
|
|
3626
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
3627
3627
|
id: z.ZodString;
|
|
3628
3628
|
firstName: z.ZodString;
|
|
3629
3629
|
lastName: z.ZodString;
|
|
@@ -3638,7 +3638,7 @@ export declare const bookingsContractRouter: {
|
|
|
3638
3638
|
firstName: string;
|
|
3639
3639
|
lastName: string;
|
|
3640
3640
|
email: string;
|
|
3641
|
-
}
|
|
3641
|
+
}>>;
|
|
3642
3642
|
status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
|
|
3643
3643
|
userId: z.ZodString;
|
|
3644
3644
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -3651,48 +3651,48 @@ export declare const bookingsContractRouter: {
|
|
|
3651
3651
|
id: string;
|
|
3652
3652
|
}>>>;
|
|
3653
3653
|
}, "strip", z.ZodTypeAny, {
|
|
3654
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3655
3654
|
createdAt: string;
|
|
3656
3655
|
updatedAt: string;
|
|
3656
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3657
3657
|
id: string;
|
|
3658
|
-
|
|
3658
|
+
userId: string;
|
|
3659
|
+
company?: {
|
|
3659
3660
|
id: string;
|
|
3660
3661
|
name: string;
|
|
3661
|
-
};
|
|
3662
|
-
client
|
|
3662
|
+
} | undefined;
|
|
3663
|
+
client?: {
|
|
3663
3664
|
id: string;
|
|
3664
3665
|
name: string;
|
|
3665
|
-
};
|
|
3666
|
-
user
|
|
3666
|
+
} | undefined;
|
|
3667
|
+
user?: {
|
|
3667
3668
|
id: string;
|
|
3668
3669
|
firstName: string;
|
|
3669
3670
|
lastName: string;
|
|
3670
3671
|
email: string;
|
|
3671
|
-
};
|
|
3672
|
-
userId: string;
|
|
3672
|
+
} | undefined;
|
|
3673
3673
|
newCollaboration?: {
|
|
3674
3674
|
id: string;
|
|
3675
3675
|
} | null | undefined;
|
|
3676
3676
|
}, {
|
|
3677
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3678
3677
|
createdAt: string | Date;
|
|
3679
3678
|
updatedAt: string | Date;
|
|
3679
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3680
3680
|
id: string;
|
|
3681
|
-
|
|
3681
|
+
userId: string;
|
|
3682
|
+
company?: {
|
|
3682
3683
|
id: string;
|
|
3683
3684
|
name: string;
|
|
3684
|
-
};
|
|
3685
|
-
client
|
|
3685
|
+
} | undefined;
|
|
3686
|
+
client?: {
|
|
3686
3687
|
id: string;
|
|
3687
3688
|
name: string;
|
|
3688
|
-
};
|
|
3689
|
-
user
|
|
3689
|
+
} | undefined;
|
|
3690
|
+
user?: {
|
|
3690
3691
|
id: string;
|
|
3691
3692
|
firstName: string;
|
|
3692
3693
|
lastName: string;
|
|
3693
3694
|
email: string;
|
|
3694
|
-
};
|
|
3695
|
-
userId: string;
|
|
3695
|
+
} | undefined;
|
|
3696
3696
|
newCollaboration?: {
|
|
3697
3697
|
id: string;
|
|
3698
3698
|
} | null | undefined;
|
|
@@ -3700,12 +3700,12 @@ export declare const bookingsContractRouter: {
|
|
|
3700
3700
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3701
3701
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3702
3702
|
}, "strip", z.ZodTypeAny, {
|
|
3703
|
-
description: string;
|
|
3704
|
-
numberOfPositions: number;
|
|
3705
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
3706
3703
|
createdAt: string;
|
|
3707
3704
|
updatedAt: string;
|
|
3705
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
3708
3706
|
id: string;
|
|
3707
|
+
description: string;
|
|
3708
|
+
numberOfPositions: number;
|
|
3709
3709
|
pay: {
|
|
3710
3710
|
rateUnit: "DAILY" | "HOURLY";
|
|
3711
3711
|
rate: number;
|
|
@@ -3719,25 +3719,25 @@ export declare const bookingsContractRouter: {
|
|
|
3719
3719
|
qualificationTypeId?: string | null | undefined;
|
|
3720
3720
|
}[];
|
|
3721
3721
|
currentCollaboration: {
|
|
3722
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3723
3722
|
createdAt: string;
|
|
3724
3723
|
updatedAt: string;
|
|
3724
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3725
3725
|
id: string;
|
|
3726
|
-
|
|
3726
|
+
userId: string;
|
|
3727
|
+
company?: {
|
|
3727
3728
|
id: string;
|
|
3728
3729
|
name: string;
|
|
3729
|
-
};
|
|
3730
|
-
client
|
|
3730
|
+
} | undefined;
|
|
3731
|
+
client?: {
|
|
3731
3732
|
id: string;
|
|
3732
3733
|
name: string;
|
|
3733
|
-
};
|
|
3734
|
-
user
|
|
3734
|
+
} | undefined;
|
|
3735
|
+
user?: {
|
|
3735
3736
|
id: string;
|
|
3736
3737
|
firstName: string;
|
|
3737
3738
|
lastName: string;
|
|
3738
3739
|
email: string;
|
|
3739
|
-
};
|
|
3740
|
-
userId: string;
|
|
3740
|
+
} | undefined;
|
|
3741
3741
|
newCollaboration?: {
|
|
3742
3742
|
id: string;
|
|
3743
3743
|
} | null | undefined;
|
|
@@ -3753,12 +3753,12 @@ export declare const bookingsContractRouter: {
|
|
|
3753
3753
|
areaCovered?: string | null | undefined;
|
|
3754
3754
|
} | null | undefined;
|
|
3755
3755
|
}, {
|
|
3756
|
-
description: string;
|
|
3757
|
-
numberOfPositions: number;
|
|
3758
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
3759
3756
|
createdAt: string | Date;
|
|
3760
3757
|
updatedAt: string | Date;
|
|
3758
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
3761
3759
|
id: string;
|
|
3760
|
+
description: string;
|
|
3761
|
+
numberOfPositions: number;
|
|
3762
3762
|
pay: {
|
|
3763
3763
|
rateUnit: "DAILY" | "HOURLY";
|
|
3764
3764
|
rate: number;
|
|
@@ -3767,25 +3767,25 @@ export declare const bookingsContractRouter: {
|
|
|
3767
3767
|
};
|
|
3768
3768
|
tradeId: string;
|
|
3769
3769
|
currentCollaboration: {
|
|
3770
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3771
3770
|
createdAt: string | Date;
|
|
3772
3771
|
updatedAt: string | Date;
|
|
3772
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3773
3773
|
id: string;
|
|
3774
|
-
|
|
3774
|
+
userId: string;
|
|
3775
|
+
company?: {
|
|
3775
3776
|
id: string;
|
|
3776
3777
|
name: string;
|
|
3777
|
-
};
|
|
3778
|
-
client
|
|
3778
|
+
} | undefined;
|
|
3779
|
+
client?: {
|
|
3779
3780
|
id: string;
|
|
3780
3781
|
name: string;
|
|
3781
|
-
};
|
|
3782
|
-
user
|
|
3782
|
+
} | undefined;
|
|
3783
|
+
user?: {
|
|
3783
3784
|
id: string;
|
|
3784
3785
|
firstName: string;
|
|
3785
3786
|
lastName: string;
|
|
3786
3787
|
email: string;
|
|
3787
|
-
};
|
|
3788
|
-
userId: string;
|
|
3788
|
+
} | undefined;
|
|
3789
3789
|
newCollaboration?: {
|
|
3790
3790
|
id: string;
|
|
3791
3791
|
} | null | undefined;
|
|
@@ -3810,14 +3810,10 @@ export declare const bookingsContractRouter: {
|
|
|
3810
3810
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3811
3811
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3812
3812
|
}, "strip", z.ZodTypeAny, {
|
|
3813
|
-
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";
|
|
3814
3813
|
createdAt: string;
|
|
3815
3814
|
updatedAt: string;
|
|
3815
|
+
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";
|
|
3816
3816
|
id: string;
|
|
3817
|
-
pay: {
|
|
3818
|
-
rate: number;
|
|
3819
|
-
unit: "DAILY" | "HOURLY";
|
|
3820
|
-
};
|
|
3821
3817
|
user: {
|
|
3822
3818
|
createdAt: string;
|
|
3823
3819
|
updatedAt: string;
|
|
@@ -3829,6 +3825,10 @@ export declare const bookingsContractRouter: {
|
|
|
3829
3825
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
3830
3826
|
};
|
|
3831
3827
|
userId: string;
|
|
3828
|
+
pay: {
|
|
3829
|
+
rate: number;
|
|
3830
|
+
unit: "DAILY" | "HOURLY";
|
|
3831
|
+
};
|
|
3832
3832
|
startDate: string;
|
|
3833
3833
|
worker: {
|
|
3834
3834
|
createdAt: string;
|
|
@@ -3839,12 +3839,13 @@ export declare const bookingsContractRouter: {
|
|
|
3839
3839
|
phoneNumbers: {
|
|
3840
3840
|
phoneNumber: string;
|
|
3841
3841
|
isPrimary: boolean;
|
|
3842
|
-
description?: string | undefined;
|
|
3843
3842
|
id?: string | undefined;
|
|
3843
|
+
description?: string | undefined;
|
|
3844
3844
|
}[];
|
|
3845
3845
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
3846
3846
|
hasTools: boolean;
|
|
3847
3847
|
hasPpe: boolean;
|
|
3848
|
+
email?: string | null | undefined;
|
|
3848
3849
|
location?: {
|
|
3849
3850
|
address?: string | null | undefined;
|
|
3850
3851
|
postcode?: string | null | undefined;
|
|
@@ -3854,7 +3855,6 @@ export declare const bookingsContractRouter: {
|
|
|
3854
3855
|
postTown?: string | null | undefined;
|
|
3855
3856
|
areaCovered?: string | null | undefined;
|
|
3856
3857
|
} | null | undefined;
|
|
3857
|
-
email?: string | null | undefined;
|
|
3858
3858
|
nino?: string | null | undefined;
|
|
3859
3859
|
dateOfBirth?: string | null | undefined;
|
|
3860
3860
|
bio?: string | null | undefined;
|
|
@@ -3889,12 +3889,12 @@ export declare const bookingsContractRouter: {
|
|
|
3889
3889
|
distanceKm?: number | null | undefined;
|
|
3890
3890
|
};
|
|
3891
3891
|
job: {
|
|
3892
|
-
description: string;
|
|
3893
|
-
numberOfPositions: number;
|
|
3894
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
3895
3892
|
createdAt: string;
|
|
3896
3893
|
updatedAt: string;
|
|
3894
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
3897
3895
|
id: string;
|
|
3896
|
+
description: string;
|
|
3897
|
+
numberOfPositions: number;
|
|
3898
3898
|
pay: {
|
|
3899
3899
|
rateUnit: "DAILY" | "HOURLY";
|
|
3900
3900
|
rate: number;
|
|
@@ -3908,25 +3908,25 @@ export declare const bookingsContractRouter: {
|
|
|
3908
3908
|
qualificationTypeId?: string | null | undefined;
|
|
3909
3909
|
}[];
|
|
3910
3910
|
currentCollaboration: {
|
|
3911
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3912
3911
|
createdAt: string;
|
|
3913
3912
|
updatedAt: string;
|
|
3913
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3914
3914
|
id: string;
|
|
3915
|
-
|
|
3915
|
+
userId: string;
|
|
3916
|
+
company?: {
|
|
3916
3917
|
id: string;
|
|
3917
3918
|
name: string;
|
|
3918
|
-
};
|
|
3919
|
-
client
|
|
3919
|
+
} | undefined;
|
|
3920
|
+
client?: {
|
|
3920
3921
|
id: string;
|
|
3921
3922
|
name: string;
|
|
3922
|
-
};
|
|
3923
|
-
user
|
|
3923
|
+
} | undefined;
|
|
3924
|
+
user?: {
|
|
3924
3925
|
id: string;
|
|
3925
3926
|
firstName: string;
|
|
3926
3927
|
lastName: string;
|
|
3927
3928
|
email: string;
|
|
3928
|
-
};
|
|
3929
|
-
userId: string;
|
|
3929
|
+
} | undefined;
|
|
3930
3930
|
newCollaboration?: {
|
|
3931
3931
|
id: string;
|
|
3932
3932
|
} | null | undefined;
|
|
@@ -3944,14 +3944,10 @@ export declare const bookingsContractRouter: {
|
|
|
3944
3944
|
};
|
|
3945
3945
|
endDate?: string | null | undefined;
|
|
3946
3946
|
}, {
|
|
3947
|
-
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";
|
|
3948
3947
|
createdAt: string | Date;
|
|
3949
3948
|
updatedAt: string | Date;
|
|
3949
|
+
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";
|
|
3950
3950
|
id: string;
|
|
3951
|
-
pay: {
|
|
3952
|
-
rate: number;
|
|
3953
|
-
unit: "DAILY" | "HOURLY";
|
|
3954
|
-
};
|
|
3955
3951
|
user: {
|
|
3956
3952
|
createdAt: string | Date;
|
|
3957
3953
|
updatedAt: string | Date;
|
|
@@ -3963,6 +3959,10 @@ export declare const bookingsContractRouter: {
|
|
|
3963
3959
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
3964
3960
|
};
|
|
3965
3961
|
userId: string;
|
|
3962
|
+
pay: {
|
|
3963
|
+
rate: number;
|
|
3964
|
+
unit: "DAILY" | "HOURLY";
|
|
3965
|
+
};
|
|
3966
3966
|
startDate: string | Date;
|
|
3967
3967
|
worker: {
|
|
3968
3968
|
createdAt: string | Date;
|
|
@@ -3973,6 +3973,7 @@ export declare const bookingsContractRouter: {
|
|
|
3973
3973
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
3974
3974
|
hasTools: boolean;
|
|
3975
3975
|
hasPpe: boolean;
|
|
3976
|
+
email?: string | null | undefined;
|
|
3976
3977
|
location?: {
|
|
3977
3978
|
address?: string | null | undefined;
|
|
3978
3979
|
postcode?: string | null | undefined;
|
|
@@ -3982,11 +3983,10 @@ export declare const bookingsContractRouter: {
|
|
|
3982
3983
|
postTown?: string | null | undefined;
|
|
3983
3984
|
areaCovered?: string | null | undefined;
|
|
3984
3985
|
} | null | undefined;
|
|
3985
|
-
email?: string | null | undefined;
|
|
3986
3986
|
phoneNumbers?: {
|
|
3987
3987
|
phoneNumber: string;
|
|
3988
|
-
description?: string | undefined;
|
|
3989
3988
|
id?: string | undefined;
|
|
3989
|
+
description?: string | undefined;
|
|
3990
3990
|
isPrimary?: boolean | undefined;
|
|
3991
3991
|
}[] | undefined;
|
|
3992
3992
|
nino?: string | null | undefined;
|
|
@@ -4023,12 +4023,12 @@ export declare const bookingsContractRouter: {
|
|
|
4023
4023
|
distanceKm?: number | null | undefined;
|
|
4024
4024
|
};
|
|
4025
4025
|
job: {
|
|
4026
|
-
description: string;
|
|
4027
|
-
numberOfPositions: number;
|
|
4028
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
4029
4026
|
createdAt: string | Date;
|
|
4030
4027
|
updatedAt: string | Date;
|
|
4028
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
4031
4029
|
id: string;
|
|
4030
|
+
description: string;
|
|
4031
|
+
numberOfPositions: number;
|
|
4032
4032
|
pay: {
|
|
4033
4033
|
rateUnit: "DAILY" | "HOURLY";
|
|
4034
4034
|
rate: number;
|
|
@@ -4037,25 +4037,25 @@ export declare const bookingsContractRouter: {
|
|
|
4037
4037
|
};
|
|
4038
4038
|
tradeId: string;
|
|
4039
4039
|
currentCollaboration: {
|
|
4040
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4041
4040
|
createdAt: string | Date;
|
|
4042
4041
|
updatedAt: string | Date;
|
|
4042
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4043
4043
|
id: string;
|
|
4044
|
-
|
|
4044
|
+
userId: string;
|
|
4045
|
+
company?: {
|
|
4045
4046
|
id: string;
|
|
4046
4047
|
name: string;
|
|
4047
|
-
};
|
|
4048
|
-
client
|
|
4048
|
+
} | undefined;
|
|
4049
|
+
client?: {
|
|
4049
4050
|
id: string;
|
|
4050
4051
|
name: string;
|
|
4051
|
-
};
|
|
4052
|
-
user
|
|
4052
|
+
} | undefined;
|
|
4053
|
+
user?: {
|
|
4053
4054
|
id: string;
|
|
4054
4055
|
firstName: string;
|
|
4055
4056
|
lastName: string;
|
|
4056
4057
|
email: string;
|
|
4057
|
-
};
|
|
4058
|
-
userId: string;
|
|
4058
|
+
} | undefined;
|
|
4059
4059
|
newCollaboration?: {
|
|
4060
4060
|
id: string;
|
|
4061
4061
|
} | null | undefined;
|
|
@@ -4123,15 +4123,15 @@ export declare const bookingsContractRouter: {
|
|
|
4123
4123
|
companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4124
4124
|
tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4125
4125
|
}, "strip", z.ZodTypeAny, {
|
|
4126
|
-
tradeId?: string | null | undefined;
|
|
4127
4126
|
userId?: string | null | undefined;
|
|
4128
|
-
clientId?: string | null | undefined;
|
|
4129
4127
|
companyId?: string | null | undefined;
|
|
4130
|
-
|
|
4128
|
+
clientId?: string | null | undefined;
|
|
4131
4129
|
tradeId?: string | null | undefined;
|
|
4130
|
+
}, {
|
|
4132
4131
|
userId?: string | null | undefined;
|
|
4133
|
-
clientId?: string | null | undefined;
|
|
4134
4132
|
companyId?: string | null | undefined;
|
|
4133
|
+
clientId?: string | null | undefined;
|
|
4134
|
+
tradeId?: string | null | undefined;
|
|
4135
4135
|
}>>>;
|
|
4136
4136
|
createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
4137
4137
|
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4172,12 +4172,14 @@ export declare const bookingsContractRouter: {
|
|
|
4172
4172
|
}, "strip", z.ZodTypeAny, {
|
|
4173
4173
|
limit: number;
|
|
4174
4174
|
page: number;
|
|
4175
|
-
status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | null | undefined;
|
|
4176
4175
|
createdAt?: {
|
|
4177
4176
|
from?: string | null | undefined;
|
|
4178
4177
|
to?: string | null | undefined;
|
|
4179
4178
|
} | null | undefined;
|
|
4180
|
-
|
|
4179
|
+
status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | null | undefined;
|
|
4180
|
+
companyId?: string | null | undefined;
|
|
4181
|
+
clientId?: string | null | undefined;
|
|
4182
|
+
sortBy?: "createdAt" | "updatedAt" | "status" | "startDate" | null | undefined;
|
|
4181
4183
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
4182
4184
|
startDate?: {
|
|
4183
4185
|
from?: string | null | undefined;
|
|
@@ -4187,25 +4189,25 @@ export declare const bookingsContractRouter: {
|
|
|
4187
4189
|
from?: string | null | undefined;
|
|
4188
4190
|
to?: string | null | undefined;
|
|
4189
4191
|
} | null | undefined;
|
|
4190
|
-
clientId?: string | null | undefined;
|
|
4191
|
-
companyId?: string | null | undefined;
|
|
4192
4192
|
job?: {
|
|
4193
|
-
tradeId?: string | null | undefined;
|
|
4194
4193
|
userId?: string | null | undefined;
|
|
4195
|
-
clientId?: string | null | undefined;
|
|
4196
4194
|
companyId?: string | null | undefined;
|
|
4195
|
+
clientId?: string | null | undefined;
|
|
4196
|
+
tradeId?: string | null | undefined;
|
|
4197
4197
|
} | null | undefined;
|
|
4198
4198
|
workerName?: string | null | undefined;
|
|
4199
4199
|
agentName?: string | null | undefined;
|
|
4200
4200
|
}, {
|
|
4201
|
-
status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | null | undefined;
|
|
4202
4201
|
createdAt?: {
|
|
4203
4202
|
from?: string | null | undefined;
|
|
4204
4203
|
to?: string | null | undefined;
|
|
4205
4204
|
} | null | undefined;
|
|
4205
|
+
status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | null | undefined;
|
|
4206
4206
|
limit?: number | undefined;
|
|
4207
4207
|
page?: number | undefined;
|
|
4208
|
-
|
|
4208
|
+
companyId?: string | null | undefined;
|
|
4209
|
+
clientId?: string | null | undefined;
|
|
4210
|
+
sortBy?: "createdAt" | "updatedAt" | "status" | "startDate" | null | undefined;
|
|
4209
4211
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
4210
4212
|
startDate?: {
|
|
4211
4213
|
from?: string | null | undefined;
|
|
@@ -4215,13 +4217,11 @@ export declare const bookingsContractRouter: {
|
|
|
4215
4217
|
from?: string | null | undefined;
|
|
4216
4218
|
to?: string | null | undefined;
|
|
4217
4219
|
} | null | undefined;
|
|
4218
|
-
clientId?: string | null | undefined;
|
|
4219
|
-
companyId?: string | null | undefined;
|
|
4220
4220
|
job?: {
|
|
4221
|
-
tradeId?: string | null | undefined;
|
|
4222
4221
|
userId?: string | null | undefined;
|
|
4223
|
-
clientId?: string | null | undefined;
|
|
4224
4222
|
companyId?: string | null | undefined;
|
|
4223
|
+
clientId?: string | null | undefined;
|
|
4224
|
+
tradeId?: string | null | undefined;
|
|
4225
4225
|
} | null | undefined;
|
|
4226
4226
|
workerName?: string | null | undefined;
|
|
4227
4227
|
agentName?: string | null | undefined;
|
|
@@ -4349,12 +4349,12 @@ export declare const bookingsContractRouter: {
|
|
|
4349
4349
|
}, "strip", z.ZodTypeAny, {
|
|
4350
4350
|
phoneNumber: string;
|
|
4351
4351
|
isPrimary: boolean;
|
|
4352
|
-
description?: string | undefined;
|
|
4353
4352
|
id?: string | undefined;
|
|
4353
|
+
description?: string | undefined;
|
|
4354
4354
|
}, {
|
|
4355
4355
|
phoneNumber: string;
|
|
4356
|
-
description?: string | undefined;
|
|
4357
4356
|
id?: string | undefined;
|
|
4357
|
+
description?: string | undefined;
|
|
4358
4358
|
isPrimary?: boolean | undefined;
|
|
4359
4359
|
}>, "many">>>;
|
|
4360
4360
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4470,12 +4470,13 @@ export declare const bookingsContractRouter: {
|
|
|
4470
4470
|
phoneNumbers: {
|
|
4471
4471
|
phoneNumber: string;
|
|
4472
4472
|
isPrimary: boolean;
|
|
4473
|
-
description?: string | undefined;
|
|
4474
4473
|
id?: string | undefined;
|
|
4474
|
+
description?: string | undefined;
|
|
4475
4475
|
}[];
|
|
4476
4476
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
4477
4477
|
hasTools: boolean;
|
|
4478
4478
|
hasPpe: boolean;
|
|
4479
|
+
email?: string | null | undefined;
|
|
4479
4480
|
location?: {
|
|
4480
4481
|
address?: string | null | undefined;
|
|
4481
4482
|
postcode?: string | null | undefined;
|
|
@@ -4485,7 +4486,6 @@ export declare const bookingsContractRouter: {
|
|
|
4485
4486
|
postTown?: string | null | undefined;
|
|
4486
4487
|
areaCovered?: string | null | undefined;
|
|
4487
4488
|
} | null | undefined;
|
|
4488
|
-
email?: string | null | undefined;
|
|
4489
4489
|
nino?: string | null | undefined;
|
|
4490
4490
|
dateOfBirth?: string | null | undefined;
|
|
4491
4491
|
bio?: string | null | undefined;
|
|
@@ -4527,6 +4527,7 @@ export declare const bookingsContractRouter: {
|
|
|
4527
4527
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
4528
4528
|
hasTools: boolean;
|
|
4529
4529
|
hasPpe: boolean;
|
|
4530
|
+
email?: string | null | undefined;
|
|
4530
4531
|
location?: {
|
|
4531
4532
|
address?: string | null | undefined;
|
|
4532
4533
|
postcode?: string | null | undefined;
|
|
@@ -4536,11 +4537,10 @@ export declare const bookingsContractRouter: {
|
|
|
4536
4537
|
postTown?: string | null | undefined;
|
|
4537
4538
|
areaCovered?: string | null | undefined;
|
|
4538
4539
|
} | null | undefined;
|
|
4539
|
-
email?: string | null | undefined;
|
|
4540
4540
|
phoneNumbers?: {
|
|
4541
4541
|
phoneNumber: string;
|
|
4542
|
-
description?: string | undefined;
|
|
4543
4542
|
id?: string | undefined;
|
|
4543
|
+
description?: string | undefined;
|
|
4544
4544
|
isPrimary?: boolean | undefined;
|
|
4545
4545
|
}[] | undefined;
|
|
4546
4546
|
nino?: string | null | undefined;
|
|
@@ -4677,7 +4677,7 @@ export declare const bookingsContractRouter: {
|
|
|
4677
4677
|
}>, "many">>>;
|
|
4678
4678
|
currentCollaboration: z.ZodNullable<z.ZodObject<{
|
|
4679
4679
|
id: z.ZodString;
|
|
4680
|
-
company: z.ZodObject<{
|
|
4680
|
+
company: z.ZodOptional<z.ZodObject<{
|
|
4681
4681
|
id: z.ZodString;
|
|
4682
4682
|
name: z.ZodString;
|
|
4683
4683
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4686,8 +4686,8 @@ export declare const bookingsContractRouter: {
|
|
|
4686
4686
|
}, {
|
|
4687
4687
|
id: string;
|
|
4688
4688
|
name: string;
|
|
4689
|
-
}
|
|
4690
|
-
client: z.ZodObject<{
|
|
4689
|
+
}>>;
|
|
4690
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
4691
4691
|
id: z.ZodString;
|
|
4692
4692
|
name: z.ZodString;
|
|
4693
4693
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4696,8 +4696,8 @@ export declare const bookingsContractRouter: {
|
|
|
4696
4696
|
}, {
|
|
4697
4697
|
id: string;
|
|
4698
4698
|
name: string;
|
|
4699
|
-
}
|
|
4700
|
-
user: z.ZodObject<{
|
|
4699
|
+
}>>;
|
|
4700
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
4701
4701
|
id: z.ZodString;
|
|
4702
4702
|
firstName: z.ZodString;
|
|
4703
4703
|
lastName: z.ZodString;
|
|
@@ -4712,7 +4712,7 @@ export declare const bookingsContractRouter: {
|
|
|
4712
4712
|
firstName: string;
|
|
4713
4713
|
lastName: string;
|
|
4714
4714
|
email: string;
|
|
4715
|
-
}
|
|
4715
|
+
}>>;
|
|
4716
4716
|
status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
|
|
4717
4717
|
userId: z.ZodString;
|
|
4718
4718
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -4725,48 +4725,48 @@ export declare const bookingsContractRouter: {
|
|
|
4725
4725
|
id: string;
|
|
4726
4726
|
}>>>;
|
|
4727
4727
|
}, "strip", z.ZodTypeAny, {
|
|
4728
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4729
4728
|
createdAt: string;
|
|
4730
4729
|
updatedAt: string;
|
|
4730
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4731
4731
|
id: string;
|
|
4732
|
-
|
|
4732
|
+
userId: string;
|
|
4733
|
+
company?: {
|
|
4733
4734
|
id: string;
|
|
4734
4735
|
name: string;
|
|
4735
|
-
};
|
|
4736
|
-
client
|
|
4736
|
+
} | undefined;
|
|
4737
|
+
client?: {
|
|
4737
4738
|
id: string;
|
|
4738
4739
|
name: string;
|
|
4739
|
-
};
|
|
4740
|
-
user
|
|
4740
|
+
} | undefined;
|
|
4741
|
+
user?: {
|
|
4741
4742
|
id: string;
|
|
4742
4743
|
firstName: string;
|
|
4743
4744
|
lastName: string;
|
|
4744
4745
|
email: string;
|
|
4745
|
-
};
|
|
4746
|
-
userId: string;
|
|
4746
|
+
} | undefined;
|
|
4747
4747
|
newCollaboration?: {
|
|
4748
4748
|
id: string;
|
|
4749
4749
|
} | null | undefined;
|
|
4750
4750
|
}, {
|
|
4751
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4752
4751
|
createdAt: string | Date;
|
|
4753
4752
|
updatedAt: string | Date;
|
|
4753
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4754
4754
|
id: string;
|
|
4755
|
-
|
|
4755
|
+
userId: string;
|
|
4756
|
+
company?: {
|
|
4756
4757
|
id: string;
|
|
4757
4758
|
name: string;
|
|
4758
|
-
};
|
|
4759
|
-
client
|
|
4759
|
+
} | undefined;
|
|
4760
|
+
client?: {
|
|
4760
4761
|
id: string;
|
|
4761
4762
|
name: string;
|
|
4762
|
-
};
|
|
4763
|
-
user
|
|
4763
|
+
} | undefined;
|
|
4764
|
+
user?: {
|
|
4764
4765
|
id: string;
|
|
4765
4766
|
firstName: string;
|
|
4766
4767
|
lastName: string;
|
|
4767
4768
|
email: string;
|
|
4768
|
-
};
|
|
4769
|
-
userId: string;
|
|
4769
|
+
} | undefined;
|
|
4770
4770
|
newCollaboration?: {
|
|
4771
4771
|
id: string;
|
|
4772
4772
|
} | null | undefined;
|
|
@@ -4774,12 +4774,12 @@ export declare const bookingsContractRouter: {
|
|
|
4774
4774
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4775
4775
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4776
4776
|
}, "strip", z.ZodTypeAny, {
|
|
4777
|
-
description: string;
|
|
4778
|
-
numberOfPositions: number;
|
|
4779
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
4780
4777
|
createdAt: string;
|
|
4781
4778
|
updatedAt: string;
|
|
4779
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
4782
4780
|
id: string;
|
|
4781
|
+
description: string;
|
|
4782
|
+
numberOfPositions: number;
|
|
4783
4783
|
pay: {
|
|
4784
4784
|
rateUnit: "DAILY" | "HOURLY";
|
|
4785
4785
|
rate: number;
|
|
@@ -4793,25 +4793,25 @@ export declare const bookingsContractRouter: {
|
|
|
4793
4793
|
qualificationTypeId?: string | null | undefined;
|
|
4794
4794
|
}[];
|
|
4795
4795
|
currentCollaboration: {
|
|
4796
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4797
4796
|
createdAt: string;
|
|
4798
4797
|
updatedAt: string;
|
|
4798
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4799
4799
|
id: string;
|
|
4800
|
-
|
|
4800
|
+
userId: string;
|
|
4801
|
+
company?: {
|
|
4801
4802
|
id: string;
|
|
4802
4803
|
name: string;
|
|
4803
|
-
};
|
|
4804
|
-
client
|
|
4804
|
+
} | undefined;
|
|
4805
|
+
client?: {
|
|
4805
4806
|
id: string;
|
|
4806
4807
|
name: string;
|
|
4807
|
-
};
|
|
4808
|
-
user
|
|
4808
|
+
} | undefined;
|
|
4809
|
+
user?: {
|
|
4809
4810
|
id: string;
|
|
4810
4811
|
firstName: string;
|
|
4811
4812
|
lastName: string;
|
|
4812
4813
|
email: string;
|
|
4813
|
-
};
|
|
4814
|
-
userId: string;
|
|
4814
|
+
} | undefined;
|
|
4815
4815
|
newCollaboration?: {
|
|
4816
4816
|
id: string;
|
|
4817
4817
|
} | null | undefined;
|
|
@@ -4827,12 +4827,12 @@ export declare const bookingsContractRouter: {
|
|
|
4827
4827
|
areaCovered?: string | null | undefined;
|
|
4828
4828
|
} | null | undefined;
|
|
4829
4829
|
}, {
|
|
4830
|
-
description: string;
|
|
4831
|
-
numberOfPositions: number;
|
|
4832
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
4833
4830
|
createdAt: string | Date;
|
|
4834
4831
|
updatedAt: string | Date;
|
|
4832
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
4835
4833
|
id: string;
|
|
4834
|
+
description: string;
|
|
4835
|
+
numberOfPositions: number;
|
|
4836
4836
|
pay: {
|
|
4837
4837
|
rateUnit: "DAILY" | "HOURLY";
|
|
4838
4838
|
rate: number;
|
|
@@ -4841,25 +4841,25 @@ export declare const bookingsContractRouter: {
|
|
|
4841
4841
|
};
|
|
4842
4842
|
tradeId: string;
|
|
4843
4843
|
currentCollaboration: {
|
|
4844
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4845
4844
|
createdAt: string | Date;
|
|
4846
4845
|
updatedAt: string | Date;
|
|
4846
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4847
4847
|
id: string;
|
|
4848
|
-
|
|
4848
|
+
userId: string;
|
|
4849
|
+
company?: {
|
|
4849
4850
|
id: string;
|
|
4850
4851
|
name: string;
|
|
4851
|
-
};
|
|
4852
|
-
client
|
|
4852
|
+
} | undefined;
|
|
4853
|
+
client?: {
|
|
4853
4854
|
id: string;
|
|
4854
4855
|
name: string;
|
|
4855
|
-
};
|
|
4856
|
-
user
|
|
4856
|
+
} | undefined;
|
|
4857
|
+
user?: {
|
|
4857
4858
|
id: string;
|
|
4858
4859
|
firstName: string;
|
|
4859
4860
|
lastName: string;
|
|
4860
4861
|
email: string;
|
|
4861
|
-
};
|
|
4862
|
-
userId: string;
|
|
4862
|
+
} | undefined;
|
|
4863
4863
|
newCollaboration?: {
|
|
4864
4864
|
id: string;
|
|
4865
4865
|
} | null | undefined;
|
|
@@ -4884,14 +4884,10 @@ export declare const bookingsContractRouter: {
|
|
|
4884
4884
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4885
4885
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4886
4886
|
}, "strip", z.ZodTypeAny, {
|
|
4887
|
-
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";
|
|
4888
4887
|
createdAt: string;
|
|
4889
4888
|
updatedAt: string;
|
|
4889
|
+
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";
|
|
4890
4890
|
id: string;
|
|
4891
|
-
pay: {
|
|
4892
|
-
rate: number;
|
|
4893
|
-
unit: "DAILY" | "HOURLY";
|
|
4894
|
-
};
|
|
4895
4891
|
user: {
|
|
4896
4892
|
createdAt: string;
|
|
4897
4893
|
updatedAt: string;
|
|
@@ -4903,6 +4899,10 @@ export declare const bookingsContractRouter: {
|
|
|
4903
4899
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
4904
4900
|
};
|
|
4905
4901
|
userId: string;
|
|
4902
|
+
pay: {
|
|
4903
|
+
rate: number;
|
|
4904
|
+
unit: "DAILY" | "HOURLY";
|
|
4905
|
+
};
|
|
4906
4906
|
startDate: string;
|
|
4907
4907
|
worker: {
|
|
4908
4908
|
createdAt: string;
|
|
@@ -4913,12 +4913,13 @@ export declare const bookingsContractRouter: {
|
|
|
4913
4913
|
phoneNumbers: {
|
|
4914
4914
|
phoneNumber: string;
|
|
4915
4915
|
isPrimary: boolean;
|
|
4916
|
-
description?: string | undefined;
|
|
4917
4916
|
id?: string | undefined;
|
|
4917
|
+
description?: string | undefined;
|
|
4918
4918
|
}[];
|
|
4919
4919
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
4920
4920
|
hasTools: boolean;
|
|
4921
4921
|
hasPpe: boolean;
|
|
4922
|
+
email?: string | null | undefined;
|
|
4922
4923
|
location?: {
|
|
4923
4924
|
address?: string | null | undefined;
|
|
4924
4925
|
postcode?: string | null | undefined;
|
|
@@ -4928,7 +4929,6 @@ export declare const bookingsContractRouter: {
|
|
|
4928
4929
|
postTown?: string | null | undefined;
|
|
4929
4930
|
areaCovered?: string | null | undefined;
|
|
4930
4931
|
} | null | undefined;
|
|
4931
|
-
email?: string | null | undefined;
|
|
4932
4932
|
nino?: string | null | undefined;
|
|
4933
4933
|
dateOfBirth?: string | null | undefined;
|
|
4934
4934
|
bio?: string | null | undefined;
|
|
@@ -4963,12 +4963,12 @@ export declare const bookingsContractRouter: {
|
|
|
4963
4963
|
distanceKm?: number | null | undefined;
|
|
4964
4964
|
};
|
|
4965
4965
|
job: {
|
|
4966
|
-
description: string;
|
|
4967
|
-
numberOfPositions: number;
|
|
4968
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
4969
4966
|
createdAt: string;
|
|
4970
4967
|
updatedAt: string;
|
|
4968
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
4971
4969
|
id: string;
|
|
4970
|
+
description: string;
|
|
4971
|
+
numberOfPositions: number;
|
|
4972
4972
|
pay: {
|
|
4973
4973
|
rateUnit: "DAILY" | "HOURLY";
|
|
4974
4974
|
rate: number;
|
|
@@ -4982,25 +4982,25 @@ export declare const bookingsContractRouter: {
|
|
|
4982
4982
|
qualificationTypeId?: string | null | undefined;
|
|
4983
4983
|
}[];
|
|
4984
4984
|
currentCollaboration: {
|
|
4985
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4986
4985
|
createdAt: string;
|
|
4987
4986
|
updatedAt: string;
|
|
4987
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4988
4988
|
id: string;
|
|
4989
|
-
|
|
4989
|
+
userId: string;
|
|
4990
|
+
company?: {
|
|
4990
4991
|
id: string;
|
|
4991
4992
|
name: string;
|
|
4992
|
-
};
|
|
4993
|
-
client
|
|
4993
|
+
} | undefined;
|
|
4994
|
+
client?: {
|
|
4994
4995
|
id: string;
|
|
4995
4996
|
name: string;
|
|
4996
|
-
};
|
|
4997
|
-
user
|
|
4997
|
+
} | undefined;
|
|
4998
|
+
user?: {
|
|
4998
4999
|
id: string;
|
|
4999
5000
|
firstName: string;
|
|
5000
5001
|
lastName: string;
|
|
5001
5002
|
email: string;
|
|
5002
|
-
};
|
|
5003
|
-
userId: string;
|
|
5003
|
+
} | undefined;
|
|
5004
5004
|
newCollaboration?: {
|
|
5005
5005
|
id: string;
|
|
5006
5006
|
} | null | undefined;
|
|
@@ -5018,14 +5018,10 @@ export declare const bookingsContractRouter: {
|
|
|
5018
5018
|
};
|
|
5019
5019
|
endDate?: string | null | undefined;
|
|
5020
5020
|
}, {
|
|
5021
|
-
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";
|
|
5022
5021
|
createdAt: string | Date;
|
|
5023
5022
|
updatedAt: string | Date;
|
|
5023
|
+
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";
|
|
5024
5024
|
id: string;
|
|
5025
|
-
pay: {
|
|
5026
|
-
rate: number;
|
|
5027
|
-
unit: "DAILY" | "HOURLY";
|
|
5028
|
-
};
|
|
5029
5025
|
user: {
|
|
5030
5026
|
createdAt: string | Date;
|
|
5031
5027
|
updatedAt: string | Date;
|
|
@@ -5037,6 +5033,10 @@ export declare const bookingsContractRouter: {
|
|
|
5037
5033
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
5038
5034
|
};
|
|
5039
5035
|
userId: string;
|
|
5036
|
+
pay: {
|
|
5037
|
+
rate: number;
|
|
5038
|
+
unit: "DAILY" | "HOURLY";
|
|
5039
|
+
};
|
|
5040
5040
|
startDate: string | Date;
|
|
5041
5041
|
worker: {
|
|
5042
5042
|
createdAt: string | Date;
|
|
@@ -5047,6 +5047,7 @@ export declare const bookingsContractRouter: {
|
|
|
5047
5047
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
5048
5048
|
hasTools: boolean;
|
|
5049
5049
|
hasPpe: boolean;
|
|
5050
|
+
email?: string | null | undefined;
|
|
5050
5051
|
location?: {
|
|
5051
5052
|
address?: string | null | undefined;
|
|
5052
5053
|
postcode?: string | null | undefined;
|
|
@@ -5056,11 +5057,10 @@ export declare const bookingsContractRouter: {
|
|
|
5056
5057
|
postTown?: string | null | undefined;
|
|
5057
5058
|
areaCovered?: string | null | undefined;
|
|
5058
5059
|
} | null | undefined;
|
|
5059
|
-
email?: string | null | undefined;
|
|
5060
5060
|
phoneNumbers?: {
|
|
5061
5061
|
phoneNumber: string;
|
|
5062
|
-
description?: string | undefined;
|
|
5063
5062
|
id?: string | undefined;
|
|
5063
|
+
description?: string | undefined;
|
|
5064
5064
|
isPrimary?: boolean | undefined;
|
|
5065
5065
|
}[] | undefined;
|
|
5066
5066
|
nino?: string | null | undefined;
|
|
@@ -5097,12 +5097,12 @@ export declare const bookingsContractRouter: {
|
|
|
5097
5097
|
distanceKm?: number | null | undefined;
|
|
5098
5098
|
};
|
|
5099
5099
|
job: {
|
|
5100
|
-
description: string;
|
|
5101
|
-
numberOfPositions: number;
|
|
5102
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
5103
5100
|
createdAt: string | Date;
|
|
5104
5101
|
updatedAt: string | Date;
|
|
5102
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
5105
5103
|
id: string;
|
|
5104
|
+
description: string;
|
|
5105
|
+
numberOfPositions: number;
|
|
5106
5106
|
pay: {
|
|
5107
5107
|
rateUnit: "DAILY" | "HOURLY";
|
|
5108
5108
|
rate: number;
|
|
@@ -5111,25 +5111,25 @@ export declare const bookingsContractRouter: {
|
|
|
5111
5111
|
};
|
|
5112
5112
|
tradeId: string;
|
|
5113
5113
|
currentCollaboration: {
|
|
5114
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5115
5114
|
createdAt: string | Date;
|
|
5116
5115
|
updatedAt: string | Date;
|
|
5116
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5117
5117
|
id: string;
|
|
5118
|
-
|
|
5118
|
+
userId: string;
|
|
5119
|
+
company?: {
|
|
5119
5120
|
id: string;
|
|
5120
5121
|
name: string;
|
|
5121
|
-
};
|
|
5122
|
-
client
|
|
5122
|
+
} | undefined;
|
|
5123
|
+
client?: {
|
|
5123
5124
|
id: string;
|
|
5124
5125
|
name: string;
|
|
5125
|
-
};
|
|
5126
|
-
user
|
|
5126
|
+
} | undefined;
|
|
5127
|
+
user?: {
|
|
5127
5128
|
id: string;
|
|
5128
5129
|
firstName: string;
|
|
5129
5130
|
lastName: string;
|
|
5130
5131
|
email: string;
|
|
5131
|
-
};
|
|
5132
|
-
userId: string;
|
|
5132
|
+
} | undefined;
|
|
5133
5133
|
newCollaboration?: {
|
|
5134
5134
|
id: string;
|
|
5135
5135
|
} | null | undefined;
|
|
@@ -5160,14 +5160,10 @@ export declare const bookingsContractRouter: {
|
|
|
5160
5160
|
}, "strip", z.ZodTypeAny, {
|
|
5161
5161
|
limit: number;
|
|
5162
5162
|
items: {
|
|
5163
|
-
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";
|
|
5164
5163
|
createdAt: string;
|
|
5165
5164
|
updatedAt: string;
|
|
5165
|
+
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";
|
|
5166
5166
|
id: string;
|
|
5167
|
-
pay: {
|
|
5168
|
-
rate: number;
|
|
5169
|
-
unit: "DAILY" | "HOURLY";
|
|
5170
|
-
};
|
|
5171
5167
|
user: {
|
|
5172
5168
|
createdAt: string;
|
|
5173
5169
|
updatedAt: string;
|
|
@@ -5179,6 +5175,10 @@ export declare const bookingsContractRouter: {
|
|
|
5179
5175
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
5180
5176
|
};
|
|
5181
5177
|
userId: string;
|
|
5178
|
+
pay: {
|
|
5179
|
+
rate: number;
|
|
5180
|
+
unit: "DAILY" | "HOURLY";
|
|
5181
|
+
};
|
|
5182
5182
|
startDate: string;
|
|
5183
5183
|
worker: {
|
|
5184
5184
|
createdAt: string;
|
|
@@ -5189,12 +5189,13 @@ export declare const bookingsContractRouter: {
|
|
|
5189
5189
|
phoneNumbers: {
|
|
5190
5190
|
phoneNumber: string;
|
|
5191
5191
|
isPrimary: boolean;
|
|
5192
|
-
description?: string | undefined;
|
|
5193
5192
|
id?: string | undefined;
|
|
5193
|
+
description?: string | undefined;
|
|
5194
5194
|
}[];
|
|
5195
5195
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
5196
5196
|
hasTools: boolean;
|
|
5197
5197
|
hasPpe: boolean;
|
|
5198
|
+
email?: string | null | undefined;
|
|
5198
5199
|
location?: {
|
|
5199
5200
|
address?: string | null | undefined;
|
|
5200
5201
|
postcode?: string | null | undefined;
|
|
@@ -5204,7 +5205,6 @@ export declare const bookingsContractRouter: {
|
|
|
5204
5205
|
postTown?: string | null | undefined;
|
|
5205
5206
|
areaCovered?: string | null | undefined;
|
|
5206
5207
|
} | null | undefined;
|
|
5207
|
-
email?: string | null | undefined;
|
|
5208
5208
|
nino?: string | null | undefined;
|
|
5209
5209
|
dateOfBirth?: string | null | undefined;
|
|
5210
5210
|
bio?: string | null | undefined;
|
|
@@ -5238,13 +5238,13 @@ export declare const bookingsContractRouter: {
|
|
|
5238
5238
|
} | null | undefined;
|
|
5239
5239
|
distanceKm?: number | null | undefined;
|
|
5240
5240
|
};
|
|
5241
|
-
job: {
|
|
5242
|
-
description: string;
|
|
5243
|
-
numberOfPositions: number;
|
|
5244
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
5241
|
+
job: {
|
|
5245
5242
|
createdAt: string;
|
|
5246
5243
|
updatedAt: string;
|
|
5244
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
5247
5245
|
id: string;
|
|
5246
|
+
description: string;
|
|
5247
|
+
numberOfPositions: number;
|
|
5248
5248
|
pay: {
|
|
5249
5249
|
rateUnit: "DAILY" | "HOURLY";
|
|
5250
5250
|
rate: number;
|
|
@@ -5258,25 +5258,25 @@ export declare const bookingsContractRouter: {
|
|
|
5258
5258
|
qualificationTypeId?: string | null | undefined;
|
|
5259
5259
|
}[];
|
|
5260
5260
|
currentCollaboration: {
|
|
5261
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5262
5261
|
createdAt: string;
|
|
5263
5262
|
updatedAt: string;
|
|
5263
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5264
5264
|
id: string;
|
|
5265
|
-
|
|
5265
|
+
userId: string;
|
|
5266
|
+
company?: {
|
|
5266
5267
|
id: string;
|
|
5267
5268
|
name: string;
|
|
5268
|
-
};
|
|
5269
|
-
client
|
|
5269
|
+
} | undefined;
|
|
5270
|
+
client?: {
|
|
5270
5271
|
id: string;
|
|
5271
5272
|
name: string;
|
|
5272
|
-
};
|
|
5273
|
-
user
|
|
5273
|
+
} | undefined;
|
|
5274
|
+
user?: {
|
|
5274
5275
|
id: string;
|
|
5275
5276
|
firstName: string;
|
|
5276
5277
|
lastName: string;
|
|
5277
5278
|
email: string;
|
|
5278
|
-
};
|
|
5279
|
-
userId: string;
|
|
5279
|
+
} | undefined;
|
|
5280
5280
|
newCollaboration?: {
|
|
5281
5281
|
id: string;
|
|
5282
5282
|
} | null | undefined;
|
|
@@ -5301,14 +5301,10 @@ export declare const bookingsContractRouter: {
|
|
|
5301
5301
|
}, {
|
|
5302
5302
|
limit: number;
|
|
5303
5303
|
items: {
|
|
5304
|
-
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";
|
|
5305
5304
|
createdAt: string | Date;
|
|
5306
5305
|
updatedAt: string | Date;
|
|
5306
|
+
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";
|
|
5307
5307
|
id: string;
|
|
5308
|
-
pay: {
|
|
5309
|
-
rate: number;
|
|
5310
|
-
unit: "DAILY" | "HOURLY";
|
|
5311
|
-
};
|
|
5312
5308
|
user: {
|
|
5313
5309
|
createdAt: string | Date;
|
|
5314
5310
|
updatedAt: string | Date;
|
|
@@ -5320,6 +5316,10 @@ export declare const bookingsContractRouter: {
|
|
|
5320
5316
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
5321
5317
|
};
|
|
5322
5318
|
userId: string;
|
|
5319
|
+
pay: {
|
|
5320
|
+
rate: number;
|
|
5321
|
+
unit: "DAILY" | "HOURLY";
|
|
5322
|
+
};
|
|
5323
5323
|
startDate: string | Date;
|
|
5324
5324
|
worker: {
|
|
5325
5325
|
createdAt: string | Date;
|
|
@@ -5330,6 +5330,7 @@ export declare const bookingsContractRouter: {
|
|
|
5330
5330
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
5331
5331
|
hasTools: boolean;
|
|
5332
5332
|
hasPpe: boolean;
|
|
5333
|
+
email?: string | null | undefined;
|
|
5333
5334
|
location?: {
|
|
5334
5335
|
address?: string | null | undefined;
|
|
5335
5336
|
postcode?: string | null | undefined;
|
|
@@ -5339,11 +5340,10 @@ export declare const bookingsContractRouter: {
|
|
|
5339
5340
|
postTown?: string | null | undefined;
|
|
5340
5341
|
areaCovered?: string | null | undefined;
|
|
5341
5342
|
} | null | undefined;
|
|
5342
|
-
email?: string | null | undefined;
|
|
5343
5343
|
phoneNumbers?: {
|
|
5344
5344
|
phoneNumber: string;
|
|
5345
|
-
description?: string | undefined;
|
|
5346
5345
|
id?: string | undefined;
|
|
5346
|
+
description?: string | undefined;
|
|
5347
5347
|
isPrimary?: boolean | undefined;
|
|
5348
5348
|
}[] | undefined;
|
|
5349
5349
|
nino?: string | null | undefined;
|
|
@@ -5380,12 +5380,12 @@ export declare const bookingsContractRouter: {
|
|
|
5380
5380
|
distanceKm?: number | null | undefined;
|
|
5381
5381
|
};
|
|
5382
5382
|
job: {
|
|
5383
|
-
description: string;
|
|
5384
|
-
numberOfPositions: number;
|
|
5385
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
5386
5383
|
createdAt: string | Date;
|
|
5387
5384
|
updatedAt: string | Date;
|
|
5385
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
5388
5386
|
id: string;
|
|
5387
|
+
description: string;
|
|
5388
|
+
numberOfPositions: number;
|
|
5389
5389
|
pay: {
|
|
5390
5390
|
rateUnit: "DAILY" | "HOURLY";
|
|
5391
5391
|
rate: number;
|
|
@@ -5394,25 +5394,25 @@ export declare const bookingsContractRouter: {
|
|
|
5394
5394
|
};
|
|
5395
5395
|
tradeId: string;
|
|
5396
5396
|
currentCollaboration: {
|
|
5397
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5398
5397
|
createdAt: string | Date;
|
|
5399
5398
|
updatedAt: string | Date;
|
|
5399
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5400
5400
|
id: string;
|
|
5401
|
-
|
|
5401
|
+
userId: string;
|
|
5402
|
+
company?: {
|
|
5402
5403
|
id: string;
|
|
5403
5404
|
name: string;
|
|
5404
|
-
};
|
|
5405
|
-
client
|
|
5405
|
+
} | undefined;
|
|
5406
|
+
client?: {
|
|
5406
5407
|
id: string;
|
|
5407
5408
|
name: string;
|
|
5408
|
-
};
|
|
5409
|
-
user
|
|
5409
|
+
} | undefined;
|
|
5410
|
+
user?: {
|
|
5410
5411
|
id: string;
|
|
5411
5412
|
firstName: string;
|
|
5412
5413
|
lastName: string;
|
|
5413
5414
|
email: string;
|
|
5414
|
-
};
|
|
5415
|
-
userId: string;
|
|
5415
|
+
} | undefined;
|
|
5416
5416
|
newCollaboration?: {
|
|
5417
5417
|
id: string;
|
|
5418
5418
|
} | null | undefined;
|
|
@@ -5578,12 +5578,12 @@ export declare const bookingsContractRouter: {
|
|
|
5578
5578
|
}, "strip", z.ZodTypeAny, {
|
|
5579
5579
|
phoneNumber: string;
|
|
5580
5580
|
isPrimary: boolean;
|
|
5581
|
-
description?: string | undefined;
|
|
5582
5581
|
id?: string | undefined;
|
|
5582
|
+
description?: string | undefined;
|
|
5583
5583
|
}, {
|
|
5584
5584
|
phoneNumber: string;
|
|
5585
|
-
description?: string | undefined;
|
|
5586
5585
|
id?: string | undefined;
|
|
5586
|
+
description?: string | undefined;
|
|
5587
5587
|
isPrimary?: boolean | undefined;
|
|
5588
5588
|
}>, "many">>>;
|
|
5589
5589
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -5699,12 +5699,13 @@ export declare const bookingsContractRouter: {
|
|
|
5699
5699
|
phoneNumbers: {
|
|
5700
5700
|
phoneNumber: string;
|
|
5701
5701
|
isPrimary: boolean;
|
|
5702
|
-
description?: string | undefined;
|
|
5703
5702
|
id?: string | undefined;
|
|
5703
|
+
description?: string | undefined;
|
|
5704
5704
|
}[];
|
|
5705
5705
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
5706
5706
|
hasTools: boolean;
|
|
5707
5707
|
hasPpe: boolean;
|
|
5708
|
+
email?: string | null | undefined;
|
|
5708
5709
|
location?: {
|
|
5709
5710
|
address?: string | null | undefined;
|
|
5710
5711
|
postcode?: string | null | undefined;
|
|
@@ -5714,7 +5715,6 @@ export declare const bookingsContractRouter: {
|
|
|
5714
5715
|
postTown?: string | null | undefined;
|
|
5715
5716
|
areaCovered?: string | null | undefined;
|
|
5716
5717
|
} | null | undefined;
|
|
5717
|
-
email?: string | null | undefined;
|
|
5718
5718
|
nino?: string | null | undefined;
|
|
5719
5719
|
dateOfBirth?: string | null | undefined;
|
|
5720
5720
|
bio?: string | null | undefined;
|
|
@@ -5756,6 +5756,7 @@ export declare const bookingsContractRouter: {
|
|
|
5756
5756
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
5757
5757
|
hasTools: boolean;
|
|
5758
5758
|
hasPpe: boolean;
|
|
5759
|
+
email?: string | null | undefined;
|
|
5759
5760
|
location?: {
|
|
5760
5761
|
address?: string | null | undefined;
|
|
5761
5762
|
postcode?: string | null | undefined;
|
|
@@ -5765,11 +5766,10 @@ export declare const bookingsContractRouter: {
|
|
|
5765
5766
|
postTown?: string | null | undefined;
|
|
5766
5767
|
areaCovered?: string | null | undefined;
|
|
5767
5768
|
} | null | undefined;
|
|
5768
|
-
email?: string | null | undefined;
|
|
5769
5769
|
phoneNumbers?: {
|
|
5770
5770
|
phoneNumber: string;
|
|
5771
|
-
description?: string | undefined;
|
|
5772
5771
|
id?: string | undefined;
|
|
5772
|
+
description?: string | undefined;
|
|
5773
5773
|
isPrimary?: boolean | undefined;
|
|
5774
5774
|
}[] | undefined;
|
|
5775
5775
|
nino?: string | null | undefined;
|
|
@@ -5906,7 +5906,7 @@ export declare const bookingsContractRouter: {
|
|
|
5906
5906
|
}>, "many">>>;
|
|
5907
5907
|
currentCollaboration: z.ZodNullable<z.ZodObject<{
|
|
5908
5908
|
id: z.ZodString;
|
|
5909
|
-
company: z.ZodObject<{
|
|
5909
|
+
company: z.ZodOptional<z.ZodObject<{
|
|
5910
5910
|
id: z.ZodString;
|
|
5911
5911
|
name: z.ZodString;
|
|
5912
5912
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5915,8 +5915,8 @@ export declare const bookingsContractRouter: {
|
|
|
5915
5915
|
}, {
|
|
5916
5916
|
id: string;
|
|
5917
5917
|
name: string;
|
|
5918
|
-
}
|
|
5919
|
-
client: z.ZodObject<{
|
|
5918
|
+
}>>;
|
|
5919
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
5920
5920
|
id: z.ZodString;
|
|
5921
5921
|
name: z.ZodString;
|
|
5922
5922
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5925,8 +5925,8 @@ export declare const bookingsContractRouter: {
|
|
|
5925
5925
|
}, {
|
|
5926
5926
|
id: string;
|
|
5927
5927
|
name: string;
|
|
5928
|
-
}
|
|
5929
|
-
user: z.ZodObject<{
|
|
5928
|
+
}>>;
|
|
5929
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
5930
5930
|
id: z.ZodString;
|
|
5931
5931
|
firstName: z.ZodString;
|
|
5932
5932
|
lastName: z.ZodString;
|
|
@@ -5941,7 +5941,7 @@ export declare const bookingsContractRouter: {
|
|
|
5941
5941
|
firstName: string;
|
|
5942
5942
|
lastName: string;
|
|
5943
5943
|
email: string;
|
|
5944
|
-
}
|
|
5944
|
+
}>>;
|
|
5945
5945
|
status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
|
|
5946
5946
|
userId: z.ZodString;
|
|
5947
5947
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -5954,48 +5954,48 @@ export declare const bookingsContractRouter: {
|
|
|
5954
5954
|
id: string;
|
|
5955
5955
|
}>>>;
|
|
5956
5956
|
}, "strip", z.ZodTypeAny, {
|
|
5957
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5958
5957
|
createdAt: string;
|
|
5959
5958
|
updatedAt: string;
|
|
5959
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5960
5960
|
id: string;
|
|
5961
|
-
|
|
5961
|
+
userId: string;
|
|
5962
|
+
company?: {
|
|
5962
5963
|
id: string;
|
|
5963
5964
|
name: string;
|
|
5964
|
-
};
|
|
5965
|
-
client
|
|
5965
|
+
} | undefined;
|
|
5966
|
+
client?: {
|
|
5966
5967
|
id: string;
|
|
5967
5968
|
name: string;
|
|
5968
|
-
};
|
|
5969
|
-
user
|
|
5969
|
+
} | undefined;
|
|
5970
|
+
user?: {
|
|
5970
5971
|
id: string;
|
|
5971
5972
|
firstName: string;
|
|
5972
5973
|
lastName: string;
|
|
5973
5974
|
email: string;
|
|
5974
|
-
};
|
|
5975
|
-
userId: string;
|
|
5975
|
+
} | undefined;
|
|
5976
5976
|
newCollaboration?: {
|
|
5977
5977
|
id: string;
|
|
5978
5978
|
} | null | undefined;
|
|
5979
5979
|
}, {
|
|
5980
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5981
5980
|
createdAt: string | Date;
|
|
5982
5981
|
updatedAt: string | Date;
|
|
5982
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5983
5983
|
id: string;
|
|
5984
|
-
|
|
5984
|
+
userId: string;
|
|
5985
|
+
company?: {
|
|
5985
5986
|
id: string;
|
|
5986
5987
|
name: string;
|
|
5987
|
-
};
|
|
5988
|
-
client
|
|
5988
|
+
} | undefined;
|
|
5989
|
+
client?: {
|
|
5989
5990
|
id: string;
|
|
5990
5991
|
name: string;
|
|
5991
|
-
};
|
|
5992
|
-
user
|
|
5992
|
+
} | undefined;
|
|
5993
|
+
user?: {
|
|
5993
5994
|
id: string;
|
|
5994
5995
|
firstName: string;
|
|
5995
5996
|
lastName: string;
|
|
5996
5997
|
email: string;
|
|
5997
|
-
};
|
|
5998
|
-
userId: string;
|
|
5998
|
+
} | undefined;
|
|
5999
5999
|
newCollaboration?: {
|
|
6000
6000
|
id: string;
|
|
6001
6001
|
} | null | undefined;
|
|
@@ -6003,12 +6003,12 @@ export declare const bookingsContractRouter: {
|
|
|
6003
6003
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6004
6004
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6005
6005
|
}, "strip", z.ZodTypeAny, {
|
|
6006
|
-
description: string;
|
|
6007
|
-
numberOfPositions: number;
|
|
6008
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
6009
6006
|
createdAt: string;
|
|
6010
6007
|
updatedAt: string;
|
|
6008
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
6011
6009
|
id: string;
|
|
6010
|
+
description: string;
|
|
6011
|
+
numberOfPositions: number;
|
|
6012
6012
|
pay: {
|
|
6013
6013
|
rateUnit: "DAILY" | "HOURLY";
|
|
6014
6014
|
rate: number;
|
|
@@ -6022,25 +6022,25 @@ export declare const bookingsContractRouter: {
|
|
|
6022
6022
|
qualificationTypeId?: string | null | undefined;
|
|
6023
6023
|
}[];
|
|
6024
6024
|
currentCollaboration: {
|
|
6025
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6026
6025
|
createdAt: string;
|
|
6027
6026
|
updatedAt: string;
|
|
6027
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6028
6028
|
id: string;
|
|
6029
|
-
|
|
6029
|
+
userId: string;
|
|
6030
|
+
company?: {
|
|
6030
6031
|
id: string;
|
|
6031
6032
|
name: string;
|
|
6032
|
-
};
|
|
6033
|
-
client
|
|
6033
|
+
} | undefined;
|
|
6034
|
+
client?: {
|
|
6034
6035
|
id: string;
|
|
6035
6036
|
name: string;
|
|
6036
|
-
};
|
|
6037
|
-
user
|
|
6037
|
+
} | undefined;
|
|
6038
|
+
user?: {
|
|
6038
6039
|
id: string;
|
|
6039
6040
|
firstName: string;
|
|
6040
6041
|
lastName: string;
|
|
6041
6042
|
email: string;
|
|
6042
|
-
};
|
|
6043
|
-
userId: string;
|
|
6043
|
+
} | undefined;
|
|
6044
6044
|
newCollaboration?: {
|
|
6045
6045
|
id: string;
|
|
6046
6046
|
} | null | undefined;
|
|
@@ -6056,12 +6056,12 @@ export declare const bookingsContractRouter: {
|
|
|
6056
6056
|
areaCovered?: string | null | undefined;
|
|
6057
6057
|
} | null | undefined;
|
|
6058
6058
|
}, {
|
|
6059
|
-
description: string;
|
|
6060
|
-
numberOfPositions: number;
|
|
6061
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
6062
6059
|
createdAt: string | Date;
|
|
6063
6060
|
updatedAt: string | Date;
|
|
6061
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
6064
6062
|
id: string;
|
|
6063
|
+
description: string;
|
|
6064
|
+
numberOfPositions: number;
|
|
6065
6065
|
pay: {
|
|
6066
6066
|
rateUnit: "DAILY" | "HOURLY";
|
|
6067
6067
|
rate: number;
|
|
@@ -6070,25 +6070,25 @@ export declare const bookingsContractRouter: {
|
|
|
6070
6070
|
};
|
|
6071
6071
|
tradeId: string;
|
|
6072
6072
|
currentCollaboration: {
|
|
6073
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6074
6073
|
createdAt: string | Date;
|
|
6075
6074
|
updatedAt: string | Date;
|
|
6075
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6076
6076
|
id: string;
|
|
6077
|
-
|
|
6077
|
+
userId: string;
|
|
6078
|
+
company?: {
|
|
6078
6079
|
id: string;
|
|
6079
6080
|
name: string;
|
|
6080
|
-
};
|
|
6081
|
-
client
|
|
6081
|
+
} | undefined;
|
|
6082
|
+
client?: {
|
|
6082
6083
|
id: string;
|
|
6083
6084
|
name: string;
|
|
6084
|
-
};
|
|
6085
|
-
user
|
|
6085
|
+
} | undefined;
|
|
6086
|
+
user?: {
|
|
6086
6087
|
id: string;
|
|
6087
6088
|
firstName: string;
|
|
6088
6089
|
lastName: string;
|
|
6089
6090
|
email: string;
|
|
6090
|
-
};
|
|
6091
|
-
userId: string;
|
|
6091
|
+
} | undefined;
|
|
6092
6092
|
newCollaboration?: {
|
|
6093
6093
|
id: string;
|
|
6094
6094
|
} | null | undefined;
|
|
@@ -6113,14 +6113,10 @@ export declare const bookingsContractRouter: {
|
|
|
6113
6113
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6114
6114
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6115
6115
|
}, "strip", z.ZodTypeAny, {
|
|
6116
|
-
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";
|
|
6117
6116
|
createdAt: string;
|
|
6118
6117
|
updatedAt: string;
|
|
6118
|
+
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";
|
|
6119
6119
|
id: string;
|
|
6120
|
-
pay: {
|
|
6121
|
-
rate: number;
|
|
6122
|
-
unit: "DAILY" | "HOURLY";
|
|
6123
|
-
};
|
|
6124
6120
|
user: {
|
|
6125
6121
|
createdAt: string;
|
|
6126
6122
|
updatedAt: string;
|
|
@@ -6132,6 +6128,10 @@ export declare const bookingsContractRouter: {
|
|
|
6132
6128
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
6133
6129
|
};
|
|
6134
6130
|
userId: string;
|
|
6131
|
+
pay: {
|
|
6132
|
+
rate: number;
|
|
6133
|
+
unit: "DAILY" | "HOURLY";
|
|
6134
|
+
};
|
|
6135
6135
|
startDate: string;
|
|
6136
6136
|
worker: {
|
|
6137
6137
|
createdAt: string;
|
|
@@ -6142,12 +6142,13 @@ export declare const bookingsContractRouter: {
|
|
|
6142
6142
|
phoneNumbers: {
|
|
6143
6143
|
phoneNumber: string;
|
|
6144
6144
|
isPrimary: boolean;
|
|
6145
|
-
description?: string | undefined;
|
|
6146
6145
|
id?: string | undefined;
|
|
6146
|
+
description?: string | undefined;
|
|
6147
6147
|
}[];
|
|
6148
6148
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
6149
6149
|
hasTools: boolean;
|
|
6150
6150
|
hasPpe: boolean;
|
|
6151
|
+
email?: string | null | undefined;
|
|
6151
6152
|
location?: {
|
|
6152
6153
|
address?: string | null | undefined;
|
|
6153
6154
|
postcode?: string | null | undefined;
|
|
@@ -6157,7 +6158,6 @@ export declare const bookingsContractRouter: {
|
|
|
6157
6158
|
postTown?: string | null | undefined;
|
|
6158
6159
|
areaCovered?: string | null | undefined;
|
|
6159
6160
|
} | null | undefined;
|
|
6160
|
-
email?: string | null | undefined;
|
|
6161
6161
|
nino?: string | null | undefined;
|
|
6162
6162
|
dateOfBirth?: string | null | undefined;
|
|
6163
6163
|
bio?: string | null | undefined;
|
|
@@ -6192,12 +6192,12 @@ export declare const bookingsContractRouter: {
|
|
|
6192
6192
|
distanceKm?: number | null | undefined;
|
|
6193
6193
|
};
|
|
6194
6194
|
job: {
|
|
6195
|
-
description: string;
|
|
6196
|
-
numberOfPositions: number;
|
|
6197
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
6198
6195
|
createdAt: string;
|
|
6199
6196
|
updatedAt: string;
|
|
6197
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
6200
6198
|
id: string;
|
|
6199
|
+
description: string;
|
|
6200
|
+
numberOfPositions: number;
|
|
6201
6201
|
pay: {
|
|
6202
6202
|
rateUnit: "DAILY" | "HOURLY";
|
|
6203
6203
|
rate: number;
|
|
@@ -6211,25 +6211,25 @@ export declare const bookingsContractRouter: {
|
|
|
6211
6211
|
qualificationTypeId?: string | null | undefined;
|
|
6212
6212
|
}[];
|
|
6213
6213
|
currentCollaboration: {
|
|
6214
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6215
6214
|
createdAt: string;
|
|
6216
6215
|
updatedAt: string;
|
|
6216
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6217
6217
|
id: string;
|
|
6218
|
-
|
|
6218
|
+
userId: string;
|
|
6219
|
+
company?: {
|
|
6219
6220
|
id: string;
|
|
6220
6221
|
name: string;
|
|
6221
|
-
};
|
|
6222
|
-
client
|
|
6222
|
+
} | undefined;
|
|
6223
|
+
client?: {
|
|
6223
6224
|
id: string;
|
|
6224
6225
|
name: string;
|
|
6225
|
-
};
|
|
6226
|
-
user
|
|
6226
|
+
} | undefined;
|
|
6227
|
+
user?: {
|
|
6227
6228
|
id: string;
|
|
6228
6229
|
firstName: string;
|
|
6229
6230
|
lastName: string;
|
|
6230
6231
|
email: string;
|
|
6231
|
-
};
|
|
6232
|
-
userId: string;
|
|
6232
|
+
} | undefined;
|
|
6233
6233
|
newCollaboration?: {
|
|
6234
6234
|
id: string;
|
|
6235
6235
|
} | null | undefined;
|
|
@@ -6247,14 +6247,10 @@ export declare const bookingsContractRouter: {
|
|
|
6247
6247
|
};
|
|
6248
6248
|
endDate?: string | null | undefined;
|
|
6249
6249
|
}, {
|
|
6250
|
-
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";
|
|
6251
6250
|
createdAt: string | Date;
|
|
6252
6251
|
updatedAt: string | Date;
|
|
6252
|
+
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";
|
|
6253
6253
|
id: string;
|
|
6254
|
-
pay: {
|
|
6255
|
-
rate: number;
|
|
6256
|
-
unit: "DAILY" | "HOURLY";
|
|
6257
|
-
};
|
|
6258
6254
|
user: {
|
|
6259
6255
|
createdAt: string | Date;
|
|
6260
6256
|
updatedAt: string | Date;
|
|
@@ -6266,6 +6262,10 @@ export declare const bookingsContractRouter: {
|
|
|
6266
6262
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
6267
6263
|
};
|
|
6268
6264
|
userId: string;
|
|
6265
|
+
pay: {
|
|
6266
|
+
rate: number;
|
|
6267
|
+
unit: "DAILY" | "HOURLY";
|
|
6268
|
+
};
|
|
6269
6269
|
startDate: string | Date;
|
|
6270
6270
|
worker: {
|
|
6271
6271
|
createdAt: string | Date;
|
|
@@ -6276,6 +6276,7 @@ export declare const bookingsContractRouter: {
|
|
|
6276
6276
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
6277
6277
|
hasTools: boolean;
|
|
6278
6278
|
hasPpe: boolean;
|
|
6279
|
+
email?: string | null | undefined;
|
|
6279
6280
|
location?: {
|
|
6280
6281
|
address?: string | null | undefined;
|
|
6281
6282
|
postcode?: string | null | undefined;
|
|
@@ -6285,11 +6286,10 @@ export declare const bookingsContractRouter: {
|
|
|
6285
6286
|
postTown?: string | null | undefined;
|
|
6286
6287
|
areaCovered?: string | null | undefined;
|
|
6287
6288
|
} | null | undefined;
|
|
6288
|
-
email?: string | null | undefined;
|
|
6289
6289
|
phoneNumbers?: {
|
|
6290
6290
|
phoneNumber: string;
|
|
6291
|
-
description?: string | undefined;
|
|
6292
6291
|
id?: string | undefined;
|
|
6292
|
+
description?: string | undefined;
|
|
6293
6293
|
isPrimary?: boolean | undefined;
|
|
6294
6294
|
}[] | undefined;
|
|
6295
6295
|
nino?: string | null | undefined;
|
|
@@ -6326,12 +6326,12 @@ export declare const bookingsContractRouter: {
|
|
|
6326
6326
|
distanceKm?: number | null | undefined;
|
|
6327
6327
|
};
|
|
6328
6328
|
job: {
|
|
6329
|
-
description: string;
|
|
6330
|
-
numberOfPositions: number;
|
|
6331
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
6332
6329
|
createdAt: string | Date;
|
|
6333
6330
|
updatedAt: string | Date;
|
|
6331
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
6334
6332
|
id: string;
|
|
6333
|
+
description: string;
|
|
6334
|
+
numberOfPositions: number;
|
|
6335
6335
|
pay: {
|
|
6336
6336
|
rateUnit: "DAILY" | "HOURLY";
|
|
6337
6337
|
rate: number;
|
|
@@ -6340,25 +6340,25 @@ export declare const bookingsContractRouter: {
|
|
|
6340
6340
|
};
|
|
6341
6341
|
tradeId: string;
|
|
6342
6342
|
currentCollaboration: {
|
|
6343
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6344
6343
|
createdAt: string | Date;
|
|
6345
6344
|
updatedAt: string | Date;
|
|
6345
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6346
6346
|
id: string;
|
|
6347
|
-
|
|
6347
|
+
userId: string;
|
|
6348
|
+
company?: {
|
|
6348
6349
|
id: string;
|
|
6349
6350
|
name: string;
|
|
6350
|
-
};
|
|
6351
|
-
client
|
|
6351
|
+
} | undefined;
|
|
6352
|
+
client?: {
|
|
6352
6353
|
id: string;
|
|
6353
6354
|
name: string;
|
|
6354
|
-
};
|
|
6355
|
-
user
|
|
6355
|
+
} | undefined;
|
|
6356
|
+
user?: {
|
|
6356
6357
|
id: string;
|
|
6357
6358
|
firstName: string;
|
|
6358
6359
|
lastName: string;
|
|
6359
6360
|
email: string;
|
|
6360
|
-
};
|
|
6361
|
-
userId: string;
|
|
6361
|
+
} | undefined;
|
|
6362
6362
|
newCollaboration?: {
|
|
6363
6363
|
id: string;
|
|
6364
6364
|
} | null | undefined;
|
|
@@ -6557,12 +6557,12 @@ export declare const bookingsContractRouter: {
|
|
|
6557
6557
|
}, "strip", z.ZodTypeAny, {
|
|
6558
6558
|
phoneNumber: string;
|
|
6559
6559
|
isPrimary: boolean;
|
|
6560
|
-
description?: string | undefined;
|
|
6561
6560
|
id?: string | undefined;
|
|
6561
|
+
description?: string | undefined;
|
|
6562
6562
|
}, {
|
|
6563
6563
|
phoneNumber: string;
|
|
6564
|
-
description?: string | undefined;
|
|
6565
6564
|
id?: string | undefined;
|
|
6565
|
+
description?: string | undefined;
|
|
6566
6566
|
isPrimary?: boolean | undefined;
|
|
6567
6567
|
}>, "many">>>;
|
|
6568
6568
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -6678,12 +6678,13 @@ export declare const bookingsContractRouter: {
|
|
|
6678
6678
|
phoneNumbers: {
|
|
6679
6679
|
phoneNumber: string;
|
|
6680
6680
|
isPrimary: boolean;
|
|
6681
|
-
description?: string | undefined;
|
|
6682
6681
|
id?: string | undefined;
|
|
6682
|
+
description?: string | undefined;
|
|
6683
6683
|
}[];
|
|
6684
6684
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
6685
6685
|
hasTools: boolean;
|
|
6686
6686
|
hasPpe: boolean;
|
|
6687
|
+
email?: string | null | undefined;
|
|
6687
6688
|
location?: {
|
|
6688
6689
|
address?: string | null | undefined;
|
|
6689
6690
|
postcode?: string | null | undefined;
|
|
@@ -6693,7 +6694,6 @@ export declare const bookingsContractRouter: {
|
|
|
6693
6694
|
postTown?: string | null | undefined;
|
|
6694
6695
|
areaCovered?: string | null | undefined;
|
|
6695
6696
|
} | null | undefined;
|
|
6696
|
-
email?: string | null | undefined;
|
|
6697
6697
|
nino?: string | null | undefined;
|
|
6698
6698
|
dateOfBirth?: string | null | undefined;
|
|
6699
6699
|
bio?: string | null | undefined;
|
|
@@ -6735,6 +6735,7 @@ export declare const bookingsContractRouter: {
|
|
|
6735
6735
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
6736
6736
|
hasTools: boolean;
|
|
6737
6737
|
hasPpe: boolean;
|
|
6738
|
+
email?: string | null | undefined;
|
|
6738
6739
|
location?: {
|
|
6739
6740
|
address?: string | null | undefined;
|
|
6740
6741
|
postcode?: string | null | undefined;
|
|
@@ -6744,11 +6745,10 @@ export declare const bookingsContractRouter: {
|
|
|
6744
6745
|
postTown?: string | null | undefined;
|
|
6745
6746
|
areaCovered?: string | null | undefined;
|
|
6746
6747
|
} | null | undefined;
|
|
6747
|
-
email?: string | null | undefined;
|
|
6748
6748
|
phoneNumbers?: {
|
|
6749
6749
|
phoneNumber: string;
|
|
6750
|
-
description?: string | undefined;
|
|
6751
6750
|
id?: string | undefined;
|
|
6751
|
+
description?: string | undefined;
|
|
6752
6752
|
isPrimary?: boolean | undefined;
|
|
6753
6753
|
}[] | undefined;
|
|
6754
6754
|
nino?: string | null | undefined;
|
|
@@ -6885,7 +6885,7 @@ export declare const bookingsContractRouter: {
|
|
|
6885
6885
|
}>, "many">>>;
|
|
6886
6886
|
currentCollaboration: z.ZodNullable<z.ZodObject<{
|
|
6887
6887
|
id: z.ZodString;
|
|
6888
|
-
company: z.ZodObject<{
|
|
6888
|
+
company: z.ZodOptional<z.ZodObject<{
|
|
6889
6889
|
id: z.ZodString;
|
|
6890
6890
|
name: z.ZodString;
|
|
6891
6891
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6894,8 +6894,8 @@ export declare const bookingsContractRouter: {
|
|
|
6894
6894
|
}, {
|
|
6895
6895
|
id: string;
|
|
6896
6896
|
name: string;
|
|
6897
|
-
}
|
|
6898
|
-
client: z.ZodObject<{
|
|
6897
|
+
}>>;
|
|
6898
|
+
client: z.ZodOptional<z.ZodObject<{
|
|
6899
6899
|
id: z.ZodString;
|
|
6900
6900
|
name: z.ZodString;
|
|
6901
6901
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6904,8 +6904,8 @@ export declare const bookingsContractRouter: {
|
|
|
6904
6904
|
}, {
|
|
6905
6905
|
id: string;
|
|
6906
6906
|
name: string;
|
|
6907
|
-
}
|
|
6908
|
-
user: z.ZodObject<{
|
|
6907
|
+
}>>;
|
|
6908
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
6909
6909
|
id: z.ZodString;
|
|
6910
6910
|
firstName: z.ZodString;
|
|
6911
6911
|
lastName: z.ZodString;
|
|
@@ -6920,7 +6920,7 @@ export declare const bookingsContractRouter: {
|
|
|
6920
6920
|
firstName: string;
|
|
6921
6921
|
lastName: string;
|
|
6922
6922
|
email: string;
|
|
6923
|
-
}
|
|
6923
|
+
}>>;
|
|
6924
6924
|
status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT"]>;
|
|
6925
6925
|
userId: z.ZodString;
|
|
6926
6926
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -6933,48 +6933,48 @@ export declare const bookingsContractRouter: {
|
|
|
6933
6933
|
id: string;
|
|
6934
6934
|
}>>>;
|
|
6935
6935
|
}, "strip", z.ZodTypeAny, {
|
|
6936
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6937
6936
|
createdAt: string;
|
|
6938
6937
|
updatedAt: string;
|
|
6938
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6939
6939
|
id: string;
|
|
6940
|
-
|
|
6940
|
+
userId: string;
|
|
6941
|
+
company?: {
|
|
6941
6942
|
id: string;
|
|
6942
6943
|
name: string;
|
|
6943
|
-
};
|
|
6944
|
-
client
|
|
6944
|
+
} | undefined;
|
|
6945
|
+
client?: {
|
|
6945
6946
|
id: string;
|
|
6946
6947
|
name: string;
|
|
6947
|
-
};
|
|
6948
|
-
user
|
|
6948
|
+
} | undefined;
|
|
6949
|
+
user?: {
|
|
6949
6950
|
id: string;
|
|
6950
6951
|
firstName: string;
|
|
6951
6952
|
lastName: string;
|
|
6952
6953
|
email: string;
|
|
6953
|
-
};
|
|
6954
|
-
userId: string;
|
|
6954
|
+
} | undefined;
|
|
6955
6955
|
newCollaboration?: {
|
|
6956
6956
|
id: string;
|
|
6957
6957
|
} | null | undefined;
|
|
6958
6958
|
}, {
|
|
6959
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6960
6959
|
createdAt: string | Date;
|
|
6961
6960
|
updatedAt: string | Date;
|
|
6961
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6962
6962
|
id: string;
|
|
6963
|
-
|
|
6963
|
+
userId: string;
|
|
6964
|
+
company?: {
|
|
6964
6965
|
id: string;
|
|
6965
6966
|
name: string;
|
|
6966
|
-
};
|
|
6967
|
-
client
|
|
6967
|
+
} | undefined;
|
|
6968
|
+
client?: {
|
|
6968
6969
|
id: string;
|
|
6969
6970
|
name: string;
|
|
6970
|
-
};
|
|
6971
|
-
user
|
|
6971
|
+
} | undefined;
|
|
6972
|
+
user?: {
|
|
6972
6973
|
id: string;
|
|
6973
6974
|
firstName: string;
|
|
6974
6975
|
lastName: string;
|
|
6975
6976
|
email: string;
|
|
6976
|
-
};
|
|
6977
|
-
userId: string;
|
|
6977
|
+
} | undefined;
|
|
6978
6978
|
newCollaboration?: {
|
|
6979
6979
|
id: string;
|
|
6980
6980
|
} | null | undefined;
|
|
@@ -6982,12 +6982,12 @@ export declare const bookingsContractRouter: {
|
|
|
6982
6982
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6983
6983
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
6984
6984
|
}, "strip", z.ZodTypeAny, {
|
|
6985
|
-
description: string;
|
|
6986
|
-
numberOfPositions: number;
|
|
6987
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
6988
6985
|
createdAt: string;
|
|
6989
6986
|
updatedAt: string;
|
|
6987
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
6990
6988
|
id: string;
|
|
6989
|
+
description: string;
|
|
6990
|
+
numberOfPositions: number;
|
|
6991
6991
|
pay: {
|
|
6992
6992
|
rateUnit: "DAILY" | "HOURLY";
|
|
6993
6993
|
rate: number;
|
|
@@ -7001,25 +7001,25 @@ export declare const bookingsContractRouter: {
|
|
|
7001
7001
|
qualificationTypeId?: string | null | undefined;
|
|
7002
7002
|
}[];
|
|
7003
7003
|
currentCollaboration: {
|
|
7004
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
7005
7004
|
createdAt: string;
|
|
7006
7005
|
updatedAt: string;
|
|
7006
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
7007
7007
|
id: string;
|
|
7008
|
-
|
|
7008
|
+
userId: string;
|
|
7009
|
+
company?: {
|
|
7009
7010
|
id: string;
|
|
7010
7011
|
name: string;
|
|
7011
|
-
};
|
|
7012
|
-
client
|
|
7012
|
+
} | undefined;
|
|
7013
|
+
client?: {
|
|
7013
7014
|
id: string;
|
|
7014
7015
|
name: string;
|
|
7015
|
-
};
|
|
7016
|
-
user
|
|
7016
|
+
} | undefined;
|
|
7017
|
+
user?: {
|
|
7017
7018
|
id: string;
|
|
7018
7019
|
firstName: string;
|
|
7019
7020
|
lastName: string;
|
|
7020
7021
|
email: string;
|
|
7021
|
-
};
|
|
7022
|
-
userId: string;
|
|
7022
|
+
} | undefined;
|
|
7023
7023
|
newCollaboration?: {
|
|
7024
7024
|
id: string;
|
|
7025
7025
|
} | null | undefined;
|
|
@@ -7035,12 +7035,12 @@ export declare const bookingsContractRouter: {
|
|
|
7035
7035
|
areaCovered?: string | null | undefined;
|
|
7036
7036
|
} | null | undefined;
|
|
7037
7037
|
}, {
|
|
7038
|
-
description: string;
|
|
7039
|
-
numberOfPositions: number;
|
|
7040
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
7041
7038
|
createdAt: string | Date;
|
|
7042
7039
|
updatedAt: string | Date;
|
|
7040
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
7043
7041
|
id: string;
|
|
7042
|
+
description: string;
|
|
7043
|
+
numberOfPositions: number;
|
|
7044
7044
|
pay: {
|
|
7045
7045
|
rateUnit: "DAILY" | "HOURLY";
|
|
7046
7046
|
rate: number;
|
|
@@ -7049,25 +7049,25 @@ export declare const bookingsContractRouter: {
|
|
|
7049
7049
|
};
|
|
7050
7050
|
tradeId: string;
|
|
7051
7051
|
currentCollaboration: {
|
|
7052
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
7053
7052
|
createdAt: string | Date;
|
|
7054
7053
|
updatedAt: string | Date;
|
|
7054
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
7055
7055
|
id: string;
|
|
7056
|
-
|
|
7056
|
+
userId: string;
|
|
7057
|
+
company?: {
|
|
7057
7058
|
id: string;
|
|
7058
7059
|
name: string;
|
|
7059
|
-
};
|
|
7060
|
-
client
|
|
7060
|
+
} | undefined;
|
|
7061
|
+
client?: {
|
|
7061
7062
|
id: string;
|
|
7062
7063
|
name: string;
|
|
7063
|
-
};
|
|
7064
|
-
user
|
|
7064
|
+
} | undefined;
|
|
7065
|
+
user?: {
|
|
7065
7066
|
id: string;
|
|
7066
7067
|
firstName: string;
|
|
7067
7068
|
lastName: string;
|
|
7068
7069
|
email: string;
|
|
7069
|
-
};
|
|
7070
|
-
userId: string;
|
|
7070
|
+
} | undefined;
|
|
7071
7071
|
newCollaboration?: {
|
|
7072
7072
|
id: string;
|
|
7073
7073
|
} | null | undefined;
|
|
@@ -7092,14 +7092,10 @@ export declare const bookingsContractRouter: {
|
|
|
7092
7092
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
7093
7093
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
7094
7094
|
}, "strip", z.ZodTypeAny, {
|
|
7095
|
-
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";
|
|
7096
7095
|
createdAt: string;
|
|
7097
7096
|
updatedAt: string;
|
|
7097
|
+
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";
|
|
7098
7098
|
id: string;
|
|
7099
|
-
pay: {
|
|
7100
|
-
rate: number;
|
|
7101
|
-
unit: "DAILY" | "HOURLY";
|
|
7102
|
-
};
|
|
7103
7099
|
user: {
|
|
7104
7100
|
createdAt: string;
|
|
7105
7101
|
updatedAt: string;
|
|
@@ -7111,6 +7107,10 @@ export declare const bookingsContractRouter: {
|
|
|
7111
7107
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
7112
7108
|
};
|
|
7113
7109
|
userId: string;
|
|
7110
|
+
pay: {
|
|
7111
|
+
rate: number;
|
|
7112
|
+
unit: "DAILY" | "HOURLY";
|
|
7113
|
+
};
|
|
7114
7114
|
startDate: string;
|
|
7115
7115
|
worker: {
|
|
7116
7116
|
createdAt: string;
|
|
@@ -7121,12 +7121,13 @@ export declare const bookingsContractRouter: {
|
|
|
7121
7121
|
phoneNumbers: {
|
|
7122
7122
|
phoneNumber: string;
|
|
7123
7123
|
isPrimary: boolean;
|
|
7124
|
-
description?: string | undefined;
|
|
7125
7124
|
id?: string | undefined;
|
|
7125
|
+
description?: string | undefined;
|
|
7126
7126
|
}[];
|
|
7127
7127
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
7128
7128
|
hasTools: boolean;
|
|
7129
7129
|
hasPpe: boolean;
|
|
7130
|
+
email?: string | null | undefined;
|
|
7130
7131
|
location?: {
|
|
7131
7132
|
address?: string | null | undefined;
|
|
7132
7133
|
postcode?: string | null | undefined;
|
|
@@ -7136,7 +7137,6 @@ export declare const bookingsContractRouter: {
|
|
|
7136
7137
|
postTown?: string | null | undefined;
|
|
7137
7138
|
areaCovered?: string | null | undefined;
|
|
7138
7139
|
} | null | undefined;
|
|
7139
|
-
email?: string | null | undefined;
|
|
7140
7140
|
nino?: string | null | undefined;
|
|
7141
7141
|
dateOfBirth?: string | null | undefined;
|
|
7142
7142
|
bio?: string | null | undefined;
|
|
@@ -7171,12 +7171,12 @@ export declare const bookingsContractRouter: {
|
|
|
7171
7171
|
distanceKm?: number | null | undefined;
|
|
7172
7172
|
};
|
|
7173
7173
|
job: {
|
|
7174
|
-
description: string;
|
|
7175
|
-
numberOfPositions: number;
|
|
7176
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
7177
7174
|
createdAt: string;
|
|
7178
7175
|
updatedAt: string;
|
|
7176
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
7179
7177
|
id: string;
|
|
7178
|
+
description: string;
|
|
7179
|
+
numberOfPositions: number;
|
|
7180
7180
|
pay: {
|
|
7181
7181
|
rateUnit: "DAILY" | "HOURLY";
|
|
7182
7182
|
rate: number;
|
|
@@ -7190,25 +7190,25 @@ export declare const bookingsContractRouter: {
|
|
|
7190
7190
|
qualificationTypeId?: string | null | undefined;
|
|
7191
7191
|
}[];
|
|
7192
7192
|
currentCollaboration: {
|
|
7193
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
7194
7193
|
createdAt: string;
|
|
7195
7194
|
updatedAt: string;
|
|
7195
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
7196
7196
|
id: string;
|
|
7197
|
-
|
|
7197
|
+
userId: string;
|
|
7198
|
+
company?: {
|
|
7198
7199
|
id: string;
|
|
7199
7200
|
name: string;
|
|
7200
|
-
};
|
|
7201
|
-
client
|
|
7201
|
+
} | undefined;
|
|
7202
|
+
client?: {
|
|
7202
7203
|
id: string;
|
|
7203
7204
|
name: string;
|
|
7204
|
-
};
|
|
7205
|
-
user
|
|
7205
|
+
} | undefined;
|
|
7206
|
+
user?: {
|
|
7206
7207
|
id: string;
|
|
7207
7208
|
firstName: string;
|
|
7208
7209
|
lastName: string;
|
|
7209
7210
|
email: string;
|
|
7210
|
-
};
|
|
7211
|
-
userId: string;
|
|
7211
|
+
} | undefined;
|
|
7212
7212
|
newCollaboration?: {
|
|
7213
7213
|
id: string;
|
|
7214
7214
|
} | null | undefined;
|
|
@@ -7226,14 +7226,10 @@ export declare const bookingsContractRouter: {
|
|
|
7226
7226
|
};
|
|
7227
7227
|
endDate?: string | null | undefined;
|
|
7228
7228
|
}, {
|
|
7229
|
-
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";
|
|
7230
7229
|
createdAt: string | Date;
|
|
7231
7230
|
updatedAt: string | Date;
|
|
7231
|
+
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";
|
|
7232
7232
|
id: string;
|
|
7233
|
-
pay: {
|
|
7234
|
-
rate: number;
|
|
7235
|
-
unit: "DAILY" | "HOURLY";
|
|
7236
|
-
};
|
|
7237
7233
|
user: {
|
|
7238
7234
|
createdAt: string | Date;
|
|
7239
7235
|
updatedAt: string | Date;
|
|
@@ -7245,6 +7241,10 @@ export declare const bookingsContractRouter: {
|
|
|
7245
7241
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING")[] | undefined;
|
|
7246
7242
|
};
|
|
7247
7243
|
userId: string;
|
|
7244
|
+
pay: {
|
|
7245
|
+
rate: number;
|
|
7246
|
+
unit: "DAILY" | "HOURLY";
|
|
7247
|
+
};
|
|
7248
7248
|
startDate: string | Date;
|
|
7249
7249
|
worker: {
|
|
7250
7250
|
createdAt: string | Date;
|
|
@@ -7255,6 +7255,7 @@ export declare const bookingsContractRouter: {
|
|
|
7255
7255
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
7256
7256
|
hasTools: boolean;
|
|
7257
7257
|
hasPpe: boolean;
|
|
7258
|
+
email?: string | null | undefined;
|
|
7258
7259
|
location?: {
|
|
7259
7260
|
address?: string | null | undefined;
|
|
7260
7261
|
postcode?: string | null | undefined;
|
|
@@ -7264,11 +7265,10 @@ export declare const bookingsContractRouter: {
|
|
|
7264
7265
|
postTown?: string | null | undefined;
|
|
7265
7266
|
areaCovered?: string | null | undefined;
|
|
7266
7267
|
} | null | undefined;
|
|
7267
|
-
email?: string | null | undefined;
|
|
7268
7268
|
phoneNumbers?: {
|
|
7269
7269
|
phoneNumber: string;
|
|
7270
|
-
description?: string | undefined;
|
|
7271
7270
|
id?: string | undefined;
|
|
7271
|
+
description?: string | undefined;
|
|
7272
7272
|
isPrimary?: boolean | undefined;
|
|
7273
7273
|
}[] | undefined;
|
|
7274
7274
|
nino?: string | null | undefined;
|
|
@@ -7305,12 +7305,12 @@ export declare const bookingsContractRouter: {
|
|
|
7305
7305
|
distanceKm?: number | null | undefined;
|
|
7306
7306
|
};
|
|
7307
7307
|
job: {
|
|
7308
|
-
description: string;
|
|
7309
|
-
numberOfPositions: number;
|
|
7310
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
7311
7308
|
createdAt: string | Date;
|
|
7312
7309
|
updatedAt: string | Date;
|
|
7310
|
+
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
7313
7311
|
id: string;
|
|
7312
|
+
description: string;
|
|
7313
|
+
numberOfPositions: number;
|
|
7314
7314
|
pay: {
|
|
7315
7315
|
rateUnit: "DAILY" | "HOURLY";
|
|
7316
7316
|
rate: number;
|
|
@@ -7319,25 +7319,25 @@ export declare const bookingsContractRouter: {
|
|
|
7319
7319
|
};
|
|
7320
7320
|
tradeId: string;
|
|
7321
7321
|
currentCollaboration: {
|
|
7322
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
7323
7322
|
createdAt: string | Date;
|
|
7324
7323
|
updatedAt: string | Date;
|
|
7324
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
7325
7325
|
id: string;
|
|
7326
|
-
|
|
7326
|
+
userId: string;
|
|
7327
|
+
company?: {
|
|
7327
7328
|
id: string;
|
|
7328
7329
|
name: string;
|
|
7329
|
-
};
|
|
7330
|
-
client
|
|
7330
|
+
} | undefined;
|
|
7331
|
+
client?: {
|
|
7331
7332
|
id: string;
|
|
7332
7333
|
name: string;
|
|
7333
|
-
};
|
|
7334
|
-
user
|
|
7334
|
+
} | undefined;
|
|
7335
|
+
user?: {
|
|
7335
7336
|
id: string;
|
|
7336
7337
|
firstName: string;
|
|
7337
7338
|
lastName: string;
|
|
7338
7339
|
email: string;
|
|
7339
|
-
};
|
|
7340
|
-
userId: string;
|
|
7340
|
+
} | undefined;
|
|
7341
7341
|
newCollaboration?: {
|
|
7342
7342
|
id: string;
|
|
7343
7343
|
} | null | undefined;
|