@dakkitor/api-contracts 1.1.20 → 1.1.22

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.
@@ -10,12 +10,12 @@ export declare const WorkerPhoneNumberSchema: z.ZodObject<{
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  phoneNumber: string;
12
12
  isPrimary: boolean;
13
- description?: string | undefined;
14
13
  id?: string | undefined;
14
+ description?: string | undefined;
15
15
  }, {
16
16
  phoneNumber: string;
17
- description?: string | undefined;
18
17
  id?: string | undefined;
18
+ description?: string | undefined;
19
19
  isPrimary?: boolean | undefined;
20
20
  }>;
21
21
  export declare const CreateWorkerPhoneNumberSchema: z.ZodObject<{
@@ -37,14 +37,14 @@ export declare const UpsertWorkerPhoneNumberSchema: z.ZodObject<{
37
37
  description: z.ZodOptional<z.ZodString>;
38
38
  isPrimary: z.ZodOptional<z.ZodBoolean>;
39
39
  }, "strip", z.ZodTypeAny, {
40
- description?: string | undefined;
41
40
  id?: string | undefined;
42
41
  phoneNumber?: string | undefined;
42
+ description?: string | undefined;
43
43
  isPrimary?: boolean | undefined;
44
44
  }, {
45
- description?: string | undefined;
46
45
  id?: string | undefined;
47
46
  phoneNumber?: string | undefined;
47
+ description?: string | undefined;
48
48
  isPrimary?: boolean | undefined;
49
49
  }>;
50
50
  export declare const WorkerTradeSchema: z.ZodObject<{
@@ -152,22 +152,22 @@ export declare const WorkerUserSchema: z.ZodObject<{
152
152
  lastName: z.ZodString;
153
153
  email: z.ZodString;
154
154
  }, "strip", z.ZodTypeAny, {
155
+ email: string;
155
156
  id: string;
156
157
  firstName: string;
157
158
  lastName: string;
158
- email: string;
159
159
  }, {
160
+ email: string;
160
161
  id: string;
161
162
  firstName: string;
162
163
  lastName: string;
163
- email: string;
164
164
  }>;
165
165
  export declare const WorkerSchema: z.ZodObject<{
166
166
  id: z.ZodString;
167
167
  firstName: z.ZodString;
168
168
  lastName: z.ZodString;
169
169
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
- phoneNumbers: z.ZodArray<z.ZodObject<{
170
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
171
171
  id: z.ZodOptional<z.ZodString>;
172
172
  phoneNumber: z.ZodString;
173
173
  description: z.ZodOptional<z.ZodString>;
@@ -175,14 +175,14 @@ export declare const WorkerSchema: z.ZodObject<{
175
175
  }, "strip", z.ZodTypeAny, {
176
176
  phoneNumber: string;
177
177
  isPrimary: boolean;
178
- description?: string | undefined;
179
178
  id?: string | undefined;
179
+ description?: string | undefined;
180
180
  }, {
181
181
  phoneNumber: string;
182
- description?: string | undefined;
183
182
  id?: string | undefined;
183
+ description?: string | undefined;
184
184
  isPrimary?: boolean | undefined;
185
- }>, "many">;
185
+ }>, "many">>>;
186
186
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
187
187
  dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
188
188
  bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -274,15 +274,15 @@ export declare const WorkerSchema: z.ZodObject<{
274
274
  lastName: z.ZodString;
275
275
  email: z.ZodString;
276
276
  }, "strip", z.ZodTypeAny, {
277
+ email: string;
277
278
  id: string;
278
279
  firstName: string;
279
280
  lastName: string;
280
- email: string;
281
281
  }, {
282
+ email: string;
282
283
  id: string;
283
284
  firstName: string;
284
285
  lastName: string;
285
- email: string;
286
286
  }>>>;
287
287
  distanceKm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
288
288
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -291,24 +291,18 @@ export declare const WorkerSchema: z.ZodObject<{
291
291
  id: string;
292
292
  firstName: string;
293
293
  lastName: string;
294
- createdAt: string;
295
- updatedAt: string;
296
294
  phoneNumbers: {
297
295
  phoneNumber: string;
298
296
  isPrimary: boolean;
299
- description?: string | undefined;
300
297
  id?: string | undefined;
298
+ description?: string | undefined;
301
299
  }[];
300
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
302
301
  hasTools: boolean;
303
302
  hasPpe: boolean;
304
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
303
+ createdAt: string;
304
+ updatedAt: string;
305
305
  email?: string | null | undefined;
306
- createdBy?: {
307
- id: string;
308
- firstName: string;
309
- lastName: string;
310
- email: string;
311
- } | null | undefined;
312
306
  nino?: string | null | undefined;
313
307
  dateOfBirth?: string | null | undefined;
314
308
  bio?: string | null | undefined;
@@ -343,29 +337,29 @@ export declare const WorkerSchema: z.ZodObject<{
343
337
  expiryDate?: string | null | undefined;
344
338
  } | null | undefined;
345
339
  createdByUserId?: string | null | undefined;
340
+ createdBy?: {
341
+ email: string;
342
+ id: string;
343
+ firstName: string;
344
+ lastName: string;
345
+ } | null | undefined;
346
346
  distanceKm?: number | null | undefined;
347
347
  }, {
348
348
  id: string;
349
349
  firstName: string;
350
350
  lastName: string;
351
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
352
+ hasTools: boolean;
353
+ hasPpe: boolean;
351
354
  createdAt: string | Date;
352
355
  updatedAt: string | Date;
353
- phoneNumbers: {
356
+ email?: string | null | undefined;
357
+ phoneNumbers?: {
354
358
  phoneNumber: string;
355
- description?: string | undefined;
356
359
  id?: string | undefined;
360
+ description?: string | undefined;
357
361
  isPrimary?: boolean | undefined;
358
- }[];
359
- hasTools: boolean;
360
- hasPpe: boolean;
361
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
362
- email?: string | null | undefined;
363
- createdBy?: {
364
- id: string;
365
- firstName: string;
366
- lastName: string;
367
- email: string;
368
- } | null | undefined;
362
+ }[] | undefined;
369
363
  nino?: string | null | undefined;
370
364
  dateOfBirth?: string | Date | null | undefined;
371
365
  bio?: string | null | undefined;
@@ -400,6 +394,12 @@ export declare const WorkerSchema: z.ZodObject<{
400
394
  expiryDate?: string | Date | null | undefined;
401
395
  } | null | undefined;
402
396
  createdByUserId?: string | null | undefined;
397
+ createdBy?: {
398
+ email: string;
399
+ id: string;
400
+ firstName: string;
401
+ lastName: string;
402
+ } | null | undefined;
403
403
  distanceKm?: number | null | undefined;
404
404
  }>;
405
405
  export declare const CreateWorkerSchema: z.ZodObject<{
@@ -490,6 +490,7 @@ export declare const CreateWorkerSchema: z.ZodObject<{
490
490
  isPrimary: boolean;
491
491
  description?: string | undefined;
492
492
  }[];
493
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
493
494
  trades: {
494
495
  tradeId: string;
495
496
  mainTrade: boolean;
@@ -497,7 +498,6 @@ export declare const CreateWorkerSchema: z.ZodObject<{
497
498
  }[];
498
499
  hasTools: boolean;
499
500
  hasPpe: boolean;
500
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
501
501
  email?: string | null | undefined;
502
502
  nino?: string | null | undefined;
503
503
  dateOfBirth?: string | Date | null | undefined;
@@ -539,6 +539,7 @@ export declare const CreateWorkerSchema: z.ZodObject<{
539
539
  nino?: string | null | undefined;
540
540
  dateOfBirth?: string | Date | null | undefined;
541
541
  bio?: string | null | undefined;
542
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
542
543
  qualifications?: {
543
544
  qualificationId: string;
544
545
  qualificationTypeId?: string | null | undefined;
@@ -553,7 +554,6 @@ export declare const CreateWorkerSchema: z.ZodObject<{
553
554
  address?: string | undefined;
554
555
  postcode?: string | undefined;
555
556
  } | null | undefined;
556
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
557
557
  shareCode?: {
558
558
  code: string;
559
559
  expiryDate?: string | Date | null | undefined;
@@ -569,14 +569,14 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
569
569
  description: z.ZodOptional<z.ZodString>;
570
570
  isPrimary: z.ZodOptional<z.ZodBoolean>;
571
571
  }, "strip", z.ZodTypeAny, {
572
- description?: string | undefined;
573
572
  id?: string | undefined;
574
573
  phoneNumber?: string | undefined;
574
+ description?: string | undefined;
575
575
  isPrimary?: boolean | undefined;
576
576
  }, {
577
- description?: string | undefined;
578
577
  id?: string | undefined;
579
578
  phoneNumber?: string | undefined;
579
+ description?: string | undefined;
580
580
  isPrimary?: boolean | undefined;
581
581
  }>, "many">>;
582
582
  nino: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -649,18 +649,19 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
649
649
  expiryDate?: string | Date | null | undefined;
650
650
  }>>>;
651
651
  }, "strip", z.ZodTypeAny, {
652
+ email?: string | null | undefined;
652
653
  firstName?: string | undefined;
653
654
  lastName?: string | undefined;
654
- email?: string | null | undefined;
655
655
  phoneNumbers?: {
656
- description?: string | undefined;
657
656
  id?: string | undefined;
658
657
  phoneNumber?: string | undefined;
658
+ description?: string | undefined;
659
659
  isPrimary?: boolean | undefined;
660
660
  }[] | undefined;
661
661
  nino?: string | null | undefined;
662
662
  dateOfBirth?: string | Date | null | undefined;
663
663
  bio?: string | null | undefined;
664
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
664
665
  trades?: {
665
666
  tradeId: string;
666
667
  mainTrade: boolean;
@@ -684,24 +685,24 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
684
685
  address?: string | undefined;
685
686
  postcode?: string | undefined;
686
687
  } | null | undefined;
687
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
688
688
  shareCode?: {
689
689
  code: string;
690
690
  expiryDate?: string | null | undefined;
691
691
  } | null | undefined;
692
692
  }, {
693
+ email?: string | null | undefined;
693
694
  firstName?: string | undefined;
694
695
  lastName?: string | undefined;
695
- email?: string | null | undefined;
696
696
  phoneNumbers?: {
697
- description?: string | undefined;
698
697
  id?: string | undefined;
699
698
  phoneNumber?: string | undefined;
699
+ description?: string | undefined;
700
700
  isPrimary?: boolean | undefined;
701
701
  }[] | undefined;
702
702
  nino?: string | null | undefined;
703
703
  dateOfBirth?: string | Date | null | undefined;
704
704
  bio?: string | null | undefined;
705
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
705
706
  trades?: {
706
707
  tradeId: string;
707
708
  id?: string | undefined;
@@ -725,7 +726,6 @@ export declare const UpdateWorkerSchema: z.ZodObject<{
725
726
  address?: string | undefined;
726
727
  postcode?: string | undefined;
727
728
  } | null | undefined;
728
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
729
729
  shareCode?: {
730
730
  code: string;
731
731
  expiryDate?: string | Date | null | undefined;
@@ -758,30 +758,30 @@ export declare const FilterWorkerSchema: z.ZodObject<{
758
758
  }, "strip", z.ZodTypeAny, {
759
759
  limit: number;
760
760
  page: number;
761
- sortBy?: "email" | "phone" | "distance" | "nameSimilarity" | "fullName" | null | undefined;
762
- sortOrder?: "ASC" | "DESC" | null | undefined;
761
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
762
+ searchTerm?: string | undefined;
763
763
  tradeFilters?: {
764
764
  tradeId: string;
765
765
  mainTrade?: boolean | undefined;
766
766
  skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
767
767
  }[] | undefined;
768
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
769
- searchTerm?: string | undefined;
768
+ sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
769
+ sortOrder?: "ASC" | "DESC" | null | undefined;
770
770
  latitude?: number | undefined;
771
771
  longitude?: number | undefined;
772
772
  radiusKm?: number | undefined;
773
773
  }, {
774
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
774
775
  limit?: number | undefined;
775
776
  page?: number | undefined;
776
- sortBy?: "email" | "phone" | "distance" | "nameSimilarity" | "fullName" | null | undefined;
777
- sortOrder?: "ASC" | "DESC" | null | undefined;
777
+ searchTerm?: string | undefined;
778
778
  tradeFilters?: {
779
779
  tradeId: string;
780
780
  mainTrade?: boolean | undefined;
781
781
  skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
782
782
  }[] | undefined;
783
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
784
- searchTerm?: string | undefined;
783
+ sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
784
+ sortOrder?: "ASC" | "DESC" | null | undefined;
785
785
  latitude?: number | undefined;
786
786
  longitude?: number | undefined;
787
787
  radiusKm?: number | undefined;
@@ -792,7 +792,7 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
792
792
  firstName: z.ZodString;
793
793
  lastName: z.ZodString;
794
794
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
795
- phoneNumbers: z.ZodArray<z.ZodObject<{
795
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
796
796
  id: z.ZodOptional<z.ZodString>;
797
797
  phoneNumber: z.ZodString;
798
798
  description: z.ZodOptional<z.ZodString>;
@@ -800,14 +800,14 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
800
800
  }, "strip", z.ZodTypeAny, {
801
801
  phoneNumber: string;
802
802
  isPrimary: boolean;
803
- description?: string | undefined;
804
803
  id?: string | undefined;
804
+ description?: string | undefined;
805
805
  }, {
806
806
  phoneNumber: string;
807
- description?: string | undefined;
808
807
  id?: string | undefined;
808
+ description?: string | undefined;
809
809
  isPrimary?: boolean | undefined;
810
- }>, "many">;
810
+ }>, "many">>>;
811
811
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
812
812
  dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
813
813
  bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -899,15 +899,15 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
899
899
  lastName: z.ZodString;
900
900
  email: z.ZodString;
901
901
  }, "strip", z.ZodTypeAny, {
902
+ email: string;
902
903
  id: string;
903
904
  firstName: string;
904
905
  lastName: string;
905
- email: string;
906
906
  }, {
907
+ email: string;
907
908
  id: string;
908
909
  firstName: string;
909
910
  lastName: string;
910
- email: string;
911
911
  }>>>;
912
912
  distanceKm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
913
913
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -916,24 +916,18 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
916
916
  id: string;
917
917
  firstName: string;
918
918
  lastName: string;
919
- createdAt: string;
920
- updatedAt: string;
921
919
  phoneNumbers: {
922
920
  phoneNumber: string;
923
921
  isPrimary: boolean;
924
- description?: string | undefined;
925
922
  id?: string | undefined;
923
+ description?: string | undefined;
926
924
  }[];
925
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
927
926
  hasTools: boolean;
928
927
  hasPpe: boolean;
929
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
928
+ createdAt: string;
929
+ updatedAt: string;
930
930
  email?: string | null | undefined;
931
- createdBy?: {
932
- id: string;
933
- firstName: string;
934
- lastName: string;
935
- email: string;
936
- } | null | undefined;
937
931
  nino?: string | null | undefined;
938
932
  dateOfBirth?: string | null | undefined;
939
933
  bio?: string | null | undefined;
@@ -968,29 +962,29 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
968
962
  expiryDate?: string | null | undefined;
969
963
  } | null | undefined;
970
964
  createdByUserId?: string | null | undefined;
965
+ createdBy?: {
966
+ email: string;
967
+ id: string;
968
+ firstName: string;
969
+ lastName: string;
970
+ } | null | undefined;
971
971
  distanceKm?: number | null | undefined;
972
972
  }, {
973
973
  id: string;
974
974
  firstName: string;
975
975
  lastName: string;
976
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
977
+ hasTools: boolean;
978
+ hasPpe: boolean;
976
979
  createdAt: string | Date;
977
980
  updatedAt: string | Date;
978
- phoneNumbers: {
981
+ email?: string | null | undefined;
982
+ phoneNumbers?: {
979
983
  phoneNumber: string;
980
- description?: string | undefined;
981
984
  id?: string | undefined;
985
+ description?: string | undefined;
982
986
  isPrimary?: boolean | undefined;
983
- }[];
984
- hasTools: boolean;
985
- hasPpe: boolean;
986
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
987
- email?: string | null | undefined;
988
- createdBy?: {
989
- id: string;
990
- firstName: string;
991
- lastName: string;
992
- email: string;
993
- } | null | undefined;
987
+ }[] | undefined;
994
988
  nino?: string | null | undefined;
995
989
  dateOfBirth?: string | Date | null | undefined;
996
990
  bio?: string | null | undefined;
@@ -1025,6 +1019,12 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
1025
1019
  expiryDate?: string | Date | null | undefined;
1026
1020
  } | null | undefined;
1027
1021
  createdByUserId?: string | null | undefined;
1022
+ createdBy?: {
1023
+ email: string;
1024
+ id: string;
1025
+ firstName: string;
1026
+ lastName: string;
1027
+ } | null | undefined;
1028
1028
  distanceKm?: number | null | undefined;
1029
1029
  }>, "many">;
1030
1030
  totalCount: z.ZodNumber;
@@ -1033,28 +1033,23 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
1033
1033
  currentPage: z.ZodNumber;
1034
1034
  totalPages: z.ZodNumber;
1035
1035
  }, "strip", z.ZodTypeAny, {
1036
+ limit: number;
1036
1037
  items: {
1037
1038
  id: string;
1038
1039
  firstName: string;
1039
1040
  lastName: string;
1040
- createdAt: string;
1041
- updatedAt: string;
1042
1041
  phoneNumbers: {
1043
1042
  phoneNumber: string;
1044
1043
  isPrimary: boolean;
1045
- description?: string | undefined;
1046
1044
  id?: string | undefined;
1045
+ description?: string | undefined;
1047
1046
  }[];
1047
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1048
1048
  hasTools: boolean;
1049
1049
  hasPpe: boolean;
1050
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1050
+ createdAt: string;
1051
+ updatedAt: string;
1051
1052
  email?: string | null | undefined;
1052
- createdBy?: {
1053
- id: string;
1054
- firstName: string;
1055
- lastName: string;
1056
- email: string;
1057
- } | null | undefined;
1058
1053
  nino?: string | null | undefined;
1059
1054
  dateOfBirth?: string | null | undefined;
1060
1055
  bio?: string | null | undefined;
@@ -1089,36 +1084,36 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
1089
1084
  expiryDate?: string | null | undefined;
1090
1085
  } | null | undefined;
1091
1086
  createdByUserId?: string | null | undefined;
1087
+ createdBy?: {
1088
+ email: string;
1089
+ id: string;
1090
+ firstName: string;
1091
+ lastName: string;
1092
+ } | null | undefined;
1092
1093
  distanceKm?: number | null | undefined;
1093
1094
  }[];
1094
1095
  totalCount: number;
1095
- limit: number;
1096
1096
  skip: number;
1097
1097
  currentPage: number;
1098
1098
  totalPages: number;
1099
1099
  }, {
1100
+ limit: number;
1100
1101
  items: {
1101
1102
  id: string;
1102
1103
  firstName: string;
1103
1104
  lastName: string;
1105
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1106
+ hasTools: boolean;
1107
+ hasPpe: boolean;
1104
1108
  createdAt: string | Date;
1105
1109
  updatedAt: string | Date;
1106
- phoneNumbers: {
1110
+ email?: string | null | undefined;
1111
+ phoneNumbers?: {
1107
1112
  phoneNumber: string;
1108
- description?: string | undefined;
1109
1113
  id?: string | undefined;
1114
+ description?: string | undefined;
1110
1115
  isPrimary?: boolean | undefined;
1111
- }[];
1112
- hasTools: boolean;
1113
- hasPpe: boolean;
1114
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1115
- email?: string | null | undefined;
1116
- createdBy?: {
1117
- id: string;
1118
- firstName: string;
1119
- lastName: string;
1120
- email: string;
1121
- } | null | undefined;
1116
+ }[] | undefined;
1122
1117
  nino?: string | null | undefined;
1123
1118
  dateOfBirth?: string | Date | null | undefined;
1124
1119
  bio?: string | null | undefined;
@@ -1153,10 +1148,15 @@ export declare const PaginatedWorkerResponseSchema: z.ZodObject<{
1153
1148
  expiryDate?: string | Date | null | undefined;
1154
1149
  } | null | undefined;
1155
1150
  createdByUserId?: string | null | undefined;
1151
+ createdBy?: {
1152
+ email: string;
1153
+ id: string;
1154
+ firstName: string;
1155
+ lastName: string;
1156
+ } | null | undefined;
1156
1157
  distanceKm?: number | null | undefined;
1157
1158
  }[];
1158
1159
  totalCount: number;
1159
- limit: number;
1160
1160
  skip: number;
1161
1161
  currentPage: number;
1162
1162
  totalPages: number;
@@ -1277,6 +1277,7 @@ export declare const workersContractRouter: {
1277
1277
  isPrimary: boolean;
1278
1278
  description?: string | undefined;
1279
1279
  }[];
1280
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1280
1281
  trades: {
1281
1282
  tradeId: string;
1282
1283
  mainTrade: boolean;
@@ -1284,7 +1285,6 @@ export declare const workersContractRouter: {
1284
1285
  }[];
1285
1286
  hasTools: boolean;
1286
1287
  hasPpe: boolean;
1287
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1288
1288
  email?: string | null | undefined;
1289
1289
  nino?: string | null | undefined;
1290
1290
  dateOfBirth?: string | Date | null | undefined;
@@ -1326,6 +1326,7 @@ export declare const workersContractRouter: {
1326
1326
  nino?: string | null | undefined;
1327
1327
  dateOfBirth?: string | Date | null | undefined;
1328
1328
  bio?: string | null | undefined;
1329
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
1329
1330
  qualifications?: {
1330
1331
  qualificationId: string;
1331
1332
  qualificationTypeId?: string | null | undefined;
@@ -1340,7 +1341,6 @@ export declare const workersContractRouter: {
1340
1341
  address?: string | undefined;
1341
1342
  postcode?: string | undefined;
1342
1343
  } | null | undefined;
1343
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
1344
1344
  shareCode?: {
1345
1345
  code: string;
1346
1346
  expiryDate?: string | Date | null | undefined;
@@ -1357,19 +1357,19 @@ export declare const workersContractRouter: {
1357
1357
  path: z.ZodString;
1358
1358
  correlationId: z.ZodOptional<z.ZodString>;
1359
1359
  }, "strip", z.ZodTypeAny, {
1360
- statusCode: number;
1361
- message: string;
1362
1360
  code: string;
1363
- timestamp: string;
1364
1361
  path: string;
1362
+ message: string;
1363
+ statusCode: number;
1364
+ timestamp: string;
1365
1365
  details?: unknown;
1366
1366
  correlationId?: string | undefined;
1367
1367
  }, {
1368
- statusCode: number;
1369
- message: string;
1370
1368
  code: string;
1371
- timestamp: string;
1372
1369
  path: string;
1370
+ message: string;
1371
+ statusCode: number;
1372
+ timestamp: string;
1373
1373
  details?: unknown;
1374
1374
  correlationId?: string | undefined;
1375
1375
  }>;
@@ -1382,19 +1382,19 @@ export declare const workersContractRouter: {
1382
1382
  path: z.ZodString;
1383
1383
  correlationId: z.ZodOptional<z.ZodString>;
1384
1384
  }, "strip", z.ZodTypeAny, {
1385
- statusCode: number;
1386
- message: string;
1387
1385
  code: string;
1388
- timestamp: string;
1389
1386
  path: string;
1387
+ message: string;
1388
+ statusCode: number;
1389
+ timestamp: string;
1390
1390
  details?: unknown;
1391
1391
  correlationId?: string | undefined;
1392
1392
  }, {
1393
- statusCode: number;
1394
- message: string;
1395
1393
  code: string;
1396
- timestamp: string;
1397
1394
  path: string;
1395
+ message: string;
1396
+ statusCode: number;
1397
+ timestamp: string;
1398
1398
  details?: unknown;
1399
1399
  correlationId?: string | undefined;
1400
1400
  }>;
@@ -1407,19 +1407,19 @@ export declare const workersContractRouter: {
1407
1407
  path: z.ZodString;
1408
1408
  correlationId: z.ZodOptional<z.ZodString>;
1409
1409
  }, "strip", z.ZodTypeAny, {
1410
- statusCode: number;
1411
- message: string;
1412
1410
  code: string;
1413
- timestamp: string;
1414
1411
  path: string;
1412
+ message: string;
1413
+ statusCode: number;
1414
+ timestamp: string;
1415
1415
  details?: unknown;
1416
1416
  correlationId?: string | undefined;
1417
1417
  }, {
1418
- statusCode: number;
1419
- message: string;
1420
1418
  code: string;
1421
- timestamp: string;
1422
1419
  path: string;
1420
+ message: string;
1421
+ statusCode: number;
1422
+ timestamp: string;
1423
1423
  details?: unknown;
1424
1424
  correlationId?: string | undefined;
1425
1425
  }>;
@@ -1432,19 +1432,19 @@ export declare const workersContractRouter: {
1432
1432
  path: z.ZodString;
1433
1433
  correlationId: z.ZodOptional<z.ZodString>;
1434
1434
  }, "strip", z.ZodTypeAny, {
1435
- statusCode: number;
1436
- message: string;
1437
1435
  code: string;
1438
- timestamp: string;
1439
1436
  path: string;
1437
+ message: string;
1438
+ statusCode: number;
1439
+ timestamp: string;
1440
1440
  details?: unknown;
1441
1441
  correlationId?: string | undefined;
1442
1442
  }, {
1443
- statusCode: number;
1444
- message: string;
1445
1443
  code: string;
1446
- timestamp: string;
1447
1444
  path: string;
1445
+ message: string;
1446
+ statusCode: number;
1447
+ timestamp: string;
1448
1448
  details?: unknown;
1449
1449
  correlationId?: string | undefined;
1450
1450
  }>;
@@ -1453,7 +1453,7 @@ export declare const workersContractRouter: {
1453
1453
  firstName: z.ZodString;
1454
1454
  lastName: z.ZodString;
1455
1455
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1456
- phoneNumbers: z.ZodArray<z.ZodObject<{
1456
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1457
1457
  id: z.ZodOptional<z.ZodString>;
1458
1458
  phoneNumber: z.ZodString;
1459
1459
  description: z.ZodOptional<z.ZodString>;
@@ -1461,14 +1461,14 @@ export declare const workersContractRouter: {
1461
1461
  }, "strip", z.ZodTypeAny, {
1462
1462
  phoneNumber: string;
1463
1463
  isPrimary: boolean;
1464
- description?: string | undefined;
1465
1464
  id?: string | undefined;
1465
+ description?: string | undefined;
1466
1466
  }, {
1467
1467
  phoneNumber: string;
1468
- description?: string | undefined;
1469
1468
  id?: string | undefined;
1469
+ description?: string | undefined;
1470
1470
  isPrimary?: boolean | undefined;
1471
- }>, "many">;
1471
+ }>, "many">>>;
1472
1472
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1473
1473
  dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
1474
1474
  bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1560,15 +1560,15 @@ export declare const workersContractRouter: {
1560
1560
  lastName: z.ZodString;
1561
1561
  email: z.ZodString;
1562
1562
  }, "strip", z.ZodTypeAny, {
1563
+ email: string;
1563
1564
  id: string;
1564
1565
  firstName: string;
1565
1566
  lastName: string;
1566
- email: string;
1567
1567
  }, {
1568
+ email: string;
1568
1569
  id: string;
1569
1570
  firstName: string;
1570
1571
  lastName: string;
1571
- email: string;
1572
1572
  }>>>;
1573
1573
  distanceKm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1574
1574
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -1577,24 +1577,18 @@ export declare const workersContractRouter: {
1577
1577
  id: string;
1578
1578
  firstName: string;
1579
1579
  lastName: string;
1580
- createdAt: string;
1581
- updatedAt: string;
1582
1580
  phoneNumbers: {
1583
1581
  phoneNumber: string;
1584
1582
  isPrimary: boolean;
1585
- description?: string | undefined;
1586
1583
  id?: string | undefined;
1584
+ description?: string | undefined;
1587
1585
  }[];
1586
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1588
1587
  hasTools: boolean;
1589
1588
  hasPpe: boolean;
1590
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1589
+ createdAt: string;
1590
+ updatedAt: string;
1591
1591
  email?: string | null | undefined;
1592
- createdBy?: {
1593
- id: string;
1594
- firstName: string;
1595
- lastName: string;
1596
- email: string;
1597
- } | null | undefined;
1598
1592
  nino?: string | null | undefined;
1599
1593
  dateOfBirth?: string | null | undefined;
1600
1594
  bio?: string | null | undefined;
@@ -1629,29 +1623,29 @@ export declare const workersContractRouter: {
1629
1623
  expiryDate?: string | null | undefined;
1630
1624
  } | null | undefined;
1631
1625
  createdByUserId?: string | null | undefined;
1626
+ createdBy?: {
1627
+ email: string;
1628
+ id: string;
1629
+ firstName: string;
1630
+ lastName: string;
1631
+ } | null | undefined;
1632
1632
  distanceKm?: number | null | undefined;
1633
1633
  }, {
1634
1634
  id: string;
1635
1635
  firstName: string;
1636
1636
  lastName: string;
1637
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1638
+ hasTools: boolean;
1639
+ hasPpe: boolean;
1637
1640
  createdAt: string | Date;
1638
1641
  updatedAt: string | Date;
1639
- phoneNumbers: {
1642
+ email?: string | null | undefined;
1643
+ phoneNumbers?: {
1640
1644
  phoneNumber: string;
1641
- description?: string | undefined;
1642
1645
  id?: string | undefined;
1646
+ description?: string | undefined;
1643
1647
  isPrimary?: boolean | undefined;
1644
- }[];
1645
- hasTools: boolean;
1646
- hasPpe: boolean;
1647
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
1648
- email?: string | null | undefined;
1649
- createdBy?: {
1650
- id: string;
1651
- firstName: string;
1652
- lastName: string;
1653
- email: string;
1654
- } | null | undefined;
1648
+ }[] | undefined;
1655
1649
  nino?: string | null | undefined;
1656
1650
  dateOfBirth?: string | Date | null | undefined;
1657
1651
  bio?: string | null | undefined;
@@ -1686,6 +1680,12 @@ export declare const workersContractRouter: {
1686
1680
  expiryDate?: string | Date | null | undefined;
1687
1681
  } | null | undefined;
1688
1682
  createdByUserId?: string | null | undefined;
1683
+ createdBy?: {
1684
+ email: string;
1685
+ id: string;
1686
+ firstName: string;
1687
+ lastName: string;
1688
+ } | null | undefined;
1689
1689
  distanceKm?: number | null | undefined;
1690
1690
  }>;
1691
1691
  409: z.ZodObject<{
@@ -1697,19 +1697,19 @@ export declare const workersContractRouter: {
1697
1697
  path: z.ZodString;
1698
1698
  correlationId: z.ZodOptional<z.ZodString>;
1699
1699
  }, "strip", z.ZodTypeAny, {
1700
- statusCode: number;
1701
- message: string;
1702
1700
  code: string;
1703
- timestamp: string;
1704
1701
  path: string;
1702
+ message: string;
1703
+ statusCode: number;
1704
+ timestamp: string;
1705
1705
  details?: unknown;
1706
1706
  correlationId?: string | undefined;
1707
1707
  }, {
1708
- statusCode: number;
1709
- message: string;
1710
1708
  code: string;
1711
- timestamp: string;
1712
1709
  path: string;
1710
+ message: string;
1711
+ statusCode: number;
1712
+ timestamp: string;
1713
1713
  details?: unknown;
1714
1714
  correlationId?: string | undefined;
1715
1715
  }>;
@@ -1749,30 +1749,30 @@ export declare const workersContractRouter: {
1749
1749
  }, "strip", z.ZodTypeAny, {
1750
1750
  limit: number;
1751
1751
  page: number;
1752
- sortBy?: "email" | "phone" | "distance" | "nameSimilarity" | "fullName" | null | undefined;
1753
- sortOrder?: "ASC" | "DESC" | null | undefined;
1752
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
1753
+ searchTerm?: string | undefined;
1754
1754
  tradeFilters?: {
1755
1755
  tradeId: string;
1756
1756
  mainTrade?: boolean | undefined;
1757
1757
  skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
1758
1758
  }[] | undefined;
1759
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
1760
- searchTerm?: string | undefined;
1759
+ sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
1760
+ sortOrder?: "ASC" | "DESC" | null | undefined;
1761
1761
  latitude?: number | undefined;
1762
1762
  longitude?: number | undefined;
1763
1763
  radiusKm?: number | undefined;
1764
1764
  }, {
1765
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
1765
1766
  limit?: number | undefined;
1766
1767
  page?: number | undefined;
1767
- sortBy?: "email" | "phone" | "distance" | "nameSimilarity" | "fullName" | null | undefined;
1768
- sortOrder?: "ASC" | "DESC" | null | undefined;
1768
+ searchTerm?: string | undefined;
1769
1769
  tradeFilters?: {
1770
1770
  tradeId: string;
1771
1771
  mainTrade?: boolean | undefined;
1772
1772
  skillLevel?: "LABOURER" | "SKILLED" | "SUPERVISOR" | "MANAGER" | undefined;
1773
1773
  }[] | undefined;
1774
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | null | undefined;
1775
- searchTerm?: string | undefined;
1774
+ sortBy?: "nameSimilarity" | "fullName" | "distance" | "email" | "phone" | null | undefined;
1775
+ sortOrder?: "ASC" | "DESC" | null | undefined;
1776
1776
  latitude?: number | undefined;
1777
1777
  longitude?: number | undefined;
1778
1778
  radiusKm?: number | undefined;
@@ -1790,19 +1790,19 @@ export declare const workersContractRouter: {
1790
1790
  path: z.ZodString;
1791
1791
  correlationId: z.ZodOptional<z.ZodString>;
1792
1792
  }, "strip", z.ZodTypeAny, {
1793
- statusCode: number;
1794
- message: string;
1795
1793
  code: string;
1796
- timestamp: string;
1797
1794
  path: string;
1795
+ message: string;
1796
+ statusCode: number;
1797
+ timestamp: string;
1798
1798
  details?: unknown;
1799
1799
  correlationId?: string | undefined;
1800
1800
  }, {
1801
- statusCode: number;
1802
- message: string;
1803
1801
  code: string;
1804
- timestamp: string;
1805
1802
  path: string;
1803
+ message: string;
1804
+ statusCode: number;
1805
+ timestamp: string;
1806
1806
  details?: unknown;
1807
1807
  correlationId?: string | undefined;
1808
1808
  }>;
@@ -1815,19 +1815,19 @@ export declare const workersContractRouter: {
1815
1815
  path: z.ZodString;
1816
1816
  correlationId: z.ZodOptional<z.ZodString>;
1817
1817
  }, "strip", z.ZodTypeAny, {
1818
- statusCode: number;
1819
- message: string;
1820
1818
  code: string;
1821
- timestamp: string;
1822
1819
  path: string;
1820
+ message: string;
1821
+ statusCode: number;
1822
+ timestamp: string;
1823
1823
  details?: unknown;
1824
1824
  correlationId?: string | undefined;
1825
1825
  }, {
1826
- statusCode: number;
1827
- message: string;
1828
1826
  code: string;
1829
- timestamp: string;
1830
1827
  path: string;
1828
+ message: string;
1829
+ statusCode: number;
1830
+ timestamp: string;
1831
1831
  details?: unknown;
1832
1832
  correlationId?: string | undefined;
1833
1833
  }>;
@@ -1840,19 +1840,19 @@ export declare const workersContractRouter: {
1840
1840
  path: z.ZodString;
1841
1841
  correlationId: z.ZodOptional<z.ZodString>;
1842
1842
  }, "strip", z.ZodTypeAny, {
1843
- statusCode: number;
1844
- message: string;
1845
1843
  code: string;
1846
- timestamp: string;
1847
1844
  path: string;
1845
+ message: string;
1846
+ statusCode: number;
1847
+ timestamp: string;
1848
1848
  details?: unknown;
1849
1849
  correlationId?: string | undefined;
1850
1850
  }, {
1851
- statusCode: number;
1852
- message: string;
1853
1851
  code: string;
1854
- timestamp: string;
1855
1852
  path: string;
1853
+ message: string;
1854
+ statusCode: number;
1855
+ timestamp: string;
1856
1856
  details?: unknown;
1857
1857
  correlationId?: string | undefined;
1858
1858
  }>;
@@ -1865,19 +1865,19 @@ export declare const workersContractRouter: {
1865
1865
  path: z.ZodString;
1866
1866
  correlationId: z.ZodOptional<z.ZodString>;
1867
1867
  }, "strip", z.ZodTypeAny, {
1868
- statusCode: number;
1869
- message: string;
1870
1868
  code: string;
1871
- timestamp: string;
1872
1869
  path: string;
1870
+ message: string;
1871
+ statusCode: number;
1872
+ timestamp: string;
1873
1873
  details?: unknown;
1874
1874
  correlationId?: string | undefined;
1875
1875
  }, {
1876
- statusCode: number;
1877
- message: string;
1878
1876
  code: string;
1879
- timestamp: string;
1880
1877
  path: string;
1878
+ message: string;
1879
+ statusCode: number;
1880
+ timestamp: string;
1881
1881
  details?: unknown;
1882
1882
  correlationId?: string | undefined;
1883
1883
  }>;
@@ -1887,7 +1887,7 @@ export declare const workersContractRouter: {
1887
1887
  firstName: z.ZodString;
1888
1888
  lastName: z.ZodString;
1889
1889
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1890
- phoneNumbers: z.ZodArray<z.ZodObject<{
1890
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1891
1891
  id: z.ZodOptional<z.ZodString>;
1892
1892
  phoneNumber: z.ZodString;
1893
1893
  description: z.ZodOptional<z.ZodString>;
@@ -1895,14 +1895,14 @@ export declare const workersContractRouter: {
1895
1895
  }, "strip", z.ZodTypeAny, {
1896
1896
  phoneNumber: string;
1897
1897
  isPrimary: boolean;
1898
- description?: string | undefined;
1899
1898
  id?: string | undefined;
1899
+ description?: string | undefined;
1900
1900
  }, {
1901
1901
  phoneNumber: string;
1902
- description?: string | undefined;
1903
1902
  id?: string | undefined;
1903
+ description?: string | undefined;
1904
1904
  isPrimary?: boolean | undefined;
1905
- }>, "many">;
1905
+ }>, "many">>>;
1906
1906
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1907
1907
  dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
1908
1908
  bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1994,15 +1994,15 @@ export declare const workersContractRouter: {
1994
1994
  lastName: z.ZodString;
1995
1995
  email: z.ZodString;
1996
1996
  }, "strip", z.ZodTypeAny, {
1997
+ email: string;
1997
1998
  id: string;
1998
1999
  firstName: string;
1999
2000
  lastName: string;
2000
- email: string;
2001
2001
  }, {
2002
+ email: string;
2002
2003
  id: string;
2003
2004
  firstName: string;
2004
2005
  lastName: string;
2005
- email: string;
2006
2006
  }>>>;
2007
2007
  distanceKm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2008
2008
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -2011,24 +2011,18 @@ export declare const workersContractRouter: {
2011
2011
  id: string;
2012
2012
  firstName: string;
2013
2013
  lastName: string;
2014
- createdAt: string;
2015
- updatedAt: string;
2016
2014
  phoneNumbers: {
2017
2015
  phoneNumber: string;
2018
2016
  isPrimary: boolean;
2019
- description?: string | undefined;
2020
2017
  id?: string | undefined;
2018
+ description?: string | undefined;
2021
2019
  }[];
2020
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2022
2021
  hasTools: boolean;
2023
2022
  hasPpe: boolean;
2024
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2023
+ createdAt: string;
2024
+ updatedAt: string;
2025
2025
  email?: string | null | undefined;
2026
- createdBy?: {
2027
- id: string;
2028
- firstName: string;
2029
- lastName: string;
2030
- email: string;
2031
- } | null | undefined;
2032
2026
  nino?: string | null | undefined;
2033
2027
  dateOfBirth?: string | null | undefined;
2034
2028
  bio?: string | null | undefined;
@@ -2063,29 +2057,29 @@ export declare const workersContractRouter: {
2063
2057
  expiryDate?: string | null | undefined;
2064
2058
  } | null | undefined;
2065
2059
  createdByUserId?: string | null | undefined;
2060
+ createdBy?: {
2061
+ email: string;
2062
+ id: string;
2063
+ firstName: string;
2064
+ lastName: string;
2065
+ } | null | undefined;
2066
2066
  distanceKm?: number | null | undefined;
2067
2067
  }, {
2068
2068
  id: string;
2069
2069
  firstName: string;
2070
2070
  lastName: string;
2071
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2072
+ hasTools: boolean;
2073
+ hasPpe: boolean;
2071
2074
  createdAt: string | Date;
2072
2075
  updatedAt: string | Date;
2073
- phoneNumbers: {
2076
+ email?: string | null | undefined;
2077
+ phoneNumbers?: {
2074
2078
  phoneNumber: string;
2075
- description?: string | undefined;
2076
2079
  id?: string | undefined;
2080
+ description?: string | undefined;
2077
2081
  isPrimary?: boolean | undefined;
2078
- }[];
2079
- hasTools: boolean;
2080
- hasPpe: boolean;
2081
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2082
- email?: string | null | undefined;
2083
- createdBy?: {
2084
- id: string;
2085
- firstName: string;
2086
- lastName: string;
2087
- email: string;
2088
- } | null | undefined;
2082
+ }[] | undefined;
2089
2083
  nino?: string | null | undefined;
2090
2084
  dateOfBirth?: string | Date | null | undefined;
2091
2085
  bio?: string | null | undefined;
@@ -2120,6 +2114,12 @@ export declare const workersContractRouter: {
2120
2114
  expiryDate?: string | Date | null | undefined;
2121
2115
  } | null | undefined;
2122
2116
  createdByUserId?: string | null | undefined;
2117
+ createdBy?: {
2118
+ email: string;
2119
+ id: string;
2120
+ firstName: string;
2121
+ lastName: string;
2122
+ } | null | undefined;
2123
2123
  distanceKm?: number | null | undefined;
2124
2124
  }>, "many">;
2125
2125
  totalCount: z.ZodNumber;
@@ -2128,28 +2128,23 @@ export declare const workersContractRouter: {
2128
2128
  currentPage: z.ZodNumber;
2129
2129
  totalPages: z.ZodNumber;
2130
2130
  }, "strip", z.ZodTypeAny, {
2131
+ limit: number;
2131
2132
  items: {
2132
2133
  id: string;
2133
2134
  firstName: string;
2134
2135
  lastName: string;
2135
- createdAt: string;
2136
- updatedAt: string;
2137
2136
  phoneNumbers: {
2138
2137
  phoneNumber: string;
2139
2138
  isPrimary: boolean;
2140
- description?: string | undefined;
2141
2139
  id?: string | undefined;
2140
+ description?: string | undefined;
2142
2141
  }[];
2142
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2143
2143
  hasTools: boolean;
2144
2144
  hasPpe: boolean;
2145
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2145
+ createdAt: string;
2146
+ updatedAt: string;
2146
2147
  email?: string | null | undefined;
2147
- createdBy?: {
2148
- id: string;
2149
- firstName: string;
2150
- lastName: string;
2151
- email: string;
2152
- } | null | undefined;
2153
2148
  nino?: string | null | undefined;
2154
2149
  dateOfBirth?: string | null | undefined;
2155
2150
  bio?: string | null | undefined;
@@ -2184,36 +2179,36 @@ export declare const workersContractRouter: {
2184
2179
  expiryDate?: string | null | undefined;
2185
2180
  } | null | undefined;
2186
2181
  createdByUserId?: string | null | undefined;
2182
+ createdBy?: {
2183
+ email: string;
2184
+ id: string;
2185
+ firstName: string;
2186
+ lastName: string;
2187
+ } | null | undefined;
2187
2188
  distanceKm?: number | null | undefined;
2188
2189
  }[];
2189
2190
  totalCount: number;
2190
- limit: number;
2191
2191
  skip: number;
2192
2192
  currentPage: number;
2193
2193
  totalPages: number;
2194
2194
  }, {
2195
+ limit: number;
2195
2196
  items: {
2196
2197
  id: string;
2197
2198
  firstName: string;
2198
2199
  lastName: string;
2200
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2201
+ hasTools: boolean;
2202
+ hasPpe: boolean;
2199
2203
  createdAt: string | Date;
2200
2204
  updatedAt: string | Date;
2201
- phoneNumbers: {
2205
+ email?: string | null | undefined;
2206
+ phoneNumbers?: {
2202
2207
  phoneNumber: string;
2203
- description?: string | undefined;
2204
2208
  id?: string | undefined;
2209
+ description?: string | undefined;
2205
2210
  isPrimary?: boolean | undefined;
2206
- }[];
2207
- hasTools: boolean;
2208
- hasPpe: boolean;
2209
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2210
- email?: string | null | undefined;
2211
- createdBy?: {
2212
- id: string;
2213
- firstName: string;
2214
- lastName: string;
2215
- email: string;
2216
- } | null | undefined;
2211
+ }[] | undefined;
2217
2212
  nino?: string | null | undefined;
2218
2213
  dateOfBirth?: string | Date | null | undefined;
2219
2214
  bio?: string | null | undefined;
@@ -2248,10 +2243,15 @@ export declare const workersContractRouter: {
2248
2243
  expiryDate?: string | Date | null | undefined;
2249
2244
  } | null | undefined;
2250
2245
  createdByUserId?: string | null | undefined;
2246
+ createdBy?: {
2247
+ email: string;
2248
+ id: string;
2249
+ firstName: string;
2250
+ lastName: string;
2251
+ } | null | undefined;
2251
2252
  distanceKm?: number | null | undefined;
2252
2253
  }[];
2253
2254
  totalCount: number;
2254
- limit: number;
2255
2255
  skip: number;
2256
2256
  currentPage: number;
2257
2257
  totalPages: number;
@@ -2285,19 +2285,19 @@ export declare const workersContractRouter: {
2285
2285
  path: z.ZodString;
2286
2286
  correlationId: z.ZodOptional<z.ZodString>;
2287
2287
  }, "strip", z.ZodTypeAny, {
2288
- statusCode: number;
2289
- message: string;
2290
2288
  code: string;
2291
- timestamp: string;
2292
2289
  path: string;
2290
+ message: string;
2291
+ statusCode: number;
2292
+ timestamp: string;
2293
2293
  details?: unknown;
2294
2294
  correlationId?: string | undefined;
2295
2295
  }, {
2296
- statusCode: number;
2297
- message: string;
2298
2296
  code: string;
2299
- timestamp: string;
2300
2297
  path: string;
2298
+ message: string;
2299
+ statusCode: number;
2300
+ timestamp: string;
2301
2301
  details?: unknown;
2302
2302
  correlationId?: string | undefined;
2303
2303
  }>;
@@ -2310,19 +2310,19 @@ export declare const workersContractRouter: {
2310
2310
  path: z.ZodString;
2311
2311
  correlationId: z.ZodOptional<z.ZodString>;
2312
2312
  }, "strip", z.ZodTypeAny, {
2313
- statusCode: number;
2314
- message: string;
2315
2313
  code: string;
2316
- timestamp: string;
2317
2314
  path: string;
2315
+ message: string;
2316
+ statusCode: number;
2317
+ timestamp: string;
2318
2318
  details?: unknown;
2319
2319
  correlationId?: string | undefined;
2320
2320
  }, {
2321
- statusCode: number;
2322
- message: string;
2323
2321
  code: string;
2324
- timestamp: string;
2325
2322
  path: string;
2323
+ message: string;
2324
+ statusCode: number;
2325
+ timestamp: string;
2326
2326
  details?: unknown;
2327
2327
  correlationId?: string | undefined;
2328
2328
  }>;
@@ -2335,19 +2335,19 @@ export declare const workersContractRouter: {
2335
2335
  path: z.ZodString;
2336
2336
  correlationId: z.ZodOptional<z.ZodString>;
2337
2337
  }, "strip", z.ZodTypeAny, {
2338
- statusCode: number;
2339
- message: string;
2340
2338
  code: string;
2341
- timestamp: string;
2342
2339
  path: string;
2343
- details?: unknown;
2344
- correlationId?: string | undefined;
2345
- }, {
2346
- statusCode: number;
2347
2340
  message: string;
2348
- code: string;
2341
+ statusCode: number;
2349
2342
  timestamp: string;
2343
+ details?: unknown;
2344
+ correlationId?: string | undefined;
2345
+ }, {
2346
+ code: string;
2350
2347
  path: string;
2348
+ message: string;
2349
+ statusCode: number;
2350
+ timestamp: string;
2351
2351
  details?: unknown;
2352
2352
  correlationId?: string | undefined;
2353
2353
  }>;
@@ -2360,19 +2360,19 @@ export declare const workersContractRouter: {
2360
2360
  path: z.ZodString;
2361
2361
  correlationId: z.ZodOptional<z.ZodString>;
2362
2362
  }, "strip", z.ZodTypeAny, {
2363
- statusCode: number;
2364
- message: string;
2365
2363
  code: string;
2366
- timestamp: string;
2367
2364
  path: string;
2365
+ message: string;
2366
+ statusCode: number;
2367
+ timestamp: string;
2368
2368
  details?: unknown;
2369
2369
  correlationId?: string | undefined;
2370
2370
  }, {
2371
- statusCode: number;
2372
- message: string;
2373
2371
  code: string;
2374
- timestamp: string;
2375
2372
  path: string;
2373
+ message: string;
2374
+ statusCode: number;
2375
+ timestamp: string;
2376
2376
  details?: unknown;
2377
2377
  correlationId?: string | undefined;
2378
2378
  }>;
@@ -2381,7 +2381,7 @@ export declare const workersContractRouter: {
2381
2381
  firstName: z.ZodString;
2382
2382
  lastName: z.ZodString;
2383
2383
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2384
- phoneNumbers: z.ZodArray<z.ZodObject<{
2384
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2385
2385
  id: z.ZodOptional<z.ZodString>;
2386
2386
  phoneNumber: z.ZodString;
2387
2387
  description: z.ZodOptional<z.ZodString>;
@@ -2389,14 +2389,14 @@ export declare const workersContractRouter: {
2389
2389
  }, "strip", z.ZodTypeAny, {
2390
2390
  phoneNumber: string;
2391
2391
  isPrimary: boolean;
2392
- description?: string | undefined;
2393
2392
  id?: string | undefined;
2393
+ description?: string | undefined;
2394
2394
  }, {
2395
2395
  phoneNumber: string;
2396
- description?: string | undefined;
2397
2396
  id?: string | undefined;
2397
+ description?: string | undefined;
2398
2398
  isPrimary?: boolean | undefined;
2399
- }>, "many">;
2399
+ }>, "many">>>;
2400
2400
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2401
2401
  dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
2402
2402
  bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2488,15 +2488,15 @@ export declare const workersContractRouter: {
2488
2488
  lastName: z.ZodString;
2489
2489
  email: z.ZodString;
2490
2490
  }, "strip", z.ZodTypeAny, {
2491
+ email: string;
2491
2492
  id: string;
2492
2493
  firstName: string;
2493
2494
  lastName: string;
2494
- email: string;
2495
2495
  }, {
2496
+ email: string;
2496
2497
  id: string;
2497
2498
  firstName: string;
2498
2499
  lastName: string;
2499
- email: string;
2500
2500
  }>>>;
2501
2501
  distanceKm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2502
2502
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -2505,24 +2505,18 @@ export declare const workersContractRouter: {
2505
2505
  id: string;
2506
2506
  firstName: string;
2507
2507
  lastName: string;
2508
- createdAt: string;
2509
- updatedAt: string;
2510
2508
  phoneNumbers: {
2511
2509
  phoneNumber: string;
2512
2510
  isPrimary: boolean;
2513
- description?: string | undefined;
2514
2511
  id?: string | undefined;
2512
+ description?: string | undefined;
2515
2513
  }[];
2514
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2516
2515
  hasTools: boolean;
2517
2516
  hasPpe: boolean;
2518
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2517
+ createdAt: string;
2518
+ updatedAt: string;
2519
2519
  email?: string | null | undefined;
2520
- createdBy?: {
2521
- id: string;
2522
- firstName: string;
2523
- lastName: string;
2524
- email: string;
2525
- } | null | undefined;
2526
2520
  nino?: string | null | undefined;
2527
2521
  dateOfBirth?: string | null | undefined;
2528
2522
  bio?: string | null | undefined;
@@ -2557,29 +2551,29 @@ export declare const workersContractRouter: {
2557
2551
  expiryDate?: string | null | undefined;
2558
2552
  } | null | undefined;
2559
2553
  createdByUserId?: string | null | undefined;
2554
+ createdBy?: {
2555
+ email: string;
2556
+ id: string;
2557
+ firstName: string;
2558
+ lastName: string;
2559
+ } | null | undefined;
2560
2560
  distanceKm?: number | null | undefined;
2561
2561
  }, {
2562
2562
  id: string;
2563
2563
  firstName: string;
2564
2564
  lastName: string;
2565
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2566
+ hasTools: boolean;
2567
+ hasPpe: boolean;
2565
2568
  createdAt: string | Date;
2566
2569
  updatedAt: string | Date;
2567
- phoneNumbers: {
2570
+ email?: string | null | undefined;
2571
+ phoneNumbers?: {
2568
2572
  phoneNumber: string;
2569
- description?: string | undefined;
2570
2573
  id?: string | undefined;
2574
+ description?: string | undefined;
2571
2575
  isPrimary?: boolean | undefined;
2572
- }[];
2573
- hasTools: boolean;
2574
- hasPpe: boolean;
2575
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
2576
- email?: string | null | undefined;
2577
- createdBy?: {
2578
- id: string;
2579
- firstName: string;
2580
- lastName: string;
2581
- email: string;
2582
- } | null | undefined;
2576
+ }[] | undefined;
2583
2577
  nino?: string | null | undefined;
2584
2578
  dateOfBirth?: string | Date | null | undefined;
2585
2579
  bio?: string | null | undefined;
@@ -2614,6 +2608,12 @@ export declare const workersContractRouter: {
2614
2608
  expiryDate?: string | Date | null | undefined;
2615
2609
  } | null | undefined;
2616
2610
  createdByUserId?: string | null | undefined;
2611
+ createdBy?: {
2612
+ email: string;
2613
+ id: string;
2614
+ firstName: string;
2615
+ lastName: string;
2616
+ } | null | undefined;
2617
2617
  distanceKm?: number | null | undefined;
2618
2618
  }>;
2619
2619
  404: z.ZodObject<{
@@ -2625,19 +2625,19 @@ export declare const workersContractRouter: {
2625
2625
  path: z.ZodString;
2626
2626
  correlationId: z.ZodOptional<z.ZodString>;
2627
2627
  }, "strip", z.ZodTypeAny, {
2628
- statusCode: number;
2629
- message: string;
2630
2628
  code: string;
2631
- timestamp: string;
2632
2629
  path: string;
2630
+ message: string;
2631
+ statusCode: number;
2632
+ timestamp: string;
2633
2633
  details?: unknown;
2634
2634
  correlationId?: string | undefined;
2635
2635
  }, {
2636
- statusCode: number;
2637
- message: string;
2638
2636
  code: string;
2639
- timestamp: string;
2640
2637
  path: string;
2638
+ message: string;
2639
+ statusCode: number;
2640
+ timestamp: string;
2641
2641
  details?: unknown;
2642
2642
  correlationId?: string | undefined;
2643
2643
  }>;
@@ -2669,14 +2669,14 @@ export declare const workersContractRouter: {
2669
2669
  description: z.ZodOptional<z.ZodString>;
2670
2670
  isPrimary: z.ZodOptional<z.ZodBoolean>;
2671
2671
  }, "strip", z.ZodTypeAny, {
2672
- description?: string | undefined;
2673
2672
  id?: string | undefined;
2674
2673
  phoneNumber?: string | undefined;
2674
+ description?: string | undefined;
2675
2675
  isPrimary?: boolean | undefined;
2676
2676
  }, {
2677
- description?: string | undefined;
2678
2677
  id?: string | undefined;
2679
2678
  phoneNumber?: string | undefined;
2679
+ description?: string | undefined;
2680
2680
  isPrimary?: boolean | undefined;
2681
2681
  }>, "many">>;
2682
2682
  nino: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -2749,18 +2749,19 @@ export declare const workersContractRouter: {
2749
2749
  expiryDate?: string | Date | null | undefined;
2750
2750
  }>>>;
2751
2751
  }, "strip", z.ZodTypeAny, {
2752
+ email?: string | null | undefined;
2752
2753
  firstName?: string | undefined;
2753
2754
  lastName?: string | undefined;
2754
- email?: string | null | undefined;
2755
2755
  phoneNumbers?: {
2756
- description?: string | undefined;
2757
2756
  id?: string | undefined;
2758
2757
  phoneNumber?: string | undefined;
2758
+ description?: string | undefined;
2759
2759
  isPrimary?: boolean | undefined;
2760
2760
  }[] | undefined;
2761
2761
  nino?: string | null | undefined;
2762
2762
  dateOfBirth?: string | Date | null | undefined;
2763
2763
  bio?: string | null | undefined;
2764
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
2764
2765
  trades?: {
2765
2766
  tradeId: string;
2766
2767
  mainTrade: boolean;
@@ -2784,24 +2785,24 @@ export declare const workersContractRouter: {
2784
2785
  address?: string | undefined;
2785
2786
  postcode?: string | undefined;
2786
2787
  } | null | undefined;
2787
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
2788
2788
  shareCode?: {
2789
2789
  code: string;
2790
2790
  expiryDate?: string | null | undefined;
2791
2791
  } | null | undefined;
2792
2792
  }, {
2793
+ email?: string | null | undefined;
2793
2794
  firstName?: string | undefined;
2794
2795
  lastName?: string | undefined;
2795
- email?: string | null | undefined;
2796
2796
  phoneNumbers?: {
2797
- description?: string | undefined;
2798
2797
  id?: string | undefined;
2799
2798
  phoneNumber?: string | undefined;
2799
+ description?: string | undefined;
2800
2800
  isPrimary?: boolean | undefined;
2801
2801
  }[] | undefined;
2802
2802
  nino?: string | null | undefined;
2803
2803
  dateOfBirth?: string | Date | null | undefined;
2804
2804
  bio?: string | null | undefined;
2805
+ availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
2805
2806
  trades?: {
2806
2807
  tradeId: string;
2807
2808
  id?: string | undefined;
@@ -2825,7 +2826,6 @@ export declare const workersContractRouter: {
2825
2826
  address?: string | undefined;
2826
2827
  postcode?: string | undefined;
2827
2828
  } | null | undefined;
2828
- availability?: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE" | undefined;
2829
2829
  shareCode?: {
2830
2830
  code: string;
2831
2831
  expiryDate?: string | Date | null | undefined;
@@ -2842,19 +2842,19 @@ export declare const workersContractRouter: {
2842
2842
  path: z.ZodString;
2843
2843
  correlationId: z.ZodOptional<z.ZodString>;
2844
2844
  }, "strip", z.ZodTypeAny, {
2845
- statusCode: number;
2846
- message: string;
2847
2845
  code: string;
2848
- timestamp: string;
2849
2846
  path: string;
2847
+ message: string;
2848
+ statusCode: number;
2849
+ timestamp: string;
2850
2850
  details?: unknown;
2851
2851
  correlationId?: string | undefined;
2852
2852
  }, {
2853
- statusCode: number;
2854
- message: string;
2855
2853
  code: string;
2856
- timestamp: string;
2857
2854
  path: string;
2855
+ message: string;
2856
+ statusCode: number;
2857
+ timestamp: string;
2858
2858
  details?: unknown;
2859
2859
  correlationId?: string | undefined;
2860
2860
  }>;
@@ -2867,19 +2867,19 @@ export declare const workersContractRouter: {
2867
2867
  path: z.ZodString;
2868
2868
  correlationId: z.ZodOptional<z.ZodString>;
2869
2869
  }, "strip", z.ZodTypeAny, {
2870
- statusCode: number;
2871
- message: string;
2872
2870
  code: string;
2873
- timestamp: string;
2874
2871
  path: string;
2872
+ message: string;
2873
+ statusCode: number;
2874
+ timestamp: string;
2875
2875
  details?: unknown;
2876
2876
  correlationId?: string | undefined;
2877
2877
  }, {
2878
- statusCode: number;
2879
- message: string;
2880
2878
  code: string;
2881
- timestamp: string;
2882
2879
  path: string;
2880
+ message: string;
2881
+ statusCode: number;
2882
+ timestamp: string;
2883
2883
  details?: unknown;
2884
2884
  correlationId?: string | undefined;
2885
2885
  }>;
@@ -2892,19 +2892,19 @@ export declare const workersContractRouter: {
2892
2892
  path: z.ZodString;
2893
2893
  correlationId: z.ZodOptional<z.ZodString>;
2894
2894
  }, "strip", z.ZodTypeAny, {
2895
- statusCode: number;
2896
- message: string;
2897
2895
  code: string;
2898
- timestamp: string;
2899
2896
  path: string;
2897
+ message: string;
2898
+ statusCode: number;
2899
+ timestamp: string;
2900
2900
  details?: unknown;
2901
2901
  correlationId?: string | undefined;
2902
2902
  }, {
2903
- statusCode: number;
2904
- message: string;
2905
2903
  code: string;
2906
- timestamp: string;
2907
2904
  path: string;
2905
+ message: string;
2906
+ statusCode: number;
2907
+ timestamp: string;
2908
2908
  details?: unknown;
2909
2909
  correlationId?: string | undefined;
2910
2910
  }>;
@@ -2917,19 +2917,19 @@ export declare const workersContractRouter: {
2917
2917
  path: z.ZodString;
2918
2918
  correlationId: z.ZodOptional<z.ZodString>;
2919
2919
  }, "strip", z.ZodTypeAny, {
2920
- statusCode: number;
2921
- message: string;
2922
2920
  code: string;
2923
- timestamp: string;
2924
2921
  path: string;
2922
+ message: string;
2923
+ statusCode: number;
2924
+ timestamp: string;
2925
2925
  details?: unknown;
2926
2926
  correlationId?: string | undefined;
2927
2927
  }, {
2928
- statusCode: number;
2929
- message: string;
2930
2928
  code: string;
2931
- timestamp: string;
2932
2929
  path: string;
2930
+ message: string;
2931
+ statusCode: number;
2932
+ timestamp: string;
2933
2933
  details?: unknown;
2934
2934
  correlationId?: string | undefined;
2935
2935
  }>;
@@ -2938,7 +2938,7 @@ export declare const workersContractRouter: {
2938
2938
  firstName: z.ZodString;
2939
2939
  lastName: z.ZodString;
2940
2940
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2941
- phoneNumbers: z.ZodArray<z.ZodObject<{
2941
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2942
2942
  id: z.ZodOptional<z.ZodString>;
2943
2943
  phoneNumber: z.ZodString;
2944
2944
  description: z.ZodOptional<z.ZodString>;
@@ -2946,14 +2946,14 @@ export declare const workersContractRouter: {
2946
2946
  }, "strip", z.ZodTypeAny, {
2947
2947
  phoneNumber: string;
2948
2948
  isPrimary: boolean;
2949
- description?: string | undefined;
2950
2949
  id?: string | undefined;
2950
+ description?: string | undefined;
2951
2951
  }, {
2952
2952
  phoneNumber: string;
2953
- description?: string | undefined;
2954
2953
  id?: string | undefined;
2954
+ description?: string | undefined;
2955
2955
  isPrimary?: boolean | undefined;
2956
- }>, "many">;
2956
+ }>, "many">>>;
2957
2957
  nino: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2958
2958
  dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
2959
2959
  bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3045,15 +3045,15 @@ export declare const workersContractRouter: {
3045
3045
  lastName: z.ZodString;
3046
3046
  email: z.ZodString;
3047
3047
  }, "strip", z.ZodTypeAny, {
3048
+ email: string;
3048
3049
  id: string;
3049
3050
  firstName: string;
3050
3051
  lastName: string;
3051
- email: string;
3052
3052
  }, {
3053
+ email: string;
3053
3054
  id: string;
3054
3055
  firstName: string;
3055
3056
  lastName: string;
3056
- email: string;
3057
3057
  }>>>;
3058
3058
  distanceKm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3059
3059
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
@@ -3062,24 +3062,18 @@ export declare const workersContractRouter: {
3062
3062
  id: string;
3063
3063
  firstName: string;
3064
3064
  lastName: string;
3065
- createdAt: string;
3066
- updatedAt: string;
3067
3065
  phoneNumbers: {
3068
3066
  phoneNumber: string;
3069
3067
  isPrimary: boolean;
3070
- description?: string | undefined;
3071
3068
  id?: string | undefined;
3069
+ description?: string | undefined;
3072
3070
  }[];
3071
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3073
3072
  hasTools: boolean;
3074
3073
  hasPpe: boolean;
3075
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3074
+ createdAt: string;
3075
+ updatedAt: string;
3076
3076
  email?: string | null | undefined;
3077
- createdBy?: {
3078
- id: string;
3079
- firstName: string;
3080
- lastName: string;
3081
- email: string;
3082
- } | null | undefined;
3083
3077
  nino?: string | null | undefined;
3084
3078
  dateOfBirth?: string | null | undefined;
3085
3079
  bio?: string | null | undefined;
@@ -3114,29 +3108,29 @@ export declare const workersContractRouter: {
3114
3108
  expiryDate?: string | null | undefined;
3115
3109
  } | null | undefined;
3116
3110
  createdByUserId?: string | null | undefined;
3111
+ createdBy?: {
3112
+ email: string;
3113
+ id: string;
3114
+ firstName: string;
3115
+ lastName: string;
3116
+ } | null | undefined;
3117
3117
  distanceKm?: number | null | undefined;
3118
3118
  }, {
3119
3119
  id: string;
3120
3120
  firstName: string;
3121
3121
  lastName: string;
3122
+ availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3123
+ hasTools: boolean;
3124
+ hasPpe: boolean;
3122
3125
  createdAt: string | Date;
3123
3126
  updatedAt: string | Date;
3124
- phoneNumbers: {
3127
+ email?: string | null | undefined;
3128
+ phoneNumbers?: {
3125
3129
  phoneNumber: string;
3126
- description?: string | undefined;
3127
3130
  id?: string | undefined;
3131
+ description?: string | undefined;
3128
3132
  isPrimary?: boolean | undefined;
3129
- }[];
3130
- hasTools: boolean;
3131
- hasPpe: boolean;
3132
- availability: "AVAILABLE" | "PARTIALLY_AVAILABLE" | "UNAVAILABLE";
3133
- email?: string | null | undefined;
3134
- createdBy?: {
3135
- id: string;
3136
- firstName: string;
3137
- lastName: string;
3138
- email: string;
3139
- } | null | undefined;
3133
+ }[] | undefined;
3140
3134
  nino?: string | null | undefined;
3141
3135
  dateOfBirth?: string | Date | null | undefined;
3142
3136
  bio?: string | null | undefined;
@@ -3171,6 +3165,12 @@ export declare const workersContractRouter: {
3171
3165
  expiryDate?: string | Date | null | undefined;
3172
3166
  } | null | undefined;
3173
3167
  createdByUserId?: string | null | undefined;
3168
+ createdBy?: {
3169
+ email: string;
3170
+ id: string;
3171
+ firstName: string;
3172
+ lastName: string;
3173
+ } | null | undefined;
3174
3174
  distanceKm?: number | null | undefined;
3175
3175
  }>;
3176
3176
  404: z.ZodObject<{
@@ -3182,19 +3182,19 @@ export declare const workersContractRouter: {
3182
3182
  path: z.ZodString;
3183
3183
  correlationId: z.ZodOptional<z.ZodString>;
3184
3184
  }, "strip", z.ZodTypeAny, {
3185
- statusCode: number;
3186
- message: string;
3187
3185
  code: string;
3188
- timestamp: string;
3189
3186
  path: string;
3187
+ message: string;
3188
+ statusCode: number;
3189
+ timestamp: string;
3190
3190
  details?: unknown;
3191
3191
  correlationId?: string | undefined;
3192
3192
  }, {
3193
- statusCode: number;
3194
- message: string;
3195
3193
  code: string;
3196
- timestamp: string;
3197
3194
  path: string;
3195
+ message: string;
3196
+ statusCode: number;
3197
+ timestamp: string;
3198
3198
  details?: unknown;
3199
3199
  correlationId?: string | undefined;
3200
3200
  }>;
@@ -3207,19 +3207,19 @@ export declare const workersContractRouter: {
3207
3207
  path: z.ZodString;
3208
3208
  correlationId: z.ZodOptional<z.ZodString>;
3209
3209
  }, "strip", z.ZodTypeAny, {
3210
- statusCode: number;
3211
- message: string;
3212
3210
  code: string;
3213
- timestamp: string;
3214
3211
  path: string;
3212
+ message: string;
3213
+ statusCode: number;
3214
+ timestamp: string;
3215
3215
  details?: unknown;
3216
3216
  correlationId?: string | undefined;
3217
3217
  }, {
3218
- statusCode: number;
3219
- message: string;
3220
3218
  code: string;
3221
- timestamp: string;
3222
3219
  path: string;
3220
+ message: string;
3221
+ statusCode: number;
3222
+ timestamp: string;
3223
3223
  details?: unknown;
3224
3224
  correlationId?: string | undefined;
3225
3225
  }>;
@@ -3253,19 +3253,19 @@ export declare const workersContractRouter: {
3253
3253
  path: z.ZodString;
3254
3254
  correlationId: z.ZodOptional<z.ZodString>;
3255
3255
  }, "strip", z.ZodTypeAny, {
3256
- statusCode: number;
3257
- message: string;
3258
3256
  code: string;
3259
- timestamp: string;
3260
3257
  path: string;
3258
+ message: string;
3259
+ statusCode: number;
3260
+ timestamp: string;
3261
3261
  details?: unknown;
3262
3262
  correlationId?: string | undefined;
3263
3263
  }, {
3264
- statusCode: number;
3265
- message: string;
3266
3264
  code: string;
3267
- timestamp: string;
3268
3265
  path: string;
3266
+ message: string;
3267
+ statusCode: number;
3268
+ timestamp: string;
3269
3269
  details?: unknown;
3270
3270
  correlationId?: string | undefined;
3271
3271
  }>;
@@ -3278,19 +3278,19 @@ export declare const workersContractRouter: {
3278
3278
  path: z.ZodString;
3279
3279
  correlationId: z.ZodOptional<z.ZodString>;
3280
3280
  }, "strip", z.ZodTypeAny, {
3281
- statusCode: number;
3282
- message: string;
3283
3281
  code: string;
3284
- timestamp: string;
3285
3282
  path: string;
3283
+ message: string;
3284
+ statusCode: number;
3285
+ timestamp: string;
3286
3286
  details?: unknown;
3287
3287
  correlationId?: string | undefined;
3288
3288
  }, {
3289
- statusCode: number;
3290
- message: string;
3291
3289
  code: string;
3292
- timestamp: string;
3293
3290
  path: string;
3291
+ message: string;
3292
+ statusCode: number;
3293
+ timestamp: string;
3294
3294
  details?: unknown;
3295
3295
  correlationId?: string | undefined;
3296
3296
  }>;
@@ -3303,19 +3303,19 @@ export declare const workersContractRouter: {
3303
3303
  path: z.ZodString;
3304
3304
  correlationId: z.ZodOptional<z.ZodString>;
3305
3305
  }, "strip", z.ZodTypeAny, {
3306
- statusCode: number;
3307
- message: string;
3308
3306
  code: string;
3309
- timestamp: string;
3310
3307
  path: string;
3308
+ message: string;
3309
+ statusCode: number;
3310
+ timestamp: string;
3311
3311
  details?: unknown;
3312
3312
  correlationId?: string | undefined;
3313
3313
  }, {
3314
- statusCode: number;
3315
- message: string;
3316
3314
  code: string;
3317
- timestamp: string;
3318
3315
  path: string;
3316
+ message: string;
3317
+ statusCode: number;
3318
+ timestamp: string;
3319
3319
  details?: unknown;
3320
3320
  correlationId?: string | undefined;
3321
3321
  }>;
@@ -3328,19 +3328,19 @@ export declare const workersContractRouter: {
3328
3328
  path: z.ZodString;
3329
3329
  correlationId: z.ZodOptional<z.ZodString>;
3330
3330
  }, "strip", z.ZodTypeAny, {
3331
- statusCode: number;
3332
- message: string;
3333
3331
  code: string;
3334
- timestamp: string;
3335
3332
  path: string;
3333
+ message: string;
3334
+ statusCode: number;
3335
+ timestamp: string;
3336
3336
  details?: unknown;
3337
3337
  correlationId?: string | undefined;
3338
3338
  }, {
3339
- statusCode: number;
3340
- message: string;
3341
3339
  code: string;
3342
- timestamp: string;
3343
3340
  path: string;
3341
+ message: string;
3342
+ statusCode: number;
3343
+ timestamp: string;
3344
3344
  details?: unknown;
3345
3345
  correlationId?: string | undefined;
3346
3346
  }>;
@@ -3354,19 +3354,19 @@ export declare const workersContractRouter: {
3354
3354
  path: z.ZodString;
3355
3355
  correlationId: z.ZodOptional<z.ZodString>;
3356
3356
  }, "strip", z.ZodTypeAny, {
3357
- statusCode: number;
3358
- message: string;
3359
3357
  code: string;
3360
- timestamp: string;
3361
3358
  path: string;
3359
+ message: string;
3360
+ statusCode: number;
3361
+ timestamp: string;
3362
3362
  details?: unknown;
3363
3363
  correlationId?: string | undefined;
3364
3364
  }, {
3365
- statusCode: number;
3366
- message: string;
3367
3365
  code: string;
3368
- timestamp: string;
3369
3366
  path: string;
3367
+ message: string;
3368
+ statusCode: number;
3369
+ timestamp: string;
3370
3370
  details?: unknown;
3371
3371
  correlationId?: string | undefined;
3372
3372
  }>;