@dakkitor/api-contracts 1.1.79 → 1.1.80

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.
Files changed (33) hide show
  1. package/dist/abilities/first-agent.abilities.json +2 -0
  2. package/dist/actives/actives.contract.d.ts +2517 -2227
  3. package/dist/actives/actives.contract.d.ts.map +1 -1
  4. package/dist/agent-client-links/agent-client-links.contract.d.ts +34 -34
  5. package/dist/bookings/bookings.contract.d.ts +2216 -1951
  6. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  7. package/dist/call-history/call-history.contract.d.ts +74 -74
  8. package/dist/client-contacts/client-contacts.contract.d.ts +32 -32
  9. package/dist/clients/clients.contract.d.ts +18 -18
  10. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +600 -600
  11. package/dist/collaborations/collaborations.contract.d.ts +766 -491
  12. package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
  13. package/dist/collaborations/collaborations.contract.js +10 -5
  14. package/dist/common/common-schemas.d.ts +69 -2
  15. package/dist/common/common-schemas.d.ts.map +1 -1
  16. package/dist/common/common-schemas.js +72 -1
  17. package/dist/companies/companies.contract.d.ts +2 -2
  18. package/dist/cron-executions/cron-executions.contract.d.ts +26 -26
  19. package/dist/curated-workers/curated-workers.contract.d.ts +312 -285
  20. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  21. package/dist/curated-workers/curated-workers.contract.js +7 -20
  22. package/dist/jobs/jobs.contract.d.ts +687 -687
  23. package/dist/lead-assignments/lead-assignments.contract.d.ts +74 -74
  24. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +16 -16
  25. package/dist/leads/leads.contract.d.ts +48 -48
  26. package/dist/locations/locations.contract.d.ts +12 -12
  27. package/dist/users/users.contract.d.ts +12 -18
  28. package/dist/users/users.contract.d.ts.map +1 -1
  29. package/dist/users/users.contract.js +3 -12
  30. package/dist/workers/workers.contract.d.ts +351 -181
  31. package/dist/workers/workers.contract.d.ts.map +1 -1
  32. package/dist/workers/workers.contract.js +27 -42
  33. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"collaborations.contract.d.ts","sourceRoot":"","sources":["../../contracts/collaborations/collaborations.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB;;GAEG;AACH,eAAO,MAAM,yBAAyB,mHAUM,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,iCAAiC,iDAEM,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAsBF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHxC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.collaborationsContractRouter = exports.PaginatedCollaborationResponseSchema = exports.CollaborationAutocompleteArraySchema = exports.CollaborationAutocompleteResponseSchema = exports.FilterCollaborationSchema = exports.UpsertCollaborationSchema = exports.UpdateCollaborationSchema = exports.CreateCollaborationSchema = exports.CollaborationSchema = exports.CollaborationSortableFieldsSchema = exports.CollaborationStatusSchema = void 0;
3
+ exports.collaborationsContractRouter = exports.PaginatedCollaborationResponseSchema = exports.CollaborationAutocompleteArraySchema = exports.CollaborationAutocompleteResponseSchema = exports.FilterCollaborationSchema = exports.UpsertCollaborationSchema = exports.UpdateCollaborationSchema = exports.CreateCollaborationSchema = exports.CollaborationSchema = exports.BaseCollaborationSchema = exports.CollaborationSortableFieldsSchema = exports.CollaborationStatusSchema = void 0;
4
4
  const zod_openapi_1 = require("@anatine/zod-openapi");
5
5
  const core_1 = require("@ts-rest/core");
6
6
  const zod_1 = require("zod");
@@ -24,6 +24,7 @@ exports.CollaborationStatusSchema = zod_1.z
24
24
  'APPROVED',
25
25
  'CHANGED_COMPANY',
26
26
  'CHANGED_AGENT',
27
+ 'CHANGED_COMPANY_AND_AGENT',
27
28
  ])
28
29
  .openapi({ title: 'CollaborationStatus' });
29
30
  /**
@@ -35,7 +36,7 @@ exports.CollaborationSortableFieldsSchema = zod_1.z
35
36
  /**
36
37
  * Base Collaboration Schema (without self-reference, used for nested collaboration)
37
38
  */
