@dakkitor/api-contracts 1.1.28 → 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.
Files changed (35) hide show
  1. package/dist/actives/actives.contract.d.ts +1856 -1914
  2. package/dist/actives/actives.contract.d.ts.map +1 -1
  3. package/dist/agent-client-links/agent-client-links.contract.d.ts +419 -419
  4. package/dist/auth/auth.contract.d.ts +4 -4
  5. package/dist/bookings/bookings.contract.d.ts +1481 -1534
  6. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  7. package/dist/call-history/call-history.contract.d.ts +2 -14
  8. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  9. package/dist/call-history/call-history.contract.js +8 -24
  10. package/dist/client-contacts/client-contacts.contract.d.ts +356 -319
  11. package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
  12. package/dist/client-contacts/client-contacts.contract.js +4 -1
  13. package/dist/common/call-rating.schema.d.ts +31 -0
  14. package/dist/common/call-rating.schema.d.ts.map +1 -0
  15. package/dist/common/call-rating.schema.js +63 -0
  16. package/dist/common/common-schemas.js +2 -2
  17. package/dist/curated-workers/curated-workers.contract.d.ts +8 -8
  18. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  19. package/dist/curated-workers/curated-workers.contract.js +2 -3
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +1 -0
  23. package/dist/jobs/jobs.contract.d.ts +629 -629
  24. package/dist/jobs/jobs.contract.js +1 -1
  25. package/dist/lead-assignments/lead-assignments.contract.d.ts +6 -6
  26. package/dist/lead-assignments/lead-assignments.contract.js +2 -2
  27. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +63 -63
  28. package/dist/leads/leads.contract.d.ts +9 -9
  29. package/dist/users/users.contract.d.ts +108 -108
  30. package/dist/users/users.contract.d.ts.map +1 -1
  31. package/dist/users/users.contract.js +2 -3
  32. package/dist/workers/workers.contract.d.ts +130 -205
  33. package/dist/workers/workers.contract.d.ts.map +1 -1
  34. package/dist/workers/workers.contract.js +2 -8
  35. package/package.json +1 -1
@@ -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>;
@@ -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
- skillLevel: z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>;
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?: boolean | undefined;
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>;
@@ -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
- createdAt: string;
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
- createdAt: string | Date;
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;
@@ -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;
@@ -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;
@@ -554,6 +533,7 @@ export declare const CreateWorkerSchema: z.ZodObject<{
554
533
  address?: string | null | undefined;
555
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>;
@@ -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;
@@ -685,6 +660,7 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
685
660
  address?: string | null | undefined;
686
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;
@@ -726,6 +700,7 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
726
700
  address?: string | null | undefined;
727
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;
@@ -745,16 +720,13 @@ export declare const FilterWorkerSchema: z.ZodObject<{
745
720
  distance: z.ZodOptional<z.ZodNumber>;
746
721
  tradeFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
747
722
  tradeId: z.ZodString;
748
- skillLevel: z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>;
749
- mainTrade: z.ZodOptional<z.ZodBoolean>;
723
+ mainTrade: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
750
724
  }, "strip", z.ZodTypeAny, {
751
725
  tradeId: string;
752
726
  mainTrade?: boolean | undefined;
753
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
754
727
  }, {
755
728
  tradeId: string;
756
- mainTrade?: boolean | undefined;
757
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
729
+ mainTrade?: unknown;
758
730
  }>, "many">>;
759
731
  qualificationFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
760
732
  qualificationId: z.ZodOptional<z.ZodString>;
@@ -774,44 +746,42 @@ export declare const FilterWorkerSchema: z.ZodObject<{
774
746
  distance?: number | undefined;
775
747
  email?: string | undefined;
776
748
  phone?: string | undefined;
777
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
778
749
  englishLevel?: "NONE" | "BASIC" | "INTERMEDIATE" | "ADVANCED" | "NATIVE" | null | undefined;
779
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;
780
751
  postcode?: string | undefined;
781
752
  name?: string | undefined;
782
- tradeFilters?: {
783
- tradeId: string;
784
- mainTrade?: boolean | undefined;
785
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
786
- }[] | undefined;
787
753
  qualificationFilters?: {
788
754
  qualificationId?: string | undefined;
789
755
  qualificationTypeId?: string | undefined;
790
756
  }[] | undefined;
791
- sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
792
757
  sortOrder?: "ASC" | "DESC" | null | undefined;
758
+ tradeFilters?: {
759
+ tradeId: string;
760
+ mainTrade?: boolean | undefined;
761
+ }[] | undefined;
762
+ sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
763
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
793
764
  }, {
794
765
  distance?: number | undefined;
795
766
  email?: string | undefined;
796
767
  phone?: string | undefined;
797
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
798
768
  englishLevel?: "NONE" | "BASIC" | "INTERMEDIATE" | "ADVANCED" | "NATIVE" | null | undefined;
799
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;
800
770
  postcode?: string | undefined;
801
771
  limit?: number | undefined;
802
772
  page?: number | undefined;
803
773
  name?: string | undefined;
804
- tradeFilters?: {
805
- tradeId: string;
806
- mainTrade?: boolean | undefined;
807
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
808
- }[] | undefined;
809
774
  qualificationFilters?: {
810
775
  qualificationId?: string | undefined;
811
776
  qualificationTypeId?: string | undefined;
812
777
  }[] | undefined;
813
- sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
814
778
  sortOrder?: "ASC" | "DESC" | null | undefined;
779
+ tradeFilters?: {
780
+ tradeId: string;
781
+ mainTrade?: unknown;
782
+ }[] | undefined;
783
+ sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
784
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
815
785
  }>;
816
786
  export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
817
787
  items: z.ZodArray<z.ZodObject<{
@@ -827,13 +797,13 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
827
797
  }, "strip", z.ZodTypeAny, {
828
798
  phoneNumber: string;
829
799
  isPrimary: boolean;
830
- id?: string | undefined;
831
800
  description?: string | undefined;
801
+ id?: string | undefined;
832
802
  }, {
833
803
  phoneNumber: string;
834
- id?: string | undefined;
835
804
  description?: string | undefined;
836
805
  isPrimary?: boolean | undefined;
806
+ id?: string | undefined;
837
807
  }>, "many">>>;
838
808
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
839
809
  dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
@@ -843,17 +813,14 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
843
813
  id: z.ZodOptional<z.ZodString>;
844
814
  tradeId: z.ZodString;
845
815
  mainTrade: z.ZodDefault<z.ZodBoolean>;
846
- skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
847
816
  }, "strip", z.ZodTypeAny, {
848
817
  tradeId: string;
849
818
  mainTrade: boolean;
850
819
  id?: string | undefined;
851
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
852
820
  }, {
853
821
  tradeId: string;
854
822
  id?: string | undefined;
855
823
  mainTrade?: boolean | undefined;
856
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
857
824
  }>, "many">>;
