@dakkitor/api-contracts 1.1.27 → 1.1.29
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 +5955 -1711
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +0 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +336 -336
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.js +2 -0
- package/dist/bookings/bookings.contract.d.ts +4557 -383
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +6 -6
- package/dist/call-history/call-history.contract.d.ts +1190 -276
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.js +11 -28
- package/dist/client-contacts/client-contacts.contract.d.ts +571 -534
- package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.js +4 -1
- package/dist/clients/clients.contract.d.ts +380 -380
- package/dist/clients/clients.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.js +8 -2
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3349 -1023
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaboration-checkings/collaboration-checkings.contract.js +3 -10
- package/dist/collaborations/collaborations.contract.d.ts +2934 -219
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.js +19 -33
- package/dist/common/call-rating.schema.d.ts +31 -0
- package/dist/common/call-rating.schema.d.ts.map +1 -0
- package/dist/common/call-rating.schema.js +63 -0
- package/dist/common/common-schemas.d.ts +6 -6
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +5 -7
- package/dist/common/error-schemas.d.ts +6 -6
- package/dist/companies/companies.contract.d.ts +212 -212
- package/dist/cron-executions/cron-executions.contract.d.ts +228 -228
- package/dist/curated-workers/curated-workers.contract.d.ts +374 -374
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +6 -13
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +120 -120
- package/dist/files/files.contract.d.ts +228 -228
- package/dist/health/health.contract.d.ts +22 -22
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/jobs/jobs.contract.d.ts +3274 -268
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +37 -18
- package/dist/lead-assignments/lead-assignments.contract.d.ts +278 -278
- package/dist/lead-assignments/lead-assignments.contract.js +2 -2
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +146 -146
- package/dist/leads/leads.contract.d.ts +319 -319
- package/dist/locations/locations.contract.d.ts +161 -161
- package/dist/postcodes/postcodes.contract.d.ts +66 -66
- package/dist/qualifications/qualifications.contract.d.ts +256 -256
- package/dist/trades/trades.contract.d.ts +160 -160
- package/dist/users/users.contract.d.ts +8 -8
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +2 -3
- package/dist/workers/workers.contract.d.ts +245 -266
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +22 -21
- package/package.json +1 -1
- package/dist/common/api-responses.d.ts +0 -105
- package/dist/common/api-responses.d.ts.map +0 -1
- package/dist/common/api-responses.js +0 -107
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const AvailabilitySchema: z.ZodEnum<["AVAILABLE", "PARTIALLY_AVAILABLE", "UNAVAILABLE"]>;
|
|
3
|
-
export declare const SkillLevelSchema: z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>;
|
|
4
3
|
export declare const WorkerSortableFieldsSchema: z.ZodEnum<["nameSimilarity", "fullName", "distance", "email", "phone"]>;
|
|
5
4
|
export declare const WorkerPhoneNumberSchema: z.ZodObject<{
|
|
6
5
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -10,13 +9,13 @@ export declare const WorkerPhoneNumberSchema: z.ZodObject<{
|
|
|
10
9
|
}, "strip", z.ZodTypeAny, {
|
|
11
10
|
phoneNumber: string;
|
|
12
11
|
isPrimary: boolean;
|
|
13
|
-
id?: string | undefined;
|
|
14
12
|
description?: string | undefined;
|
|
13
|
+
id?: string | undefined;
|
|
15
14
|
}, {
|
|
16
15
|
phoneNumber: string;
|
|
17
|
-
id?: string | undefined;
|
|
18
16
|
description?: string | undefined;
|
|
19
17
|
isPrimary?: boolean | undefined;
|
|
18
|
+
id?: string | undefined;
|
|
20
19
|
}>;
|
|
21
20
|
export declare const CreateWorkerPhoneNumberSchema: z.ZodObject<{
|
|
22
21
|
phoneNumber: z.ZodString;
|
|
@@ -37,44 +36,38 @@ export declare const UpsertWorkerPhoneNumberSchema: z.ZodObject<{
|
|
|
37
36
|
description: z.ZodOptional<z.ZodString>;
|
|
38
37
|
isPrimary: z.ZodOptional<z.ZodBoolean>;
|
|
39
38
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
id?: string | undefined;
|
|
41
39
|
phoneNumber?: string | undefined;
|
|
42
40
|
description?: string | undefined;
|
|
43
41
|
isPrimary?: boolean | undefined;
|
|
44
|
-
}, {
|
|
45
42
|
id?: string | undefined;
|
|
43
|
+
}, {
|
|
46
44
|
phoneNumber?: string | undefined;
|
|
47
45
|
description?: string | undefined;
|
|
48
46
|
isPrimary?: boolean | undefined;
|
|
47
|
+
id?: string | undefined;
|
|
49
48
|
}>;
|
|
50
49
|
export declare const WorkerTradeSchema: z.ZodObject<{
|
|
51
50
|
id: z.ZodOptional<z.ZodString>;
|
|
52
51
|
tradeId: z.ZodString;
|
|
53
52
|
mainTrade: z.ZodDefault<z.ZodBoolean>;
|
|
54
|
-
skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
|
|
55
53
|
}, "strip", z.ZodTypeAny, {
|
|
56
54
|
tradeId: string;
|
|
57
55
|
mainTrade: boolean;
|
|
58
56
|
id?: string | undefined;
|
|
59
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
60
57
|
}, {
|
|
61
58
|
tradeId: string;
|
|
62
59
|
id?: string | undefined;
|
|
63
60
|
mainTrade?: boolean | undefined;
|
|
64
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
65
61
|
}>;
|
|
66
62
|
export declare const CreateWorkerTradeSchema: z.ZodObject<{
|
|
67
63
|
tradeId: z.ZodString;
|
|
68
64
|
mainTrade: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
-
skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
|
|
70
65
|
}, "strip", z.ZodTypeAny, {
|
|
71
66
|
tradeId: string;
|
|
72
67
|
mainTrade: boolean;
|
|
73
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
74
68
|
}, {
|
|
75
69
|
tradeId: string;
|
|
76
70
|
mainTrade?: boolean | undefined;
|
|
77
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
78
71
|
}>;
|
|
79
72
|
export declare const WorkerQualificationSchema: z.ZodObject<{
|
|
80
73
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -124,7 +117,7 @@ export declare const CreateWorkerQualificationSchema: z.ZodObject<{
|
|
|
124
117
|
proofDocumentFileId?: string | null | undefined;
|
|
125
118
|
}>;
|
|
126
119
|
export declare const ShareCodeSchema: z.ZodObject<{
|
|
127
|
-
code: z.ZodString
|
|
120
|
+
code: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
128
121
|
expiryDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
129
122
|
}, "strip", z.ZodTypeAny, {
|
|
130
123
|
code: string;
|
|
@@ -135,16 +128,13 @@ export declare const ShareCodeSchema: z.ZodObject<{
|
|
|
135
128
|
}>;
|
|
136
129
|
export declare const TradeFilterSchema: z.ZodObject<{
|
|
137
130
|
tradeId: z.ZodString;
|
|
138
|
-
|
|
139
|
-
mainTrade: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
mainTrade: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
140
132
|
}, "strip", z.ZodTypeAny, {
|
|
141
133
|
tradeId: string;
|
|
142
134
|
mainTrade?: boolean | undefined;
|
|
143
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
|
|
144
135
|
}, {
|
|
145
136
|
tradeId: string;
|
|
146
|
-
mainTrade?:
|
|
147
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
|
|
137
|
+
mainTrade?: unknown;
|
|
148
138
|
}>;
|
|
149
139
|
export declare const WorkerUserSchema: z.ZodObject<{
|
|
150
140
|
id: z.ZodString;
|
|
@@ -175,13 +165,13 @@ export declare const WorkerSchema: z.ZodObject<{
|
|
|
175
165
|
}, "strip", z.ZodTypeAny, {
|
|
176
166
|
phoneNumber: string;
|
|
177
167
|
isPrimary: boolean;
|
|
178
|
-
id?: string | undefined;
|
|
179
168
|
description?: string | undefined;
|
|
169
|
+
id?: string | undefined;
|
|
180
170
|
}, {
|
|
181
171
|
phoneNumber: string;
|
|
182
|
-
id?: string | undefined;
|
|
183
172
|
description?: string | undefined;
|
|
184
173
|
isPrimary?: boolean | undefined;
|
|
174
|
+
id?: string | undefined;
|
|
185
175
|
}>, "many">>>;
|
|
186
176
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
177
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
@@ -191,17 +181,14 @@ export declare const WorkerSchema: z.ZodObject<{
|
|
|
191
181
|
id: z.ZodOptional<z.ZodString>;
|
|
192
182
|
tradeId: z.ZodString;
|
|
193
183
|
mainTrade: z.ZodDefault<z.ZodBoolean>;
|
|
194
|
-
skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
|
|
195
184
|
}, "strip", z.ZodTypeAny, {
|
|
196
185
|
tradeId: string;
|
|
197
186
|
mainTrade: boolean;
|
|
198
187
|
id?: string | undefined;
|
|
199
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
200
188
|
}, {
|
|
201
189
|
tradeId: string;
|
|
202
190
|
id?: string | undefined;
|
|
203
191
|
mainTrade?: boolean | undefined;
|
|
204
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
205
192
|
}>, "many">>;
|
|
206
193
|
qualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
207
194
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -258,7 +245,7 @@ export declare const WorkerSchema: z.ZodObject<{
|
|
|
258
245
|
areaCovered?: string | null | undefined;
|
|
259
246
|
}>>>;
|
|
260
247
|
shareCode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
261
|
-
code: z.ZodString
|
|
248
|
+
code: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
262
249
|
expiryDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
263
250
|
}, "strip", z.ZodTypeAny, {
|
|
264
251
|
code: string;
|
|
@@ -288,20 +275,20 @@ export declare const WorkerSchema: z.ZodObject<{
|
|
|
288
275
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
289
276
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
290
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
createdAt: string;
|
|
279
|
+
updatedAt: string;
|
|
291
280
|
id: string;
|
|
292
281
|
firstName: string;
|
|
293
282
|
lastName: string;
|
|
294
283
|
phoneNumbers: {
|
|
295
284
|
phoneNumber: string;
|
|
296
285
|
isPrimary: boolean;
|
|
297
|
-
id?: string | undefined;
|
|
298
286
|
description?: string | undefined;
|
|
287
|
+
id?: string | undefined;
|
|
299
288
|
}[];
|
|
300
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
301
289
|
hasTools: boolean;
|
|
302
290
|
hasPpe: boolean;
|
|
303
|
-
|
|
304
|
-
updatedAt: string;
|
|
291
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
305
292
|
email?: string | null | undefined;
|
|
306
293
|
nino?: string | null | undefined;
|
|
307
294
|
dateOfBirth?: string | null | undefined;
|
|
@@ -310,7 +297,6 @@ export declare const WorkerSchema: z.ZodObject<{
|
|
|
310
297
|
tradeId: string;
|
|
311
298
|
mainTrade: boolean;
|
|
312
299
|
id?: string | undefined;
|
|
313
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
314
300
|
}[] | undefined;
|
|
315
301
|
qualifications?: {
|
|
316
302
|
qualificationId: string;
|
|
@@ -345,20 +331,20 @@ export declare const WorkerSchema: z.ZodObject<{
|
|
|
345
331
|
} | null | undefined;
|
|
346
332
|
distanceKm?: number | null | undefined;
|
|
347
333
|
}, {
|
|
334
|
+
createdAt: string | Date;
|
|
335
|
+
updatedAt: string | Date;
|
|
348
336
|
id: string;
|
|
349
337
|
firstName: string;
|
|
350
338
|
lastName: string;
|
|
351
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
352
339
|
hasTools: boolean;
|
|
353
340
|
hasPpe: boolean;
|
|
354
|
-
|
|
355
|
-
updatedAt: string | Date;
|
|
341
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
356
342
|
email?: string | null | undefined;
|
|
357
343
|
phoneNumbers?: {
|
|
358
344
|
phoneNumber: string;
|
|
359
|
-
id?: string | undefined;
|
|
360
345
|
description?: string | undefined;
|
|
361
346
|
isPrimary?: boolean | undefined;
|
|
347
|
+
id?: string | undefined;
|
|
362
348
|
}[] | undefined;
|
|
363
349
|
nino?: string | null | undefined;
|
|
364
350
|
dateOfBirth?: string | Date | null | undefined;
|
|
@@ -367,7 +353,6 @@ export declare const WorkerSchema: z.ZodObject<{
|
|
|
367
353
|
tradeId: string;
|
|
368
354
|
id?: string | undefined;
|
|
369
355
|
mainTrade?: boolean | undefined;
|
|
370
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
371
356
|
}[] | undefined;
|
|
372
357
|
qualifications?: {
|
|
373
358
|
qualificationId: string;
|
|
@@ -426,15 +411,12 @@ export declare const CreateWorkerSchema: z.ZodObject<{
|
|
|
426
411
|
trades: z.ZodArray<z.ZodObject<{
|
|
427
412
|
tradeId: z.ZodString;
|
|
428
413
|
mainTrade: z.ZodDefault<z.ZodBoolean>;
|
|
429
|
-
skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
|
|
430
414
|
}, "strip", z.ZodTypeAny, {
|
|
431
415
|
tradeId: string;
|
|
432
416
|
mainTrade: boolean;
|
|
433
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
434
417
|
}, {
|
|
435
418
|
tradeId: string;
|
|
436
419
|
mainTrade?: boolean | undefined;
|
|
437
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
438
420
|
}>, "many">;
|
|
439
421
|
qualifications: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
440
422
|
qualificationId: z.ZodString;
|
|
@@ -463,17 +445,17 @@ export declare const CreateWorkerSchema: z.ZodObject<{
|
|
|
463
445
|
hasTools: z.ZodBoolean;
|
|
464
446
|
hasPpe: z.ZodBoolean;
|
|
465
447
|
location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
466
|
-
address: z.ZodOptional<z.ZodString
|
|
467
|
-
postcode: z.ZodOptional<z.ZodString
|
|
448
|
+
address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
449
|
+
postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
468
450
|
}, "strip", z.ZodTypeAny, {
|
|
469
|
-
address?: string | undefined;
|
|
470
|
-
postcode?: string | undefined;
|
|
451
|
+
address?: string | null | undefined;
|
|
452
|
+
postcode?: string | null | undefined;
|
|
471
453
|
}, {
|
|
472
|
-
address?: string | undefined;
|
|
473
|
-
postcode?: string | undefined;
|
|
454
|
+
address?: string | null | undefined;
|
|
455
|
+
postcode?: string | null | undefined;
|
|
474
456
|
}>>>;
|
|
475
457
|
shareCode: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
476
|
-
code: z.ZodString
|
|
458
|
+
code: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
477
459
|
expiryDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
478
460
|
}, "strip", z.ZodTypeAny, {
|
|
479
461
|
code: string;
|
|
@@ -490,14 +472,13 @@ export declare const CreateWorkerSchema: z.ZodObject<{
|
|
|
490
472
|
isPrimary: boolean;
|
|
491
473
|
description?: string | undefined;
|
|
492
474
|
}[];
|
|
493
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
494
475
|
trades: {
|
|
495
476
|
tradeId: string;
|
|
496
477
|
mainTrade: boolean;
|
|
497
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
498
478
|
}[];
|
|
499
479
|
hasTools: boolean;
|
|
500
480
|
hasPpe: boolean;
|
|
481
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
501
482
|
email?: string | null | undefined;
|
|
502
483
|
nino?: string | null | undefined;
|
|
503
484
|
dateOfBirth?: string | Date | null | undefined;
|
|
@@ -513,8 +494,8 @@ export declare const CreateWorkerSchema: z.ZodObject<{
|
|
|
513
494
|
englishLevel?: "NONE" | "BASIC" | "INTERMEDIATE" | "ADVANCED" | "NATIVE" | null | undefined;
|
|
514
495
|
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | null | undefined;
|
|
515
496
|
location?: {
|
|
516
|
-
address?: string | undefined;
|
|
517
|
-
postcode?: string | undefined;
|
|
497
|
+
address?: string | null | undefined;
|
|
498
|
+
postcode?: string | null | undefined;
|
|
518
499
|
} | null | undefined;
|
|
519
500
|
shareCode?: {
|
|
520
501
|
code: string;
|
|
@@ -531,7 +512,6 @@ export declare const CreateWorkerSchema: z.ZodObject<{
|
|
|
531
512
|
trades: {
|
|
532
513
|
tradeId: string;
|
|
533
514
|
mainTrade?: boolean | undefined;
|
|
534
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
535
515
|
}[];
|
|
536
516
|
hasTools: boolean;
|
|
537
517
|
hasPpe: boolean;
|
|
@@ -539,7 +519,6 @@ export declare const CreateWorkerSchema: z.ZodObject<{
|
|
|
539
519
|
nino?: string | null | undefined;
|
|
540
520
|
dateOfBirth?: string | Date | null | undefined;
|
|
541
521
|
bio?: string | null | undefined;
|
|
542
|
-
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
|
|
543
522
|
qualifications?: {
|
|
544
523
|
qualificationId: string;
|
|
545
524
|
qualificationTypeId?: string | null | undefined;
|
|
@@ -551,9 +530,10 @@ export declare const CreateWorkerSchema: z.ZodObject<{
|
|
|
551
530
|
englishLevel?: "NONE" | "BASIC" | "INTERMEDIATE" | "ADVANCED" | "NATIVE" | null | undefined;
|
|
552
531
|
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | null | undefined;
|
|
553
532
|
location?: {
|
|
554
|
-
address?: string | undefined;
|
|
555
|
-
postcode?: string | undefined;
|
|
533
|
+
address?: string | null | undefined;
|
|
534
|
+
postcode?: string | null | undefined;
|
|
556
535
|
} | null | undefined;
|
|
536
|
+
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
|
|
557
537
|
shareCode?: {
|
|
558
538
|
code: string;
|
|
559
539
|
expiryDate?: string | Date | null | undefined;
|
|
@@ -569,15 +549,15 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
|
|
|
569
549
|
description: z.ZodOptional<z.ZodString>;
|
|
570
550
|
isPrimary: z.ZodOptional<z.ZodBoolean>;
|
|
571
551
|
}, "strip", z.ZodTypeAny, {
|
|
572
|
-
id?: string | undefined;
|
|
573
552
|
phoneNumber?: string | undefined;
|
|
574
553
|
description?: string | undefined;
|
|
575
554
|
isPrimary?: boolean | undefined;
|
|
576
|
-
}, {
|
|
577
555
|
id?: string | undefined;
|
|
556
|
+
}, {
|
|
578
557
|
phoneNumber?: string | undefined;
|
|
579
558
|
description?: string | undefined;
|
|
580
559
|
isPrimary?: boolean | undefined;
|
|
560
|
+
id?: string | undefined;
|
|
581
561
|
}>, "many">>;
|
|
582
562
|
nino: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
583
563
|
dateOfBirth: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>>;
|
|
@@ -587,17 +567,14 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
|
|
|
587
567
|
id: z.ZodOptional<z.ZodString>;
|
|
588
568
|
tradeId: z.ZodString;
|
|
589
569
|
mainTrade: z.ZodDefault<z.ZodBoolean>;
|
|
590
|
-
skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
|
|
591
570
|
}, "strip", z.ZodTypeAny, {
|
|
592
571
|
tradeId: string;
|
|
593
572
|
mainTrade: boolean;
|
|
594
573
|
id?: string | undefined;
|
|
595
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
596
574
|
}, {
|
|
597
575
|
tradeId: string;
|
|
598
576
|
id?: string | undefined;
|
|
599
577
|
mainTrade?: boolean | undefined;
|
|
600
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
601
578
|
}>, "many">>;
|
|
602
579
|
qualifications: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
603
580
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -629,17 +606,17 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
|
|
|
629
606
|
hasTools: z.ZodOptional<z.ZodBoolean>;
|
|
630
607
|
hasPpe: z.ZodOptional<z.ZodBoolean>;
|
|
631
608
|
location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
632
|
-
address: z.ZodOptional<z.ZodString
|
|
633
|
-
postcode: z.ZodOptional<z.ZodString
|
|
609
|
+
address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
610
|
+
postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
634
611
|
}, "strip", z.ZodTypeAny, {
|
|
635
|
-
address?: string | undefined;
|
|
636
|
-
postcode?: string | undefined;
|
|
612
|
+
address?: string | null | undefined;
|
|
613
|
+
postcode?: string | null | undefined;
|
|
637
614
|
}, {
|
|
638
|
-
address?: string | undefined;
|
|
639
|
-
postcode?: string | undefined;
|
|
615
|
+
address?: string | null | undefined;
|
|
616
|
+
postcode?: string | null | undefined;
|
|
640
617
|
}>>>;
|
|
641
618
|
shareCode: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
642
|
-
code: z.ZodString
|
|
619
|
+
code: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
643
620
|
expiryDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
644
621
|
}, "strip", z.ZodTypeAny, {
|
|
645
622
|
code: string;
|
|
@@ -653,20 +630,18 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
|
|
|
653
630
|
firstName?: string | undefined;
|
|
654
631
|
lastName?: string | undefined;
|
|
655
632
|
phoneNumbers?: {
|
|
656
|
-
id?: string | undefined;
|
|
657
633
|
phoneNumber?: string | undefined;
|
|
658
634
|
description?: string | undefined;
|
|
659
635
|
isPrimary?: boolean | undefined;
|
|
636
|
+
id?: string | undefined;
|
|
660
637
|
}[] | undefined;
|
|
661
638
|
nino?: string | null | undefined;
|
|
662
639
|
dateOfBirth?: string | Date | null | undefined;
|
|
663
640
|
bio?: string | null | undefined;
|
|
664
|
-
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
|
|
665
641
|
trades?: {
|
|
666
642
|
tradeId: string;
|
|
667
643
|
mainTrade: boolean;
|
|
668
644
|
id?: string | undefined;
|
|
669
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
670
645
|
}[] | undefined;
|
|
671
646
|
qualifications?: {
|
|
672
647
|
qualificationId: string;
|
|
@@ -682,9 +657,10 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
|
|
|
682
657
|
hasTools?: boolean | undefined;
|
|
683
658
|
hasPpe?: boolean | undefined;
|
|
684
659
|
location?: {
|
|
685
|
-
address?: string | undefined;
|
|
686
|
-
postcode?: string | undefined;
|
|
660
|
+
address?: string | null | undefined;
|
|
661
|
+
postcode?: string | null | undefined;
|
|
687
662
|
} | null | undefined;
|
|
663
|
+
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
|
|
688
664
|
shareCode?: {
|
|
689
665
|
code: string;
|
|
690
666
|
expiryDate?: string | null | undefined;
|
|
@@ -694,20 +670,18 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
|
|
|
694
670
|
firstName?: string | undefined;
|
|
695
671
|
lastName?: string | undefined;
|
|
696
672
|
phoneNumbers?: {
|
|
697
|
-
id?: string | undefined;
|
|
698
673
|
phoneNumber?: string | undefined;
|
|
699
674
|
description?: string | undefined;
|
|
700
675
|
isPrimary?: boolean | undefined;
|
|
676
|
+
id?: string | undefined;
|
|
701
677
|
}[] | undefined;
|
|
702
678
|
nino?: string | null | undefined;
|
|
703
679
|
dateOfBirth?: string | Date | null | undefined;
|
|
704
680
|
bio?: string | null | undefined;
|
|
705
|
-
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
|
|
706
681
|
trades?: {
|
|
707
682
|
tradeId: string;
|
|
708
683
|
id?: string | undefined;
|
|
709
684
|
mainTrade?: boolean | undefined;
|
|
710
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
711
685
|
}[] | undefined;
|
|
712
686
|
qualifications?: {
|
|
713
687
|
qualificationId: string;
|
|
@@ -723,9 +697,10 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
|
|
|
723
697
|
hasTools?: boolean | undefined;
|
|
724
698
|
hasPpe?: boolean | undefined;
|
|
725
699
|
location?: {
|
|
726
|
-
address?: string | undefined;
|
|
727
|
-
postcode?: string | undefined;
|
|
700
|
+
address?: string | null | undefined;
|
|
701
|
+
postcode?: string | null | undefined;
|
|
728
702
|
} | null | undefined;
|
|
703
|
+
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
|
|
729
704
|
shareCode?: {
|
|
730
705
|
code: string;
|
|
731
706
|
expiryDate?: string | Date | null | undefined;
|
|
@@ -735,56 +710,78 @@ export declare const FilterWorkerSchema: z.ZodObject<{
|
|
|
735
710
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
736
711
|
page: z.ZodDefault<z.ZodNumber>;
|
|
737
712
|
} & {
|
|
738
|
-
|
|
713
|
+
name: z.ZodOptional<z.ZodString>;
|
|
714
|
+
email: z.ZodOptional<z.ZodString>;
|
|
715
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
739
716
|
availability: z.ZodNullable<z.ZodOptional<z.ZodEnum<["AVAILABLE", "PARTIALLY_AVAILABLE", "UNAVAILABLE"]>>>;
|
|
717
|
+
englishLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["NONE", "BASIC", "INTERMEDIATE", "ADVANCED", "NATIVE"]>>>;
|
|
718
|
+
nationality: z.ZodNullable<z.ZodOptional<z.ZodEnum<["AFGHAN", "ALBANIAN", "ALGERIAN", "AMERICAN", "ANDORRAN", "ANGOLAN", "ANTIGUANS", "ARGENTINEAN", "ARMENIAN", "AUSTRALIAN", "AUSTRIAN", "AZERBAIJANI", "BAHAMIAN", "BAHRAINI", "BANGLADESHI", "BARBADIAN", "BARBUDANS", "BELARUSIAN", "BELGIAN", "BELIZEAN", "BENINESE", "BHUTANESE", "BOLIVIAN", "BOSNIAN", "BRAZILIAN", "BRITISH", "BRUNEIAN", "BULGARIAN", "BURKINABE", "BURMESE", "BURUNDIAN", "CAMBODIAN", "CAMEROONIAN", "CANADIAN", "CAPE_VERDEAN", "CENTRAL_AFRICAN", "CHADIAN", "CHILEAN", "CHINESE", "COLOMBIAN", "COMORAN", "CONGOLESE", "COSTA_RICAN", "CROATIAN", "CUBAN", "CYPRIOT", "CZECH", "DANISH", "DJIBOUTI", "DOMINICAN", "DUTCH", "EAST_TIMORESE", "ECUADOREAN", "EGYPTIAN", "EMIRIAN", "EQUATORIAL_GUINEAN", "ERITREAN", "ESTONIAN", "ETHIOPIAN", "FIJIAN", "FILIPINO", "FINNISH", "FRENCH", "GABONESE", "GAMBIAN", "GEORGIAN", "GERMAN", "GHANAIAN", "GREEK", "GRENADIAN", "GUATEMALAN", "GUINEA_BISSAUAN", "GUINEAN", "GUYANESE", "HAITIAN", "HERZEGOVINIAN", "HONDURAN", "HUNGARIAN", "ICELANDER", "INDIAN", "INDONESIAN", "IRANIAN", "IRAQI", "IRISH", "ISRAELI", "ITALIAN", "IVORIAN", "JAMAICAN", "JAPANESE", "JORDANIAN", "KAZAKHSTANI", "KENYAN", "KITTIAN_AND_NEVISIAN", "KUWAITI", "KYRGYZ", "LAOTIAN", "LATVIAN", "LEBANESE", "LIBERIAN", "LIBYAN", "LIECHTENSTEINER", "LITHUANIAN", "LUXEMBOURGER", "MACEDONIAN", "MALAGASY", "MALAWIAN", "MALAYSIAN", "MALDIVAN", "MALIAN", "MALTESE", "MARSHALLESE", "MAURITANIAN", "MAURITIAN", "MEXICAN", "MICRONESIAN", "MOLDOVAN", "MONACAN", "MONGOLIAN", "MOROCCAN", "MOSOTHO", "MOTSWANA", "MOZAMBICAN", "NAMIBIAN", "NAURUAN", "NEPALESE", "NEW_ZEALANDER", "NI_VANUATU", "NICARAGUAN", "NIGERIEN", "NIGERIAN", "NORTH_KOREAN", "NORTHERN_IRISH", "NORWEGIAN", "OMANI", "PAKISTANI", "PALAUAN", "PANAMANIAN", "PAPUA_NEW_GUINEAN", "PARAGUAYAN", "PERUVIAN", "POLISH", "PORTUGUESE", "QATARI", "ROMANIAN", "RUSSIAN", "RWANDAN", "SAINT_LUCIAN", "SALVADORAN", "SAMOAN", "SAN_MARINESE", "SAO_TOMEAN", "SAUDI", "SCOTTISH", "SENEGALESE", "SERBIAN", "SEYCHELLOIS", "SIERRA_LEONEAN", "SINGAPOREAN", "SLOVAKIAN", "SLOVENIAN", "SOLOMON_ISLANDER", "SOMALI", "SOUTH_AFRICAN", "SOUTH_KOREAN", "SOUTH_SUDANESE", "SPANISH", "SRI_LANKAN", "SUDANESE", "SURINAMER", "SWAZI", "SWEDISH", "SWISS", "SYRIAN", "TAIWANESE", "TAJIK", "TANZANIAN", "THAI", "TOGOLESE", "TONGAN", "TRINIDADIAN_OR_TOBAGONIAN", "TUNISIAN", "TURKISH", "TUVALUAN", "UGANDAN", "UKRAINIAN", "URUGUAYAN", "UZBEKISTANI", "VENEZUELAN", "VIETNAMESE", "WELSH", "YEMENITE", "ZAMBIAN", "ZIMBABWEAN"]>>>;
|
|
719
|
+
postcode: z.ZodOptional<z.ZodString>;
|
|
720
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
740
721
|
tradeFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
741
722
|
tradeId: z.ZodString;
|
|
742
|
-
|
|
743
|
-
mainTrade: z.ZodOptional<z.ZodBoolean>;
|
|
723
|
+
mainTrade: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
744
724
|
}, "strip", z.ZodTypeAny, {
|
|
745
725
|
tradeId: string;
|
|
746
726
|
mainTrade?: boolean | undefined;
|
|
747
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
|
|
748
727
|
}, {
|
|
749
728
|
tradeId: string;
|
|
750
|
-
mainTrade?:
|
|
751
|
-
|
|
729
|
+
mainTrade?: unknown;
|
|
730
|
+
}>, "many">>;
|
|
731
|
+
qualificationFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
732
|
+
qualificationId: z.ZodOptional<z.ZodString>;
|
|
733
|
+
qualificationTypeId: z.ZodOptional<z.ZodString>;
|
|
734
|
+
}, "strip", z.ZodTypeAny, {
|
|
735
|
+
qualificationId?: string | undefined;
|
|
736
|
+
qualificationTypeId?: string | undefined;
|
|
737
|
+
}, {
|
|
738
|
+
qualificationId?: string | undefined;
|
|
739
|
+
qualificationTypeId?: string | undefined;
|
|
752
740
|
}>, "many">>;
|
|
753
741
|
sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["nameSimilarity", "fullName", "distance", "email", "phone"]>>>;
|
|
754
742
|
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
755
|
-
latitude: z.ZodOptional<z.ZodNumber>;
|
|
756
|
-
longitude: z.ZodOptional<z.ZodNumber>;
|
|
757
|
-
radiusKm: z.ZodOptional<z.ZodNumber>;
|
|
758
743
|
}, "strip", z.ZodTypeAny, {
|
|
759
744
|
limit: number;
|
|
760
745
|
page: number;
|
|
761
|
-
|
|
762
|
-
|
|
746
|
+
distance?: number | undefined;
|
|
747
|
+
email?: string | undefined;
|
|
748
|
+
phone?: string | undefined;
|
|
749
|
+
englishLevel?: "NONE" | "BASIC" | "INTERMEDIATE" | "ADVANCED" | "NATIVE" | null | undefined;
|
|
750
|
+
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | null | undefined;
|
|
751
|
+
postcode?: string | undefined;
|
|
752
|
+
name?: string | undefined;
|
|
753
|
+
qualificationFilters?: {
|
|
754
|
+
qualificationId?: string | undefined;
|
|
755
|
+
qualificationTypeId?: string | undefined;
|
|
756
|
+
}[] | undefined;
|
|
757
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
763
758
|
tradeFilters?: {
|
|
764
759
|
tradeId: string;
|
|
765
760
|
mainTrade?: boolean | undefined;
|
|
766
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
|
|
767
761
|
}[] | undefined;
|
|
768
762
|
sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
|
|
769
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
770
|
-
latitude?: number | undefined;
|
|
771
|
-
longitude?: number | undefined;
|
|
772
|
-
radiusKm?: number | undefined;
|
|
773
|
-
}, {
|
|
774
763
|
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
|
|
764
|
+
}, {
|
|
765
|
+
distance?: number | undefined;
|
|
766
|
+
email?: string | undefined;
|
|
767
|
+
phone?: string | undefined;
|
|
768
|
+
englishLevel?: "NONE" | "BASIC" | "INTERMEDIATE" | "ADVANCED" | "NATIVE" | null | undefined;
|
|
769
|
+
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | null | undefined;
|
|
770
|
+
postcode?: string | undefined;
|
|
775
771
|
limit?: number | undefined;
|
|
776
772
|
page?: number | undefined;
|
|
777
|
-
|
|
773
|
+
name?: string | undefined;
|
|
774
|
+
qualificationFilters?: {
|
|
775
|
+
qualificationId?: string | undefined;
|
|
776
|
+
qualificationTypeId?: string | undefined;
|
|
777
|
+
}[] | undefined;
|
|
778
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
778
779
|
tradeFilters?: {
|
|
779
780
|
tradeId: string;
|
|
780
|
-
mainTrade?:
|
|
781
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
|
|
781
|
+
mainTrade?: unknown;
|
|
782
782
|
}[] | undefined;
|
|
783
783
|
sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
|
|
784
|
-
|
|
785
|
-
latitude?: number | undefined;
|
|
786
|
-
longitude?: number | undefined;
|
|
787
|
-
radiusKm?: number | undefined;
|
|
784
|
+
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
|
|
788
785
|
}>;
|
|
789
786
|
export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
790
787
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -800,13 +797,13 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
|
800
797
|
}, "strip", z.ZodTypeAny, {
|
|
801
798
|
phoneNumber: string;
|
|
802
799
|
isPrimary: boolean;
|
|
803
|
-
id?: string | undefined;
|
|
804
800
|
description?: string | undefined;
|
|
801
|
+
id?: string | undefined;
|
|
805
802
|
}, {
|
|
806
803
|
phoneNumber: string;
|
|
807
|
-
id?: string | undefined;
|
|
808
804
|
description?: string | undefined;
|
|
809
805
|
isPrimary?: boolean | undefined;
|
|
806
|
+
id?: string | undefined;
|
|
810
807
|
}>, "many">>>;
|
|
811
808
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
812
809
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
@@ -816,17 +813,14 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
|
816
813
|
id: z.ZodOptional<z.ZodString>;
|
|
817
814
|
tradeId: z.ZodString;
|
|
818
815
|
mainTrade: z.ZodDefault<z.ZodBoolean>;
|
|
819
|
-
skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
|
|
820
816
|
}, "strip", z.ZodTypeAny, {
|
|
821
817
|
tradeId: string;
|
|
822
818
|
mainTrade: boolean;
|
|
823
819
|
id?: string | undefined;
|
|
824
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
825
820
|
}, {
|
|
826
821
|
tradeId: string;
|
|
827
822
|
id?: string | undefined;
|
|
828
823
|
mainTrade?: boolean | undefined;
|
|
829
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
830
824
|
}>, "many">>;
|
|
831
825
|
qualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
832
826
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -883,7 +877,7 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
|
883
877
|
areaCovered?: string | null | undefined;
|
|
884
878
|
}>>>;
|
|
885
879
|
shareCode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
886
|
-
code: z.ZodString
|
|
880
|
+
code: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
887
881
|
expiryDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
888
882
|
}, "strip", z.ZodTypeAny, {
|
|
889
883
|
code: string;
|
|
@@ -913,20 +907,20 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
|
913
907
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
914
908
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
915
909
|
}, "strip", z.ZodTypeAny, {
|
|
910
|
+
createdAt: string;
|
|
911
|
+
updatedAt: string;
|
|
916
912
|
id: string;
|
|
917
913
|
firstName: string;
|
|
918
914
|
lastName: string;
|
|
919
915
|
phoneNumbers: {
|
|
920
916
|
phoneNumber: string;
|
|
921
917
|
isPrimary: boolean;
|
|
922
|
-
id?: string | undefined;
|
|
923
918
|
description?: string | undefined;
|
|
919
|
+
id?: string | undefined;
|
|
924
920
|
}[];
|
|
925
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
926
921
|
hasTools: boolean;
|
|
927
922
|
hasPpe: boolean;
|
|
928
|
-
|
|
929
|
-
updatedAt: string;
|
|
923
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
930
924
|
email?: string | null | undefined;
|
|
931
925
|
nino?: string | null | undefined;
|
|
932
926
|
dateOfBirth?: string | null | undefined;
|
|
@@ -935,7 +929,6 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
|
935
929
|
tradeId: string;
|
|
936
930
|
mainTrade: boolean;
|
|
937
931
|
id?: string | undefined;
|
|
938
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
939
932
|
}[] | undefined;
|
|
940
933
|
qualifications?: {
|
|
941
934
|
qualificationId: string;
|
|
@@ -970,20 +963,20 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
|
970
963
|
} | null | undefined;
|
|
971
964
|
distanceKm?: number | null | undefined;
|
|
972
965
|
}, {
|
|
966
|
+
createdAt: string | Date;
|
|
967
|
+
updatedAt: string | Date;
|
|
973
968
|
id: string;
|
|
974
969
|
firstName: string;
|
|
975
970
|
lastName: string;
|
|
976
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
977
971
|
hasTools: boolean;
|
|
978
972
|
hasPpe: boolean;
|
|
979
|
-
|
|
980
|
-
updatedAt: string | Date;
|
|
973
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
981
974
|
email?: string | null | undefined;
|
|
982
975
|
phoneNumbers?: {
|
|
983
976
|
phoneNumber: string;
|
|
984
|
-
id?: string | undefined;
|
|
985
977
|
description?: string | undefined;
|
|
986
978
|
isPrimary?: boolean | undefined;
|
|
979
|
+
id?: string | undefined;
|
|
987
980
|
}[] | undefined;
|
|
988
981
|
nino?: string | null | undefined;
|
|
989
982
|
dateOfBirth?: string | Date | null | undefined;
|
|
@@ -992,7 +985,6 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
|
992
985
|
tradeId: string;
|
|
993
986
|
id?: string | undefined;
|
|
994
987
|
mainTrade?: boolean | undefined;
|
|
995
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
996
988
|
}[] | undefined;
|
|
997
989
|
qualifications?: {
|
|
998
990
|
qualificationId: string;
|
|
@@ -1033,22 +1025,21 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
|
1033
1025
|
currentPage: z.ZodNumber;
|
|
1034
1026
|
totalPages: z.ZodNumber;
|
|
1035
1027
|
}, "strip", z.ZodTypeAny, {
|
|
1036
|
-
limit: number;
|
|
1037
1028
|
items: {
|
|
1029
|
+
createdAt: string;
|
|
1030
|
+
updatedAt: string;
|
|
1038
1031
|
id: string;
|
|
1039
1032
|
firstName: string;
|
|
1040
1033
|
lastName: string;
|
|
1041
1034
|
phoneNumbers: {
|
|
1042
1035
|
phoneNumber: string;
|
|
1043
1036
|
isPrimary: boolean;
|
|
1044
|
-
id?: string | undefined;
|
|
1045
1037
|
description?: string | undefined;
|
|
1038
|
+
id?: string | undefined;
|
|
1046
1039
|
}[];
|
|
1047
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1048
1040
|
hasTools: boolean;
|
|
1049
1041
|
hasPpe: boolean;
|
|
1050
|
-
|
|
1051
|
-
updatedAt: string;
|
|
1042
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1052
1043
|
email?: string | null | undefined;
|
|
1053
1044
|
nino?: string | null | undefined;
|
|
1054
1045
|
dateOfBirth?: string | null | undefined;
|
|
@@ -1057,7 +1048,6 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
|
1057
1048
|
tradeId: string;
|
|
1058
1049
|
mainTrade: boolean;
|
|
1059
1050
|
id?: string | undefined;
|
|
1060
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
1061
1051
|
}[] | undefined;
|
|
1062
1052
|
qualifications?: {
|
|
1063
1053
|
qualificationId: string;
|
|
@@ -1093,26 +1083,26 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
|
1093
1083
|
distanceKm?: number | null | undefined;
|
|
1094
1084
|
}[];
|
|
1095
1085
|
totalCount: number;
|
|
1086
|
+
limit: number;
|
|
1096
1087
|
skip: number;
|
|
1097
1088
|
currentPage: number;
|
|
1098
1089
|
totalPages: number;
|
|
1099
1090
|
}, {
|
|
1100
|
-
limit: number;
|
|
1101
1091
|
items: {
|
|
1092
|
+
createdAt: string | Date;
|
|
1093
|
+
updatedAt: string | Date;
|
|
1102
1094
|
id: string;
|
|
1103
1095
|
firstName: string;
|
|
1104
1096
|
lastName: string;
|
|
1105
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1106
1097
|
hasTools: boolean;
|
|
1107
1098
|
hasPpe: boolean;
|
|
1108
|
-
|
|
1109
|
-
updatedAt: string | Date;
|
|
1099
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1110
1100
|
email?: string | null | undefined;
|
|
1111
1101
|
phoneNumbers?: {
|
|
1112
1102
|
phoneNumber: string;
|
|
1113
|
-
id?: string | undefined;
|
|
1114
1103
|
description?: string | undefined;
|
|
1115
1104
|
isPrimary?: boolean | undefined;
|
|
1105
|
+
id?: string | undefined;
|
|
1116
1106
|
}[] | undefined;
|
|
1117
1107
|
nino?: string | null | undefined;
|
|
1118
1108
|
dateOfBirth?: string | Date | null | undefined;
|
|
@@ -1121,7 +1111,6 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
|
1121
1111
|
tradeId: string;
|
|
1122
1112
|
id?: string | undefined;
|
|
1123
1113
|
mainTrade?: boolean | undefined;
|
|
1124
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
1125
1114
|
}[] | undefined;
|
|
1126
1115
|
qualifications?: {
|
|
1127
1116
|
qualificationId: string;
|
|
@@ -1157,12 +1146,12 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
|
|
|
1157
1146
|
distanceKm?: number | null | undefined;
|
|
1158
1147
|
}[];
|
|
1159
1148
|
totalCount: number;
|
|
1149
|
+
limit: number;
|
|
1160
1150
|
skip: number;
|
|
1161
1151
|
currentPage: number;
|
|
1162
1152
|
totalPages: number;
|
|
1163
1153
|
}>;
|
|
1164
1154
|
export type Availability = z.infer<typeof AvailabilitySchema>;
|
|
1165
|
-
export type SkillLevel = z.infer<typeof SkillLevelSchema>;
|
|
1166
1155
|
export type WorkerSortableFields = z.infer<typeof WorkerSortableFieldsSchema>;
|
|
1167
1156
|
export type WorkerPhoneNumber = z.infer<typeof WorkerPhoneNumberSchema>;
|
|
1168
1157
|
export type CreateWorkerPhoneNumber = z.infer<typeof CreateWorkerPhoneNumberSchema>;
|
|
@@ -1213,15 +1202,12 @@ export declare const workersContractRouter: {
|
|
|
1213
1202
|
trades: z.ZodArray<z.ZodObject<{
|
|
1214
1203
|
tradeId: z.ZodString;
|
|
1215
1204
|
mainTrade: z.ZodDefault<z.ZodBoolean>;
|
|
1216
|
-
skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
|
|
1217
1205
|
}, "strip", z.ZodTypeAny, {
|
|
1218
1206
|
tradeId: string;
|
|
1219
1207
|
mainTrade: boolean;
|
|
1220
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
1221
1208
|
}, {
|
|
1222
1209
|
tradeId: string;
|
|
1223
1210
|
mainTrade?: boolean | undefined;
|
|
1224
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
1225
1211
|
}>, "many">;
|
|
1226
1212
|
qualifications: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1227
1213
|
qualificationId: z.ZodString;
|
|
@@ -1250,17 +1236,17 @@ export declare const workersContractRouter: {
|
|
|
1250
1236
|
hasTools: z.ZodBoolean;
|
|
1251
1237
|
hasPpe: z.ZodBoolean;
|
|
1252
1238
|
location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1253
|
-
address: z.ZodOptional<z.ZodString
|
|
1254
|
-
postcode: z.ZodOptional<z.ZodString
|
|
1239
|
+
address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1240
|
+
postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1255
1241
|
}, "strip", z.ZodTypeAny, {
|
|
1256
|
-
address?: string | undefined;
|
|
1257
|
-
postcode?: string | undefined;
|
|
1242
|
+
address?: string | null | undefined;
|
|
1243
|
+
postcode?: string | null | undefined;
|
|
1258
1244
|
}, {
|
|
1259
|
-
address?: string | undefined;
|
|
1260
|
-
postcode?: string | undefined;
|
|
1245
|
+
address?: string | null | undefined;
|
|
1246
|
+
postcode?: string | null | undefined;
|
|
1261
1247
|
}>>>;
|
|
1262
1248
|
shareCode: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1263
|
-
code: z.ZodString
|
|
1249
|
+
code: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1264
1250
|
expiryDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
1265
1251
|
}, "strip", z.ZodTypeAny, {
|
|
1266
1252
|
code: string;
|
|
@@ -1277,14 +1263,13 @@ export declare const workersContractRouter: {
|
|
|
1277
1263
|
isPrimary: boolean;
|
|
1278
1264
|
description?: string | undefined;
|
|
1279
1265
|
}[];
|
|
1280
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1281
1266
|
trades: {
|
|
1282
1267
|
tradeId: string;
|
|
1283
1268
|
mainTrade: boolean;
|
|
1284
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
1285
1269
|
}[];
|
|
1286
1270
|
hasTools: boolean;
|
|
1287
1271
|
hasPpe: boolean;
|
|
1272
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1288
1273
|
email?: string | null | undefined;
|
|
1289
1274
|
nino?: string | null | undefined;
|
|
1290
1275
|
dateOfBirth?: string | Date | null | undefined;
|
|
@@ -1300,8 +1285,8 @@ export declare const workersContractRouter: {
|
|
|
1300
1285
|
englishLevel?: "NONE" | "BASIC" | "INTERMEDIATE" | "ADVANCED" | "NATIVE" | null | undefined;
|
|
1301
1286
|
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | null | undefined;
|
|
1302
1287
|
location?: {
|
|
1303
|
-
address?: string | undefined;
|
|
1304
|
-
postcode?: string | undefined;
|
|
1288
|
+
address?: string | null | undefined;
|
|
1289
|
+
postcode?: string | null | undefined;
|
|
1305
1290
|
} | null | undefined;
|
|
1306
1291
|
shareCode?: {
|
|
1307
1292
|
code: string;
|
|
@@ -1318,7 +1303,6 @@ export declare const workersContractRouter: {
|
|
|
1318
1303
|
trades: {
|
|
1319
1304
|
tradeId: string;
|
|
1320
1305
|
mainTrade?: boolean | undefined;
|
|
1321
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
1322
1306
|
}[];
|
|
1323
1307
|
hasTools: boolean;
|
|
1324
1308
|
hasPpe: boolean;
|
|
@@ -1326,7 +1310,6 @@ export declare const workersContractRouter: {
|
|
|
1326
1310
|
nino?: string | null | undefined;
|
|
1327
1311
|
dateOfBirth?: string | Date | null | undefined;
|
|
1328
1312
|
bio?: string | null | undefined;
|
|
1329
|
-
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
|
|
1330
1313
|
qualifications?: {
|
|
1331
1314
|
qualificationId: string;
|
|
1332
1315
|
qualificationTypeId?: string | null | undefined;
|
|
@@ -1338,9 +1321,10 @@ export declare const workersContractRouter: {
|
|
|
1338
1321
|
englishLevel?: "NONE" | "BASIC" | "INTERMEDIATE" | "ADVANCED" | "NATIVE" | null | undefined;
|
|
1339
1322
|
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | null | undefined;
|
|
1340
1323
|
location?: {
|
|
1341
|
-
address?: string | undefined;
|
|
1342
|
-
postcode?: string | undefined;
|
|
1324
|
+
address?: string | null | undefined;
|
|
1325
|
+
postcode?: string | null | undefined;
|
|
1343
1326
|
} | null | undefined;
|
|
1327
|
+
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
|
|
1344
1328
|
shareCode?: {
|
|
1345
1329
|
code: string;
|
|
1346
1330
|
expiryDate?: string | Date | null | undefined;
|
|
@@ -1461,13 +1445,13 @@ export declare const workersContractRouter: {
|
|
|
1461
1445
|
}, "strip", z.ZodTypeAny, {
|
|
1462
1446
|
phoneNumber: string;
|
|
1463
1447
|
isPrimary: boolean;
|
|
1464
|
-
id?: string | undefined;
|
|
1465
1448
|
description?: string | undefined;
|
|
1449
|
+
id?: string | undefined;
|
|
1466
1450
|
}, {
|
|
1467
1451
|
phoneNumber: string;
|
|
1468
|
-
id?: string | undefined;
|
|
1469
1452
|
description?: string | undefined;
|
|
1470
1453
|
isPrimary?: boolean | undefined;
|
|
1454
|
+
id?: string | undefined;
|
|
1471
1455
|
}>, "many">>>;
|
|
1472
1456
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1473
1457
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
@@ -1477,17 +1461,14 @@ export declare const workersContractRouter: {
|
|
|
1477
1461
|
id: z.ZodOptional<z.ZodString>;
|
|
1478
1462
|
tradeId: z.ZodString;
|
|
1479
1463
|
mainTrade: z.ZodDefault<z.ZodBoolean>;
|
|
1480
|
-
skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
|
|
1481
1464
|
}, "strip", z.ZodTypeAny, {
|
|
1482
1465
|
tradeId: string;
|
|
1483
1466
|
mainTrade: boolean;
|
|
1484
1467
|
id?: string | undefined;
|
|
1485
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
1486
1468
|
}, {
|
|
1487
1469
|
tradeId: string;
|
|
1488
1470
|
id?: string | undefined;
|
|
1489
1471
|
mainTrade?: boolean | undefined;
|
|
1490
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
1491
1472
|
}>, "many">>;
|
|
1492
1473
|
qualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1493
1474
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1544,7 +1525,7 @@ export declare const workersContractRouter: {
|
|
|
1544
1525
|
areaCovered?: string | null | undefined;
|
|
1545
1526
|
}>>>;
|
|
1546
1527
|
shareCode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1547
|
-
code: z.ZodString
|
|
1528
|
+
code: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1548
1529
|
expiryDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
1549
1530
|
}, "strip", z.ZodTypeAny, {
|
|
1550
1531
|
code: string;
|
|
@@ -1574,20 +1555,20 @@ export declare const workersContractRouter: {
|
|
|
1574
1555
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1575
1556
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1576
1557
|
}, "strip", z.ZodTypeAny, {
|
|
1558
|
+
createdAt: string;
|
|
1559
|
+
updatedAt: string;
|
|
1577
1560
|
id: string;
|
|
1578
1561
|
firstName: string;
|
|
1579
1562
|
lastName: string;
|
|
1580
1563
|
phoneNumbers: {
|
|
1581
1564
|
phoneNumber: string;
|
|
1582
1565
|
isPrimary: boolean;
|
|
1583
|
-
id?: string | undefined;
|
|
1584
1566
|
description?: string | undefined;
|
|
1567
|
+
id?: string | undefined;
|
|
1585
1568
|
}[];
|
|
1586
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1587
1569
|
hasTools: boolean;
|
|
1588
1570
|
hasPpe: boolean;
|
|
1589
|
-
|
|
1590
|
-
updatedAt: string;
|
|
1571
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1591
1572
|
email?: string | null | undefined;
|
|
1592
1573
|
nino?: string | null | undefined;
|
|
1593
1574
|
dateOfBirth?: string | null | undefined;
|
|
@@ -1596,7 +1577,6 @@ export declare const workersContractRouter: {
|
|
|
1596
1577
|
tradeId: string;
|
|
1597
1578
|
mainTrade: boolean;
|
|
1598
1579
|
id?: string | undefined;
|
|
1599
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
1600
1580
|
}[] | undefined;
|
|
1601
1581
|
qualifications?: {
|
|
1602
1582
|
qualificationId: string;
|
|
@@ -1631,20 +1611,20 @@ export declare const workersContractRouter: {
|
|
|
1631
1611
|
} | null | undefined;
|
|
1632
1612
|
distanceKm?: number | null | undefined;
|
|
1633
1613
|
}, {
|
|
1614
|
+
createdAt: string | Date;
|
|
1615
|
+
updatedAt: string | Date;
|
|
1634
1616
|
id: string;
|
|
1635
1617
|
firstName: string;
|
|
1636
1618
|
lastName: string;
|
|
1637
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1638
1619
|
hasTools: boolean;
|
|
1639
1620
|
hasPpe: boolean;
|
|
1640
|
-
|
|
1641
|
-
updatedAt: string | Date;
|
|
1621
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
1642
1622
|
email?: string | null | undefined;
|
|
1643
1623
|
phoneNumbers?: {
|
|
1644
1624
|
phoneNumber: string;
|
|
1645
|
-
id?: string | undefined;
|
|
1646
1625
|
description?: string | undefined;
|
|
1647
1626
|
isPrimary?: boolean | undefined;
|
|
1627
|
+
id?: string | undefined;
|
|
1648
1628
|
}[] | undefined;
|
|
1649
1629
|
nino?: string | null | undefined;
|
|
1650
1630
|
dateOfBirth?: string | Date | null | undefined;
|
|
@@ -1653,7 +1633,6 @@ export declare const workersContractRouter: {
|
|
|
1653
1633
|
tradeId: string;
|
|
1654
1634
|
id?: string | undefined;
|
|
1655
1635
|
mainTrade?: boolean | undefined;
|
|
1656
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
1657
1636
|
}[] | undefined;
|
|
1658
1637
|
qualifications?: {
|
|
1659
1638
|
qualificationId: string;
|
|
@@ -1726,56 +1705,78 @@ export declare const workersContractRouter: {
|
|
|
1726
1705
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1727
1706
|
page: z.ZodDefault<z.ZodNumber>;
|
|
1728
1707
|
} & {
|
|
1729
|
-
|
|
1708
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1709
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1710
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1730
1711
|
availability: z.ZodNullable<z.ZodOptional<z.ZodEnum<["AVAILABLE", "PARTIALLY_AVAILABLE", "UNAVAILABLE"]>>>;
|
|
1712
|
+
englishLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["NONE", "BASIC", "INTERMEDIATE", "ADVANCED", "NATIVE"]>>>;
|
|
1713
|
+
nationality: z.ZodNullable<z.ZodOptional<z.ZodEnum<["AFGHAN", "ALBANIAN", "ALGERIAN", "AMERICAN", "ANDORRAN", "ANGOLAN", "ANTIGUANS", "ARGENTINEAN", "ARMENIAN", "AUSTRALIAN", "AUSTRIAN", "AZERBAIJANI", "BAHAMIAN", "BAHRAINI", "BANGLADESHI", "BARBADIAN", "BARBUDANS", "BELARUSIAN", "BELGIAN", "BELIZEAN", "BENINESE", "BHUTANESE", "BOLIVIAN", "BOSNIAN", "BRAZILIAN", "BRITISH", "BRUNEIAN", "BULGARIAN", "BURKINABE", "BURMESE", "BURUNDIAN", "CAMBODIAN", "CAMEROONIAN", "CANADIAN", "CAPE_VERDEAN", "CENTRAL_AFRICAN", "CHADIAN", "CHILEAN", "CHINESE", "COLOMBIAN", "COMORAN", "CONGOLESE", "COSTA_RICAN", "CROATIAN", "CUBAN", "CYPRIOT", "CZECH", "DANISH", "DJIBOUTI", "DOMINICAN", "DUTCH", "EAST_TIMORESE", "ECUADOREAN", "EGYPTIAN", "EMIRIAN", "EQUATORIAL_GUINEAN", "ERITREAN", "ESTONIAN", "ETHIOPIAN", "FIJIAN", "FILIPINO", "FINNISH", "FRENCH", "GABONESE", "GAMBIAN", "GEORGIAN", "GERMAN", "GHANAIAN", "GREEK", "GRENADIAN", "GUATEMALAN", "GUINEA_BISSAUAN", "GUINEAN", "GUYANESE", "HAITIAN", "HERZEGOVINIAN", "HONDURAN", "HUNGARIAN", "ICELANDER", "INDIAN", "INDONESIAN", "IRANIAN", "IRAQI", "IRISH", "ISRAELI", "ITALIAN", "IVORIAN", "JAMAICAN", "JAPANESE", "JORDANIAN", "KAZAKHSTANI", "KENYAN", "KITTIAN_AND_NEVISIAN", "KUWAITI", "KYRGYZ", "LAOTIAN", "LATVIAN", "LEBANESE", "LIBERIAN", "LIBYAN", "LIECHTENSTEINER", "LITHUANIAN", "LUXEMBOURGER", "MACEDONIAN", "MALAGASY", "MALAWIAN", "MALAYSIAN", "MALDIVAN", "MALIAN", "MALTESE", "MARSHALLESE", "MAURITANIAN", "MAURITIAN", "MEXICAN", "MICRONESIAN", "MOLDOVAN", "MONACAN", "MONGOLIAN", "MOROCCAN", "MOSOTHO", "MOTSWANA", "MOZAMBICAN", "NAMIBIAN", "NAURUAN", "NEPALESE", "NEW_ZEALANDER", "NI_VANUATU", "NICARAGUAN", "NIGERIEN", "NIGERIAN", "NORTH_KOREAN", "NORTHERN_IRISH", "NORWEGIAN", "OMANI", "PAKISTANI", "PALAUAN", "PANAMANIAN", "PAPUA_NEW_GUINEAN", "PARAGUAYAN", "PERUVIAN", "POLISH", "PORTUGUESE", "QATARI", "ROMANIAN", "RUSSIAN", "RWANDAN", "SAINT_LUCIAN", "SALVADORAN", "SAMOAN", "SAN_MARINESE", "SAO_TOMEAN", "SAUDI", "SCOTTISH", "SENEGALESE", "SERBIAN", "SEYCHELLOIS", "SIERRA_LEONEAN", "SINGAPOREAN", "SLOVAKIAN", "SLOVENIAN", "SOLOMON_ISLANDER", "SOMALI", "SOUTH_AFRICAN", "SOUTH_KOREAN", "SOUTH_SUDANESE", "SPANISH", "SRI_LANKAN", "SUDANESE", "SURINAMER", "SWAZI", "SWEDISH", "SWISS", "SYRIAN", "TAIWANESE", "TAJIK", "TANZANIAN", "THAI", "TOGOLESE", "TONGAN", "TRINIDADIAN_OR_TOBAGONIAN", "TUNISIAN", "TURKISH", "TUVALUAN", "UGANDAN", "UKRAINIAN", "URUGUAYAN", "UZBEKISTANI", "VENEZUELAN", "VIETNAMESE", "WELSH", "YEMENITE", "ZAMBIAN", "ZIMBABWEAN"]>>>;
|
|
1714
|
+
postcode: z.ZodOptional<z.ZodString>;
|
|
1715
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
1731
1716
|
tradeFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1732
1717
|
tradeId: z.ZodString;
|
|
1733
|
-
|
|
1734
|
-
mainTrade: z.ZodOptional<z.ZodBoolean>;
|
|
1718
|
+
mainTrade: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
1735
1719
|
}, "strip", z.ZodTypeAny, {
|
|
1736
1720
|
tradeId: string;
|
|
1737
1721
|
mainTrade?: boolean | undefined;
|
|
1738
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
|
|
1739
1722
|
}, {
|
|
1740
1723
|
tradeId: string;
|
|
1741
|
-
mainTrade?:
|
|
1742
|
-
|
|
1724
|
+
mainTrade?: unknown;
|
|
1725
|
+
}>, "many">>;
|
|
1726
|
+
qualificationFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1727
|
+
qualificationId: z.ZodOptional<z.ZodString>;
|
|
1728
|
+
qualificationTypeId: z.ZodOptional<z.ZodString>;
|
|
1729
|
+
}, "strip", z.ZodTypeAny, {
|
|
1730
|
+
qualificationId?: string | undefined;
|
|
1731
|
+
qualificationTypeId?: string | undefined;
|
|
1732
|
+
}, {
|
|
1733
|
+
qualificationId?: string | undefined;
|
|
1734
|
+
qualificationTypeId?: string | undefined;
|
|
1743
1735
|
}>, "many">>;
|
|
1744
1736
|
sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["nameSimilarity", "fullName", "distance", "email", "phone"]>>>;
|
|
1745
1737
|
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
1746
|
-
latitude: z.ZodOptional<z.ZodNumber>;
|
|
1747
|
-
longitude: z.ZodOptional<z.ZodNumber>;
|
|
1748
|
-
radiusKm: z.ZodOptional<z.ZodNumber>;
|
|
1749
1738
|
}, "strip", z.ZodTypeAny, {
|
|
1750
1739
|
limit: number;
|
|
1751
1740
|
page: number;
|
|
1752
|
-
|
|
1753
|
-
|
|
1741
|
+
distance?: number | undefined;
|
|
1742
|
+
email?: string | undefined;
|
|
1743
|
+
phone?: string | undefined;
|
|
1744
|
+
englishLevel?: "NONE" | "BASIC" | "INTERMEDIATE" | "ADVANCED" | "NATIVE" | null | undefined;
|
|
1745
|
+
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | null | undefined;
|
|
1746
|
+
postcode?: string | undefined;
|
|
1747
|
+
name?: string | undefined;
|
|
1748
|
+
qualificationFilters?: {
|
|
1749
|
+
qualificationId?: string | undefined;
|
|
1750
|
+
qualificationTypeId?: string | undefined;
|
|
1751
|
+
}[] | undefined;
|
|
1752
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1754
1753
|
tradeFilters?: {
|
|
1755
1754
|
tradeId: string;
|
|
1756
1755
|
mainTrade?: boolean | undefined;
|
|
1757
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
|
|
1758
1756
|
}[] | undefined;
|
|
1759
1757
|
sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
|
|
1760
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1761
|
-
latitude?: number | undefined;
|
|
1762
|
-
longitude?: number | undefined;
|
|
1763
|
-
radiusKm?: number | undefined;
|
|
1764
|
-
}, {
|
|
1765
1758
|
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
|
|
1759
|
+
}, {
|
|
1760
|
+
distance?: number | undefined;
|
|
1761
|
+
email?: string | undefined;
|
|
1762
|
+
phone?: string | undefined;
|
|
1763
|
+
englishLevel?: "NONE" | "BASIC" | "INTERMEDIATE" | "ADVANCED" | "NATIVE" | null | undefined;
|
|
1764
|
+
nationality?: "AFGHAN" | "ALBANIAN" | "ALGERIAN" | "AMERICAN" | "ANDORRAN" | "ANGOLAN" | "ANTIGUANS" | "ARGENTINEAN" | "ARMENIAN" | "AUSTRALIAN" | "AUSTRIAN" | "AZERBAIJANI" | "BAHAMIAN" | "BAHRAINI" | "BANGLADESHI" | "BARBADIAN" | "BARBUDANS" | "BELARUSIAN" | "BELGIAN" | "BELIZEAN" | "BENINESE" | "BHUTANESE" | "BOLIVIAN" | "BOSNIAN" | "BRAZILIAN" | "BRITISH" | "BRUNEIAN" | "BULGARIAN" | "BURKINABE" | "BURMESE" | "BURUNDIAN" | "CAMBODIAN" | "CAMEROONIAN" | "CANADIAN" | "CAPE_VERDEAN" | "CENTRAL_AFRICAN" | "CHADIAN" | "CHILEAN" | "CHINESE" | "COLOMBIAN" | "COMORAN" | "CONGOLESE" | "COSTA_RICAN" | "CROATIAN" | "CUBAN" | "CYPRIOT" | "CZECH" | "DANISH" | "DJIBOUTI" | "DOMINICAN" | "DUTCH" | "EAST_TIMORESE" | "ECUADOREAN" | "EGYPTIAN" | "EMIRIAN" | "EQUATORIAL_GUINEAN" | "ERITREAN" | "ESTONIAN" | "ETHIOPIAN" | "FIJIAN" | "FILIPINO" | "FINNISH" | "FRENCH" | "GABONESE" | "GAMBIAN" | "GEORGIAN" | "GERMAN" | "GHANAIAN" | "GREEK" | "GRENADIAN" | "GUATEMALAN" | "GUINEA_BISSAUAN" | "GUINEAN" | "GUYANESE" | "HAITIAN" | "HERZEGOVINIAN" | "HONDURAN" | "HUNGARIAN" | "ICELANDER" | "INDIAN" | "INDONESIAN" | "IRANIAN" | "IRAQI" | "IRISH" | "ISRAELI" | "ITALIAN" | "IVORIAN" | "JAMAICAN" | "JAPANESE" | "JORDANIAN" | "KAZAKHSTANI" | "KENYAN" | "KITTIAN_AND_NEVISIAN" | "KUWAITI" | "KYRGYZ" | "LAOTIAN" | "LATVIAN" | "LEBANESE" | "LIBERIAN" | "LIBYAN" | "LIECHTENSTEINER" | "LITHUANIAN" | "LUXEMBOURGER" | "MACEDONIAN" | "MALAGASY" | "MALAWIAN" | "MALAYSIAN" | "MALDIVAN" | "MALIAN" | "MALTESE" | "MARSHALLESE" | "MAURITANIAN" | "MAURITIAN" | "MEXICAN" | "MICRONESIAN" | "MOLDOVAN" | "MONACAN" | "MONGOLIAN" | "MOROCCAN" | "MOSOTHO" | "MOTSWANA" | "MOZAMBICAN" | "NAMIBIAN" | "NAURUAN" | "NEPALESE" | "NEW_ZEALANDER" | "NI_VANUATU" | "NICARAGUAN" | "NIGERIEN" | "NIGERIAN" | "NORTH_KOREAN" | "NORTHERN_IRISH" | "NORWEGIAN" | "OMANI" | "PAKISTANI" | "PALAUAN" | "PANAMANIAN" | "PAPUA_NEW_GUINEAN" | "PARAGUAYAN" | "PERUVIAN" | "POLISH" | "PORTUGUESE" | "QATARI" | "ROMANIAN" | "RUSSIAN" | "RWANDAN" | "SAINT_LUCIAN" | "SALVADORAN" | "SAMOAN" | "SAN_MARINESE" | "SAO_TOMEAN" | "SAUDI" | "SCOTTISH" | "SENEGALESE" | "SERBIAN" | "SEYCHELLOIS" | "SIERRA_LEONEAN" | "SINGAPOREAN" | "SLOVAKIAN" | "SLOVENIAN" | "SOLOMON_ISLANDER" | "SOMALI" | "SOUTH_AFRICAN" | "SOUTH_KOREAN" | "SOUTH_SUDANESE" | "SPANISH" | "SRI_LANKAN" | "SUDANESE" | "SURINAMER" | "SWAZI" | "SWEDISH" | "SWISS" | "SYRIAN" | "TAIWANESE" | "TAJIK" | "TANZANIAN" | "THAI" | "TOGOLESE" | "TONGAN" | "TRINIDADIAN_OR_TOBAGONIAN" | "TUNISIAN" | "TURKISH" | "TUVALUAN" | "UGANDAN" | "UKRAINIAN" | "URUGUAYAN" | "UZBEKISTANI" | "VENEZUELAN" | "VIETNAMESE" | "WELSH" | "YEMENITE" | "ZAMBIAN" | "ZIMBABWEAN" | null | undefined;
|
|
1765
|
+
postcode?: string | undefined;
|
|
1766
1766
|
limit?: number | undefined;
|
|
1767
1767
|
page?: number | undefined;
|
|
1768
|
-
|
|
1768
|
+
name?: string | undefined;
|
|
1769
|
+
qualificationFilters?: {
|
|
1770
|
+
qualificationId?: string | undefined;
|
|
1771
|
+
qualificationTypeId?: string | undefined;
|
|
1772
|
+
}[] | undefined;
|
|
1773
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1769
1774
|
tradeFilters?: {
|
|
1770
1775
|
tradeId: string;
|
|
1771
|
-
mainTrade?:
|
|
1772
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
|
|
1776
|
+
mainTrade?: unknown;
|
|
1773
1777
|
}[] | undefined;
|
|
1774
1778
|
sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
|
|
1775
|
-
|
|
1776
|
-
latitude?: number | undefined;
|
|
1777
|
-
longitude?: number | undefined;
|
|
1778
|
-
radiusKm?: number | undefined;
|
|
1779
|
+
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
|
|
1779
1780
|
}>;
|
|
1780
1781
|
summary: "Get all workers";
|
|
1781
1782
|
method: "GET";
|
|
@@ -1895,13 +1896,13 @@ export declare const workersContractRouter: {
|
|
|
1895
1896
|
}, "strip", z.ZodTypeAny, {
|
|
1896
1897
|
phoneNumber: string;
|
|
1897
1898
|
isPrimary: boolean;
|
|
1898
|
-
id?: string | undefined;
|
|
1899
1899
|
description?: string | undefined;
|
|
1900
|
+
id?: string | undefined;
|
|
1900
1901
|
}, {
|
|
1901
1902
|
phoneNumber: string;
|
|
1902
|
-
id?: string | undefined;
|
|
1903
1903
|
description?: string | undefined;
|
|
1904
1904
|
isPrimary?: boolean | undefined;
|
|
1905
|
+
id?: string | undefined;
|
|
1905
1906
|
}>, "many">>>;
|
|
1906
1907
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1907
1908
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
@@ -1911,17 +1912,14 @@ export declare const workersContractRouter: {
|
|
|
1911
1912
|
id: z.ZodOptional<z.ZodString>;
|
|
1912
1913
|
tradeId: z.ZodString;
|
|
1913
1914
|
mainTrade: z.ZodDefault<z.ZodBoolean>;
|
|
1914
|
-
skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
|
|
1915
1915
|
}, "strip", z.ZodTypeAny, {
|
|
1916
1916
|
tradeId: string;
|
|
1917
1917
|
mainTrade: boolean;
|
|
1918
1918
|
id?: string | undefined;
|
|
1919
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
1920
1919
|
}, {
|
|
1921
1920
|
tradeId: string;
|
|
1922
1921
|
id?: string | undefined;
|
|
1923
1922
|
mainTrade?: boolean | undefined;
|
|
1924
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
1925
1923
|
}>, "many">>;
|
|
1926
1924
|
qualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1927
1925
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1978,7 +1976,7 @@ export declare const workersContractRouter: {
|
|
|
1978
1976
|
areaCovered?: string | null | undefined;
|
|
1979
1977
|
}>>>;
|
|
1980
1978
|
shareCode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1981
|
-
code: z.ZodString
|
|
1979
|
+
code: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1982
1980
|
expiryDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
1983
1981
|
}, "strip", z.ZodTypeAny, {
|
|
1984
1982
|
code: string;
|
|
@@ -2008,20 +2006,20 @@ export declare const workersContractRouter: {
|
|
|
2008
2006
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2009
2007
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2010
2008
|
}, "strip", z.ZodTypeAny, {
|
|
2009
|
+
createdAt: string;
|
|
2010
|
+
updatedAt: string;
|
|
2011
2011
|
id: string;
|
|
2012
2012
|
firstName: string;
|
|
2013
2013
|
lastName: string;
|
|
2014
2014
|
phoneNumbers: {
|
|
2015
2015
|
phoneNumber: string;
|
|
2016
2016
|
isPrimary: boolean;
|
|
2017
|
-
id?: string | undefined;
|
|
2018
2017
|
description?: string | undefined;
|
|
2018
|
+
id?: string | undefined;
|
|
2019
2019
|
}[];
|
|
2020
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2021
2020
|
hasTools: boolean;
|
|
2022
2021
|
hasPpe: boolean;
|
|
2023
|
-
|
|
2024
|
-
updatedAt: string;
|
|
2022
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2025
2023
|
email?: string | null | undefined;
|
|
2026
2024
|
nino?: string | null | undefined;
|
|
2027
2025
|
dateOfBirth?: string | null | undefined;
|
|
@@ -2030,7 +2028,6 @@ export declare const workersContractRouter: {
|
|
|
2030
2028
|
tradeId: string;
|
|
2031
2029
|
mainTrade: boolean;
|
|
2032
2030
|
id?: string | undefined;
|
|
2033
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2034
2031
|
}[] | undefined;
|
|
2035
2032
|
qualifications?: {
|
|
2036
2033
|
qualificationId: string;
|
|
@@ -2065,20 +2062,20 @@ export declare const workersContractRouter: {
|
|
|
2065
2062
|
} | null | undefined;
|
|
2066
2063
|
distanceKm?: number | null | undefined;
|
|
2067
2064
|
}, {
|
|
2065
|
+
createdAt: string | Date;
|
|
2066
|
+
updatedAt: string | Date;
|
|
2068
2067
|
id: string;
|
|
2069
2068
|
firstName: string;
|
|
2070
2069
|
lastName: string;
|
|
2071
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2072
2070
|
hasTools: boolean;
|
|
2073
2071
|
hasPpe: boolean;
|
|
2074
|
-
|
|
2075
|
-
updatedAt: string | Date;
|
|
2072
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2076
2073
|
email?: string | null | undefined;
|
|
2077
2074
|
phoneNumbers?: {
|
|
2078
2075
|
phoneNumber: string;
|
|
2079
|
-
id?: string | undefined;
|
|
2080
2076
|
description?: string | undefined;
|
|
2081
2077
|
isPrimary?: boolean | undefined;
|
|
2078
|
+
id?: string | undefined;
|
|
2082
2079
|
}[] | undefined;
|
|
2083
2080
|
nino?: string | null | undefined;
|
|
2084
2081
|
dateOfBirth?: string | Date | null | undefined;
|
|
@@ -2087,7 +2084,6 @@ export declare const workersContractRouter: {
|
|
|
2087
2084
|
tradeId: string;
|
|
2088
2085
|
id?: string | undefined;
|
|
2089
2086
|
mainTrade?: boolean | undefined;
|
|
2090
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2091
2087
|
}[] | undefined;
|
|
2092
2088
|
qualifications?: {
|
|
2093
2089
|
qualificationId: string;
|
|
@@ -2128,22 +2124,21 @@ export declare const workersContractRouter: {
|
|
|
2128
2124
|
currentPage: z.ZodNumber;
|
|
2129
2125
|
totalPages: z.ZodNumber;
|
|
2130
2126
|
}, "strip", z.ZodTypeAny, {
|
|
2131
|
-
limit: number;
|
|
2132
2127
|
items: {
|
|
2128
|
+
createdAt: string;
|
|
2129
|
+
updatedAt: string;
|
|
2133
2130
|
id: string;
|
|
2134
2131
|
firstName: string;
|
|
2135
2132
|
lastName: string;
|
|
2136
2133
|
phoneNumbers: {
|
|
2137
2134
|
phoneNumber: string;
|
|
2138
2135
|
isPrimary: boolean;
|
|
2139
|
-
id?: string | undefined;
|
|
2140
2136
|
description?: string | undefined;
|
|
2137
|
+
id?: string | undefined;
|
|
2141
2138
|
}[];
|
|
2142
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2143
2139
|
hasTools: boolean;
|
|
2144
2140
|
hasPpe: boolean;
|
|
2145
|
-
|
|
2146
|
-
updatedAt: string;
|
|
2141
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2147
2142
|
email?: string | null | undefined;
|
|
2148
2143
|
nino?: string | null | undefined;
|
|
2149
2144
|
dateOfBirth?: string | null | undefined;
|
|
@@ -2152,7 +2147,6 @@ export declare const workersContractRouter: {
|
|
|
2152
2147
|
tradeId: string;
|
|
2153
2148
|
mainTrade: boolean;
|
|
2154
2149
|
id?: string | undefined;
|
|
2155
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2156
2150
|
}[] | undefined;
|
|
2157
2151
|
qualifications?: {
|
|
2158
2152
|
qualificationId: string;
|
|
@@ -2188,26 +2182,26 @@ export declare const workersContractRouter: {
|
|
|
2188
2182
|
distanceKm?: number | null | undefined;
|
|
2189
2183
|
}[];
|
|
2190
2184
|
totalCount: number;
|
|
2185
|
+
limit: number;
|
|
2191
2186
|
skip: number;
|
|
2192
2187
|
currentPage: number;
|
|
2193
2188
|
totalPages: number;
|
|
2194
2189
|
}, {
|
|
2195
|
-
limit: number;
|
|
2196
2190
|
items: {
|
|
2191
|
+
createdAt: string | Date;
|
|
2192
|
+
updatedAt: string | Date;
|
|
2197
2193
|
id: string;
|
|
2198
2194
|
firstName: string;
|
|
2199
2195
|
lastName: string;
|
|
2200
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2201
2196
|
hasTools: boolean;
|
|
2202
2197
|
hasPpe: boolean;
|
|
2203
|
-
|
|
2204
|
-
updatedAt: string | Date;
|
|
2198
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2205
2199
|
email?: string | null | undefined;
|
|
2206
2200
|
phoneNumbers?: {
|
|
2207
2201
|
phoneNumber: string;
|
|
2208
|
-
id?: string | undefined;
|
|
2209
2202
|
description?: string | undefined;
|
|
2210
2203
|
isPrimary?: boolean | undefined;
|
|
2204
|
+
id?: string | undefined;
|
|
2211
2205
|
}[] | undefined;
|
|
2212
2206
|
nino?: string | null | undefined;
|
|
2213
2207
|
dateOfBirth?: string | Date | null | undefined;
|
|
@@ -2216,7 +2210,6 @@ export declare const workersContractRouter: {
|
|
|
2216
2210
|
tradeId: string;
|
|
2217
2211
|
id?: string | undefined;
|
|
2218
2212
|
mainTrade?: boolean | undefined;
|
|
2219
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2220
2213
|
}[] | undefined;
|
|
2221
2214
|
qualifications?: {
|
|
2222
2215
|
qualificationId: string;
|
|
@@ -2252,6 +2245,7 @@ export declare const workersContractRouter: {
|
|
|
2252
2245
|
distanceKm?: number | null | undefined;
|
|
2253
2246
|
}[];
|
|
2254
2247
|
totalCount: number;
|
|
2248
|
+
limit: number;
|
|
2255
2249
|
skip: number;
|
|
2256
2250
|
currentPage: number;
|
|
2257
2251
|
totalPages: number;
|
|
@@ -2389,13 +2383,13 @@ export declare const workersContractRouter: {
|
|
|
2389
2383
|
}, "strip", z.ZodTypeAny, {
|
|
2390
2384
|
phoneNumber: string;
|
|
2391
2385
|
isPrimary: boolean;
|
|
2392
|
-
id?: string | undefined;
|
|
2393
2386
|
description?: string | undefined;
|
|
2387
|
+
id?: string | undefined;
|
|
2394
2388
|
}, {
|
|
2395
2389
|
phoneNumber: string;
|
|
2396
|
-
id?: string | undefined;
|
|
2397
2390
|
description?: string | undefined;
|
|
2398
2391
|
isPrimary?: boolean | undefined;
|
|
2392
|
+
id?: string | undefined;
|
|
2399
2393
|
}>, "many">>>;
|
|
2400
2394
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2401
2395
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
@@ -2405,17 +2399,14 @@ export declare const workersContractRouter: {
|
|
|
2405
2399
|
id: z.ZodOptional<z.ZodString>;
|
|
2406
2400
|
tradeId: z.ZodString;
|
|
2407
2401
|
mainTrade: z.ZodDefault<z.ZodBoolean>;
|
|
2408
|
-
skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
|
|
2409
2402
|
}, "strip", z.ZodTypeAny, {
|
|
2410
2403
|
tradeId: string;
|
|
2411
2404
|
mainTrade: boolean;
|
|
2412
2405
|
id?: string | undefined;
|
|
2413
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2414
2406
|
}, {
|
|
2415
2407
|
tradeId: string;
|
|
2416
2408
|
id?: string | undefined;
|
|
2417
2409
|
mainTrade?: boolean | undefined;
|
|
2418
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2419
2410
|
}>, "many">>;
|
|
2420
2411
|
qualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2421
2412
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -2472,7 +2463,7 @@ export declare const workersContractRouter: {
|
|
|
2472
2463
|
areaCovered?: string | null | undefined;
|
|
2473
2464
|
}>>>;
|
|
2474
2465
|
shareCode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2475
|
-
code: z.ZodString
|
|
2466
|
+
code: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2476
2467
|
expiryDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
2477
2468
|
}, "strip", z.ZodTypeAny, {
|
|
2478
2469
|
code: string;
|
|
@@ -2502,20 +2493,20 @@ export declare const workersContractRouter: {
|
|
|
2502
2493
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2503
2494
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2504
2495
|
}, "strip", z.ZodTypeAny, {
|
|
2496
|
+
createdAt: string;
|
|
2497
|
+
updatedAt: string;
|
|
2505
2498
|
id: string;
|
|
2506
2499
|
firstName: string;
|
|
2507
2500
|
lastName: string;
|
|
2508
2501
|
phoneNumbers: {
|
|
2509
2502
|
phoneNumber: string;
|
|
2510
2503
|
isPrimary: boolean;
|
|
2511
|
-
id?: string | undefined;
|
|
2512
2504
|
description?: string | undefined;
|
|
2505
|
+
id?: string | undefined;
|
|
2513
2506
|
}[];
|
|
2514
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2515
2507
|
hasTools: boolean;
|
|
2516
2508
|
hasPpe: boolean;
|
|
2517
|
-
|
|
2518
|
-
updatedAt: string;
|
|
2509
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2519
2510
|
email?: string | null | undefined;
|
|
2520
2511
|
nino?: string | null | undefined;
|
|
2521
2512
|
dateOfBirth?: string | null | undefined;
|
|
@@ -2524,7 +2515,6 @@ export declare const workersContractRouter: {
|
|
|
2524
2515
|
tradeId: string;
|
|
2525
2516
|
mainTrade: boolean;
|
|
2526
2517
|
id?: string | undefined;
|
|
2527
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2528
2518
|
}[] | undefined;
|
|
2529
2519
|
qualifications?: {
|
|
2530
2520
|
qualificationId: string;
|
|
@@ -2559,20 +2549,20 @@ export declare const workersContractRouter: {
|
|
|
2559
2549
|
} | null | undefined;
|
|
2560
2550
|
distanceKm?: number | null | undefined;
|
|
2561
2551
|
}, {
|
|
2552
|
+
createdAt: string | Date;
|
|
2553
|
+
updatedAt: string | Date;
|
|
2562
2554
|
id: string;
|
|
2563
2555
|
firstName: string;
|
|
2564
2556
|
lastName: string;
|
|
2565
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2566
2557
|
hasTools: boolean;
|
|
2567
2558
|
hasPpe: boolean;
|
|
2568
|
-
|
|
2569
|
-
updatedAt: string | Date;
|
|
2559
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
2570
2560
|
email?: string | null | undefined;
|
|
2571
2561
|
phoneNumbers?: {
|
|
2572
2562
|
phoneNumber: string;
|
|
2573
|
-
id?: string | undefined;
|
|
2574
2563
|
description?: string | undefined;
|
|
2575
2564
|
isPrimary?: boolean | undefined;
|
|
2565
|
+
id?: string | undefined;
|
|
2576
2566
|
}[] | undefined;
|
|
2577
2567
|
nino?: string | null | undefined;
|
|
2578
2568
|
dateOfBirth?: string | Date | null | undefined;
|
|
@@ -2581,7 +2571,6 @@ export declare const workersContractRouter: {
|
|
|
2581
2571
|
tradeId: string;
|
|
2582
2572
|
id?: string | undefined;
|
|
2583
2573
|
mainTrade?: boolean | undefined;
|
|
2584
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2585
2574
|
}[] | undefined;
|
|
2586
2575
|
qualifications?: {
|
|
2587
2576
|
qualificationId: string;
|
|
@@ -2669,15 +2658,15 @@ export declare const workersContractRouter: {
|
|
|
2669
2658
|
description: z.ZodOptional<z.ZodString>;
|
|
2670
2659
|
isPrimary: z.ZodOptional<z.ZodBoolean>;
|
|
2671
2660
|
}, "strip", z.ZodTypeAny, {
|
|
2672
|
-
id?: string | undefined;
|
|
2673
2661
|
phoneNumber?: string | undefined;
|
|
2674
2662
|
description?: string | undefined;
|
|
2675
2663
|
isPrimary?: boolean | undefined;
|
|
2676
|
-
}, {
|
|
2677
2664
|
id?: string | undefined;
|
|
2665
|
+
}, {
|
|
2678
2666
|
phoneNumber?: string | undefined;
|
|
2679
2667
|
description?: string | undefined;
|
|
2680
2668
|
isPrimary?: boolean | undefined;
|
|
2669
|
+
id?: string | undefined;
|
|
2681
2670
|
}>, "many">>;
|
|
2682
2671
|
nino: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2683
2672
|
dateOfBirth: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>>;
|
|
@@ -2687,17 +2676,14 @@ export declare const workersContractRouter: {
|
|
|
2687
2676
|
id: z.ZodOptional<z.ZodString>;
|
|
2688
2677
|
tradeId: z.ZodString;
|
|
2689
2678
|
mainTrade: z.ZodDefault<z.ZodBoolean>;
|
|
2690
|
-
skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
|
|
2691
2679
|
}, "strip", z.ZodTypeAny, {
|
|
2692
2680
|
tradeId: string;
|
|
2693
2681
|
mainTrade: boolean;
|
|
2694
2682
|
id?: string | undefined;
|
|
2695
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2696
2683
|
}, {
|
|
2697
2684
|
tradeId: string;
|
|
2698
2685
|
id?: string | undefined;
|
|
2699
2686
|
mainTrade?: boolean | undefined;
|
|
2700
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2701
2687
|
}>, "many">>;
|
|
2702
2688
|
qualifications: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2703
2689
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -2729,17 +2715,17 @@ export declare const workersContractRouter: {
|
|
|
2729
2715
|
hasTools: z.ZodOptional<z.ZodBoolean>;
|
|
2730
2716
|
hasPpe: z.ZodOptional<z.ZodBoolean>;
|
|
2731
2717
|
location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2732
|
-
address: z.ZodOptional<z.ZodString
|
|
2733
|
-
postcode: z.ZodOptional<z.ZodString
|
|
2718
|
+
address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2719
|
+
postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2734
2720
|
}, "strip", z.ZodTypeAny, {
|
|
2735
|
-
address?: string | undefined;
|
|
2736
|
-
postcode?: string | undefined;
|
|
2721
|
+
address?: string | null | undefined;
|
|
2722
|
+
postcode?: string | null | undefined;
|
|
2737
2723
|
}, {
|
|
2738
|
-
address?: string | undefined;
|
|
2739
|
-
postcode?: string | undefined;
|
|
2724
|
+
address?: string | null | undefined;
|
|
2725
|
+
postcode?: string | null | undefined;
|
|
2740
2726
|
}>>>;
|
|
2741
2727
|
shareCode: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2742
|
-
code: z.ZodString
|
|
2728
|
+
code: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2743
2729
|
expiryDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
2744
2730
|
}, "strip", z.ZodTypeAny, {
|
|
2745
2731
|
code: string;
|
|
@@ -2753,20 +2739,18 @@ export declare const workersContractRouter: {
|
|
|
2753
2739
|
firstName?: string | undefined;
|
|
2754
2740
|
lastName?: string | undefined;
|
|
2755
2741
|
phoneNumbers?: {
|
|
2756
|
-
id?: string | undefined;
|
|
2757
2742
|
phoneNumber?: string | undefined;
|
|
2758
2743
|
description?: string | undefined;
|
|
2759
2744
|
isPrimary?: boolean | undefined;
|
|
2745
|
+
id?: string | undefined;
|
|
2760
2746
|
}[] | undefined;
|
|
2761
2747
|
nino?: string | null | undefined;
|
|
2762
2748
|
dateOfBirth?: string | Date | null | undefined;
|
|
2763
2749
|
bio?: string | null | undefined;
|
|
2764
|
-
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
|
|
2765
2750
|
trades?: {
|
|
2766
2751
|
tradeId: string;
|
|
2767
2752
|
mainTrade: boolean;
|
|
2768
2753
|
id?: string | undefined;
|
|
2769
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2770
2754
|
}[] | undefined;
|
|
2771
2755
|
qualifications?: {
|
|
2772
2756
|
qualificationId: string;
|
|
@@ -2782,9 +2766,10 @@ export declare const workersContractRouter: {
|
|
|
2782
2766
|
hasTools?: boolean | undefined;
|
|
2783
2767
|
hasPpe?: boolean | undefined;
|
|
2784
2768
|
location?: {
|
|
2785
|
-
address?: string | undefined;
|
|
2786
|
-
postcode?: string | undefined;
|
|
2769
|
+
address?: string | null | undefined;
|
|
2770
|
+
postcode?: string | null | undefined;
|
|
2787
2771
|
} | null | undefined;
|
|
2772
|
+
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
|
|
2788
2773
|
shareCode?: {
|
|
2789
2774
|
code: string;
|
|
2790
2775
|
expiryDate?: string | null | undefined;
|
|
@@ -2794,20 +2779,18 @@ export declare const workersContractRouter: {
|
|
|
2794
2779
|
firstName?: string | undefined;
|
|
2795
2780
|
lastName?: string | undefined;
|
|
2796
2781
|
phoneNumbers?: {
|
|
2797
|
-
id?: string | undefined;
|
|
2798
2782
|
phoneNumber?: string | undefined;
|
|
2799
2783
|
description?: string | undefined;
|
|
2800
2784
|
isPrimary?: boolean | undefined;
|
|
2785
|
+
id?: string | undefined;
|
|
2801
2786
|
}[] | undefined;
|
|
2802
2787
|
nino?: string | null | undefined;
|
|
2803
2788
|
dateOfBirth?: string | Date | null | undefined;
|
|
2804
2789
|
bio?: string | null | undefined;
|
|
2805
|
-
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
|
|
2806
2790
|
trades?: {
|
|
2807
2791
|
tradeId: string;
|
|
2808
2792
|
id?: string | undefined;
|
|
2809
2793
|
mainTrade?: boolean | undefined;
|
|
2810
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2811
2794
|
}[] | undefined;
|
|
2812
2795
|
qualifications?: {
|
|
2813
2796
|
qualificationId: string;
|
|
@@ -2823,9 +2806,10 @@ export declare const workersContractRouter: {
|
|
|
2823
2806
|
hasTools?: boolean | undefined;
|
|
2824
2807
|
hasPpe?: boolean | undefined;
|
|
2825
2808
|
location?: {
|
|
2826
|
-
address?: string | undefined;
|
|
2827
|
-
postcode?: string | undefined;
|
|
2809
|
+
address?: string | null | undefined;
|
|
2810
|
+
postcode?: string | null | undefined;
|
|
2828
2811
|
} | null | undefined;
|
|
2812
|
+
availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
|
|
2829
2813
|
shareCode?: {
|
|
2830
2814
|
code: string;
|
|
2831
2815
|
expiryDate?: string | Date | null | undefined;
|
|
@@ -2946,13 +2930,13 @@ export declare const workersContractRouter: {
|
|
|
2946
2930
|
}, "strip", z.ZodTypeAny, {
|
|
2947
2931
|
phoneNumber: string;
|
|
2948
2932
|
isPrimary: boolean;
|
|
2949
|
-
id?: string | undefined;
|
|
2950
2933
|
description?: string | undefined;
|
|
2934
|
+
id?: string | undefined;
|
|
2951
2935
|
}, {
|
|
2952
2936
|
phoneNumber: string;
|
|
2953
|
-
id?: string | undefined;
|
|
2954
2937
|
description?: string | undefined;
|
|
2955
2938
|
isPrimary?: boolean | undefined;
|
|
2939
|
+
id?: string | undefined;
|
|
2956
2940
|
}>, "many">>>;
|
|
2957
2941
|
nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2958
2942
|
dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
@@ -2962,17 +2946,14 @@ export declare const workersContractRouter: {
|
|
|
2962
2946
|
id: z.ZodOptional<z.ZodString>;
|
|
2963
2947
|
tradeId: z.ZodString;
|
|
2964
2948
|
mainTrade: z.ZodDefault<z.ZodBoolean>;
|
|
2965
|
-
skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
|
|
2966
2949
|
}, "strip", z.ZodTypeAny, {
|
|
2967
2950
|
tradeId: string;
|
|
2968
2951
|
mainTrade: boolean;
|
|
2969
2952
|
id?: string | undefined;
|
|
2970
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2971
2953
|
}, {
|
|
2972
2954
|
tradeId: string;
|
|
2973
2955
|
id?: string | undefined;
|
|
2974
2956
|
mainTrade?: boolean | undefined;
|
|
2975
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
2976
2957
|
}>, "many">>;
|
|
2977
2958
|
qualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2978
2959
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -3029,7 +3010,7 @@ export declare const workersContractRouter: {
|
|
|
3029
3010
|
areaCovered?: string | null | undefined;
|
|
3030
3011
|
}>>>;
|
|
3031
3012
|
shareCode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3032
|
-
code: z.ZodString
|
|
3013
|
+
code: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3033
3014
|
expiryDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
3034
3015
|
}, "strip", z.ZodTypeAny, {
|
|
3035
3016
|
code: string;
|
|
@@ -3059,20 +3040,20 @@ export declare const workersContractRouter: {
|
|
|
3059
3040
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3060
3041
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3061
3042
|
}, "strip", z.ZodTypeAny, {
|
|
3043
|
+
createdAt: string;
|
|
3044
|
+
updatedAt: string;
|
|
3062
3045
|
id: string;
|
|
3063
3046
|
firstName: string;
|
|
3064
3047
|
lastName: string;
|
|
3065
3048
|
phoneNumbers: {
|
|
3066
3049
|
phoneNumber: string;
|
|
3067
3050
|
isPrimary: boolean;
|
|
3068
|
-
id?: string | undefined;
|
|
3069
3051
|
description?: string | undefined;
|
|
3052
|
+
id?: string | undefined;
|
|
3070
3053
|
}[];
|
|
3071
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
3072
3054
|
hasTools: boolean;
|
|
3073
3055
|
hasPpe: boolean;
|
|
3074
|
-
|
|
3075
|
-
updatedAt: string;
|
|
3056
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
3076
3057
|
email?: string | null | undefined;
|
|
3077
3058
|
nino?: string | null | undefined;
|
|
3078
3059
|
dateOfBirth?: string | null | undefined;
|
|
@@ -3081,7 +3062,6 @@ export declare const workersContractRouter: {
|
|
|
3081
3062
|
tradeId: string;
|
|
3082
3063
|
mainTrade: boolean;
|
|
3083
3064
|
id?: string | undefined;
|
|
3084
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
3085
3065
|
}[] | undefined;
|
|
3086
3066
|
qualifications?: {
|
|
3087
3067
|
qualificationId: string;
|
|
@@ -3116,20 +3096,20 @@ export declare const workersContractRouter: {
|
|
|
3116
3096
|
} | null | undefined;
|
|
3117
3097
|
distanceKm?: number | null | undefined;
|
|
3118
3098
|
}, {
|
|
3099
|
+
createdAt: string | Date;
|
|
3100
|
+
updatedAt: string | Date;
|
|
3119
3101
|
id: string;
|
|
3120
3102
|
firstName: string;
|
|
3121
3103
|
lastName: string;
|
|
3122
|
-
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
3123
3104
|
hasTools: boolean;
|
|
3124
3105
|
hasPpe: boolean;
|
|
3125
|
-
|
|
3126
|
-
updatedAt: string | Date;
|
|
3106
|
+
availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
|
|
3127
3107
|
email?: string | null | undefined;
|
|
3128
3108
|
phoneNumbers?: {
|
|
3129
3109
|
phoneNumber: string;
|
|
3130
|
-
id?: string | undefined;
|
|
3131
3110
|
description?: string | undefined;
|
|
3132
3111
|
isPrimary?: boolean | undefined;
|
|
3112
|
+
id?: string | undefined;
|
|
3133
3113
|
}[] | undefined;
|
|
3134
3114
|
nino?: string | null | undefined;
|
|
3135
3115
|
dateOfBirth?: string | Date | null | undefined;
|
|
@@ -3138,7 +3118,6 @@ export declare const workersContractRouter: {
|
|
|
3138
3118
|
tradeId: string;
|
|
3139
3119
|
id?: string | undefined;
|
|
3140
3120
|
mainTrade?: boolean | undefined;
|
|
3141
|
-
skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
|
|
3142
3121
|
}[] | undefined;
|
|
3143
3122
|
qualifications?: {
|
|
3144
3123
|
qualificationId: string;
|