@dakkitor/api-contracts 1.1.11 → 1.1.13
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 +75 -76
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +15 -15
- package/dist/agent-client-links/agent-client-links.contract.d.ts +320 -316
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.js +6 -6
- package/dist/auth/auth.contract.d.ts +2 -2
- package/dist/bookings/bookings.contract.d.ts +328 -328
- package/dist/call-history/call-history.contract.d.ts +205 -205
- package/dist/client-contacts/client-contacts.contract.d.ts +334 -332
- package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.js +3 -3
- package/dist/clients/clients.contract.d.ts +196 -196
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +404 -404
- package/dist/collaborations/collaborations.contract.d.ts +379 -379
- package/dist/common/error-schemas.d.ts +7 -7
- package/dist/common/error-schemas.d.ts.map +1 -1
- package/dist/companies/companies.contract.d.ts +214 -214
- package/dist/cron-executions/cron-executions.contract.d.ts +206 -206
- package/dist/curated-workers/curated-workers.contract.d.ts +213 -213
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +124 -124
- package/dist/files/files.contract.d.ts +216 -216
- package/dist/health/health.contract.d.ts +22 -22
- package/dist/index.d.ts +971 -971
- package/dist/jobs/jobs.contract.d.ts +210 -210
- package/dist/lead-assignments/lead-assignments.contract.d.ts +248 -248
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +40 -40
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +153 -153
- package/dist/leads/leads.contract.d.ts +246 -246
- package/dist/locations/locations.contract.d.ts +143 -143
- package/dist/postcodes/postcodes.contract.d.ts +56 -56
- package/dist/qualifications/qualifications.contract.d.ts +248 -248
- package/dist/trades/trades.contract.d.ts +156 -156
- package/dist/users/users.contract.d.ts +68 -64
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +8 -8
- package/dist/workers/workers.contract.d.ts +226 -226
- package/package.json +1 -1
|
@@ -38,22 +38,22 @@ export declare const BookingItemSchema: z.ZodObject<{
|
|
|
38
38
|
id: string;
|
|
39
39
|
};
|
|
40
40
|
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" | undefined;
|
|
41
|
-
endDate?: string | null | undefined;
|
|
42
41
|
pay?: {
|
|
43
42
|
rate: number;
|
|
44
43
|
unit: "DAILY" | "HOURLY";
|
|
45
44
|
} | undefined;
|
|
45
|
+
endDate?: string | null | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
startDate: string;
|
|
48
48
|
worker: {
|
|
49
49
|
id: string;
|
|
50
50
|
};
|
|
51
51
|
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" | undefined;
|
|
52
|
-
endDate?: string | null | undefined;
|
|
53
52
|
pay?: {
|
|
54
53
|
rate: number;
|
|
55
54
|
unit: "DAILY" | "HOURLY";
|
|
56
55
|
} | undefined;
|
|
56
|
+
endDate?: string | null | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
export declare const FilterJobInBookingSchema: z.ZodObject<{
|
|
59
59
|
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -61,13 +61,13 @@ 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
|
-
userId?: string | null | undefined;
|
|
65
64
|
clientId?: string | null | undefined;
|
|
65
|
+
userId?: string | null | undefined;
|
|
66
66
|
companyId?: string | null | undefined;
|
|
67
67
|
tradeId?: string | null | undefined;
|
|
68
68
|
}, {
|
|
69
|
-
userId?: string | null | undefined;
|
|
70
69
|
clientId?: string | null | undefined;
|
|
70
|
+
userId?: string | null | undefined;
|
|
71
71
|
companyId?: string | null | undefined;
|
|
72
72
|
tradeId?: string | null | undefined;
|
|
73
73
|
}>;
|
|
@@ -153,20 +153,19 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
153
153
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
154
154
|
}, "strip", z.ZodTypeAny, {
|
|
155
155
|
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";
|
|
156
|
-
|
|
156
|
+
id: string;
|
|
157
157
|
createdAt: string;
|
|
158
158
|
updatedAt: string;
|
|
159
|
-
|
|
159
|
+
pay: {
|
|
160
|
+
rate: number;
|
|
161
|
+
unit: "DAILY" | "HOURLY";
|
|
162
|
+
};
|
|
163
|
+
startDate: string;
|
|
160
164
|
worker: {
|
|
161
165
|
id: string;
|
|
162
166
|
firstName: string;
|
|
163
167
|
lastName: string;
|
|
164
168
|
};
|
|
165
|
-
pay: {
|
|
166
|
-
rate: number;
|
|
167
|
-
unit: "DAILY" | "HOURLY";
|
|
168
|
-
};
|
|
169
|
-
userId: string;
|
|
170
169
|
user: {
|
|
171
170
|
id: string;
|
|
172
171
|
firstName: string;
|
|
@@ -177,23 +176,23 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
177
176
|
id: string;
|
|
178
177
|
title: string;
|
|
179
178
|
};
|
|
179
|
+
userId: string;
|
|
180
180
|
endDate?: string | null | undefined;
|
|
181
181
|
}, {
|
|
182
182
|
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";
|
|
183
|
-
|
|
183
|
+
id: string;
|
|
184
184
|
createdAt: string | Date;
|
|
185
185
|
updatedAt: string | Date;
|
|
186
|
-
|
|
186
|
+
pay: {
|
|
187
|
+
rate: number;
|
|
188
|
+
unit: "DAILY" | "HOURLY";
|
|
189
|
+
};
|
|
190
|
+
startDate: string | Date;
|
|
187
191
|
worker: {
|
|
188
192
|
id: string;
|
|
189
193
|
firstName: string;
|
|
190
194
|
lastName: string;
|
|
191
195
|
};
|
|
192
|
-
pay: {
|
|
193
|
-
rate: number;
|
|
194
|
-
unit: "DAILY" | "HOURLY";
|
|
195
|
-
};
|
|
196
|
-
userId: string;
|
|
197
196
|
user: {
|
|
198
197
|
id: string;
|
|
199
198
|
firstName: string;
|
|
@@ -204,6 +203,7 @@ export declare const BookingSchema: z.ZodObject<{
|
|
|
204
203
|
id: string;
|
|
205
204
|
title: string;
|
|
206
205
|
};
|
|
206
|
+
userId: string;
|
|
207
207
|
endDate?: string | Date | null | undefined;
|
|
208
208
|
}>;
|
|
209
209
|
export declare const CreateBookingSchema: z.ZodObject<{
|
|
@@ -241,22 +241,22 @@ export declare const CreateBookingSchema: z.ZodObject<{
|
|
|
241
241
|
id: string;
|
|
242
242
|
};
|
|
243
243
|
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" | undefined;
|
|
244
|
-
endDate?: string | null | undefined;
|
|
245
244
|
pay?: {
|
|
246
245
|
rate: number;
|
|
247
246
|
unit: "DAILY" | "HOURLY";
|
|
248
247
|
} | undefined;
|
|
248
|
+
endDate?: string | null | undefined;
|
|
249
249
|
}, {
|
|
250
250
|
startDate: string;
|
|
251
251
|
worker: {
|
|
252
252
|
id: string;
|
|
253
253
|
};
|
|
254
254
|
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" | undefined;
|
|
255
|
-
endDate?: string | null | undefined;
|
|
256
255
|
pay?: {
|
|
257
256
|
rate: number;
|
|
258
257
|
unit: "DAILY" | "HOURLY";
|
|
259
258
|
} | undefined;
|
|
259
|
+
endDate?: string | null | undefined;
|
|
260
260
|
}>, "many">;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
262
|
job: {
|
|
@@ -268,11 +268,11 @@ export declare const CreateBookingSchema: z.ZodObject<{
|
|
|
268
268
|
id: string;
|
|
269
269
|
};
|
|
270
270
|
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" | undefined;
|
|
271
|
-
endDate?: string | null | undefined;
|
|
272
271
|
pay?: {
|
|
273
272
|
rate: number;
|
|
274
273
|
unit: "DAILY" | "HOURLY";
|
|
275
274
|
} | undefined;
|
|
275
|
+
endDate?: string | null | undefined;
|
|
276
276
|
}[];
|
|
277
277
|
}, {
|
|
278
278
|
job: {
|
|
@@ -284,11 +284,11 @@ export declare const CreateBookingSchema: z.ZodObject<{
|
|
|
284
284
|
id: string;
|
|
285
285
|
};
|
|
286
286
|
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" | undefined;
|
|
287
|
-
endDate?: string | null | undefined;
|
|
288
287
|
pay?: {
|
|
289
288
|
rate: number;
|
|
290
289
|
unit: "DAILY" | "HOURLY";
|
|
291
290
|
} | undefined;
|
|
291
|
+
endDate?: string | null | undefined;
|
|
292
292
|
}[];
|
|
293
293
|
}>;
|
|
294
294
|
export declare const UpdateBookingSchema: z.ZodObject<{
|
|
@@ -315,13 +315,13 @@ export declare const FilterBookingSchema: z.ZodObject<{
|
|
|
315
315
|
companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
316
316
|
tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
317
317
|
}, "strip", z.ZodTypeAny, {
|
|
318
|
-
userId?: string | null | undefined;
|
|
319
318
|
clientId?: string | null | undefined;
|
|
319
|
+
userId?: string | null | undefined;
|
|
320
320
|
companyId?: string | null | undefined;
|
|
321
321
|
tradeId?: string | null | undefined;
|
|
322
322
|
}, {
|
|
323
|
-
userId?: string | null | undefined;
|
|
324
323
|
clientId?: string | null | undefined;
|
|
324
|
+
userId?: string | null | undefined;
|
|
325
325
|
companyId?: string | null | undefined;
|
|
326
326
|
tradeId?: string | null | undefined;
|
|
327
327
|
}>>>;
|
|
@@ -365,11 +365,14 @@ export declare const FilterBookingSchema: z.ZodObject<{
|
|
|
365
365
|
limit: number;
|
|
366
366
|
page: number;
|
|
367
367
|
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;
|
|
368
|
-
|
|
368
|
+
clientId?: string | null | undefined;
|
|
369
|
+
createdAt?: {
|
|
369
370
|
from?: string | null | undefined;
|
|
370
371
|
to?: string | null | undefined;
|
|
371
372
|
} | null | undefined;
|
|
372
|
-
|
|
373
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
|
|
374
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
375
|
+
startDate?: {
|
|
373
376
|
from?: string | null | undefined;
|
|
374
377
|
to?: string | null | undefined;
|
|
375
378
|
} | null | undefined;
|
|
@@ -377,25 +380,27 @@ export declare const FilterBookingSchema: z.ZodObject<{
|
|
|
377
380
|
from?: string | null | undefined;
|
|
378
381
|
to?: string | null | undefined;
|
|
379
382
|
} | null | undefined;
|
|
380
|
-
clientId?: string | null | undefined;
|
|
381
|
-
companyId?: string | null | undefined;
|
|
382
383
|
job?: {
|
|
383
|
-
userId?: string | null | undefined;
|
|
384
384
|
clientId?: string | null | undefined;
|
|
385
|
+
userId?: string | null | undefined;
|
|
385
386
|
companyId?: string | null | undefined;
|
|
386
387
|
tradeId?: string | null | undefined;
|
|
387
388
|
} | null | undefined;
|
|
388
389
|
workerName?: string | null | undefined;
|
|
389
|
-
|
|
390
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
390
|
+
companyId?: string | null | undefined;
|
|
391
391
|
agentName?: string | null | undefined;
|
|
392
392
|
}, {
|
|
393
393
|
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;
|
|
394
|
-
|
|
394
|
+
clientId?: string | null | undefined;
|
|
395
|
+
createdAt?: {
|
|
395
396
|
from?: string | null | undefined;
|
|
396
397
|
to?: string | null | undefined;
|
|
397
398
|
} | null | undefined;
|
|
398
|
-
|
|
399
|
+
limit?: number | undefined;
|
|
400
|
+
page?: number | undefined;
|
|
401
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
|
|
402
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
403
|
+
startDate?: {
|
|
399
404
|
from?: string | null | undefined;
|
|
400
405
|
to?: string | null | undefined;
|
|
401
406
|
} | null | undefined;
|
|
@@ -403,19 +408,14 @@ export declare const FilterBookingSchema: z.ZodObject<{
|
|
|
403
408
|
from?: string | null | undefined;
|
|
404
409
|
to?: string | null | undefined;
|
|
405
410
|
} | null | undefined;
|
|
406
|
-
clientId?: string | null | undefined;
|
|
407
|
-
companyId?: string | null | undefined;
|
|
408
411
|
job?: {
|
|
409
|
-
userId?: string | null | undefined;
|
|
410
412
|
clientId?: string | null | undefined;
|
|
413
|
+
userId?: string | null | undefined;
|
|
411
414
|
companyId?: string | null | undefined;
|
|
412
415
|
tradeId?: string | null | undefined;
|
|
413
416
|
} | null | undefined;
|
|
414
|
-
limit?: number | undefined;
|
|
415
|
-
page?: number | undefined;
|
|
416
417
|
workerName?: string | null | undefined;
|
|
417
|
-
|
|
418
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
418
|
+
companyId?: string | null | undefined;
|
|
419
419
|
agentName?: string | null | undefined;
|
|
420
420
|
}>;
|
|
421
421
|
export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
@@ -478,20 +478,19 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
478
478
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
479
479
|
}, "strip", z.ZodTypeAny, {
|
|
480
480
|
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";
|
|
481
|
-
|
|
481
|
+
id: string;
|
|
482
482
|
createdAt: string;
|
|
483
483
|
updatedAt: string;
|
|
484
|
-
|
|
484
|
+
pay: {
|
|
485
|
+
rate: number;
|
|
486
|
+
unit: "DAILY" | "HOURLY";
|
|
487
|
+
};
|
|
488
|
+
startDate: string;
|
|
485
489
|
worker: {
|
|
486
490
|
id: string;
|
|
487
491
|
firstName: string;
|
|
488
492
|
lastName: string;
|
|
489
493
|
};
|
|
490
|
-
pay: {
|
|
491
|
-
rate: number;
|
|
492
|
-
unit: "DAILY" | "HOURLY";
|
|
493
|
-
};
|
|
494
|
-
userId: string;
|
|
495
494
|
user: {
|
|
496
495
|
id: string;
|
|
497
496
|
firstName: string;
|
|
@@ -502,23 +501,23 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
502
501
|
id: string;
|
|
503
502
|
title: string;
|
|
504
503
|
};
|
|
504
|
+
userId: string;
|
|
505
505
|
endDate?: string | null | undefined;
|
|
506
506
|
}, {
|
|
507
507
|
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";
|
|
508
|
-
|
|
508
|
+
id: string;
|
|
509
509
|
createdAt: string | Date;
|
|
510
510
|
updatedAt: string | Date;
|
|
511
|
-
|
|
511
|
+
pay: {
|
|
512
|
+
rate: number;
|
|
513
|
+
unit: "DAILY" | "HOURLY";
|
|
514
|
+
};
|
|
515
|
+
startDate: string | Date;
|
|
512
516
|
worker: {
|
|
513
517
|
id: string;
|
|
514
518
|
firstName: string;
|
|
515
519
|
lastName: string;
|
|
516
520
|
};
|
|
517
|
-
pay: {
|
|
518
|
-
rate: number;
|
|
519
|
-
unit: "DAILY" | "HOURLY";
|
|
520
|
-
};
|
|
521
|
-
userId: string;
|
|
522
521
|
user: {
|
|
523
522
|
id: string;
|
|
524
523
|
firstName: string;
|
|
@@ -529,6 +528,7 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
529
528
|
id: string;
|
|
530
529
|
title: string;
|
|
531
530
|
};
|
|
531
|
+
userId: string;
|
|
532
532
|
endDate?: string | Date | null | undefined;
|
|
533
533
|
}>, "many">;
|
|
534
534
|
totalCount: z.ZodNumber;
|
|
@@ -537,23 +537,21 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
537
537
|
currentPage: z.ZodNumber;
|
|
538
538
|
totalPages: z.ZodNumber;
|
|
539
539
|
}, "strip", z.ZodTypeAny, {
|
|
540
|
-
limit: number;
|
|
541
540
|
items: {
|
|
542
541
|
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";
|
|
543
|
-
|
|
542
|
+
id: string;
|
|
544
543
|
createdAt: string;
|
|
545
544
|
updatedAt: string;
|
|
546
|
-
|
|
545
|
+
pay: {
|
|
546
|
+
rate: number;
|
|
547
|
+
unit: "DAILY" | "HOURLY";
|
|
548
|
+
};
|
|
549
|
+
startDate: string;
|
|
547
550
|
worker: {
|
|
548
551
|
id: string;
|
|
549
552
|
firstName: string;
|
|
550
553
|
lastName: string;
|
|
551
554
|
};
|
|
552
|
-
pay: {
|
|
553
|
-
rate: number;
|
|
554
|
-
unit: "DAILY" | "HOURLY";
|
|
555
|
-
};
|
|
556
|
-
userId: string;
|
|
557
555
|
user: {
|
|
558
556
|
id: string;
|
|
559
557
|
firstName: string;
|
|
@@ -564,30 +562,30 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
564
562
|
id: string;
|
|
565
563
|
title: string;
|
|
566
564
|
};
|
|
565
|
+
userId: string;
|
|
567
566
|
endDate?: string | null | undefined;
|
|
568
567
|
}[];
|
|
569
568
|
totalCount: number;
|
|
569
|
+
limit: number;
|
|
570
570
|
skip: number;
|
|
571
571
|
currentPage: number;
|
|
572
572
|
totalPages: number;
|
|
573
573
|
}, {
|
|
574
|
-
limit: number;
|
|
575
574
|
items: {
|
|
576
575
|
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";
|
|
577
|
-
|
|
576
|
+
id: string;
|
|
578
577
|
createdAt: string | Date;
|
|
579
578
|
updatedAt: string | Date;
|
|
580
|
-
|
|
579
|
+
pay: {
|
|
580
|
+
rate: number;
|
|
581
|
+
unit: "DAILY" | "HOURLY";
|
|
582
|
+
};
|
|
583
|
+
startDate: string | Date;
|
|
581
584
|
worker: {
|
|
582
585
|
id: string;
|
|
583
586
|
firstName: string;
|
|
584
587
|
lastName: string;
|
|
585
588
|
};
|
|
586
|
-
pay: {
|
|
587
|
-
rate: number;
|
|
588
|
-
unit: "DAILY" | "HOURLY";
|
|
589
|
-
};
|
|
590
|
-
userId: string;
|
|
591
589
|
user: {
|
|
592
590
|
id: string;
|
|
593
591
|
firstName: string;
|
|
@@ -598,9 +596,11 @@ export declare const PaginatedBookingResponseSchema: z.ZodObject<{
|
|
|
598
596
|
id: string;
|
|
599
597
|
title: string;
|
|
600
598
|
};
|
|
599
|
+
userId: string;
|
|
601
600
|
endDate?: string | Date | null | undefined;
|
|
602
601
|
}[];
|
|
603
602
|
totalCount: number;
|
|
603
|
+
limit: number;
|
|
604
604
|
skip: number;
|
|
605
605
|
currentPage: number;
|
|
606
606
|
totalPages: number;
|
|
@@ -664,20 +664,19 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
664
664
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
665
665
|
}, "strip", z.ZodTypeAny, {
|
|
666
666
|
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";
|
|
667
|
-
|
|
667
|
+
id: string;
|
|
668
668
|
createdAt: string;
|
|
669
669
|
updatedAt: string;
|
|
670
|
-
|
|
670
|
+
pay: {
|
|
671
|
+
rate: number;
|
|
672
|
+
unit: "DAILY" | "HOURLY";
|
|
673
|
+
};
|
|
674
|
+
startDate: string;
|
|
671
675
|
worker: {
|
|
672
676
|
id: string;
|
|
673
677
|
firstName: string;
|
|
674
678
|
lastName: string;
|
|
675
679
|
};
|
|
676
|
-
pay: {
|
|
677
|
-
rate: number;
|
|
678
|
-
unit: "DAILY" | "HOURLY";
|
|
679
|
-
};
|
|
680
|
-
userId: string;
|
|
681
680
|
user: {
|
|
682
681
|
id: string;
|
|
683
682
|
firstName: string;
|
|
@@ -688,23 +687,23 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
688
687
|
id: string;
|
|
689
688
|
title: string;
|
|
690
689
|
};
|
|
690
|
+
userId: string;
|
|
691
691
|
endDate?: string | null | undefined;
|
|
692
692
|
}, {
|
|
693
693
|
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";
|
|
694
|
-
|
|
694
|
+
id: string;
|
|
695
695
|
createdAt: string | Date;
|
|
696
696
|
updatedAt: string | Date;
|
|
697
|
-
|
|
697
|
+
pay: {
|
|
698
|
+
rate: number;
|
|
699
|
+
unit: "DAILY" | "HOURLY";
|
|
700
|
+
};
|
|
701
|
+
startDate: string | Date;
|
|
698
702
|
worker: {
|
|
699
703
|
id: string;
|
|
700
704
|
firstName: string;
|
|
701
705
|
lastName: string;
|
|
702
706
|
};
|
|
703
|
-
pay: {
|
|
704
|
-
rate: number;
|
|
705
|
-
unit: "DAILY" | "HOURLY";
|
|
706
|
-
};
|
|
707
|
-
userId: string;
|
|
708
707
|
user: {
|
|
709
708
|
id: string;
|
|
710
709
|
firstName: string;
|
|
@@ -715,6 +714,7 @@ export declare const BookingArraySchema: z.ZodArray<z.ZodObject<{
|
|
|
715
714
|
id: string;
|
|
716
715
|
title: string;
|
|
717
716
|
};
|
|
717
|
+
userId: string;
|
|
718
718
|
endDate?: string | Date | null | undefined;
|
|
719
719
|
}>, "many">;
|
|
720
720
|
export type BookingStatus = z.infer<typeof BookingStatusSchema>;
|
|
@@ -775,22 +775,22 @@ export declare const bookingsContractRouter: {
|
|
|
775
775
|
id: string;
|
|
776
776
|
};
|
|
777
777
|
status?: "PENDING" | "CONFIRMED" | "CANCELLED" | "COMPLETED" | "REFUSED_BECAUSE_OF_NATIONALITY" | "REFUSED_NOT_ENOUGH_EXPERIENCE" | "REFUSED_JOB_FILLED" | "REFUSED_IGNORED_DENIED" | "REFUSED_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "JOB_CANCELLED" | "ANOTHER_SITUATION" | "YELLOW_FOR_TOMORROW" | "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | undefined;
|
|
778
|
-
endDate?: string | null | undefined;
|
|
779
778
|
pay?: {
|
|
780
779
|
rate: number;
|
|
781
780
|
unit: "DAILY" | "HOURLY";
|
|
782
781
|
} | undefined;
|
|
782
|
+
endDate?: string | null | undefined;
|
|
783
783
|
}, {
|
|
784
784
|
startDate: string;
|
|
785
785
|
worker: {
|
|
786
786
|
id: string;
|
|
787
787
|
};
|
|
788
788
|
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" | undefined;
|
|
789
|
-
endDate?: string | null | undefined;
|
|
790
789
|
pay?: {
|
|
791
790
|
rate: number;
|
|
792
791
|
unit: "DAILY" | "HOURLY";
|
|
793
792
|
} | undefined;
|
|
793
|
+
endDate?: string | null | undefined;
|
|
794
794
|
}>, "many">;
|
|
795
795
|
}, "strip", z.ZodTypeAny, {
|
|
796
796
|
job: {
|
|
@@ -802,11 +802,11 @@ export declare const bookingsContractRouter: {
|
|
|
802
802
|
id: string;
|
|
803
803
|
};
|
|
804
804
|
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" | undefined;
|
|
805
|
-
endDate?: string | null | undefined;
|
|
806
805
|
pay?: {
|
|
807
806
|
rate: number;
|
|
808
807
|
unit: "DAILY" | "HOURLY";
|
|
809
808
|
} | undefined;
|
|
809
|
+
endDate?: string | null | undefined;
|
|
810
810
|
}[];
|
|
811
811
|
}, {
|
|
812
812
|
job: {
|
|
@@ -818,11 +818,11 @@ export declare const bookingsContractRouter: {
|
|
|
818
818
|
id: string;
|
|
819
819
|
};
|
|
820
820
|
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" | undefined;
|
|
821
|
-
endDate?: string | null | undefined;
|
|
822
821
|
pay?: {
|
|
823
822
|
rate: number;
|
|
824
823
|
unit: "DAILY" | "HOURLY";
|
|
825
824
|
} | undefined;
|
|
825
|
+
endDate?: string | null | undefined;
|
|
826
826
|
}[];
|
|
827
827
|
}>;
|
|
828
828
|
path: "/v2/bookings";
|
|
@@ -836,19 +836,19 @@ export declare const bookingsContractRouter: {
|
|
|
836
836
|
path: z.ZodString;
|
|
837
837
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
838
838
|
}, "strip", z.ZodTypeAny, {
|
|
839
|
-
code: string;
|
|
840
|
-
path: string;
|
|
841
|
-
message: string;
|
|
842
839
|
statusCode: number;
|
|
840
|
+
message: string;
|
|
841
|
+
code: string;
|
|
843
842
|
timestamp: string;
|
|
843
|
+
path: string;
|
|
844
844
|
details?: unknown;
|
|
845
845
|
correlationId?: string | undefined;
|
|
846
846
|
}, {
|
|
847
|
-
code: string;
|
|
848
|
-
path: string;
|
|
849
|
-
message: string;
|
|
850
847
|
statusCode: number;
|
|
848
|
+
message: string;
|
|
849
|
+
code: string;
|
|
851
850
|
timestamp: string;
|
|
851
|
+
path: string;
|
|
852
852
|
details?: unknown;
|
|
853
853
|
correlationId?: string | undefined;
|
|
854
854
|
}>;
|
|
@@ -861,19 +861,19 @@ export declare const bookingsContractRouter: {
|
|
|
861
861
|
path: z.ZodString;
|
|
862
862
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
863
863
|
}, "strip", z.ZodTypeAny, {
|
|
864
|
-
code: string;
|
|
865
|
-
path: string;
|
|
866
|
-
message: string;
|
|
867
864
|
statusCode: number;
|
|
865
|
+
message: string;
|
|
866
|
+
code: string;
|
|
868
867
|
timestamp: string;
|
|
868
|
+
path: string;
|
|
869
869
|
details?: unknown;
|
|
870
870
|
correlationId?: string | undefined;
|
|
871
871
|
}, {
|
|
872
|
-
code: string;
|
|
873
|
-
path: string;
|
|
874
|
-
message: string;
|
|
875
872
|
statusCode: number;
|
|
873
|
+
message: string;
|
|
874
|
+
code: string;
|
|
876
875
|
timestamp: string;
|
|
876
|
+
path: string;
|
|
877
877
|
details?: unknown;
|
|
878
878
|
correlationId?: string | undefined;
|
|
879
879
|
}>;
|
|
@@ -886,19 +886,19 @@ export declare const bookingsContractRouter: {
|
|
|
886
886
|
path: z.ZodString;
|
|
887
887
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
888
888
|
}, "strip", z.ZodTypeAny, {
|
|
889
|
-
code: string;
|
|
890
|
-
path: string;
|
|
891
|
-
message: string;
|
|
892
889
|
statusCode: number;
|
|
890
|
+
message: string;
|
|
891
|
+
code: string;
|
|
893
892
|
timestamp: string;
|
|
893
|
+
path: string;
|
|
894
894
|
details?: unknown;
|
|
895
895
|
correlationId?: string | undefined;
|
|
896
896
|
}, {
|
|
897
|
-
code: string;
|
|
898
|
-
path: string;
|
|
899
|
-
message: string;
|
|
900
897
|
statusCode: number;
|
|
898
|
+
message: string;
|
|
899
|
+
code: string;
|
|
901
900
|
timestamp: string;
|
|
901
|
+
path: string;
|
|
902
902
|
details?: unknown;
|
|
903
903
|
correlationId?: string | undefined;
|
|
904
904
|
}>;
|
|
@@ -911,19 +911,19 @@ export declare const bookingsContractRouter: {
|
|
|
911
911
|
path: z.ZodString;
|
|
912
912
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
913
913
|
}, "strip", z.ZodTypeAny, {
|
|
914
|
-
code: string;
|
|
915
|
-
path: string;
|
|
916
|
-
message: string;
|
|
917
914
|
statusCode: number;
|
|
915
|
+
message: string;
|
|
916
|
+
code: string;
|
|
918
917
|
timestamp: string;
|
|
918
|
+
path: string;
|
|
919
919
|
details?: unknown;
|
|
920
920
|
correlationId?: string | undefined;
|
|
921
921
|
}, {
|
|
922
|
-
code: string;
|
|
923
|
-
path: string;
|
|
924
|
-
message: string;
|
|
925
922
|
statusCode: number;
|
|
923
|
+
message: string;
|
|
924
|
+
code: string;
|
|
926
925
|
timestamp: string;
|
|
926
|
+
path: string;
|
|
927
927
|
details?: unknown;
|
|
928
928
|
correlationId?: string | undefined;
|
|
929
929
|
}>;
|
|
@@ -986,20 +986,19 @@ export declare const bookingsContractRouter: {
|
|
|
986
986
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
987
987
|
}, "strip", z.ZodTypeAny, {
|
|
988
988
|
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";
|
|
989
|
-
|
|
989
|
+
id: string;
|
|
990
990
|
createdAt: string;
|
|
991
991
|
updatedAt: string;
|
|
992
|
-
|
|
992
|
+
pay: {
|
|
993
|
+
rate: number;
|
|
994
|
+
unit: "DAILY" | "HOURLY";
|
|
995
|
+
};
|
|
996
|
+
startDate: string;
|
|
993
997
|
worker: {
|
|
994
998
|
id: string;
|
|
995
999
|
firstName: string;
|
|
996
1000
|
lastName: string;
|
|
997
1001
|
};
|
|
998
|
-
pay: {
|
|
999
|
-
rate: number;
|
|
1000
|
-
unit: "DAILY" | "HOURLY";
|
|
1001
|
-
};
|
|
1002
|
-
userId: string;
|
|
1003
1002
|
user: {
|
|
1004
1003
|
id: string;
|
|
1005
1004
|
firstName: string;
|
|
@@ -1010,23 +1009,23 @@ export declare const bookingsContractRouter: {
|
|
|
1010
1009
|
id: string;
|
|
1011
1010
|
title: string;
|
|
1012
1011
|
};
|
|
1012
|
+
userId: string;
|
|
1013
1013
|
endDate?: string | null | undefined;
|
|
1014
1014
|
}, {
|
|
1015
1015
|
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";
|
|
1016
|
-
|
|
1016
|
+
id: string;
|
|
1017
1017
|
createdAt: string | Date;
|
|
1018
1018
|
updatedAt: string | Date;
|
|
1019
|
-
|
|
1019
|
+
pay: {
|
|
1020
|
+
rate: number;
|
|
1021
|
+
unit: "DAILY" | "HOURLY";
|
|
1022
|
+
};
|
|
1023
|
+
startDate: string | Date;
|
|
1020
1024
|
worker: {
|
|
1021
1025
|
id: string;
|
|
1022
1026
|
firstName: string;
|
|
1023
1027
|
lastName: string;
|
|
1024
1028
|
};
|
|
1025
|
-
pay: {
|
|
1026
|
-
rate: number;
|
|
1027
|
-
unit: "DAILY" | "HOURLY";
|
|
1028
|
-
};
|
|
1029
|
-
userId: string;
|
|
1030
1029
|
user: {
|
|
1031
1030
|
id: string;
|
|
1032
1031
|
firstName: string;
|
|
@@ -1037,6 +1036,7 @@ export declare const bookingsContractRouter: {
|
|
|
1037
1036
|
id: string;
|
|
1038
1037
|
title: string;
|
|
1039
1038
|
};
|
|
1039
|
+
userId: string;
|
|
1040
1040
|
endDate?: string | Date | null | undefined;
|
|
1041
1041
|
}>, "many">;
|
|
1042
1042
|
409: z.ZodObject<{
|
|
@@ -1048,19 +1048,19 @@ export declare const bookingsContractRouter: {
|
|
|
1048
1048
|
path: z.ZodString;
|
|
1049
1049
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1050
1050
|
}, "strip", z.ZodTypeAny, {
|
|
1051
|
-
code: string;
|
|
1052
|
-
path: string;
|
|
1053
|
-
message: string;
|
|
1054
1051
|
statusCode: number;
|
|
1052
|
+
message: string;
|
|
1053
|
+
code: string;
|
|
1055
1054
|
timestamp: string;
|
|
1055
|
+
path: string;
|
|
1056
1056
|
details?: unknown;
|
|
1057
1057
|
correlationId?: string | undefined;
|
|
1058
1058
|
}, {
|
|
1059
|
+
statusCode: number;
|
|
1060
|
+
message: string;
|
|
1059
1061
|
code: string;
|
|
1060
|
-
path: string;
|
|
1061
|
-
message: string;
|
|
1062
|
-
statusCode: number;
|
|
1063
1062
|
timestamp: string;
|
|
1063
|
+
path: string;
|
|
1064
1064
|
details?: unknown;
|
|
1065
1065
|
correlationId?: string | undefined;
|
|
1066
1066
|
}>;
|
|
@@ -1084,13 +1084,13 @@ export declare const bookingsContractRouter: {
|
|
|
1084
1084
|
companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1085
1085
|
tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1086
1086
|
}, "strip", z.ZodTypeAny, {
|
|
1087
|
-
userId?: string | null | undefined;
|
|
1088
1087
|
clientId?: string | null | undefined;
|
|
1088
|
+
userId?: string | null | undefined;
|
|
1089
1089
|
companyId?: string | null | undefined;
|
|
1090
1090
|
tradeId?: string | null | undefined;
|
|
1091
1091
|
}, {
|
|
1092
|
-
userId?: string | null | undefined;
|
|
1093
1092
|
clientId?: string | null | undefined;
|
|
1093
|
+
userId?: string | null | undefined;
|
|
1094
1094
|
companyId?: string | null | undefined;
|
|
1095
1095
|
tradeId?: string | null | undefined;
|
|
1096
1096
|
}>>>;
|
|
@@ -1134,11 +1134,14 @@ export declare const bookingsContractRouter: {
|
|
|
1134
1134
|
limit: number;
|
|
1135
1135
|
page: number;
|
|
1136
1136
|
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;
|
|
1137
|
-
|
|
1137
|
+
clientId?: string | null | undefined;
|
|
1138
|
+
createdAt?: {
|
|
1138
1139
|
from?: string | null | undefined;
|
|
1139
1140
|
to?: string | null | undefined;
|
|
1140
1141
|
} | null | undefined;
|
|
1141
|
-
|
|
1142
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
|
|
1143
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1144
|
+
startDate?: {
|
|
1142
1145
|
from?: string | null | undefined;
|
|
1143
1146
|
to?: string | null | undefined;
|
|
1144
1147
|
} | null | undefined;
|
|
@@ -1146,25 +1149,27 @@ export declare const bookingsContractRouter: {
|
|
|
1146
1149
|
from?: string | null | undefined;
|
|
1147
1150
|
to?: string | null | undefined;
|
|
1148
1151
|
} | null | undefined;
|
|
1149
|
-
clientId?: string | null | undefined;
|
|
1150
|
-
companyId?: string | null | undefined;
|
|
1151
1152
|
job?: {
|
|
1152
|
-
userId?: string | null | undefined;
|
|
1153
1153
|
clientId?: string | null | undefined;
|
|
1154
|
+
userId?: string | null | undefined;
|
|
1154
1155
|
companyId?: string | null | undefined;
|
|
1155
1156
|
tradeId?: string | null | undefined;
|
|
1156
1157
|
} | null | undefined;
|
|
1157
1158
|
workerName?: string | null | undefined;
|
|
1158
|
-
|
|
1159
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1159
|
+
companyId?: string | null | undefined;
|
|
1160
1160
|
agentName?: string | null | undefined;
|
|
1161
1161
|
}, {
|
|
1162
1162
|
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;
|
|
1163
|
-
|
|
1163
|
+
clientId?: string | null | undefined;
|
|
1164
|
+
createdAt?: {
|
|
1164
1165
|
from?: string | null | undefined;
|
|
1165
1166
|
to?: string | null | undefined;
|
|
1166
1167
|
} | null | undefined;
|
|
1167
|
-
|
|
1168
|
+
limit?: number | undefined;
|
|
1169
|
+
page?: number | undefined;
|
|
1170
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "startDate" | null | undefined;
|
|
1171
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1172
|
+
startDate?: {
|
|
1168
1173
|
from?: string | null | undefined;
|
|
1169
1174
|
to?: string | null | undefined;
|
|
1170
1175
|
} | null | undefined;
|
|
@@ -1172,19 +1177,14 @@ export declare const bookingsContractRouter: {
|
|
|
1172
1177
|
from?: string | null | undefined;
|
|
1173
1178
|
to?: string | null | undefined;
|
|
1174
1179
|
} | null | undefined;
|
|
1175
|
-
clientId?: string | null | undefined;
|
|
1176
|
-
companyId?: string | null | undefined;
|
|
1177
1180
|
job?: {
|
|
1178
|
-
userId?: string | null | undefined;
|
|
1179
1181
|
clientId?: string | null | undefined;
|
|
1182
|
+
userId?: string | null | undefined;
|
|
1180
1183
|
companyId?: string | null | undefined;
|
|
1181
1184
|
tradeId?: string | null | undefined;
|
|
1182
1185
|
} | null | undefined;
|
|
1183
|
-
limit?: number | undefined;
|
|
1184
|
-
page?: number | undefined;
|
|
1185
1186
|
workerName?: string | null | undefined;
|
|
1186
|
-
|
|
1187
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1187
|
+
companyId?: string | null | undefined;
|
|
1188
1188
|
agentName?: string | null | undefined;
|
|
1189
1189
|
}>;
|
|
1190
1190
|
summary: "Get all bookings";
|
|
@@ -1200,19 +1200,19 @@ export declare const bookingsContractRouter: {
|
|
|
1200
1200
|
path: z.ZodString;
|
|
1201
1201
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1202
1202
|
}, "strip", z.ZodTypeAny, {
|
|
1203
|
-
code: string;
|
|
1204
|
-
path: string;
|
|
1205
|
-
message: string;
|
|
1206
1203
|
statusCode: number;
|
|
1204
|
+
message: string;
|
|
1205
|
+
code: string;
|
|
1207
1206
|
timestamp: string;
|
|
1207
|
+
path: string;
|
|
1208
1208
|
details?: unknown;
|
|
1209
1209
|
correlationId?: string | undefined;
|
|
1210
1210
|
}, {
|
|
1211
|
-
code: string;
|
|
1212
|
-
path: string;
|
|
1213
|
-
message: string;
|
|
1214
1211
|
statusCode: number;
|
|
1212
|
+
message: string;
|
|
1213
|
+
code: string;
|
|
1215
1214
|
timestamp: string;
|
|
1215
|
+
path: string;
|
|
1216
1216
|
details?: unknown;
|
|
1217
1217
|
correlationId?: string | undefined;
|
|
1218
1218
|
}>;
|
|
@@ -1225,19 +1225,19 @@ export declare const bookingsContractRouter: {
|
|
|
1225
1225
|
path: z.ZodString;
|
|
1226
1226
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1227
1227
|
}, "strip", z.ZodTypeAny, {
|
|
1228
|
-
code: string;
|
|
1229
|
-
path: string;
|
|
1230
|
-
message: string;
|
|
1231
1228
|
statusCode: number;
|
|
1229
|
+
message: string;
|
|
1230
|
+
code: string;
|
|
1232
1231
|
timestamp: string;
|
|
1232
|
+
path: string;
|
|
1233
1233
|
details?: unknown;
|
|
1234
1234
|
correlationId?: string | undefined;
|
|
1235
1235
|
}, {
|
|
1236
|
-
code: string;
|
|
1237
|
-
path: string;
|
|
1238
|
-
message: string;
|
|
1239
1236
|
statusCode: number;
|
|
1237
|
+
message: string;
|
|
1238
|
+
code: string;
|
|
1240
1239
|
timestamp: string;
|
|
1240
|
+
path: string;
|
|
1241
1241
|
details?: unknown;
|
|
1242
1242
|
correlationId?: string | undefined;
|
|
1243
1243
|
}>;
|
|
@@ -1250,19 +1250,19 @@ export declare const bookingsContractRouter: {
|
|
|
1250
1250
|
path: z.ZodString;
|
|
1251
1251
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1252
1252
|
}, "strip", z.ZodTypeAny, {
|
|
1253
|
-
code: string;
|
|
1254
|
-
path: string;
|
|
1255
|
-
message: string;
|
|
1256
1253
|
statusCode: number;
|
|
1254
|
+
message: string;
|
|
1255
|
+
code: string;
|
|
1257
1256
|
timestamp: string;
|
|
1257
|
+
path: string;
|
|
1258
1258
|
details?: unknown;
|
|
1259
1259
|
correlationId?: string | undefined;
|
|
1260
1260
|
}, {
|
|
1261
|
-
code: string;
|
|
1262
|
-
path: string;
|
|
1263
|
-
message: string;
|
|
1264
1261
|
statusCode: number;
|
|
1262
|
+
message: string;
|
|
1263
|
+
code: string;
|
|
1265
1264
|
timestamp: string;
|
|
1265
|
+
path: string;
|
|
1266
1266
|
details?: unknown;
|
|
1267
1267
|
correlationId?: string | undefined;
|
|
1268
1268
|
}>;
|
|
@@ -1275,19 +1275,19 @@ export declare const bookingsContractRouter: {
|
|
|
1275
1275
|
path: z.ZodString;
|
|
1276
1276
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1277
1277
|
}, "strip", z.ZodTypeAny, {
|
|
1278
|
-
code: string;
|
|
1279
|
-
path: string;
|
|
1280
|
-
message: string;
|
|
1281
1278
|
statusCode: number;
|
|
1279
|
+
message: string;
|
|
1280
|
+
code: string;
|
|
1282
1281
|
timestamp: string;
|
|
1282
|
+
path: string;
|
|
1283
1283
|
details?: unknown;
|
|
1284
1284
|
correlationId?: string | undefined;
|
|
1285
1285
|
}, {
|
|
1286
|
-
code: string;
|
|
1287
|
-
path: string;
|
|
1288
|
-
message: string;
|
|
1289
1286
|
statusCode: number;
|
|
1287
|
+
message: string;
|
|
1288
|
+
code: string;
|
|
1290
1289
|
timestamp: string;
|
|
1290
|
+
path: string;
|
|
1291
1291
|
details?: unknown;
|
|
1292
1292
|
correlationId?: string | undefined;
|
|
1293
1293
|
}>;
|
|
@@ -1351,20 +1351,19 @@ export declare const bookingsContractRouter: {
|
|
|
1351
1351
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1352
1352
|
}, "strip", z.ZodTypeAny, {
|
|
1353
1353
|
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";
|
|
1354
|
-
|
|
1354
|
+
id: string;
|
|
1355
1355
|
createdAt: string;
|
|
1356
1356
|
updatedAt: string;
|
|
1357
|
-
|
|
1357
|
+
pay: {
|
|
1358
|
+
rate: number;
|
|
1359
|
+
unit: "DAILY" | "HOURLY";
|
|
1360
|
+
};
|
|
1361
|
+
startDate: string;
|
|
1358
1362
|
worker: {
|
|
1359
1363
|
id: string;
|
|
1360
1364
|
firstName: string;
|
|
1361
1365
|
lastName: string;
|
|
1362
1366
|
};
|
|
1363
|
-
pay: {
|
|
1364
|
-
rate: number;
|
|
1365
|
-
unit: "DAILY" | "HOURLY";
|
|
1366
|
-
};
|
|
1367
|
-
userId: string;
|
|
1368
1367
|
user: {
|
|
1369
1368
|
id: string;
|
|
1370
1369
|
firstName: string;
|
|
@@ -1375,23 +1374,23 @@ export declare const bookingsContractRouter: {
|
|
|
1375
1374
|
id: string;
|
|
1376
1375
|
title: string;
|
|
1377
1376
|
};
|
|
1377
|
+
userId: string;
|
|
1378
1378
|
endDate?: string | null | undefined;
|
|
1379
1379
|
}, {
|
|
1380
1380
|
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";
|
|
1381
|
-
|
|
1381
|
+
id: string;
|
|
1382
1382
|
createdAt: string | Date;
|
|
1383
1383
|
updatedAt: string | Date;
|
|
1384
|
-
|
|
1384
|
+
pay: {
|
|
1385
|
+
rate: number;
|
|
1386
|
+
unit: "DAILY" | "HOURLY";
|
|
1387
|
+
};
|
|
1388
|
+
startDate: string | Date;
|
|
1385
1389
|
worker: {
|
|
1386
1390
|
id: string;
|
|
1387
1391
|
firstName: string;
|
|
1388
1392
|
lastName: string;
|
|
1389
1393
|
};
|
|
1390
|
-
pay: {
|
|
1391
|
-
rate: number;
|
|
1392
|
-
unit: "DAILY" | "HOURLY";
|
|
1393
|
-
};
|
|
1394
|
-
userId: string;
|
|
1395
1394
|
user: {
|
|
1396
1395
|
id: string;
|
|
1397
1396
|
firstName: string;
|
|
@@ -1402,6 +1401,7 @@ export declare const bookingsContractRouter: {
|
|
|
1402
1401
|
id: string;
|
|
1403
1402
|
title: string;
|
|
1404
1403
|
};
|
|
1404
|
+
userId: string;
|
|
1405
1405
|
endDate?: string | Date | null | undefined;
|
|
1406
1406
|
}>, "many">;
|
|
1407
1407
|
totalCount: z.ZodNumber;
|
|
@@ -1410,23 +1410,21 @@ export declare const bookingsContractRouter: {
|
|
|
1410
1410
|
currentPage: z.ZodNumber;
|
|
1411
1411
|
totalPages: z.ZodNumber;
|
|
1412
1412
|
}, "strip", z.ZodTypeAny, {
|
|
1413
|
-
limit: number;
|
|
1414
1413
|
items: {
|
|
1415
1414
|
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";
|
|
1416
|
-
|
|
1415
|
+
id: string;
|
|
1417
1416
|
createdAt: string;
|
|
1418
1417
|
updatedAt: string;
|
|
1419
|
-
|
|
1418
|
+
pay: {
|
|
1419
|
+
rate: number;
|
|
1420
|
+
unit: "DAILY" | "HOURLY";
|
|
1421
|
+
};
|
|
1422
|
+
startDate: string;
|
|
1420
1423
|
worker: {
|
|
1421
1424
|
id: string;
|
|
1422
1425
|
firstName: string;
|
|
1423
1426
|
lastName: string;
|
|
1424
1427
|
};
|
|
1425
|
-
pay: {
|
|
1426
|
-
rate: number;
|
|
1427
|
-
unit: "DAILY" | "HOURLY";
|
|
1428
|
-
};
|
|
1429
|
-
userId: string;
|
|
1430
1428
|
user: {
|
|
1431
1429
|
id: string;
|
|
1432
1430
|
firstName: string;
|
|
@@ -1437,30 +1435,30 @@ export declare const bookingsContractRouter: {
|
|
|
1437
1435
|
id: string;
|
|
1438
1436
|
title: string;
|
|
1439
1437
|
};
|
|
1438
|
+
userId: string;
|
|
1440
1439
|
endDate?: string | null | undefined;
|
|
1441
1440
|
}[];
|
|
1442
1441
|
totalCount: number;
|
|
1442
|
+
limit: number;
|
|
1443
1443
|
skip: number;
|
|
1444
1444
|
currentPage: number;
|
|
1445
1445
|
totalPages: number;
|
|
1446
1446
|
}, {
|
|
1447
|
-
limit: number;
|
|
1448
1447
|
items: {
|
|
1449
1448
|
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";
|
|
1450
|
-
|
|
1449
|
+
id: string;
|
|
1451
1450
|
createdAt: string | Date;
|
|
1452
1451
|
updatedAt: string | Date;
|
|
1453
|
-
|
|
1452
|
+
pay: {
|
|
1453
|
+
rate: number;
|
|
1454
|
+
unit: "DAILY" | "HOURLY";
|
|
1455
|
+
};
|
|
1456
|
+
startDate: string | Date;
|
|
1454
1457
|
worker: {
|
|
1455
1458
|
id: string;
|
|
1456
1459
|
firstName: string;
|
|
1457
1460
|
lastName: string;
|
|
1458
1461
|
};
|
|
1459
|
-
pay: {
|
|
1460
|
-
rate: number;
|
|
1461
|
-
unit: "DAILY" | "HOURLY";
|
|
1462
|
-
};
|
|
1463
|
-
userId: string;
|
|
1464
1462
|
user: {
|
|
1465
1463
|
id: string;
|
|
1466
1464
|
firstName: string;
|
|
@@ -1471,9 +1469,11 @@ export declare const bookingsContractRouter: {
|
|
|
1471
1469
|
id: string;
|
|
1472
1470
|
title: string;
|
|
1473
1471
|
};
|
|
1472
|
+
userId: string;
|
|
1474
1473
|
endDate?: string | Date | null | undefined;
|
|
1475
1474
|
}[];
|
|
1476
1475
|
totalCount: number;
|
|
1476
|
+
limit: number;
|
|
1477
1477
|
skip: number;
|
|
1478
1478
|
currentPage: number;
|
|
1479
1479
|
totalPages: number;
|
|
@@ -1507,19 +1507,19 @@ export declare const bookingsContractRouter: {
|
|
|
1507
1507
|
path: z.ZodString;
|
|
1508
1508
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1509
1509
|
}, "strip", z.ZodTypeAny, {
|
|
1510
|
-
code: string;
|
|
1511
|
-
path: string;
|
|
1512
|
-
message: string;
|
|
1513
1510
|
statusCode: number;
|
|
1511
|
+
message: string;
|
|
1512
|
+
code: string;
|
|
1514
1513
|
timestamp: string;
|
|
1514
|
+
path: string;
|
|
1515
1515
|
details?: unknown;
|
|
1516
1516
|
correlationId?: string | undefined;
|
|
1517
1517
|
}, {
|
|
1518
|
-
code: string;
|
|
1519
|
-
path: string;
|
|
1520
|
-
message: string;
|
|
1521
1518
|
statusCode: number;
|
|
1519
|
+
message: string;
|
|
1520
|
+
code: string;
|
|
1522
1521
|
timestamp: string;
|
|
1522
|
+
path: string;
|
|
1523
1523
|
details?: unknown;
|
|
1524
1524
|
correlationId?: string | undefined;
|
|
1525
1525
|
}>;
|
|
@@ -1532,19 +1532,19 @@ export declare const bookingsContractRouter: {
|
|
|
1532
1532
|
path: z.ZodString;
|
|
1533
1533
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1534
1534
|
}, "strip", z.ZodTypeAny, {
|
|
1535
|
-
code: string;
|
|
1536
|
-
path: string;
|
|
1537
|
-
message: string;
|
|
1538
1535
|
statusCode: number;
|
|
1536
|
+
message: string;
|
|
1537
|
+
code: string;
|
|
1539
1538
|
timestamp: string;
|
|
1539
|
+
path: string;
|
|
1540
1540
|
details?: unknown;
|
|
1541
1541
|
correlationId?: string | undefined;
|
|
1542
1542
|
}, {
|
|
1543
|
-
code: string;
|
|
1544
|
-
path: string;
|
|
1545
|
-
message: string;
|
|
1546
1543
|
statusCode: number;
|
|
1544
|
+
message: string;
|
|
1545
|
+
code: string;
|
|
1547
1546
|
timestamp: string;
|
|
1547
|
+
path: string;
|
|
1548
1548
|
details?: unknown;
|
|
1549
1549
|
correlationId?: string | undefined;
|
|
1550
1550
|
}>;
|
|
@@ -1557,19 +1557,19 @@ export declare const bookingsContractRouter: {
|
|
|
1557
1557
|
path: z.ZodString;
|
|
1558
1558
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1559
1559
|
}, "strip", z.ZodTypeAny, {
|
|
1560
|
-
code: string;
|
|
1561
|
-
path: string;
|
|
1562
|
-
message: string;
|
|
1563
1560
|
statusCode: number;
|
|
1561
|
+
message: string;
|
|
1562
|
+
code: string;
|
|
1564
1563
|
timestamp: string;
|
|
1564
|
+
path: string;
|
|
1565
1565
|
details?: unknown;
|
|
1566
1566
|
correlationId?: string | undefined;
|
|
1567
1567
|
}, {
|
|
1568
|
-
code: string;
|
|
1569
|
-
path: string;
|
|
1570
|
-
message: string;
|
|
1571
1568
|
statusCode: number;
|
|
1569
|
+
message: string;
|
|
1570
|
+
code: string;
|
|
1572
1571
|
timestamp: string;
|
|
1572
|
+
path: string;
|
|
1573
1573
|
details?: unknown;
|
|
1574
1574
|
correlationId?: string | undefined;
|
|
1575
1575
|
}>;
|
|
@@ -1582,19 +1582,19 @@ export declare const bookingsContractRouter: {
|
|
|
1582
1582
|
path: z.ZodString;
|
|
1583
1583
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1584
1584
|
}, "strip", z.ZodTypeAny, {
|
|
1585
|
-
code: string;
|
|
1586
|
-
path: string;
|
|
1587
|
-
message: string;
|
|
1588
1585
|
statusCode: number;
|
|
1586
|
+
message: string;
|
|
1587
|
+
code: string;
|
|
1589
1588
|
timestamp: string;
|
|
1589
|
+
path: string;
|
|
1590
1590
|
details?: unknown;
|
|
1591
1591
|
correlationId?: string | undefined;
|
|
1592
1592
|
}, {
|
|
1593
|
-
code: string;
|
|
1594
|
-
path: string;
|
|
1595
|
-
message: string;
|
|
1596
1593
|
statusCode: number;
|
|
1594
|
+
message: string;
|
|
1595
|
+
code: string;
|
|
1597
1596
|
timestamp: string;
|
|
1597
|
+
path: string;
|
|
1598
1598
|
details?: unknown;
|
|
1599
1599
|
correlationId?: string | undefined;
|
|
1600
1600
|
}>;
|
|
@@ -1657,20 +1657,19 @@ export declare const bookingsContractRouter: {
|
|
|
1657
1657
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1658
1658
|
}, "strip", z.ZodTypeAny, {
|
|
1659
1659
|
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";
|
|
1660
|
-
|
|
1660
|
+
id: string;
|
|
1661
1661
|
createdAt: string;
|
|
1662
1662
|
updatedAt: string;
|
|
1663
|
-
|
|
1663
|
+
pay: {
|
|
1664
|
+
rate: number;
|
|
1665
|
+
unit: "DAILY" | "HOURLY";
|
|
1666
|
+
};
|
|
1667
|
+
startDate: string;
|
|
1664
1668
|
worker: {
|
|
1665
1669
|
id: string;
|
|
1666
1670
|
firstName: string;
|
|
1667
1671
|
lastName: string;
|
|
1668
1672
|
};
|
|
1669
|
-
pay: {
|
|
1670
|
-
rate: number;
|
|
1671
|
-
unit: "DAILY" | "HOURLY";
|
|
1672
|
-
};
|
|
1673
|
-
userId: string;
|
|
1674
1673
|
user: {
|
|
1675
1674
|
id: string;
|
|
1676
1675
|
firstName: string;
|
|
@@ -1681,23 +1680,23 @@ export declare const bookingsContractRouter: {
|
|
|
1681
1680
|
id: string;
|
|
1682
1681
|
title: string;
|
|
1683
1682
|
};
|
|
1683
|
+
userId: string;
|
|
1684
1684
|
endDate?: string | null | undefined;
|
|
1685
1685
|
}, {
|
|
1686
1686
|
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";
|
|
1687
|
-
|
|
1687
|
+
id: string;
|
|
1688
1688
|
createdAt: string | Date;
|
|
1689
1689
|
updatedAt: string | Date;
|
|
1690
|
-
|
|
1690
|
+
pay: {
|
|
1691
|
+
rate: number;
|
|
1692
|
+
unit: "DAILY" | "HOURLY";
|
|
1693
|
+
};
|
|
1694
|
+
startDate: string | Date;
|
|
1691
1695
|
worker: {
|
|
1692
1696
|
id: string;
|
|
1693
1697
|
firstName: string;
|
|
1694
1698
|
lastName: string;
|
|
1695
1699
|
};
|
|
1696
|
-
pay: {
|
|
1697
|
-
rate: number;
|
|
1698
|
-
unit: "DAILY" | "HOURLY";
|
|
1699
|
-
};
|
|
1700
|
-
userId: string;
|
|
1701
1700
|
user: {
|
|
1702
1701
|
id: string;
|
|
1703
1702
|
firstName: string;
|
|
@@ -1708,6 +1707,7 @@ export declare const bookingsContractRouter: {
|
|
|
1708
1707
|
id: string;
|
|
1709
1708
|
title: string;
|
|
1710
1709
|
};
|
|
1710
|
+
userId: string;
|
|
1711
1711
|
endDate?: string | Date | null | undefined;
|
|
1712
1712
|
}>;
|
|
1713
1713
|
404: z.ZodObject<{
|
|
@@ -1719,19 +1719,19 @@ export declare const bookingsContractRouter: {
|
|
|
1719
1719
|
path: z.ZodString;
|
|
1720
1720
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1721
1721
|
}, "strip", z.ZodTypeAny, {
|
|
1722
|
-
code: string;
|
|
1723
|
-
path: string;
|
|
1724
|
-
message: string;
|
|
1725
1722
|
statusCode: number;
|
|
1723
|
+
message: string;
|
|
1724
|
+
code: string;
|
|
1726
1725
|
timestamp: string;
|
|
1726
|
+
path: string;
|
|
1727
1727
|
details?: unknown;
|
|
1728
1728
|
correlationId?: string | undefined;
|
|
1729
1729
|
}, {
|
|
1730
|
-
code: string;
|
|
1731
|
-
path: string;
|
|
1732
|
-
message: string;
|
|
1733
1730
|
statusCode: number;
|
|
1731
|
+
message: string;
|
|
1732
|
+
code: string;
|
|
1734
1733
|
timestamp: string;
|
|
1734
|
+
path: string;
|
|
1735
1735
|
details?: unknown;
|
|
1736
1736
|
correlationId?: string | undefined;
|
|
1737
1737
|
}>;
|
|
@@ -1777,19 +1777,19 @@ export declare const bookingsContractRouter: {
|
|
|
1777
1777
|
path: z.ZodString;
|
|
1778
1778
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1779
1779
|
}, "strip", z.ZodTypeAny, {
|
|
1780
|
-
code: string;
|
|
1781
|
-
path: string;
|
|
1782
|
-
message: string;
|
|
1783
1780
|
statusCode: number;
|
|
1781
|
+
message: string;
|
|
1782
|
+
code: string;
|
|
1784
1783
|
timestamp: string;
|
|
1784
|
+
path: string;
|
|
1785
1785
|
details?: unknown;
|
|
1786
1786
|
correlationId?: string | undefined;
|
|
1787
1787
|
}, {
|
|
1788
|
-
code: string;
|
|
1789
|
-
path: string;
|
|
1790
|
-
message: string;
|
|
1791
1788
|
statusCode: number;
|
|
1789
|
+
message: string;
|
|
1790
|
+
code: string;
|
|
1792
1791
|
timestamp: string;
|
|
1792
|
+
path: string;
|
|
1793
1793
|
details?: unknown;
|
|
1794
1794
|
correlationId?: string | undefined;
|
|
1795
1795
|
}>;
|
|
@@ -1802,19 +1802,19 @@ export declare const bookingsContractRouter: {
|
|
|
1802
1802
|
path: z.ZodString;
|
|
1803
1803
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1804
1804
|
}, "strip", z.ZodTypeAny, {
|
|
1805
|
-
code: string;
|
|
1806
|
-
path: string;
|
|
1807
|
-
message: string;
|
|
1808
1805
|
statusCode: number;
|
|
1806
|
+
message: string;
|
|
1807
|
+
code: string;
|
|
1809
1808
|
timestamp: string;
|
|
1809
|
+
path: string;
|
|
1810
1810
|
details?: unknown;
|
|
1811
1811
|
correlationId?: string | undefined;
|
|
1812
1812
|
}, {
|
|
1813
|
-
code: string;
|
|
1814
|
-
path: string;
|
|
1815
|
-
message: string;
|
|
1816
1813
|
statusCode: number;
|
|
1814
|
+
message: string;
|
|
1815
|
+
code: string;
|
|
1817
1816
|
timestamp: string;
|
|
1817
|
+
path: string;
|
|
1818
1818
|
details?: unknown;
|
|
1819
1819
|
correlationId?: string | undefined;
|
|
1820
1820
|
}>;
|
|
@@ -1827,19 +1827,19 @@ export declare const bookingsContractRouter: {
|
|
|
1827
1827
|
path: z.ZodString;
|
|
1828
1828
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1829
1829
|
}, "strip", z.ZodTypeAny, {
|
|
1830
|
-
code: string;
|
|
1831
|
-
path: string;
|
|
1832
|
-
message: string;
|
|
1833
1830
|
statusCode: number;
|
|
1831
|
+
message: string;
|
|
1832
|
+
code: string;
|
|
1834
1833
|
timestamp: string;
|
|
1834
|
+
path: string;
|
|
1835
1835
|
details?: unknown;
|
|
1836
1836
|
correlationId?: string | undefined;
|
|
1837
1837
|
}, {
|
|
1838
|
-
code: string;
|
|
1839
|
-
path: string;
|
|
1840
|
-
message: string;
|
|
1841
1838
|
statusCode: number;
|
|
1839
|
+
message: string;
|
|
1840
|
+
code: string;
|
|
1842
1841
|
timestamp: string;
|
|
1842
|
+
path: string;
|
|
1843
1843
|
details?: unknown;
|
|
1844
1844
|
correlationId?: string | undefined;
|
|
1845
1845
|
}>;
|
|
@@ -1852,19 +1852,19 @@ export declare const bookingsContractRouter: {
|
|
|
1852
1852
|
path: z.ZodString;
|
|
1853
1853
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1854
1854
|
}, "strip", z.ZodTypeAny, {
|
|
1855
|
-
code: string;
|
|
1856
|
-
path: string;
|
|
1857
|
-
message: string;
|
|
1858
1855
|
statusCode: number;
|
|
1856
|
+
message: string;
|
|
1857
|
+
code: string;
|
|
1859
1858
|
timestamp: string;
|
|
1859
|
+
path: string;
|
|
1860
1860
|
details?: unknown;
|
|
1861
1861
|
correlationId?: string | undefined;
|
|
1862
1862
|
}, {
|
|
1863
|
-
code: string;
|
|
1864
|
-
path: string;
|
|
1865
|
-
message: string;
|
|
1866
1863
|
statusCode: number;
|
|
1864
|
+
message: string;
|
|
1865
|
+
code: string;
|
|
1867
1866
|
timestamp: string;
|
|
1867
|
+
path: string;
|
|
1868
1868
|
details?: unknown;
|
|
1869
1869
|
correlationId?: string | undefined;
|
|
1870
1870
|
}>;
|
|
@@ -1927,20 +1927,19 @@ export declare const bookingsContractRouter: {
|
|
|
1927
1927
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1928
1928
|
}, "strip", z.ZodTypeAny, {
|
|
1929
1929
|
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";
|
|
1930
|
-
|
|
1930
|
+
id: string;
|
|
1931
1931
|
createdAt: string;
|
|
1932
1932
|
updatedAt: string;
|
|
1933
|
-
|
|
1933
|
+
pay: {
|
|
1934
|
+
rate: number;
|
|
1935
|
+
unit: "DAILY" | "HOURLY";
|
|
1936
|
+
};
|
|
1937
|
+
startDate: string;
|
|
1934
1938
|
worker: {
|
|
1935
1939
|
id: string;
|
|
1936
1940
|
firstName: string;
|
|
1937
1941
|
lastName: string;
|
|
1938
1942
|
};
|
|
1939
|
-
pay: {
|
|
1940
|
-
rate: number;
|
|
1941
|
-
unit: "DAILY" | "HOURLY";
|
|
1942
|
-
};
|
|
1943
|
-
userId: string;
|
|
1944
1943
|
user: {
|
|
1945
1944
|
id: string;
|
|
1946
1945
|
firstName: string;
|
|
@@ -1951,23 +1950,23 @@ export declare const bookingsContractRouter: {
|
|
|
1951
1950
|
id: string;
|
|
1952
1951
|
title: string;
|
|
1953
1952
|
};
|
|
1953
|
+
userId: string;
|
|
1954
1954
|
endDate?: string | null | undefined;
|
|
1955
1955
|
}, {
|
|
1956
1956
|
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";
|
|
1957
|
-
|
|
1957
|
+
id: string;
|
|
1958
1958
|
createdAt: string | Date;
|
|
1959
1959
|
updatedAt: string | Date;
|
|
1960
|
-
|
|
1960
|
+
pay: {
|
|
1961
|
+
rate: number;
|
|
1962
|
+
unit: "DAILY" | "HOURLY";
|
|
1963
|
+
};
|
|
1964
|
+
startDate: string | Date;
|
|
1961
1965
|
worker: {
|
|
1962
1966
|
id: string;
|
|
1963
1967
|
firstName: string;
|
|
1964
1968
|
lastName: string;
|
|
1965
1969
|
};
|
|
1966
|
-
pay: {
|
|
1967
|
-
rate: number;
|
|
1968
|
-
unit: "DAILY" | "HOURLY";
|
|
1969
|
-
};
|
|
1970
|
-
userId: string;
|
|
1971
1970
|
user: {
|
|
1972
1971
|
id: string;
|
|
1973
1972
|
firstName: string;
|
|
@@ -1978,6 +1977,7 @@ export declare const bookingsContractRouter: {
|
|
|
1978
1977
|
id: string;
|
|
1979
1978
|
title: string;
|
|
1980
1979
|
};
|
|
1980
|
+
userId: string;
|
|
1981
1981
|
endDate?: string | Date | null | undefined;
|
|
1982
1982
|
}>;
|
|
1983
1983
|
404: z.ZodObject<{
|
|
@@ -1989,19 +1989,19 @@ export declare const bookingsContractRouter: {
|
|
|
1989
1989
|
path: z.ZodString;
|
|
1990
1990
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1991
1991
|
}, "strip", z.ZodTypeAny, {
|
|
1992
|
-
code: string;
|
|
1993
|
-
path: string;
|
|
1994
|
-
message: string;
|
|
1995
1992
|
statusCode: number;
|
|
1993
|
+
message: string;
|
|
1994
|
+
code: string;
|
|
1996
1995
|
timestamp: string;
|
|
1996
|
+
path: string;
|
|
1997
1997
|
details?: unknown;
|
|
1998
1998
|
correlationId?: string | undefined;
|
|
1999
1999
|
}, {
|
|
2000
|
-
code: string;
|
|
2001
|
-
path: string;
|
|
2002
|
-
message: string;
|
|
2003
2000
|
statusCode: number;
|
|
2001
|
+
message: string;
|
|
2002
|
+
code: string;
|
|
2004
2003
|
timestamp: string;
|
|
2004
|
+
path: string;
|
|
2005
2005
|
details?: unknown;
|
|
2006
2006
|
correlationId?: string | undefined;
|
|
2007
2007
|
}>;
|
|
@@ -2014,19 +2014,19 @@ export declare const bookingsContractRouter: {
|
|
|
2014
2014
|
path: z.ZodString;
|
|
2015
2015
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2016
2016
|
}, "strip", z.ZodTypeAny, {
|
|
2017
|
-
code: string;
|
|
2018
|
-
path: string;
|
|
2019
|
-
message: string;
|
|
2020
2017
|
statusCode: number;
|
|
2018
|
+
message: string;
|
|
2019
|
+
code: string;
|
|
2021
2020
|
timestamp: string;
|
|
2021
|
+
path: string;
|
|
2022
2022
|
details?: unknown;
|
|
2023
2023
|
correlationId?: string | undefined;
|
|
2024
2024
|
}, {
|
|
2025
|
-
code: string;
|
|
2026
|
-
path: string;
|
|
2027
|
-
message: string;
|
|
2028
2025
|
statusCode: number;
|
|
2026
|
+
message: string;
|
|
2027
|
+
code: string;
|
|
2029
2028
|
timestamp: string;
|
|
2029
|
+
path: string;
|
|
2030
2030
|
details?: unknown;
|
|
2031
2031
|
correlationId?: string | undefined;
|
|
2032
2032
|
}>;
|
|
@@ -2060,19 +2060,19 @@ export declare const bookingsContractRouter: {
|
|
|
2060
2060
|
path: z.ZodString;
|
|
2061
2061
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2062
2062
|
}, "strip", z.ZodTypeAny, {
|
|
2063
|
-
code: string;
|
|
2064
|
-
path: string;
|
|
2065
|
-
message: string;
|
|
2066
2063
|
statusCode: number;
|
|
2064
|
+
message: string;
|
|
2065
|
+
code: string;
|
|
2067
2066
|
timestamp: string;
|
|
2067
|
+
path: string;
|
|
2068
2068
|
details?: unknown;
|
|
2069
2069
|
correlationId?: string | undefined;
|
|
2070
2070
|
}, {
|
|
2071
|
-
code: string;
|
|
2072
|
-
path: string;
|
|
2073
|
-
message: string;
|
|
2074
2071
|
statusCode: number;
|
|
2072
|
+
message: string;
|
|
2073
|
+
code: string;
|
|
2075
2074
|
timestamp: string;
|
|
2075
|
+
path: string;
|
|
2076
2076
|
details?: unknown;
|
|
2077
2077
|
correlationId?: string | undefined;
|
|
2078
2078
|
}>;
|
|
@@ -2085,19 +2085,19 @@ export declare const bookingsContractRouter: {
|
|
|
2085
2085
|
path: z.ZodString;
|
|
2086
2086
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2087
2087
|
}, "strip", z.ZodTypeAny, {
|
|
2088
|
-
code: string;
|
|
2089
|
-
path: string;
|
|
2090
|
-
message: string;
|
|
2091
2088
|
statusCode: number;
|
|
2089
|
+
message: string;
|
|
2090
|
+
code: string;
|
|
2092
2091
|
timestamp: string;
|
|
2092
|
+
path: string;
|
|
2093
2093
|
details?: unknown;
|
|
2094
2094
|
correlationId?: string | undefined;
|
|
2095
2095
|
}, {
|
|
2096
|
-
code: string;
|
|
2097
|
-
path: string;
|
|
2098
|
-
message: string;
|
|
2099
2096
|
statusCode: number;
|
|
2097
|
+
message: string;
|
|
2098
|
+
code: string;
|
|
2100
2099
|
timestamp: string;
|
|
2100
|
+
path: string;
|
|
2101
2101
|
details?: unknown;
|
|
2102
2102
|
correlationId?: string | undefined;
|
|
2103
2103
|
}>;
|
|
@@ -2110,19 +2110,19 @@ export declare const bookingsContractRouter: {
|
|
|
2110
2110
|
path: z.ZodString;
|
|
2111
2111
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2112
2112
|
}, "strip", z.ZodTypeAny, {
|
|
2113
|
-
code: string;
|
|
2114
|
-
path: string;
|
|
2115
|
-
message: string;
|
|
2116
2113
|
statusCode: number;
|
|
2114
|
+
message: string;
|
|
2115
|
+
code: string;
|
|
2117
2116
|
timestamp: string;
|
|
2117
|
+
path: string;
|
|
2118
2118
|
details?: unknown;
|
|
2119
2119
|
correlationId?: string | undefined;
|
|
2120
2120
|
}, {
|
|
2121
|
-
code: string;
|
|
2122
|
-
path: string;
|
|
2123
|
-
message: string;
|
|
2124
2121
|
statusCode: number;
|
|
2122
|
+
message: string;
|
|
2123
|
+
code: string;
|
|
2125
2124
|
timestamp: string;
|
|
2125
|
+
path: string;
|
|
2126
2126
|
details?: unknown;
|
|
2127
2127
|
correlationId?: string | undefined;
|
|
2128
2128
|
}>;
|
|
@@ -2135,19 +2135,19 @@ export declare const bookingsContractRouter: {
|
|
|
2135
2135
|
path: z.ZodString;
|
|
2136
2136
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2137
2137
|
}, "strip", z.ZodTypeAny, {
|
|
2138
|
-
code: string;
|
|
2139
|
-
path: string;
|
|
2140
|
-
message: string;
|
|
2141
2138
|
statusCode: number;
|
|
2139
|
+
message: string;
|
|
2140
|
+
code: string;
|
|
2142
2141
|
timestamp: string;
|
|
2142
|
+
path: string;
|
|
2143
2143
|
details?: unknown;
|
|
2144
2144
|
correlationId?: string | undefined;
|
|
2145
2145
|
}, {
|
|
2146
|
-
code: string;
|
|
2147
|
-
path: string;
|
|
2148
|
-
message: string;
|
|
2149
2146
|
statusCode: number;
|
|
2147
|
+
message: string;
|
|
2148
|
+
code: string;
|
|
2150
2149
|
timestamp: string;
|
|
2150
|
+
path: string;
|
|
2151
2151
|
details?: unknown;
|
|
2152
2152
|
correlationId?: string | undefined;
|
|
2153
2153
|
}>;
|
|
@@ -2161,19 +2161,19 @@ export declare const bookingsContractRouter: {
|
|
|
2161
2161
|
path: z.ZodString;
|
|
2162
2162
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2163
2163
|
}, "strip", z.ZodTypeAny, {
|
|
2164
|
-
code: string;
|
|
2165
|
-
path: string;
|
|
2166
|
-
message: string;
|
|
2167
2164
|
statusCode: number;
|
|
2165
|
+
message: string;
|
|
2166
|
+
code: string;
|
|
2168
2167
|
timestamp: string;
|
|
2168
|
+
path: string;
|
|
2169
2169
|
details?: unknown;
|
|
2170
2170
|
correlationId?: string | undefined;
|
|
2171
2171
|
}, {
|
|
2172
|
-
code: string;
|
|
2173
|
-
path: string;
|
|
2174
|
-
message: string;
|
|
2175
2172
|
statusCode: number;
|
|
2173
|
+
message: string;
|
|
2174
|
+
code: string;
|
|
2176
2175
|
timestamp: string;
|
|
2176
|
+
path: string;
|
|
2177
2177
|
details?: unknown;
|
|
2178
2178
|
correlationId?: string | undefined;
|
|
2179
2179
|
}>;
|