@dakkitor/api-contracts 1.1.21 → 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 +1087 -1087
- package/dist/bookings/bookings.contract.d.ts +906 -906
- package/dist/collaborations/collaborations.contract.d.ts +511 -511
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.js +5 -7
- package/dist/jobs/jobs.contract.d.ts +387 -387
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +6 -6
- package/dist/workers/workers.contract.d.ts +418 -418
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +5 -1
- 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;
|
|
@@ -94,7 +94,7 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
94
94
|
firstName: z.ZodString;
|
|
95
95
|
lastName: z.ZodString;
|
|
96
96
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
-
phoneNumbers: z.ZodArray<z.ZodObject<{
|
|
97
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
98
98
|
id: z.ZodOptional<z.ZodString>;
|
|
99
99
|
phoneNumber: z.ZodString;
|
|
100
100
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -102,14 +102,14 @@ 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
|
-
}>, "many"
|
|
112
|
+
}>, "many">>>;
|
|
113
113
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
114
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
115
115
|
bio: 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;
|
|
@@ -277,15 +277,10 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
277
277
|
id: string;
|
|
278
278
|
firstName: string;
|
|
279
279
|
lastName: string;
|
|
280
|
-
phoneNumbers: {
|
|
281
|
-
phoneNumber: string;
|
|
282
|
-
description?: string | undefined;
|
|
283
|
-
id?: string | undefined;
|
|
284
|
-
isPrimary?: boolean | undefined;
|
|
285
|
-
}[];
|
|
286
280
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
287
281
|
hasTools: boolean;
|
|
288
282
|
hasPpe: boolean;
|
|
283
|
+
email?: string | null | undefined;
|
|
289
284
|
location?: {
|
|
290
285
|
address?: string | null | undefined;
|
|
291
286
|
postcode?: string | null | undefined;
|
|
@@ -295,7 +290,12 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
295
290
|
postTown?: string | null | undefined;
|
|
296
291
|
areaCovered?: string | null | undefined;
|
|
297
292
|
} | null | undefined;
|
|
298
|
-
|
|
293
|
+
phoneNumbers?: {
|
|
294
|
+
phoneNumber: string;
|
|
295
|
+
id?: string | undefined;
|
|
296
|
+
description?: string | undefined;
|
|
297
|
+
isPrimary?: boolean | undefined;
|
|
298
|
+
}[] | undefined;
|
|
299
299
|
nino?: string | null | undefined;
|
|
300
300
|
dateOfBirth?: string | Date | null | undefined;
|
|
301
301
|
bio?: string | null | undefined;
|
|
@@ -376,7 +376,7 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
376
376
|
pay: z.ZodObject<{
|
|
377
377
|
rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
378
378
|
rate: z.ZodNumber;
|
|
379
|
-
rateMax: z.
|
|
379
|
+
rateMax: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
380
380
|
receivedRate: z.ZodNumber;
|
|
381
381
|
}, "strip", z.ZodTypeAny, {
|
|
382
382
|
rateUnit: "DAILY" | "HOURLY";
|
|
@@ -415,7 +415,7 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
415
415
|
areaCovered?: string | null | undefined;
|
|
416
416
|
}>>>;
|
|
417
417
|
tradeId: z.ZodString;
|
|
418
|
-
jobQualifications: z.ZodArray<z.ZodObject<{
|
|
418
|
+
jobQualifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
419
419
|
id: z.ZodString;
|
|
420
420
|
qualificationId: z.ZodString;
|
|
421
421
|
qualificationTypeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -427,10 +427,10 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
427
427
|
id: string;
|
|
428
428
|
qualificationId: string;
|
|
429
429
|
qualificationTypeId?: string | null | undefined;
|
|
430
|
-
}>, "many"
|
|
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;
|
|
@@ -593,31 +593,26 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
593
593
|
rateMax?: number | null | undefined;
|
|
594
594
|
};
|
|
595
595
|
tradeId: string;
|
|
596
|
-
jobQualifications: {
|
|
597
|
-
id: string;
|
|
598
|
-
qualificationId: string;
|
|
599
|
-
qualificationTypeId?: string | null | undefined;
|
|
600
|
-
}[];
|
|
601
596
|
currentCollaboration: {
|
|
602
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
603
597
|
createdAt: string | Date;
|
|
604
598
|
updatedAt: string | Date;
|
|
599
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
605
600
|
id: string;
|
|
606
|
-
|
|
601
|
+
userId: string;
|
|
602
|
+
company?: {
|
|
607
603
|
id: string;
|
|
608
604
|
name: string;
|
|
609
|
-
};
|
|
610
|
-
client
|
|
605
|
+
} | undefined;
|
|
606
|
+
client?: {
|
|
611
607
|
id: string;
|
|
612
608
|
name: string;
|
|
613
|
-
};
|
|
614
|
-
user
|
|
609
|
+
} | undefined;
|
|
610
|
+
user?: {
|
|
615
611
|
id: string;
|
|
616
612
|
firstName: string;
|
|
617
613
|
lastName: string;
|
|
618
614
|
email: string;
|
|
619
|
-
};
|
|
620
|
-
userId: string;
|
|
615
|
+
} | undefined;
|
|
621
616
|
newCollaboration?: {
|
|
622
617
|
id: string;
|
|
623
618
|
} | null | undefined;
|
|
@@ -632,19 +627,20 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
632
627
|
postTown?: string | null | undefined;
|
|
633
628
|
areaCovered?: string | null | undefined;
|
|
634
629
|
} | null | undefined;
|
|
630
|
+
jobQualifications?: {
|
|
631
|
+
id: string;
|
|
632
|
+
qualificationId: string;
|
|
633
|
+
qualificationTypeId?: string | null | undefined;
|
|
634
|
+
}[] | undefined;
|
|
635
635
|
}>;
|
|
636
636
|
userId: z.ZodString;
|
|
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;
|
|
@@ -797,15 +797,10 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
797
797
|
id: string;
|
|
798
798
|
firstName: string;
|
|
799
799
|
lastName: string;
|
|
800
|
-
phoneNumbers: {
|
|
801
|
-
phoneNumber: string;
|
|
802
|
-
description?: string | undefined;
|
|
803
|
-
id?: string | undefined;
|
|
804
|
-
isPrimary?: boolean | undefined;
|
|
805
|
-
}[];
|
|
806
800
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
807
801
|
hasTools: boolean;
|
|
808
802
|
hasPpe: boolean;
|
|
803
|
+
email?: string | null | undefined;
|
|
809
804
|
location?: {
|
|
810
805
|
address?: string | null | undefined;
|
|
811
806
|
postcode?: string | null | undefined;
|
|
@@ -815,7 +810,12 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
815
810
|
postTown?: string | null | undefined;
|
|
816
811
|
areaCovered?: string | null | undefined;
|
|
817
812
|
} | null | undefined;
|
|
818
|
-
|
|
813
|
+
phoneNumbers?: {
|
|
814
|
+
phoneNumber: string;
|
|
815
|
+
id?: string | undefined;
|
|
816
|
+
description?: string | undefined;
|
|
817
|
+
isPrimary?: boolean | undefined;
|
|
818
|
+
}[] | undefined;
|
|
819
819
|
nino?: string | null | undefined;
|
|
820
820
|
dateOfBirth?: string | Date | null | undefined;
|
|
821
821
|
bio?: 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;
|
|
@@ -863,31 +863,26 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
863
863
|
rateMax?: number | null | undefined;
|
|
864
864
|
};
|
|
865
865
|
tradeId: string;
|
|
866
|
-
jobQualifications: {
|
|
867
|
-
id: string;
|
|
868
|
-
qualificationId: string;
|
|
869
|
-
qualificationTypeId?: string | null | undefined;
|
|
870
|
-
}[];
|
|
871
866
|
currentCollaboration: {
|
|
872
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
873
867
|
createdAt: string | Date;
|
|
874
868
|
updatedAt: string | Date;
|
|
869
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
875
870
|
id: string;
|
|
876
|
-
|
|
871
|
+
userId: string;
|
|
872
|
+
company?: {
|
|
877
873
|
id: string;
|
|
878
874
|
name: string;
|
|
879
|
-
};
|
|
880
|
-
client
|
|
875
|
+
} | undefined;
|
|
876
|
+
client?: {
|
|
881
877
|
id: string;
|
|
882
878
|
name: string;
|
|
883
|
-
};
|
|
884
|
-
user
|
|
879
|
+
} | undefined;
|
|
880
|
+
user?: {
|
|
885
881
|
id: string;
|
|
886
882
|
firstName: string;
|
|
887
883
|
lastName: string;
|
|
888
884
|
email: string;
|
|
889
|
-
};
|
|
890
|
-
userId: string;
|
|
885
|
+
} | undefined;
|
|
891
886
|
newCollaboration?: {
|
|
892
887
|
id: string;
|
|
893
888
|
} | null | undefined;
|
|
@@ -902,6 +897,11 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
902
897
|
postTown?: string | null | undefined;
|
|
903
898
|
areaCovered?: string | null | undefined;
|
|
904
899
|
} | null | undefined;
|
|
900
|
+
jobQualifications?: {
|
|
901
|
+
id: string;
|
|
902
|
+
qualificationId: string;
|
|
903
|
+
qualificationTypeId?: string | null | undefined;
|
|
904
|
+
}[] | undefined;
|
|
905
905
|
};
|
|
906
906
|
endDate?: string | Date | null | undefined;
|
|
907
907
|
}>;
|
|
@@ -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;
|
|
@@ -1128,7 +1128,7 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1128
1128
|
firstName: z.ZodString;
|
|
1129
1129
|
lastName: z.ZodString;
|
|
1130
1130
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1131
|
-
phoneNumbers: z.ZodArray<z.ZodObject<{
|
|
1131
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1132
1132
|
id: z.ZodOptional<z.ZodString>;
|
|
1133
1133
|
phoneNumber: z.ZodString;
|
|
1134
1134
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1136,14 +1136,14 @@ 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
|
-
}>, "many"
|
|
1146
|
+
}>, "many">>>;
|
|
1147
1147
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1148
1148
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
1149
1149
|
bio: 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;
|
|
@@ -1311,15 +1311,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1311
1311
|
id: string;
|
|
1312
1312
|
firstName: string;
|
|
1313
1313
|
lastName: string;
|
|
1314
|
-
phoneNumbers: {
|
|
1315
|
-
phoneNumber: string;
|
|
1316
|
-
description?: string | undefined;
|
|
1317
|
-
id?: string | undefined;
|
|
1318
|
-
isPrimary?: boolean | undefined;
|
|
1319
|
-
}[];
|
|
1320
1314
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1321
1315
|
hasTools: boolean;
|
|
1322
1316
|
hasPpe: boolean;
|
|
1317
|
+
email?: string | null | undefined;
|
|
1323
1318
|
location?: {
|
|
1324
1319
|
address?: string | null | undefined;
|
|
1325
1320
|
postcode?: string | null | undefined;
|
|
@@ -1329,7 +1324,12 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1329
1324
|
postTown?: string | null | undefined;
|
|
1330
1325
|
areaCovered?: string | null | undefined;
|
|
1331
1326
|
} | null | undefined;
|
|
1332
|
-
|
|
1327
|
+
phoneNumbers?: {
|
|
1328
|
+
phoneNumber: string;
|
|
1329
|
+
id?: string | undefined;
|
|
1330
|
+
description?: string | undefined;
|
|
1331
|
+
isPrimary?: boolean | undefined;
|
|
1332
|
+
}[] | undefined;
|
|
1333
1333
|
nino?: string | null | undefined;
|
|
1334
1334
|
dateOfBirth?: string | Date | null | undefined;
|
|
1335
1335
|
bio?: string | null | undefined;
|
|
@@ -1410,7 +1410,7 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1410
1410
|
pay: z.ZodObject<{
|
|
1411
1411
|
rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
1412
1412
|
rate: z.ZodNumber;
|
|
1413
|
-
rateMax: z.
|
|
1413
|
+
rateMax: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
1414
1414
|
receivedRate: z.ZodNumber;
|
|
1415
1415
|
}, "strip", z.ZodTypeAny, {
|
|
1416
1416
|
rateUnit: "DAILY" | "HOURLY";
|
|
@@ -1449,7 +1449,7 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1449
1449
|
areaCovered?: string | null | undefined;
|
|
1450
1450
|
}>>>;
|
|
1451
1451
|
tradeId: z.ZodString;
|
|
1452
|
-
jobQualifications: z.ZodArray<z.ZodObject<{
|
|
1452
|
+
jobQualifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1453
1453
|
id: z.ZodString;
|
|
1454
1454
|
qualificationId: z.ZodString;
|
|
1455
1455
|
qualificationTypeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1461,10 +1461,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1461
1461
|
id: string;
|
|
1462
1462
|
qualificationId: string;
|
|
1463
1463
|
qualificationTypeId?: string | null | undefined;
|
|
1464
|
-
}>, "many"
|
|
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;
|
|
@@ -1627,31 +1627,26 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1627
1627
|
rateMax?: number | null | undefined;
|
|
1628
1628
|
};
|
|
1629
1629
|
tradeId: string;
|
|
1630
|
-
jobQualifications: {
|
|
1631
|
-
id: string;
|
|
1632
|
-
qualificationId: string;
|
|
1633
|
-
qualificationTypeId?: string | null | undefined;
|
|
1634
|
-
}[];
|
|
1635
1630
|
currentCollaboration: {
|
|
1636
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1637
1631
|
createdAt: string | Date;
|
|
1638
1632
|
updatedAt: string | Date;
|
|
1633
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1639
1634
|
id: string;
|
|
1640
|
-
|
|
1635
|
+
userId: string;
|
|
1636
|
+
company?: {
|
|
1641
1637
|
id: string;
|
|
1642
1638
|
name: string;
|
|
1643
|
-
};
|
|
1644
|
-
client
|
|
1639
|
+
} | undefined;
|
|
1640
|
+
client?: {
|
|
1645
1641
|
id: string;
|
|
1646
1642
|
name: string;
|
|
1647
|
-
};
|
|
1648
|
-
user
|
|
1643
|
+
} | undefined;
|
|
1644
|
+
user?: {
|
|
1649
1645
|
id: string;
|
|
1650
1646
|
firstName: string;
|
|
1651
1647
|
lastName: string;
|
|
1652
1648
|
email: string;
|
|
1653
|
-
};
|
|
1654
|
-
userId: string;
|
|
1649
|
+
} | undefined;
|
|
1655
1650
|
newCollaboration?: {
|
|
1656
1651
|
id: string;
|
|
1657
1652
|
} | null | undefined;
|
|
@@ -1666,19 +1661,20 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1666
1661
|
postTown?: string | null | undefined;
|
|
1667
1662
|
areaCovered?: string | null | undefined;
|
|
1668
1663
|
} | null | undefined;
|
|
1664
|
+
jobQualifications?: {
|
|
1665
|
+
id: string;
|
|
1666
|
+
qualificationId: string;
|
|
1667
|
+
qualificationTypeId?: string | null | undefined;
|
|
1668
|
+
}[] | undefined;
|
|
1669
1669
|
}>;
|
|
1670
1670
|
userId: z.ZodString;
|
|
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;
|
|
@@ -1831,15 +1831,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1831
1831
|
id: string;
|
|
1832
1832
|
firstName: string;
|
|
1833
1833
|
lastName: string;
|
|
1834
|
-
phoneNumbers: {
|
|
1835
|
-
phoneNumber: string;
|
|
1836
|
-
description?: string | undefined;
|
|
1837
|
-
id?: string | undefined;
|
|
1838
|
-
isPrimary?: boolean | undefined;
|
|
1839
|
-
}[];
|
|
1840
1834
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1841
1835
|
hasTools: boolean;
|
|
1842
1836
|
hasPpe: boolean;
|
|
1837
|
+
email?: string | null | undefined;
|
|
1843
1838
|
location?: {
|
|
1844
1839
|
address?: string | null | undefined;
|
|
1845
1840
|
postcode?: string | null | undefined;
|
|
@@ -1849,7 +1844,12 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1849
1844
|
postTown?: string | null | undefined;
|
|
1850
1845
|
areaCovered?: string | null | undefined;
|
|
1851
1846
|
} | null | undefined;
|
|
1852
|
-
|
|
1847
|
+
phoneNumbers?: {
|
|
1848
|
+
phoneNumber: string;
|
|
1849
|
+
id?: string | undefined;
|
|
1850
|
+
description?: string | undefined;
|
|
1851
|
+
isPrimary?: boolean | undefined;
|
|
1852
|
+
}[] | undefined;
|
|
1853
1853
|
nino?: string | null | undefined;
|
|
1854
1854
|
dateOfBirth?: string | Date | null | undefined;
|
|
1855
1855
|
bio?: 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;
|
|
@@ -1897,31 +1897,26 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1897
1897
|
rateMax?: number | null | undefined;
|
|
1898
1898
|
};
|
|
1899
1899
|
tradeId: string;
|
|
1900
|
-
jobQualifications: {
|
|
1901
|
-
id: string;
|
|
1902
|
-
qualificationId: string;
|
|
1903
|
-
qualificationTypeId?: string | null | undefined;
|
|
1904
|
-
}[];
|
|
1905
1900
|
currentCollaboration: {
|
|
1906
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1907
1901
|
createdAt: string | Date;
|
|
1908
1902
|
updatedAt: string | Date;
|
|
1903
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
1909
1904
|
id: string;
|
|
1910
|
-
|
|
1905
|
+
userId: string;
|
|
1906
|
+
company?: {
|
|
1911
1907
|
id: string;
|
|
1912
1908
|
name: string;
|
|
1913
|
-
};
|
|
1914
|
-
client
|
|
1909
|
+
} | undefined;
|
|
1910
|
+
client?: {
|
|
1915
1911
|
id: string;
|
|
1916
1912
|
name: string;
|
|
1917
|
-
};
|
|
1918
|
-
user
|
|
1913
|
+
} | undefined;
|
|
1914
|
+
user?: {
|
|
1919
1915
|
id: string;
|
|
1920
1916
|
firstName: string;
|
|
1921
1917
|
lastName: string;
|
|
1922
1918
|
email: string;
|
|
1923
|
-
};
|
|
1924
|
-
userId: string;
|
|
1919
|
+
} | undefined;
|
|
1925
1920
|
newCollaboration?: {
|
|
1926
1921
|
id: string;
|
|
1927
1922
|
} | null | undefined;
|
|
@@ -1936,6 +1931,11 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
1936
1931
|
postTown?: string | null | undefined;
|
|
1937
1932
|
areaCovered?: string | null | undefined;
|
|
1938
1933
|
} | null | undefined;
|
|
1934
|
+
jobQualifications?: {
|
|
1935
|
+
id: string;
|
|
1936
|
+
qualificationId: string;
|
|
1937
|
+
qualificationTypeId?: string | null | undefined;
|
|
1938
|
+
}[] | undefined;
|
|
1939
1939
|
};
|
|
1940
1940
|
endDate?: string | Date | null | undefined;
|
|
1941
1941
|
}>, "many">;
|
|
@@ -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;
|
|
@@ -2114,15 +2114,10 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
2114
2114
|
id: string;
|
|
2115
2115
|
firstName: string;
|
|
2116
2116
|
lastName: string;
|
|
2117
|
-
phoneNumbers: {
|
|
2118
|
-
phoneNumber: string;
|
|
2119
|
-
description?: string | undefined;
|
|
2120
|
-
id?: string | undefined;
|
|
2121
|
-
isPrimary?: boolean | undefined;
|
|
2122
|
-
}[];
|
|
2123
2117
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2124
2118
|
hasTools: boolean;
|
|
2125
2119
|
hasPpe: boolean;
|
|
2120
|
+
email?: string | null | undefined;
|
|
2126
2121
|
location?: {
|
|
2127
2122
|
address?: string | null | undefined;
|
|
2128
2123
|
postcode?: string | null | undefined;
|
|
@@ -2132,7 +2127,12 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
2132
2127
|
postTown?: string | null | undefined;
|
|
2133
2128
|
areaCovered?: string | null | undefined;
|
|
2134
2129
|
} | null | undefined;
|
|
2135
|
-
|
|
2130
|
+
phoneNumbers?: {
|
|
2131
|
+
phoneNumber: string;
|
|
2132
|
+
id?: string | undefined;
|
|
2133
|
+
description?: string | undefined;
|
|
2134
|
+
isPrimary?: boolean | undefined;
|
|
2135
|
+
}[] | undefined;
|
|
2136
2136
|
nino?: string | null | undefined;
|
|
2137
2137
|
dateOfBirth?: string | Date | null | undefined;
|
|
2138
2138
|
bio?: 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;
|
|
@@ -2180,31 +2180,26 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
2180
2180
|
rateMax?: number | null | undefined;
|
|
2181
2181
|
};
|
|
2182
2182
|
tradeId: string;
|
|
2183
|
-
jobQualifications: {
|
|
2184
|
-
id: string;
|
|
2185
|
-
qualificationId: string;
|
|
2186
|
-
qualificationTypeId?: string | null | undefined;
|
|
2187
|
-
}[];
|
|
2188
2183
|
currentCollaboration: {
|
|
2189
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2190
2184
|
createdAt: string | Date;
|
|
2191
2185
|
updatedAt: string | Date;
|
|
2186
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2192
2187
|
id: string;
|
|
2193
|
-
|
|
2188
|
+
userId: string;
|
|
2189
|
+
company?: {
|
|
2194
2190
|
id: string;
|
|
2195
2191
|
name: string;
|
|
2196
|
-
};
|
|
2197
|
-
client
|
|
2192
|
+
} | undefined;
|
|
2193
|
+
client?: {
|
|
2198
2194
|
id: string;
|
|
2199
2195
|
name: string;
|
|
2200
|
-
};
|
|
2201
|
-
user
|
|
2196
|
+
} | undefined;
|
|
2197
|
+
user?: {
|
|
2202
2198
|
id: string;
|
|
2203
2199
|
firstName: string;
|
|
2204
2200
|
lastName: string;
|
|
2205
2201
|
email: string;
|
|
2206
|
-
};
|
|
2207
|
-
userId: string;
|
|
2202
|
+
} | undefined;
|
|
2208
2203
|
newCollaboration?: {
|
|
2209
2204
|
id: string;
|
|
2210
2205
|
} | null | undefined;
|
|
@@ -2219,6 +2214,11 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
2219
2214
|
postTown?: string | null | undefined;
|
|
2220
2215
|
areaCovered?: string | null | undefined;
|
|
2221
2216
|
} | null | undefined;
|
|
2217
|
+
jobQualifications?: {
|
|
2218
|
+
id: string;
|
|
2219
|
+
qualificationId: string;
|
|
2220
|
+
qualificationTypeId?: string | null | undefined;
|
|
2221
|
+
}[] | undefined;
|
|
2222
2222
|
};
|
|
2223
2223
|
endDate?: string | Date | null | undefined;
|
|
2224
2224
|
}[];
|
|
@@ -2237,7 +2237,7 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2237
2237
|
firstName: z.ZodString;
|
|
2238
2238
|
lastName: z.ZodString;
|
|
2239
2239
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2240
|
-
phoneNumbers: z.ZodArray<z.ZodObject<{
|
|
2240
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2241
2241
|
id: z.ZodOptional<z.ZodString>;
|
|
2242
2242
|
phoneNumber: z.ZodString;
|
|
2243
2243
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2245,14 +2245,14 @@ 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
|
-
}>, "many"
|
|
2255
|
+
}>, "many">>>;
|
|
2256
2256
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2257
2257
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
2258
2258
|
bio: 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;
|
|
@@ -2420,15 +2420,10 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2420
2420
|
id: string;
|
|
2421
2421
|
firstName: string;
|
|
2422
2422
|
lastName: string;
|
|
2423
|
-
phoneNumbers: {
|
|
2424
|
-
phoneNumber: string;
|
|
2425
|
-
description?: string | undefined;
|
|
2426
|
-
id?: string | undefined;
|
|
2427
|
-
isPrimary?: boolean | undefined;
|
|
2428
|
-
}[];
|
|
2429
2423
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2430
2424
|
hasTools: boolean;
|
|
2431
2425
|
hasPpe: boolean;
|
|
2426
|
+
email?: string | null | undefined;
|
|
2432
2427
|
location?: {
|
|
2433
2428
|
address?: string | null | undefined;
|
|
2434
2429
|
postcode?: string | null | undefined;
|
|
@@ -2438,7 +2433,12 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2438
2433
|
postTown?: string | null | undefined;
|
|
2439
2434
|
areaCovered?: string | null | undefined;
|
|
2440
2435
|
} | null | undefined;
|
|
2441
|
-
|
|
2436
|
+
phoneNumbers?: {
|
|
2437
|
+
phoneNumber: string;
|
|
2438
|
+
id?: string | undefined;
|
|
2439
|
+
description?: string | undefined;
|
|
2440
|
+
isPrimary?: boolean | undefined;
|
|
2441
|
+
}[] | undefined;
|
|
2442
2442
|
nino?: string | null | undefined;
|
|
2443
2443
|
dateOfBirth?: string | Date | null | undefined;
|
|
2444
2444
|
bio?: string | null | undefined;
|
|
@@ -2519,7 +2519,7 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2519
2519
|
pay: z.ZodObject<{
|
|
2520
2520
|
rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
2521
2521
|
rate: z.ZodNumber;
|
|
2522
|
-
rateMax: z.
|
|
2522
|
+
rateMax: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
2523
2523
|
receivedRate: z.ZodNumber;
|
|
2524
2524
|
}, "strip", z.ZodTypeAny, {
|
|
2525
2525
|
rateUnit: "DAILY" | "HOURLY";
|
|
@@ -2558,7 +2558,7 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2558
2558
|
areaCovered?: string | null | undefined;
|
|
2559
2559
|
}>>>;
|
|
2560
2560
|
tradeId: z.ZodString;
|
|
2561
|
-
jobQualifications: z.ZodArray<z.ZodObject<{
|
|
2561
|
+
jobQualifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2562
2562
|
id: z.ZodString;
|
|
2563
2563
|
qualificationId: z.ZodString;
|
|
2564
2564
|
qualificationTypeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -2570,10 +2570,10 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2570
2570
|
id: string;
|
|
2571
2571
|
qualificationId: string;
|
|
2572
2572
|
qualificationTypeId?: string | null | undefined;
|
|
2573
|
-
}>, "many"
|
|
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;
|
|
@@ -2736,31 +2736,26 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2736
2736
|
rateMax?: number | null | undefined;
|
|
2737
2737
|
};
|
|
2738
2738
|
tradeId: string;
|
|
2739
|
-
jobQualifications: {
|
|
2740
|
-
id: string;
|
|
2741
|
-
qualificationId: string;
|
|
2742
|
-
qualificationTypeId?: string | null | undefined;
|
|
2743
|
-
}[];
|
|
2744
2739
|
currentCollaboration: {
|
|
2745
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2746
2740
|
createdAt: string | Date;
|
|
2747
2741
|
updatedAt: string | Date;
|
|
2742
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
2748
2743
|
id: string;
|
|
2749
|
-
|
|
2744
|
+
userId: string;
|
|
2745
|
+
company?: {
|
|
2750
2746
|
id: string;
|
|
2751
2747
|
name: string;
|
|
2752
|
-
};
|
|
2753
|
-
client
|
|
2748
|
+
} | undefined;
|
|
2749
|
+
client?: {
|
|
2754
2750
|
id: string;
|
|
2755
2751
|
name: string;
|
|
2756
|
-
};
|
|
2757
|
-
user
|
|
2752
|
+
} | undefined;
|
|
2753
|
+
user?: {
|
|
2758
2754
|
id: string;
|
|
2759
2755
|
firstName: string;
|
|
2760
2756
|
lastName: string;
|
|
2761
2757
|
email: string;
|
|
2762
|
-
};
|
|
2763
|
-
userId: string;
|
|
2758
|
+
} | undefined;
|
|
2764
2759
|
newCollaboration?: {
|
|
2765
2760
|
id: string;
|
|
2766
2761
|
} | null | undefined;
|
|
@@ -2775,19 +2770,20 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2775
2770
|
postTown?: string | null | undefined;
|
|
2776
2771
|
areaCovered?: string | null | undefined;
|
|
2777
2772
|
} | null | undefined;
|
|
2773
|
+
jobQualifications?: {
|
|
2774
|
+
id: string;
|
|
2775
|
+
qualificationId: string;
|
|
2776
|
+
qualificationTypeId?: string | null | undefined;
|
|
2777
|
+
}[] | undefined;
|
|
2778
2778
|
}>;
|
|
2779
2779
|
userId: z.ZodString;
|
|
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;
|
|
@@ -2940,15 +2940,10 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2940
2940
|
id: string;
|
|
2941
2941
|
firstName: string;
|
|
2942
2942
|
lastName: string;
|
|
2943
|
-
phoneNumbers: {
|
|
2944
|
-
phoneNumber: string;
|
|
2945
|
-
description?: string | undefined;
|
|
2946
|
-
id?: string | undefined;
|
|
2947
|
-
isPrimary?: boolean | undefined;
|
|
2948
|
-
}[];
|
|
2949
2943
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2950
2944
|
hasTools: boolean;
|
|
2951
2945
|
hasPpe: boolean;
|
|
2946
|
+
email?: string | null | undefined;
|
|
2952
2947
|
location?: {
|
|
2953
2948
|
address?: string | null | undefined;
|
|
2954
2949
|
postcode?: string | null | undefined;
|
|
@@ -2958,7 +2953,12 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
2958
2953
|
postTown?: string | null | undefined;
|
|
2959
2954
|
areaCovered?: string | null | undefined;
|
|
2960
2955
|
} | null | undefined;
|
|
2961
|
-
|
|
2956
|
+
phoneNumbers?: {
|
|
2957
|
+
phoneNumber: string;
|
|
2958
|
+
id?: string | undefined;
|
|
2959
|
+
description?: string | undefined;
|
|
2960
|
+
isPrimary?: boolean | undefined;
|
|
2961
|
+
}[] | undefined;
|
|
2962
2962
|
nino?: string | null | undefined;
|
|
2963
2963
|
dateOfBirth?: string | Date | null | undefined;
|
|
2964
2964
|
bio?: 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;
|
|
@@ -3006,31 +3006,26 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
3006
3006
|
rateMax?: number | null | undefined;
|
|
3007
3007
|
};
|
|
3008
3008
|
tradeId: string;
|
|
3009
|
-
jobQualifications: {
|
|
3010
|
-
id: string;
|
|
3011
|
-
qualificationId: string;
|
|
3012
|
-
qualificationTypeId?: string | null | undefined;
|
|
3013
|
-
}[];
|
|
3014
3009
|
currentCollaboration: {
|
|
3015
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3016
3010
|
createdAt: string | Date;
|
|
3017
3011
|
updatedAt: string | Date;
|
|
3012
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3018
3013
|
id: string;
|
|
3019
|
-
|
|
3014
|
+
userId: string;
|
|
3015
|
+
company?: {
|
|
3020
3016
|
id: string;
|
|
3021
3017
|
name: string;
|
|
3022
|
-
};
|
|
3023
|
-
client
|
|
3018
|
+
} | undefined;
|
|
3019
|
+
client?: {
|
|
3024
3020
|
id: string;
|
|
3025
3021
|
name: string;
|
|
3026
|
-
};
|
|
3027
|
-
user
|
|
3022
|
+
} | undefined;
|
|
3023
|
+
user?: {
|
|
3028
3024
|
id: string;
|
|
3029
3025
|
firstName: string;
|
|
3030
3026
|
lastName: string;
|
|
3031
3027
|
email: string;
|
|
3032
|
-
};
|
|
3033
|
-
userId: string;
|
|
3028
|
+
} | undefined;
|
|
3034
3029
|
newCollaboration?: {
|
|
3035
3030
|
id: string;
|
|
3036
3031
|
} | null | undefined;
|
|
@@ -3045,6 +3040,11 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
3045
3040
|
postTown?: string | null | undefined;
|
|
3046
3041
|
areaCovered?: string | null | undefined;
|
|
3047
3042
|
} | null | undefined;
|
|
3043
|
+
jobQualifications?: {
|
|
3044
|
+
id: string;
|
|
3045
|
+
qualificationId: string;
|
|
3046
|
+
qualificationTypeId?: string | null | undefined;
|
|
3047
|
+
}[] | undefined;
|
|
3048
3048
|
};
|
|
3049
3049
|
endDate?: string | Date | null | undefined;
|
|
3050
3050
|
}>, "many">;
|
|
@@ -3267,7 +3267,7 @@ export declare const bookingsContractRouter: {
|
|
|
3267
3267
|
firstName: z.ZodString;
|
|
3268
3268
|
lastName: z.ZodString;
|
|
3269
3269
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3270
|
-
phoneNumbers: z.ZodArray<z.ZodObject<{
|
|
3270
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3271
3271
|
id: z.ZodOptional<z.ZodString>;
|
|
3272
3272
|
phoneNumber: z.ZodString;
|
|
3273
3273
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -3275,14 +3275,14 @@ 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
|
-
}>, "many"
|
|
3285
|
+
}>, "many">>>;
|
|
3286
3286
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3287
3287
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
3288
3288
|
bio: 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;
|
|
@@ -3450,15 +3450,10 @@ export declare const bookingsContractRouter: {
|
|
|
3450
3450
|
id: string;
|
|
3451
3451
|
firstName: string;
|
|
3452
3452
|
lastName: string;
|
|
3453
|
-
phoneNumbers: {
|
|
3454
|
-
phoneNumber: string;
|
|
3455
|
-
description?: string | undefined;
|
|
3456
|
-
id?: string | undefined;
|
|
3457
|
-
isPrimary?: boolean | undefined;
|
|
3458
|
-
}[];
|
|
3459
3453
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
3460
3454
|
hasTools: boolean;
|
|
3461
3455
|
hasPpe: boolean;
|
|
3456
|
+
email?: string | null | undefined;
|
|
3462
3457
|
location?: {
|
|
3463
3458
|
address?: string | null | undefined;
|
|
3464
3459
|
postcode?: string | null | undefined;
|
|
@@ -3468,7 +3463,12 @@ export declare const bookingsContractRouter: {
|
|
|
3468
3463
|
postTown?: string | null | undefined;
|
|
3469
3464
|
areaCovered?: string | null | undefined;
|
|
3470
3465
|
} | null | undefined;
|
|
3471
|
-
|
|
3466
|
+
phoneNumbers?: {
|
|
3467
|
+
phoneNumber: string;
|
|
3468
|
+
id?: string | undefined;
|
|
3469
|
+
description?: string | undefined;
|
|
3470
|
+
isPrimary?: boolean | undefined;
|
|
3471
|
+
}[] | undefined;
|
|
3472
3472
|
nino?: string | null | undefined;
|
|
3473
3473
|
dateOfBirth?: string | Date | null | undefined;
|
|
3474
3474
|
bio?: string | null | undefined;
|
|
@@ -3549,7 +3549,7 @@ export declare const bookingsContractRouter: {
|
|
|
3549
3549
|
pay: z.ZodObject<{
|
|
3550
3550
|
rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
3551
3551
|
rate: z.ZodNumber;
|
|
3552
|
-
rateMax: z.
|
|
3552
|
+
rateMax: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
3553
3553
|
receivedRate: z.ZodNumber;
|
|
3554
3554
|
}, "strip", z.ZodTypeAny, {
|
|
3555
3555
|
rateUnit: "DAILY" | "HOURLY";
|
|
@@ -3588,7 +3588,7 @@ export declare const bookingsContractRouter: {
|
|
|
3588
3588
|
areaCovered?: string | null | undefined;
|
|
3589
3589
|
}>>>;
|
|
3590
3590
|
tradeId: z.ZodString;
|
|
3591
|
-
jobQualifications: z.ZodArray<z.ZodObject<{
|
|
3591
|
+
jobQualifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3592
3592
|
id: z.ZodString;
|
|
3593
3593
|
qualificationId: z.ZodString;
|
|
3594
3594
|
qualificationTypeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -3600,10 +3600,10 @@ export declare const bookingsContractRouter: {
|
|
|
3600
3600
|
id: string;
|
|
3601
3601
|
qualificationId: string;
|
|
3602
3602
|
qualificationTypeId?: string | null | undefined;
|
|
3603
|
-
}>, "many"
|
|
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;
|
|
@@ -3766,31 +3766,26 @@ export declare const bookingsContractRouter: {
|
|
|
3766
3766
|
rateMax?: number | null | undefined;
|
|
3767
3767
|
};
|
|
3768
3768
|
tradeId: string;
|
|
3769
|
-
jobQualifications: {
|
|
3770
|
-
id: string;
|
|
3771
|
-
qualificationId: string;
|
|
3772
|
-
qualificationTypeId?: string | null | undefined;
|
|
3773
|
-
}[];
|
|
3774
3769
|
currentCollaboration: {
|
|
3775
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3776
3770
|
createdAt: string | Date;
|
|
3777
3771
|
updatedAt: string | Date;
|
|
3772
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
3778
3773
|
id: string;
|
|
3779
|
-
|
|
3774
|
+
userId: string;
|
|
3775
|
+
company?: {
|
|
3780
3776
|
id: string;
|
|
3781
3777
|
name: string;
|
|
3782
|
-
};
|
|
3783
|
-
client
|
|
3778
|
+
} | undefined;
|
|
3779
|
+
client?: {
|
|
3784
3780
|
id: string;
|
|
3785
3781
|
name: string;
|
|
3786
|
-
};
|
|
3787
|
-
user
|
|
3782
|
+
} | undefined;
|
|
3783
|
+
user?: {
|
|
3788
3784
|
id: string;
|
|
3789
3785
|
firstName: string;
|
|
3790
3786
|
lastName: string;
|
|
3791
3787
|
email: string;
|
|
3792
|
-
};
|
|
3793
|
-
userId: string;
|
|
3788
|
+
} | undefined;
|
|
3794
3789
|
newCollaboration?: {
|
|
3795
3790
|
id: string;
|
|
3796
3791
|
} | null | undefined;
|
|
@@ -3805,19 +3800,20 @@ export declare const bookingsContractRouter: {
|
|
|
3805
3800
|
postTown?: string | null | undefined;
|
|
3806
3801
|
areaCovered?: string | null | undefined;
|
|
3807
3802
|
} | null | undefined;
|
|
3803
|
+
jobQualifications?: {
|
|
3804
|
+
id: string;
|
|
3805
|
+
qualificationId: string;
|
|
3806
|
+
qualificationTypeId?: string | null | undefined;
|
|
3807
|
+
}[] | undefined;
|
|
3808
3808
|
}>;
|
|
3809
3809
|
userId: z.ZodString;
|
|
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;
|
|
@@ -3970,15 +3970,10 @@ export declare const bookingsContractRouter: {
|
|
|
3970
3970
|
id: string;
|
|
3971
3971
|
firstName: string;
|
|
3972
3972
|
lastName: string;
|
|
3973
|
-
phoneNumbers: {
|
|
3974
|
-
phoneNumber: string;
|
|
3975
|
-
description?: string | undefined;
|
|
3976
|
-
id?: string | undefined;
|
|
3977
|
-
isPrimary?: boolean | undefined;
|
|
3978
|
-
}[];
|
|
3979
3973
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
3980
3974
|
hasTools: boolean;
|
|
3981
3975
|
hasPpe: boolean;
|
|
3976
|
+
email?: string | null | undefined;
|
|
3982
3977
|
location?: {
|
|
3983
3978
|
address?: string | null | undefined;
|
|
3984
3979
|
postcode?: string | null | undefined;
|
|
@@ -3988,7 +3983,12 @@ export declare const bookingsContractRouter: {
|
|
|
3988
3983
|
postTown?: string | null | undefined;
|
|
3989
3984
|
areaCovered?: string | null | undefined;
|
|
3990
3985
|
} | null | undefined;
|
|
3991
|
-
|
|
3986
|
+
phoneNumbers?: {
|
|
3987
|
+
phoneNumber: string;
|
|
3988
|
+
id?: string | undefined;
|
|
3989
|
+
description?: string | undefined;
|
|
3990
|
+
isPrimary?: boolean | undefined;
|
|
3991
|
+
}[] | undefined;
|
|
3992
3992
|
nino?: string | null | undefined;
|
|
3993
3993
|
dateOfBirth?: string | Date | null | undefined;
|
|
3994
3994
|
bio?: 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;
|
|
@@ -4036,31 +4036,26 @@ export declare const bookingsContractRouter: {
|
|
|
4036
4036
|
rateMax?: number | null | undefined;
|
|
4037
4037
|
};
|
|
4038
4038
|
tradeId: string;
|
|
4039
|
-
jobQualifications: {
|
|
4040
|
-
id: string;
|
|
4041
|
-
qualificationId: string;
|
|
4042
|
-
qualificationTypeId?: string | null | undefined;
|
|
4043
|
-
}[];
|
|
4044
4039
|
currentCollaboration: {
|
|
4045
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4046
4040
|
createdAt: string | Date;
|
|
4047
4041
|
updatedAt: string | Date;
|
|
4042
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4048
4043
|
id: string;
|
|
4049
|
-
|
|
4044
|
+
userId: string;
|
|
4045
|
+
company?: {
|
|
4050
4046
|
id: string;
|
|
4051
4047
|
name: string;
|
|
4052
|
-
};
|
|
4053
|
-
client
|
|
4048
|
+
} | undefined;
|
|
4049
|
+
client?: {
|
|
4054
4050
|
id: string;
|
|
4055
4051
|
name: string;
|
|
4056
|
-
};
|
|
4057
|
-
user
|
|
4052
|
+
} | undefined;
|
|
4053
|
+
user?: {
|
|
4058
4054
|
id: string;
|
|
4059
4055
|
firstName: string;
|
|
4060
4056
|
lastName: string;
|
|
4061
4057
|
email: string;
|
|
4062
|
-
};
|
|
4063
|
-
userId: string;
|
|
4058
|
+
} | undefined;
|
|
4064
4059
|
newCollaboration?: {
|
|
4065
4060
|
id: string;
|
|
4066
4061
|
} | null | undefined;
|
|
@@ -4075,6 +4070,11 @@ export declare const bookingsContractRouter: {
|
|
|
4075
4070
|
postTown?: string | null | undefined;
|
|
4076
4071
|
areaCovered?: string | null | undefined;
|
|
4077
4072
|
} | null | undefined;
|
|
4073
|
+
jobQualifications?: {
|
|
4074
|
+
id: string;
|
|
4075
|
+
qualificationId: string;
|
|
4076
|
+
qualificationTypeId?: string | null | undefined;
|
|
4077
|
+
}[] | undefined;
|
|
4078
4078
|
};
|
|
4079
4079
|
endDate?: string | Date | null | undefined;
|
|
4080
4080
|
}>, "many">;
|
|
@@ -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;
|
|
@@ -4341,7 +4341,7 @@ export declare const bookingsContractRouter: {
|
|
|
4341
4341
|
firstName: z.ZodString;
|
|
4342
4342
|
lastName: z.ZodString;
|
|
4343
4343
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4344
|
-
phoneNumbers: z.ZodArray<z.ZodObject<{
|
|
4344
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4345
4345
|
id: z.ZodOptional<z.ZodString>;
|
|
4346
4346
|
phoneNumber: z.ZodString;
|
|
4347
4347
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4349,14 +4349,14 @@ 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
|
-
}>, "many"
|
|
4359
|
+
}>, "many">>>;
|
|
4360
4360
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4361
4361
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
4362
4362
|
bio: 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;
|
|
@@ -4524,15 +4524,10 @@ export declare const bookingsContractRouter: {
|
|
|
4524
4524
|
id: string;
|
|
4525
4525
|
firstName: string;
|
|
4526
4526
|
lastName: string;
|
|
4527
|
-
phoneNumbers: {
|
|
4528
|
-
phoneNumber: string;
|
|
4529
|
-
description?: string | undefined;
|
|
4530
|
-
id?: string | undefined;
|
|
4531
|
-
isPrimary?: boolean | undefined;
|
|
4532
|
-
}[];
|
|
4533
4527
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
4534
4528
|
hasTools: boolean;
|
|
4535
4529
|
hasPpe: boolean;
|
|
4530
|
+
email?: string | null | undefined;
|
|
4536
4531
|
location?: {
|
|
4537
4532
|
address?: string | null | undefined;
|
|
4538
4533
|
postcode?: string | null | undefined;
|
|
@@ -4542,7 +4537,12 @@ export declare const bookingsContractRouter: {
|
|
|
4542
4537
|
postTown?: string | null | undefined;
|
|
4543
4538
|
areaCovered?: string | null | undefined;
|
|
4544
4539
|
} | null | undefined;
|
|
4545
|
-
|
|
4540
|
+
phoneNumbers?: {
|
|
4541
|
+
phoneNumber: string;
|
|
4542
|
+
id?: string | undefined;
|
|
4543
|
+
description?: string | undefined;
|
|
4544
|
+
isPrimary?: boolean | undefined;
|
|
4545
|
+
}[] | undefined;
|
|
4546
4546
|
nino?: string | null | undefined;
|
|
4547
4547
|
dateOfBirth?: string | Date | null | undefined;
|
|
4548
4548
|
bio?: string | null | undefined;
|
|
@@ -4623,7 +4623,7 @@ export declare const bookingsContractRouter: {
|
|
|
4623
4623
|
pay: z.ZodObject<{
|
|
4624
4624
|
rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
4625
4625
|
rate: z.ZodNumber;
|
|
4626
|
-
rateMax: z.
|
|
4626
|
+
rateMax: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
4627
4627
|
receivedRate: z.ZodNumber;
|
|
4628
4628
|
}, "strip", z.ZodTypeAny, {
|
|
4629
4629
|
rateUnit: "DAILY" | "HOURLY";
|
|
@@ -4662,7 +4662,7 @@ export declare const bookingsContractRouter: {
|
|
|
4662
4662
|
areaCovered?: string | null | undefined;
|
|
4663
4663
|
}>>>;
|
|
4664
4664
|
tradeId: z.ZodString;
|
|
4665
|
-
jobQualifications: z.ZodArray<z.ZodObject<{
|
|
4665
|
+
jobQualifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4666
4666
|
id: z.ZodString;
|
|
4667
4667
|
qualificationId: z.ZodString;
|
|
4668
4668
|
qualificationTypeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -4674,10 +4674,10 @@ export declare const bookingsContractRouter: {
|
|
|
4674
4674
|
id: string;
|
|
4675
4675
|
qualificationId: string;
|
|
4676
4676
|
qualificationTypeId?: string | null | undefined;
|
|
4677
|
-
}>, "many"
|
|
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;
|
|
@@ -4840,31 +4840,26 @@ export declare const bookingsContractRouter: {
|
|
|
4840
4840
|
rateMax?: number | null | undefined;
|
|
4841
4841
|
};
|
|
4842
4842
|
tradeId: string;
|
|
4843
|
-
jobQualifications: {
|
|
4844
|
-
id: string;
|
|
4845
|
-
qualificationId: string;
|
|
4846
|
-
qualificationTypeId?: string | null | undefined;
|
|
4847
|
-
}[];
|
|
4848
4843
|
currentCollaboration: {
|
|
4849
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4850
4844
|
createdAt: string | Date;
|
|
4851
4845
|
updatedAt: string | Date;
|
|
4846
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
4852
4847
|
id: string;
|
|
4853
|
-
|
|
4848
|
+
userId: string;
|
|
4849
|
+
company?: {
|
|
4854
4850
|
id: string;
|
|
4855
4851
|
name: string;
|
|
4856
|
-
};
|
|
4857
|
-
client
|
|
4852
|
+
} | undefined;
|
|
4853
|
+
client?: {
|
|
4858
4854
|
id: string;
|
|
4859
4855
|
name: string;
|
|
4860
|
-
};
|
|
4861
|
-
user
|
|
4856
|
+
} | undefined;
|
|
4857
|
+
user?: {
|
|
4862
4858
|
id: string;
|
|
4863
4859
|
firstName: string;
|
|
4864
4860
|
lastName: string;
|
|
4865
4861
|
email: string;
|
|
4866
|
-
};
|
|
4867
|
-
userId: string;
|
|
4862
|
+
} | undefined;
|
|
4868
4863
|
newCollaboration?: {
|
|
4869
4864
|
id: string;
|
|
4870
4865
|
} | null | undefined;
|
|
@@ -4879,19 +4874,20 @@ export declare const bookingsContractRouter: {
|
|
|
4879
4874
|
postTown?: string | null | undefined;
|
|
4880
4875
|
areaCovered?: string | null | undefined;
|
|
4881
4876
|
} | null | undefined;
|
|
4877
|
+
jobQualifications?: {
|
|
4878
|
+
id: string;
|
|
4879
|
+
qualificationId: string;
|
|
4880
|
+
qualificationTypeId?: string | null | undefined;
|
|
4881
|
+
}[] | undefined;
|
|
4882
4882
|
}>;
|
|
4883
4883
|
userId: z.ZodString;
|
|
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;
|
|
@@ -5044,15 +5044,10 @@ export declare const bookingsContractRouter: {
|
|
|
5044
5044
|
id: string;
|
|
5045
5045
|
firstName: string;
|
|
5046
5046
|
lastName: string;
|
|
5047
|
-
phoneNumbers: {
|
|
5048
|
-
phoneNumber: string;
|
|
5049
|
-
description?: string | undefined;
|
|
5050
|
-
id?: string | undefined;
|
|
5051
|
-
isPrimary?: boolean | undefined;
|
|
5052
|
-
}[];
|
|
5053
5047
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
5054
5048
|
hasTools: boolean;
|
|
5055
5049
|
hasPpe: boolean;
|
|
5050
|
+
email?: string | null | undefined;
|
|
5056
5051
|
location?: {
|
|
5057
5052
|
address?: string | null | undefined;
|
|
5058
5053
|
postcode?: string | null | undefined;
|
|
@@ -5062,7 +5057,12 @@ export declare const bookingsContractRouter: {
|
|
|
5062
5057
|
postTown?: string | null | undefined;
|
|
5063
5058
|
areaCovered?: string | null | undefined;
|
|
5064
5059
|
} | null | undefined;
|
|
5065
|
-
|
|
5060
|
+
phoneNumbers?: {
|
|
5061
|
+
phoneNumber: string;
|
|
5062
|
+
id?: string | undefined;
|
|
5063
|
+
description?: string | undefined;
|
|
5064
|
+
isPrimary?: boolean | undefined;
|
|
5065
|
+
}[] | undefined;
|
|
5066
5066
|
nino?: string | null | undefined;
|
|
5067
5067
|
dateOfBirth?: string | Date | null | undefined;
|
|
5068
5068
|
bio?: 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;
|
|
@@ -5110,31 +5110,26 @@ export declare const bookingsContractRouter: {
|
|
|
5110
5110
|
rateMax?: number | null | undefined;
|
|
5111
5111
|
};
|
|
5112
5112
|
tradeId: string;
|
|
5113
|
-
jobQualifications: {
|
|
5114
|
-
id: string;
|
|
5115
|
-
qualificationId: string;
|
|
5116
|
-
qualificationTypeId?: string | null | undefined;
|
|
5117
|
-
}[];
|
|
5118
5113
|
currentCollaboration: {
|
|
5119
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5120
5114
|
createdAt: string | Date;
|
|
5121
5115
|
updatedAt: string | Date;
|
|
5116
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5122
5117
|
id: string;
|
|
5123
|
-
|
|
5118
|
+
userId: string;
|
|
5119
|
+
company?: {
|
|
5124
5120
|
id: string;
|
|
5125
5121
|
name: string;
|
|
5126
|
-
};
|
|
5127
|
-
client
|
|
5122
|
+
} | undefined;
|
|
5123
|
+
client?: {
|
|
5128
5124
|
id: string;
|
|
5129
5125
|
name: string;
|
|
5130
|
-
};
|
|
5131
|
-
user
|
|
5126
|
+
} | undefined;
|
|
5127
|
+
user?: {
|
|
5132
5128
|
id: string;
|
|
5133
5129
|
firstName: string;
|
|
5134
5130
|
lastName: string;
|
|
5135
5131
|
email: string;
|
|
5136
|
-
};
|
|
5137
|
-
userId: string;
|
|
5132
|
+
} | undefined;
|
|
5138
5133
|
newCollaboration?: {
|
|
5139
5134
|
id: string;
|
|
5140
5135
|
} | null | undefined;
|
|
@@ -5149,6 +5144,11 @@ export declare const bookingsContractRouter: {
|
|
|
5149
5144
|
postTown?: string | null | undefined;
|
|
5150
5145
|
areaCovered?: string | null | undefined;
|
|
5151
5146
|
} | null | undefined;
|
|
5147
|
+
jobQualifications?: {
|
|
5148
|
+
id: string;
|
|
5149
|
+
qualificationId: string;
|
|
5150
|
+
qualificationTypeId?: string | null | undefined;
|
|
5151
|
+
}[] | undefined;
|
|
5152
5152
|
};
|
|
5153
5153
|
endDate?: string | Date | null | undefined;
|
|
5154
5154
|
}>, "many">;
|
|
@@ -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;
|
|
@@ -5239,12 +5239,12 @@ export declare const bookingsContractRouter: {
|
|
|
5239
5239
|
distanceKm?: number | null | undefined;
|
|
5240
5240
|
};
|
|
5241
5241
|
job: {
|
|
5242
|
-
description: string;
|
|
5243
|
-
numberOfPositions: number;
|
|
5244
|
-
status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
|
|
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;
|
|
@@ -5327,15 +5327,10 @@ export declare const bookingsContractRouter: {
|
|
|
5327
5327
|
id: string;
|
|
5328
5328
|
firstName: string;
|
|
5329
5329
|
lastName: string;
|
|
5330
|
-
phoneNumbers: {
|
|
5331
|
-
phoneNumber: string;
|
|
5332
|
-
description?: string | undefined;
|
|
5333
|
-
id?: string | undefined;
|
|
5334
|
-
isPrimary?: boolean | undefined;
|
|
5335
|
-
}[];
|
|
5336
5330
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
5337
5331
|
hasTools: boolean;
|
|
5338
5332
|
hasPpe: boolean;
|
|
5333
|
+
email?: string | null | undefined;
|
|
5339
5334
|
location?: {
|
|
5340
5335
|
address?: string | null | undefined;
|
|
5341
5336
|
postcode?: string | null | undefined;
|
|
@@ -5345,7 +5340,12 @@ export declare const bookingsContractRouter: {
|
|
|
5345
5340
|
postTown?: string | null | undefined;
|
|
5346
5341
|
areaCovered?: string | null | undefined;
|
|
5347
5342
|
} | null | undefined;
|
|
5348
|
-
|
|
5343
|
+
phoneNumbers?: {
|
|
5344
|
+
phoneNumber: string;
|
|
5345
|
+
id?: string | undefined;
|
|
5346
|
+
description?: string | undefined;
|
|
5347
|
+
isPrimary?: boolean | undefined;
|
|
5348
|
+
}[] | undefined;
|
|
5349
5349
|
nino?: string | null | undefined;
|
|
5350
5350
|
dateOfBirth?: string | Date | null | undefined;
|
|
5351
5351
|
bio?: 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;
|
|
@@ -5393,31 +5393,26 @@ export declare const bookingsContractRouter: {
|
|
|
5393
5393
|
rateMax?: number | null | undefined;
|
|
5394
5394
|
};
|
|
5395
5395
|
tradeId: string;
|
|
5396
|
-
jobQualifications: {
|
|
5397
|
-
id: string;
|
|
5398
|
-
qualificationId: string;
|
|
5399
|
-
qualificationTypeId?: string | null | undefined;
|
|
5400
|
-
}[];
|
|
5401
5396
|
currentCollaboration: {
|
|
5402
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5403
5397
|
createdAt: string | Date;
|
|
5404
5398
|
updatedAt: string | Date;
|
|
5399
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
5405
5400
|
id: string;
|
|
5406
|
-
|
|
5401
|
+
userId: string;
|
|
5402
|
+
company?: {
|
|
5407
5403
|
id: string;
|
|
5408
5404
|
name: string;
|
|
5409
|
-
};
|
|
5410
|
-
client
|
|
5405
|
+
} | undefined;
|
|
5406
|
+
client?: {
|
|
5411
5407
|
id: string;
|
|
5412
5408
|
name: string;
|
|
5413
|
-
};
|
|
5414
|
-
user
|
|
5409
|
+
} | undefined;
|
|
5410
|
+
user?: {
|
|
5415
5411
|
id: string;
|
|
5416
5412
|
firstName: string;
|
|
5417
5413
|
lastName: string;
|
|
5418
5414
|
email: string;
|
|
5419
|
-
};
|
|
5420
|
-
userId: string;
|
|
5415
|
+
} | undefined;
|
|
5421
5416
|
newCollaboration?: {
|
|
5422
5417
|
id: string;
|
|
5423
5418
|
} | null | undefined;
|
|
@@ -5432,6 +5427,11 @@ export declare const bookingsContractRouter: {
|
|
|
5432
5427
|
postTown?: string | null | undefined;
|
|
5433
5428
|
areaCovered?: string | null | undefined;
|
|
5434
5429
|
} | null | undefined;
|
|
5430
|
+
jobQualifications?: {
|
|
5431
|
+
id: string;
|
|
5432
|
+
qualificationId: string;
|
|
5433
|
+
qualificationTypeId?: string | null | undefined;
|
|
5434
|
+
}[] | undefined;
|
|
5435
5435
|
};
|
|
5436
5436
|
endDate?: string | Date | null | undefined;
|
|
5437
5437
|
}[];
|
|
@@ -5570,7 +5570,7 @@ export declare const bookingsContractRouter: {
|
|
|
5570
5570
|
firstName: z.ZodString;
|
|
5571
5571
|
lastName: z.ZodString;
|
|
5572
5572
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5573
|
-
phoneNumbers: z.ZodArray<z.ZodObject<{
|
|
5573
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5574
5574
|
id: z.ZodOptional<z.ZodString>;
|
|
5575
5575
|
phoneNumber: z.ZodString;
|
|
5576
5576
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5578,14 +5578,14 @@ 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
|
-
}>, "many"
|
|
5588
|
+
}>, "many">>>;
|
|
5589
5589
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5590
5590
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
5591
5591
|
bio: 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;
|
|
@@ -5753,15 +5753,10 @@ export declare const bookingsContractRouter: {
|
|
|
5753
5753
|
id: string;
|
|
5754
5754
|
firstName: string;
|
|
5755
5755
|
lastName: string;
|
|
5756
|
-
phoneNumbers: {
|
|
5757
|
-
phoneNumber: string;
|
|
5758
|
-
description?: string | undefined;
|
|
5759
|
-
id?: string | undefined;
|
|
5760
|
-
isPrimary?: boolean | undefined;
|
|
5761
|
-
}[];
|
|
5762
5756
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
5763
5757
|
hasTools: boolean;
|
|
5764
5758
|
hasPpe: boolean;
|
|
5759
|
+
email?: string | null | undefined;
|
|
5765
5760
|
location?: {
|
|
5766
5761
|
address?: string | null | undefined;
|
|
5767
5762
|
postcode?: string | null | undefined;
|
|
@@ -5771,7 +5766,12 @@ export declare const bookingsContractRouter: {
|
|
|
5771
5766
|
postTown?: string | null | undefined;
|
|
5772
5767
|
areaCovered?: string | null | undefined;
|
|
5773
5768
|
} | null | undefined;
|
|
5774
|
-
|
|
5769
|
+
phoneNumbers?: {
|
|
5770
|
+
phoneNumber: string;
|
|
5771
|
+
id?: string | undefined;
|
|
5772
|
+
description?: string | undefined;
|
|
5773
|
+
isPrimary?: boolean | undefined;
|
|
5774
|
+
}[] | undefined;
|
|
5775
5775
|
nino?: string | null | undefined;
|
|
5776
5776
|
dateOfBirth?: string | Date | null | undefined;
|
|
5777
5777
|
bio?: string | null | undefined;
|
|
@@ -5852,7 +5852,7 @@ export declare const bookingsContractRouter: {
|
|
|
5852
5852
|
pay: z.ZodObject<{
|
|
5853
5853
|
rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
5854
5854
|
rate: z.ZodNumber;
|
|
5855
|
-
rateMax: z.
|
|
5855
|
+
rateMax: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
5856
5856
|
receivedRate: z.ZodNumber;
|
|
5857
5857
|
}, "strip", z.ZodTypeAny, {
|
|
5858
5858
|
rateUnit: "DAILY" | "HOURLY";
|
|
@@ -5891,7 +5891,7 @@ export declare const bookingsContractRouter: {
|
|
|
5891
5891
|
areaCovered?: string | null | undefined;
|
|
5892
5892
|
}>>>;
|
|
5893
5893
|
tradeId: z.ZodString;
|
|
5894
|
-
jobQualifications: z.ZodArray<z.ZodObject<{
|
|
5894
|
+
jobQualifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5895
5895
|
id: z.ZodString;
|
|
5896
5896
|
qualificationId: z.ZodString;
|
|
5897
5897
|
qualificationTypeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -5903,10 +5903,10 @@ export declare const bookingsContractRouter: {
|
|
|
5903
5903
|
id: string;
|
|
5904
5904
|
qualificationId: string;
|
|
5905
5905
|
qualificationTypeId?: string | null | undefined;
|
|
5906
|
-
}>, "many"
|
|
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
|
-
email: string;
|
|
5997
|
-
};
|
|
5998
|
-
userId: string;
|
|
5997
|
+
email: 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;
|
|
@@ -6069,31 +6069,26 @@ export declare const bookingsContractRouter: {
|
|
|
6069
6069
|
rateMax?: number | null | undefined;
|
|
6070
6070
|
};
|
|
6071
6071
|
tradeId: string;
|
|
6072
|
-
jobQualifications: {
|
|
6073
|
-
id: string;
|
|
6074
|
-
qualificationId: string;
|
|
6075
|
-
qualificationTypeId?: string | null | undefined;
|
|
6076
|
-
}[];
|
|
6077
6072
|
currentCollaboration: {
|
|
6078
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6079
6073
|
createdAt: string | Date;
|
|
6080
6074
|
updatedAt: string | Date;
|
|
6075
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6081
6076
|
id: string;
|
|
6082
|
-
|
|
6077
|
+
userId: string;
|
|
6078
|
+
company?: {
|
|
6083
6079
|
id: string;
|
|
6084
6080
|
name: string;
|
|
6085
|
-
};
|
|
6086
|
-
client
|
|
6081
|
+
} | undefined;
|
|
6082
|
+
client?: {
|
|
6087
6083
|
id: string;
|
|
6088
6084
|
name: string;
|
|
6089
|
-
};
|
|
6090
|
-
user
|
|
6085
|
+
} | undefined;
|
|
6086
|
+
user?: {
|
|
6091
6087
|
id: string;
|
|
6092
6088
|
firstName: string;
|
|
6093
6089
|
lastName: string;
|
|
6094
6090
|
email: string;
|
|
6095
|
-
};
|
|
6096
|
-
userId: string;
|
|
6091
|
+
} | undefined;
|
|
6097
6092
|
newCollaboration?: {
|
|
6098
6093
|
id: string;
|
|
6099
6094
|
} | null | undefined;
|
|
@@ -6108,19 +6103,20 @@ export declare const bookingsContractRouter: {
|
|
|
6108
6103
|
postTown?: string | null | undefined;
|
|
6109
6104
|
areaCovered?: string | null | undefined;
|
|
6110
6105
|
} | null | undefined;
|
|
6106
|
+
jobQualifications?: {
|
|
6107
|
+
id: string;
|
|
6108
|
+
qualificationId: string;
|
|
6109
|
+
qualificationTypeId?: string | null | undefined;
|
|
6110
|
+
}[] | undefined;
|
|
6111
6111
|
}>;
|
|
6112
6112
|
userId: z.ZodString;
|
|
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;
|
|
@@ -6273,15 +6273,10 @@ export declare const bookingsContractRouter: {
|
|
|
6273
6273
|
id: string;
|
|
6274
6274
|
firstName: string;
|
|
6275
6275
|
lastName: string;
|
|
6276
|
-
phoneNumbers: {
|
|
6277
|
-
phoneNumber: string;
|
|
6278
|
-
description?: string | undefined;
|
|
6279
|
-
id?: string | undefined;
|
|
6280
|
-
isPrimary?: boolean | undefined;
|
|
6281
|
-
}[];
|
|
6282
6276
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
6283
6277
|
hasTools: boolean;
|
|
6284
6278
|
hasPpe: boolean;
|
|
6279
|
+
email?: string | null | undefined;
|
|
6285
6280
|
location?: {
|
|
6286
6281
|
address?: string | null | undefined;
|
|
6287
6282
|
postcode?: string | null | undefined;
|
|
@@ -6291,7 +6286,12 @@ export declare const bookingsContractRouter: {
|
|
|
6291
6286
|
postTown?: string | null | undefined;
|
|
6292
6287
|
areaCovered?: string | null | undefined;
|
|
6293
6288
|
} | null | undefined;
|
|
6294
|
-
|
|
6289
|
+
phoneNumbers?: {
|
|
6290
|
+
phoneNumber: string;
|
|
6291
|
+
id?: string | undefined;
|
|
6292
|
+
description?: string | undefined;
|
|
6293
|
+
isPrimary?: boolean | undefined;
|
|
6294
|
+
}[] | undefined;
|
|
6295
6295
|
nino?: string | null | undefined;
|
|
6296
6296
|
dateOfBirth?: string | Date | null | undefined;
|
|
6297
6297
|
bio?: 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;
|
|
@@ -6339,31 +6339,26 @@ export declare const bookingsContractRouter: {
|
|
|
6339
6339
|
rateMax?: number | null | undefined;
|
|
6340
6340
|
};
|
|
6341
6341
|
tradeId: string;
|
|
6342
|
-
jobQualifications: {
|
|
6343
|
-
id: string;
|
|
6344
|
-
qualificationId: string;
|
|
6345
|
-
qualificationTypeId?: string | null | undefined;
|
|
6346
|
-
}[];
|
|
6347
6342
|
currentCollaboration: {
|
|
6348
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6349
6343
|
createdAt: string | Date;
|
|
6350
6344
|
updatedAt: string | Date;
|
|
6345
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
6351
6346
|
id: string;
|
|
6352
|
-
|
|
6347
|
+
userId: string;
|
|
6348
|
+
company?: {
|
|
6353
6349
|
id: string;
|
|
6354
6350
|
name: string;
|
|
6355
|
-
};
|
|
6356
|
-
client
|
|
6351
|
+
} | undefined;
|
|
6352
|
+
client?: {
|
|
6357
6353
|
id: string;
|
|
6358
6354
|
name: string;
|
|
6359
|
-
};
|
|
6360
|
-
user
|
|
6355
|
+
} | undefined;
|
|
6356
|
+
user?: {
|
|
6361
6357
|
id: string;
|
|
6362
6358
|
firstName: string;
|
|
6363
6359
|
lastName: string;
|
|
6364
6360
|
email: string;
|
|
6365
|
-
};
|
|
6366
|
-
userId: string;
|
|
6361
|
+
} | undefined;
|
|
6367
6362
|
newCollaboration?: {
|
|
6368
6363
|
id: string;
|
|
6369
6364
|
} | null | undefined;
|
|
@@ -6378,6 +6373,11 @@ export declare const bookingsContractRouter: {
|
|
|
6378
6373
|
postTown?: string | null | undefined;
|
|
6379
6374
|
areaCovered?: string | null | undefined;
|
|
6380
6375
|
} | null | undefined;
|
|
6376
|
+
jobQualifications?: {
|
|
6377
|
+
id: string;
|
|
6378
|
+
qualificationId: string;
|
|
6379
|
+
qualificationTypeId?: string | null | undefined;
|
|
6380
|
+
}[] | undefined;
|
|
6381
6381
|
};
|
|
6382
6382
|
endDate?: string | Date | null | undefined;
|
|
6383
6383
|
}>;
|
|
@@ -6549,7 +6549,7 @@ export declare const bookingsContractRouter: {
|
|
|
6549
6549
|
firstName: z.ZodString;
|
|
6550
6550
|
lastName: z.ZodString;
|
|
6551
6551
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6552
|
-
phoneNumbers: z.ZodArray<z.ZodObject<{
|
|
6552
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6553
6553
|
id: z.ZodOptional<z.ZodString>;
|
|
6554
6554
|
phoneNumber: z.ZodString;
|
|
6555
6555
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -6557,14 +6557,14 @@ 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
|
-
}>, "many"
|
|
6567
|
+
}>, "many">>>;
|
|
6568
6568
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6569
6569
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
6570
6570
|
bio: 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;
|
|
@@ -6732,15 +6732,10 @@ export declare const bookingsContractRouter: {
|
|
|
6732
6732
|
id: string;
|
|
6733
6733
|
firstName: string;
|
|
6734
6734
|
lastName: string;
|
|
6735
|
-
phoneNumbers: {
|
|
6736
|
-
phoneNumber: string;
|
|
6737
|
-
description?: string | undefined;
|
|
6738
|
-
id?: string | undefined;
|
|
6739
|
-
isPrimary?: boolean | undefined;
|
|
6740
|
-
}[];
|
|
6741
6735
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
6742
6736
|
hasTools: boolean;
|
|
6743
6737
|
hasPpe: boolean;
|
|
6738
|
+
email?: string | null | undefined;
|
|
6744
6739
|
location?: {
|
|
6745
6740
|
address?: string | null | undefined;
|
|
6746
6741
|
postcode?: string | null | undefined;
|
|
@@ -6750,7 +6745,12 @@ export declare const bookingsContractRouter: {
|
|
|
6750
6745
|
postTown?: string | null | undefined;
|
|
6751
6746
|
areaCovered?: string | null | undefined;
|
|
6752
6747
|
} | null | undefined;
|
|
6753
|
-
|
|
6748
|
+
phoneNumbers?: {
|
|
6749
|
+
phoneNumber: string;
|
|
6750
|
+
id?: string | undefined;
|
|
6751
|
+
description?: string | undefined;
|
|
6752
|
+
isPrimary?: boolean | undefined;
|
|
6753
|
+
}[] | undefined;
|
|
6754
6754
|
nino?: string | null | undefined;
|
|
6755
6755
|
dateOfBirth?: string | Date | null | undefined;
|
|
6756
6756
|
bio?: string | null | undefined;
|
|
@@ -6831,7 +6831,7 @@ export declare const bookingsContractRouter: {
|
|
|
6831
6831
|
pay: z.ZodObject<{
|
|
6832
6832
|
rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
6833
6833
|
rate: z.ZodNumber;
|
|
6834
|
-
rateMax: z.
|
|
6834
|
+
rateMax: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
6835
6835
|
receivedRate: z.ZodNumber;
|
|
6836
6836
|
}, "strip", z.ZodTypeAny, {
|
|
6837
6837
|
rateUnit: "DAILY" | "HOURLY";
|
|
@@ -6870,7 +6870,7 @@ export declare const bookingsContractRouter: {
|
|
|
6870
6870
|
areaCovered?: string | null | undefined;
|
|
6871
6871
|
}>>>;
|
|
6872
6872
|
tradeId: z.ZodString;
|
|
6873
|
-
jobQualifications: z.ZodArray<z.ZodObject<{
|
|
6873
|
+
jobQualifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6874
6874
|
id: z.ZodString;
|
|
6875
6875
|
qualificationId: z.ZodString;
|
|
6876
6876
|
qualificationTypeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -6882,10 +6882,10 @@ export declare const bookingsContractRouter: {
|
|
|
6882
6882
|
id: string;
|
|
6883
6883
|
qualificationId: string;
|
|
6884
6884
|
qualificationTypeId?: string | null | undefined;
|
|
6885
|
-
}>, "many"
|
|
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;
|
|
@@ -7048,31 +7048,26 @@ export declare const bookingsContractRouter: {
|
|
|
7048
7048
|
rateMax?: number | null | undefined;
|
|
7049
7049
|
};
|
|
7050
7050
|
tradeId: string;
|
|
7051
|
-
jobQualifications: {
|
|
7052
|
-
id: string;
|
|
7053
|
-
qualificationId: string;
|
|
7054
|
-
qualificationTypeId?: string | null | undefined;
|
|
7055
|
-
}[];
|
|
7056
7051
|
currentCollaboration: {
|
|
7057
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
7058
7052
|
createdAt: string | Date;
|
|
7059
7053
|
updatedAt: string | Date;
|
|
7054
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
7060
7055
|
id: string;
|
|
7061
|
-
|
|
7056
|
+
userId: string;
|
|
7057
|
+
company?: {
|
|
7062
7058
|
id: string;
|
|
7063
7059
|
name: string;
|
|
7064
|
-
};
|
|
7065
|
-
client
|
|
7060
|
+
} | undefined;
|
|
7061
|
+
client?: {
|
|
7066
7062
|
id: string;
|
|
7067
7063
|
name: string;
|
|
7068
|
-
};
|
|
7069
|
-
user
|
|
7064
|
+
} | undefined;
|
|
7065
|
+
user?: {
|
|
7070
7066
|
id: string;
|
|
7071
7067
|
firstName: string;
|
|
7072
7068
|
lastName: string;
|
|
7073
7069
|
email: string;
|
|
7074
|
-
};
|
|
7075
|
-
userId: string;
|
|
7070
|
+
} | undefined;
|
|
7076
7071
|
newCollaboration?: {
|
|
7077
7072
|
id: string;
|
|
7078
7073
|
} | null | undefined;
|
|
@@ -7087,19 +7082,20 @@ export declare const bookingsContractRouter: {
|
|
|
7087
7082
|
postTown?: string | null | undefined;
|
|
7088
7083
|
areaCovered?: string | null | undefined;
|
|
7089
7084
|
} | null | undefined;
|
|
7085
|
+
jobQualifications?: {
|
|
7086
|
+
id: string;
|
|
7087
|
+
qualificationId: string;
|
|
7088
|
+
qualificationTypeId?: string | null | undefined;
|
|
7089
|
+
}[] | undefined;
|
|
7090
7090
|
}>;
|
|
7091
7091
|
userId: z.ZodString;
|
|
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;
|
|
@@ -7252,15 +7252,10 @@ export declare const bookingsContractRouter: {
|
|
|
7252
7252
|
id: string;
|
|
7253
7253
|
firstName: string;
|
|
7254
7254
|
lastName: string;
|
|
7255
|
-
phoneNumbers: {
|
|
7256
|
-
phoneNumber: string;
|
|
7257
|
-
description?: string | undefined;
|
|
7258
|
-
id?: string | undefined;
|
|
7259
|
-
isPrimary?: boolean | undefined;
|
|
7260
|
-
}[];
|
|
7261
7255
|
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
7262
7256
|
hasTools: boolean;
|
|
7263
7257
|
hasPpe: boolean;
|
|
7258
|
+
email?: string | null | undefined;
|
|
7264
7259
|
location?: {
|
|
7265
7260
|
address?: string | null | undefined;
|
|
7266
7261
|
postcode?: string | null | undefined;
|
|
@@ -7270,7 +7265,12 @@ export declare const bookingsContractRouter: {
|
|
|
7270
7265
|
postTown?: string | null | undefined;
|
|
7271
7266
|
areaCovered?: string | null | undefined;
|
|
7272
7267
|
} | null | undefined;
|
|
7273
|
-
|
|
7268
|
+
phoneNumbers?: {
|
|
7269
|
+
phoneNumber: string;
|
|
7270
|
+
id?: string | undefined;
|
|
7271
|
+
description?: string | undefined;
|
|
7272
|
+
isPrimary?: boolean | undefined;
|
|
7273
|
+
}[] | undefined;
|
|
7274
7274
|
nino?: string | null | undefined;
|
|
7275
7275
|
dateOfBirth?: string | Date | null | undefined;
|
|
7276
7276
|
bio?: 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;
|
|
@@ -7318,31 +7318,26 @@ export declare const bookingsContractRouter: {
|
|
|
7318
7318
|
rateMax?: number | null | undefined;
|
|
7319
7319
|
};
|
|
7320
7320
|
tradeId: string;
|
|
7321
|
-
jobQualifications: {
|
|
7322
|
-
id: string;
|
|
7323
|
-
qualificationId: string;
|
|
7324
|
-
qualificationTypeId?: string | null | undefined;
|
|
7325
|
-
}[];
|
|
7326
7321
|
currentCollaboration: {
|
|
7327
|
-
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
7328
7322
|
createdAt: string | Date;
|
|
7329
7323
|
updatedAt: string | Date;
|
|
7324
|
+
status: "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "APPROVED" | "CHANGED_COMPANY" | "CHANGED_AGENT";
|
|
7330
7325
|
id: string;
|
|
7331
|
-
|
|
7326
|
+
userId: string;
|
|
7327
|
+
company?: {
|
|
7332
7328
|
id: string;
|
|
7333
7329
|
name: string;
|
|
7334
|
-
};
|
|
7335
|
-
client
|
|
7330
|
+
} | undefined;
|
|
7331
|
+
client?: {
|
|
7336
7332
|
id: string;
|
|
7337
7333
|
name: string;
|
|
7338
|
-
};
|
|
7339
|
-
user
|
|
7334
|
+
} | undefined;
|
|
7335
|
+
user?: {
|
|
7340
7336
|
id: string;
|
|
7341
7337
|
firstName: string;
|
|
7342
7338
|
lastName: string;
|
|
7343
7339
|
email: string;
|
|
7344
|
-
};
|
|
7345
|
-
userId: string;
|
|
7340
|
+
} | undefined;
|
|
7346
7341
|
newCollaboration?: {
|
|
7347
7342
|
id: string;
|
|
7348
7343
|
} | null | undefined;
|
|
@@ -7357,6 +7352,11 @@ export declare const bookingsContractRouter: {
|
|
|
7357
7352
|
postTown?: string | null | undefined;
|
|
7358
7353
|
areaCovered?: string | null | undefined;
|
|
7359
7354
|
} | null | undefined;
|
|
7355
|
+
jobQualifications?: {
|
|
7356
|
+
id: string;
|
|
7357
|
+
qualificationId: string;
|
|
7358
|
+
qualificationTypeId?: string | null | undefined;
|
|
7359
|
+
}[] | undefined;
|
|
7360
7360
|
};
|
|
7361
7361
|
endDate?: string | Date | null | undefined;
|
|
7362
7362
|
}>;
|