@dakkitor/api-contracts 1.1.86 → 1.1.88

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.
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  /**
3
3
  * Job Status Enum
4
4
  */
5
- export declare const JobStatusSchema: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>;
5
+ export declare const JobStatusSchema: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>;
6
6
  /**
7
7
  * Job Sortable Fields Enum
8
8
  */
@@ -82,7 +82,7 @@ export declare const JobSchema: z.ZodObject<{
82
82
  description: z.ZodString;
83
83
  numberOfPositions: z.ZodNumber;
84
84
  workHours: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
85
- status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>;
85
+ status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>;
86
86
  pay: z.ZodObject<{
87
87
  rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
88
88
  rate: z.ZodNumber;
@@ -668,7 +668,7 @@ export declare const JobSchema: z.ZodObject<{
668
668
  }, "strip", z.ZodTypeAny, {
669
669
  description: string;
670
670
  numberOfPositions: number;
671
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
671
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
672
672
  createdAt: string;
673
673
  updatedAt: string;
674
674
  id: string;
@@ -787,7 +787,7 @@ export declare const JobSchema: z.ZodObject<{
787
787
  }, {
788
788
  description: string;
789
789
  numberOfPositions: number;
790
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
790
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
791
791
  createdAt: string | Date;
792
792
  updatedAt: string | Date;
793
793
  id: string;
@@ -955,11 +955,11 @@ export declare const CreateJobSchema: z.ZodObject<{
955
955
  qualificationId: string;
956
956
  qualificationTypeId?: string | null | undefined;
957
957
  }>, "many">>;
958
- status: z.ZodDefault<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>>;
958
+ status: z.ZodDefault<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>>;
959
959
  }, "strip", z.ZodTypeAny, {
960
960
  description: string;
961
961
  numberOfPositions: number;
962
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
962
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
963
963
  workHours: number;
964
964
  pay: {
965
965
  rateUnit: "DAILY" | "HOURLY";
@@ -992,7 +992,90 @@ export declare const CreateJobSchema: z.ZodObject<{
992
992
  currentCollaboration: {
993
993
  id: string;
994
994
  };
995
- status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | undefined;
995
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | undefined;
996
+ workHours?: number | undefined;
997
+ location?: {
998
+ address?: string | null | undefined;
999
+ postcode?: string | null | undefined;
1000
+ } | undefined;
1001
+ jobQualifications?: {
1002
+ qualificationId: string;
1003
+ qualificationTypeId?: string | null | undefined;
1004
+ }[] | undefined;
1005
+ }>;
1006
+ /**
1007
+ * Create Draft Job Schema - For bot-created jobs without collaboration
1008
+ */
1009
+ export declare const CreateDraftJobSchema: z.ZodObject<{
1010
+ description: z.ZodString;
1011
+ location: z.ZodOptional<z.ZodObject<{
1012
+ address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1013
+ postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1014
+ }, "strip", z.ZodTypeAny, {
1015
+ address?: string | null | undefined;
1016
+ postcode?: string | null | undefined;
1017
+ }, {
1018
+ address?: string | null | undefined;
1019
+ postcode?: string | null | undefined;
1020
+ }>>;
1021
+ numberOfPositions: z.ZodNumber;
1022
+ workHours: z.ZodDefault<z.ZodNumber>;
1023
+ pay: z.ZodObject<{
1024
+ rateUnit: z.ZodDefault<z.ZodEnum<["DAILY", "HOURLY"]>>;
1025
+ rate: z.ZodNumber;
1026
+ rateMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1027
+ receivedRate: z.ZodNumber;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ rateUnit: "DAILY" | "HOURLY";
1030
+ rate: number;
1031
+ receivedRate: number;
1032
+ rateMax?: number | null | undefined;
1033
+ }, {
1034
+ rate: number;
1035
+ receivedRate: number;
1036
+ rateUnit?: "DAILY" | "HOURLY" | undefined;
1037
+ rateMax?: number | null | undefined;
1038
+ }>;
1039
+ tradeId: z.ZodPipeline<z.ZodString, z.ZodString>;
1040
+ jobQualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
1041
+ qualificationId: z.ZodString;
1042
+ qualificationTypeId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1043
+ }, "strip", z.ZodTypeAny, {
1044
+ qualificationId: string;
1045
+ qualificationTypeId?: string | null | undefined;
1046
+ }, {
1047
+ qualificationId: string;
1048
+ qualificationTypeId?: string | null | undefined;
1049
+ }>, "many">>;
1050
+ }, "strip", z.ZodTypeAny, {
1051
+ description: string;
1052
+ numberOfPositions: number;
1053
+ workHours: number;
1054
+ pay: {
1055
+ rateUnit: "DAILY" | "HOURLY";
1056
+ rate: number;
1057
+ receivedRate: number;
1058
+ rateMax?: number | null | undefined;
1059
+ };
1060
+ tradeId: string;
1061
+ location?: {
1062
+ address?: string | null | undefined;
1063
+ postcode?: string | null | undefined;
1064
+ } | undefined;
1065
+ jobQualifications?: {
1066
+ qualificationId: string;
1067
+ qualificationTypeId?: string | null | undefined;
1068
+ }[] | undefined;
1069
+ }, {
1070
+ description: string;
1071
+ numberOfPositions: number;
1072
+ pay: {
1073
+ rate: number;
1074
+ receivedRate: number;
1075
+ rateUnit?: "DAILY" | "HOURLY" | undefined;
1076
+ rateMax?: number | null | undefined;
1077
+ };
1078
+ tradeId: string;
996
1079
  workHours?: number | undefined;
997
1080
  location?: {
998
1081
  address?: string | null | undefined;
@@ -1006,7 +1089,7 @@ export declare const CreateJobSchema: z.ZodObject<{
1006
1089
  /**
1007
1090
  * Update Job Schema
1008
1091
  */
1009
- export declare const UpdateJobSchema: z.ZodObject<{
1092
+ export declare const UpdateJobSchema: z.ZodEffects<z.ZodObject<{
1010
1093
  description: z.ZodOptional<z.ZodString>;
1011
1094
  location: z.ZodOptional<z.ZodObject<{
1012
1095
  address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1037,13 +1120,13 @@ export declare const UpdateJobSchema: z.ZodObject<{
1037
1120
  rateMax?: number | null | undefined;
1038
1121
  }>>;
1039
1122
  tradeId: z.ZodOptional<z.ZodPipeline<z.ZodString, z.ZodString>>;
1040
- currentCollaboration: z.ZodOptional<z.ZodObject<{
1123
+ currentCollaboration: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1041
1124
  id: z.ZodString;
1042
1125
  }, "strip", z.ZodTypeAny, {
1043
1126
  id: string;
1044
1127
  }, {
1045
1128
  id: string;
1046
- }>>;
1129
+ }>>>;
1047
1130
  jobQualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
1048
1131
  qualificationId: z.ZodString;
1049
1132
  qualificationTypeId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
@@ -1054,11 +1137,11 @@ export declare const UpdateJobSchema: z.ZodObject<{
1054
1137
  qualificationId: string;
1055
1138
  qualificationTypeId?: string | null | undefined;
1056
1139
  }>, "many">>;
1057
- status: z.ZodOptional<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>>;
1140
+ status: z.ZodOptional<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>>;
1058
1141
  }, "strip", z.ZodTypeAny, {
1059
1142
  description?: string | undefined;
1060
1143
  numberOfPositions?: number | undefined;
1061
- status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | undefined;
1144
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | undefined;
1062
1145
  workHours?: number | undefined;
1063
1146
  pay?: {
1064
1147
  rateUnit: "DAILY" | "HOURLY";
@@ -1077,11 +1160,11 @@ export declare const UpdateJobSchema: z.ZodObject<{
1077
1160
  }[] | undefined;
1078
1161
  currentCollaboration?: {
1079
1162
  id: string;
1080
- } | undefined;
1163
+ } | null | undefined;
1081
1164
  }, {
1082
1165
  description?: string | undefined;
1083
1166
  numberOfPositions?: number | undefined;
1084
- status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | undefined;
1167
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | undefined;
1085
1168
  workHours?: number | undefined;
1086
1169
  pay?: {
1087
1170
  rate: number;
@@ -1100,7 +1183,53 @@ export declare const UpdateJobSchema: z.ZodObject<{
1100
1183
  }[] | undefined;
1101
1184
  currentCollaboration?: {
1102
1185
  id: string;
1186
+ } | null | undefined;
1187
+ }>, {
1188
+ description?: string | undefined;
1189
+ numberOfPositions?: number | undefined;
1190
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | undefined;
1191
+ workHours?: number | undefined;
1192
+ pay?: {
1193
+ rateUnit: "DAILY" | "HOURLY";
1194
+ rate: number;
1195
+ receivedRate: number;
1196
+ rateMax?: number | null | undefined;
1197
+ } | undefined;
1198
+ location?: {
1199
+ address?: string | null | undefined;
1200
+ postcode?: string | null | undefined;
1201
+ } | undefined;
1202
+ tradeId?: string | undefined;
1203
+ jobQualifications?: {
1204
+ qualificationId: string;
1205
+ qualificationTypeId?: string | null | undefined;
1206
+ }[] | undefined;
1207
+ currentCollaboration?: {
1208
+ id: string;
1209
+ } | null | undefined;
1210
+ }, {
1211
+ description?: string | undefined;
1212
+ numberOfPositions?: number | undefined;
1213
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | undefined;
1214
+ workHours?: number | undefined;
1215
+ pay?: {
1216
+ rate: number;
1217
+ receivedRate: number;
1218
+ rateUnit?: "DAILY" | "HOURLY" | undefined;
1219
+ rateMax?: number | null | undefined;
1220
+ } | undefined;
1221
+ location?: {
1222
+ address?: string | null | undefined;
1223
+ postcode?: string | null | undefined;
1103
1224
  } | undefined;
1225
+ tradeId?: string | undefined;
1226
+ jobQualifications?: {
1227
+ qualificationId: string;
1228
+ qualificationTypeId?: string | null | undefined;
1229
+ }[] | undefined;
1230
+ currentCollaboration?: {
1231
+ id: string;
1232
+ } | null | undefined;
1104
1233
  }>;
1105
1234
  /**
1106
1235
  * Filter Job Schema
@@ -1130,7 +1259,7 @@ export declare const FilterJobSchema: z.ZodObject<{
1130
1259
  qualificationId?: string | undefined;
1131
1260
  qualificationTypeId?: string | undefined;
1132
1261
  }>, "many">>;
1133
- status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>>>;
1262
+ status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>>>;
1134
1263
  userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1135
1264
  clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1136
1265
  companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1159,7 +1288,7 @@ export declare const FilterJobSchema: z.ZodObject<{
1159
1288
  }, "strip", z.ZodTypeAny, {
1160
1289
  limit: number;
1161
1290
  page: number;
1162
- status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1291
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | null | undefined;
1163
1292
  createdAt?: {
1164
1293
  from?: string | null | undefined;
1165
1294
  to?: string | null | undefined;
@@ -1183,7 +1312,7 @@ export declare const FilterJobSchema: z.ZodObject<{
1183
1312
  sortBy?: "description" | "numberOfPositions" | "status" | "createdAt" | "updatedAt" | null | undefined;
1184
1313
  sortOrder?: "ASC" | "DESC" | null | undefined;
1185
1314
  }, {
1186
- status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1315
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | null | undefined;
1187
1316
  createdAt?: {
1188
1317
  from?: string | null | undefined;
1189
1318
  to?: string | null | undefined;
@@ -1215,7 +1344,7 @@ export declare const PaginatedJobResponseSchema: z.ZodObject<{
1215
1344
  description: z.ZodString;
1216
1345
  numberOfPositions: z.ZodNumber;
1217
1346
  workHours: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1218
- status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>;
1347
+ status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>;
1219
1348
  pay: z.ZodObject<{
1220
1349
  rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
1221
1350
  rate: z.ZodNumber;
@@ -1801,7 +1930,7 @@ export declare const PaginatedJobResponseSchema: z.ZodObject<{
1801
1930
  }, "strip", z.ZodTypeAny, {
1802
1931
  description: string;
1803
1932
  numberOfPositions: number;
1804
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
1933
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
1805
1934
  createdAt: string;
1806
1935
  updatedAt: string;
1807
1936
  id: string;
@@ -1920,7 +2049,7 @@ export declare const PaginatedJobResponseSchema: z.ZodObject<{
1920
2049
  }, {
1921
2050
  description: string;
1922
2051
  numberOfPositions: number;
1923
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2052
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
1924
2053
  createdAt: string | Date;
1925
2054
  updatedAt: string | Date;
1926
2055
  id: string;
@@ -2047,7 +2176,7 @@ export declare const PaginatedJobResponseSchema: z.ZodObject<{
2047
2176
  items: {
2048
2177
  description: string;
2049
2178
  numberOfPositions: number;
2050
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2179
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
2051
2180
  createdAt: string;
2052
2181
  updatedAt: string;
2053
2182
  id: string;
@@ -2173,7 +2302,7 @@ export declare const PaginatedJobResponseSchema: z.ZodObject<{
2173
2302
  items: {
2174
2303
  description: string;
2175
2304
  numberOfPositions: number;
2176
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2305
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
2177
2306
  createdAt: string | Date;
2178
2307
  updatedAt: string | Date;
2179
2308
  id: string;
@@ -2276,39 +2405,1161 @@ export declare const PaginatedJobResponseSchema: z.ZodObject<{
2276
2405
  agentId: string;
2277
2406
  } | null | undefined;
2278
2407
  } | null | undefined;
2279
- user?: {
2280
- createdAt: string | Date;
2281
- updatedAt: string | Date;
2282
- id: string;
2283
- firstName: string;
2284
- lastName: string;
2285
- email: string;
2286
- phone: string;
2287
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
2288
- office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
2289
- } | null | undefined;
2290
- } | null | undefined;
2291
- } | null | undefined;
2292
- }[];
2293
- totalCount: number;
2294
- skip: number;
2295
- currentPage: number;
2296
- totalPages: number;
2297
- }>;
2298
- export type Job = z.infer<typeof JobSchema>;
2299
- export type CreateJob = z.infer<typeof CreateJobSchema>;
2300
- export type UpdateJob = z.infer<typeof UpdateJobSchema>;
2301
- export type FilterJob = z.infer<typeof FilterJobSchema>;
2302
- export type PaginatedJobResponse = z.infer<typeof PaginatedJobResponseSchema>;
2303
- export declare const jobsContractRouter: {
2304
- create: {
2408
+ user?: {
2409
+ createdAt: string | Date;
2410
+ updatedAt: string | Date;
2411
+ id: string;
2412
+ firstName: string;
2413
+ lastName: string;
2414
+ email: string;
2415
+ phone: string;
2416
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
2417
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
2418
+ } | null | undefined;
2419
+ } | null | undefined;
2420
+ } | null | undefined;
2421
+ }[];
2422
+ totalCount: number;
2423
+ skip: number;
2424
+ currentPage: number;
2425
+ totalPages: number;
2426
+ }>;
2427
+ export type Job = z.infer<typeof JobSchema>;
2428
+ export type CreateJob = z.infer<typeof CreateJobSchema>;
2429
+ export type CreateDraftJob = z.infer<typeof CreateDraftJobSchema>;
2430
+ export type UpdateJob = z.infer<typeof UpdateJobSchema>;
2431
+ export type FilterJob = z.infer<typeof FilterJobSchema>;
2432
+ export type PaginatedJobResponse = z.infer<typeof PaginatedJobResponseSchema>;
2433
+ /**
2434
+ * Search Job Schema - For trigram-based duplicate detection
2435
+ */
2436
+ export declare const SearchJobQuerySchema: z.ZodObject<{
2437
+ description: z.ZodString;
2438
+ userId: z.ZodOptional<z.ZodString>;
2439
+ threshold: z.ZodDefault<z.ZodNumber>;
2440
+ limit: z.ZodDefault<z.ZodNumber>;
2441
+ }, "strip", z.ZodTypeAny, {
2442
+ description: string;
2443
+ limit: number;
2444
+ threshold: number;
2445
+ userId?: string | undefined;
2446
+ }, {
2447
+ description: string;
2448
+ userId?: string | undefined;
2449
+ limit?: number | undefined;
2450
+ threshold?: number | undefined;
2451
+ }>;
2452
+ export declare const SearchJobResultSchema: z.ZodObject<{
2453
+ id: z.ZodString;
2454
+ description: z.ZodString;
2455
+ similarity: z.ZodNumber;
2456
+ status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>;
2457
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2458
+ }, "strip", z.ZodTypeAny, {
2459
+ description: string;
2460
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
2461
+ createdAt: string;
2462
+ id: string;
2463
+ similarity: number;
2464
+ }, {
2465
+ description: string;
2466
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
2467
+ createdAt: string | Date;
2468
+ id: string;
2469
+ similarity: number;
2470
+ }>;
2471
+ export declare const SearchJobResponseSchema: z.ZodArray<z.ZodObject<{
2472
+ id: z.ZodString;
2473
+ description: z.ZodString;
2474
+ similarity: z.ZodNumber;
2475
+ status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>;
2476
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2477
+ }, "strip", z.ZodTypeAny, {
2478
+ description: string;
2479
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
2480
+ createdAt: string;
2481
+ id: string;
2482
+ similarity: number;
2483
+ }, {
2484
+ description: string;
2485
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
2486
+ createdAt: string | Date;
2487
+ id: string;
2488
+ similarity: number;
2489
+ }>, "many">;
2490
+ export type SearchJobQuery = z.infer<typeof SearchJobQuerySchema>;
2491
+ export type SearchJobResult = z.infer<typeof SearchJobResultSchema>;
2492
+ export type SearchJobResponse = z.infer<typeof SearchJobResponseSchema>;
2493
+ export declare const jobsContractRouter: {
2494
+ create: {
2495
+ metadata: {
2496
+ tags: string[];
2497
+ openApi: {
2498
+ operationId: string;
2499
+ };
2500
+ };
2501
+ summary: "Create a new job";
2502
+ method: "POST";
2503
+ body: z.ZodObject<{
2504
+ description: z.ZodString;
2505
+ location: z.ZodOptional<z.ZodObject<{
2506
+ address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2507
+ postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2508
+ }, "strip", z.ZodTypeAny, {
2509
+ address?: string | null | undefined;
2510
+ postcode?: string | null | undefined;
2511
+ }, {
2512
+ address?: string | null | undefined;
2513
+ postcode?: string | null | undefined;
2514
+ }>>;
2515
+ numberOfPositions: z.ZodNumber;
2516
+ workHours: z.ZodDefault<z.ZodNumber>;
2517
+ pay: z.ZodObject<{
2518
+ rateUnit: z.ZodDefault<z.ZodEnum<["DAILY", "HOURLY"]>>;
2519
+ rate: z.ZodNumber;
2520
+ rateMax: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2521
+ receivedRate: z.ZodNumber;
2522
+ }, "strip", z.ZodTypeAny, {
2523
+ rateUnit: "DAILY" | "HOURLY";
2524
+ rate: number;
2525
+ receivedRate: number;
2526
+ rateMax?: number | null | undefined;
2527
+ }, {
2528
+ rate: number;
2529
+ receivedRate: number;
2530
+ rateUnit?: "DAILY" | "HOURLY" | undefined;
2531
+ rateMax?: number | null | undefined;
2532
+ }>;
2533
+ tradeId: z.ZodPipeline<z.ZodString, z.ZodString>;
2534
+ currentCollaboration: z.ZodObject<{
2535
+ id: z.ZodPipeline<z.ZodString, z.ZodString>;
2536
+ }, "strip", z.ZodTypeAny, {
2537
+ id: string;
2538
+ }, {
2539
+ id: string;
2540
+ }>;
2541
+ jobQualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
2542
+ qualificationId: z.ZodString;
2543
+ qualificationTypeId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
2544
+ }, "strip", z.ZodTypeAny, {
2545
+ qualificationId: string;
2546
+ qualificationTypeId?: string | null | undefined;
2547
+ }, {
2548
+ qualificationId: string;
2549
+ qualificationTypeId?: string | null | undefined;
2550
+ }>, "many">>;
2551
+ status: z.ZodDefault<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>>;
2552
+ }, "strip", z.ZodTypeAny, {
2553
+ description: string;
2554
+ numberOfPositions: number;
2555
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
2556
+ workHours: number;
2557
+ pay: {
2558
+ rateUnit: "DAILY" | "HOURLY";
2559
+ rate: number;
2560
+ receivedRate: number;
2561
+ rateMax?: number | null | undefined;
2562
+ };
2563
+ tradeId: string;
2564
+ currentCollaboration: {
2565
+ id: string;
2566
+ };
2567
+ location?: {
2568
+ address?: string | null | undefined;
2569
+ postcode?: string | null | undefined;
2570
+ } | undefined;
2571
+ jobQualifications?: {
2572
+ qualificationId: string;
2573
+ qualificationTypeId?: string | null | undefined;
2574
+ }[] | undefined;
2575
+ }, {
2576
+ description: string;
2577
+ numberOfPositions: number;
2578
+ pay: {
2579
+ rate: number;
2580
+ receivedRate: number;
2581
+ rateUnit?: "DAILY" | "HOURLY" | undefined;
2582
+ rateMax?: number | null | undefined;
2583
+ };
2584
+ tradeId: string;
2585
+ currentCollaboration: {
2586
+ id: string;
2587
+ };
2588
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | undefined;
2589
+ workHours?: number | undefined;
2590
+ location?: {
2591
+ address?: string | null | undefined;
2592
+ postcode?: string | null | undefined;
2593
+ } | undefined;
2594
+ jobQualifications?: {
2595
+ qualificationId: string;
2596
+ qualificationTypeId?: string | null | undefined;
2597
+ }[] | undefined;
2598
+ }>;
2599
+ path: "/v2/jobs";
2600
+ responses: {
2601
+ 400: z.ZodObject<{
2602
+ statusCode: z.ZodNumber;
2603
+ message: z.ZodString;
2604
+ code: z.ZodString;
2605
+ details: z.ZodOptional<z.ZodUnknown>;
2606
+ timestamp: z.ZodString;
2607
+ path: z.ZodString;
2608
+ correlationId: z.ZodOptional<z.ZodString>;
2609
+ }, "strip", z.ZodTypeAny, {
2610
+ code: string;
2611
+ path: string;
2612
+ message: string;
2613
+ statusCode: number;
2614
+ timestamp: string;
2615
+ details?: unknown;
2616
+ correlationId?: string | undefined;
2617
+ }, {
2618
+ code: string;
2619
+ path: string;
2620
+ message: string;
2621
+ statusCode: number;
2622
+ timestamp: string;
2623
+ details?: unknown;
2624
+ correlationId?: string | undefined;
2625
+ }>;
2626
+ 401: z.ZodObject<{
2627
+ statusCode: z.ZodNumber;
2628
+ message: z.ZodString;
2629
+ code: z.ZodString;
2630
+ details: z.ZodOptional<z.ZodUnknown>;
2631
+ timestamp: z.ZodString;
2632
+ path: z.ZodString;
2633
+ correlationId: z.ZodOptional<z.ZodString>;
2634
+ }, "strip", z.ZodTypeAny, {
2635
+ code: string;
2636
+ path: string;
2637
+ message: string;
2638
+ statusCode: number;
2639
+ timestamp: string;
2640
+ details?: unknown;
2641
+ correlationId?: string | undefined;
2642
+ }, {
2643
+ code: string;
2644
+ path: string;
2645
+ message: string;
2646
+ statusCode: number;
2647
+ timestamp: string;
2648
+ details?: unknown;
2649
+ correlationId?: string | undefined;
2650
+ }>;
2651
+ 403: z.ZodObject<{
2652
+ statusCode: z.ZodNumber;
2653
+ message: z.ZodString;
2654
+ code: z.ZodString;
2655
+ details: z.ZodOptional<z.ZodUnknown>;
2656
+ timestamp: z.ZodString;
2657
+ path: z.ZodString;
2658
+ correlationId: z.ZodOptional<z.ZodString>;
2659
+ }, "strip", z.ZodTypeAny, {
2660
+ code: string;
2661
+ path: string;
2662
+ message: string;
2663
+ statusCode: number;
2664
+ timestamp: string;
2665
+ details?: unknown;
2666
+ correlationId?: string | undefined;
2667
+ }, {
2668
+ code: string;
2669
+ path: string;
2670
+ message: string;
2671
+ statusCode: number;
2672
+ timestamp: string;
2673
+ details?: unknown;
2674
+ correlationId?: string | undefined;
2675
+ }>;
2676
+ 500: z.ZodObject<{
2677
+ statusCode: z.ZodNumber;
2678
+ message: z.ZodString;
2679
+ code: z.ZodString;
2680
+ details: z.ZodOptional<z.ZodUnknown>;
2681
+ timestamp: z.ZodString;
2682
+ path: z.ZodString;
2683
+ correlationId: z.ZodOptional<z.ZodString>;
2684
+ }, "strip", z.ZodTypeAny, {
2685
+ code: string;
2686
+ path: string;
2687
+ message: string;
2688
+ statusCode: number;
2689
+ timestamp: string;
2690
+ details?: unknown;
2691
+ correlationId?: string | undefined;
2692
+ }, {
2693
+ code: string;
2694
+ path: string;
2695
+ message: string;
2696
+ statusCode: number;
2697
+ timestamp: string;
2698
+ details?: unknown;
2699
+ correlationId?: string | undefined;
2700
+ }>;
2701
+ 201: z.ZodObject<{
2702
+ id: z.ZodString;
2703
+ description: z.ZodString;
2704
+ numberOfPositions: z.ZodNumber;
2705
+ workHours: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2706
+ status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>;
2707
+ pay: z.ZodObject<{
2708
+ rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
2709
+ rate: z.ZodNumber;
2710
+ rateMax: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
2711
+ receivedRate: z.ZodNumber;
2712
+ }, "strip", z.ZodTypeAny, {
2713
+ rateUnit: "DAILY" | "HOURLY";
2714
+ rate: number;
2715
+ receivedRate: number;
2716
+ rateMax?: number | null | undefined;
2717
+ }, {
2718
+ rateUnit: "DAILY" | "HOURLY";
2719
+ rate: number;
2720
+ receivedRate: number;
2721
+ rateMax?: number | null | undefined;
2722
+ }>;
2723
+ location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2724
+ address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2725
+ postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2726
+ county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2727
+ adminDistrict: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2728
+ builtUpArea: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2729
+ postTown: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2730
+ areaCovered: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2731
+ }, "strip", z.ZodTypeAny, {
2732
+ address?: string | null | undefined;
2733
+ postcode?: string | null | undefined;
2734
+ county?: string | null | undefined;
2735
+ adminDistrict?: string | null | undefined;
2736
+ builtUpArea?: string | null | undefined;
2737
+ postTown?: string | null | undefined;
2738
+ areaCovered?: string | null | undefined;
2739
+ }, {
2740
+ address?: string | null | undefined;
2741
+ postcode?: string | null | undefined;
2742
+ county?: string | null | undefined;
2743
+ adminDistrict?: string | null | undefined;
2744
+ builtUpArea?: string | null | undefined;
2745
+ postTown?: string | null | undefined;
2746
+ areaCovered?: string | null | undefined;
2747
+ }>>>;
2748
+ tradeId: z.ZodPipeline<z.ZodString, z.ZodString>;
2749
+ jobQualifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2750
+ id: z.ZodString;
2751
+ qualificationId: z.ZodString;
2752
+ qualificationTypeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2753
+ }, "strip", z.ZodTypeAny, {
2754
+ id: string;
2755
+ qualificationId: string;
2756
+ qualificationTypeId?: string | null | undefined;
2757
+ }, {
2758
+ id: string;
2759
+ qualificationId: string;
2760
+ qualificationTypeId?: string | null | undefined;
2761
+ }>, "many">>>;
2762
+ currentCollaboration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2763
+ id: z.ZodString;
2764
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2765
+ id: z.ZodString;
2766
+ name: z.ZodString;
2767
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2768
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2769
+ }, "strip", z.ZodTypeAny, {
2770
+ createdAt: string;
2771
+ updatedAt: string;
2772
+ id: string;
2773
+ name: string;
2774
+ }, {
2775
+ createdAt: string | Date;
2776
+ updatedAt: string | Date;
2777
+ id: string;
2778
+ name: string;
2779
+ }>>>;
2780
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2781
+ id: z.ZodString;
2782
+ name: z.ZodString;
2783
+ crn: z.ZodNullable<z.ZodString>;
2784
+ govLink: z.ZodString;
2785
+ soleTrader: z.ZodBoolean;
2786
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
2787
+ director: z.ZodString;
2788
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2789
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2790
+ id: z.ZodString;
2791
+ firstName: z.ZodString;
2792
+ lastName: z.ZodString;
2793
+ email: z.ZodString;
2794
+ }, "strip", z.ZodTypeAny, {
2795
+ id: string;
2796
+ firstName: string;
2797
+ lastName: string;
2798
+ email: string;
2799
+ }, {
2800
+ id: string;
2801
+ firstName: string;
2802
+ lastName: string;
2803
+ email: string;
2804
+ }>>>;
2805
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2806
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2807
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2808
+ agentId: z.ZodString;
2809
+ }, "strip", z.ZodTypeAny, {
2810
+ agentId: string;
2811
+ }, {
2812
+ agentId: string;
2813
+ }>>>;
2814
+ }, "strip", z.ZodTypeAny, {
2815
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2816
+ createdAt: string;
2817
+ updatedAt: string;
2818
+ id: string;
2819
+ name: string;
2820
+ crn: string | null;
2821
+ govLink: string;
2822
+ soleTrader: boolean;
2823
+ director: string;
2824
+ blacklistReason?: string | null | undefined;
2825
+ lastUpdatedBy?: {
2826
+ id: string;
2827
+ firstName: string;
2828
+ lastName: string;
2829
+ email: string;
2830
+ } | null | undefined;
2831
+ agentClientLinks?: {
2832
+ agentId: string;
2833
+ } | null | undefined;
2834
+ }, {
2835
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2836
+ createdAt: string | Date;
2837
+ updatedAt: string | Date;
2838
+ id: string;
2839
+ name: string;
2840
+ crn: string | null;
2841
+ govLink: string;
2842
+ soleTrader: boolean;
2843
+ director: string;
2844
+ blacklistReason?: string | null | undefined;
2845
+ lastUpdatedBy?: {
2846
+ id: string;
2847
+ firstName: string;
2848
+ lastName: string;
2849
+ email: string;
2850
+ } | null | undefined;
2851
+ agentClientLinks?: {
2852
+ agentId: string;
2853
+ } | null | undefined;
2854
+ }>>>;
2855
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2856
+ id: z.ZodString;
2857
+ firstName: z.ZodString;
2858
+ lastName: z.ZodString;
2859
+ email: z.ZodString;
2860
+ phone: z.ZodString;
2861
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI"]>, "many">>;
2862
+ office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ALBANIA", "CRAIOVA", "DANI", "GABI_RECRUTARE", "GEORGIA", "INDIA", "IONITA", "MARIUS_DRAGAN", "MAX_MANGU", "MAXIM_VADIM", "MD_BOGDAN", "MD_DANIEL_CHISINAU", "NEACSU", "ROBERT_DENIS", "ROBERT_RADU", "VICTORIEI_MIRIAM", "VIZIRU", "Y_INDIVIDUALS_RECRUITMENT"]>>>;
2863
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2864
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2865
+ }, "strip", z.ZodTypeAny, {
2866
+ createdAt: string;
2867
+ updatedAt: string;
2868
+ id: string;
2869
+ firstName: string;
2870
+ lastName: string;
2871
+ email: string;
2872
+ phone: string;
2873
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
2874
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
2875
+ }, {
2876
+ createdAt: string | Date;
2877
+ updatedAt: string | Date;
2878
+ id: string;
2879
+ firstName: string;
2880
+ lastName: string;
2881
+ email: string;
2882
+ phone: string;
2883
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
2884
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
2885
+ }>>>;
2886
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT", "CHANGED_COMPANY_AND_AGENT"]>;
2887
+ userId: z.ZodString;
2888
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2889
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2890
+ } & {
2891
+ newCollaboration: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2892
+ id: z.ZodString;
2893
+ company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2894
+ id: z.ZodString;
2895
+ name: z.ZodString;
2896
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2897
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2898
+ }, "strip", z.ZodTypeAny, {
2899
+ createdAt: string;
2900
+ updatedAt: string;
2901
+ id: string;
2902
+ name: string;
2903
+ }, {
2904
+ createdAt: string | Date;
2905
+ updatedAt: string | Date;
2906
+ id: string;
2907
+ name: string;
2908
+ }>>>;
2909
+ client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2910
+ id: z.ZodString;
2911
+ name: z.ZodString;
2912
+ crn: z.ZodNullable<z.ZodString>;
2913
+ govLink: z.ZodString;
2914
+ soleTrader: z.ZodBoolean;
2915
+ status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
2916
+ director: z.ZodString;
2917
+ blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2918
+ lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2919
+ id: z.ZodString;
2920
+ firstName: z.ZodString;
2921
+ lastName: z.ZodString;
2922
+ email: z.ZodString;
2923
+ }, "strip", z.ZodTypeAny, {
2924
+ id: string;
2925
+ firstName: string;
2926
+ lastName: string;
2927
+ email: string;
2928
+ }, {
2929
+ id: string;
2930
+ firstName: string;
2931
+ lastName: string;
2932
+ email: string;
2933
+ }>>>;
2934
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2935
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2936
+ agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2937
+ agentId: z.ZodString;
2938
+ }, "strip", z.ZodTypeAny, {
2939
+ agentId: string;
2940
+ }, {
2941
+ agentId: string;
2942
+ }>>>;
2943
+ }, "strip", z.ZodTypeAny, {
2944
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2945
+ createdAt: string;
2946
+ updatedAt: string;
2947
+ id: string;
2948
+ name: string;
2949
+ crn: string | null;
2950
+ govLink: string;
2951
+ soleTrader: boolean;
2952
+ director: string;
2953
+ blacklistReason?: string | null | undefined;
2954
+ lastUpdatedBy?: {
2955
+ id: string;
2956
+ firstName: string;
2957
+ lastName: string;
2958
+ email: string;
2959
+ } | null | undefined;
2960
+ agentClientLinks?: {
2961
+ agentId: string;
2962
+ } | null | undefined;
2963
+ }, {
2964
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
2965
+ createdAt: string | Date;
2966
+ updatedAt: string | Date;
2967
+ id: string;
2968
+ name: string;
2969
+ crn: string | null;
2970
+ govLink: string;
2971
+ soleTrader: boolean;
2972
+ director: string;
2973
+ blacklistReason?: string | null | undefined;
2974
+ lastUpdatedBy?: {
2975
+ id: string;
2976
+ firstName: string;
2977
+ lastName: string;
2978
+ email: string;
2979
+ } | null | undefined;
2980
+ agentClientLinks?: {
2981
+ agentId: string;
2982
+ } | null | undefined;
2983
+ }>>>;
2984
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2985
+ id: z.ZodString;
2986
+ firstName: z.ZodString;
2987
+ lastName: z.ZodString;
2988
+ email: z.ZodString;
2989
+ phone: z.ZodString;
2990
+ roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI"]>, "many">>;
2991
+ office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ALBANIA", "CRAIOVA", "DANI", "GABI_RECRUTARE", "GEORGIA", "INDIA", "IONITA", "MARIUS_DRAGAN", "MAX_MANGU", "MAXIM_VADIM", "MD_BOGDAN", "MD_DANIEL_CHISINAU", "NEACSU", "ROBERT_DENIS", "ROBERT_RADU", "VICTORIEI_MIRIAM", "VIZIRU", "Y_INDIVIDUALS_RECRUITMENT"]>>>;
2992
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2993
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2994
+ }, "strip", z.ZodTypeAny, {
2995
+ createdAt: string;
2996
+ updatedAt: string;
2997
+ id: string;
2998
+ firstName: string;
2999
+ lastName: string;
3000
+ email: string;
3001
+ phone: string;
3002
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
3003
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
3004
+ }, {
3005
+ createdAt: string | Date;
3006
+ updatedAt: string | Date;
3007
+ id: string;
3008
+ firstName: string;
3009
+ lastName: string;
3010
+ email: string;
3011
+ phone: string;
3012
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
3013
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
3014
+ }>>>;
3015
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "PENDING_APPROVAL", "REJECTED", "APPROVED", "CHANGED_COMPANY", "CHANGED_AGENT", "CHANGED_COMPANY_AND_AGENT"]>;
3016
+ userId: z.ZodString;
3017
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3018
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3019
+ }, "strip", z.ZodTypeAny, {
3020
+ status: "APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT";
3021
+ createdAt: string;
3022
+ updatedAt: string;
3023
+ id: string;
3024
+ userId: string;
3025
+ company?: {
3026
+ createdAt: string;
3027
+ updatedAt: string;
3028
+ id: string;
3029
+ name: string;
3030
+ } | null | undefined;
3031
+ client?: {
3032
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
3033
+ createdAt: string;
3034
+ updatedAt: string;
3035
+ id: string;
3036
+ name: string;
3037
+ crn: string | null;
3038
+ govLink: string;
3039
+ soleTrader: boolean;
3040
+ director: string;
3041
+ blacklistReason?: string | null | undefined;
3042
+ lastUpdatedBy?: {
3043
+ id: string;
3044
+ firstName: string;
3045
+ lastName: string;
3046
+ email: string;
3047
+ } | null | undefined;
3048
+ agentClientLinks?: {
3049
+ agentId: string;
3050
+ } | null | undefined;
3051
+ } | null | undefined;
3052
+ user?: {
3053
+ createdAt: string;
3054
+ updatedAt: string;
3055
+ id: string;
3056
+ firstName: string;
3057
+ lastName: string;
3058
+ email: string;
3059
+ phone: string;
3060
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
3061
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
3062
+ } | null | undefined;
3063
+ }, {
3064
+ status: "APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT";
3065
+ createdAt: string | Date;
3066
+ updatedAt: string | Date;
3067
+ id: string;
3068
+ userId: string;
3069
+ company?: {
3070
+ createdAt: string | Date;
3071
+ updatedAt: string | Date;
3072
+ id: string;
3073
+ name: string;
3074
+ } | null | undefined;
3075
+ client?: {
3076
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
3077
+ createdAt: string | Date;
3078
+ updatedAt: string | Date;
3079
+ id: string;
3080
+ name: string;
3081
+ crn: string | null;
3082
+ govLink: string;
3083
+ soleTrader: boolean;
3084
+ director: string;
3085
+ blacklistReason?: string | null | undefined;
3086
+ lastUpdatedBy?: {
3087
+ id: string;
3088
+ firstName: string;
3089
+ lastName: string;
3090
+ email: string;
3091
+ } | null | undefined;
3092
+ agentClientLinks?: {
3093
+ agentId: string;
3094
+ } | null | undefined;
3095
+ } | null | undefined;
3096
+ user?: {
3097
+ createdAt: string | Date;
3098
+ updatedAt: string | Date;
3099
+ id: string;
3100
+ firstName: string;
3101
+ lastName: string;
3102
+ email: string;
3103
+ phone: string;
3104
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
3105
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
3106
+ } | null | undefined;
3107
+ }>>>;
3108
+ }, "strip", z.ZodTypeAny, {
3109
+ status: "APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT";
3110
+ createdAt: string;
3111
+ updatedAt: string;
3112
+ id: string;
3113
+ userId: string;
3114
+ company?: {
3115
+ createdAt: string;
3116
+ updatedAt: string;
3117
+ id: string;
3118
+ name: string;
3119
+ } | null | undefined;
3120
+ client?: {
3121
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
3122
+ createdAt: string;
3123
+ updatedAt: string;
3124
+ id: string;
3125
+ name: string;
3126
+ crn: string | null;
3127
+ govLink: string;
3128
+ soleTrader: boolean;
3129
+ director: string;
3130
+ blacklistReason?: string | null | undefined;
3131
+ lastUpdatedBy?: {
3132
+ id: string;
3133
+ firstName: string;
3134
+ lastName: string;
3135
+ email: string;
3136
+ } | null | undefined;
3137
+ agentClientLinks?: {
3138
+ agentId: string;
3139
+ } | null | undefined;
3140
+ } | null | undefined;
3141
+ user?: {
3142
+ createdAt: string;
3143
+ updatedAt: string;
3144
+ id: string;
3145
+ firstName: string;
3146
+ lastName: string;
3147
+ email: string;
3148
+ phone: string;
3149
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
3150
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
3151
+ } | null | undefined;
3152
+ newCollaboration?: {
3153
+ status: "APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT";
3154
+ createdAt: string;
3155
+ updatedAt: string;
3156
+ id: string;
3157
+ userId: string;
3158
+ company?: {
3159
+ createdAt: string;
3160
+ updatedAt: string;
3161
+ id: string;
3162
+ name: string;
3163
+ } | null | undefined;
3164
+ client?: {
3165
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
3166
+ createdAt: string;
3167
+ updatedAt: string;
3168
+ id: string;
3169
+ name: string;
3170
+ crn: string | null;
3171
+ govLink: string;
3172
+ soleTrader: boolean;
3173
+ director: string;
3174
+ blacklistReason?: string | null | undefined;
3175
+ lastUpdatedBy?: {
3176
+ id: string;
3177
+ firstName: string;
3178
+ lastName: string;
3179
+ email: string;
3180
+ } | null | undefined;
3181
+ agentClientLinks?: {
3182
+ agentId: string;
3183
+ } | null | undefined;
3184
+ } | null | undefined;
3185
+ user?: {
3186
+ createdAt: string;
3187
+ updatedAt: string;
3188
+ id: string;
3189
+ firstName: string;
3190
+ lastName: string;
3191
+ email: string;
3192
+ phone: string;
3193
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
3194
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
3195
+ } | null | undefined;
3196
+ } | null | undefined;
3197
+ }, {
3198
+ status: "APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT";
3199
+ createdAt: string | Date;
3200
+ updatedAt: string | Date;
3201
+ id: string;
3202
+ userId: string;
3203
+ company?: {
3204
+ createdAt: string | Date;
3205
+ updatedAt: string | Date;
3206
+ id: string;
3207
+ name: string;
3208
+ } | null | undefined;
3209
+ client?: {
3210
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
3211
+ createdAt: string | Date;
3212
+ updatedAt: string | Date;
3213
+ id: string;
3214
+ name: string;
3215
+ crn: string | null;
3216
+ govLink: string;
3217
+ soleTrader: boolean;
3218
+ director: string;
3219
+ blacklistReason?: string | null | undefined;
3220
+ lastUpdatedBy?: {
3221
+ id: string;
3222
+ firstName: string;
3223
+ lastName: string;
3224
+ email: string;
3225
+ } | null | undefined;
3226
+ agentClientLinks?: {
3227
+ agentId: string;
3228
+ } | null | undefined;
3229
+ } | null | undefined;
3230
+ user?: {
3231
+ createdAt: string | Date;
3232
+ updatedAt: string | Date;
3233
+ id: string;
3234
+ firstName: string;
3235
+ lastName: string;
3236
+ email: string;
3237
+ phone: string;
3238
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
3239
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
3240
+ } | null | undefined;
3241
+ newCollaboration?: {
3242
+ status: "APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT";
3243
+ createdAt: string | Date;
3244
+ updatedAt: string | Date;
3245
+ id: string;
3246
+ userId: string;
3247
+ company?: {
3248
+ createdAt: string | Date;
3249
+ updatedAt: string | Date;
3250
+ id: string;
3251
+ name: string;
3252
+ } | null | undefined;
3253
+ client?: {
3254
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
3255
+ createdAt: string | Date;
3256
+ updatedAt: string | Date;
3257
+ id: string;
3258
+ name: string;
3259
+ crn: string | null;
3260
+ govLink: string;
3261
+ soleTrader: boolean;
3262
+ director: string;
3263
+ blacklistReason?: string | null | undefined;
3264
+ lastUpdatedBy?: {
3265
+ id: string;
3266
+ firstName: string;
3267
+ lastName: string;
3268
+ email: string;
3269
+ } | null | undefined;
3270
+ agentClientLinks?: {
3271
+ agentId: string;
3272
+ } | null | undefined;
3273
+ } | null | undefined;
3274
+ user?: {
3275
+ createdAt: string | Date;
3276
+ updatedAt: string | Date;
3277
+ id: string;
3278
+ firstName: string;
3279
+ lastName: string;
3280
+ email: string;
3281
+ phone: string;
3282
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
3283
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
3284
+ } | null | undefined;
3285
+ } | null | undefined;
3286
+ }>>>;
3287
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3288
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
3289
+ }, "strip", z.ZodTypeAny, {
3290
+ description: string;
3291
+ numberOfPositions: number;
3292
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
3293
+ createdAt: string;
3294
+ updatedAt: string;
3295
+ id: string;
3296
+ pay: {
3297
+ rateUnit: "DAILY" | "HOURLY";
3298
+ rate: number;
3299
+ receivedRate: number;
3300
+ rateMax?: number | null | undefined;
3301
+ };
3302
+ tradeId: string;
3303
+ jobQualifications: {
3304
+ id: string;
3305
+ qualificationId: string;
3306
+ qualificationTypeId?: string | null | undefined;
3307
+ }[];
3308
+ workHours?: number | null | undefined;
3309
+ location?: {
3310
+ address?: string | null | undefined;
3311
+ postcode?: string | null | undefined;
3312
+ county?: string | null | undefined;
3313
+ adminDistrict?: string | null | undefined;
3314
+ builtUpArea?: string | null | undefined;
3315
+ postTown?: string | null | undefined;
3316
+ areaCovered?: string | null | undefined;
3317
+ } | null | undefined;
3318
+ currentCollaboration?: {
3319
+ status: "APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT";
3320
+ createdAt: string;
3321
+ updatedAt: string;
3322
+ id: string;
3323
+ userId: string;
3324
+ company?: {
3325
+ createdAt: string;
3326
+ updatedAt: string;
3327
+ id: string;
3328
+ name: string;
3329
+ } | null | undefined;
3330
+ client?: {
3331
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
3332
+ createdAt: string;
3333
+ updatedAt: string;
3334
+ id: string;
3335
+ name: string;
3336
+ crn: string | null;
3337
+ govLink: string;
3338
+ soleTrader: boolean;
3339
+ director: string;
3340
+ blacklistReason?: string | null | undefined;
3341
+ lastUpdatedBy?: {
3342
+ id: string;
3343
+ firstName: string;
3344
+ lastName: string;
3345
+ email: string;
3346
+ } | null | undefined;
3347
+ agentClientLinks?: {
3348
+ agentId: string;
3349
+ } | null | undefined;
3350
+ } | null | undefined;
3351
+ user?: {
3352
+ createdAt: string;
3353
+ updatedAt: string;
3354
+ id: string;
3355
+ firstName: string;
3356
+ lastName: string;
3357
+ email: string;
3358
+ phone: string;
3359
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
3360
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
3361
+ } | null | undefined;
3362
+ newCollaboration?: {
3363
+ status: "APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT";
3364
+ createdAt: string;
3365
+ updatedAt: string;
3366
+ id: string;
3367
+ userId: string;
3368
+ company?: {
3369
+ createdAt: string;
3370
+ updatedAt: string;
3371
+ id: string;
3372
+ name: string;
3373
+ } | null | undefined;
3374
+ client?: {
3375
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
3376
+ createdAt: string;
3377
+ updatedAt: string;
3378
+ id: string;
3379
+ name: string;
3380
+ crn: string | null;
3381
+ govLink: string;
3382
+ soleTrader: boolean;
3383
+ director: string;
3384
+ blacklistReason?: string | null | undefined;
3385
+ lastUpdatedBy?: {
3386
+ id: string;
3387
+ firstName: string;
3388
+ lastName: string;
3389
+ email: string;
3390
+ } | null | undefined;
3391
+ agentClientLinks?: {
3392
+ agentId: string;
3393
+ } | null | undefined;
3394
+ } | null | undefined;
3395
+ user?: {
3396
+ createdAt: string;
3397
+ updatedAt: string;
3398
+ id: string;
3399
+ firstName: string;
3400
+ lastName: string;
3401
+ email: string;
3402
+ phone: string;
3403
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
3404
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
3405
+ } | null | undefined;
3406
+ } | null | undefined;
3407
+ } | null | undefined;
3408
+ }, {
3409
+ description: string;
3410
+ numberOfPositions: number;
3411
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
3412
+ createdAt: string | Date;
3413
+ updatedAt: string | Date;
3414
+ id: string;
3415
+ pay: {
3416
+ rateUnit: "DAILY" | "HOURLY";
3417
+ rate: number;
3418
+ receivedRate: number;
3419
+ rateMax?: number | null | undefined;
3420
+ };
3421
+ tradeId: string;
3422
+ workHours?: number | null | undefined;
3423
+ location?: {
3424
+ address?: string | null | undefined;
3425
+ postcode?: string | null | undefined;
3426
+ county?: string | null | undefined;
3427
+ adminDistrict?: string | null | undefined;
3428
+ builtUpArea?: string | null | undefined;
3429
+ postTown?: string | null | undefined;
3430
+ areaCovered?: string | null | undefined;
3431
+ } | null | undefined;
3432
+ jobQualifications?: {
3433
+ id: string;
3434
+ qualificationId: string;
3435
+ qualificationTypeId?: string | null | undefined;
3436
+ }[] | undefined;
3437
+ currentCollaboration?: {
3438
+ status: "APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT";
3439
+ createdAt: string | Date;
3440
+ updatedAt: string | Date;
3441
+ id: string;
3442
+ userId: string;
3443
+ company?: {
3444
+ createdAt: string | Date;
3445
+ updatedAt: string | Date;
3446
+ id: string;
3447
+ name: string;
3448
+ } | null | undefined;
3449
+ client?: {
3450
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
3451
+ createdAt: string | Date;
3452
+ updatedAt: string | Date;
3453
+ id: string;
3454
+ name: string;
3455
+ crn: string | null;
3456
+ govLink: string;
3457
+ soleTrader: boolean;
3458
+ director: string;
3459
+ blacklistReason?: string | null | undefined;
3460
+ lastUpdatedBy?: {
3461
+ id: string;
3462
+ firstName: string;
3463
+ lastName: string;
3464
+ email: string;
3465
+ } | null | undefined;
3466
+ agentClientLinks?: {
3467
+ agentId: string;
3468
+ } | null | undefined;
3469
+ } | null | undefined;
3470
+ user?: {
3471
+ createdAt: string | Date;
3472
+ updatedAt: string | Date;
3473
+ id: string;
3474
+ firstName: string;
3475
+ lastName: string;
3476
+ email: string;
3477
+ phone: string;
3478
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
3479
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
3480
+ } | null | undefined;
3481
+ newCollaboration?: {
3482
+ status: "APPROVED" | "ACTIVE" | "INACTIVE" | "PENDING_APPROVAL" | "REJECTED" | "CHANGED_COMPANY" | "CHANGED_AGENT" | "CHANGED_COMPANY_AND_AGENT";
3483
+ createdAt: string | Date;
3484
+ updatedAt: string | Date;
3485
+ id: string;
3486
+ userId: string;
3487
+ company?: {
3488
+ createdAt: string | Date;
3489
+ updatedAt: string | Date;
3490
+ id: string;
3491
+ name: string;
3492
+ } | null | undefined;
3493
+ client?: {
3494
+ status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
3495
+ createdAt: string | Date;
3496
+ updatedAt: string | Date;
3497
+ id: string;
3498
+ name: string;
3499
+ crn: string | null;
3500
+ govLink: string;
3501
+ soleTrader: boolean;
3502
+ director: string;
3503
+ blacklistReason?: string | null | undefined;
3504
+ lastUpdatedBy?: {
3505
+ id: string;
3506
+ firstName: string;
3507
+ lastName: string;
3508
+ email: string;
3509
+ } | null | undefined;
3510
+ agentClientLinks?: {
3511
+ agentId: string;
3512
+ } | null | undefined;
3513
+ } | null | undefined;
3514
+ user?: {
3515
+ createdAt: string | Date;
3516
+ updatedAt: string | Date;
3517
+ id: string;
3518
+ firstName: string;
3519
+ lastName: string;
3520
+ email: string;
3521
+ phone: string;
3522
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI")[] | undefined;
3523
+ office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
3524
+ } | null | undefined;
3525
+ } | null | undefined;
3526
+ } | null | undefined;
3527
+ }>;
3528
+ 409: z.ZodObject<{
3529
+ statusCode: z.ZodNumber;
3530
+ message: z.ZodString;
3531
+ code: z.ZodString;
3532
+ details: z.ZodOptional<z.ZodUnknown>;
3533
+ timestamp: z.ZodString;
3534
+ path: z.ZodString;
3535
+ correlationId: z.ZodOptional<z.ZodString>;
3536
+ }, "strip", z.ZodTypeAny, {
3537
+ code: string;
3538
+ path: string;
3539
+ message: string;
3540
+ statusCode: number;
3541
+ timestamp: string;
3542
+ details?: unknown;
3543
+ correlationId?: string | undefined;
3544
+ }, {
3545
+ code: string;
3546
+ path: string;
3547
+ message: string;
3548
+ statusCode: number;
3549
+ timestamp: string;
3550
+ details?: unknown;
3551
+ correlationId?: string | undefined;
3552
+ }>;
3553
+ };
3554
+ };
3555
+ createDraft: {
2305
3556
  metadata: {
2306
3557
  tags: string[];
2307
3558
  openApi: {
2308
3559
  operationId: string;
2309
3560
  };
2310
3561
  };
2311
- summary: "Create a new job";
3562
+ summary: "Create a draft job (without collaboration)";
2312
3563
  method: "POST";
2313
3564
  body: z.ZodObject<{
2314
3565
  description: z.ZodString;
@@ -2341,13 +3592,6 @@ export declare const jobsContractRouter: {
2341
3592
  rateMax?: number | null | undefined;
2342
3593
  }>;
2343
3594
  tradeId: z.ZodPipeline<z.ZodString, z.ZodString>;
2344
- currentCollaboration: z.ZodObject<{
2345
- id: z.ZodPipeline<z.ZodString, z.ZodString>;
2346
- }, "strip", z.ZodTypeAny, {
2347
- id: string;
2348
- }, {
2349
- id: string;
2350
- }>;
2351
3595
  jobQualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
2352
3596
  qualificationId: z.ZodString;
2353
3597
  qualificationTypeId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
@@ -2358,11 +3602,9 @@ export declare const jobsContractRouter: {
2358
3602
  qualificationId: string;
2359
3603
  qualificationTypeId?: string | null | undefined;
2360
3604
  }>, "many">>;
2361
- status: z.ZodDefault<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>>;
2362
3605
  }, "strip", z.ZodTypeAny, {
2363
3606
  description: string;
2364
3607
  numberOfPositions: number;
2365
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
2366
3608
  workHours: number;
2367
3609
  pay: {
2368
3610
  rateUnit: "DAILY" | "HOURLY";
@@ -2371,9 +3613,6 @@ export declare const jobsContractRouter: {
2371
3613
  rateMax?: number | null | undefined;
2372
3614
  };
2373
3615
  tradeId: string;
2374
- currentCollaboration: {
2375
- id: string;
2376
- };
2377
3616
  location?: {
2378
3617
  address?: string | null | undefined;
2379
3618
  postcode?: string | null | undefined;
@@ -2392,10 +3631,6 @@ export declare const jobsContractRouter: {
2392
3631
  rateMax?: number | null | undefined;
2393
3632
  };
2394
3633
  tradeId: string;
2395
- currentCollaboration: {
2396
- id: string;
2397
- };
2398
- status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | undefined;
2399
3634
  workHours?: number | undefined;
2400
3635
  location?: {
2401
3636
  address?: string | null | undefined;
@@ -2406,7 +3641,7 @@ export declare const jobsContractRouter: {
2406
3641
  qualificationTypeId?: string | null | undefined;
2407
3642
  }[] | undefined;
2408
3643
  }>;
2409
- path: "/v2/jobs";
3644
+ path: "/v2/jobs/draft";
2410
3645
  responses: {
2411
3646
  400: z.ZodObject<{
2412
3647
  statusCode: z.ZodNumber;
@@ -2513,7 +3748,7 @@ export declare const jobsContractRouter: {
2513
3748
  description: z.ZodString;
2514
3749
  numberOfPositions: z.ZodNumber;
2515
3750
  workHours: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2516
- status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>;
3751
+ status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>;
2517
3752
  pay: z.ZodObject<{
2518
3753
  rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
2519
3754
  rate: z.ZodNumber;
@@ -3099,7 +4334,7 @@ export declare const jobsContractRouter: {
3099
4334
  }, "strip", z.ZodTypeAny, {
3100
4335
  description: string;
3101
4336
  numberOfPositions: number;
3102
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
4337
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
3103
4338
  createdAt: string;
3104
4339
  updatedAt: string;
3105
4340
  id: string;
@@ -3218,7 +4453,7 @@ export declare const jobsContractRouter: {
3218
4453
  }, {
3219
4454
  description: string;
3220
4455
  numberOfPositions: number;
3221
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
4456
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
3222
4457
  createdAt: string | Date;
3223
4458
  updatedAt: string | Date;
3224
4459
  id: string;
@@ -3394,7 +4629,7 @@ export declare const jobsContractRouter: {
3394
4629
  qualificationId?: string | undefined;
3395
4630
  qualificationTypeId?: string | undefined;
3396
4631
  }>, "many">>;
3397
- status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>>>;
4632
+ status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>>>;
3398
4633
  userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3399
4634
  clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3400
4635
  companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -3423,7 +4658,7 @@ export declare const jobsContractRouter: {
3423
4658
  }, "strip", z.ZodTypeAny, {
3424
4659
  limit: number;
3425
4660
  page: number;
3426
- status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
4661
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | null | undefined;
3427
4662
  createdAt?: {
3428
4663
  from?: string | null | undefined;
3429
4664
  to?: string | null | undefined;
@@ -3447,7 +4682,7 @@ export declare const jobsContractRouter: {
3447
4682
  sortBy?: "description" | "numberOfPositions" | "status" | "createdAt" | "updatedAt" | null | undefined;
3448
4683
  sortOrder?: "ASC" | "DESC" | null | undefined;
3449
4684
  }, {
3450
- status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
4685
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | null | undefined;
3451
4686
  createdAt?: {
3452
4687
  from?: string | null | undefined;
3453
4688
  to?: string | null | undefined;
@@ -3583,7 +4818,7 @@ export declare const jobsContractRouter: {
3583
4818
  description: z.ZodString;
3584
4819
  numberOfPositions: z.ZodNumber;
3585
4820
  workHours: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
3586
- status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>;
4821
+ status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>;
3587
4822
  pay: z.ZodObject<{
3588
4823
  rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
3589
4824
  rate: z.ZodNumber;
@@ -4169,7 +5404,7 @@ export declare const jobsContractRouter: {
4169
5404
  }, "strip", z.ZodTypeAny, {
4170
5405
  description: string;
4171
5406
  numberOfPositions: number;
4172
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5407
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
4173
5408
  createdAt: string;
4174
5409
  updatedAt: string;
4175
5410
  id: string;
@@ -4288,7 +5523,7 @@ export declare const jobsContractRouter: {
4288
5523
  }, {
4289
5524
  description: string;
4290
5525
  numberOfPositions: number;
4291
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5526
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
4292
5527
  createdAt: string | Date;
4293
5528
  updatedAt: string | Date;
4294
5529
  id: string;
@@ -4415,7 +5650,7 @@ export declare const jobsContractRouter: {
4415
5650
  items: {
4416
5651
  description: string;
4417
5652
  numberOfPositions: number;
4418
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5653
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
4419
5654
  createdAt: string;
4420
5655
  updatedAt: string;
4421
5656
  id: string;
@@ -4541,7 +5776,7 @@ export declare const jobsContractRouter: {
4541
5776
  items: {
4542
5777
  description: string;
4543
5778
  numberOfPositions: number;
4544
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
5779
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
4545
5780
  createdAt: string | Date;
4546
5781
  updatedAt: string | Date;
4547
5782
  id: string;
@@ -4788,7 +6023,7 @@ export declare const jobsContractRouter: {
4788
6023
  description: z.ZodString;
4789
6024
  numberOfPositions: z.ZodNumber;
4790
6025
  workHours: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
4791
- status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>;
6026
+ status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>;
4792
6027
  pay: z.ZodObject<{
4793
6028
  rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
4794
6029
  rate: z.ZodNumber;
@@ -5374,7 +6609,7 @@ export declare const jobsContractRouter: {
5374
6609
  }, "strip", z.ZodTypeAny, {
5375
6610
  description: string;
5376
6611
  numberOfPositions: number;
5377
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
6612
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
5378
6613
  createdAt: string;
5379
6614
  updatedAt: string;
5380
6615
  id: string;
@@ -5493,7 +6728,7 @@ export declare const jobsContractRouter: {
5493
6728
  }, {
5494
6729
  description: string;
5495
6730
  numberOfPositions: number;
5496
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
6731
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
5497
6732
  createdAt: string | Date;
5498
6733
  updatedAt: string | Date;
5499
6734
  id: string;
@@ -5653,7 +6888,7 @@ export declare const jobsContractRouter: {
5653
6888
  }>;
5654
6889
  summary: "Update a job";
5655
6890
  method: "PATCH";
5656
- body: z.ZodObject<{
6891
+ body: z.ZodEffects<z.ZodObject<{
5657
6892
  description: z.ZodOptional<z.ZodString>;
5658
6893
  location: z.ZodOptional<z.ZodObject<{
5659
6894
  address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -5684,13 +6919,13 @@ export declare const jobsContractRouter: {
5684
6919
  rateMax?: number | null | undefined;
5685
6920
  }>>;
5686
6921
  tradeId: z.ZodOptional<z.ZodPipeline<z.ZodString, z.ZodString>>;
5687
- currentCollaboration: z.ZodOptional<z.ZodObject<{
6922
+ currentCollaboration: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5688
6923
  id: z.ZodString;
5689
6924
  }, "strip", z.ZodTypeAny, {
5690
6925
  id: string;
5691
6926
  }, {
5692
6927
  id: string;
5693
- }>>;
6928
+ }>>>;
5694
6929
  jobQualifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
5695
6930
  qualificationId: z.ZodString;
5696
6931
  qualificationTypeId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
@@ -5701,11 +6936,11 @@ export declare const jobsContractRouter: {
5701
6936
  qualificationId: string;
5702
6937
  qualificationTypeId?: string | null | undefined;
5703
6938
  }>, "many">>;
5704
- status: z.ZodOptional<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>>;
6939
+ status: z.ZodOptional<z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>>;
5705
6940
  }, "strip", z.ZodTypeAny, {
5706
6941
  description?: string | undefined;
5707
6942
  numberOfPositions?: number | undefined;
5708
- status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | undefined;
6943
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | undefined;
5709
6944
  workHours?: number | undefined;
5710
6945
  pay?: {
5711
6946
  rateUnit: "DAILY" | "HOURLY";
@@ -5724,11 +6959,11 @@ export declare const jobsContractRouter: {
5724
6959
  }[] | undefined;
5725
6960
  currentCollaboration?: {
5726
6961
  id: string;
5727
- } | undefined;
6962
+ } | null | undefined;
5728
6963
  }, {
5729
6964
  description?: string | undefined;
5730
6965
  numberOfPositions?: number | undefined;
5731
- status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | undefined;
6966
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | undefined;
5732
6967
  workHours?: number | undefined;
5733
6968
  pay?: {
5734
6969
  rate: number;
@@ -5747,7 +6982,53 @@ export declare const jobsContractRouter: {
5747
6982
  }[] | undefined;
5748
6983
  currentCollaboration?: {
5749
6984
  id: string;
6985
+ } | null | undefined;
6986
+ }>, {
6987
+ description?: string | undefined;
6988
+ numberOfPositions?: number | undefined;
6989
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | undefined;
6990
+ workHours?: number | undefined;
6991
+ pay?: {
6992
+ rateUnit: "DAILY" | "HOURLY";
6993
+ rate: number;
6994
+ receivedRate: number;
6995
+ rateMax?: number | null | undefined;
6996
+ } | undefined;
6997
+ location?: {
6998
+ address?: string | null | undefined;
6999
+ postcode?: string | null | undefined;
7000
+ } | undefined;
7001
+ tradeId?: string | undefined;
7002
+ jobQualifications?: {
7003
+ qualificationId: string;
7004
+ qualificationTypeId?: string | null | undefined;
7005
+ }[] | undefined;
7006
+ currentCollaboration?: {
7007
+ id: string;
7008
+ } | null | undefined;
7009
+ }, {
7010
+ description?: string | undefined;
7011
+ numberOfPositions?: number | undefined;
7012
+ status?: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION" | undefined;
7013
+ workHours?: number | undefined;
7014
+ pay?: {
7015
+ rate: number;
7016
+ receivedRate: number;
7017
+ rateUnit?: "DAILY" | "HOURLY" | undefined;
7018
+ rateMax?: number | null | undefined;
7019
+ } | undefined;
7020
+ location?: {
7021
+ address?: string | null | undefined;
7022
+ postcode?: string | null | undefined;
5750
7023
  } | undefined;
7024
+ tradeId?: string | undefined;
7025
+ jobQualifications?: {
7026
+ qualificationId: string;
7027
+ qualificationTypeId?: string | null | undefined;
7028
+ }[] | undefined;
7029
+ currentCollaboration?: {
7030
+ id: string;
7031
+ } | null | undefined;
5751
7032
  }>;
5752
7033
  path: "/v2/jobs/:id";
5753
7034
  responses: {
@@ -5856,7 +7137,7 @@ export declare const jobsContractRouter: {
5856
7137
  description: z.ZodString;
5857
7138
  numberOfPositions: z.ZodNumber;
5858
7139
  workHours: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
5859
- status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE"]>;
7140
+ status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>;
5860
7141
  pay: z.ZodObject<{
5861
7142
  rateUnit: z.ZodEnum<["DAILY", "HOURLY"]>;
5862
7143
  rate: z.ZodNumber;
@@ -6442,7 +7723,7 @@ export declare const jobsContractRouter: {
6442
7723
  }, "strip", z.ZodTypeAny, {
6443
7724
  description: string;
6444
7725
  numberOfPositions: number;
6445
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
7726
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
6446
7727
  createdAt: string;
6447
7728
  updatedAt: string;
6448
7729
  id: string;
@@ -6561,7 +7842,7 @@ export declare const jobsContractRouter: {
6561
7842
  }, {
6562
7843
  description: string;
6563
7844
  numberOfPositions: number;
6564
- status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE";
7845
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
6565
7846
  createdAt: string | Date;
6566
7847
  updatedAt: string | Date;
6567
7848
  id: string;
@@ -6877,5 +8158,153 @@ export declare const jobsContractRouter: {
6877
8158
  }>;
6878
8159
  };
6879
8160
  };
8161
+ search: {
8162
+ metadata: {
8163
+ tags: string[];
8164
+ openApi: {
8165
+ operationId: string;
8166
+ };
8167
+ };
8168
+ query: z.ZodObject<{
8169
+ description: z.ZodString;
8170
+ userId: z.ZodOptional<z.ZodString>;
8171
+ threshold: z.ZodDefault<z.ZodNumber>;
8172
+ limit: z.ZodDefault<z.ZodNumber>;
8173
+ }, "strip", z.ZodTypeAny, {
8174
+ description: string;
8175
+ limit: number;
8176
+ threshold: number;
8177
+ userId?: string | undefined;
8178
+ }, {
8179
+ description: string;
8180
+ userId?: string | undefined;
8181
+ limit?: number | undefined;
8182
+ threshold?: number | undefined;
8183
+ }>;
8184
+ summary: "Search for similar jobs using trigram similarity";
8185
+ method: "GET";
8186
+ path: "/v2/jobs/search";
8187
+ responses: {
8188
+ 400: z.ZodObject<{
8189
+ statusCode: z.ZodNumber;
8190
+ message: z.ZodString;
8191
+ code: z.ZodString;
8192
+ details: z.ZodOptional<z.ZodUnknown>;
8193
+ timestamp: z.ZodString;
8194
+ path: z.ZodString;
8195
+ correlationId: z.ZodOptional<z.ZodString>;
8196
+ }, "strip", z.ZodTypeAny, {
8197
+ code: string;
8198
+ path: string;
8199
+ message: string;
8200
+ statusCode: number;
8201
+ timestamp: string;
8202
+ details?: unknown;
8203
+ correlationId?: string | undefined;
8204
+ }, {
8205
+ code: string;
8206
+ path: string;
8207
+ message: string;
8208
+ statusCode: number;
8209
+ timestamp: string;
8210
+ details?: unknown;
8211
+ correlationId?: string | undefined;
8212
+ }>;
8213
+ 401: z.ZodObject<{
8214
+ statusCode: z.ZodNumber;
8215
+ message: z.ZodString;
8216
+ code: z.ZodString;
8217
+ details: z.ZodOptional<z.ZodUnknown>;
8218
+ timestamp: z.ZodString;
8219
+ path: z.ZodString;
8220
+ correlationId: z.ZodOptional<z.ZodString>;
8221
+ }, "strip", z.ZodTypeAny, {
8222
+ code: string;
8223
+ path: string;
8224
+ message: string;
8225
+ statusCode: number;
8226
+ timestamp: string;
8227
+ details?: unknown;
8228
+ correlationId?: string | undefined;
8229
+ }, {
8230
+ code: string;
8231
+ path: string;
8232
+ message: string;
8233
+ statusCode: number;
8234
+ timestamp: string;
8235
+ details?: unknown;
8236
+ correlationId?: string | undefined;
8237
+ }>;
8238
+ 403: z.ZodObject<{
8239
+ statusCode: z.ZodNumber;
8240
+ message: z.ZodString;
8241
+ code: z.ZodString;
8242
+ details: z.ZodOptional<z.ZodUnknown>;
8243
+ timestamp: z.ZodString;
8244
+ path: z.ZodString;
8245
+ correlationId: z.ZodOptional<z.ZodString>;
8246
+ }, "strip", z.ZodTypeAny, {
8247
+ code: string;
8248
+ path: string;
8249
+ message: string;
8250
+ statusCode: number;
8251
+ timestamp: string;
8252
+ details?: unknown;
8253
+ correlationId?: string | undefined;
8254
+ }, {
8255
+ code: string;
8256
+ path: string;
8257
+ message: string;
8258
+ statusCode: number;
8259
+ timestamp: string;
8260
+ details?: unknown;
8261
+ correlationId?: string | undefined;
8262
+ }>;
8263
+ 500: z.ZodObject<{
8264
+ statusCode: z.ZodNumber;
8265
+ message: z.ZodString;
8266
+ code: z.ZodString;
8267
+ details: z.ZodOptional<z.ZodUnknown>;
8268
+ timestamp: z.ZodString;
8269
+ path: z.ZodString;
8270
+ correlationId: z.ZodOptional<z.ZodString>;
8271
+ }, "strip", z.ZodTypeAny, {
8272
+ code: string;
8273
+ path: string;
8274
+ message: string;
8275
+ statusCode: number;
8276
+ timestamp: string;
8277
+ details?: unknown;
8278
+ correlationId?: string | undefined;
8279
+ }, {
8280
+ code: string;
8281
+ path: string;
8282
+ message: string;
8283
+ statusCode: number;
8284
+ timestamp: string;
8285
+ details?: unknown;
8286
+ correlationId?: string | undefined;
8287
+ }>;
8288
+ 200: z.ZodArray<z.ZodObject<{
8289
+ id: z.ZodString;
8290
+ description: z.ZodString;
8291
+ similarity: z.ZodNumber;
8292
+ status: z.ZodEnum<["CANCELED", "FILLED", "AVAILABLE", "NOT_AVAILABLE", "DRAFT_MISSING_COLLABORATION"]>;
8293
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
8294
+ }, "strip", z.ZodTypeAny, {
8295
+ description: string;
8296
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
8297
+ createdAt: string;
8298
+ id: string;
8299
+ similarity: number;
8300
+ }, {
8301
+ description: string;
8302
+ status: "CANCELED" | "FILLED" | "AVAILABLE" | "NOT_AVAILABLE" | "DRAFT_MISSING_COLLABORATION";
8303
+ createdAt: string | Date;
8304
+ id: string;
8305
+ similarity: number;
8306
+ }>, "many">;
8307
+ };
8308
+ };
6880
8309
  };
6881
8310
  //# sourceMappingURL=jobs.contract.d.ts.map