@dakkitor/api-contracts 1.1.13 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,10 +24,115 @@ export declare const ActiveSchema: z.ZodObject<{
|
|
|
24
24
|
hoursWorkedUpdatedAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>;
|
|
25
25
|
booking: z.ZodObject<{
|
|
26
26
|
id: z.ZodString;
|
|
27
|
+
status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
|
|
28
|
+
startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
29
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
30
|
+
worker: z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
firstName: z.ZodString;
|
|
33
|
+
lastName: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
id: string;
|
|
36
|
+
firstName: string;
|
|
37
|
+
lastName: string;
|
|
38
|
+
}, {
|
|
39
|
+
id: string;
|
|
40
|
+
firstName: string;
|
|
41
|
+
lastName: string;
|
|
42
|
+
}>;
|
|
43
|
+
user: z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
firstName: z.ZodString;
|
|
46
|
+
lastName: z.ZodString;
|
|
47
|
+
email: z.ZodString;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
id: string;
|
|
50
|
+
firstName: string;
|
|
51
|
+
lastName: string;
|
|
52
|
+
email: string;
|
|
53
|
+
}, {
|
|
54
|
+
id: string;
|
|
55
|
+
firstName: string;
|
|
56
|
+
lastName: string;
|
|
57
|
+
email: string;
|
|
58
|
+
}>;
|
|
59
|
+
pay: z.ZodObject<{
|
|
60
|
+
rate: z.ZodNumber;
|
|
61
|
+
unit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
rate: number;
|
|
64
|
+
unit: "DAILY" | "HOURLY";
|
|
65
|
+
}, {
|
|
66
|
+
rate: number;
|
|
67
|
+
unit: "DAILY" | "HOURLY";
|
|
68
|
+
}>;
|
|
69
|
+
job: z.ZodObject<{
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
title: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
id: string;
|
|
74
|
+
title: string;
|
|
75
|
+
}, {
|
|
76
|
+
id: string;
|
|
77
|
+
title: string;
|
|
78
|
+
}>;
|
|
79
|
+
userId: z.ZodString;
|
|
80
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
81
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
27
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
84
|
+
createdAt: string;
|
|
85
|
+
updatedAt: string;
|
|
28
86
|
id: string;
|
|
87
|
+
pay: {
|
|
88
|
+
rate: number;
|
|
89
|
+
unit: "DAILY" | "HOURLY";
|
|
90
|
+
};
|
|
91
|
+
startDate: string;
|
|
92
|
+
worker: {
|
|
93
|
+
id: string;
|
|
94
|
+
firstName: string;
|
|
95
|
+
lastName: string;
|
|
96
|
+
};
|
|
97
|
+
user: {
|
|
98
|
+
id: string;
|
|
99
|
+
firstName: string;
|
|
100
|
+
lastName: string;
|
|
101
|
+
email: string;
|
|
102
|
+
};
|
|
103
|
+
job: {
|
|
104
|
+
id: string;
|
|
105
|
+
title: string;
|
|
106
|
+
};
|
|
107
|
+
userId: string;
|
|
108
|
+
endDate?: string | null | undefined;
|
|
29
109
|
}, {
|
|
110
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
111
|
+
createdAt: string | Date;
|
|
112
|
+
updatedAt: string | Date;
|
|
30
113
|
id: string;
|
|
114
|
+
pay: {
|
|
115
|
+
rate: number;
|
|
116
|
+
unit: "DAILY" | "HOURLY";
|
|
117
|
+
};
|
|
118
|
+
startDate: string | Date;
|
|
119
|
+
worker: {
|
|
120
|
+
id: string;
|
|
121
|
+
firstName: string;
|
|
122
|
+
lastName: string;
|
|
123
|
+
};
|
|
124
|
+
user: {
|
|
125
|
+
id: string;
|
|
126
|
+
firstName: string;
|
|
127
|
+
lastName: string;
|
|
128
|
+
email: string;
|
|
129
|
+
};
|
|
130
|
+
job: {
|
|
131
|
+
id: string;
|
|
132
|
+
title: string;
|
|
133
|
+
};
|
|
134
|
+
userId: string;
|
|
135
|
+
endDate?: string | Date | null | undefined;
|
|
31
136
|
}>;
|
|
32
137
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
33
138
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -48,7 +153,32 @@ export declare const ActiveSchema: z.ZodObject<{
|
|
|
48
153
|
hoursWorked: number | null;
|
|
49
154
|
hoursWorkedUpdatedAt: string | null;
|
|
50
155
|
booking: {
|
|
156
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
157
|
+
createdAt: string;
|
|
158
|
+
updatedAt: string;
|
|
51
159
|
id: string;
|
|
160
|
+
pay: {
|
|
161
|
+
rate: number;
|
|
162
|
+
unit: "DAILY" | "HOURLY";
|
|
163
|
+
};
|
|
164
|
+
startDate: string;
|
|
165
|
+
worker: {
|
|
166
|
+
id: string;
|
|
167
|
+
firstName: string;
|
|
168
|
+
lastName: string;
|
|
169
|
+
};
|
|
170
|
+
user: {
|
|
171
|
+
id: string;
|
|
172
|
+
firstName: string;
|
|
173
|
+
lastName: string;
|
|
174
|
+
email: string;
|
|
175
|
+
};
|
|
176
|
+
job: {
|
|
177
|
+
id: string;
|
|
178
|
+
title: string;
|
|
179
|
+
};
|
|
180
|
+
userId: string;
|
|
181
|
+
endDate?: string | null | undefined;
|
|
52
182
|
};
|
|
53
183
|
}, {
|
|
54
184
|
date: string | Date;
|
|
@@ -67,7 +197,32 @@ export declare const ActiveSchema: z.ZodObject<{
|
|
|
67
197
|
hoursWorked: number | null;
|
|
68
198
|
hoursWorkedUpdatedAt: string | Date | null;
|
|
69
199
|
booking: {
|
|
200
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
201
|
+
createdAt: string | Date;
|
|
202
|
+
updatedAt: string | Date;
|
|
70
203
|
id: string;
|
|
204
|
+
pay: {
|
|
205
|
+
rate: number;
|
|
206
|
+
unit: "DAILY" | "HOURLY";
|
|
207
|
+
};
|
|
208
|
+
startDate: string | Date;
|
|
209
|
+
worker: {
|
|
210
|
+
id: string;
|
|
211
|
+
firstName: string;
|
|
212
|
+
lastName: string;
|
|
213
|
+
};
|
|
214
|
+
user: {
|
|
215
|
+
id: string;
|
|
216
|
+
firstName: string;
|
|
217
|
+
lastName: string;
|
|
218
|
+
email: string;
|
|
219
|
+
};
|
|
220
|
+
job: {
|
|
221
|
+
id: string;
|
|
222
|
+
title: string;
|
|
223
|
+
};
|
|
224
|
+
userId: string;
|
|
225
|
+
endDate?: string | Date | null | undefined;
|
|
71
226
|
};
|
|
72
227
|
}>;
|
|
73
228
|
export declare const CreateActiveSchema: z.ZodObject<{
|
|
@@ -253,10 +408,115 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
253
408
|
hoursWorkedUpdatedAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>;
|
|
254
409
|
booking: z.ZodObject<{
|
|
255
410
|
id: z.ZodString;
|
|
411
|
+
status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
|
|
412
|
+
startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
413
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
414
|
+
worker: z.ZodObject<{
|
|
415
|
+
id: z.ZodString;
|
|
416
|
+
firstName: z.ZodString;
|
|
417
|
+
lastName: z.ZodString;
|
|
418
|
+
}, "strip", z.ZodTypeAny, {
|
|
419
|
+
id: string;
|
|
420
|
+
firstName: string;
|
|
421
|
+
lastName: string;
|
|
422
|
+
}, {
|
|
423
|
+
id: string;
|
|
424
|
+
firstName: string;
|
|
425
|
+
lastName: string;
|
|
426
|
+
}>;
|
|
427
|
+
user: z.ZodObject<{
|
|
428
|
+
id: z.ZodString;
|
|
429
|
+
firstName: z.ZodString;
|
|
430
|
+
lastName: z.ZodString;
|
|
431
|
+
email: z.ZodString;
|
|
432
|
+
}, "strip", z.ZodTypeAny, {
|
|
433
|
+
id: string;
|
|
434
|
+
firstName: string;
|
|
435
|
+
lastName: string;
|
|
436
|
+
email: string;
|
|
437
|
+
}, {
|
|
438
|
+
id: string;
|
|
439
|
+
firstName: string;
|
|
440
|
+
lastName: string;
|
|
441
|
+
email: string;
|
|
442
|
+
}>;
|
|
443
|
+
pay: z.ZodObject<{
|
|
444
|
+
rate: z.ZodNumber;
|
|
445
|
+
unit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
446
|
+
}, "strip", z.ZodTypeAny, {
|
|
447
|
+
rate: number;
|
|
448
|
+
unit: "DAILY" | "HOURLY";
|
|
449
|
+
}, {
|
|
450
|
+
rate: number;
|
|
451
|
+
unit: "DAILY" | "HOURLY";
|
|
452
|
+
}>;
|
|
453
|
+
job: z.ZodObject<{
|
|
454
|
+
id: z.ZodString;
|
|
455
|
+
title: z.ZodString;
|
|
456
|
+
}, "strip", z.ZodTypeAny, {
|
|
457
|
+
id: string;
|
|
458
|
+
title: string;
|
|
459
|
+
}, {
|
|
460
|
+
id: string;
|
|
461
|
+
title: string;
|
|
462
|
+
}>;
|
|
463
|
+
userId: z.ZodString;
|
|
464
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
465
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
256
466
|
}, "strip", z.ZodTypeAny, {
|
|
467
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
468
|
+
createdAt: string;
|
|
469
|
+
updatedAt: string;
|
|
257
470
|
id: string;
|
|
471
|
+
pay: {
|
|
472
|
+
rate: number;
|
|
473
|
+
unit: "DAILY" | "HOURLY";
|
|
474
|
+
};
|
|
475
|
+
startDate: string;
|
|
476
|
+
worker: {
|
|
477
|
+
id: string;
|
|
478
|
+
firstName: string;
|
|
479
|
+
lastName: string;
|
|
480
|
+
};
|
|
481
|
+
user: {
|
|
482
|
+
id: string;
|
|
483
|
+
firstName: string;
|
|
484
|
+
lastName: string;
|
|
485
|
+
email: string;
|
|
486
|
+
};
|
|
487
|
+
job: {
|
|
488
|
+
id: string;
|
|
489
|
+
title: string;
|
|
490
|
+
};
|
|
491
|
+
userId: string;
|
|
492
|
+
endDate?: string | null | undefined;
|
|
258
493
|
}, {
|
|
494
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
495
|
+
createdAt: string | Date;
|
|
496
|
+
updatedAt: string | Date;
|
|
259
497
|
id: string;
|
|
498
|
+
pay: {
|
|
499
|
+
rate: number;
|
|
500
|
+
unit: "DAILY" | "HOURLY";
|
|
501
|
+
};
|
|
502
|
+
startDate: string | Date;
|
|
503
|
+
worker: {
|
|
504
|
+
id: string;
|
|
505
|
+
firstName: string;
|
|
506
|
+
lastName: string;
|
|
507
|
+
};
|
|
508
|
+
user: {
|
|
509
|
+
id: string;
|
|
510
|
+
firstName: string;
|
|
511
|
+
lastName: string;
|
|
512
|
+
email: string;
|
|
513
|
+
};
|
|
514
|
+
job: {
|
|
515
|
+
id: string;
|
|
516
|
+
title: string;
|
|
517
|
+
};
|
|
518
|
+
userId: string;
|
|
519
|
+
endDate?: string | Date | null | undefined;
|
|
260
520
|
}>;
|
|
261
521
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
262
522
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -277,7 +537,32 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
277
537
|
hoursWorked: number | null;
|
|
278
538
|
hoursWorkedUpdatedAt: string | null;
|
|
279
539
|
booking: {
|
|
540
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
541
|
+
createdAt: string;
|
|
542
|
+
updatedAt: string;
|
|
280
543
|
id: string;
|
|
544
|
+
pay: {
|
|
545
|
+
rate: number;
|
|
546
|
+
unit: "DAILY" | "HOURLY";
|
|
547
|
+
};
|
|
548
|
+
startDate: string;
|
|
549
|
+
worker: {
|
|
550
|
+
id: string;
|
|
551
|
+
firstName: string;
|
|
552
|
+
lastName: string;
|
|
553
|
+
};
|
|
554
|
+
user: {
|
|
555
|
+
id: string;
|
|
556
|
+
firstName: string;
|
|
557
|
+
lastName: string;
|
|
558
|
+
email: string;
|
|
559
|
+
};
|
|
560
|
+
job: {
|
|
561
|
+
id: string;
|
|
562
|
+
title: string;
|
|
563
|
+
};
|
|
564
|
+
userId: string;
|
|
565
|
+
endDate?: string | null | undefined;
|
|
281
566
|
};
|
|
282
567
|
}, {
|
|
283
568
|
date: string | Date;
|
|
@@ -296,7 +581,32 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
296
581
|
hoursWorked: number | null;
|
|
297
582
|
hoursWorkedUpdatedAt: string | Date | null;
|
|
298
583
|
booking: {
|
|
584
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
585
|
+
createdAt: string | Date;
|
|
586
|
+
updatedAt: string | Date;
|
|
299
587
|
id: string;
|
|
588
|
+
pay: {
|
|
589
|
+
rate: number;
|
|
590
|
+
unit: "DAILY" | "HOURLY";
|
|
591
|
+
};
|
|
592
|
+
startDate: string | Date;
|
|
593
|
+
worker: {
|
|
594
|
+
id: string;
|
|
595
|
+
firstName: string;
|
|
596
|
+
lastName: string;
|
|
597
|
+
};
|
|
598
|
+
user: {
|
|
599
|
+
id: string;
|
|
600
|
+
firstName: string;
|
|
601
|
+
lastName: string;
|
|
602
|
+
email: string;
|
|
603
|
+
};
|
|
604
|
+
job: {
|
|
605
|
+
id: string;
|
|
606
|
+
title: string;
|
|
607
|
+
};
|
|
608
|
+
userId: string;
|
|
609
|
+
endDate?: string | Date | null | undefined;
|
|
300
610
|
};
|
|
301
611
|
}>, "many">;
|
|
302
612
|
totalCount: z.ZodNumber;
|
|
@@ -323,7 +633,32 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
323
633
|
hoursWorked: number | null;
|
|
324
634
|
hoursWorkedUpdatedAt: string | null;
|
|
325
635
|
booking: {
|
|
636
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
637
|
+
createdAt: string;
|
|
638
|
+
updatedAt: string;
|
|
326
639
|
id: string;
|
|
640
|
+
pay: {
|
|
641
|
+
rate: number;
|
|
642
|
+
unit: "DAILY" | "HOURLY";
|
|
643
|
+
};
|
|
644
|
+
startDate: string;
|
|
645
|
+
worker: {
|
|
646
|
+
id: string;
|
|
647
|
+
firstName: string;
|
|
648
|
+
lastName: string;
|
|
649
|
+
};
|
|
650
|
+
user: {
|
|
651
|
+
id: string;
|
|
652
|
+
firstName: string;
|
|
653
|
+
lastName: string;
|
|
654
|
+
email: string;
|
|
655
|
+
};
|
|
656
|
+
job: {
|
|
657
|
+
id: string;
|
|
658
|
+
title: string;
|
|
659
|
+
};
|
|
660
|
+
userId: string;
|
|
661
|
+
endDate?: string | null | undefined;
|
|
327
662
|
};
|
|
328
663
|
}[];
|
|
329
664
|
totalCount: number;
|
|
@@ -349,7 +684,32 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
349
684
|
hoursWorked: number | null;
|
|
350
685
|
hoursWorkedUpdatedAt: string | Date | null;
|
|
351
686
|
booking: {
|
|
687
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
688
|
+
createdAt: string | Date;
|
|
689
|
+
updatedAt: string | Date;
|
|
352
690
|
id: string;
|
|
691
|
+
pay: {
|
|
692
|
+
rate: number;
|
|
693
|
+
unit: "DAILY" | "HOURLY";
|
|
694
|
+
};
|
|
695
|
+
startDate: string | Date;
|
|
696
|
+
worker: {
|
|
697
|
+
id: string;
|
|
698
|
+
firstName: string;
|
|
699
|
+
lastName: string;
|
|
700
|
+
};
|
|
701
|
+
user: {
|
|
702
|
+
id: string;
|
|
703
|
+
firstName: string;
|
|
704
|
+
lastName: string;
|
|
705
|
+
email: string;
|
|
706
|
+
};
|
|
707
|
+
job: {
|
|
708
|
+
id: string;
|
|
709
|
+
title: string;
|
|
710
|
+
};
|
|
711
|
+
userId: string;
|
|
712
|
+
endDate?: string | Date | null | undefined;
|
|
353
713
|
};
|
|
354
714
|
}[];
|
|
355
715
|
totalCount: number;
|
|
@@ -540,10 +900,115 @@ export declare const activesContractRouter: {
|
|
|
540
900
|
hoursWorkedUpdatedAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>;
|
|
541
901
|
booking: z.ZodObject<{
|
|
542
902
|
id: z.ZodString;
|
|
903
|
+
status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
|
|
904
|
+
startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
905
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
906
|
+
worker: z.ZodObject<{
|
|
907
|
+
id: z.ZodString;
|
|
908
|
+
firstName: z.ZodString;
|
|
909
|
+
lastName: z.ZodString;
|
|
910
|
+
}, "strip", z.ZodTypeAny, {
|
|
911
|
+
id: string;
|
|
912
|
+
firstName: string;
|
|
913
|
+
lastName: string;
|
|
914
|
+
}, {
|
|
915
|
+
id: string;
|
|
916
|
+
firstName: string;
|
|
917
|
+
lastName: string;
|
|
918
|
+
}>;
|
|
919
|
+
user: z.ZodObject<{
|
|
920
|
+
id: z.ZodString;
|
|
921
|
+
firstName: z.ZodString;
|
|
922
|
+
lastName: z.ZodString;
|
|
923
|
+
email: z.ZodString;
|
|
924
|
+
}, "strip", z.ZodTypeAny, {
|
|
925
|
+
id: string;
|
|
926
|
+
firstName: string;
|
|
927
|
+
lastName: string;
|
|
928
|
+
email: string;
|
|
929
|
+
}, {
|
|
930
|
+
id: string;
|
|
931
|
+
firstName: string;
|
|
932
|
+
lastName: string;
|
|
933
|
+
email: string;
|
|
934
|
+
}>;
|
|
935
|
+
pay: z.ZodObject<{
|
|
936
|
+
rate: z.ZodNumber;
|
|
937
|
+
unit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
938
|
+
}, "strip", z.ZodTypeAny, {
|
|
939
|
+
rate: number;
|
|
940
|
+
unit: "DAILY" | "HOURLY";
|
|
941
|
+
}, {
|
|
942
|
+
rate: number;
|
|
943
|
+
unit: "DAILY" | "HOURLY";
|
|
944
|
+
}>;
|
|
945
|
+
job: z.ZodObject<{
|
|
946
|
+
id: z.ZodString;
|
|
947
|
+
title: z.ZodString;
|
|
948
|
+
}, "strip", z.ZodTypeAny, {
|
|
949
|
+
id: string;
|
|
950
|
+
title: string;
|
|
951
|
+
}, {
|
|
952
|
+
id: string;
|
|
953
|
+
title: string;
|
|
954
|
+
}>;
|
|
955
|
+
userId: z.ZodString;
|
|
956
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
957
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
543
958
|
}, "strip", z.ZodTypeAny, {
|
|
959
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
960
|
+
createdAt: string;
|
|
961
|
+
updatedAt: string;
|
|
544
962
|
id: string;
|
|
963
|
+
pay: {
|
|
964
|
+
rate: number;
|
|
965
|
+
unit: "DAILY" | "HOURLY";
|
|
966
|
+
};
|
|
967
|
+
startDate: string;
|
|
968
|
+
worker: {
|
|
969
|
+
id: string;
|
|
970
|
+
firstName: string;
|
|
971
|
+
lastName: string;
|
|
972
|
+
};
|
|
973
|
+
user: {
|
|
974
|
+
id: string;
|
|
975
|
+
firstName: string;
|
|
976
|
+
lastName: string;
|
|
977
|
+
email: string;
|
|
978
|
+
};
|
|
979
|
+
job: {
|
|
980
|
+
id: string;
|
|
981
|
+
title: string;
|
|
982
|
+
};
|
|
983
|
+
userId: string;
|
|
984
|
+
endDate?: string | null | undefined;
|
|
545
985
|
}, {
|
|
986
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
987
|
+
createdAt: string | Date;
|
|
988
|
+
updatedAt: string | Date;
|
|
546
989
|
id: string;
|
|
990
|
+
pay: {
|
|
991
|
+
rate: number;
|
|
992
|
+
unit: "DAILY" | "HOURLY";
|
|
993
|
+
};
|
|
994
|
+
startDate: string | Date;
|
|
995
|
+
worker: {
|
|
996
|
+
id: string;
|
|
997
|
+
firstName: string;
|
|
998
|
+
lastName: string;
|
|
999
|
+
};
|
|
1000
|
+
user: {
|
|
1001
|
+
id: string;
|
|
1002
|
+
firstName: string;
|
|
1003
|
+
lastName: string;
|
|
1004
|
+
email: string;
|
|
1005
|
+
};
|
|
1006
|
+
job: {
|
|
1007
|
+
id: string;
|
|
1008
|
+
title: string;
|
|
1009
|
+
};
|
|
1010
|
+
userId: string;
|
|
1011
|
+
endDate?: string | Date | null | undefined;
|
|
547
1012
|
}>;
|
|
548
1013
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
549
1014
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -564,7 +1029,32 @@ export declare const activesContractRouter: {
|
|
|
564
1029
|
hoursWorked: number | null;
|
|
565
1030
|
hoursWorkedUpdatedAt: string | null;
|
|
566
1031
|
booking: {
|
|
1032
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
1033
|
+
createdAt: string;
|
|
1034
|
+
updatedAt: string;
|
|
567
1035
|
id: string;
|
|
1036
|
+
pay: {
|
|
1037
|
+
rate: number;
|
|
1038
|
+
unit: "DAILY" | "HOURLY";
|
|
1039
|
+
};
|
|
1040
|
+
startDate: string;
|
|
1041
|
+
worker: {
|
|
1042
|
+
id: string;
|
|
1043
|
+
firstName: string;
|
|
1044
|
+
lastName: string;
|
|
1045
|
+
};
|
|
1046
|
+
user: {
|
|
1047
|
+
id: string;
|
|
1048
|
+
firstName: string;
|
|
1049
|
+
lastName: string;
|
|
1050
|
+
email: string;
|
|
1051
|
+
};
|
|
1052
|
+
job: {
|
|
1053
|
+
id: string;
|
|
1054
|
+
title: string;
|
|
1055
|
+
};
|
|
1056
|
+
userId: string;
|
|
1057
|
+
endDate?: string | null | undefined;
|
|
568
1058
|
};
|
|
569
1059
|
}, {
|
|
570
1060
|
date: string | Date;
|
|
@@ -583,7 +1073,32 @@ export declare const activesContractRouter: {
|
|
|
583
1073
|
hoursWorked: number | null;
|
|
584
1074
|
hoursWorkedUpdatedAt: string | Date | null;
|
|
585
1075
|
booking: {
|
|
1076
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
1077
|
+
createdAt: string | Date;
|
|
1078
|
+
updatedAt: string | Date;
|
|
586
1079
|
id: string;
|
|
1080
|
+
pay: {
|
|
1081
|
+
rate: number;
|
|
1082
|
+
unit: "DAILY" | "HOURLY";
|
|
1083
|
+
};
|
|
1084
|
+
startDate: string | Date;
|
|
1085
|
+
worker: {
|
|
1086
|
+
id: string;
|
|
1087
|
+
firstName: string;
|
|
1088
|
+
lastName: string;
|
|
1089
|
+
};
|
|
1090
|
+
user: {
|
|
1091
|
+
id: string;
|
|
1092
|
+
firstName: string;
|
|
1093
|
+
lastName: string;
|
|
1094
|
+
email: string;
|
|
1095
|
+
};
|
|
1096
|
+
job: {
|
|
1097
|
+
id: string;
|
|
1098
|
+
title: string;
|
|
1099
|
+
};
|
|
1100
|
+
userId: string;
|
|
1101
|
+
endDate?: string | Date | null | undefined;
|
|
587
1102
|
};
|
|
588
1103
|
}>;
|
|
589
1104
|
404: z.ZodObject<{
|
|
@@ -864,10 +1379,115 @@ export declare const activesContractRouter: {
|
|
|
864
1379
|
hoursWorkedUpdatedAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>;
|
|
865
1380
|
booking: z.ZodObject<{
|
|
866
1381
|
id: z.ZodString;
|
|
1382
|
+
status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
|
|
1383
|
+
startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1384
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1385
|
+
worker: z.ZodObject<{
|
|
1386
|
+
id: z.ZodString;
|
|
1387
|
+
firstName: z.ZodString;
|
|
1388
|
+
lastName: z.ZodString;
|
|
1389
|
+
}, "strip", z.ZodTypeAny, {
|
|
1390
|
+
id: string;
|
|
1391
|
+
firstName: string;
|
|
1392
|
+
lastName: string;
|
|
1393
|
+
}, {
|
|
1394
|
+
id: string;
|
|
1395
|
+
firstName: string;
|
|
1396
|
+
lastName: string;
|
|
1397
|
+
}>;
|
|
1398
|
+
user: z.ZodObject<{
|
|
1399
|
+
id: z.ZodString;
|
|
1400
|
+
firstName: z.ZodString;
|
|
1401
|
+
lastName: z.ZodString;
|
|
1402
|
+
email: z.ZodString;
|
|
1403
|
+
}, "strip", z.ZodTypeAny, {
|
|
1404
|
+
id: string;
|
|
1405
|
+
firstName: string;
|
|
1406
|
+
lastName: string;
|
|
1407
|
+
email: string;
|
|
1408
|
+
}, {
|
|
1409
|
+
id: string;
|
|
1410
|
+
firstName: string;
|
|
1411
|
+
lastName: string;
|
|
1412
|
+
email: string;
|
|
1413
|
+
}>;
|
|
1414
|
+
pay: z.ZodObject<{
|
|
1415
|
+
rate: z.ZodNumber;
|
|
1416
|
+
unit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
1417
|
+
}, "strip", z.ZodTypeAny, {
|
|
1418
|
+
rate: number;
|
|
1419
|
+
unit: "DAILY" | "HOURLY";
|
|
1420
|
+
}, {
|
|
1421
|
+
rate: number;
|
|
1422
|
+
unit: "DAILY" | "HOURLY";
|
|
1423
|
+
}>;
|
|
1424
|
+
job: z.ZodObject<{
|
|
1425
|
+
id: z.ZodString;
|
|
1426
|
+
title: z.ZodString;
|
|
1427
|
+
}, "strip", z.ZodTypeAny, {
|
|
1428
|
+
id: string;
|
|
1429
|
+
title: string;
|
|
1430
|
+
}, {
|
|
1431
|
+
id: string;
|
|
1432
|
+
title: string;
|
|
1433
|
+
}>;
|
|
1434
|
+
userId: z.ZodString;
|
|
1435
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1436
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
867
1437
|
}, "strip", z.ZodTypeAny, {
|
|
1438
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
1439
|
+
createdAt: string;
|
|
1440
|
+
updatedAt: string;
|
|
868
1441
|
id: string;
|
|
1442
|
+
pay: {
|
|
1443
|
+
rate: number;
|
|
1444
|
+
unit: "DAILY" | "HOURLY";
|
|
1445
|
+
};
|
|
1446
|
+
startDate: string;
|
|
1447
|
+
worker: {
|
|
1448
|
+
id: string;
|
|
1449
|
+
firstName: string;
|
|
1450
|
+
lastName: string;
|
|
1451
|
+
};
|
|
1452
|
+
user: {
|
|
1453
|
+
id: string;
|
|
1454
|
+
firstName: string;
|
|
1455
|
+
lastName: string;
|
|
1456
|
+
email: string;
|
|
1457
|
+
};
|
|
1458
|
+
job: {
|
|
1459
|
+
id: string;
|
|
1460
|
+
title: string;
|
|
1461
|
+
};
|
|
1462
|
+
userId: string;
|
|
1463
|
+
endDate?: string | null | undefined;
|
|
869
1464
|
}, {
|
|
1465
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
1466
|
+
createdAt: string | Date;
|
|
1467
|
+
updatedAt: string | Date;
|
|
870
1468
|
id: string;
|
|
1469
|
+
pay: {
|
|
1470
|
+
rate: number;
|
|
1471
|
+
unit: "DAILY" | "HOURLY";
|
|
1472
|
+
};
|
|
1473
|
+
startDate: string | Date;
|
|
1474
|
+
worker: {
|
|
1475
|
+
id: string;
|
|
1476
|
+
firstName: string;
|
|
1477
|
+
lastName: string;
|
|
1478
|
+
};
|
|
1479
|
+
user: {
|
|
1480
|
+
id: string;
|
|
1481
|
+
firstName: string;
|
|
1482
|
+
lastName: string;
|
|
1483
|
+
email: string;
|
|
1484
|
+
};
|
|
1485
|
+
job: {
|
|
1486
|
+
id: string;
|
|
1487
|
+
title: string;
|
|
1488
|
+
};
|
|
1489
|
+
userId: string;
|
|
1490
|
+
endDate?: string | Date | null | undefined;
|
|
871
1491
|
}>;
|
|
872
1492
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
873
1493
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -888,7 +1508,32 @@ export declare const activesContractRouter: {
|
|
|
888
1508
|
hoursWorked: number | null;
|
|
889
1509
|
hoursWorkedUpdatedAt: string | null;
|
|
890
1510
|
booking: {
|
|
1511
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
1512
|
+
createdAt: string;
|
|
1513
|
+
updatedAt: string;
|
|
891
1514
|
id: string;
|
|
1515
|
+
pay: {
|
|
1516
|
+
rate: number;
|
|
1517
|
+
unit: "DAILY" | "HOURLY";
|
|
1518
|
+
};
|
|
1519
|
+
startDate: string;
|
|
1520
|
+
worker: {
|
|
1521
|
+
id: string;
|
|
1522
|
+
firstName: string;
|
|
1523
|
+
lastName: string;
|
|
1524
|
+
};
|
|
1525
|
+
user: {
|
|
1526
|
+
id: string;
|
|
1527
|
+
firstName: string;
|
|
1528
|
+
lastName: string;
|
|
1529
|
+
email: string;
|
|
1530
|
+
};
|
|
1531
|
+
job: {
|
|
1532
|
+
id: string;
|
|
1533
|
+
title: string;
|
|
1534
|
+
};
|
|
1535
|
+
userId: string;
|
|
1536
|
+
endDate?: string | null | undefined;
|
|
892
1537
|
};
|
|
893
1538
|
}, {
|
|
894
1539
|
date: string | Date;
|
|
@@ -907,7 +1552,32 @@ export declare const activesContractRouter: {
|
|
|
907
1552
|
hoursWorked: number | null;
|
|
908
1553
|
hoursWorkedUpdatedAt: string | Date | null;
|
|
909
1554
|
booking: {
|
|
1555
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
1556
|
+
createdAt: string | Date;
|
|
1557
|
+
updatedAt: string | Date;
|
|
910
1558
|
id: string;
|
|
1559
|
+
pay: {
|
|
1560
|
+
rate: number;
|
|
1561
|
+
unit: "DAILY" | "HOURLY";
|
|
1562
|
+
};
|
|
1563
|
+
startDate: string | Date;
|
|
1564
|
+
worker: {
|
|
1565
|
+
id: string;
|
|
1566
|
+
firstName: string;
|
|
1567
|
+
lastName: string;
|
|
1568
|
+
};
|
|
1569
|
+
user: {
|
|
1570
|
+
id: string;
|
|
1571
|
+
firstName: string;
|
|
1572
|
+
lastName: string;
|
|
1573
|
+
email: string;
|
|
1574
|
+
};
|
|
1575
|
+
job: {
|
|
1576
|
+
id: string;
|
|
1577
|
+
title: string;
|
|
1578
|
+
};
|
|
1579
|
+
userId: string;
|
|
1580
|
+
endDate?: string | Date | null | undefined;
|
|
911
1581
|
};
|
|
912
1582
|
}>, "many">;
|
|
913
1583
|
totalCount: z.ZodNumber;
|
|
@@ -934,7 +1604,32 @@ export declare const activesContractRouter: {
|
|
|
934
1604
|
hoursWorked: number | null;
|
|
935
1605
|
hoursWorkedUpdatedAt: string | null;
|
|
936
1606
|
booking: {
|
|
1607
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
1608
|
+
createdAt: string;
|
|
1609
|
+
updatedAt: string;
|
|
937
1610
|
id: string;
|
|
1611
|
+
pay: {
|
|
1612
|
+
rate: number;
|
|
1613
|
+
unit: "DAILY" | "HOURLY";
|
|
1614
|
+
};
|
|
1615
|
+
startDate: string;
|
|
1616
|
+
worker: {
|
|
1617
|
+
id: string;
|
|
1618
|
+
firstName: string;
|
|
1619
|
+
lastName: string;
|
|
1620
|
+
};
|
|
1621
|
+
user: {
|
|
1622
|
+
id: string;
|
|
1623
|
+
firstName: string;
|
|
1624
|
+
lastName: string;
|
|
1625
|
+
email: string;
|
|
1626
|
+
};
|
|
1627
|
+
job: {
|
|
1628
|
+
id: string;
|
|
1629
|
+
title: string;
|
|
1630
|
+
};
|
|
1631
|
+
userId: string;
|
|
1632
|
+
endDate?: string | null | undefined;
|
|
938
1633
|
};
|
|
939
1634
|
}[];
|
|
940
1635
|
totalCount: number;
|
|
@@ -960,7 +1655,32 @@ export declare const activesContractRouter: {
|
|
|
960
1655
|
hoursWorked: number | null;
|
|
961
1656
|
hoursWorkedUpdatedAt: string | Date | null;
|
|
962
1657
|
booking: {
|
|
1658
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
1659
|
+
createdAt: string | Date;
|
|
1660
|
+
updatedAt: string | Date;
|
|
963
1661
|
id: string;
|
|
1662
|
+
pay: {
|
|
1663
|
+
rate: number;
|
|
1664
|
+
unit: "DAILY" | "HOURLY";
|
|
1665
|
+
};
|
|
1666
|
+
startDate: string | Date;
|
|
1667
|
+
worker: {
|
|
1668
|
+
id: string;
|
|
1669
|
+
firstName: string;
|
|
1670
|
+
lastName: string;
|
|
1671
|
+
};
|
|
1672
|
+
user: {
|
|
1673
|
+
id: string;
|
|
1674
|
+
firstName: string;
|
|
1675
|
+
lastName: string;
|
|
1676
|
+
email: string;
|
|
1677
|
+
};
|
|
1678
|
+
job: {
|
|
1679
|
+
id: string;
|
|
1680
|
+
title: string;
|
|
1681
|
+
};
|
|
1682
|
+
userId: string;
|
|
1683
|
+
endDate?: string | Date | null | undefined;
|
|
964
1684
|
};
|
|
965
1685
|
}[];
|
|
966
1686
|
totalCount: number;
|
|
@@ -1110,10 +1830,115 @@ export declare const activesContractRouter: {
|
|
|
1110
1830
|
hoursWorkedUpdatedAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>;
|
|
1111
1831
|
booking: z.ZodObject<{
|
|
1112
1832
|
id: z.ZodString;
|
|
1833
|
+
status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
|
|
1834
|
+
startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1835
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1836
|
+
worker: z.ZodObject<{
|
|
1837
|
+
id: z.ZodString;
|
|
1838
|
+
firstName: z.ZodString;
|
|
1839
|
+
lastName: z.ZodString;
|
|
1840
|
+
}, "strip", z.ZodTypeAny, {
|
|
1841
|
+
id: string;
|
|
1842
|
+
firstName: string;
|
|
1843
|
+
lastName: string;
|
|
1844
|
+
}, {
|
|
1845
|
+
id: string;
|
|
1846
|
+
firstName: string;
|
|
1847
|
+
lastName: string;
|
|
1848
|
+
}>;
|
|
1849
|
+
user: z.ZodObject<{
|
|
1850
|
+
id: z.ZodString;
|
|
1851
|
+
firstName: z.ZodString;
|
|
1852
|
+
lastName: z.ZodString;
|
|
1853
|
+
email: z.ZodString;
|
|
1854
|
+
}, "strip", z.ZodTypeAny, {
|
|
1855
|
+
id: string;
|
|
1856
|
+
firstName: string;
|
|
1857
|
+
lastName: string;
|
|
1858
|
+
email: string;
|
|
1859
|
+
}, {
|
|
1860
|
+
id: string;
|
|
1861
|
+
firstName: string;
|
|
1862
|
+
lastName: string;
|
|
1863
|
+
email: string;
|
|
1864
|
+
}>;
|
|
1865
|
+
pay: z.ZodObject<{
|
|
1866
|
+
rate: z.ZodNumber;
|
|
1867
|
+
unit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
1868
|
+
}, "strip", z.ZodTypeAny, {
|
|
1869
|
+
rate: number;
|
|
1870
|
+
unit: "DAILY" | "HOURLY";
|
|
1871
|
+
}, {
|
|
1872
|
+
rate: number;
|
|
1873
|
+
unit: "DAILY" | "HOURLY";
|
|
1874
|
+
}>;
|
|
1875
|
+
job: z.ZodObject<{
|
|
1876
|
+
id: z.ZodString;
|
|
1877
|
+
title: z.ZodString;
|
|
1878
|
+
}, "strip", z.ZodTypeAny, {
|
|
1879
|
+
id: string;
|
|
1880
|
+
title: string;
|
|
1881
|
+
}, {
|
|
1882
|
+
id: string;
|
|
1883
|
+
title: string;
|
|
1884
|
+
}>;
|
|
1885
|
+
userId: z.ZodString;
|
|
1886
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1887
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1113
1888
|
}, "strip", z.ZodTypeAny, {
|
|
1889
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
1890
|
+
createdAt: string;
|
|
1891
|
+
updatedAt: string;
|
|
1114
1892
|
id: string;
|
|
1893
|
+
pay: {
|
|
1894
|
+
rate: number;
|
|
1895
|
+
unit: "DAILY" | "HOURLY";
|
|
1896
|
+
};
|
|
1897
|
+
startDate: string;
|
|
1898
|
+
worker: {
|
|
1899
|
+
id: string;
|
|
1900
|
+
firstName: string;
|
|
1901
|
+
lastName: string;
|
|
1902
|
+
};
|
|
1903
|
+
user: {
|
|
1904
|
+
id: string;
|
|
1905
|
+
firstName: string;
|
|
1906
|
+
lastName: string;
|
|
1907
|
+
email: string;
|
|
1908
|
+
};
|
|
1909
|
+
job: {
|
|
1910
|
+
id: string;
|
|
1911
|
+
title: string;
|
|
1912
|
+
};
|
|
1913
|
+
userId: string;
|
|
1914
|
+
endDate?: string | null | undefined;
|
|
1115
1915
|
}, {
|
|
1916
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
1917
|
+
createdAt: string | Date;
|
|
1918
|
+
updatedAt: string | Date;
|
|
1116
1919
|
id: string;
|
|
1920
|
+
pay: {
|
|
1921
|
+
rate: number;
|
|
1922
|
+
unit: "DAILY" | "HOURLY";
|
|
1923
|
+
};
|
|
1924
|
+
startDate: string | Date;
|
|
1925
|
+
worker: {
|
|
1926
|
+
id: string;
|
|
1927
|
+
firstName: string;
|
|
1928
|
+
lastName: string;
|
|
1929
|
+
};
|
|
1930
|
+
user: {
|
|
1931
|
+
id: string;
|
|
1932
|
+
firstName: string;
|
|
1933
|
+
lastName: string;
|
|
1934
|
+
email: string;
|
|
1935
|
+
};
|
|
1936
|
+
job: {
|
|
1937
|
+
id: string;
|
|
1938
|
+
title: string;
|
|
1939
|
+
};
|
|
1940
|
+
userId: string;
|
|
1941
|
+
endDate?: string | Date | null | undefined;
|
|
1117
1942
|
}>;
|
|
1118
1943
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1119
1944
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1134,7 +1959,32 @@ export declare const activesContractRouter: {
|
|
|
1134
1959
|
hoursWorked: number | null;
|
|
1135
1960
|
hoursWorkedUpdatedAt: string | null;
|
|
1136
1961
|
booking: {
|
|
1962
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
1963
|
+
createdAt: string;
|
|
1964
|
+
updatedAt: string;
|
|
1137
1965
|
id: string;
|
|
1966
|
+
pay: {
|
|
1967
|
+
rate: number;
|
|
1968
|
+
unit: "DAILY" | "HOURLY";
|
|
1969
|
+
};
|
|
1970
|
+
startDate: string;
|
|
1971
|
+
worker: {
|
|
1972
|
+
id: string;
|
|
1973
|
+
firstName: string;
|
|
1974
|
+
lastName: string;
|
|
1975
|
+
};
|
|
1976
|
+
user: {
|
|
1977
|
+
id: string;
|
|
1978
|
+
firstName: string;
|
|
1979
|
+
lastName: string;
|
|
1980
|
+
email: string;
|
|
1981
|
+
};
|
|
1982
|
+
job: {
|
|
1983
|
+
id: string;
|
|
1984
|
+
title: string;
|
|
1985
|
+
};
|
|
1986
|
+
userId: string;
|
|
1987
|
+
endDate?: string | null | undefined;
|
|
1138
1988
|
};
|
|
1139
1989
|
}, {
|
|
1140
1990
|
date: string | Date;
|
|
@@ -1153,7 +2003,32 @@ export declare const activesContractRouter: {
|
|
|
1153
2003
|
hoursWorked: number | null;
|
|
1154
2004
|
hoursWorkedUpdatedAt: string | Date | null;
|
|
1155
2005
|
booking: {
|
|
2006
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
2007
|
+
createdAt: string | Date;
|
|
2008
|
+
updatedAt: string | Date;
|
|
1156
2009
|
id: string;
|
|
2010
|
+
pay: {
|
|
2011
|
+
rate: number;
|
|
2012
|
+
unit: "DAILY" | "HOURLY";
|
|
2013
|
+
};
|
|
2014
|
+
startDate: string | Date;
|
|
2015
|
+
worker: {
|
|
2016
|
+
id: string;
|
|
2017
|
+
firstName: string;
|
|
2018
|
+
lastName: string;
|
|
2019
|
+
};
|
|
2020
|
+
user: {
|
|
2021
|
+
id: string;
|
|
2022
|
+
firstName: string;
|
|
2023
|
+
lastName: string;
|
|
2024
|
+
email: string;
|
|
2025
|
+
};
|
|
2026
|
+
job: {
|
|
2027
|
+
id: string;
|
|
2028
|
+
title: string;
|
|
2029
|
+
};
|
|
2030
|
+
userId: string;
|
|
2031
|
+
endDate?: string | Date | null | undefined;
|
|
1157
2032
|
};
|
|
1158
2033
|
}>;
|
|
1159
2034
|
404: z.ZodObject<{
|
|
@@ -1357,10 +2232,115 @@ export declare const activesContractRouter: {
|
|
|
1357
2232
|
hoursWorkedUpdatedAt: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>;
|
|
1358
2233
|
booking: z.ZodObject<{
|
|
1359
2234
|
id: z.ZodString;
|
|
2235
|
+
status: z.ZodEnum<["PENDING", "CONFIRMED", "CANCELLED", "COMPLETED", "REFUSED_BECAUSE_OF_NATIONALITY", "REFUSED_NOT_ENOUGH_EXPERIENCE", "REFUSED_JOB_FILLED", "REFUSED_IGNORED_DENIED", "REFUSED_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "JOB_CANCELLED", "ANOTHER_SITUATION", "YELLOW_FOR_TOMORROW", "SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB", "DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS"]>;
|
|
2236
|
+
startDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2237
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2238
|
+
worker: z.ZodObject<{
|
|
2239
|
+
id: z.ZodString;
|
|
2240
|
+
firstName: z.ZodString;
|
|
2241
|
+
lastName: z.ZodString;
|
|
2242
|
+
}, "strip", z.ZodTypeAny, {
|
|
2243
|
+
id: string;
|
|
2244
|
+
firstName: string;
|
|
2245
|
+
lastName: string;
|
|
2246
|
+
}, {
|
|
2247
|
+
id: string;
|
|
2248
|
+
firstName: string;
|
|
2249
|
+
lastName: string;
|
|
2250
|
+
}>;
|
|
2251
|
+
user: z.ZodObject<{
|
|
2252
|
+
id: z.ZodString;
|
|
2253
|
+
firstName: z.ZodString;
|
|
2254
|
+
lastName: z.ZodString;
|
|
2255
|
+
email: z.ZodString;
|
|
2256
|
+
}, "strip", z.ZodTypeAny, {
|
|
2257
|
+
id: string;
|
|
2258
|
+
firstName: string;
|
|
2259
|
+
lastName: string;
|
|
2260
|
+
email: string;
|
|
2261
|
+
}, {
|
|
2262
|
+
id: string;
|
|
2263
|
+
firstName: string;
|
|
2264
|
+
lastName: string;
|
|
2265
|
+
email: string;
|
|
2266
|
+
}>;
|
|
2267
|
+
pay: z.ZodObject<{
|
|
2268
|
+
rate: z.ZodNumber;
|
|
2269
|
+
unit: z.ZodEnum<["DAILY", "HOURLY"]>;
|
|
2270
|
+
}, "strip", z.ZodTypeAny, {
|
|
2271
|
+
rate: number;
|
|
2272
|
+
unit: "DAILY" | "HOURLY";
|
|
2273
|
+
}, {
|
|
2274
|
+
rate: number;
|
|
2275
|
+
unit: "DAILY" | "HOURLY";
|
|
2276
|
+
}>;
|
|
2277
|
+
job: z.ZodObject<{
|
|
2278
|
+
id: z.ZodString;
|
|
2279
|
+
title: z.ZodString;
|
|
2280
|
+
}, "strip", z.ZodTypeAny, {
|
|
2281
|
+
id: string;
|
|
2282
|
+
title: string;
|
|
2283
|
+
}, {
|
|
2284
|
+
id: string;
|
|
2285
|
+
title: string;
|
|
2286
|
+
}>;
|
|
2287
|
+
userId: z.ZodString;
|
|
2288
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2289
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1360
2290
|
}, "strip", z.ZodTypeAny, {
|
|
2291
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
2292
|
+
createdAt: string;
|
|
2293
|
+
updatedAt: string;
|
|
1361
2294
|
id: string;
|
|
2295
|
+
pay: {
|
|
2296
|
+
rate: number;
|
|
2297
|
+
unit: "DAILY" | "HOURLY";
|
|
2298
|
+
};
|
|
2299
|
+
startDate: string;
|
|
2300
|
+
worker: {
|
|
2301
|
+
id: string;
|
|
2302
|
+
firstName: string;
|
|
2303
|
+
lastName: string;
|
|
2304
|
+
};
|
|
2305
|
+
user: {
|
|
2306
|
+
id: string;
|
|
2307
|
+
firstName: string;
|
|
2308
|
+
lastName: string;
|
|
2309
|
+
email: string;
|
|
2310
|
+
};
|
|
2311
|
+
job: {
|
|
2312
|
+
id: string;
|
|
2313
|
+
title: string;
|
|
2314
|
+
};
|
|
2315
|
+
userId: string;
|
|
2316
|
+
endDate?: string | null | undefined;
|
|
1362
2317
|
}, {
|
|
2318
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
2319
|
+
createdAt: string | Date;
|
|
2320
|
+
updatedAt: string | Date;
|
|
1363
2321
|
id: string;
|
|
2322
|
+
pay: {
|
|
2323
|
+
rate: number;
|
|
2324
|
+
unit: "DAILY" | "HOURLY";
|
|
2325
|
+
};
|
|
2326
|
+
startDate: string | Date;
|
|
2327
|
+
worker: {
|
|
2328
|
+
id: string;
|
|
2329
|
+
firstName: string;
|
|
2330
|
+
lastName: string;
|
|
2331
|
+
};
|
|
2332
|
+
user: {
|
|
2333
|
+
id: string;
|
|
2334
|
+
firstName: string;
|
|
2335
|
+
lastName: string;
|
|
2336
|
+
email: string;
|
|
2337
|
+
};
|
|
2338
|
+
job: {
|
|
2339
|
+
id: string;
|
|
2340
|
+
title: string;
|
|
2341
|
+
};
|
|
2342
|
+
userId: string;
|
|
2343
|
+
endDate?: string | Date | null | undefined;
|
|
1364
2344
|
}>;
|
|
1365
2345
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1366
2346
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1381,7 +2361,32 @@ export declare const activesContractRouter: {
|
|
|
1381
2361
|
hoursWorked: number | null;
|
|
1382
2362
|
hoursWorkedUpdatedAt: string | null;
|
|
1383
2363
|
booking: {
|
|
2364
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
2365
|
+
createdAt: string;
|
|
2366
|
+
updatedAt: string;
|
|
1384
2367
|
id: string;
|
|
2368
|
+
pay: {
|
|
2369
|
+
rate: number;
|
|
2370
|
+
unit: "DAILY" | "HOURLY";
|
|
2371
|
+
};
|
|
2372
|
+
startDate: string;
|
|
2373
|
+
worker: {
|
|
2374
|
+
id: string;
|
|
2375
|
+
firstName: string;
|
|
2376
|
+
lastName: string;
|
|
2377
|
+
};
|
|
2378
|
+
user: {
|
|
2379
|
+
id: string;
|
|
2380
|
+
firstName: string;
|
|
2381
|
+
lastName: string;
|
|
2382
|
+
email: string;
|
|
2383
|
+
};
|
|
2384
|
+
job: {
|
|
2385
|
+
id: string;
|
|
2386
|
+
title: string;
|
|
2387
|
+
};
|
|
2388
|
+
userId: string;
|
|
2389
|
+
endDate?: string | null | undefined;
|
|
1385
2390
|
};
|
|
1386
2391
|
}, {
|
|
1387
2392
|
date: string | Date;
|
|
@@ -1400,7 +2405,32 @@ export declare const activesContractRouter: {
|
|
|
1400
2405
|
hoursWorked: number | null;
|
|
1401
2406
|
hoursWorkedUpdatedAt: string | Date | null;
|
|
1402
2407
|
booking: {
|
|
2408
|
+
status: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS";
|
|
2409
|
+
createdAt: string | Date;
|
|
2410
|
+
updatedAt: string | Date;
|
|
1403
2411
|
id: string;
|
|
2412
|
+
pay: {
|
|
2413
|
+
rate: number;
|
|
2414
|
+
unit: "DAILY" | "HOURLY";
|
|
2415
|
+
};
|
|
2416
|
+
startDate: string | Date;
|
|
2417
|
+
worker: {
|
|
2418
|
+
id: string;
|
|
2419
|
+
firstName: string;
|
|
2420
|
+
lastName: string;
|
|
2421
|
+
};
|
|
2422
|
+
user: {
|
|
2423
|
+
id: string;
|
|
2424
|
+
firstName: string;
|
|
2425
|
+
lastName: string;
|
|
2426
|
+
email: string;
|
|
2427
|
+
};
|
|
2428
|
+
job: {
|
|
2429
|
+
id: string;
|
|
2430
|
+
title: string;
|
|
2431
|
+
};
|
|
2432
|
+
userId: string;
|
|
2433
|
+
endDate?: string | Date | null | undefined;
|
|
1404
2434
|
};
|
|
1405
2435
|
}>;
|
|
1406
2436
|
404: z.ZodObject<{
|