858
825
  qualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
859
826
  id: z.ZodOptional<z.ZodString>;
@@ -940,20 +907,20 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
940
907
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
941
908
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
942
909
  }, "strip", z.ZodTypeAny, {
910
+ createdAt: string;
911
+ updatedAt: string;
943
912
  id: string;
944
913
  firstName: string;
945
914
  lastName: string;
946
915
  phoneNumbers: {
947
916
  phoneNumber: string;
948
917
  isPrimary: boolean;
949
- id?: string | undefined;
950
918
  description?: string | undefined;
919
+ id?: string | undefined;
951
920
  }[];
952
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
953
921
  hasTools: boolean;
954
922
  hasPpe: boolean;
955
- createdAt: string;
956
- updatedAt: string;
923
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
957
924
  email?: string | null | undefined;
958
925
  nino?: string | null | undefined;
959
926
  dateOfBirth?: string | null | undefined;
@@ -962,7 +929,6 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
962
929
  tradeId: string;
963
930
  mainTrade: boolean;
964
931
  id?: string | undefined;
965
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
966
932
  }[] | undefined;
967
933
  qualifications?: {
968
934
  qualificationId: string;
@@ -997,20 +963,20 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
997
963
  } | null | undefined;
998
964
  distanceKm?: number | null | undefined;
999
965
  }, {
966
+ createdAt: string | Date;
967
+ updatedAt: string | Date;
1000
968
  id: string;
1001
969
  firstName: string;
1002
970
  lastName: string;
1003
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1004
971
  hasTools: boolean;
1005
972
  hasPpe: boolean;
1006
- createdAt: string | Date;
1007
- updatedAt: string | Date;
973
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1008
974
  email?: string | null | undefined;
1009
975
  phoneNumbers?: {
1010
976
  phoneNumber: string;
1011
- id?: string | undefined;
1012
977
  description?: string | undefined;
1013
978
  isPrimary?: boolean | undefined;
979
+ id?: string | undefined;
1014
980
  }[] | undefined;
1015
981
  nino?: string | null | undefined;
1016
982
  dateOfBirth?: string | Date | null | undefined;
@@ -1019,7 +985,6 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
1019
985
  tradeId: string;
1020
986
  id?: string | undefined;
1021
987
  mainTrade?: boolean | undefined;
1022
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1023
988
  }[] | undefined;
