@dakkitor/api-contracts 1.1.76 → 1.1.78

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.
@@ -157,6 +157,7 @@
157
157
  "job.jobQualifications",
158
158
  "job.jobQualifications[*].*",
159
159
  "job.currentCollaboration",
160
+ "job.currentCollaboration.userId",
160
161
  "job.currentCollaboration.user.*",
161
162
  "job.numberOfPositions",
162
163
  "job.workHours",
@@ -195,6 +196,7 @@
195
196
  "booking.id",
196
197
  "booking.userId",
197
198
  "booking.job.currentCollaboration",
199
+ "booking.job.currentCollaboration.userId",
198
200
  "booking.job.currentCollaboration.user.*",
199
201
  "booking.job.location.*",
200
202
  "booking.job.pay",
@@ -5,17 +5,17 @@ export declare const CronExecutionHistorySchema: z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  jobName: z.ZodString;
7
7
  status: z.ZodString;
8
- startedAt: z.ZodString;
9
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ startedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
9
+ completedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>>, string | null | undefined, string | Date | null | undefined>;
10
10
  durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
11
  recordsProcessed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
12
  recordsCreated: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
13
  recordsDeleted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
14
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- status: string;
17
16
  id: string;
18
17
  jobName: string;
18
+ status: string;
19
19
  startedAt: string;
20
20
  completedAt?: string | null | undefined;
21
21
  durationMs?: number | null | undefined;
