@dakkitor/api-contracts 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actives/actives.contract.d.ts +104 -104
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +3 -6
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1905 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -0
- package/dist/agent-client-links/agent-client-links.contract.js +127 -0
- package/dist/auth/auth.contract.d.ts +319 -0
- package/dist/auth/auth.contract.d.ts.map +1 -0
- package/dist/auth/auth.contract.js +63 -0
- package/dist/bookings/bookings.contract.d.ts +273 -182
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +25 -33
- package/dist/call-history/call-history.contract.d.ts +1164 -0
- package/dist/call-history/call-history.contract.d.ts.map +1 -0
- package/dist/call-history/call-history.contract.js +254 -0
- package/dist/client-contacts/client-contacts.contract.d.ts +215 -268
- package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.js +21 -10
- package/dist/clients/clients.contract.d.ts +153 -125
- package/dist/clients/clients.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.js +44 -29
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3013 -0
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -0
- package/dist/collaboration-checkings/collaboration-checkings.contract.js +247 -0
- package/dist/collaborations/collaborations.contract.d.ts +2229 -0
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -0
- package/dist/collaborations/collaborations.contract.js +284 -0
- package/dist/common/common-schemas.d.ts +100 -0
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +268 -1
- package/dist/common/openapi-metadata.d.ts +6 -0
- package/dist/common/openapi-metadata.d.ts.map +1 -1
- package/dist/companies/companies.contract.d.ts +1108 -0
- package/dist/companies/companies.contract.d.ts.map +1 -0
- package/dist/companies/companies.contract.js +164 -0
- package/dist/cron-executions/cron-executions.contract.d.ts +1643 -0
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -0
- package/dist/cron-executions/cron-executions.contract.js +271 -0
- package/dist/curated-workers/curated-workers.contract.d.ts +3183 -0
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -0
- package/dist/curated-workers/curated-workers.contract.js +444 -0
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +639 -0
- package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -0
- package/dist/dashboards/agent-daily-metrics.contract.js +118 -0
- package/dist/files/files.contract.d.ts +1258 -0
- package/dist/files/files.contract.d.ts.map +1 -0
- package/dist/files/files.contract.js +205 -0
- package/dist/health/health.contract.d.ts +161 -0
- package/dist/health/health.contract.d.ts.map +1 -0
- package/dist/health/health.contract.js +52 -0
- package/dist/index.d.ts +27370 -3319
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +63 -0
- package/dist/jobs/jobs.contract.d.ts +2303 -0
- package/dist/jobs/jobs.contract.d.ts.map +1 -0
- package/dist/jobs/jobs.contract.js +295 -0
- package/dist/lead-assignments/lead-assignments.contract.d.ts +1826 -0
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -0
- package/dist/lead-assignments/lead-assignments.contract.js +187 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +1147 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.js +154 -0
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +1085 -0
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts.map +1 -0
- package/dist/lead-distribution/lead-distribution-config.contract.js +196 -0
- package/dist/leads/leads.contract.d.ts +1690 -0
- package/dist/leads/leads.contract.d.ts.map +1 -0
- package/dist/leads/leads.contract.js +328 -0
- package/dist/locations/locations.contract.d.ts +974 -0
- package/dist/locations/locations.contract.d.ts.map +1 -0
- package/dist/locations/locations.contract.js +154 -0
- package/dist/postcodes/postcodes.contract.d.ts +370 -0
- package/dist/postcodes/postcodes.contract.d.ts.map +1 -0
- package/dist/postcodes/postcodes.contract.js +90 -0
- package/dist/qualifications/qualifications.contract.d.ts +1489 -0
- package/dist/qualifications/qualifications.contract.d.ts.map +1 -0
- package/dist/qualifications/qualifications.contract.js +215 -0
- package/dist/trades/trades.contract.d.ts +799 -0
- package/dist/trades/trades.contract.d.ts.map +1 -0
- package/dist/trades/trades.contract.js +112 -0
- package/dist/users/users.contract.d.ts +102 -96
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +9 -21
- package/dist/workers/workers.contract.d.ts +3376 -0
- package/dist/workers/workers.contract.d.ts.map +1 -0
- package/dist/workers/workers.contract.js +363 -0
- package/package.json +4 -3
|
@@ -32,10 +32,8 @@ export declare const ActiveSchema: z.ZodObject<{
|
|
|
32
32
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
33
33
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
date: string;
|
|
36
|
-
createdAt: string;
|
|
37
|
-
updatedAt: string;
|
|
38
35
|
id: string;
|
|
36
|
+
date: string;
|
|
39
37
|
pay: {
|
|
40
38
|
rate: number;
|
|
41
39
|
unit: "DAILY" | "HOURLY";
|
|
@@ -50,11 +48,11 @@ export declare const ActiveSchema: z.ZodObject<{
|
|
|
50
48
|
booking: {
|
|
51
49
|
id: string;
|
|
52
50
|
};
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
53
|
}, {
|
|
54
|
-
date: string | Date;
|
|
55
|
-
createdAt: string | Date;
|
|
56
|
-
updatedAt: string | Date;
|
|
57
54
|
id: string;
|
|
55
|
+
date: string | Date;
|
|
58
56
|
pay: {
|
|
59
57
|
rate: number;
|
|
60
58
|
unit: "DAILY" | "HOURLY";
|
|
@@ -69,6 +67,8 @@ export declare const ActiveSchema: z.ZodObject<{
|
|
|
69
67
|
booking: {
|
|
70
68
|
id: string;
|
|
71
69
|
};
|
|
70
|
+
createdAt: string | Date;
|
|
71
|
+
updatedAt: string | Date;
|
|
72
72
|
}>;
|
|
73
73
|
export declare const CreateActiveSchema: z.ZodObject<{
|
|
74
74
|
date: z.ZodString;
|
|
@@ -144,14 +144,14 @@ export declare const FilterActiveSchema: z.ZodObject<{
|
|
|
144
144
|
} & {
|
|
145
145
|
bookingId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
146
146
|
date: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
147
|
-
from: z.ZodOptional<z.ZodString
|
|
148
|
-
to: z.ZodOptional<z.ZodString
|
|
147
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
149
|
}, "strip", z.ZodTypeAny, {
|
|
150
|
-
from?: string | undefined;
|
|
151
|
-
to?: string | undefined;
|
|
150
|
+
from?: string | null | undefined;
|
|
151
|
+
to?: string | null | undefined;
|
|
152
152
|
}, {
|
|
153
|
-
from?: string | undefined;
|
|
154
|
-
to?: string | undefined;
|
|
153
|
+
from?: string | null | undefined;
|
|
154
|
+
to?: string | null | undefined;
|
|
155
155
|
}>>>;
|
|
156
156
|
pay: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
157
157
|
min: z.ZodOptional<z.ZodNumber>;
|
|
@@ -174,14 +174,14 @@ export declare const FilterActiveSchema: z.ZodObject<{
|
|
|
174
174
|
filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
|
|
175
175
|
}>>>;
|
|
176
176
|
createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
177
|
-
from: z.ZodOptional<z.ZodString
|
|
178
|
-
to: z.ZodOptional<z.ZodString
|
|
177
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
|
-
from?: string | undefined;
|
|
181
|
-
to?: string | undefined;
|
|
180
|
+
from?: string | null | undefined;
|
|
181
|
+
to?: string | null | undefined;
|
|
182
182
|
}, {
|
|
183
|
-
from?: string | undefined;
|
|
184
|
-
to?: string | undefined;
|
|
183
|
+
from?: string | null | undefined;
|
|
184
|
+
to?: string | null | undefined;
|
|
185
185
|
}>>>;
|
|
186
186
|
sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["date", "payRate", "status", "createdAt", "updatedAt"]>>>;
|
|
187
187
|
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
@@ -193,41 +193,41 @@ export declare const FilterActiveSchema: z.ZodObject<{
|
|
|
193
193
|
status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
|
|
194
194
|
} | null | undefined;
|
|
195
195
|
date?: {
|
|
196
|
-
from?: string | undefined;
|
|
197
|
-
to?: string | undefined;
|
|
198
|
-
} | null | undefined;
|
|
199
|
-
createdAt?: {
|
|
200
|
-
from?: string | undefined;
|
|
201
|
-
to?: string | undefined;
|
|
196
|
+
from?: string | null | undefined;
|
|
197
|
+
to?: string | null | undefined;
|
|
202
198
|
} | null | undefined;
|
|
203
199
|
pay?: {
|
|
204
200
|
min?: number | undefined;
|
|
205
201
|
max?: number | undefined;
|
|
206
202
|
} | null | undefined;
|
|
203
|
+
createdAt?: {
|
|
204
|
+
from?: string | null | undefined;
|
|
205
|
+
to?: string | null | undefined;
|
|
206
|
+
} | null | undefined;
|
|
207
207
|
bookingId?: string | null | undefined;
|
|
208
|
-
sortBy?: "status" | "date" | "
|
|
208
|
+
sortBy?: "status" | "date" | "createdAt" | "updatedAt" | "payRate" | null | undefined;
|
|
209
209
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
210
210
|
}, {
|
|
211
211
|
status?: {
|
|
212
212
|
status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
|
|
213
213
|
filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
|
|
214
214
|
} | null | undefined;
|
|
215
|
-
limit?: number | undefined;
|
|
216
|
-
page?: number | undefined;
|
|
217
215
|
date?: {
|
|
218
|
-
from?: string | undefined;
|
|
219
|
-
to?: string | undefined;
|
|
220
|
-
} | null | undefined;
|
|
221
|
-
createdAt?: {
|
|
222
|
-
from?: string | undefined;
|
|
223
|
-
to?: string | undefined;
|
|
216
|
+
from?: string | null | undefined;
|
|
217
|
+
to?: string | null | undefined;
|
|
224
218
|
} | null | undefined;
|
|
225
219
|
pay?: {
|
|
226
220
|
min?: number | undefined;
|
|
227
221
|
max?: number | undefined;
|
|
228
222
|
} | null | undefined;
|
|
223
|
+
createdAt?: {
|
|
224
|
+
from?: string | null | undefined;
|
|
225
|
+
to?: string | null | undefined;
|
|
226
|
+
} | null | undefined;
|
|
227
|
+
limit?: number | undefined;
|
|
228
|
+
page?: number | undefined;
|
|
229
229
|
bookingId?: string | null | undefined;
|
|
230
|
-
sortBy?: "status" | "date" | "
|
|
230
|
+
sortBy?: "status" | "date" | "createdAt" | "updatedAt" | "payRate" | null | undefined;
|
|
231
231
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
232
232
|
}>;
|
|
233
233
|
export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
@@ -261,10 +261,8 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
261
261
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
262
262
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
date: string;
|
|
265
|
-
createdAt: string;
|
|
266
|
-
updatedAt: string;
|
|
267
264
|
id: string;
|
|
265
|
+
date: string;
|
|
268
266
|
pay: {
|
|
269
267
|
rate: number;
|
|
270
268
|
unit: "DAILY" | "HOURLY";
|
|
@@ -279,11 +277,11 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
279
277
|
booking: {
|
|
280
278
|
id: string;
|
|
281
279
|
};
|
|
280
|
+
createdAt: string;
|
|
281
|
+
updatedAt: string;
|
|
282
282
|
}, {
|
|
283
|
-
date: string | Date;
|
|
284
|
-
createdAt: string | Date;
|
|
285
|
-
updatedAt: string | Date;
|
|
286
283
|
id: string;
|
|
284
|
+
date: string | Date;
|
|
287
285
|
pay: {
|
|
288
286
|
rate: number;
|
|
289
287
|
unit: "DAILY" | "HOURLY";
|
|
@@ -298,6 +296,8 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
298
296
|
booking: {
|
|
299
297
|
id: string;
|
|
300
298
|
};
|
|
299
|
+
createdAt: string | Date;
|
|
300
|
+
updatedAt: string | Date;
|
|
301
301
|
}>, "many">;
|
|
302
302
|
totalCount: z.ZodNumber;
|
|
303
303
|
limit: z.ZodNumber;
|
|
@@ -307,10 +307,8 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
307
307
|
}, "strip", z.ZodTypeAny, {
|
|
308
308
|
limit: number;
|
|
309
309
|
items: {
|
|
310
|
-
date: string;
|
|
311
|
-
createdAt: string;
|
|
312
|
-
updatedAt: string;
|
|
313
310
|
id: string;
|
|
311
|
+
date: string;
|
|
314
312
|
pay: {
|
|
315
313
|
rate: number;
|
|
316
314
|
unit: "DAILY" | "HOURLY";
|
|
@@ -325,6 +323,8 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
325
323
|
booking: {
|
|
326
324
|
id: string;
|
|
327
325
|
};
|
|
326
|
+
createdAt: string;
|
|
327
|
+
updatedAt: string;
|
|
328
328
|
}[];
|
|
329
329
|
totalCount: number;
|
|
330
330
|
skip: number;
|
|
@@ -333,10 +333,8 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
333
333
|
}, {
|
|
334
334
|
limit: number;
|
|
335
335
|
items: {
|
|
336
|
-
date: string | Date;
|
|
337
|
-
createdAt: string | Date;
|
|
338
|
-
updatedAt: string | Date;
|
|
339
336
|
id: string;
|
|
337
|
+
date: string | Date;
|
|
340
338
|
pay: {
|
|
341
339
|
rate: number;
|
|
342
340
|
unit: "DAILY" | "HOURLY";
|
|
@@ -351,6 +349,8 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
351
349
|
booking: {
|
|
352
350
|
id: string;
|
|
353
351
|
};
|
|
352
|
+
createdAt: string | Date;
|
|
353
|
+
updatedAt: string | Date;
|
|
354
354
|
}[];
|
|
355
355
|
totalCount: number;
|
|
356
356
|
skip: number;
|
|
@@ -548,10 +548,8 @@ export declare const activesContractRouter: {
|
|
|
548
548
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
549
549
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
550
550
|
}, "strip", z.ZodTypeAny, {
|
|
551
|
-
date: string;
|
|
552
|
-
createdAt: string;
|
|
553
|
-
updatedAt: string;
|
|
554
551
|
id: string;
|
|
552
|
+
date: string;
|
|
555
553
|
pay: {
|
|
556
554
|
rate: number;
|
|
557
555
|
unit: "DAILY" | "HOURLY";
|
|
@@ -566,11 +564,11 @@ export declare const activesContractRouter: {
|
|
|
566
564
|
booking: {
|
|
567
565
|
id: string;
|
|
568
566
|
};
|
|
567
|
+
createdAt: string;
|
|
568
|
+
updatedAt: string;
|
|
569
569
|
}, {
|
|
570
|
-
date: string | Date;
|
|
571
|
-
createdAt: string | Date;
|
|
572
|
-
updatedAt: string | Date;
|
|
573
570
|
id: string;
|
|
571
|
+
date: string | Date;
|
|
574
572
|
pay: {
|
|
575
573
|
rate: number;
|
|
576
574
|
unit: "DAILY" | "HOURLY";
|
|
@@ -585,6 +583,8 @@ export declare const activesContractRouter: {
|
|
|
585
583
|
booking: {
|
|
586
584
|
id: string;
|
|
587
585
|
};
|
|
586
|
+
createdAt: string | Date;
|
|
587
|
+
updatedAt: string | Date;
|
|
588
588
|
}>;
|
|
589
589
|
404: z.ZodObject<{
|
|
590
590
|
statusCode: z.ZodNumber;
|
|
@@ -651,14 +651,14 @@ export declare const activesContractRouter: {
|
|
|
651
651
|
} & {
|
|
652
652
|
bookingId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
653
653
|
date: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
654
|
-
from: z.ZodOptional<z.ZodString
|
|
655
|
-
to: z.ZodOptional<z.ZodString
|
|
654
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
655
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
656
656
|
}, "strip", z.ZodTypeAny, {
|
|
657
|
-
from?: string | undefined;
|
|
658
|
-
to?: string | undefined;
|
|
657
|
+
from?: string | null | undefined;
|
|
658
|
+
to?: string | null | undefined;
|
|
659
659
|
}, {
|
|
660
|
-
from?: string | undefined;
|
|
661
|
-
to?: string | undefined;
|
|
660
|
+
from?: string | null | undefined;
|
|
661
|
+
to?: string | null | undefined;
|
|
662
662
|
}>>>;
|
|
663
663
|
pay: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
664
664
|
min: z.ZodOptional<z.ZodNumber>;
|
|
@@ -681,14 +681,14 @@ export declare const activesContractRouter: {
|
|
|
681
681
|
filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
|
|
682
682
|
}>>>;
|
|
683
683
|
createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
684
|
-
from: z.ZodOptional<z.ZodString
|
|
685
|
-
to: z.ZodOptional<z.ZodString
|
|
684
|
+
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
685
|
+
to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
686
686
|
}, "strip", z.ZodTypeAny, {
|
|
687
|
-
from?: string | undefined;
|
|
688
|
-
to?: string | undefined;
|
|
687
|
+
from?: string | null | undefined;
|
|
688
|
+
to?: string | null | undefined;
|
|
689
689
|
}, {
|
|
690
|
-
from?: string | undefined;
|
|
691
|
-
to?: string | undefined;
|
|
690
|
+
from?: string | null | undefined;
|
|
691
|
+
to?: string | null | undefined;
|
|
692
692
|
}>>>;
|
|
693
693
|
sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["date", "payRate", "status", "createdAt", "updatedAt"]>>>;
|
|
694
694
|
sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
@@ -700,41 +700,41 @@ export declare const activesContractRouter: {
|
|
|
700
700
|
status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
|
|
701
701
|
} | null | undefined;
|
|
702
702
|
date?: {
|
|
703
|
-
from?: string | undefined;
|
|
704
|
-
to?: string | undefined;
|
|
705
|
-
} | null | undefined;
|
|
706
|
-
createdAt?: {
|
|
707
|
-
from?: string | undefined;
|
|
708
|
-
to?: string | undefined;
|
|
703
|
+
from?: string | null | undefined;
|
|
704
|
+
to?: string | null | undefined;
|
|
709
705
|
} | null | undefined;
|
|
710
706
|
pay?: {
|
|
711
707
|
min?: number | undefined;
|
|
712
708
|
max?: number | undefined;
|
|
713
709
|
} | null | undefined;
|
|
710
|
+
createdAt?: {
|
|
711
|
+
from?: string | null | undefined;
|
|
712
|
+
to?: string | null | undefined;
|
|
713
|
+
} | null | undefined;
|
|
714
714
|
bookingId?: string | null | undefined;
|
|
715
|
-
sortBy?: "status" | "date" | "
|
|
715
|
+
sortBy?: "status" | "date" | "createdAt" | "updatedAt" | "payRate" | null | undefined;
|
|
716
716
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
717
717
|
}, {
|
|
718
718
|
status?: {
|
|
719
719
|
status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
|
|
720
720
|
filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
|
|
721
721
|
} | null | undefined;
|
|
722
|
-
limit?: number | undefined;
|
|
723
|
-
page?: number | undefined;
|
|
724
722
|
date?: {
|
|
725
|
-
from?: string | undefined;
|
|
726
|
-
to?: string | undefined;
|
|
727
|
-
} | null | undefined;
|
|
728
|
-
createdAt?: {
|
|
729
|
-
from?: string | undefined;
|
|
730
|
-
to?: string | undefined;
|
|
723
|
+
from?: string | null | undefined;
|
|
724
|
+
to?: string | null | undefined;
|
|
731
725
|
} | null | undefined;
|
|
732
726
|
pay?: {
|
|
733
727
|
min?: number | undefined;
|
|
734
728
|
max?: number | undefined;
|
|
735
729
|
} | null | undefined;
|
|
730
|
+
createdAt?: {
|
|
731
|
+
from?: string | null | undefined;
|
|
732
|
+
to?: string | null | undefined;
|
|
733
|
+
} | null | undefined;
|
|
734
|
+
limit?: number | undefined;
|
|
735
|
+
page?: number | undefined;
|
|
736
736
|
bookingId?: string | null | undefined;
|
|
737
|
-
sortBy?: "status" | "date" | "
|
|
737
|
+
sortBy?: "status" | "date" | "createdAt" | "updatedAt" | "payRate" | null | undefined;
|
|
738
738
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
739
739
|
}>;
|
|
740
740
|
summary: "Get all active records";
|
|
@@ -872,10 +872,8 @@ export declare const activesContractRouter: {
|
|
|
872
872
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
873
873
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
874
874
|
}, "strip", z.ZodTypeAny, {
|
|
875
|
-
date: string;
|
|
876
|
-
createdAt: string;
|
|
877
|
-
updatedAt: string;
|
|
878
875
|
id: string;
|
|
876
|
+
date: string;
|
|
879
877
|
pay: {
|
|
880
878
|
rate: number;
|
|
881
879
|
unit: "DAILY" | "HOURLY";
|
|
@@ -890,11 +888,11 @@ export declare const activesContractRouter: {
|
|
|
890
888
|
booking: {
|
|
891
889
|
id: string;
|
|
892
890
|
};
|
|
891
|
+
createdAt: string;
|
|
892
|
+
updatedAt: string;
|
|
893
893
|
}, {
|
|
894
|
-
date: string | Date;
|
|
895
|
-
createdAt: string | Date;
|
|
896
|
-
updatedAt: string | Date;
|
|
897
894
|
id: string;
|
|
895
|
+
date: string | Date;
|
|
898
896
|
pay: {
|
|
899
897
|
rate: number;
|
|
900
898
|
unit: "DAILY" | "HOURLY";
|
|
@@ -909,6 +907,8 @@ export declare const activesContractRouter: {
|
|
|
909
907
|
booking: {
|
|
910
908
|
id: string;
|
|
911
909
|
};
|
|
910
|
+
createdAt: string | Date;
|
|
911
|
+
updatedAt: string | Date;
|
|
912
912
|
}>, "many">;
|
|
913
913
|
totalCount: z.ZodNumber;
|
|
914
914
|
limit: z.ZodNumber;
|
|
@@ -918,10 +918,8 @@ export declare const activesContractRouter: {
|
|
|
918
918
|
}, "strip", z.ZodTypeAny, {
|
|
919
919
|
limit: number;
|
|
920
920
|
items: {
|
|
921
|
-
date: string;
|
|
922
|
-
createdAt: string;
|
|
923
|
-
updatedAt: string;
|
|
924
921
|
id: string;
|
|
922
|
+
date: string;
|
|
925
923
|
pay: {
|
|
926
924
|
rate: number;
|
|
927
925
|
unit: "DAILY" | "HOURLY";
|
|
@@ -936,6 +934,8 @@ export declare const activesContractRouter: {
|
|
|
936
934
|
booking: {
|
|
937
935
|
id: string;
|
|
938
936
|
};
|
|
937
|
+
createdAt: string;
|
|
938
|
+
updatedAt: string;
|
|
939
939
|
}[];
|
|
940
940
|
totalCount: number;
|
|
941
941
|
skip: number;
|
|
@@ -944,10 +944,8 @@ export declare const activesContractRouter: {
|
|
|
944
944
|
}, {
|
|
945
945
|
limit: number;
|
|
946
946
|
items: {
|
|
947
|
-
date: string | Date;
|
|
948
|
-
createdAt: string | Date;
|
|
949
|
-
updatedAt: string | Date;
|
|
950
947
|
id: string;
|
|
948
|
+
date: string | Date;
|
|
951
949
|
pay: {
|
|
952
950
|
rate: number;
|
|
953
951
|
unit: "DAILY" | "HOURLY";
|
|
@@ -962,6 +960,8 @@ export declare const activesContractRouter: {
|
|
|
962
960
|
booking: {
|
|
963
961
|
id: string;
|
|
964
962
|
};
|
|
963
|
+
createdAt: string | Date;
|
|
964
|
+
updatedAt: string | Date;
|
|
965
965
|
}[];
|
|
966
966
|
totalCount: number;
|
|
967
967
|
skip: number;
|
|
@@ -1118,10 +1118,8 @@ export declare const activesContractRouter: {
|
|
|
1118
1118
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1119
1119
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1120
1120
|
}, "strip", z.ZodTypeAny, {
|
|
1121
|
-
date: string;
|
|
1122
|
-
createdAt: string;
|
|
1123
|
-
updatedAt: string;
|
|
1124
1121
|
id: string;
|
|
1122
|
+
date: string;
|
|
1125
1123
|
pay: {
|
|
1126
1124
|
rate: number;
|
|
1127
1125
|
unit: "DAILY" | "HOURLY";
|
|
@@ -1136,11 +1134,11 @@ export declare const activesContractRouter: {
|
|
|
1136
1134
|
booking: {
|
|
1137
1135
|
id: string;
|
|
1138
1136
|
};
|
|
1137
|
+
createdAt: string;
|
|
1138
|
+
updatedAt: string;
|
|
1139
1139
|
}, {
|
|
1140
|
-
date: string | Date;
|
|
1141
|
-
createdAt: string | Date;
|
|
1142
|
-
updatedAt: string | Date;
|
|
1143
1140
|
id: string;
|
|
1141
|
+
date: string | Date;
|
|
1144
1142
|
pay: {
|
|
1145
1143
|
rate: number;
|
|
1146
1144
|
unit: "DAILY" | "HOURLY";
|
|
@@ -1155,6 +1153,8 @@ export declare const activesContractRouter: {
|
|
|
1155
1153
|
booking: {
|
|
1156
1154
|
id: string;
|
|
1157
1155
|
};
|
|
1156
|
+
createdAt: string | Date;
|
|
1157
|
+
updatedAt: string | Date;
|
|
1158
1158
|
}>;
|
|
1159
1159
|
404: z.ZodObject<{
|
|
1160
1160
|
statusCode: z.ZodNumber;
|
|
@@ -1365,10 +1365,8 @@ export declare const activesContractRouter: {
|
|
|
1365
1365
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1366
1366
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1367
1367
|
}, "strip", z.ZodTypeAny, {
|
|
1368
|
-
date: string;
|
|
1369
|
-
createdAt: string;
|
|
1370
|
-
updatedAt: string;
|
|
1371
1368
|
id: string;
|
|
1369
|
+
date: string;
|
|
1372
1370
|
pay: {
|
|
1373
1371
|
rate: number;
|
|
1374
1372
|
unit: "DAILY" | "HOURLY";
|
|
@@ -1383,11 +1381,11 @@ export declare const activesContractRouter: {
|
|
|
1383
1381
|
booking: {
|
|
1384
1382
|
id: string;
|
|
1385
1383
|
};
|
|
1384
|
+
createdAt: string;
|
|
1385
|
+
updatedAt: string;
|
|
1386
1386
|
}, {
|
|
1387
|
-
date: string | Date;
|
|
1388
|
-
createdAt: string | Date;
|
|
1389
|
-
updatedAt: string | Date;
|
|
1390
1387
|
id: string;
|
|
1388
|
+
date: string | Date;
|
|
1391
1389
|
pay: {
|
|
1392
1390
|
rate: number;
|
|
1393
1391
|
unit: "DAILY" | "HOURLY";
|
|
@@ -1402,6 +1400,8 @@ export declare const activesContractRouter: {
|
|
|
1402
1400
|
booking: {
|
|
1403
1401
|
id: string;
|
|
1404
1402
|
};
|
|
1403
|
+
createdAt: string | Date;
|
|
1404
|
+
updatedAt: string | Date;
|
|
1405
1405
|
}>;
|
|
1406
1406
|
404: z.ZodObject<{
|
|
1407
1407
|
statusCode: z.ZodNumber;
|
|
@@ -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;
|
|
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;AAaxB,QAAA,MAAM,kBAAkB,qGAQtB,CAAC;AAEH,QAAA,MAAM,4BAA4B,8DAKhC,CAAC;AAEH,QAAA,MAAM,0BAA0B,oEAM9B,CAAC;AA0CH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCM,CAAC;AAGhC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQM,CAAC;AAGtC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQM,CAAC;AAGtC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB7B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIO,CAAC;AAGlD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAClD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AAKF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FjC,CAAC"}
|
|
@@ -33,10 +33,7 @@ const ActiveSortableFieldsSchema = zod_1.z.enum([
|
|
|
33
33
|
'updatedAt',
|
|
34
34
|
]);
|
|
35
35
|
// Common schemas
|
|
36
|
-
|
|
37
|
-
from: zod_1.z.string().datetime().optional(),
|
|
38
|
-
to: zod_1.z.string().datetime().optional(),
|
|
39
|
-
});
|
|
36
|
+
// DateRangeSchema is imported from common-schemas
|
|
40
37
|
const PayRangeSchema = zod_1.z.object({
|
|
41
38
|
min: zod_1.z.number().min(0).optional().describe('Minimum pay rate'),
|
|
42
39
|
max: zod_1.z.number().min(0).optional().describe('Maximum pay rate'),
|
|
@@ -133,14 +130,14 @@ exports.FilterActiveSchema = pagination_query_schema_1.PaginationQuerySchema.ext
|
|
|
133
130
|
.optional()
|
|
134
131
|
.nullable()
|
|
135
132
|
.describe('Filter by booking ID'),
|
|
136
|
-
date: DateRangeSchema.optional().nullable().describe('Filter by date range'),
|
|
133
|
+
date: common_schemas_1.DateRangeSchema.optional().nullable().describe('Filter by date range'),
|
|
137
134
|
pay: PayRangeSchema.optional()
|
|
138
135
|
.nullable()
|
|
139
136
|
.describe('Filter by pay rate range'),
|
|
140
137
|
status: ActiveStatusFilterSchema.optional()
|
|
141
138
|
.nullable()
|
|
142
139
|
.describe('Filter by status'),
|
|
143
|
-
createdAt: DateRangeSchema.optional()
|
|
140
|
+
createdAt: common_schemas_1.DateRangeSchema.optional()
|
|
144
141
|
.nullable()
|
|
145
142
|
.describe('Filter by created date range'),
|
|
146
143
|
sortBy: ActiveSortableFieldsSchema.optional()
|