1024
989
  qualifications?: {
1025
990
  qualificationId: string;
@@ -1060,22 +1025,21 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
1060
1025
  currentPage: z.ZodNumber;
1061
1026
  totalPages: z.ZodNumber;
1062
1027
  }, "strip", z.ZodTypeAny, {
1063
- limit: number;
1064
1028
  items: {
1029
+ createdAt: string;
1030
+ updatedAt: string;
1065
1031
  id: string;
1066
1032
  firstName: string;
1067
1033
  lastName: string;
1068
1034
  phoneNumbers: {
1069
1035
  phoneNumber: string;
1070
1036
  isPrimary: boolean;
1071
- id?: string | undefined;
1072
1037
  description?: string | undefined;
1038
+ id?: string | undefined;
1073
1039
  }[];
1074
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1075
1040
  hasTools: boolean;
1076
1041
  hasPpe: boolean;
1077
- createdAt: string;
1078
- updatedAt: string;
1042
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1079
1043
  email?: string | null | undefined;
1080
1044
  nino?: string | null | undefined;
1081
1045
  dateOfBirth?: string | null | undefined;
@@ -1084,7 +1048,6 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
1084
1048
  tradeId: string;
1085
1049
  mainTrade: boolean;
1086
1050
  id?: string | undefined;
1087
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1088
1051
  }[] | undefined;
1089
1052
  qualifications?: {
1090
1053
  qualificationId: string;
@@ -1120,26 +1083,26 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
1120
1083
  distanceKm?: number | null | undefined;
1121
1084
  }[];
1122
1085
  totalCount: number;
1086
+ limit: number;
1123
1087
  skip: number;
1124
1088
  currentPage: number;
1125
1089
  totalPages: number;
1126
1090
  }, {
1127
- limit: number;
1128
1091
  items: {
1092
+ createdAt: string | Date;
1093
+ updatedAt: string | Date;
1129
1094
  id: string;
1130
1095
  firstName: string;
1131
1096
  lastName: string;
1132
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1133
1097
  hasTools: boolean;
1134
1098
  hasPpe: boolean;
1135
- createdAt: string | Date;
1136
- updatedAt: string | Date;
1099
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1137
1100
  email?: string | null | undefined;
1138
1101
  phoneNumbers?: {
1139
1102
  phoneNumber: string;
1140
- id?: string | undefined;
1141
1103
  description?: string | undefined;
1142
1104
  isPrimary?: boolean | undefined;
1105
+ id?: string | undefined;
1143
1106
  }[] | undefined;
1144
1107
  nino?: string | null | undefined;
1145
1108
  dateOfBirth?: string | Date | null | undefined;
@@ -1148,7 +1111,6 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
1148
1111
  tradeId: string;
1149
1112
  id?: string | undefined;
1150
1113
  mainTrade?: boolean | undefined;
1151
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1152
1114
  }[] | undefined;
1153
1115
  qualifications?: {
1154
1116
  qualificationId: string;
@@ -1184,12 +1146,12 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
1184
1146
  distanceKm?: number | null | undefined;
1185
1147
  }[];
1186
1148
  totalCount: number;
1149
+ limit: number;
1187
1150
  skip: number;
1188
1151
  currentPage: number;
1189
1152
  totalPages: number;
1190
1153
  }>;
1191
1154
  export type Availability = z.infer<typeof AvailabilitySchema>;
1192
- export type SkillLevel = z.infer<typeof SkillLevelSchema>;
1193
1155
  export type WorkerSortableFields = z.infer<typeof WorkerSortableFieldsSchema>;
1194
1156
  export type WorkerPhoneNumber = z.infer<typeof WorkerPhoneNumberSchema>;
1195
1157
  export type CreateWorkerPhoneNumber = z.infer<typeof CreateWorkerPhoneNumberSchema>;