@@ -24,11 +24,11 @@ export declare const CronExecutionHistorySchema: z.ZodObject<{
24
24
  recordsDeleted?: number | null | undefined;
25
25
  errorMessage?: string | null | undefined;
26
26
  }, {
27
- status: string;
28
27
  id: string;
29
28
  jobName: string;
30
- startedAt: string;
31
- completedAt?: string | null | undefined;
29
+ status: string;
30
+ startedAt: string | Date;
31
+ completedAt?: string | Date | null | undefined;
32
32
  durationMs?: number | null | undefined;
33
33
  recordsProcessed?: number | null | undefined;
34
34
  recordsCreated?: number | null | undefined;
@@ -170,38 +170,38 @@ export declare const CronExecutionFilterSchema: z.ZodObject<{
170
170
  }, "strip", z.ZodTypeAny, {
171
171
  limit: number;
172
172
  page: number;
173
- sortBy?: "status" | "createdAt" | "jobName" | "startedAt" | "completedAt" | "durationMs" | undefined;
174
- sortOrder?: "ASC" | "DESC" | undefined;
175
173
  jobNames?: ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined;
176
174
  statuses?: ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined;
177
175
  startedAfter?: string | undefined;
178
176
  startedBefore?: string | undefined;
177
+ sortBy?: "jobName" | "status" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | undefined;
178
+ sortOrder?: "ASC" | "DESC" | undefined;
179
179
  }, {
180
180
  limit?: number | undefined;
181
181
  page?: number | undefined;
182
- sortBy?: "status" | "createdAt" | "jobName" | "startedAt" | "completedAt" | "durationMs" | undefined;
183
- sortOrder?: "ASC" | "DESC" | undefined;
184
182
  jobNames?: "GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined;
185
183
  statuses?: "SUCCESS" | "FAILED" | "PARTIAL" | ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined;
186
184
  startedAfter?: string | undefined;
187
185
  startedBefore?: string | undefined;
186
+ sortBy?: "jobName" | "status" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | undefined;
187
+ sortOrder?: "ASC" | "DESC" | undefined;
188
188
  }>;
189
189
  export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
190
190
  items: z.ZodArray<z.ZodObject<{
191
191
  id: z.ZodString;
192
192
  jobName: z.ZodString;
193
193
  status: z.ZodString;
194
- startedAt: z.ZodString;
195
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ startedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
195
+ completedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>>, string | null | undefined, string | Date | null | undefined>;
196
196
  durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
197
197
  recordsProcessed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
198
198
  recordsCreated: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
199
199
  recordsDeleted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
200
200
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
201
201
  }, "strip", z.ZodTypeAny, {
202
- status: string;
203
202
  id: string;
204
203
  jobName: string;
204
+ status: string;
205
205
  startedAt: string;
206
206
  completedAt?: string | null | undefined;
207
207
  durationMs?: number | null | undefined;
@@ -210,11 +210,11 @@ export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
210
210
  recordsDeleted?: number | null | undefined;
211
211
  errorMessage?: string | null | undefined;
212
212
  }, {
213
- status: string;
214
213
  id: string;
215
214
  jobName: string;
216
- startedAt: string;
217
- completedAt?: string | null | undefined;
215
+ status: string;
216
+ startedAt: string | Date;
217
+ completedAt?: string | Date | null | undefined;
218
218
  durationMs?: number | null | undefined;
219
219
  recordsProcessed?: number | null | undefined;
220
220
  recordsCreated?: number | null | undefined;
@@ -229,9 +229,9 @@ export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
229
229
  }, "strip", z.ZodTypeAny, {
230
230
  limit: number;
231
231
  items: {
232
- status: string;
233
232
  id: string;
234
233
  jobName: string;
234
+ status: string;
235
235
  startedAt: string;
236
236
  completedAt?: string | null | undefined;
237
237
  durationMs?: number | null | undefined;
@@ -247,11 +247,11 @@ export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
247
247
  }, {
248
248
  limit: number;
249
249
  items: {
250
- status: string;
251
250
  id: string;
252
251
  jobName: string;
253
- startedAt: string;
254
- completedAt?: string | null | undefined;
252
+ status: string;
253
+ startedAt: string | Date;
254
+ completedAt?: string | Date | null | undefined;
255
255
  durationMs?: number | null | undefined;
256
256
  recordsProcessed?: number | null | undefined;
257
257
  recordsCreated?: number | null | undefined;
@@ -387,6 +387,9 @@ export type PaginatedCronExecutionHistory = z.infer<typeof PaginatedCronExecutio
387
387
  export type PaginatedCronJobHealth = z.infer<typeof PaginatedCronJobHealthSchema>;
388
388
  export declare const cronExecutionsContract: {
389
389
  findAll: {
390
+ metadata: {
391
+ tags: string[];
392
+ };
390
393
  query: z.ZodObject<{
391
394
  limit: z.ZodDefault<z.ZodNumber>;
392
395
  page: z.ZodDefault<z.ZodNumber>;
@@ -400,25 +403,22 @@ export declare const cronExecutionsContract: {
400
403
  }, "strip", z.ZodTypeAny, {
401
404
  limit: number;
402
405
  page: number;
403
- sortBy?: "status" | "createdAt" | "jobName" | "startedAt" | "completedAt" | "durationMs" | undefined;
404
- sortOrder?: "ASC" | "DESC" | undefined;
405
406
  jobNames?: ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined;
406
407
  statuses?: ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined;
407
408
  startedAfter?: string | undefined;
408
409
  startedBefore?: string | undefined;
410
+ sortBy?: "jobName" | "status" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | undefined;
411
+ sortOrder?: "ASC" | "DESC" | undefined;
409
412
  }, {
410
413
  limit?: number | undefined;
411
414
  page?: number | undefined;
412
- sortBy?: "status" | "createdAt" | "jobName" | "startedAt" | "completedAt" | "durationMs" | undefined;
413
- sortOrder?: "ASC" | "DESC" | undefined;
414
415
  jobNames?: "GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE" | ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined;
415
416
  statuses?: "SUCCESS" | "FAILED" | "PARTIAL" | ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined;
416
417
  startedAfter?: string | undefined;
417
418
  startedBefore?: string | undefined;
419
+ sortBy?: "jobName" | "status" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | undefined;
420
+ sortOrder?: "ASC" | "DESC" | undefined;
418
421
  }>;
419
- metadata: {
420
- tags: string[];
421
- };
422
422
  summary: "List all cron executions";
423
423
  method: "GET";
424
424
  path: "/v2/cron-executions";
@@ -503,17 +503,17 @@ export declare const cronExecutionsContract: {
503
503
  id: z.ZodString;
504
504
  jobName: z.ZodString;
505
505
  status: z.ZodString;
506
- startedAt: z.ZodString;
507
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
506
+ startedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
507
+ completedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>>, string | null | undefined, string | Date | null | undefined>;
508
508
  durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
509
509
  recordsProcessed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
510
510
  recordsCreated: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
511
511
  recordsDeleted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
512
512
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
513
513
  }, "strip", z.ZodTypeAny, {
514
- status: string;
515
514
  id: string;
516
515
  jobName: string;
516
+ status: string;
517
517
  startedAt: string;
518
518
  completedAt?: string | null | undefined;
519
519
  durationMs?: number | null | undefined;
@@ -522,11 +522,11 @@ export declare const cronExecutionsContract: {
522
522
  recordsDeleted?: number | null | undefined;
523
523
  errorMessage?: string | null | undefined;
524
524
  }, {
525
- status: string;
526
525
  id: string;
527
526
  jobName: string;
528
- startedAt: string;
529
- completedAt?: string | null | undefined;
527
+ status: string;
528
+ startedAt: string | Date;
529
+ completedAt?: string | Date | null | undefined;
530
530
  durationMs?: number | null | undefined;
531
531
  recordsProcessed?: number | null | undefined;
532
532
  recordsCreated?: number | null | undefined;
@@ -541,9 +541,9 @@ export declare const cronExecutionsContract: {
541
541
  }, "strip", z.ZodTypeAny, {
542
542
  limit: number;
543
543
  items: {
544
- status: string;
545
544
  id: string;
546
545
  jobName: string;
546
+ status: string;
547
547
  startedAt: string;
548
548
  completedAt?: string | null | undefined;
549
549
  durationMs?: number | null | undefined;
@@ -559,11 +559,11 @@ export declare const cronExecutionsContract: {
559
559
  }, {
560
560
  limit: number;
561
561
  items: {
562
- status: string;
563
562
  id: string;
564
563
  jobName: string;
565
- startedAt: string;
566
- completedAt?: string | null | undefined;
564
+ status: string;
565
+ startedAt: string | Date;
566
+ completedAt?: string | Date | null | undefined;
567
567
  durationMs?: number | null | undefined;
568
568
  recordsProcessed?: number | null | undefined;
569
569
  recordsCreated?: number | null | undefined;
@@ -735,6 +735,9 @@ export declare const cronExecutionsContract: {
735
735
  };
736
736
  };
737
737
  getHealthStatus: {
738
+ metadata: {
739
+ tags: string[];
740
+ };
738
741
  query: z.ZodObject<{
739
742
  limit: z.ZodDefault<z.ZodNumber>;
740
743
  page: z.ZodDefault<z.ZodNumber>;
@@ -745,9 +748,6 @@ export declare const cronExecutionsContract: {
745
748
  limit?: number | undefined;
746
749
  page?: number | undefined;
747
750
  }>;
748
- metadata: {
749
- tags: string[];
750
- };
751
751
  summary: "Get health status for all cron jobs";
752
752
  method: "GET";
753
753
  path: "/v2/cron-executions/health";
@@ -1061,17 +1061,17 @@ export declare const cronExecutionsContract: {
1061
1061
  id: z.ZodString;
1062
1062
  jobName: z.ZodString;
1063
1063
  status: z.ZodString;
1064
- startedAt: z.ZodString;
1065
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1064
+ startedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1065
+ completedAt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>>, string | null | undefined, string | Date | null | undefined>;
1066
1066
  durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1067
1067
  recordsProcessed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1068
1068
  recordsCreated: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1069
1069
  recordsDeleted: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1070
1070
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1071
1071
  }, "strip", z.ZodTypeAny, {
1072
- status: string;
1073
1072
  id: string;
1074
1073
  jobName: string;
1074
+ status: string;
1075
1075
  startedAt: string;
1076
1076
  completedAt?: string | null | undefined;
1077
1077
  durationMs?: number | null | undefined;
@@ -1080,11 +1080,11 @@ export declare const cronExecutionsContract: {
1080
1080
  recordsDeleted?: number | null | undefined;
1081
1081
  errorMessage?: string | null | undefined;
1082
1082
  }, {
1083
- status: string;
1084
1083
  id: string;
1085
1084
  jobName: string;
1086
- startedAt: string;
1087
- completedAt?: string | null | undefined;
1085
+ status: string;
1086
+ startedAt: string | Date;
1087
+ completedAt?: string | Date | null | undefined;
1088
1088
  durationMs?: number | null | undefined;
1089
1089
  recordsProcessed?: number | null | undefined;
1090
1090
  recordsCreated?: number | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"cron-executions.contract.d.ts","sourceRoot":"","sources":["../../contracts/cron-executions/cron-executions.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,iBAAiB,uHAOM,CAAC;AAErC,eAAO,MAAM,yBAAyB,6CAEM,CAAC;AAE7C,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCM,CAAC;AAE9C,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAiBM,CAAC;AAE5C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;0BAWM,CAAC;AAEzC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAeM,CAAC;AAEvC,eAAO,MAAM,2BAA2B;;;;;;;;;;;;EAWM,CAAC;AAE/C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCM,CAAC;AAE7C,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5C,CAAC;AAEL,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIvC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHlC,CAAC"}
@@ -24,11 +24,15 @@ exports.CronExecutionHistorySchema = zod_1.z
24
24
  id: zod_1.z.string().uuid().describe('Unique identifier for this execution'),
25
25
  jobName: zod_1.z.string().describe('Name of the cron job'),
26
26
  status: zod_1.z.string().describe('Execution status'),
27
- startedAt: zod_1.z.string().describe('When the execution started'),
27
+ startedAt: zod_1.z
28
+ .union([zod_1.z.string(), zod_1.z.date()])
29
+ .transform((val) => (val instanceof Date ? val.toISOString() : val))
30
+ .describe('When the execution started'),
28
31
  completedAt: zod_1.z
29
- .string()
32
+ .union([zod_1.z.string(), zod_1.z.date()])
30
33
  .nullable()
31
34
  .optional()
35
+ .transform((val) => (val instanceof Date ? val.toISOString() : val))
32
36
  .describe('When the execution completed (null if still running)'),
33
37
  durationMs: zod_1.z
34
38
  .number()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dakkitor/api-contracts",
3
- "version": "1.1.76",
3
+ "version": "1.1.78",
4
4
  "description": "TypeScript API contracts using ts-rest and Zod",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",