@dakkitor/api-contracts 1.1.18 → 1.1.19
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":"actives.contract.d.ts","sourceRoot":"","sources":["../../contracts/actives/actives.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,eAAO,MAAM,kBAAkB,qGAQ7B,CAAC;AAEH,eAAO,MAAM,4BAA4B,8DAKvC,CAAC;AAEH,eAAO,MAAM,0BAA0B,oEAMrC,CAAC;AAsWH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FjC,CAAC"}
|
|
@@ -9,8 +9,6 @@ const common_schemas_1 = require("../common/common-schemas");
|
|
|
9
9
|
const error_schemas_1 = require("../common/error-schemas");
|
|
10
10
|
const pagination_query_schema_1 = require("../common/pagination-query.schema");
|
|
11
11
|
const pagination_schema_1 = require("../common/pagination.schema");
|
|
12
|
-
const users_contract_1 = require("../users/users.contract");
|
|
13
|
-
const workers_contract_1 = require("../workers/workers.contract");
|
|
14
12
|
(0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
|
|
15
13
|
// Enums
|
|
16
14
|
exports.ActiveStatusSchema = zod_1.z.enum([
|
|
@@ -35,17 +33,11 @@ exports.ActiveSortableFieldsSchema = zod_1.z.enum([
|
|
|
35
33
|
'createdAt',
|
|
36
34
|
'updatedAt',
|
|
37
35
|
]);
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
});
|
|
44
|
-
// Pay schema
|
|
45
|
-
const PaySchema = zod_1.z.object({
|
|
46
|
-
rate: zod_1.z.coerce.number().describe('Pay Rate'),
|
|
47
|
-
unit: common_schemas_1.RateUnitSchema.describe('Pay Unit'),
|
|
48
|
-
});
|
|
36
|
+
// // Pay schema
|
|
37
|
+
// const PaySchema = z.object({
|
|
38
|
+
// rate: z.coerce.number().describe('Pay Rate'),
|
|
39
|
+
// unit: RateUnitSchema.describe('Pay Unit'),
|
|
40
|
+
// });
|
|
49
41
|
const WorkerPaySchema = zod_1.z.object({
|
|
50
42
|
rate: zod_1.z.number().min(0).describe('Pay Rate'),
|
|
51
43
|
unit: common_schemas_1.RateUnitSchema.describe('Pay Unit'),
|
|
@@ -60,285 +52,6 @@ const ActiveStatusFilterSchema = zod_1.z
|
|
|
60
52
|
})
|
|
61
53
|
.openapi({ title: 'ActiveStatusFilter' });
|
|
62
54
|
// ============================================================================
|
|
63
|
-
// Active Booking nested schemas (comprehensive to match v1 DTOs)
|
|
64
|
-
// ============================================================================
|
|
65
|
-
// Worker phone number schema
|
|
66
|
-
const ActiveWorkerPhoneNumberSchema = zod_1.z.object({
|
|
67
|
-
id: zod_1.z.string().describe('The ID of the worker phone number'),
|
|
68
|
-
phoneNumber: zod_1.z.string().describe('Enter phone number'),
|
|
69
|
-
description: zod_1.z.string().max(100).nullish().describe('Enter description'),
|
|
70
|
-
isPrimary: zod_1.z.boolean().describe('Is primary?'),
|
|
71
|
-
createdAt: zod_1.z
|
|
72
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
73
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
74
|
-
.describe('Phone number creation timestamp'),
|
|
75
|
-
updatedAt: zod_1.z
|
|
76
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
77
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
78
|
-
.describe('Phone number last update timestamp'),
|
|
79
|
-
});
|
|
80
|
-
// Worker trade schema
|
|
81
|
-
const ActiveWorkerTradeSchema = zod_1.z.object({
|
|
82
|
-
id: zod_1.z.string().describe('Unique identifier for the worker-trade link'),
|
|
83
|
-
tradeId: zod_1.z.string().describe('The ID of the trade'),
|
|
84
|
-
mainTrade: zod_1.z.boolean().describe("Whether this is the worker's main trade"),
|
|
85
|
-
});
|
|
86
|
-
// Worker qualification schema
|
|
87
|
-
const ActiveWorkerQualificationSchema = zod_1.z.object({
|
|
88
|
-
id: zod_1.z
|
|
89
|
-
.string()
|
|
90
|
-
.describe('Unique identifier for the worker qualification link'),
|
|
91
|
-
proofDocumentFileId: zod_1.z
|
|
92
|
-
.string()
|
|
93
|
-
.nullable()
|
|
94
|
-
.describe('File ID for the proof document'),
|
|
95
|
-
issueDate: zod_1.z
|
|
96
|
-
.string()
|
|
97
|
-
.date()
|
|
98
|
-
.nullable()
|
|
99
|
-
.describe('Date when the qualification was issued'),
|
|
100
|
-
expiryDate: zod_1.z
|
|
101
|
-
.string()
|
|
102
|
-
.date()
|
|
103
|
-
.nullable()
|
|
104
|
-
.describe('Date when the qualification expires'),
|
|
105
|
-
referenceNumber: zod_1.z
|
|
106
|
-
.string()
|
|
107
|
-
.nullable()
|
|
108
|
-
.describe('Reference number for the qualification'),
|
|
109
|
-
qualificationId: zod_1.z
|
|
110
|
-
.string()
|
|
111
|
-
.describe('Foreign key for Qualification (general category)'),
|
|
112
|
-
qualificationTypeId: zod_1.z
|
|
113
|
-
.string()
|
|
114
|
-
.nullable()
|
|
115
|
-
.describe('Foreign key for QualificationType (specific variant, nullable)'),
|
|
116
|
-
createdAt: zod_1.z
|
|
117
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
118
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
119
|
-
.describe('Timestamp of creation'),
|
|
120
|
-
updatedAt: zod_1.z
|
|
121
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
122
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
123
|
-
.describe('Timestamp of last update'),
|
|
124
|
-
});
|
|
125
|
-
// Worker share code schema
|
|
126
|
-
const ActiveWorkerShareCodeSchema = zod_1.z.object({
|
|
127
|
-
id: zod_1.z.string().describe('Unique identifier for the share code'),
|
|
128
|
-
code: zod_1.z
|
|
129
|
-
.string()
|
|
130
|
-
.max(9)
|
|
131
|
-
.describe('UK right-to-work share code (9 characters)'),
|
|
132
|
-
expiryDate: zod_1.z.string().date().describe('Expiry date of the share code'),
|
|
133
|
-
createdAt: zod_1.z
|
|
134
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
135
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
136
|
-
.describe('Timestamp when the share code was created'),
|
|
137
|
-
updatedAt: zod_1.z
|
|
138
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
139
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
140
|
-
.describe('Timestamp when the share code was last updated'),
|
|
141
|
-
workerId: zod_1.z.string().describe('ID of the worker this share code belongs to'),
|
|
142
|
-
});
|
|
143
|
-
// Full worker schema for Active booking
|
|
144
|
-
const ActiveBookingWorkerSchema = zod_1.z.object({
|
|
145
|
-
id: zod_1.z.string().describe('Unique identifier for the worker'),
|
|
146
|
-
firstName: zod_1.z.string().describe("Worker's first name"),
|
|
147
|
-
lastName: zod_1.z.string().describe("Worker's last name"),
|
|
148
|
-
email: zod_1.z.string().nullish().describe("Worker's email address"),
|
|
149
|
-
nino: zod_1.z
|
|
150
|
-
.string()
|
|
151
|
-
.regex(/^(?:[A-Z]{2}[0-9]{6}[A-D])?$/)
|
|
152
|
-
.nullish()
|
|
153
|
-
.describe("Worker's National Insurance Number (NINO)"),
|
|
154
|
-
dateOfBirth: zod_1.z.string().date().nullish().describe("Worker's date of birth"),
|
|
155
|
-
bio: zod_1.z.string().nullish().describe("Worker's bio or description"),
|
|
156
|
-
rating: zod_1.z.number().min(0).max(5).nullish().describe("Worker's rating (0-5)"),
|
|
157
|
-
englishLevel: common_schemas_1.EnglishLevelSchema.nullish().describe("Worker's English proficiency level"),
|
|
158
|
-
nationality: common_schemas_1.NationalitySchema.nullish().describe("Worker's nationality"),
|
|
159
|
-
hasTools: zod_1.z.boolean().describe('Indicates if the worker has their own tools'),
|
|
160
|
-
hasPpe: zod_1.z
|
|
161
|
-
.boolean()
|
|
162
|
-
.describe('Indicates if the worker has their own PPE (Personal Protective Equipment)'),
|
|
163
|
-
location: common_schemas_1.LocationDetailsSchema.nullish().describe('Detailed location information for the worker.'),
|
|
164
|
-
createdAt: zod_1.z
|
|
165
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
166
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
167
|
-
.describe('Creation date'),
|
|
168
|
-
updatedAt: zod_1.z
|
|
169
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
170
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
171
|
-
.describe('Last update date'),
|
|
172
|
-
phoneNumbers: zod_1.z
|
|
173
|
-
.array(ActiveWorkerPhoneNumberSchema)
|
|
174
|
-
.describe("Worker's phone numbers"),
|
|
175
|
-
availability: workers_contract_1.AvailabilitySchema.describe("Worker's availability status"),
|
|
176
|
-
trades: zod_1.z
|
|
177
|
-
.array(ActiveWorkerTradeSchema)
|
|
178
|
-
.nullish()
|
|
179
|
-
.describe("Worker's trades"),
|
|
180
|
-
qualifications: zod_1.z
|
|
181
|
-
.array(ActiveWorkerQualificationSchema)
|
|
182
|
-
.nullish()
|
|
183
|
-
.describe("Worker's qualifications"),
|
|
184
|
-
shareCode: ActiveWorkerShareCodeSchema.nullish().describe("Worker's UK right-to-work share code"),
|
|
185
|
-
createdByUserId: zod_1.z
|
|
186
|
-
.string()
|
|
187
|
-
.nullish()
|
|
188
|
-
.describe('ID of the user who created this worker record'),
|
|
189
|
-
createdBy: users_contract_1.UserSchema.nullish().describe('User who created this worker record'),
|
|
190
|
-
distanceKm: zod_1.z
|
|
191
|
-
.number()
|
|
192
|
-
.nullish()
|
|
193
|
-
.describe('Calculated distance in kilometers from the search origin.'),
|
|
194
|
-
});
|
|
195
|
-
// Job qualification schema
|
|
196
|
-
const ActiveJobQualificationSchema = zod_1.z.object({
|
|
197
|
-
id: zod_1.z.string().describe('The ID of the job qualification'),
|
|
198
|
-
qualificationId: zod_1.z.string().describe('The ID of the qualification'),
|
|
199
|
-
qualificationTypeId: zod_1.z
|
|
200
|
-
.string()
|
|
201
|
-
.nullable()
|
|
202
|
-
.describe('The ID of the qualification type'),
|
|
203
|
-
});
|
|
204
|
-
// Company schema
|
|
205
|
-
const ActiveCompanySchema = zod_1.z.object({
|
|
206
|
-
id: zod_1.z.string().describe('The unique identifier of the company.'),
|
|
207
|
-
name: zod_1.z.string().max(255).describe('The name of the company.'),
|
|
208
|
-
createdAt: zod_1.z
|
|
209
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
210
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
211
|
-
.describe('The timestamp when the company was created.'),
|
|
212
|
-
updatedAt: zod_1.z
|
|
213
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
214
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
215
|
-
.describe('The timestamp when the company was last updated.'),
|
|
216
|
-
});
|
|
217
|
-
// Client status schema
|
|
218
|
-
const ActiveClientStatusSchema = zod_1.z.enum([
|
|
219
|
-
'APPROVED',
|
|
220
|
-
'PENDING_VERIFICATION',
|
|
221
|
-
'BLACKLISTED',
|
|
222
|
-
]);
|
|
223
|
-
// Client schema
|
|
224
|
-
const ActiveClientSchema = zod_1.z.object({
|
|
225
|
-
id: zod_1.z.string(),
|
|
226
|
-
name: zod_1.z.string(),
|
|
227
|
-
crn: zod_1.z.string(),
|
|
228
|
-
govLink: zod_1.z.string(),
|
|
229
|
-
status: ActiveClientStatusSchema,
|
|
230
|
-
director: zod_1.z.string(),
|
|
231
|
-
blacklistReason: zod_1.z.string().optional(),
|
|
232
|
-
lastUpdatedBy: users_contract_1.UserSchema.describe('The user who last updated the client record.'),
|
|
233
|
-
createdAt: zod_1.z
|
|
234
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
235
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val)),
|
|
236
|
-
updatedAt: zod_1.z
|
|
237
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
238
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val)),
|
|
239
|
-
version: zod_1.z.number(),
|
|
240
|
-
agentClientLinks: zod_1.z
|
|
241
|
-
.object({})
|
|
242
|
-
.describe('The agent client links containing agent ID mapping'),
|
|
243
|
-
});
|
|
244
|
-
// Collaboration status schema
|
|
245
|
-
const ActiveCollaborationStatusSchema = zod_1.z.enum([
|
|
246
|
-
'ACTIVE',
|
|
247
|
-
'INACTIVE',
|
|
248
|
-
'PENDING_APPROVAL',
|
|
249
|
-
'REJECTED',
|
|
250
|
-
'APPROVED',
|
|
251
|
-
'CHANGED_COMPANY',
|
|
252
|
-
'CHANGED_AGENT',
|
|
253
|
-
]);
|
|
254
|
-
// Collaboration schema
|
|
255
|
-
const ActiveCollaborationSchema = zod_1.z.object({
|
|
256
|
-
id: zod_1.z.string().describe('The unique identifier for the collaboration.'),
|
|
257
|
-
company: ActiveCompanySchema.describe('The company involved in the collaboration.'),
|
|
258
|
-
client: ActiveClientSchema.describe('The client involved in the collaboration.'),
|
|
259
|
-
user: users_contract_1.UserSchema.describe('The user (agent) who initiated the collaboration.'),
|
|
260
|
-
status: ActiveCollaborationStatusSchema.describe('The current status of the collaboration.'),
|
|
261
|
-
createdAt: zod_1.z
|
|
262
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
263
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
264
|
-
.describe('The date and time the collaboration was created.'),
|
|
265
|
-
updatedAt: zod_1.z
|
|
266
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
267
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
268
|
-
.describe('The date and time the collaboration was last updated.'),
|
|
269
|
-
newCollaboration: zod_1.z
|
|
270
|
-
.unknown()
|
|
271
|
-
.optional()
|
|
272
|
-
.describe('The new collaboration created when company or agent changed. Only populated when status is CHANGED_COMPANY or CHANGED_AGENT.'),
|
|
273
|
-
userId: zod_1.z.string().describe('The unique identifier for the user.'),
|
|
274
|
-
});
|
|
275
|
-
// Job status schema
|
|
276
|
-
const ActiveJobStatusSchema = zod_1.z.enum([
|
|
277
|
-
'CANCELED',
|
|
278
|
-
'FILLED',
|
|
279
|
-
'AVAILABLE',
|
|
280
|
-
'NOT_AVAILABLE',
|
|
281
|
-
]);
|
|
282
|
-
// Job pay schema
|
|
283
|
-
const ActiveJobPaySchema = zod_1.z.object({
|
|
284
|
-
rateUnit: common_schemas_1.RateUnitSchema.describe('The unit for the pay rate.'),
|
|
285
|
-
rate: zod_1.z.coerce.number().describe('The pay rate.'),
|
|
286
|
-
rateMax: zod_1.z.coerce
|
|
287
|
-
.number()
|
|
288
|
-
.nullish()
|
|
289
|
-
.describe('The maximum pay rate (for a range).'),
|
|
290
|
-
receivedRate: zod_1.z.coerce.number().describe('The received pay rate.'),
|
|
291
|
-
});
|
|
292
|
-
// Full job schema for Active booking
|
|
293
|
-
const ActiveBookingJobSchema = zod_1.z.object({
|
|
294
|
-
id: zod_1.z.string(),
|
|
295
|
-
description: zod_1.z.string(),
|
|
296
|
-
numberOfPositions: zod_1.z
|
|
297
|
-
.number()
|
|
298
|
-
.describe('The number of positions available for this job.'),
|
|
299
|
-
workHours: zod_1.z.coerce
|
|
300
|
-
.number()
|
|
301
|
-
.nullish()
|
|
302
|
-
.describe('The number of work hours for the job.'),
|
|
303
|
-
status: ActiveJobStatusSchema.describe('The current status of the job.'),
|
|
304
|
-
pay: ActiveJobPaySchema.describe('The payment details for the job.'),
|
|
305
|
-
location: common_schemas_1.LocationDetailsSchema.nullish().describe('Detailed location information for the job.'),
|
|
306
|
-
tradeId: zod_1.z.string().describe('The ID of the associated trade'),
|
|
307
|
-
jobQualifications: zod_1.z
|
|
308
|
-
.array(ActiveJobQualificationSchema)
|
|
309
|
-
.describe('An array of job qualifications with their IDs'),
|
|
310
|
-
currentCollaboration: ActiveCollaborationSchema.nullish().describe('The current collaboration associated with the job.'),
|
|
311
|
-
createdAt: zod_1.z
|
|
312
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
313
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val)),
|
|
314
|
-
updatedAt: zod_1.z
|
|
315
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
316
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val)),
|
|
317
|
-
});
|
|
318
|
-
// Booking pay schema
|
|
319
|
-
const ActiveBookingPaySchema = zod_1.z.object({
|
|
320
|
-
rate: zod_1.z.coerce.number().describe('The pay rate.'),
|
|
321
|
-
unit: common_schemas_1.RateUnitSchema.describe('The unit of pay.'),
|
|
322
|
-
});
|
|
323
|
-
// Full booking schema for Active
|
|
324
|
-
const ActiveBookingSchema = zod_1.z.object({
|
|
325
|
-
id: zod_1.z.string().uuid().describe('The unique identifier of the booking.'),
|
|
326
|
-
status: bookings_contract_1.BookingStatusSchema,
|
|
327
|
-
startDate: zod_1.z.string().date().describe('The start date of the booking.'),
|
|
328
|
-
endDate: zod_1.z.string().date().nullish().describe('The end date of the booking.'),
|
|
329
|
-
worker: ActiveBookingWorkerSchema,
|
|
330
|
-
user: users_contract_1.UserSchema,
|
|
331
|
-
pay: ActiveBookingPaySchema,
|
|
332
|
-
job: ActiveBookingJobSchema,
|
|
333
|
-
userId: zod_1.z.string().describe('The unique identifier for the user.'),
|
|
334
|
-
createdAt: zod_1.z
|
|
335
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
336
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val)),
|
|
337
|
-
updatedAt: zod_1.z
|
|
338
|
-
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
339
|
-
.transform((val) => (val instanceof Date ? val.toISOString() : val)),
|
|
340
|
-
});
|
|
341
|
-
// ============================================================================
|
|
342
55
|
// Main Active schema
|
|
343
56
|
// ============================================================================
|
|
344
57
|
exports.ActiveSchema = zod_1.z
|
|
@@ -348,7 +61,7 @@ exports.ActiveSchema = zod_1.z
|
|
|
348
61
|
.uuid()
|
|
349
62
|
.describe('The unique identifier of the active record.'),
|
|
350
63
|
date: zod_1.z.string().date().describe('The date when the worker was active.'),
|
|
351
|
-
pay:
|
|
64
|
+
pay: bookings_contract_1.BookingPaySchema.describe('Pay Information'),
|
|
352
65
|
comment: zod_1.z.string().nullable().describe('Optional comment for the day.'),
|
|
353
66
|
statusSa: exports.ActiveStatusSchema.describe('Filter by status value.'),
|
|
354
67
|
statusSaUpdatedAt: zod_1.z
|
|
@@ -371,7 +84,8 @@ exports.ActiveSchema = zod_1.z
|
|
|
371
84
|
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
372
85
|
.nullable()
|
|
373
86
|
.describe('The timestamp when hours worked was last updated.'),
|
|
374
|
-
booking: ActiveBookingSchema.describe('Associated Booking'),
|
|
87
|
+
// booking: ActiveBookingSchema.describe('Associated Booking'),
|
|
88
|
+
booking: bookings_contract_1.BookingSchema.describe('Associated Booking'),
|
|
375
89
|
createdAt: zod_1.z
|
|
376
90
|
.union([zod_1.z.string().datetime(), zod_1.z.date()])
|
|
377
91
|
.transform((val) => (val instanceof Date ? val.toISOString() : val)),
|
|
@@ -409,7 +123,7 @@ exports.FilterActiveSchema = pagination_query_schema_1.PaginationQuerySchema.ext
|
|
|
409
123
|
.nullable()
|
|
410
124
|
.describe('Filter by booking ID'),
|
|
411
125
|
date: common_schemas_1.DateRangeSchema.optional().nullable().describe('Filter by date range'),
|
|
412
|
-
pay: PayRangeSchema.optional()
|
|
126
|
+
pay: common_schemas_1.PayRangeSchema.optional()
|
|
413
127
|
.nullable()
|
|
414
128
|
.describe('Filter by pay rate range'),
|
|
415
129
|
status: ActiveStatusFilterSchema.optional()
|