38
- const BaseCollaborationSchema = zod_1.z.object({
39
+ exports.BaseCollaborationSchema = zod_1.z.object({
39
40
  id: zod_1.z.string().uuid().describe('Collaboration ID'),
40
41
  company: companies_contract_1.CompanySchema.nullable().optional(),
41
42
  client: clients_contract_1.ClientSchema.nullable().optional(),
@@ -54,10 +55,10 @@ const BaseCollaborationSchema = zod_1.z.object({
54
55
  /**
55
56
  * Main Collaboration Schema
56
57
  */
57
- exports.CollaborationSchema = BaseCollaborationSchema.extend({
58
- newCollaboration: BaseCollaborationSchema.optional()
58
+ exports.CollaborationSchema = exports.BaseCollaborationSchema.extend({
59
+ newCollaboration: exports.BaseCollaborationSchema.optional()
59
60
  .nullable()
60
- .describe('New Collaboration (when status is CHANGED_COMPANY or CHANGED_AGENT)'),
61
+ .describe('New Collaboration (when status is CHANGED_COMPANY, CHANGED_AGENT, or CHANGED_COMPANY_AND_AGENT)'),
61
62
  });
62
63
  /**
63
64
  * Create Collaboration Schema
@@ -72,9 +73,13 @@ exports.CreateCollaborationSchema = zod_1.z
72
73
  .openapi({ title: 'CreateCollaboration' });
73
74
  /**
74
75
  * Update Collaboration Schema
76
+ * When user or company is changed, the old collaboration is marked as CHANGED_AGENT or CHANGED_COMPANY
77
+ * and a new collaboration is created with the updated values.
75
78
  */
76
79
  exports.UpdateCollaborationSchema = zod_1.z
77
80
  .object({
81
+ user: common_schemas_1.ResourceIdSchema.optional().describe('User (Agent) - changing this creates a new collaboration and marks the old one as CHANGED_AGENT (or CHANGED_COMPANY_AND_AGENT if company also changes)'),
82
+ company: common_schemas_1.ResourceIdSchema.optional().describe('Company - changing this creates a new collaboration and marks the old one as CHANGED_COMPANY (or CHANGED_COMPANY_AND_AGENT if agent also changes)'),
78
83
  status: exports.CollaborationStatusSchema.optional().describe('Collaboration Status'),
79
84
  })
80
85
  .openapi({ title: 'UpdateCollaboration' });
@@ -1,4 +1,71 @@
1
1
  import { z } from 'zod';
2
+ /**
3
+ * International phone number validation using libphonenumber-js.
4
+ * Accepts phone numbers from any country in E.164 format or with country code.
5
+ * Examples: +447123456789, +14155552671, +33612345678
6
+ */
7
+ export declare const PhoneSchema: z.ZodEffects<z.ZodString, string, string>;
8
+ /**
9
+ * Common phone number schemas for workers and curated workers
10
+ */
11
+ export declare const PhoneNumberResponseSchema: z.ZodObject<{
12
+ id: z.ZodString;
13
+ phoneNumber: z.ZodString;
14
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ id: string;
18
+ phoneNumber: string;
19
+ isPrimary: boolean;
20
+ description?: string | null | undefined;
21
+ }, {
22
+ id: string;
23
+ phoneNumber: string;
24
+ description?: string | null | undefined;
25
+ isPrimary?: boolean | undefined;
26
+ }>;
27
+ export declare const CreatePhoneNumberSchema: z.ZodObject<{
28
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
29
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ phoneNumber: string;
33
+ isPrimary: boolean;
34
+ description?: string | null | undefined;
35
+ }, {
36
+ phoneNumber: string;
37
+ description?: string | null | undefined;
38
+ isPrimary?: boolean | undefined;
39
+ }>;
40
+ export declare const UpsertPhoneNumberSchema: z.ZodEffects<z.ZodObject<{
41
+ id: z.ZodOptional<z.ZodString>;
42
+ phoneNumber: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
43
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ id?: string | undefined;
47
+ phoneNumber?: string | undefined;
48
+ description?: string | null | undefined;
49
+ isPrimary?: boolean | undefined;
50
+ }, {
51
+ id?: string | undefined;
52
+ phoneNumber?: string | undefined;
53
+ description?: string | null | undefined;
54
+ isPrimary?: boolean | undefined;
55
+ }>, {
56
+ id?: string | undefined;
57
+ phoneNumber?: string | undefined;
58
+ description?: string | null | undefined;
59
+ isPrimary?: boolean | undefined;
60
+ }, {
61
+ id?: string | undefined;
62
+ phoneNumber?: string | undefined;
63
+ description?: string | null | undefined;
64
+ isPrimary?: boolean | undefined;
65
+ }>;
66
+ export type PhoneNumberResponse = z.infer<typeof PhoneNumberResponseSchema>;
67
+ export type CreatePhoneNumber = z.infer<typeof CreatePhoneNumberSchema>;
68
+ export type UpsertPhoneNumber = z.infer<typeof UpsertPhoneNumberSchema>;
2
69
  /**
3
70
  * Common enum schemas used across multiple contracts
4
71
  */
@@ -66,11 +133,11 @@ export declare const AutocompleteQuerySchema: z.ZodObject<{
66
133
  query: z.ZodOptional<z.ZodString>;
67
134
  id: z.ZodOptional<z.ZodString>;
68
135
  }, "strip", z.ZodTypeAny, {
69
- query?: string | undefined;
70
136
  id?: string | undefined;
71
- }, {
72
137
  query?: string | undefined;
138
+ }, {
73
139
  id?: string | undefined;
140
+ query?: string | undefined;
74
141
  }>;
75
142
  export type AutocompleteQuery = z.infer<typeof AutocompleteQuerySchema>;
76
143
  export declare const ResourceIdSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"common-schemas.d.ts","sourceRoot":"","sources":["../../contracts/common/common-schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AAEH,eAAO,MAAM,eAAe,4BAEM,CAAC;AAE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AAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,iBAAiB,i6EAoMM,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EAYhC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;EAYM,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;EAeM,CAAC;AAElC,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,qBAAqB;;;;;;EAIM,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -1,9 +1,80 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessageResponseSchema = exports.PayRangeSchema = exports.ResourceIdSchema = exports.AutocompleteQuerySchema = exports.LocationDetailsSchema = exports.CreateLocationSchema = exports.NationalitySchema = exports.EnglishLevelSchema = exports.DateRangeSchema = exports.RateUnitSchema = exports.SortOrderSchema = void 0;
3
+ exports.MessageResponseSchema = exports.PayRangeSchema = exports.ResourceIdSchema = exports.AutocompleteQuerySchema = exports.LocationDetailsSchema = exports.CreateLocationSchema = exports.NationalitySchema = exports.EnglishLevelSchema = exports.DateRangeSchema = exports.RateUnitSchema = exports.SortOrderSchema = exports.UpsertPhoneNumberSchema = exports.CreatePhoneNumberSchema = exports.PhoneNumberResponseSchema = exports.PhoneSchema = void 0;
4
4
  const zod_openapi_1 = require("@anatine/zod-openapi");
5
5
  const zod_1 = require("zod");
6
+ const libphonenumber_js_1 = require("libphonenumber-js");
6
7
  (0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
8
+ /**
9
+ * International phone number validation using libphonenumber-js.
10
+ * Accepts phone numbers from any country in E.164 format or with country code.
11
+ * Examples: +447123456789, +14155552671, +33612345678
12
+ */
13
+ exports.PhoneSchema = zod_1.z
14
+ .string()
15
+ .refine(libphonenumber_js_1.isValidPhoneNumber, 'Invalid phone number. Please include country code (e.g., +44...)');
16
+ /**
17
+ * Common phone number schemas for workers and curated workers
18
+ */
19
+ exports.PhoneNumberResponseSchema = zod_1.z
20
+ .object({
21
+ id: zod_1.z.string().uuid().describe('Phone number ID'),
22
+ phoneNumber: zod_1.z.string().describe('Phone number'),
23
+ description: zod_1.z
24
+ .string()
25
+ .nullable()
26
+ .optional()
27
+ .describe('Phone number description'),
28
+ isPrimary: zod_1.z
29
+ .boolean()
30
+ .default(false)
31
+ .describe('Whether this is the primary phone number'),
32
+ })
33
+ .openapi({ title: 'PhoneNumberResponse' });
34
+ exports.CreatePhoneNumberSchema = zod_1.z
35
+ .object({
36
+ phoneNumber: exports.PhoneSchema.describe('Phone number in E.164 format'),
37
+ description: zod_1.z
38
+ .string()
39
+ .max(100)
40
+ .nullable()
41
+ .optional()
42
+ .describe('Phone number description'),
43
+ isPrimary: zod_1.z
44
+ .boolean()
45
+ .default(false)
46
+ .describe('Whether this is the primary phone number'),
47
+ })
48
+ .openapi({ title: 'CreatePhoneNumber' });
49
+ exports.UpsertPhoneNumberSchema = zod_1.z
50
+ .object({
51
+ id: zod_1.z
52
+ .string()
53
+ .uuid()
54
+ .optional()
55
+ .describe('Phone number ID (present on update)'),
56
+ phoneNumber: exports.PhoneSchema.optional().describe('Phone number in E.164 format'),
57
+ description: zod_1.z
58
+ .string()
59
+ .max(100)
60
+ .nullable()
61
+ .optional()
62
+ .describe('Phone number description'),
63
+ isPrimary: zod_1.z
64
+ .boolean()
65
+ .optional()
66
+ .describe('Whether this is the primary phone number'),
67
+ })
68
+ .refine((data) => {
69
+ // If no id (new phone number), phoneNumber and isPrimary are required
70
+ if (!data.id) {
71
+ return data.phoneNumber !== undefined && data.isPrimary !== undefined;
72
+ }
73
+ return true;
74
+ }, {
75
+ message: 'New phone numbers require filling a Phone Number, please delete if adding it was a mistake',
76
+ })
77
+ .openapi({ title: 'UpsertPhoneNumber' });
7
78
  /**
8
79
  * Common enum schemas used across multiple contracts
9
80
  */
@@ -474,11 +474,11 @@ export declare const companiesContractRouter: {
474
474
  query: z.ZodOptional<z.ZodString>;
475
475
  id: z.ZodOptional<z.ZodString>;
476
476
  }, "strip", z.ZodTypeAny, {
477
- query?: string | undefined;
478
477
  id?: string | undefined;
479
- }, {
480
478
  query?: string | undefined;
479
+ }, {
481
480
  id?: string | undefined;
481
+ query?: string | undefined;
482
482
  }>;
483
483
  metadata: {
484
484
  tags: string[];
@@ -14,8 +14,8 @@ export declare const CronExecutionHistorySchema: z.ZodObject<{
14
14
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  id: string;
17
- jobName: string;
18
17
  status: string;
18
+ jobName: string;
19
19
  startedAt: string;
20
20
  completedAt?: string | null | undefined;
21
21
  durationMs?: number | null | undefined;
@@ -25,8 +25,8 @@ export declare const CronExecutionHistorySchema: z.ZodObject<{
25
25
  errorMessage?: string | null | undefined;
26
26
  }, {
27
27
  id: string;
28
- jobName: string;
29
28
  status: string;
29
+ jobName: string;
30
30
  startedAt: string | Date;
31
31
  completedAt?: string | Date | null | undefined;
32
32
  durationMs?: number | null | undefined;
@@ -170,21 +170,21 @@ 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;
173
175
  jobNames?: ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined;
174
176
  statuses?: ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined;
175
177
  startedAfter?: string | undefined;
176
178
  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;
182
184
  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;
183
185
  statuses?: "SUCCESS" | "FAILED" | "PARTIAL" | ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined;
184
186
  startedAfter?: string | undefined;
185
187
  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<{
@@ -200,8 +200,8 @@ export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
200
200
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
201
201
  }, "strip", z.ZodTypeAny, {
202
202
  id: string;
203
- jobName: string;
204
203
  status: string;
204
+ jobName: string;
205
205
  startedAt: string;
206
206
  completedAt?: string | null | undefined;
207
207
  durationMs?: number | null | undefined;
@@ -211,8 +211,8 @@ export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
211
211
  errorMessage?: string | null | undefined;
212
212
  }, {
213
213
  id: string;
214
- jobName: string;
215
214
  status: string;
215
+ jobName: string;
216
216
  startedAt: string | Date;
217
217
  completedAt?: string | Date | null | undefined;
218
218
  durationMs?: number | null | undefined;
@@ -230,8 +230,8 @@ export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
230
230
  limit: number;
231
231
  items: {
232
232
  id: string;
233
- jobName: string;
234
233
  status: string;
234
+ jobName: string;
235
235
  startedAt: string;
236
236
  completedAt?: string | null | undefined;
237
237
  durationMs?: number | null | undefined;
@@ -248,8 +248,8 @@ export declare const PaginatedCronExecutionHistorySchema: z.ZodObject<{
248
248
  limit: number;
249
249
  items: {
250
250
  id: string;
251
- jobName: string;
252
251
  status: string;
252
+ jobName: string;
253
253
  startedAt: string | Date;
254
254
  completedAt?: string | Date | null | undefined;
255
255
  durationMs?: number | null | undefined;
@@ -387,9 +387,6 @@ 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
- };
393
390
  query: z.ZodObject<{
394
391
  limit: z.ZodDefault<z.ZodNumber>;
395
392
  page: z.ZodDefault<z.ZodNumber>;
@@ -403,22 +400,25 @@ export declare const cronExecutionsContract: {
403
400
  }, "strip", z.ZodTypeAny, {
404
401
  limit: number;
405
402
  page: number;
403
+ sortBy?: "status" | "createdAt" | "jobName" | "startedAt" | "completedAt" | "durationMs" | undefined;
404
+ sortOrder?: "ASC" | "DESC" | undefined;
406
405
  jobNames?: ("GENERATE_DAILY_ACTIVES" | "CLEANUP_ORPHANED_FILES" | "CLEANUP_ARCHIVED_FILES" | "UPDATE_AGENT_PERFORMANCE")[] | undefined;
407
406
  statuses?: ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined;
408
407
  startedAfter?: string | undefined;
409
408
  startedBefore?: string | undefined;
410
- sortBy?: "jobName" | "status" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | undefined;
411
- sortOrder?: "ASC" | "DESC" | undefined;
412
409
  }, {
413
410
  limit?: number | undefined;
414
411
  page?: number | undefined;
412
+ sortBy?: "status" | "createdAt" | "jobName" | "startedAt" | "completedAt" | "durationMs" | undefined;
413
+ sortOrder?: "ASC" | "DESC" | undefined;
415
414
  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;
416
415
  statuses?: "SUCCESS" | "FAILED" | "PARTIAL" | ("SUCCESS" | "FAILED" | "PARTIAL")[] | undefined;
417
416
  startedAfter?: string | undefined;
418
417
  startedBefore?: string | undefined;
419
- sortBy?: "jobName" | "status" | "startedAt" | "completedAt" | "durationMs" | "createdAt" | undefined;
420
- sortOrder?: "ASC" | "DESC" | undefined;
421
418
  }>;
419
+ metadata: {
420
+ tags: string[];
421
+ };
422
422
  summary: "List all cron executions";
423
423
  method: "GET";
424
424
  path: "/v2/cron-executions";
@@ -512,8 +512,8 @@ export declare const cronExecutionsContract: {
512
512
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
513
513
  }, "strip", z.ZodTypeAny, {
514
514
  id: string;
515
- jobName: string;
516
515
  status: string;
516
+ jobName: string;
517
517
  startedAt: string;
518
518
  completedAt?: string | null | undefined;
519
519
  durationMs?: number | null | undefined;
@@ -523,8 +523,8 @@ export declare const cronExecutionsContract: {
523
523
  errorMessage?: string | null | undefined;
524
524
  }, {
525
525
  id: string;
526
- jobName: string;
527
526
  status: string;
527
+ jobName: string;
528
528
  startedAt: string | Date;
529
529
  completedAt?: string | Date | null | undefined;
530
530
  durationMs?: number | null | undefined;
@@ -542,8 +542,8 @@ export declare const cronExecutionsContract: {
542
542
  limit: number;
543
543
  items: {
544
544
  id: string;
545
- jobName: string;
546
545
  status: string;
546
+ jobName: string;
547
547
  startedAt: string;
548
548
  completedAt?: string | null | undefined;
549
549
  durationMs?: number | null | undefined;
@@ -560,8 +560,8 @@ export declare const cronExecutionsContract: {
560
560
  limit: number;
561
561
  items: {
562
562
  id: string;
563
- jobName: string;
564
563
  status: string;
564
+ jobName: string;
565
565
  startedAt: string | Date;
566
566
  completedAt?: string | Date | null | undefined;
567
567
  durationMs?: number | null | undefined;
@@ -735,9 +735,6 @@ export declare const cronExecutionsContract: {
735
735
  };
736
736
  };
737
737
  getHealthStatus: {
738
- metadata: {
739
- tags: string[];
740
- };
741
738
  query: z.ZodObject<{
742
739
  limit: z.ZodDefault<z.ZodNumber>;
743
740
  page: z.ZodDefault<z.ZodNumber>;
@@ -748,6 +745,9 @@ export declare const cronExecutionsContract: {
748
745
  limit?: number | undefined;
749
746
  page?: number | undefined;
750
747
  }>;
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";
@@ -1070,8 +1070,8 @@ export declare const cronExecutionsContract: {
1070
1070
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1071
1071
  }, "strip", z.ZodTypeAny, {
1072
1072
  id: string;
1073
- jobName: string;
1074
1073
  status: string;
1074
+ jobName: string;
1075
1075
  startedAt: string;
1076
1076
  completedAt?: string | null | undefined;
1077
1077
  durationMs?: number | null | undefined;
@@ -1081,8 +1081,8 @@ export declare const cronExecutionsContract: {
1081
1081
  errorMessage?: string | null | undefined;
1082
1082
  }, {
1083
1083
  id: string;
1084
- jobName: string;
1085
1084
  status: string;
1085
+ jobName: string;
1086
1086
  startedAt: string | Date;
1087
1087
  completedAt?: string | Date | null | undefined;
1088
1088
  durationMs?: number | null | undefined;