@@ -1240,15 +1202,12 @@ export declare const workersContractRouter: {
1240
1202
  trades: z.ZodArray<z.ZodObject<{
1241
1203
  tradeId: z.ZodString;
1242
1204
  mainTrade: z.ZodDefault<z.ZodBoolean>;
1243
- skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
1244
1205
  }, "strip", z.ZodTypeAny, {
1245
1206
  tradeId: string;
1246
1207
  mainTrade: boolean;
1247
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1248
1208
  }, {
1249
1209
  tradeId: string;
1250
1210
  mainTrade?: boolean | undefined;
1251
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1252
1211
  }>, "many">;
1253
1212
  qualifications: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1254
1213
  qualificationId: z.ZodString;
@@ -1304,14 +1263,13 @@ export declare const workersContractRouter: {
1304
1263
  isPrimary: boolean;
1305
1264
  description?: string | undefined;
1306
1265
  }[];
1307
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1308
1266
  trades: {
1309
1267
  tradeId: string;
1310
1268
  mainTrade: boolean;
1311
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1312
1269
  }[];
1313
1270
  hasTools: boolean;
1314
1271
  hasPpe: boolean;
1272
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1315
1273
  email?: string | null | undefined;
1316
1274
  nino?: string | null | undefined;
1317
1275
  dateOfBirth?: string | Date | null | undefined;
@@ -1345,7 +1303,6 @@ export declare const workersContractRouter: {
1345
1303
  trades: {
1346
1304
  tradeId: string;
1347
1305
  mainTrade?: boolean | undefined;
1348
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1349
1306
  }[];
1350
1307
  hasTools: boolean;
1351
1308
  hasPpe: boolean;
@@ -1353,7 +1310,6 @@ export declare const workersContractRouter: {
1353
1310
  nino?: string | null | undefined;
1354
1311
  dateOfBirth?: string | Date | null | undefined;
1355
1312
  bio?: string | null | undefined;
1356
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
1357
1313
  qualifications?: {
1358
1314
  qualificationId: string;
1359
1315
  qualificationTypeId?: string | null | undefined;
@@ -1368,6 +1324,7 @@ export declare const workersContractRouter: {
1368
1324
  address?: string | null | undefined;
1369
1325
  postcode?: string | null | undefined;
1370
1326
  } | null | undefined;
1327
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
1371
1328
  shareCode?: {
1372
1329
  code: string;
1373
1330
  expiryDate?: string | Date | null | undefined;
@@ -1488,13 +1445,13 @@ export declare const workersContractRouter: {
1488
1445
  }, "strip", z.ZodTypeAny, {
1489
1446
  phoneNumber: string;
1490
1447
  isPrimary: boolean;
1491
- id?: string | undefined;
1492
1448
  description?: string | undefined;
1449
+ id?: string | undefined;
1493
1450
  }, {
1494
1451
  phoneNumber: string;
1495
- id?: string | undefined;
1496
1452
  description?: string | undefined;
1497
1453
  isPrimary?: boolean | undefined;
1454
+ id?: string | undefined;
1498
1455
  }>, "many">>>;
1499
1456
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1500
1457
  dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
@@ -1504,17 +1461,14 @@ export declare const workersContractRouter: {
1504
1461
  id: z.ZodOptional<z.ZodString>;
1505
1462
  tradeId: z.ZodString;
1506
1463
  mainTrade: z.ZodDefault<z.ZodBoolean>;
1507
- skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
1508
1464
  }, "strip", z.ZodTypeAny, {
1509
1465
  tradeId: string;
1510
1466
  mainTrade: boolean;
1511
1467
  id?: string | undefined;
1512
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1513
1468
  }, {
1514
1469
  tradeId: string;
1515
1470
  id?: string | undefined;
1516
1471
  mainTrade?: boolean | undefined;
1517
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1518
1472
  }>, "many">>;
1519
1473
  qualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
1520
1474
  id: z.ZodOptional<z.ZodString>;
@@ -1601,20 +1555,20 @@ export declare const workersContractRouter: {
1601
1555
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1602
1556
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1603
1557
  }, "strip", z.ZodTypeAny, {
1558
+ createdAt: string;
1559
+ updatedAt: string;
1604
1560
  id: string;
1605
1561
  firstName: string;
1606
1562
  lastName: string;
1607
1563
  phoneNumbers: {
1608
1564
  phoneNumber: string;
1609
1565
  isPrimary: boolean;
1610
- id?: string | undefined;
1611
1566
  description?: string | undefined;
1567
+ id?: string | undefined;
1612
1568
  }[];
1613
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1614
1569
  hasTools: boolean;
1615
1570
  hasPpe: boolean;
1616
- createdAt: string;
1617
- updatedAt: string;
1571
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1618
1572
  email?: string | null | undefined;
1619
1573
  nino?: string | null | undefined;
1620
1574
  dateOfBirth?: string | null | undefined;
@@ -1623,7 +1577,6 @@ export declare const workersContractRouter: {
1623
1577
  tradeId: string;
1624
1578
  mainTrade: boolean;
1625
1579
  id?: string | undefined;
1626
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1627
1580
  }[] | undefined;
1628
1581
  qualifications?: {
1629
1582
  qualificationId: string;
@@ -1658,20 +1611,20 @@ export declare const workersContractRouter: {
1658
1611
  } | null | undefined;
1659
1612
  distanceKm?: number | null | undefined;
1660
1613
  }, {
1614
+ createdAt: string | Date;
1615
+ updatedAt: string | Date;
1661
1616
  id: string;
1662
1617
  firstName: string;
1663
1618
  lastName: string;
1664
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1665
1619
  hasTools: boolean;
1666
1620
  hasPpe: boolean;
1667
- createdAt: string | Date;
1668
- updatedAt: string | Date;
1621
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1669
1622
  email?: string | null | undefined;
1670
1623
  phoneNumbers?: {
1671
1624
  phoneNumber: string;
1672
- id?: string | undefined;
1673
1625
  description?: string | undefined;
1674
1626
  isPrimary?: boolean | undefined;
1627
+ id?: string | undefined;
1675
1628
  }[] | undefined;
1676
1629
  nino?: string | null | undefined;
1677
1630
  dateOfBirth?: string | Date | null | undefined;
@@ -1680,7 +1633,6 @@ export declare const workersContractRouter: {
1680
1633
  tradeId: string;
1681
1634
  id?: string | undefined;
1682
1635
  mainTrade?: boolean | undefined;
1683
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1684
1636
  }[] | undefined;
1685
1637
  qualifications?: {
1686
1638
  qualificationId: string;
@@ -1763,16 +1715,13 @@ export declare const workersContractRouter: {
1763
1715
  distance: z.ZodOptional<z.ZodNumber>;
1764
1716
  tradeFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1765
1717
  tradeId: z.ZodString;
1766
- skillLevel: z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>;
1767
- mainTrade: z.ZodOptional<z.ZodBoolean>;
1718
+ mainTrade: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
1768
1719
  }, "strip", z.ZodTypeAny, {
1769
1720
  tradeId: string;
1770
1721
  mainTrade?: boolean | undefined;
1771
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
1772
1722
  }, {
1773
1723
  tradeId: string;
1774
- mainTrade?: boolean | undefined;
1775
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
1724
+ mainTrade?: unknown;
1776
1725
  }>, "many">>;
1777
1726
  qualificationFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1778
1727
  qualificationId: z.ZodOptional<z.ZodString>;
@@ -1792,44 +1741,42 @@ export declare const workersContractRouter: {
1792
1741
  distance?: number | undefined;
1793
1742
  email?: string | undefined;
1794
1743
  phone?: string | undefined;
1795
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
1796
1744
  englishLevel?: "NONE" | "BASIC" | "INTERMEDIATE" | "ADVANCED" | "NATIVE" | null | undefined;
1797
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;
1798
1746
  postcode?: string | undefined;
1799
1747
  name?: string | undefined;
1800
- tradeFilters?: {
1801
- tradeId: string;
1802
- mainTrade?: boolean | undefined;
1803
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
1804
- }[] | undefined;
1805
1748
  qualificationFilters?: {
1806
1749
  qualificationId?: string | undefined;
1807
1750
  qualificationTypeId?: string | undefined;
1808
1751
  }[] | undefined;
1809
- sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
1810
1752
  sortOrder?: "ASC" | "DESC" | null | undefined;
1753
+ tradeFilters?: {
1754
+ tradeId: string;
1755
+ mainTrade?: boolean | undefined;
1756
+ }[] | undefined;
1757
+ sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
1758
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
1811
1759
  }, {
1812
1760
  distance?: number | undefined;
1813
1761
  email?: string | undefined;
1814
1762
  phone?: string | undefined;
1815
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
1816
1763
  englishLevel?: "NONE" | "BASIC" | "INTERMEDIATE" | "ADVANCED" | "NATIVE" | null | undefined;
1817
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;
1818
1765
  postcode?: string | undefined;
1819
1766
  limit?: number | undefined;
1820
1767
  page?: number | undefined;
1821
1768
  name?: string | undefined;
1822
- tradeFilters?: {
1823
- tradeId: string;
1824
- mainTrade?: boolean | undefined;
1825
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
1826
- }[] | undefined;
1827
1769
  qualificationFilters?: {
1828
1770
  qualificationId?: string | undefined;
1829
1771
  qualificationTypeId?: string | undefined;
1830
1772
  }[] | undefined;
1831
- sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
1832
1773
  sortOrder?: "ASC" | "DESC" | null | undefined;
1774
+ tradeFilters?: {
1775
+ tradeId: string;
1776
+ mainTrade?: unknown;
1777
+ }[] | undefined;
1778
+ sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
1779
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
1833
1780
  }>;
1834
1781
  summary: "Get all workers";
1835
1782
  method: "GET";
@@ -1949,13 +1896,13 @@ export declare const workersContractRouter: {
1949
1896
  }, "strip", z.ZodTypeAny, {
1950
1897
  phoneNumber: string;
1951
1898
  isPrimary: boolean;
1952
- id?: string | undefined;
1953
1899
  description?: string | undefined;
1900
+ id?: string | undefined;
1954
1901
  }, {
1955
1902
  phoneNumber: string;
1956
- id?: string | undefined;
1957
1903
  description?: string | undefined;
1958
1904
  isPrimary?: boolean | undefined;
1905
+ id?: string | undefined;
1959
1906
  }>, "many">>>;
1960
1907
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1961
1908
  dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
@@ -1965,17 +1912,14 @@ export declare const workersContractRouter: {
1965
1912
  id: z.ZodOptional<z.ZodString>;
1966
1913
  tradeId: z.ZodString;
1967
1914
  mainTrade: z.ZodDefault<z.ZodBoolean>;
1968
- skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
1969
1915
  }, "strip", z.ZodTypeAny, {
1970
1916
  tradeId: string;
1971
1917
  mainTrade: boolean;
1972
1918
  id?: string | undefined;
1973
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1974
1919
  }, {
1975
1920
  tradeId: string;
1976
1921
  id?: string | undefined;
1977
1922
  mainTrade?: boolean | undefined;
1978
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
1979
1923
  }>, "many">>;
1980
1924
  qualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
1981
1925
  id: z.ZodOptional<z.ZodString>;
@@ -2062,20 +2006,20 @@ export declare const workersContractRouter: {
2062
2006
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2063
2007
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2064
2008
  }, "strip", z.ZodTypeAny, {
2009
+ createdAt: string;
2010
+ updatedAt: string;
2065
2011
  id: string;
2066
2012
  firstName: string;
2067
2013
  lastName: string;
2068
2014
  phoneNumbers: {
2069
2015
  phoneNumber: string;
2070
2016
  isPrimary: boolean;
2071
- id?: string | undefined;
2072
2017
  description?: string | undefined;
2018
+ id?: string | undefined;
2073
2019
  }[];
2074
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2075
2020
  hasTools: boolean;
2076
2021
  hasPpe: boolean;
2077
- createdAt: string;
2078
- updatedAt: string;
2022
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2079
2023
  email?: string | null | undefined;
2080
2024
  nino?: string | null | undefined;
2081
2025
  dateOfBirth?: string | null | undefined;
@@ -2084,7 +2028,6 @@ export declare const workersContractRouter: {
2084
2028
  tradeId: string;
2085
2029
  mainTrade: boolean;
2086
2030
  id?: string | undefined;
2087
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
2088
2031
  }[] | undefined;
2089
2032
  qualifications?: {
2090
2033
  qualificationId: string;
@@ -2119,20 +2062,20 @@ export declare const workersContractRouter: {
2119
2062
  } | null | undefined;
2120
2063
  distanceKm?: number | null | undefined;
2121
2064
  }, {
2065
+ createdAt: string | Date;
2066
+ updatedAt: string | Date;
2122
2067
  id: string;
2123
2068
  firstName: string;
2124
2069
  lastName: string;
2125
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2126
2070
  hasTools: boolean;
2127
2071
  hasPpe: boolean;
2128
- createdAt: string | Date;
2129
- updatedAt: string | Date;
2072
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2130
2073
  email?: string | null | undefined;
2131
2074
  phoneNumbers?: {
2132
2075
  phoneNumber: string;
2133
- id?: string | undefined;
2134
2076
  description?: string | undefined;
2135
2077
  isPrimary?: boolean | undefined;
2078
+ id?: string | undefined;
2136
2079
  }[] | undefined;
2137
2080
  nino?: string | null | undefined;
2138
2081
  dateOfBirth?: string | Date | null | undefined;
@@ -2141,7 +2084,6 @@ export declare const workersContractRouter: {
2141
2084
  tradeId: string;
2142
2085
  id?: string | undefined;
2143
2086
  mainTrade?: boolean | undefined;
2144
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
2145
2087
  }[] | undefined;
2146
2088
  qualifications?: {
2147
2089
  qualificationId: string;
@@ -2182,22 +2124,21 @@ export declare const workersContractRouter: {
2182
2124
  currentPage: z.ZodNumber;
2183
2125
  totalPages: z.ZodNumber;
2184
2126
  }, "strip", z.ZodTypeAny, {
2185
- limit: number;
2186
2127
  items: {
2128
+ createdAt: string;
2129
+ updatedAt: string;
2187
2130
  id: string;
2188
2131
  firstName: string;
2189
2132
  lastName: string;
2190
2133
  phoneNumbers: {
2191
2134
  phoneNumber: string;
2192
2135
  isPrimary: boolean;
2193
- id?: string | undefined;
2194
2136
  description?: string | undefined;
2137
+ id?: string | undefined;
2195
2138
  }[];
2196
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2197
2139
  hasTools: boolean;
2198
2140
  hasPpe: boolean;
2199
- createdAt: string;
2200
- updatedAt: string;
2141
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2201
2142
  email?: string | null | undefined;
2202
2143
  nino?: string | null | undefined;
2203
2144
  dateOfBirth?: string | null | undefined;
@@ -2206,7 +2147,6 @@ export declare const workersContractRouter: {
2206
2147
  tradeId: string;
2207
2148
  mainTrade: boolean;
2208
2149
  id?: string | undefined;
2209
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
2210
2150
  }[] | undefined;
2211
2151
  qualifications?: {
2212
2152
  qualificationId: string;
@@ -2242,26 +2182,26 @@ export declare const workersContractRouter: {
2242
2182
  distanceKm?: number | null | undefined;
2243
2183
  }[];
2244
2184
  totalCount: number;
2185
+ limit: number;
2245
2186
  skip: number;
2246
2187
  currentPage: number;
2247
2188
  totalPages: number;
2248
2189
  }, {
2249
- limit: number;
2250
2190
  items: {
2191
+ createdAt: string | Date;
2192
+ updatedAt: string | Date;
2251
2193
  id: string;
2252
2194
  firstName: string;
2253
2195
  lastName: string;
2254
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2255
2196
  hasTools: boolean;
2256
2197
  hasPpe: boolean;
2257
- createdAt: string | Date;
2258
- updatedAt: string | Date;
2198
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2259
2199
  email?: string | null | undefined;
2260
2200
  phoneNumbers?: {
2261
2201
  phoneNumber: string;
2262
- id?: string | undefined;
2263
2202
  description?: string | undefined;
2264
2203
  isPrimary?: boolean | undefined;
2204
+ id?: string | undefined;
2265
2205
  }[] | undefined;
2266
2206
  nino?: string | null | undefined;
2267
2207
  dateOfBirth?: string | Date | null | undefined;
@@ -2270,7 +2210,6 @@ export declare const workersContractRouter: {
2270
2210
  tradeId: string;
2271
2211
  id?: string | undefined;
2272
2212
  mainTrade?: boolean | undefined;
2273
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
2274
2213
  }[] | undefined;
2275
2214
  qualifications?: {
2276
2215
  qualificationId: string;
@@ -2306,6 +2245,7 @@ export declare const workersContractRouter: {
2306
2245
  distanceKm?: number | null | undefined;
2307
2246
  }[];
2308
2247
  totalCount: number;
2248
+ limit: number;
2309
2249
  skip: number;
2310
2250
  currentPage: number;
2311
2251
  totalPages: number;
@@ -2443,13 +2383,13 @@ export declare const workersContractRouter: {
2443
2383
  }, "strip", z.ZodTypeAny, {
2444
2384
  phoneNumber: string;
2445
2385
  isPrimary: boolean;
2446
- id?: string | undefined;
2447
2386
  description?: string | undefined;
2387
+ id?: string | undefined;
2448
2388
  }, {
2449
2389
  phoneNumber: string;
2450
- id?: string | undefined;
2451
2390
  description?: string | undefined;
2452
2391
  isPrimary?: boolean | undefined;
2392
+ id?: string | undefined;
2453
2393
  }>, "many">>>;
2454
2394
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2455
2395
  dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
@@ -2459,17 +2399,14 @@ export declare const workersContractRouter: {
2459
2399
  id: z.ZodOptional<z.ZodString>;
2460
2400
  tradeId: z.ZodString;
2461
2401
  mainTrade: z.ZodDefault<z.ZodBoolean>;
2462
- skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
2463
2402
  }, "strip", z.ZodTypeAny, {
2464
2403
  tradeId: string;
2465
2404
  mainTrade: boolean;
2466
2405
  id?: string | undefined;
2467
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
2468
2406
  }, {
2469
2407
  tradeId: string;
2470
2408
  id?: string | undefined;
2471
2409
  mainTrade?: boolean | undefined;
2472
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
2473
2410
  }>, "many">>;
2474
2411
  qualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
2475
2412
  id: z.ZodOptional<z.ZodString>;
@@ -2556,20 +2493,20 @@ export declare const workersContractRouter: {
2556
2493
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2557
2494
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2558
2495
  }, "strip", z.ZodTypeAny, {
2496
+ createdAt: string;
2497
+ updatedAt: string;
2559
2498
  id: string;
2560
2499
  firstName: string;
2561
2500
  lastName: string;
2562
2501
  phoneNumbers: {
2563
2502
  phoneNumber: string;
2564
2503
  isPrimary: boolean;
2565
- id?: string | undefined;
2566
2504
  description?: string | undefined;
2505
+ id?: string | undefined;
2567
2506
  }[];
2568
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2569
2507
  hasTools: boolean;
2570
2508
  hasPpe: boolean;
2571
- createdAt: string;
2572
- updatedAt: string;
2509
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2573
2510
  email?: string | null | undefined;
2574
2511
  nino?: string | null | undefined;
2575
2512
  dateOfBirth?: string | null | undefined;
@@ -2578,7 +2515,6 @@ export declare const workersContractRouter: {
2578
2515
  tradeId: string;
2579
2516
  mainTrade: boolean;
2580
2517
  id?: string | undefined;
2581
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
2582
2518
  }[] | undefined;
2583
2519
  qualifications?: {
2584
2520
  qualificationId: string;
@@ -2613,20 +2549,20 @@ export declare const workersContractRouter: {
2613
2549
  } | null | undefined;
2614
2550
  distanceKm?: number | null | undefined;
2615
2551
  }, {
2552
+ createdAt: string | Date;
2553
+ updatedAt: string | Date;
2616
2554
  id: string;
2617
2555
  firstName: string;
2618
2556
  lastName: string;
2619
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2620
2557
  hasTools: boolean;
2621
2558
  hasPpe: boolean;
2622
- createdAt: string | Date;
2623
- updatedAt: string | Date;
2559
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2624
2560
  email?: string | null | undefined;
2625
2561
  phoneNumbers?: {
2626
2562
  phoneNumber: string;
2627
- id?: string | undefined;
2628
2563
  description?: string | undefined;
2629
2564
  isPrimary?: boolean | undefined;
2565
+ id?: string | undefined;
2630
2566
  }[] | undefined;
2631
2567
  nino?: string | null | undefined;
2632
2568
  dateOfBirth?: string | Date | null | undefined;
@@ -2635,7 +2571,6 @@ export declare const workersContractRouter: {
2635
2571
  tradeId: string;
2636
2572
  id?: string | undefined;
2637
2573
  mainTrade?: boolean | undefined;
2638
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
2639
2574
  }[] | undefined;
2640
2575
  qualifications?: {
2641
2576
  qualificationId: string;
@@ -2723,15 +2658,15 @@ export declare const workersContractRouter: {
2723
2658
  description: z.ZodOptional<z.ZodString>;
2724
2659
  isPrimary: z.ZodOptional<z.ZodBoolean>;
2725
2660
  }, "strip", z.ZodTypeAny, {
2726
- id?: string | undefined;
2727
2661
  phoneNumber?: string | undefined;
2728
2662
  description?: string | undefined;
2729
2663
  isPrimary?: boolean | undefined;
2730
- }, {
2731
2664
  id?: string | undefined;
2665
+ }, {
2732
2666
  phoneNumber?: string | undefined;
2733
2667
  description?: string | undefined;
2734
2668
  isPrimary?: boolean | undefined;
2669
+ id?: string | undefined;
2735
2670
  }>, "many">>;
2736
2671
  nino: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2737
2672
  dateOfBirth: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>>;
@@ -2741,17 +2676,14 @@ export declare const workersContractRouter: {
2741
2676
  id: z.ZodOptional<z.ZodString>;
2742
2677
  tradeId: z.ZodString;
2743
2678
  mainTrade: z.ZodDefault<z.ZodBoolean>;
2744
- skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
2745
2679
  }, "strip", z.ZodTypeAny, {
2746
2680
  tradeId: string;
2747
2681
  mainTrade: boolean;
2748
2682
  id?: string | undefined;
2749
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
2750
2683
  }, {
2751
2684
  tradeId: string;
2752
2685
  id?: string | undefined;
2753
2686
  mainTrade?: boolean | undefined;
2754
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
2755
2687
  }>, "many">>;
2756
2688
  qualifications: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
2757
2689
  id: z.ZodOptional<z.ZodString>;
@@ -2807,20 +2739,18 @@ export declare const workersContractRouter: {
2807
2739
  firstName?: string | undefined;
2808
2740
  lastName?: string | undefined;
2809
2741
  phoneNumbers?: {
2810
- id?: string | undefined;
2811
2742
  phoneNumber?: string | undefined;
2812
2743
  description?: string | undefined;
2813
2744
  isPrimary?: boolean | undefined;
2745
+ id?: string | undefined;
2814
2746
  }[] | undefined;
2815
2747
  nino?: string | null | undefined;
2816
2748
  dateOfBirth?: string | Date | null | undefined;
2817
2749
  bio?: string | null | undefined;
2818
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
2819
2750
  trades?: {
2820
2751
  tradeId: string;
2821
2752
  mainTrade: boolean;
2822
2753
  id?: string | undefined;
2823
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
2824
2754
  }[] | undefined;
2825
2755
  qualifications?: {
2826
2756
  qualificationId: string;
@@ -2839,6 +2769,7 @@ export declare const workersContractRouter: {
2839
2769
  address?: string | null | undefined;
2840
2770
  postcode?: string | null | undefined;
2841
2771
  } | null | undefined;
2772
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
2842
2773
  shareCode?: {
2843
2774
  code: string;
2844
2775
  expiryDate?: string | null | undefined;
@@ -2848,20 +2779,18 @@ export declare const workersContractRouter: {
2848
2779
  firstName?: string | undefined;
2849
2780
  lastName?: string | undefined;
2850
2781
  phoneNumbers?: {
2851
- id?: string | undefined;
2852
2782
  phoneNumber?: string | undefined;
2853
2783
  description?: string | undefined;
2854
2784
  isPrimary?: boolean | undefined;
2785
+ id?: string | undefined;
2855
2786
  }[] | undefined;
2856
2787
  nino?: string | null | undefined;
2857
2788
  dateOfBirth?: string | Date | null | undefined;
2858
2789
  bio?: string | null | undefined;
2859
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
2860
2790
  trades?: {
2861
2791
  tradeId: string;
2862
2792
  id?: string | undefined;
2863
2793
  mainTrade?: boolean | undefined;
2864
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
2865
2794
  }[] | undefined;
2866
2795
  qualifications?: {
2867
2796
  qualificationId: string;
@@ -2880,6 +2809,7 @@ export declare const workersContractRouter: {
2880
2809
  address?: string | null | undefined;
2881
2810
  postcode?: string | null | undefined;
2882
2811
  } | null | undefined;
2812
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
2883
2813
  shareCode?: {
2884
2814
  code: string;
2885
2815
  expiryDate?: string | Date | null | undefined;
@@ -3000,13 +2930,13 @@ export declare const workersContractRouter: {
3000
2930
  }, "strip", z.ZodTypeAny, {
3001
2931
  phoneNumber: string;
3002
2932
  isPrimary: boolean;
3003
- id?: string | undefined;
3004
2933
  description?: string | undefined;
2934
+ id?: string | undefined;
3005
2935
  }, {
3006
2936
  phoneNumber: string;
3007
- id?: string | undefined;
3008
2937
  description?: string | undefined;
3009
2938
  isPrimary?: boolean | undefined;
2939
+ id?: string | undefined;
3010
2940
  }>, "many">>>;
3011
2941
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3012
2942
  dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
@@ -3016,17 +2946,14 @@ export declare const workersContractRouter: {
3016
2946
  id: z.ZodOptional<z.ZodString>;
3017
2947
  tradeId: z.ZodString;
3018
2948
  mainTrade: z.ZodDefault<z.ZodBoolean>;
3019
- skillLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<["LABOURER", "SKILLED", "SUPERVISOR", "MANAGER"]>>>;
3020
2949
  }, "strip", z.ZodTypeAny, {
3021
2950
  tradeId: string;
3022
2951
  mainTrade: boolean;
3023
2952
  id?: string | undefined;
3024
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
3025
2953
  }, {
3026
2954
  tradeId: string;
3027
2955
  id?: string | undefined;
3028
2956
  mainTrade?: boolean | undefined;
3029
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
3030
2957
  }>, "many">>;
3031
2958
  qualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
3032
2959
  id: z.ZodOptional<z.ZodString>;
@@ -3113,20 +3040,20 @@ export declare const workersContractRouter: {
3113
3040
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3114
3041
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3115
3042
  }, "strip", z.ZodTypeAny, {
3043
+ createdAt: string;
3044
+ updatedAt: string;
3116
3045
  id: string;
3117
3046
  firstName: string;
3118
3047
  lastName: string;
3119
3048
  phoneNumbers: {
3120
3049
  phoneNumber: string;
3121
3050
  isPrimary: boolean;
3122
- id?: string | undefined;
3123
3051
  description?: string | undefined;
3052
+ id?: string | undefined;
3124
3053
  }[];
3125
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3126
3054
  hasTools: boolean;
3127
3055
  hasPpe: boolean;
3128
- createdAt: string;
3129
- updatedAt: string;
3056
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3130
3057
  email?: string | null | undefined;
3131
3058
  nino?: string | null | undefined;
3132
3059
  dateOfBirth?: string | null | undefined;
@@ -3135,7 +3062,6 @@ export declare const workersContractRouter: {
3135
3062
  tradeId: string;
3136
3063
  mainTrade: boolean;
3137
3064
  id?: string | undefined;
3138
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
3139
3065
  }[] | undefined;
3140
3066
  qualifications?: {
3141
3067
  qualificationId: string;
@@ -3170,20 +3096,20 @@ export declare const workersContractRouter: {
3170
3096
  } | null | undefined;
3171
3097
  distanceKm?: number | null | undefined;
3172
3098
  }, {
3099
+ createdAt: string | Date;
3100
+ updatedAt: string | Date;
3173
3101
  id: string;
3174
3102
  firstName: string;
3175
3103
  lastName: string;
3176
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3177
3104
  hasTools: boolean;
3178
3105
  hasPpe: boolean;
3179
- createdAt: string | Date;
3180
- updatedAt: string | Date;
3106
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3181
3107
  email?: string | null | undefined;
3182
3108
  phoneNumbers?: {
3183
3109
  phoneNumber: string;
3184
- id?: string | undefined;
3185
3110
  description?: string | undefined;
3186
3111
  isPrimary?: boolean | undefined;
3112
+ id?: string | undefined;
3187
3113
  }[] | undefined;
3188
3114
  nino?: string | null | undefined;
3189
3115
  dateOfBirth?: string | Date | null | undefined;
@@ -3192,7 +3118,6 @@ export declare const workersContractRouter: {
3192
3118
  tradeId: string;
3193
3119
  id?: string | undefined;
3194
3120
  mainTrade?: boolean | undefined;
3195
- skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | null | undefined;
3196
3121
  }[] | undefined;
3197
3122
  qualifications?: {
3198
3123
  qualificationId: string;