@dakkitor/api-contracts 1.1.31 → 1.1.33
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/abilities/first-agent.abilities.json +13 -15
- package/dist/abilities/second-agent.abilities.json +13 -3
- package/dist/actives/actives.contract.d.ts +1054 -998
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +3 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts +24 -24
- package/dist/bookings/bookings.contract.d.ts +888 -888
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +13 -18
- package/dist/call-history/call-history.contract.d.ts +387 -387
- package/dist/jobs/jobs.contract.d.ts +54 -0
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +13 -0
- package/dist/lead-assignments/lead-assignments.contract.d.ts +272 -272
- package/dist/leads/leads.contract.d.ts +84 -84
- package/dist/users/users.contract.d.ts +266 -0
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +20 -0
- package/dist/workers/workers.contract.d.ts +143 -124
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +14 -10
- package/package.json +1 -1
|
@@ -1014,7 +1014,20 @@ export declare const FilterJobSchema: z.ZodObject<{
|
|
|
1014
1014
|
page: z.ZodDefault<z.ZodNumber>;
|
|
1015
1015
|
} & {
|
|
1016
1016
|
tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1017
|
+
qualificationFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1018
|
+
qualificationId: z.ZodOptional<z.ZodString>;
|
|
1019
|
+
qualificationTypeId: z.ZodOptional<z.ZodString>;
|
|
1020
|
+
}, "strip", z.ZodTypeAny, {
|
|
1021
|
+
qualificationId?: string | undefined;
|
|
1022
|
+
qualificationTypeId?: string | undefined;
|
|
1023
|
+
}, {
|
|
1024
|
+
qualificationId?: string | undefined;
|
|
1025
|
+
qualificationTypeId?: string | undefined;
|
|
1026
|
+
}>, "many">>;
|
|
1017
1027
|
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>>>;
|
|
1028
|
+
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1029
|
+
clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1030
|
+
companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1018
1031
|
postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1019
1032
|
distance: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1020
1033
|
pay: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -1053,6 +1066,13 @@ export declare const FilterJobSchema: z.ZodObject<{
|
|
|
1053
1066
|
} | null | undefined;
|
|
1054
1067
|
postcode?: string | null | undefined;
|
|
1055
1068
|
tradeId?: string | null | undefined;
|
|
1069
|
+
userId?: string | null | undefined;
|
|
1070
|
+
qualificationFilters?: {
|
|
1071
|
+
qualificationId?: string | undefined;
|
|
1072
|
+
qualificationTypeId?: string | undefined;
|
|
1073
|
+
}[] | undefined;
|
|
1074
|
+
clientId?: string | null | undefined;
|
|
1075
|
+
companyId?: string | null | undefined;
|
|
1056
1076
|
distance?: number | null | undefined;
|
|
1057
1077
|
sortBy?: "description" | "numberOfPositions" | "status" | "createdAt" | "updatedAt" | null | undefined;
|
|
1058
1078
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
@@ -1068,8 +1088,15 @@ export declare const FilterJobSchema: z.ZodObject<{
|
|
|
1068
1088
|
} | null | undefined;
|
|
1069
1089
|
postcode?: string | null | undefined;
|
|
1070
1090
|
tradeId?: string | null | undefined;
|
|
1091
|
+
userId?: string | null | undefined;
|
|
1071
1092
|
limit?: number | undefined;
|
|
1072
1093
|
page?: number | undefined;
|
|
1094
|
+
qualificationFilters?: {
|
|
1095
|
+
qualificationId?: string | undefined;
|
|
1096
|
+
qualificationTypeId?: string | undefined;
|
|
1097
|
+
}[] | undefined;
|
|
1098
|
+
clientId?: string | null | undefined;
|
|
1099
|
+
companyId?: string | null | undefined;
|
|
1073
1100
|
distance?: number | null | undefined;
|
|
1074
1101
|
sortBy?: "description" | "numberOfPositions" | "status" | "createdAt" | "updatedAt" | null | undefined;
|
|
1075
1102
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
@@ -3023,7 +3050,20 @@ export declare const jobsContractRouter: {
|
|
|
3023
3050
|
page: z.ZodDefault<z.ZodNumber>;
|
|
3024
3051
|
} & {
|
|
3025
3052
|
tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3053
|
+
qualificationFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3054
|
+
qualificationId: z.ZodOptional<z.ZodString>;
|
|
3055
|
+
qualificationTypeId: z.ZodOptional<z.ZodString>;
|
|
3056
|
+
}, "strip", z.ZodTypeAny, {
|
|
3057
|
+
qualificationId?: string | undefined;
|
|
3058
|
+
qualificationTypeId?: string | undefined;
|
|
3059
|
+
}, {
|
|
3060
|
+
qualificationId?: string | undefined;
|
|
3061
|
+
qualificationTypeId?: string | undefined;
|
|
3062
|
+
}>, "many">>;
|
|
3026
3063
|
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>>>;
|
|
3064
|
+
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3065
|
+
clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3066
|
+
companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3027
3067
|
postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3028
3068
|
distance: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
3029
3069
|
pay: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -3062,6 +3102,13 @@ export declare const jobsContractRouter: {
|
|
|
3062
3102
|
} | null | undefined;
|
|
3063
3103
|
postcode?: string | null | undefined;
|
|
3064
3104
|
tradeId?: string | null | undefined;
|
|
3105
|
+
userId?: string | null | undefined;
|
|
3106
|
+
qualificationFilters?: {
|
|
3107
|
+
qualificationId?: string | undefined;
|
|
3108
|
+
qualificationTypeId?: string | undefined;
|
|
3109
|
+
}[] | undefined;
|
|
3110
|
+
clientId?: string | null | undefined;
|
|
3111
|
+
companyId?: string | null | undefined;
|
|
3065
3112
|
distance?: number | null | undefined;
|
|
3066
3113
|
sortBy?: "description" | "numberOfPositions" | "status" | "createdAt" | "updatedAt" | null | undefined;
|
|
3067
3114
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
@@ -3077,8 +3124,15 @@ export declare const jobsContractRouter: {
|
|
|
3077
3124
|
} | null | undefined;
|
|
3078
3125
|
postcode?: string | null | undefined;
|
|
3079
3126
|
tradeId?: string | null | undefined;
|
|
3127
|
+
userId?: string | null | undefined;
|
|
3080
3128
|
limit?: number | undefined;
|
|
3081
3129
|
page?: number | undefined;
|
|
3130
|
+
qualificationFilters?: {
|
|
3131
|
+
qualificationId?: string | undefined;
|
|
3132
|
+
qualificationTypeId?: string | undefined;
|
|
3133
|
+
}[] | undefined;
|
|
3134
|
+
clientId?: string | null | undefined;
|
|
3135
|
+
companyId?: string | null | undefined;
|
|
3082
3136
|
distance?: number | null | undefined;
|
|
3083
3137
|
sortBy?: "description" | "numberOfPositions" | "status" | "createdAt" | "updatedAt" | null | undefined;
|
|
3084
3138
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.contract.d.ts","sourceRoot":"","sources":["../../contracts/jobs/jobs.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"jobs.contract.d.ts","sourceRoot":"","sources":["../../contrac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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0E9B,CAAC"}
|
|
@@ -9,6 +9,7 @@ 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 curated_workers_contract_1 = require("../curated-workers/curated-workers.contract");
|
|
12
13
|
(0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
|
|
13
14
|
/**
|
|
14
15
|
* Job Status Enum
|
|
@@ -210,9 +211,21 @@ exports.UpdateJobSchema = zod_1.z
|
|
|
210
211
|
*/
|
|
211
212
|
exports.FilterJobSchema = pagination_query_schema_1.PaginationQuerySchema.extend({
|
|
212
213
|
tradeId: zod_1.z.string().uuid().optional().nullable().describe('Filter by trade'),
|
|
214
|
+
qualificationFilters: zod_1.z
|
|
215
|
+
.array(curated_workers_contract_1.QualificationFilterSchema)
|
|
216
|
+
.optional()
|
|
217
|
+
.describe('Filter by qualifications'),
|
|
213
218
|
status: exports.JobStatusSchema.optional()
|
|
214
219
|
.nullable()
|
|
215
220
|
.describe('Filter by job status'),
|
|
221
|
+
userId: zod_1.z
|
|
222
|
+
.string()
|
|
223
|
+
.uuid()
|
|
224
|
+
.optional()
|
|
225
|
+
.nullable()
|
|
226
|
+
.describe('Search First Agent'),
|
|
227
|
+
clientId: zod_1.z.string().uuid().optional().nullable().describe('Search Client'),
|
|
228
|
+
companyId: zod_1.z.string().uuid().optional().nullable().describe('Search Company'),
|
|
216
229
|
postcode: zod_1.z.string().optional().nullable().describe('Filter by postcode'),
|
|
217
230
|
distance: zod_1.z.coerce
|
|
218
231
|
.number()
|