@dakkitor/api-contracts 1.1.151 → 1.1.153

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.
@@ -2165,26 +2165,6 @@ export declare const FilterJobSchema: z.ZodObject<{
2165
2165
  page: z.ZodDefault<z.ZodNumber>;
2166
2166
  } & {
2167
2167
  tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2168
- createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2169
- from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2170
- to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2171
- }, "strip", z.ZodTypeAny, {
2172
- from?: string | null | undefined;
2173
- to?: string | null | undefined;
2174
- }, {
2175
- from?: string | null | undefined;
2176
- to?: string | null | undefined;
2177
- }>>>;
2178
- updatedAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2179
- from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2180
- to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2181
- }, "strip", z.ZodTypeAny, {
2182
- from?: string | null | undefined;
2183
- to?: string | null | undefined;
2184
- }, {
2185
- from?: string | null | undefined;
2186
- to?: string | null | undefined;
2187
- }>>>;
2188
2168
  qualificationFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
2189
2169
  qualificationId: z.ZodOptional<z.ZodString>;
2190
2170
  qualificationTypeId: z.ZodOptional<z.ZodString>;
@@ -2221,6 +2201,26 @@ export declare const FilterJobSchema: z.ZodObject<{
2221
2201
  }>>>;
2222
2202
  sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["description", "numberOfPositions", "status", "tradeId", "collaborationCompany", "collaborationClient", "collaborationAgent", "distance", "postcode", "payRate", "receivedRate", "workHours", "qualificationsCount", "createdAt", "updatedAt"]>>>;
2223
2203
  sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
2204
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2205
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2206
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2207
+ }, "strip", z.ZodTypeAny, {
2208
+ from?: string | null | undefined;
2209
+ to?: string | null | undefined;
2210
+ }, {
2211
+ from?: string | null | undefined;
2212
+ to?: string | null | undefined;
2213
+ }>>>;
2214
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2215
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2216
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2217
+ }, "strip", z.ZodTypeAny, {
2218
+ from?: string | null | undefined;
2219
+ to?: string | null | undefined;
2220
+ }, {
2221
+ from?: string | null | undefined;
2222
+ to?: string | null | undefined;
2223
+ }>>>;
2224
2224
  }, "strip", z.ZodTypeAny, {
2225
2225
  limit: number;
2226
2226
  page: number;
@@ -10356,26 +10356,6 @@ export declare const jobsContractRouter: {
10356
10356
  page: z.ZodDefault<z.ZodNumber>;
10357
10357
  } & {
10358
10358
  tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10359
- createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
10360
- from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10361
- to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10362
- }, "strip", z.ZodTypeAny, {
10363
- from?: string | null | undefined;
10364
- to?: string | null | undefined;
10365
- }, {
10366
- from?: string | null | undefined;
10367
- to?: string | null | undefined;
10368
- }>>>;
10369
- updatedAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
10370
- from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10371
- to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10372
- }, "strip", z.ZodTypeAny, {
10373
- from?: string | null | undefined;
10374
- to?: string | null | undefined;
10375
- }, {
10376
- from?: string | null | undefined;
10377
- to?: string | null | undefined;
10378
- }>>>;
10379
10359
  qualificationFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
10380
10360
  qualificationId: z.ZodOptional<z.ZodString>;
10381
10361
  qualificationTypeId: z.ZodOptional<z.ZodString>;
@@ -10412,6 +10392,26 @@ export declare const jobsContractRouter: {
10412
10392
  }>>>;
10413
10393
  sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["description", "numberOfPositions", "status", "tradeId", "collaborationCompany", "collaborationClient", "collaborationAgent", "distance", "postcode", "payRate", "receivedRate", "workHours", "qualificationsCount", "createdAt", "updatedAt"]>>>;
10414
10394
  sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
10395
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
10396
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10397
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10398
+ }, "strip", z.ZodTypeAny, {
10399
+ from?: string | null | undefined;
10400
+ to?: string | null | undefined;
10401
+ }, {
10402
+ from?: string | null | undefined;
10403
+ to?: string | null | undefined;
10404
+ }>>>;
10405
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
10406
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10407
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10408
+ }, "strip", z.ZodTypeAny, {
10409
+ from?: string | null | undefined;
10410
+ to?: string | null | undefined;
10411
+ }, {
10412
+ from?: string | null | undefined;
10413
+ to?: string | null | undefined;
10414
+ }>>>;
10415
10415
  }, "strip", z.ZodTypeAny, {
10416
10416
  limit: number;
10417
10417
  page: number;
@@ -447,12 +447,6 @@ exports.BatchDeleteJobResponseSchema = zod_1.z
447
447
  */
448
448
  exports.FilterJobSchema = pagination_query_schema_1.PaginationQuerySchema.extend({
449
449
  tradeId: zod_1.z.string().uuid().optional().nullable().describe('Filter by trade'),
450
- createdAt: common_schemas_1.DateRangeSchema.optional()
451
- .nullable()
452
- .describe('Filter by created date range'),
453
- updatedAt: common_schemas_1.DateRangeSchema.optional()
454
- .nullable()
455
- .describe('Filter by updated date range'),
456
450
  qualificationFilters: zod_1.z
457
451
  .array(curated_workers_contract_1.QualificationFilterSchema)
458
452
  .optional()
@@ -480,6 +474,12 @@ exports.FilterJobSchema = pagination_query_schema_1.PaginationQuerySchema.extend
480
474
  sortOrder: common_schemas_1.SortOrderSchema.optional()
481
475
  .nullable()
482
476
  .describe('The order to sort the results by'),
477
+ createdAt: common_schemas_1.DateRangeSchema.optional()
478
+ .nullable()
479
+ .describe('Filter by created date range'),
480
+ updatedAt: common_schemas_1.DateRangeSchema.optional()
481
+ .nullable()
482
+ .describe('Filter by updated date range'),
483
483
  });
484
484
  exports.PaginatedJobResponseSchema = (0, pagination_schema_1.createPaginatedResponseSchema)(exports.JobSchema)
485
485
  .describe('Jobs retrieved successfully')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dakkitor/api-contracts",
3
- "version": "1.1.151",
3
+ "version": "1.1.153",
4
4
  "description": "TypeScript API contracts using ts-rest and Zod",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",