@dakkitor/api-contracts 1.1.121 → 1.1.122

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.
@@ -1 +1 @@
1
- {"version":3,"file":"workers.contract.d.ts","sourceRoot":"","sources":["../../contracts/workers/workers.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,kBAAkB,gEAI7B,CAAC;AAIH,eAAO,MAAM,0BAA0B,yEAEM,CAAC;AAE9C,eAAO,MAAM,mBAAmB,+DAGM,CAAC;AAEvC,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAIhE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAElC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAExC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;EAExC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAMM,CAAC;AAErC,eAAO,MAAM,uBAAuB;;;;;;;;;EAKM,CAAC;AAE3C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;EA6BM,CAAC;AAE7C,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;EAiBM,CAAC;AAEnD,eAAO,MAAM,eAAe;;;;;;;;;EAsBxB,CAAC;AAEL,eAAO,MAAM,iBAAiB;;;;;;;;;EAQM,CAAC;AAErC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAK3B,CAAC;AAIH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFjC,CAAC"}
@@ -13,27 +13,27 @@ const users_contract_1 = require("../users/users.contract");
13
13
  (0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
14
14
  // --- Enums ---
15
15
  exports.AvailabilitySchema = zod_1.z.enum([
16
- 'AVAILABLE',
17
- 'PARTIALLY_AVAILABLE',
18
- 'UNAVAILABLE',
16
+ "AVAILABLE",
17
+ "PARTIALLY_AVAILABLE",
18
+ "UNAVAILABLE",
19
19
  ]);
20
20
  // EnglishLevelSchema and NationalitySchema are now imported from common-schemas
21
21
  exports.WorkerSortableFieldsSchema = zod_1.z
22
- .enum(['nameSimilarity', 'fullName', 'distance', 'email', 'phone'])
23
- .openapi({ title: 'WorkerSortableFields' });
22
+ .enum(["nameSimilarity", "fullName", "distance", "email", "phone"])
23
+ .openapi({ title: "WorkerSortableFields" });
24
24
  exports.BooleanFilterSchema = zod_1.z
25
- .enum(['only_with', 'only_without', 'all'])
26
- .default('all')
27
- .openapi({ title: 'BooleanFilter' });
25
+ .enum(["only_with", "only_without", "all"])
26
+ .default("all")
27
+ .openapi({ title: "BooleanFilter" });
28
28
  // --- Nested Schemas ---
29
29
  exports.WorkerPhoneNumberSchema = common_schemas_1.PhoneNumberResponseSchema.openapi({
30
- title: 'WorkerPhoneNumber',
30
+ title: "WorkerPhoneNumber",
31
31
  });
32
32
  exports.CreateWorkerPhoneNumberSchema = common_schemas_1.CreatePhoneNumberSchema.openapi({
33
- title: 'CreateWorkerPhoneNumber',
33
+ title: "CreateWorkerPhoneNumber",
34
34
  });
35
35
  exports.UpsertWorkerPhoneNumberSchema = common_schemas_1.UpsertPhoneNumberSchema.openapi({
36
- title: 'UpsertWorkerPhoneNumber',
36
+ title: "UpsertWorkerPhoneNumber",
37
37
  });
38
38
  exports.WorkerTradeSchema = zod_1.z
39
39
  .object({
@@ -41,40 +41,40 @@ exports.WorkerTradeSchema = zod_1.z
41
41
  tradeId: zod_1.z.string().uuid(),
42
42
  mainTrade: zod_1.z.boolean().default(false),
43
43
  })
44
- .openapi({ title: 'WorkerTrade' });
44
+ .openapi({ title: "WorkerTrade" });
45
45
  exports.CreateWorkerTradeSchema = zod_1.z
46
46
  .object({
47
- tradeId: zod_1.z.string().uuid({ message: 'Trade must be selected' }),
47
+ tradeId: zod_1.z.string().uuid({ message: "Trade must be selected" }),
48
48
  mainTrade: zod_1.z.boolean().default(false),
49
49
  })
50
- .openapi({ title: 'CreateWorkerTrade' });
50
+ .openapi({ title: "CreateWorkerTrade" });
51
51
  exports.WorkerQualificationSchema = zod_1.z
52
52
  .object({
53
53
  id: zod_1.z.string().uuid().optional(),
54
54
  qualificationId: zod_1.z.string().uuid(),
55
- qualificationTypeId: zod_1.z.preprocess((val) => (val === '' ? null : val), zod_1.z.string().uuid().optional().nullable()),
55
+ qualificationTypeId: zod_1.z.preprocess((val) => (val === "" ? null : val), zod_1.z.string().uuid().optional().nullable()),
56
56
  issueDate: zod_1.z
57
57
  .union([zod_1.z.string().date(), zod_1.z.date()])
58
- .transform((val) => val instanceof Date ? val.toISOString().split('T')[0] : val)
58
+ .transform((val) => val instanceof Date ? val.toISOString().split("T")[0] : val)
59
59
  .optional()
60
60
  .nullable(),
61
61
  expiryDate: zod_1.z
62
62
  .union([zod_1.z.string().date(), zod_1.z.date()])
63
- .transform((val) => val instanceof Date ? val.toISOString().split('T')[0] : val)
63
+ .transform((val) => val instanceof Date ? val.toISOString().split("T")[0] : val)
64
64
  .optional()
65
65
  .nullable(),
66
66
  referenceNumber: zod_1.z
67
67
  .string()
68
68
  .optional()
69
69
  .nullable()
70
- .describe('Reference Number'),
70
+ .describe("Reference Number"),
71
71
  proofDocumentFileId: zod_1.z.string().uuid().optional().nullable(),
72
72
  })
73
- .openapi({ title: 'WorkerQualification' });
73
+ .openapi({ title: "WorkerQualification" });
74
74
  exports.CreateWorkerQualificationSchema = zod_1.z
75
75
  .object({
76
76
  qualificationId: zod_1.z.string().uuid(),
77
- qualificationTypeId: zod_1.z.preprocess((val) => (val === '' ? null : val), zod_1.z.string().uuid().optional().nullable()),
77
+ qualificationTypeId: zod_1.z.preprocess((val) => (val === "" ? null : val), zod_1.z.string().uuid().optional().nullable()),
78
78
  issueDate: zod_1.z.string().date().optional().nullable(),
79
79
  expiryDate: zod_1.z.string().date().optional().nullable(),
80
80
  referenceNumber: zod_1.z
@@ -82,36 +82,36 @@ exports.CreateWorkerQualificationSchema = zod_1.z
82
82
  .max(255)
83
83
  .optional()
84
84
  .nullable()
85
- .describe('Reference Number'),
85
+ .describe("Reference Number"),
86
86
  proofDocumentFileId: zod_1.z.string().uuid().optional().nullable(),
87
87
  })
88
- .openapi({ title: 'CreateWorkerQualification' });
88
+ .openapi({ title: "CreateWorkerQualification" });
89
89
  exports.ShareCodeSchema = zod_1.z
90
90
  .object({
91
91
  code: zod_1.z
92
92
  .string()
93
- .transform((val) => val.toUpperCase().replace(/\s/g, ''))
94
- .refine((val) => val === '' || /^[A-Z0-9]{9}$/.test(val), {
95
- message: 'Share code must be 9 alphanumeric characters (e.g., ABC 123 XYZ)',
93
+ .transform((val) => val.toUpperCase().replace(/\s/g, ""))
94
+ .refine((val) => val === "" || /^[A-Z0-9]{9}$/.test(val), {
95
+ message: "Share code must be 9 alphanumeric characters (e.g., ABC 123 XYZ)",
96
96
  })
97
- .describe('Enter share code (e.g., ABC 123 XYZ)'),
97
+ .describe("Enter share code (e.g., ABC 123 XYZ)"),
98
98
  expiryDate: zod_1.z
99
99
  .union([zod_1.z.string().date(), zod_1.z.date()])
100
- .transform((val) => val instanceof Date ? val.toISOString().split('T')[0] : val)
100
+ .transform((val) => val instanceof Date ? val.toISOString().split("T")[0] : val)
101
101
  .optional()
102
102
  .nullable()
103
- .describe('Enter expiry date for the share code'),
103
+ .describe("Enter expiry date for the share code"),
104
104
  })
105
105
  .openapi({
106
- title: 'ShareCode',
107
- description: 'Share code information for right to work verification',
106
+ title: "ShareCode",
107
+ description: "Share code information for right to work verification",
108
108
  });
109
109
  exports.TradeFilterSchema = zod_1.z
110
110
  .object({
111
111
  tradeId: zod_1.z.string().uuid(),
112
- mainTrade: zod_1.z.preprocess((val) => (val === 'true' ? true : val === 'false' ? false : val), zod_1.z.boolean().optional()),
112
+ mainTrade: zod_1.z.preprocess((val) => (val === "true" ? true : val === "false" ? false : val), zod_1.z.boolean().optional()),
113
113
  })
114
- .openapi({ title: 'TradeFilter' });
114
+ .openapi({ title: "TradeFilter" });
115
115
  exports.WorkerUserSchema = zod_1.z.object({
116
116
  id: zod_1.z.string().uuid(),
117
117
  firstName: zod_1.z.string(),
@@ -121,291 +121,293 @@ exports.WorkerUserSchema = zod_1.z.object({
121
121
  // --- Main Schemas ---
122
122
  exports.WorkerSchema = zod_1.z
123
123
  .object({
124
- id: zod_1.z.string().uuid().describe('Worker ID'),
125
- firstName: zod_1.z.string().describe('First Name'),
126
- lastName: zod_1.z.string().optional().nullable().describe('Last Name'),
127
- email: zod_1.z.string().email().nullable().optional().describe('Email'),
124
+ id: zod_1.z.string().uuid().describe("Worker ID"),
125
+ firstName: zod_1.z.string().describe("First Name"),
126
+ lastName: zod_1.z.string().optional().nullable().describe("Last Name"),
127
+ email: zod_1.z.string().email().nullable().optional().describe("Email"),
128
128
  phoneNumbers: zod_1.z
129
129
  .array(exports.WorkerPhoneNumberSchema)
130
130
  .optional()
131
131
  .default([])
132
- .describe('Phone Numbers'),
132
+ .describe("Phone Numbers"),
133
133
  nino: zod_1.z
134
134
  .string()
135
135
  .nullable()
136
136
  .optional()
137
- .describe('National Insurance Number'),
137
+ .describe("National Insurance Number"),
138
138
  dateOfBirth: zod_1.z
139
139
  .union([zod_1.z.string().date(), zod_1.z.date()])
140
- .transform((val) => val instanceof Date ? val.toISOString().split('T')[0] : val)
140
+ .transform((val) => val instanceof Date ? val.toISOString().split("T")[0] : val)
141
141
  .nullable()
142
142
  .optional()
143
- .describe('Date of Birth'),
144
- bio: zod_1.z.string().nullable().optional().describe('Bio'),
145
- trades: zod_1.z.array(exports.WorkerTradeSchema).optional().describe('Trades'),
143
+ .describe("Date of Birth"),
144
+ bio: zod_1.z.string().nullable().optional().describe("Bio"),
145
+ trades: zod_1.z.array(exports.WorkerTradeSchema).optional().describe("Trades"),
146
146
  qualifications: zod_1.z
147
147
  .array(exports.WorkerQualificationSchema)
148
148
  .optional()
149
- .describe('Qualifications'),
149
+ .describe("Qualifications"),
150
150
  englishLevel: common_schemas_1.EnglishLevelSchema.nullable()
151
151
  .optional()
152
- .describe('English Level'),
152
+ .describe("English Level"),
153
153
  nationality: common_schemas_1.NationalitySchema.nullable()
154
154
  .optional()
155
- .describe('Nationality'),
156
- hasTools: zod_1.z.boolean().describe('Has Tools'),
157
- hasPpe: zod_1.z.boolean().describe('Has PPE'),
158
- location: common_schemas_1.LocationDetailsSchema.nullable().optional().describe('Location'),
159
- shareCode: exports.ShareCodeSchema.optional().nullable().describe('Share Code'),
160
- availability: exports.AvailabilitySchema.describe('Availability'),
155
+ .describe("Nationality"),
156
+ hasTools: zod_1.z.boolean().describe("Has Tools"),
157
+ hasPpe: zod_1.z.boolean().describe("Has PPE"),
158
+ location: common_schemas_1.LocationDetailsSchema.nullable().optional().describe("Location"),
159
+ shareCode: exports.ShareCodeSchema.optional().nullable().describe("Share Code"),
160
+ availability: exports.AvailabilitySchema.describe("Availability"),
161
161
  createdByUserId: zod_1.z
162
162
  .string()
163
163
  .uuid()
164
164
  .nullable()
165
165
  .optional()
166
- .describe('Created By User ID'),
167
- createdBy: users_contract_1.UserSchema.nullable().optional().describe('Created By User'),
168
- distanceKm: zod_1.z.number().nullable().optional().describe('Distance in KM'),
166
+ .describe("Created By User ID"),
167
+ createdBy: users_contract_1.UserSchema.nullable().optional().describe("Created By User"),
168
+ distanceKm: zod_1.z.number().nullable().optional().describe("Distance in KM"),
169
169
  createdAt: zod_1.z
170
170
  .union([zod_1.z.string().datetime(), zod_1.z.date()])
171
171
  .transform((val) => (val instanceof Date ? val.toISOString() : val))
172
- .describe('Creation Date'),
172
+ .describe("Creation Date"),
173
173
  updatedAt: zod_1.z
174
174
  .union([zod_1.z.string().datetime(), zod_1.z.date()])
175
175
  .transform((val) => (val instanceof Date ? val.toISOString() : val))
176
- .describe('Last Update Date'),
176
+ .describe("Last Update Date"),
177
177
  })
178
- .openapi({ title: 'Worker' });
178
+ .openapi({ title: "Worker" });
179
179
  exports.CreateWorkerSchema = zod_1.z
180
180
  .object({
181
- firstName: zod_1.z.string().min(3).max(100).describe('First Name'),
181
+ firstName: zod_1.z.string().min(3).max(100).describe("First Name"),
182
182
  lastName: zod_1.z
183
183
  .string()
184
184
  .min(3)
185
185
  .max(100)
186
- .optional()
187
- .nullable()
188
- .describe('Last Name'),
186
+ .nullish()
187
+ .or(zod_1.z.literal(""))
188
+ .transform((val) => (val === "" ? null : val))
189
+ .describe("Last Name"),
189
190
  email: zod_1.z
190
191
  .string()
191
192
  .email()
192
193
  .nullish()
193
- .or(zod_1.z.literal(''))
194
- .transform((val) => (val === '' ? undefined : val))
195
- .describe('Email'),
194
+ .or(zod_1.z.literal(""))
195
+ .transform((val) => (val === "" ? undefined : val))
196
+ .describe("Email"),
196
197
  phoneNumbers: zod_1.z
197
198
  .array(exports.CreateWorkerPhoneNumberSchema)
198
- .min(1, { message: 'At least one phone number is required' })
199
+ .min(1, { message: "At least one phone number is required" })
199
200
  .refine((phoneNumbers) => phoneNumbers.some((phone) => phone.isPrimary), {
200
- message: 'Must have at least one primary phone number',
201
+ message: "Must have at least one primary phone number",
201
202
  })
202
- .describe('Phone Numbers'),
203
+ .describe("Phone Numbers"),
203
204
  nino: zod_1.z
204
205
  .string()
205
206
  .regex(/^(?:[A-Z]{2}[0-9]{6}[A-D])?$/)
206
207
  .optional()
207
208
  .nullable()
208
- .describe('National Insurance Number'),
209
+ .describe("National Insurance Number"),
209
210
  dateOfBirth: zod_1.z
210
211
  .union([zod_1.z.string().date(), zod_1.z.date()])
211
212
  .optional()
212
213
  .nullable()
213
- .describe('Date of Birth'),
214
- bio: zod_1.z.string().optional().nullable().describe('Bio'),
214
+ .describe("Date of Birth"),
215
+ bio: zod_1.z.string().optional().nullable().describe("Bio"),
215
216
  trades: zod_1.z
216
217
  .array(exports.CreateWorkerTradeSchema)
217
- .min(1, { message: 'At least one trade must be selected' })
218
+ .min(1, { message: "At least one trade must be selected" })
218
219
  .max(10)
219
220
  .refine((trades) => trades.some((trade) => trade.mainTrade), {
220
- message: 'Exactly one trade must be marked as the main trade',
221
+ message: "Exactly one trade must be marked as the main trade",
221
222
  })
222
- .describe('Trades'),
223
+ .describe("Trades"),
223
224
  qualifications: zod_1.z
224
225
  .array(exports.CreateWorkerQualificationSchema)
225
226
  .optional()
226
227
  .nullable()
227
- .describe('Qualifications'),
228
+ .describe("Qualifications"),
228
229
  englishLevel: common_schemas_1.EnglishLevelSchema.optional()
229
230
  .nullable()
230
- .describe('English Level'),
231
+ .describe("English Level"),
231
232
  nationality: common_schemas_1.NationalitySchema.optional()
232
233
  .nullable()
233
- .describe('Nationality'),
234
- hasTools: zod_1.z.boolean().describe('Has Tools'),
235
- hasPpe: zod_1.z.boolean().describe('Has PPE'),
236
- location: common_schemas_1.CreateLocationSchema.optional().nullable().describe('Location'),
237
- shareCode: exports.ShareCodeSchema.optional().nullable().describe('Share Code'),
234
+ .describe("Nationality"),
235
+ hasTools: zod_1.z.boolean().describe("Has Tools"),
236
+ hasPpe: zod_1.z.boolean().describe("Has PPE"),
237
+ location: common_schemas_1.CreateLocationSchema.optional().nullable().describe("Location"),
238
+ shareCode: exports.ShareCodeSchema.optional().nullable().describe("Share Code"),
238
239
  availability: exports.AvailabilitySchema.optional()
239
- .default('AVAILABLE')
240
- .describe('Availability'),
240
+ .default("AVAILABLE")
241
+ .describe("Availability"),
241
242
  })
242
- .openapi({ title: 'CreateWorker' });
243
+ .openapi({ title: "CreateWorker" });
243
244
  exports.UpdateWorkerSchema = zod_1.z
244
245
  .object({
245
- firstName: zod_1.z.string().min(3).max(100).optional().describe('First Name'),
246
+ firstName: zod_1.z.string().min(3).max(100).optional().describe("First Name"),
246
247
  lastName: zod_1.z
247
248
  .string()
248
249
  .min(3)
249
250
  .max(100)
250
- .optional()
251
- .nullable()
252
- .describe('Last Name'),
251
+ .nullish()
252
+ .or(zod_1.z.literal(""))
253
+ .transform((val) => (val === "" ? null : val))
254
+ .describe("Last Name"),
253
255
  email: zod_1.z
254
256
  .string()
255
257
  .email()
256
258
  .nullish()
257
- .or(zod_1.z.literal(''))
258
- .transform((val) => (val === '' ? undefined : val))
259
- .describe('Email'),
259
+ .or(zod_1.z.literal(""))
260
+ .transform((val) => (val === "" ? undefined : val))
261
+ .describe("Email"),
260
262
  phoneNumbers: zod_1.z
261
263
  .array(exports.UpsertWorkerPhoneNumberSchema)
262
- .min(1, { message: 'At least one phone number is required' })
264
+ .min(1, { message: "At least one phone number is required" })
263
265
  .refine((phoneNumbers) => phoneNumbers.some((phone) => phone.isPrimary), {
264
- message: 'Must have at least one primary phone number',
266
+ message: "Must have at least one primary phone number",
265
267
  })
266
268
  .optional()
267
- .describe('Phone Numbers'),
269
+ .describe("Phone Numbers"),
268
270
  nino: zod_1.z
269
271
  .string()
270
272
  .regex(/^(?:[A-Z]{2}[0-9]{6}[A-D])?$/)
271
273
  .optional()
272
274
  .nullable()
273
- .describe('National Insurance Number'),
275
+ .describe("National Insurance Number"),
274
276
  dateOfBirth: zod_1.z
275
277
  .union([zod_1.z.string().date(), zod_1.z.date()])
276
278
  .optional()
277
279
  .nullable()
278
- .describe('Date of Birth'),
279
- bio: zod_1.z.string().optional().nullable().describe('Bio'),
280
+ .describe("Date of Birth"),
281
+ bio: zod_1.z.string().optional().nullable().describe("Bio"),
280
282
  trades: zod_1.z
281
283
  .array(exports.WorkerTradeSchema)
282
- .min(1, { message: 'At least one trade must be selected' })
284
+ .min(1, { message: "At least one trade must be selected" })
283
285
  .refine((trades) => trades.some((trade) => trade.mainTrade), {
284
- message: 'Exactly one trade must be marked as the main trade',
286
+ message: "Exactly one trade must be marked as the main trade",
285
287
  })
286
288
  .optional()
287
- .describe('Trades'),
289
+ .describe("Trades"),
288
290
  qualifications: zod_1.z
289
291
  .array(exports.WorkerQualificationSchema)
290
292
  .optional()
291
293
  .nullable()
292
- .describe('Qualifications'),
294
+ .describe("Qualifications"),
293
295
  englishLevel: common_schemas_1.EnglishLevelSchema.optional()
294
296
  .nullable()
295
- .describe('English Level'),
297
+ .describe("English Level"),
296
298
  nationality: common_schemas_1.NationalitySchema.optional()
297
299
  .nullable()
298
- .describe('Nationality'),
299
- hasTools: zod_1.z.boolean().optional().describe('Has Tools'),
300
- hasPpe: zod_1.z.boolean().optional().describe('Has PPE'),
301
- location: common_schemas_1.CreateLocationSchema.optional().nullable().describe('Location'),
302
- shareCode: exports.ShareCodeSchema.optional().nullable().describe('Share Code'),
303
- availability: exports.AvailabilitySchema.optional().describe('Availability'),
300
+ .describe("Nationality"),
301
+ hasTools: zod_1.z.boolean().optional().describe("Has Tools"),
302
+ hasPpe: zod_1.z.boolean().optional().describe("Has PPE"),
303
+ location: common_schemas_1.CreateLocationSchema.optional().nullable().describe("Location"),
304
+ shareCode: exports.ShareCodeSchema.optional().nullable().describe("Share Code"),
305
+ availability: exports.AvailabilitySchema.optional().describe("Availability"),
304
306
  })
305
- .openapi({ title: 'UpdateWorker' });
307
+ .openapi({ title: "UpdateWorker" });
306
308
  exports.FilterWorkerSchema = pagination_query_schema_1.PaginationQuerySchema.extend({
307
- name: zod_1.z.string().optional().describe('Search by name'),
308
- email: zod_1.z.string().optional().describe('Filter by email'),
309
- phone: zod_1.z.string().optional().describe('Filter by phone'),
310
- createdBy: zod_1.z.string().uuid().optional().describe('Search Second Agent'),
309
+ name: zod_1.z.string().optional().describe("Search by name"),
310
+ email: zod_1.z.string().optional().describe("Filter by email"),
311
+ phone: zod_1.z.string().optional().describe("Filter by phone"),
312
+ createdBy: zod_1.z.string().uuid().optional().describe("Search Second Agent"),
311
313
  availability: exports.AvailabilitySchema.optional()
312
314
  .nullable()
313
- .describe('Availability'),
315
+ .describe("Availability"),
314
316
  englishLevel: common_schemas_1.EnglishLevelSchema.optional()
315
317
  .nullable()
316
- .describe('English level'),
318
+ .describe("English level"),
317
319
  nationality: common_schemas_1.NationalitySchema.optional()
318
320
  .nullable()
319
- .describe('Filter by nationality'),
320
- location: common_schemas_1.LocationFilterSchema.optional().describe('Filter by location'),
321
- hasTools: exports.BooleanFilterSchema.optional().describe('Has Tools (default All)'),
322
- hasPpe: exports.BooleanFilterSchema.optional().describe('Has PPE (default All)'),
323
- tradeFilters: zod_1.z.array(exports.TradeFilterSchema).optional().describe('Trades'),
321
+ .describe("Filter by nationality"),
322
+ location: common_schemas_1.LocationFilterSchema.optional().describe("Filter by location"),
323
+ hasTools: exports.BooleanFilterSchema.optional().describe("Has Tools (default All)"),
324
+ hasPpe: exports.BooleanFilterSchema.optional().describe("Has PPE (default All)"),
325
+ tradeFilters: zod_1.z.array(exports.TradeFilterSchema).optional().describe("Trades"),
324
326
  qualificationFilters: zod_1.z
325
327
  .array(curated_workers_contract_1.QualificationFilterSchema)
326
328
  .optional()
327
- .describe('Qualifications'),
328
- createdAt: common_schemas_1.DateRangeSchema.optional().describe('Filter by creation date'),
329
- updatedAt: common_schemas_1.DateRangeSchema.optional().describe('Filter by update date'),
329
+ .describe("Qualifications"),
330
+ createdAt: common_schemas_1.DateRangeSchema.optional().describe("Filter by creation date"),
331
+ updatedAt: common_schemas_1.DateRangeSchema.optional().describe("Filter by update date"),
330
332
  sortBy: exports.WorkerSortableFieldsSchema.optional()
331
333
  .nullable()
332
- .describe('Sort by field'),
333
- sortOrder: common_schemas_1.SortOrderSchema.optional().nullable().describe('Sort order'),
334
+ .describe("Sort by field"),
335
+ sortOrder: common_schemas_1.SortOrderSchema.optional().nullable().describe("Sort order"),
334
336
  });
335
337
  exports.PaginatedWorkerResponseSchema = (0, pagination_schema_1.createPaginatedResponseSchema)(exports.WorkerSchema)
336
- .describe('Workers retrieved successfully.')
337
- .openapi({ title: 'WorkersPaginatedResponse' });
338
+ .describe("Workers retrieved successfully.")
339
+ .openapi({ title: "WorkersPaginatedResponse" });
338
340
  // --- Contract ---
339
341
  const c = (0, core_1.initContract)();
340
342
  exports.workersContractRouter = c.router({
341
343
  create: {
342
- method: 'POST',
343
- path: '/v2/workers',
344
+ method: "POST",
345
+ path: "/v2/workers",
344
346
  responses: {
345
347
  201: exports.WorkerSchema,
346
348
  409: error_schemas_1.ErrorResponseSchema,
347
349
  },
348
350
  body: exports.CreateWorkerSchema,
349
- summary: 'Create a new worker',
350
- metadata: { tags: ['Workers'], openApi: { operationId: 'createWorker' } },
351
+ summary: "Create a new worker",
352
+ metadata: { tags: ["Workers"], openApi: { operationId: "createWorker" } },
351
353
  },
352
354
  findAll: {
353
- method: 'GET',
354
- path: '/v2/workers',
355
+ method: "GET",
356
+ path: "/v2/workers",
355
357
  responses: {
356
358
  200: exports.PaginatedWorkerResponseSchema,
357
359
  },
358
360
  query: exports.FilterWorkerSchema,
359
- summary: 'Get all workers',
361
+ summary: "Get all workers",
360
362
  metadata: {
361
- tags: ['Workers'],
362
- openApi: { operationId: 'findAllWorkers' },
363
+ tags: ["Workers"],
364
+ openApi: { operationId: "findAllWorkers" },
363
365
  },
364
366
  },
365
367
  findOne: {
366
- method: 'GET',
367
- path: '/v2/workers/:id',
368
+ method: "GET",
369
+ path: "/v2/workers/:id",
368
370
  responses: {
369
371
  200: exports.WorkerSchema,
370
372
  404: error_schemas_1.ErrorResponseSchema,
371
373
  },
372
374
  pathParams: zod_1.z.object({
373
- id: zod_1.z.string().uuid().describe('Worker ID'),
375
+ id: zod_1.z.string().uuid().describe("Worker ID"),
374
376
  }),
375
- summary: 'Get a worker by ID',
377
+ summary: "Get a worker by ID",
376
378
  metadata: {
377
- tags: ['Workers'],
378
- openApi: { operationId: 'findWorkerById' },
379
+ tags: ["Workers"],
380
+ openApi: { operationId: "findWorkerById" },
379
381
  },
380
382
  },
381
383
  update: {
382
- method: 'PATCH',
383
- path: '/v2/workers/:id',
384
+ method: "PATCH",
385
+ path: "/v2/workers/:id",
384
386
  responses: {
385
387
  200: exports.WorkerSchema,
386
388
  404: error_schemas_1.ErrorResponseSchema,
387
389
  409: error_schemas_1.ErrorResponseSchema,
388
390
  },
389
391
  pathParams: zod_1.z.object({
390
- id: zod_1.z.string().uuid().describe('Worker ID'),
392
+ id: zod_1.z.string().uuid().describe("Worker ID"),
391
393
  }),
392
394
  body: exports.UpdateWorkerSchema,
393
- summary: 'Update a worker',
394
- metadata: { tags: ['Workers'], openApi: { operationId: 'updateWorker' } },
395
+ summary: "Update a worker",
396
+ metadata: { tags: ["Workers"], openApi: { operationId: "updateWorker" } },
395
397
  },
396
398
  remove: {
397
- method: 'DELETE',
398
- path: '/v2/workers/:id',
399
+ method: "DELETE",
400
+ path: "/v2/workers/:id",
399
401
  responses: {
400
402
  204: zod_1.z.undefined(),
401
403
  404: error_schemas_1.ErrorResponseSchema,
402
404
  },
403
405
  pathParams: zod_1.z.object({
404
- id: zod_1.z.string().uuid().describe('Worker ID'),
406
+ id: zod_1.z.string().uuid().describe("Worker ID"),
405
407
  }),
406
408
  body: c.noBody(),
407
- summary: 'Delete a worker',
408
- metadata: { tags: ['Workers'], openApi: { operationId: 'deleteWorker' } },
409
+ summary: "Delete a worker",
410
+ metadata: { tags: ["Workers"], openApi: { operationId: "deleteWorker" } },
409
411
  },
410
412
  }, {
411
413
  commonResponses: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dakkitor/api-contracts",
3
- "version": "1.1.121",
3
+ "version": "1.1.122",
4
4
  "description": "TypeScript API contracts using ts-rest and Zod",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",