@dakkitor/api-contracts 1.1.11 → 1.1.12
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 +75 -76
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +13 -13
- package/dist/agent-client-links/agent-client-links.contract.d.ts +320 -316
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.js +6 -6
- package/dist/auth/auth.contract.d.ts +2 -2
- package/dist/bookings/bookings.contract.d.ts +328 -328
- package/dist/call-history/call-history.contract.d.ts +205 -205
- package/dist/client-contacts/client-contacts.contract.d.ts +334 -332
- package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.js +3 -3
- package/dist/clients/clients.contract.d.ts +196 -196
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +404 -404
- package/dist/collaborations/collaborations.contract.d.ts +379 -379
- package/dist/common/error-schemas.d.ts +7 -7
- package/dist/common/error-schemas.d.ts.map +1 -1
- package/dist/companies/companies.contract.d.ts +214 -214
- package/dist/cron-executions/cron-executions.contract.d.ts +206 -206
- package/dist/curated-workers/curated-workers.contract.d.ts +213 -213
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +124 -124
- package/dist/files/files.contract.d.ts +216 -216
- package/dist/health/health.contract.d.ts +22 -22
- package/dist/index.d.ts +971 -971
- package/dist/jobs/jobs.contract.d.ts +210 -210
- package/dist/lead-assignments/lead-assignments.contract.d.ts +248 -248
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +40 -40
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +153 -153
- package/dist/leads/leads.contract.d.ts +246 -246
- package/dist/locations/locations.contract.d.ts +143 -143
- package/dist/postcodes/postcodes.contract.d.ts +56 -56
- package/dist/qualifications/qualifications.contract.d.ts +248 -248
- package/dist/trades/trades.contract.d.ts +156 -156
- package/dist/users/users.contract.d.ts +68 -64
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +8 -8
- package/dist/workers/workers.contract.d.ts +226 -226
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
declare const ActiveStatusSchema: z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>;
|
|
3
|
-
declare const ActiveStatusFilterTypeSchema: z.ZodEnum<["SECOND_AGENT", "FIRST_AGENT", "BOTH", "EITHER"]>;
|
|
4
|
-
declare const ActiveSortableFieldsSchema: z.ZodEnum<["date", "payRate", "status", "createdAt", "updatedAt"]>;
|
|
2
|
+
export declare const ActiveStatusSchema: z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY"]>;
|
|
3
|
+
export declare const ActiveStatusFilterTypeSchema: z.ZodEnum<["SECOND_AGENT", "FIRST_AGENT", "BOTH", "EITHER"]>;
|
|
4
|
+
export declare const ActiveSortableFieldsSchema: z.ZodEnum<["date", "payRate", "status", "createdAt", "updatedAt"]>;
|
|
5
5
|
export declare const ActiveSchema: z.ZodObject<{
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
date: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -32,8 +32,10 @@ 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
|
-
id: string;
|
|
36
35
|
date: string;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
updatedAt: string;
|
|
38
|
+
id: string;
|
|
37
39
|
pay: {
|
|
38
40
|
rate: number;
|
|
39
41
|
unit: "DAILY" | "HOURLY";
|
|
@@ -48,11 +50,11 @@ export declare const ActiveSchema: z.ZodObject<{
|
|
|
48
50
|
booking: {
|
|
49
51
|
id: string;
|
|
50
52
|
};
|
|
51
|
-
createdAt: string;
|
|
52
|
-
updatedAt: string;
|
|
53
53
|
}, {
|
|
54
|
-
id: string;
|
|
55
54
|
date: string | Date;
|
|
55
|
+
createdAt: string | Date;
|
|
56
|
+
updatedAt: string | Date;
|
|
57
|
+
id: string;
|
|
56
58
|
pay: {
|
|
57
59
|
rate: number;
|
|
58
60
|
unit: "DAILY" | "HOURLY";
|
|
@@ -67,8 +69,6 @@ export declare const ActiveSchema: z.ZodObject<{
|
|
|
67
69
|
booking: {
|
|
68
70
|
id: string;
|
|
69
71
|
};
|
|
70
|
-
createdAt: string | Date;
|
|
71
|
-
updatedAt: string | Date;
|
|
72
72
|
}>;
|
|
73
73
|
export declare const CreateActiveSchema: z.ZodObject<{
|
|
74
74
|
date: z.ZodString;
|
|
@@ -188,11 +188,15 @@ export declare const FilterActiveSchema: z.ZodObject<{
|
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
189
|
limit: number;
|
|
190
190
|
page: number;
|
|
191
|
+
date?: {
|
|
192
|
+
from?: string | null | undefined;
|
|
193
|
+
to?: string | null | undefined;
|
|
194
|
+
} | null | undefined;
|
|
191
195
|
status?: {
|
|
192
196
|
filterType: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER";
|
|
193
197
|
status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
|
|
194
198
|
} | null | undefined;
|
|
195
|
-
|
|
199
|
+
createdAt?: {
|
|
196
200
|
from?: string | null | undefined;
|
|
197
201
|
to?: string | null | undefined;
|
|
198
202
|
} | null | undefined;
|
|
@@ -200,19 +204,19 @@ export declare const FilterActiveSchema: z.ZodObject<{
|
|
|
200
204
|
min?: number | undefined;
|
|
201
205
|
max?: number | undefined;
|
|
202
206
|
} | 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?: "
|
|
208
|
+
sortBy?: "date" | "payRate" | "status" | "createdAt" | "updatedAt" | null | undefined;
|
|
209
209
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
210
210
|
}, {
|
|
211
|
+
date?: {
|
|
212
|
+
from?: string | null | undefined;
|
|
213
|
+
to?: string | null | undefined;
|
|
214
|
+
} | null | undefined;
|
|
211
215
|
status?: {
|
|
212
216
|
status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
|
|
213
217
|
filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
|
|
214
218
|
} | null | undefined;
|
|
215
|
-
|
|
219
|
+
createdAt?: {
|
|
216
220
|
from?: string | null | undefined;
|
|
217
221
|
to?: string | null | undefined;
|
|
218
222
|
} | null | undefined;
|
|
@@ -220,14 +224,10 @@ export declare const FilterActiveSchema: z.ZodObject<{
|
|
|
220
224
|
min?: number | undefined;
|
|
221
225
|
max?: number | undefined;
|
|
222
226
|
} | null | undefined;
|
|
223
|
-
createdAt?: {
|
|
224
|
-
from?: string | null | undefined;
|
|
225
|
-
to?: string | null | undefined;
|
|
226
|
-
} | null | undefined;
|
|
227
227
|
limit?: number | undefined;
|
|
228
228
|
page?: number | undefined;
|
|
229
229
|
bookingId?: string | null | undefined;
|
|
230
|
-
sortBy?: "
|
|
230
|
+
sortBy?: "date" | "payRate" | "status" | "createdAt" | "updatedAt" | null | undefined;
|
|
231
231
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
232
232
|
}>;
|
|
233
233
|
export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
@@ -261,8 +261,10 @@ 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
|
-
id: string;
|
|
265
264
|
date: string;
|
|
265
|
+
createdAt: string;
|
|
266
|
+
updatedAt: string;
|
|
267
|
+
id: string;
|
|
266
268
|
pay: {
|
|
267
269
|
rate: number;
|
|
268
270
|
unit: "DAILY" | "HOURLY";
|
|
@@ -277,11 +279,11 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
277
279
|
booking: {
|
|
278
280
|
id: string;
|
|
279
281
|
};
|
|
280
|
-
createdAt: string;
|
|
281
|
-
updatedAt: string;
|
|
282
282
|
}, {
|
|
283
|
-
id: string;
|
|
284
283
|
date: string | Date;
|
|
284
|
+
createdAt: string | Date;
|
|
285
|
+
updatedAt: string | Date;
|
|
286
|
+
id: string;
|
|
285
287
|
pay: {
|
|
286
288
|
rate: number;
|
|
287
289
|
unit: "DAILY" | "HOURLY";
|
|
@@ -296,8 +298,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
296
298
|
booking: {
|
|
297
299
|
id: string;
|
|
298
300
|
};
|
|
299
|
-
createdAt: string | Date;
|
|
300
|
-
updatedAt: string | Date;
|
|
301
301
|
}>, "many">;
|
|
302
302
|
totalCount: z.ZodNumber;
|
|
303
303
|
limit: z.ZodNumber;
|
|
@@ -307,8 +307,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
307
307
|
}, "strip", z.ZodTypeAny, {
|
|
308
308
|
limit: number;
|
|
309
309
|
items: {
|
|
310
|
-
id: string;
|
|
311
310
|
date: string;
|
|
311
|
+
createdAt: string;
|
|
312
|
+
updatedAt: string;
|
|
313
|
+
id: string;
|
|
312
314
|
pay: {
|
|
313
315
|
rate: number;
|
|
314
316
|
unit: "DAILY" | "HOURLY";
|
|
@@ -323,8 +325,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
323
325
|
booking: {
|
|
324
326
|
id: string;
|
|
325
327
|
};
|
|
326
|
-
createdAt: string;
|
|
327
|
-
updatedAt: string;
|
|
328
328
|
}[];
|
|
329
329
|
totalCount: number;
|
|
330
330
|
skip: number;
|
|
@@ -333,8 +333,10 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
333
333
|
}, {
|
|
334
334
|
limit: number;
|
|
335
335
|
items: {
|
|
336
|
-
id: string;
|
|
337
336
|
date: string | Date;
|
|
337
|
+
createdAt: string | Date;
|
|
338
|
+
updatedAt: string | Date;
|
|
339
|
+
id: string;
|
|
338
340
|
pay: {
|
|
339
341
|
rate: number;
|
|
340
342
|
unit: "DAILY" | "HOURLY";
|
|
@@ -349,8 +351,6 @@ export declare const PaginatedActiveResponseSchema: z.ZodObject<{
|
|
|
349
351
|
booking: {
|
|
350
352
|
id: string;
|
|
351
353
|
};
|
|
352
|
-
createdAt: string | Date;
|
|
353
|
-
updatedAt: string | Date;
|
|
354
354
|
}[];
|
|
355
355
|
totalCount: number;
|
|
356
356
|
skip: number;
|
|
@@ -548,8 +548,10 @@ 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
|
-
id: string;
|
|
552
551
|
date: string;
|
|
552
|
+
createdAt: string;
|
|
553
|
+
updatedAt: string;
|
|
554
|
+
id: string;
|
|
553
555
|
pay: {
|
|
554
556
|
rate: number;
|
|
555
557
|
unit: "DAILY" | "HOURLY";
|
|
@@ -564,11 +566,11 @@ export declare const activesContractRouter: {
|
|
|
564
566
|
booking: {
|
|
565
567
|
id: string;
|
|
566
568
|
};
|
|
567
|
-
createdAt: string;
|
|
568
|
-
updatedAt: string;
|
|
569
569
|
}, {
|
|
570
|
-
id: string;
|
|
571
570
|
date: string | Date;
|
|
571
|
+
createdAt: string | Date;
|
|
572
|
+
updatedAt: string | Date;
|
|
573
|
+
id: string;
|
|
572
574
|
pay: {
|
|
573
575
|
rate: number;
|
|
574
576
|
unit: "DAILY" | "HOURLY";
|
|
@@ -583,8 +585,6 @@ export declare const activesContractRouter: {
|
|
|
583
585
|
booking: {
|
|
584
586
|
id: string;
|
|
585
587
|
};
|
|
586
|
-
createdAt: string | Date;
|
|
587
|
-
updatedAt: string | Date;
|
|
588
588
|
}>;
|
|
589
589
|
404: z.ZodObject<{
|
|
590
590
|
statusCode: z.ZodNumber;
|
|
@@ -695,11 +695,15 @@ export declare const activesContractRouter: {
|
|
|
695
695
|
}, "strip", z.ZodTypeAny, {
|
|
696
696
|
limit: number;
|
|
697
697
|
page: number;
|
|
698
|
+
date?: {
|
|
699
|
+
from?: string | null | undefined;
|
|
700
|
+
to?: string | null | undefined;
|
|
701
|
+
} | null | undefined;
|
|
698
702
|
status?: {
|
|
699
703
|
filterType: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER";
|
|
700
704
|
status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
|
|
701
705
|
} | null | undefined;
|
|
702
|
-
|
|
706
|
+
createdAt?: {
|
|
703
707
|
from?: string | null | undefined;
|
|
704
708
|
to?: string | null | undefined;
|
|
705
709
|
} | null | undefined;
|
|
@@ -707,19 +711,19 @@ export declare const activesContractRouter: {
|
|
|
707
711
|
min?: number | undefined;
|
|
708
712
|
max?: number | undefined;
|
|
709
713
|
} | 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?: "
|
|
715
|
+
sortBy?: "date" | "payRate" | "status" | "createdAt" | "updatedAt" | null | undefined;
|
|
716
716
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
717
717
|
}, {
|
|
718
|
+
date?: {
|
|
719
|
+
from?: string | null | undefined;
|
|
720
|
+
to?: string | null | undefined;
|
|
721
|
+
} | null | undefined;
|
|
718
722
|
status?: {
|
|
719
723
|
status?: "PENDING" | "ACTIVE" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | undefined;
|
|
720
724
|
filterType?: "SECOND_AGENT" | "FIRST_AGENT" | "BOTH" | "EITHER" | undefined;
|
|
721
725
|
} | null | undefined;
|
|
722
|
-
|
|
726
|
+
createdAt?: {
|
|
723
727
|
from?: string | null | undefined;
|
|
724
728
|
to?: string | null | undefined;
|
|
725
729
|
} | null | undefined;
|
|
@@ -727,14 +731,10 @@ export declare const activesContractRouter: {
|
|
|
727
731
|
min?: number | undefined;
|
|
728
732
|
max?: number | undefined;
|
|
729
733
|
} | null | undefined;
|
|
730
|
-
createdAt?: {
|
|
731
|
-
from?: string | null | undefined;
|
|
732
|
-
to?: string | null | undefined;
|
|
733
|
-
} | null | undefined;
|
|
734
734
|
limit?: number | undefined;
|
|
735
735
|
page?: number | undefined;
|
|
736
736
|
bookingId?: string | null | undefined;
|
|
737
|
-
sortBy?: "
|
|
737
|
+
sortBy?: "date" | "payRate" | "status" | "createdAt" | "updatedAt" | null | undefined;
|
|
738
738
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
739
739
|
}>;
|
|
740
740
|
summary: "Get all active records";
|
|
@@ -872,8 +872,10 @@ 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
|
-
id: string;
|
|
876
875
|
date: string;
|
|
876
|
+
createdAt: string;
|
|
877
|
+
updatedAt: string;
|
|
878
|
+
id: string;
|
|
877
879
|
pay: {
|
|
878
880
|
rate: number;
|
|
879
881
|
unit: "DAILY" | "HOURLY";
|
|
@@ -888,11 +890,11 @@ export declare const activesContractRouter: {
|
|
|
888
890
|
booking: {
|
|
889
891
|
id: string;
|
|
890
892
|
};
|
|
891
|
-
createdAt: string;
|
|
892
|
-
updatedAt: string;
|
|
893
893
|
}, {
|
|
894
|
-
id: string;
|
|
895
894
|
date: string | Date;
|
|
895
|
+
createdAt: string | Date;
|
|
896
|
+
updatedAt: string | Date;
|
|
897
|
+
id: string;
|
|
896
898
|
pay: {
|
|
897
899
|
rate: number;
|
|
898
900
|
unit: "DAILY" | "HOURLY";
|
|
@@ -907,8 +909,6 @@ export declare const activesContractRouter: {
|
|
|
907
909
|
booking: {
|
|
908
910
|
id: string;
|
|
909
911
|
};
|
|
910
|
-
createdAt: string | Date;
|
|
911
|
-
updatedAt: string | Date;
|
|
912
912
|
}>, "many">;
|
|
913
913
|
totalCount: z.ZodNumber;
|
|
914
914
|
limit: z.ZodNumber;
|
|
@@ -918,8 +918,10 @@ export declare const activesContractRouter: {
|
|
|
918
918
|
}, "strip", z.ZodTypeAny, {
|
|
919
919
|
limit: number;
|
|
920
920
|
items: {
|
|
921
|
-
id: string;
|
|
922
921
|
date: string;
|
|
922
|
+
createdAt: string;
|
|
923
|
+
updatedAt: string;
|
|
924
|
+
id: string;
|
|
923
925
|
pay: {
|
|
924
926
|
rate: number;
|
|
925
927
|
unit: "DAILY" | "HOURLY";
|
|
@@ -934,8 +936,6 @@ export declare const activesContractRouter: {
|
|
|
934
936
|
booking: {
|
|
935
937
|
id: string;
|
|
936
938
|
};
|
|
937
|
-
createdAt: string;
|
|
938
|
-
updatedAt: string;
|
|
939
939
|
}[];
|
|
940
940
|
totalCount: number;
|
|
941
941
|
skip: number;
|
|
@@ -944,8 +944,10 @@ export declare const activesContractRouter: {
|
|
|
944
944
|
}, {
|
|
945
945
|
limit: number;
|
|
946
946
|
items: {
|
|
947
|
-
id: string;
|
|
948
947
|
date: string | Date;
|
|
948
|
+
createdAt: string | Date;
|
|
949
|
+
updatedAt: string | Date;
|
|
950
|
+
id: string;
|
|
949
951
|
pay: {
|
|
950
952
|
rate: number;
|
|
951
953
|
unit: "DAILY" | "HOURLY";
|
|
@@ -960,8 +962,6 @@ export declare const activesContractRouter: {
|
|
|
960
962
|
booking: {
|
|
961
963
|
id: string;
|
|
962
964
|
};
|
|
963
|
-
createdAt: string | Date;
|
|
964
|
-
updatedAt: string | Date;
|
|
965
965
|
}[];
|
|
966
966
|
totalCount: number;
|
|
967
967
|
skip: number;
|
|
@@ -1118,8 +1118,10 @@ 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
|
-
id: string;
|
|
1122
1121
|
date: string;
|
|
1122
|
+
createdAt: string;
|
|
1123
|
+
updatedAt: string;
|
|
1124
|
+
id: string;
|
|
1123
1125
|
pay: {
|
|
1124
1126
|
rate: number;
|
|
1125
1127
|
unit: "DAILY" | "HOURLY";
|
|
@@ -1134,11 +1136,11 @@ export declare const activesContractRouter: {
|
|
|
1134
1136
|
booking: {
|
|
1135
1137
|
id: string;
|
|
1136
1138
|
};
|
|
1137
|
-
createdAt: string;
|
|
1138
|
-
updatedAt: string;
|
|
1139
1139
|
}, {
|
|
1140
|
-
id: string;
|
|
1141
1140
|
date: string | Date;
|
|
1141
|
+
createdAt: string | Date;
|
|
1142
|
+
updatedAt: string | Date;
|
|
1143
|
+
id: string;
|
|
1142
1144
|
pay: {
|
|
1143
1145
|
rate: number;
|
|
1144
1146
|
unit: "DAILY" | "HOURLY";
|
|
@@ -1153,8 +1155,6 @@ export declare const activesContractRouter: {
|
|
|
1153
1155
|
booking: {
|
|
1154
1156
|
id: string;
|
|
1155
1157
|
};
|
|
1156
|
-
createdAt: string | Date;
|
|
1157
|
-
updatedAt: string | Date;
|
|
1158
1158
|
}>;
|
|
1159
1159
|
404: z.ZodObject<{
|
|
1160
1160
|
statusCode: z.ZodNumber;
|
|
@@ -1365,8 +1365,10 @@ 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
|
-
id: string;
|
|
1369
1368
|
date: string;
|
|
1369
|
+
createdAt: string;
|
|
1370
|
+
updatedAt: string;
|
|
1371
|
+
id: string;
|
|
1370
1372
|
pay: {
|
|
1371
1373
|
rate: number;
|
|
1372
1374
|
unit: "DAILY" | "HOURLY";
|
|
@@ -1381,11 +1383,11 @@ export declare const activesContractRouter: {
|
|
|
1381
1383
|
booking: {
|
|
1382
1384
|
id: string;
|
|
1383
1385
|
};
|
|
1384
|
-
createdAt: string;
|
|
1385
|
-
updatedAt: string;
|
|
1386
1386
|
}, {
|
|
1387
|
-
id: string;
|
|
1388
1387
|
date: string | Date;
|
|
1388
|
+
createdAt: string | Date;
|
|
1389
|
+
updatedAt: string | Date;
|
|
1390
|
+
id: string;
|
|
1389
1391
|
pay: {
|
|
1390
1392
|
rate: number;
|
|
1391
1393
|
unit: "DAILY" | "HOURLY";
|
|
@@ -1400,8 +1402,6 @@ export declare const activesContractRouter: {
|
|
|
1400
1402
|
booking: {
|
|
1401
1403
|
id: string;
|
|
1402
1404
|
};
|
|
1403
|
-
createdAt: string | Date;
|
|
1404
|
-
updatedAt: string | Date;
|
|
1405
1405
|
}>;
|
|
1406
1406
|
404: z.ZodObject<{
|
|
1407
1407
|
statusCode: z.ZodNumber;
|
|
@@ -1578,5 +1578,4 @@ export declare const activesContractRouter: {
|
|
|
1578
1578
|
};
|
|
1579
1579
|
};
|
|
1580
1580
|
};
|
|
1581
|
-
export {};
|
|
1582
1581
|
//# sourceMappingURL=actives.contract.d.ts.map
|
|
@@ -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;AAaxB,
|
|
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,eAAO,MAAM,kBAAkB,qGAQ7B,CAAC;AAEH,eAAO,MAAM,4BAA4B,8DAKvC,CAAC;AAEH,eAAO,MAAM,0BAA0B,oEAMrC,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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.activesContractRouter = exports.PaginatedActiveResponseSchema = exports.FilterActiveSchema = exports.UpdateActiveSchema = exports.CreateActiveSchema = exports.ActiveSchema = void 0;
|
|
3
|
+
exports.activesContractRouter = exports.PaginatedActiveResponseSchema = exports.FilterActiveSchema = exports.UpdateActiveSchema = exports.CreateActiveSchema = exports.ActiveSchema = exports.ActiveSortableFieldsSchema = exports.ActiveStatusFilterTypeSchema = exports.ActiveStatusSchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@anatine/zod-openapi");
|
|
5
5
|
const core_1 = require("@ts-rest/core");
|
|
6
6
|
const zod_1 = require("zod");
|
|
@@ -10,7 +10,7 @@ const pagination_query_schema_1 = require("../common/pagination-query.schema");
|
|
|
10
10
|
const pagination_schema_1 = require("../common/pagination.schema");
|
|
11
11
|
(0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
|
|
12
12
|
// Enums
|
|
13
|
-
|
|
13
|
+
exports.ActiveStatusSchema = zod_1.z.enum([
|
|
14
14
|
'PENDING',
|
|
15
15
|
'ACTIVE',
|
|
16
16
|
'VACATION',
|
|
@@ -19,13 +19,13 @@ const ActiveStatusSchema = zod_1.z.enum([
|
|
|
19
19
|
'DAY_OFF',
|
|
20
20
|
'INJURY',
|
|
21
21
|
]);
|
|
22
|
-
|
|
22
|
+
exports.ActiveStatusFilterTypeSchema = zod_1.z.enum([
|
|
23
23
|
'SECOND_AGENT',
|
|
24
24
|
'FIRST_AGENT',
|
|
25
25
|
'BOTH',
|
|
26
26
|
'EITHER',
|
|
27
27
|
]);
|
|
28
|
-
|
|
28
|
+
exports.ActiveSortableFieldsSchema = zod_1.z.enum([
|
|
29
29
|
'date',
|
|
30
30
|
'payRate',
|
|
31
31
|
'status',
|
|
@@ -57,8 +57,8 @@ const BookingSchema = zod_1.z
|
|
|
57
57
|
// Active Status Filter
|
|
58
58
|
const ActiveStatusFilterSchema = zod_1.z
|
|
59
59
|
.object({
|
|
60
|
-
status: ActiveStatusSchema.optional().describe('Filter by status value'),
|
|
61
|
-
filterType: ActiveStatusFilterTypeSchema.optional()
|
|
60
|
+
status: exports.ActiveStatusSchema.optional().describe('Filter by status value'),
|
|
61
|
+
filterType: exports.ActiveStatusFilterTypeSchema.optional()
|
|
62
62
|
.default('EITHER')
|
|
63
63
|
.describe('Status filter type: SECOND_AGENT (check only SA status), FIRST_AGENT (check only FA status), BOTH (both statuses must be the same), EITHER (either SA or FA status can match)'),
|
|
64
64
|
})
|
|
@@ -73,13 +73,13 @@ exports.ActiveSchema = zod_1.z
|
|
|
73
73
|
.describe('Active Date'),
|
|
74
74
|
pay: PaySchema.describe('Pay Information'),
|
|
75
75
|
comment: zod_1.z.string().nullable().describe('Comment'),
|
|
76
|
-
statusSa: ActiveStatusSchema.describe('Second Agent Status'),
|
|
76
|
+
statusSa: exports.ActiveStatusSchema.describe('Second Agent Status'),
|
|
77
77
|
statusSaUpdatedAt: zod_1.z
|
|
78
78
|
.union([zod_1.z.string().datetime(), zod_1.z.date(), zod_1.z.null()])
|
|
79
79
|
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
80
80
|
.nullable()
|
|
81
81
|
.describe('SA Status Updated At'),
|
|
82
|
-
statusFa: ActiveStatusSchema.describe('First Agent Status'),
|
|
82
|
+
statusFa: exports.ActiveStatusSchema.describe('First Agent Status'),
|
|
83
83
|
statusFaUpdatedAt: zod_1.z
|
|
84
84
|
.union([zod_1.z.string().datetime(), zod_1.z.date(), zod_1.z.null()])
|
|
85
85
|
.transform((val) => (val instanceof Date ? val.toISOString() : val))
|
|
@@ -108,8 +108,8 @@ exports.CreateActiveSchema = zod_1.z
|
|
|
108
108
|
date: zod_1.z.string().date().describe('Select date'),
|
|
109
109
|
pay: WorkerPaySchema.describe('Pay rate and unit'),
|
|
110
110
|
comment: zod_1.z.string().optional().describe('Enter comment'),
|
|
111
|
-
statusSa: ActiveStatusSchema.optional().describe('Select SA status'),
|
|
112
|
-
statusFa: ActiveStatusSchema.optional().describe('Select FA status'),
|
|
111
|
+
statusSa: exports.ActiveStatusSchema.optional().describe('Select SA status'),
|
|
112
|
+
statusFa: exports.ActiveStatusSchema.optional().describe('Select FA status'),
|
|
113
113
|
})
|
|
114
114
|
.openapi({ title: 'CreateActive' });
|
|
115
115
|
// Update Active schema
|
|
@@ -118,8 +118,8 @@ exports.UpdateActiveSchema = zod_1.z
|
|
|
118
118
|
pay: WorkerPaySchema.optional().describe('Updated pay rate and unit'),
|
|
119
119
|
hoursWorked: zod_1.z.number().min(0).optional().describe('Updated hours worked'),
|
|
120
120
|
comment: zod_1.z.string().optional().describe('Updated comment'),
|
|
121
|
-
statusSa: ActiveStatusSchema.optional().describe('Updated SA status'),
|
|
122
|
-
statusFa: ActiveStatusSchema.optional().describe('Updated FA status'),
|
|
121
|
+
statusSa: exports.ActiveStatusSchema.optional().describe('Updated SA status'),
|
|
122
|
+
statusFa: exports.ActiveStatusSchema.optional().describe('Updated FA status'),
|
|
123
123
|
})
|
|
124
124
|
.openapi({ title: 'UpdateActive' });
|
|
125
125
|
// Filter Active schema
|
|
@@ -140,7 +140,7 @@ exports.FilterActiveSchema = pagination_query_schema_1.PaginationQuerySchema.ext
|
|
|
140
140
|
createdAt: common_schemas_1.DateRangeSchema.optional()
|
|
141
141
|
.nullable()
|
|
142
142
|
.describe('Filter by created date range'),
|
|
143
|
-
sortBy: ActiveSortableFieldsSchema.optional()
|
|
143
|
+
sortBy: exports.ActiveSortableFieldsSchema.optional()
|
|
144
144
|
.nullable()
|
|
145
145
|
.describe('The field to sort the results by'),
|
|
146
146
|
sortOrder: common_schemas_1.SortOrderSchema.optional()
|