@dakkitor/api-contracts 1.8.0 → 1.9.1

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 (82) hide show
  1. package/dist/abilities/abilities.contract.d.ts +1 -1
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +1 -0
  4. package/dist/abilities/abilities.contract.spec.js +11 -0
  5. package/dist/abilities/second-agent.abilities.json +16 -0
  6. package/dist/actives/actives.contract.d.ts +6327 -6196
  7. package/dist/actives/actives.contract.d.ts.map +1 -1
  8. package/dist/agent-client-links/agent-client-links.contract.d.ts +1148 -1046
  9. package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
  10. package/dist/auth/auth.contract.d.ts +23 -23
  11. package/dist/bookings/bookings.contract.d.ts +9238 -9006
  12. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  13. package/dist/call-history/call-history.contract.d.ts +768 -731
  14. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  15. package/dist/calls-feed/calls-feed.contract.d.ts +99 -92
  16. package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
  17. package/dist/candidate-calling/candidate-calling.contract.d.ts +13397 -0
  18. package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -0
  19. package/dist/candidate-calling/candidate-calling.contract.js +206 -0
  20. package/dist/candidate-calling/candidate-calling.contract.spec.d.ts +2 -0
  21. package/dist/candidate-calling/candidate-calling.contract.spec.d.ts.map +1 -0
  22. package/dist/candidate-calling/candidate-calling.contract.spec.js +193 -0
  23. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2738 -2634
  24. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
  25. package/dist/collaborations/collaborations.contract.d.ts +2281 -2184
  26. package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
  27. package/dist/cron-executions/cron-executions.contract.d.ts +7 -7
  28. package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
  29. package/dist/cron-executions/cron-executions.contract.js +1 -0
  30. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2663 -2045
  31. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
  32. package/dist/curated-worker-leads/candidate-coordination.contract.js +37 -4
  33. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +228 -228
  34. package/dist/curated-worker-leads/contact-history.spec.js +55 -0
  35. package/dist/curated-worker-leads/jobs-tab.contract.d.ts +1928 -1928
  36. package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
  37. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +36 -36
  38. package/dist/curated-workers/curated-workers.contract.d.ts +1195 -1195
  39. package/dist/dashboards/dashboard-widgets.contract.d.ts +396 -396
  40. package/dist/dashboards/dashboard.contract.d.ts +16 -16
  41. package/dist/export-jobs/export-jobs.contract.d.ts +675 -675
  42. package/dist/exports-events/exports-events.schemas.d.ts +4 -4
  43. package/dist/index.d.ts +4 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +4 -0
  46. package/dist/jobs/jobs.contract.d.ts +7903 -7645
  47. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  48. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +72 -72
  49. package/dist/lead-assignments/lead-assignments.contract.d.ts +999 -928
  50. package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
  51. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +244 -220
  52. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
  53. package/dist/leads/leads.contract.d.ts +259 -259
  54. package/dist/notifications/notifications.contract.d.ts +67 -67
  55. package/dist/outreach/__tests__/outreach-claim.test.js +33 -0
  56. package/dist/outreach/__tests__/outreach-routes.test.js +8 -0
  57. package/dist/outreach/outreach.contract.d.ts +583 -162
  58. package/dist/outreach/outreach.contract.d.ts.map +1 -1
  59. package/dist/outreach/outreach.contract.js +50 -1
  60. package/dist/outreach/relay-hub-outreach.contract.d.ts +299 -121
  61. package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -1
  62. package/dist/outreach/relay-hub-outreach.contract.js +10 -0
  63. package/dist/outreach/relay-hub-outreach.contract.spec.js +26 -0
  64. package/dist/outreach/relay-hub-outreach.schemas.d.ts +94 -0
  65. package/dist/outreach/relay-hub-outreach.schemas.d.ts.map +1 -0
  66. package/dist/outreach/relay-hub-outreach.schemas.js +15 -0
  67. package/dist/own-research/check-phone-response.spec.d.ts +2 -0
  68. package/dist/own-research/check-phone-response.spec.d.ts.map +1 -0
  69. package/dist/own-research/check-phone-response.spec.js +54 -0
  70. package/dist/own-research/own-research.contract.d.ts +801 -716
  71. package/dist/own-research/own-research.contract.d.ts.map +1 -1
  72. package/dist/own-research/own-research.contract.js +6 -1
  73. package/dist/user-access-grants/user-access-grants.contract.d.ts +179 -179
  74. package/dist/users/users.contract.d.ts +227 -198
  75. package/dist/users/users.contract.d.ts.map +1 -1
  76. package/dist/users/users.contract.js +9 -1
  77. package/dist/users/users.contract.spec.js +39 -0
  78. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +124 -124
  79. package/dist/workers/workers.contract.d.ts +2761 -2717
  80. package/dist/workers/workers.contract.d.ts.map +1 -1
  81. package/dist/workers/workers.contract.js +12 -0
  82. package/package.json +1 -1
@@ -33,40 +33,40 @@ export declare const FilterExportJobSchema: z.ZodObject<{
33
33
  field: z.ZodEnum<["requestedAt", "completedAt", "status", "entity"]>;
34
34
  order: z.ZodEnum<["ASC", "DESC"]>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- field: "entity" | "status" | "requestedAt" | "completedAt";
36
+ field: "status" | "requestedAt" | "completedAt" | "entity";
37
37
  order: "ASC" | "DESC";
38
38
  }, {
39
- field: "entity" | "status" | "requestedAt" | "completedAt";
39
+ field: "status" | "requestedAt" | "completedAt" | "entity";
40
40
  order: "ASC" | "DESC";
41
41
  }>, "many">>>;
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  page: number;
44
44
  limit: number;
45
- entity?: "jobs" | "bookings" | "actives" | "call-history" | "users" | undefined;
46
- status?: "completed" | "cancelled" | "failed" | "pending" | "processing" | undefined;
47
- userId?: string | undefined;
48
- requestedAt?: {
49
- from?: string | null | undefined;
50
- to?: string | null | undefined;
51
- } | null | undefined;
52
45
  sort?: {
53
- field: "entity" | "status" | "requestedAt" | "completedAt";
46
+ field: "status" | "requestedAt" | "completedAt" | "entity";
54
47
  order: "ASC" | "DESC";
55
48
  }[] | null | undefined;
56
- }, {
57
- entity?: "jobs" | "bookings" | "actives" | "call-history" | "users" | undefined;
58
- status?: "completed" | "cancelled" | "failed" | "pending" | "processing" | undefined;
49
+ status?: "pending" | "processing" | "completed" | "failed" | "cancelled" | undefined;
59
50
  userId?: string | undefined;
60
51
  requestedAt?: {
61
52
  from?: string | null | undefined;
62
53
  to?: string | null | undefined;
63
54
  } | null | undefined;
55
+ entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
56
+ }, {
64
57
  sort?: {
65
- field: "entity" | "status" | "requestedAt" | "completedAt";
58
+ field: "status" | "requestedAt" | "completedAt" | "entity";
66
59
  order: "ASC" | "DESC";
67
60
  }[] | null | undefined;
68
61
  page?: number | undefined;
69
62
  limit?: number | undefined;
63
+ status?: "pending" | "processing" | "completed" | "failed" | "cancelled" | undefined;
64
+ userId?: string | undefined;
65
+ requestedAt?: {
66
+ from?: string | null | undefined;
67
+ to?: string | null | undefined;
68
+ } | null | undefined;
69
+ entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
70
70
  }>;
71
71
  export type FilterExportJob = z.infer<typeof FilterExportJobSchema>;
72
72
  export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
@@ -129,61 +129,61 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
129
129
  radius?: number | null | undefined;
130
130
  }>>>;
131
131
  }, "strip", z.ZodTypeAny, {
132
- userId?: string | null | undefined;
133
132
  location?: {
134
133
  postcode?: string | null | undefined;
135
134
  radius?: number | null | undefined;
136
135
  } | null | undefined;
137
136
  tradeId?: string | null | undefined;
138
- clientId?: string | null | undefined;
137
+ userId?: string | null | undefined;
139
138
  companyId?: string | null | undefined;
139
+ clientId?: string | null | undefined;
140
140
  }, {
141
- userId?: string | null | undefined;
142
141
  location?: {
143
142
  postcode?: string | null | undefined;
144
143
  radius?: number | null | undefined;
145
144
  } | null | undefined;
146
145
  tradeId?: string | null | undefined;
147
- clientId?: string | null | undefined;
146
+ userId?: string | null | undefined;
148
147
  companyId?: string | null | undefined;
148
+ clientId?: string | null | undefined;
149
149
  }>>>;
150
150
  sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
151
151
  field: z.ZodEnum<["date", "startDate", "workerName", "status", "hoursWorked", "payRate", "receivedRate", "secondAgent", "collaborationCompany", "collaborationClient", "collaborationAgent", "postcode", "firstAgent", "createdAt", "updatedAt"]>;
152
152
  order: z.ZodEnum<["ASC", "DESC"]>;
153
153
  }, "strip", z.ZodTypeAny, {
154
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "date" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
154
+ field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
155
155
  order: "ASC" | "DESC";
156
156
  }, {
157
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "date" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
157
+ field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
158
158
  order: "ASC" | "DESC";
159
159
  }>, "many">>>;
160
160
  }, "strip", z.ZodTypeAny, {
161
161
  page: number;
162
162
  limit: number;
163
- status?: {
164
- status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
165
- } | null | undefined;
166
163
  sort?: {
167
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "date" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
164
+ field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
168
165
  order: "ASC" | "DESC";
169
166
  }[] | null | undefined;
170
167
  pay?: {
171
168
  minRate?: number | null | undefined;
172
169
  maxRate?: number | null | undefined;
173
170
  } | null | undefined;
174
- date?: {
175
- from?: string | null | undefined;
176
- to?: string | null | undefined;
171
+ status?: {
172
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
177
173
  } | null | undefined;
178
174
  job?: {
179
- userId?: string | null | undefined;
180
175
  location?: {
181
176
  postcode?: string | null | undefined;
182
177
  radius?: number | null | undefined;
183
178
  } | null | undefined;
184
179
  tradeId?: string | null | undefined;
185
- clientId?: string | null | undefined;
180
+ userId?: string | null | undefined;
186
181
  companyId?: string | null | undefined;
182
+ clientId?: string | null | undefined;
183
+ } | null | undefined;
184
+ date?: {
185
+ from?: string | null | undefined;
186
+ to?: string | null | undefined;
187
187
  } | null | undefined;
188
188
  workerName?: {
189
189
  value?: string | undefined;
@@ -191,11 +191,8 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
191
191
  } | null | undefined;
192
192
  agentId?: string | null | undefined;
193
193
  }, {
194
- status?: {
195
- status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
196
- } | null | undefined;
197
194
  sort?: {
198
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "date" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
195
+ field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
199
196
  order: "ASC" | "DESC";
200
197
  }[] | null | undefined;
201
198
  page?: number | undefined;
@@ -204,19 +201,22 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
204
201
  minRate?: number | null | undefined;
205
202
  maxRate?: number | null | undefined;
206
203
  } | null | undefined;
207
- date?: {
208
- from?: string | null | undefined;
209
- to?: string | null | undefined;
204
+ status?: {
205
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
210
206
  } | null | undefined;
211
207
  job?: {
212
- userId?: string | null | undefined;
213
208
  location?: {
214
209
  postcode?: string | null | undefined;
215
210
  radius?: number | null | undefined;
216
211
  } | null | undefined;
217
212
  tradeId?: string | null | undefined;
218
- clientId?: string | null | undefined;
213
+ userId?: string | null | undefined;
219
214
  companyId?: string | null | undefined;
215
+ clientId?: string | null | undefined;
216
+ } | null | undefined;
217
+ date?: {
218
+ from?: string | null | undefined;
219
+ to?: string | null | undefined;
220
220
  } | null | undefined;
221
221
  workerName?: {
222
222
  value?: string | undefined;
@@ -236,7 +236,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
236
236
  }>, "many">>;
237
237
  columns: z.ZodArray<z.ZodString, "many">;
238
238
  }, "strip", z.ZodTypeAny, {
239
- entity: "actives";
240
239
  sort: {
241
240
  field: string;
242
241
  dir: "ASC" | "DESC";
@@ -244,30 +243,30 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
244
243
  filter: {
245
244
  page: number;
246
245
  limit: number;
247
- status?: {
248
- status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
249
- } | null | undefined;
250
246
  sort?: {
251
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "date" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
247
+ field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
252
248
  order: "ASC" | "DESC";
253
249
  }[] | null | undefined;
254
250
  pay?: {
255
251
  minRate?: number | null | undefined;
256
252
  maxRate?: number | null | undefined;
257
253
  } | null | undefined;
258
- date?: {
259
- from?: string | null | undefined;
260
- to?: string | null | undefined;
254
+ status?: {
255
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
261
256
  } | null | undefined;
262
257
  job?: {
263
- userId?: string | null | undefined;
264
258
  location?: {
265
259
  postcode?: string | null | undefined;
266
260
  radius?: number | null | undefined;
267
261
  } | null | undefined;
268
262
  tradeId?: string | null | undefined;
269
- clientId?: string | null | undefined;
263
+ userId?: string | null | undefined;
270
264
  companyId?: string | null | undefined;
265
+ clientId?: string | null | undefined;
266
+ } | null | undefined;
267
+ date?: {
268
+ from?: string | null | undefined;
269
+ to?: string | null | undefined;
271
270
  } | null | undefined;
272
271
  workerName?: {
273
272
  value?: string | undefined;
@@ -275,15 +274,12 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
275
274
  } | null | undefined;
276
275
  agentId?: string | null | undefined;
277
276
  };
277
+ entity: "actives";
278
278
  columns: string[];
279
279
  }, {
280
- entity: "actives";
281
280
  filter: {
282
- status?: {
283
- status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
284
- } | null | undefined;
285
281
  sort?: {
286
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "date" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
282
+ field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
287
283
  order: "ASC" | "DESC";
288
284
  }[] | null | undefined;
289
285
  page?: number | undefined;
@@ -292,19 +288,22 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
292
288
  minRate?: number | null | undefined;
293
289
  maxRate?: number | null | undefined;
294
290
  } | null | undefined;
295
- date?: {
296
- from?: string | null | undefined;
297
- to?: string | null | undefined;
291
+ status?: {
292
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
298
293
  } | null | undefined;
299
294
  job?: {
300
- userId?: string | null | undefined;
301
295
  location?: {
302
296
  postcode?: string | null | undefined;
303
297
  radius?: number | null | undefined;
304
298
  } | null | undefined;
305
299
  tradeId?: string | null | undefined;
306
- clientId?: string | null | undefined;
300
+ userId?: string | null | undefined;
307
301
  companyId?: string | null | undefined;
302
+ clientId?: string | null | undefined;
303
+ } | null | undefined;
304
+ date?: {
305
+ from?: string | null | undefined;
306
+ to?: string | null | undefined;
308
307
  } | null | undefined;
309
308
  workerName?: {
310
309
  value?: string | undefined;
@@ -312,6 +311,7 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
312
311
  } | null | undefined;
313
312
  agentId?: string | null | undefined;
314
313
  };
314
+ entity: "actives";
315
315
  columns: string[];
316
316
  sort?: {
317
317
  field: string;
@@ -348,10 +348,10 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
348
348
  type: z.ZodOptional<z.ZodEnum<["REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "CONFIRMED"]>>;
349
349
  }, "strip", z.ZodTypeAny, {
350
350
  category: "ATTEMPT";
351
- type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
351
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
352
352
  }, {
353
353
  category: "ATTEMPT";
354
- type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
354
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
355
355
  }>, z.ZodObject<{
356
356
  category: z.ZodLiteral<"FAILED_START">;
357
357
  type: z.ZodOptional<z.ZodEnum<["DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION"]>>;
@@ -405,23 +405,23 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
405
405
  radius?: number | null | undefined;
406
406
  }>>>;
407
407
  }, "strip", z.ZodTypeAny, {
408
- userId?: string | null | undefined;
409
408
  location?: {
410
409
  postcode?: string | null | undefined;
411
410
  radius?: number | null | undefined;
412
411
  } | null | undefined;
413
412
  tradeId?: string | null | undefined;
414
- clientId?: string | null | undefined;
413
+ userId?: string | null | undefined;
415
414
  companyId?: string | null | undefined;
415
+ clientId?: string | null | undefined;
416
416
  }, {
417
- userId?: string | null | undefined;
418
417
  location?: {
419
418
  postcode?: string | null | undefined;
420
419
  radius?: number | null | undefined;
421
420
  } | null | undefined;
422
421
  tradeId?: string | null | undefined;
423
- clientId?: string | null | undefined;
422
+ userId?: string | null | undefined;
424
423
  companyId?: string | null | undefined;
424
+ clientId?: string | null | undefined;
425
425
  }>>>;
426
426
  agentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
427
427
  endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -458,18 +458,30 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
458
458
  field: z.ZodEnum<["status", "startDate", "endDate", "workerName", "payRate", "secondAgent", "collaborationCompany", "collaborationClient", "collaborationAgent", "createdAt", "updatedAt"]>;
459
459
  order: z.ZodEnum<["ASC", "DESC"]>;
460
460
  }, "strip", z.ZodTypeAny, {
461
- field: "status" | "updatedAt" | "createdAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
461
+ field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
462
462
  order: "ASC" | "DESC";
463
463
  }, {
464
- field: "status" | "updatedAt" | "createdAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
464
+ field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
465
465
  order: "ASC" | "DESC";
466
466
  }>, "many">>>;
467
467
  }, "strip", z.ZodTypeAny, {
468
468
  page: number;
469
469
  limit: number;
470
+ sort?: {
471
+ field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
472
+ order: "ASC" | "DESC";
473
+ }[] | null | undefined;
474
+ createdAt?: {
475
+ from?: string | null | undefined;
476
+ to?: string | null | undefined;
477
+ } | null | undefined;
478
+ updatedAt?: {
479
+ from?: string | null | undefined;
480
+ to?: string | null | undefined;
481
+ } | null | undefined;
470
482
  status?: {
471
483
  category: "ATTEMPT";
472
- type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
484
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
473
485
  } | {
474
486
  category: "FAILED_START";
475
487
  type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
@@ -483,18 +495,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
483
495
  category: "CANCELLED";
484
496
  type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
485
497
  } | null | undefined;
486
- sort?: {
487
- field: "status" | "updatedAt" | "createdAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
488
- order: "ASC" | "DESC";
489
- }[] | null | undefined;
490
- updatedAt?: {
491
- from?: string | null | undefined;
492
- to?: string | null | undefined;
493
- } | null | undefined;
494
- createdAt?: {
495
- from?: string | null | undefined;
496
- to?: string | null | undefined;
497
- } | null | undefined;
498
498
  startDate?: {
499
499
  from?: string | null | undefined;
500
500
  to?: string | null | undefined;
@@ -504,14 +504,14 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
504
504
  to?: string | null | undefined;
505
505
  } | null | undefined;
506
506
  job?: {
507
- userId?: string | null | undefined;
508
507
  location?: {
509
508
  postcode?: string | null | undefined;
510
509
  radius?: number | null | undefined;
511
510
  } | null | undefined;
512
511
  tradeId?: string | null | undefined;
513
- clientId?: string | null | undefined;
512
+ userId?: string | null | undefined;
514
513
  companyId?: string | null | undefined;
514
+ clientId?: string | null | undefined;
515
515
  } | null | undefined;
516
516
  workerName?: {
517
517
  value?: string | undefined;
@@ -519,9 +519,23 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
519
519
  } | null | undefined;
520
520
  agentId?: string | null | undefined;
521
521
  }, {
522
+ sort?: {
523
+ field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
524
+ order: "ASC" | "DESC";
525
+ }[] | null | undefined;
526
+ createdAt?: {
527
+ from?: string | null | undefined;
528
+ to?: string | null | undefined;
529
+ } | null | undefined;
530
+ updatedAt?: {
531
+ from?: string | null | undefined;
532
+ to?: string | null | undefined;
533
+ } | null | undefined;
534
+ page?: number | undefined;
535
+ limit?: number | undefined;
522
536
  status?: {
523
537
  category: "ATTEMPT";
524
- type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
538
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
525
539
  } | {
526
540
  category: "FAILED_START";
527
541
  type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
@@ -535,20 +549,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
535
549
  category: "CANCELLED";
536
550
  type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
537
551
  } | null | undefined;
538
- sort?: {
539
- field: "status" | "updatedAt" | "createdAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
540
- order: "ASC" | "DESC";
541
- }[] | null | undefined;
542
- page?: number | undefined;
543
- limit?: number | undefined;
544
- updatedAt?: {
545
- from?: string | null | undefined;
546
- to?: string | null | undefined;
547
- } | null | undefined;
548
- createdAt?: {
549
- from?: string | null | undefined;
550
- to?: string | null | undefined;
551
- } | null | undefined;
552
552
  startDate?: {
553
553
  from?: string | null | undefined;
554
554
  to?: string | null | undefined;
@@ -558,14 +558,14 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
558
558
  to?: string | null | undefined;
559
559
  } | null | undefined;
560
560
  job?: {
561
- userId?: string | null | undefined;
562
561
  location?: {
563
562
  postcode?: string | null | undefined;
564
563
  radius?: number | null | undefined;
565
564
  } | null | undefined;
566
565
  tradeId?: string | null | undefined;
567
- clientId?: string | null | undefined;
566
+ userId?: string | null | undefined;
568
567
  companyId?: string | null | undefined;
568
+ clientId?: string | null | undefined;
569
569
  } | null | undefined;
570
570
  workerName?: {
571
571
  value?: string | undefined;
@@ -585,7 +585,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
585
585
  }>, "many">>;
586
586
  columns: z.ZodArray<z.ZodString, "many">;
587
587
  }, "strip", z.ZodTypeAny, {
588
- entity: "bookings";
589
588
  sort: {
590
589
  field: string;
591
590
  dir: "ASC" | "DESC";
@@ -593,9 +592,21 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
593
592
  filter: {
594
593
  page: number;
595
594
  limit: number;
595
+ sort?: {
596
+ field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
597
+ order: "ASC" | "DESC";
598
+ }[] | null | undefined;
599
+ createdAt?: {
600
+ from?: string | null | undefined;
601
+ to?: string | null | undefined;
602
+ } | null | undefined;
603
+ updatedAt?: {
604
+ from?: string | null | undefined;
605
+ to?: string | null | undefined;
606
+ } | null | undefined;
596
607
  status?: {
597
608
  category: "ATTEMPT";
598
- type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
609
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
599
610
  } | {
600
611
  category: "FAILED_START";
601
612
  type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
@@ -609,18 +620,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
609
620
  category: "CANCELLED";
610
621
  type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
611
622
  } | null | undefined;
612
- sort?: {
613
- field: "status" | "updatedAt" | "createdAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
614
- order: "ASC" | "DESC";
615
- }[] | null | undefined;
616
- updatedAt?: {
617
- from?: string | null | undefined;
618
- to?: string | null | undefined;
619
- } | null | undefined;
620
- createdAt?: {
621
- from?: string | null | undefined;
622
- to?: string | null | undefined;
623
- } | null | undefined;
624
623
  startDate?: {
625
624
  from?: string | null | undefined;
626
625
  to?: string | null | undefined;
@@ -630,14 +629,14 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
630
629
  to?: string | null | undefined;
631
630
  } | null | undefined;
632
631
  job?: {
633
- userId?: string | null | undefined;
634
632
  location?: {
635
633
  postcode?: string | null | undefined;
636
634
  radius?: number | null | undefined;
637
635
  } | null | undefined;
638
636
  tradeId?: string | null | undefined;
639
- clientId?: string | null | undefined;
637
+ userId?: string | null | undefined;
640
638
  companyId?: string | null | undefined;
639
+ clientId?: string | null | undefined;
641
640
  } | null | undefined;
642
641
  workerName?: {
643
642
  value?: string | undefined;
@@ -645,13 +644,27 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
645
644
  } | null | undefined;
646
645
  agentId?: string | null | undefined;
647
646
  };
647
+ entity: "bookings";
648
648
  columns: string[];
649
649
  }, {
650
- entity: "bookings";
651
650
  filter: {
651
+ sort?: {
652
+ field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
653
+ order: "ASC" | "DESC";
654
+ }[] | null | undefined;
655
+ createdAt?: {
656
+ from?: string | null | undefined;
657
+ to?: string | null | undefined;
658
+ } | null | undefined;
659
+ updatedAt?: {
660
+ from?: string | null | undefined;
661
+ to?: string | null | undefined;
662
+ } | null | undefined;
663
+ page?: number | undefined;
664
+ limit?: number | undefined;
652
665
  status?: {
653
666
  category: "ATTEMPT";
654
- type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
667
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
655
668
  } | {
656
669
  category: "FAILED_START";
657
670
  type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
@@ -665,20 +678,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
665
678
  category: "CANCELLED";
666
679
  type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
667
680
  } | null | undefined;
668
- sort?: {
669
- field: "status" | "updatedAt" | "createdAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
670
- order: "ASC" | "DESC";
671
- }[] | null | undefined;
672
- page?: number | undefined;
673
- limit?: number | undefined;
674
- updatedAt?: {
675
- from?: string | null | undefined;
676
- to?: string | null | undefined;
677
- } | null | undefined;
678
- createdAt?: {
679
- from?: string | null | undefined;
680
- to?: string | null | undefined;
681
- } | null | undefined;
682
681
  startDate?: {
683
682
  from?: string | null | undefined;
684
683
  to?: string | null | undefined;
@@ -688,14 +687,14 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
688
687
  to?: string | null | undefined;
689
688
  } | null | undefined;
690
689
  job?: {
691
- userId?: string | null | undefined;
692
690
  location?: {
693
691
  postcode?: string | null | undefined;
694
692
  radius?: number | null | undefined;
695
693
  } | null | undefined;
696
694
  tradeId?: string | null | undefined;
697
- clientId?: string | null | undefined;
695
+ userId?: string | null | undefined;
698
696
  companyId?: string | null | undefined;
697
+ clientId?: string | null | undefined;
699
698
  } | null | undefined;
700
699
  workerName?: {
701
700
  value?: string | undefined;
@@ -703,6 +702,7 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
703
702
  } | null | undefined;
704
703
  agentId?: string | null | undefined;
705
704
  };
705
+ entity: "bookings";
706
706
  columns: string[];
707
707
  sort?: {
708
708
  field: string;
@@ -761,37 +761,37 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
761
761
  from?: string | null | undefined;
762
762
  to?: string | null | undefined;
763
763
  } | null | undefined;
764
- companyId?: string | undefined;
765
764
  agentId?: string | undefined;
765
+ phoneNumber?: string | undefined;
766
766
  rating?: {
767
767
  from?: import("../common/call-rating.schema").CallRating | null | undefined;
768
768
  to?: import("../common/call-rating.schema").CallRating | null | undefined;
769
769
  } | null | undefined;
770
770
  callType?: import("../call-history/call-history.contract").CallType | undefined;
771
+ companyId?: string | undefined;
771
772
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
772
773
  leadName?: string | undefined;
773
- phoneNumber?: string | undefined;
774
774
  }, {
775
775
  sort?: {
776
776
  field: import("../call-history/call-history.contract").CallHistorySortableFields;
777
777
  order: "ASC" | "DESC";
778
778
  }[] | null | undefined;
779
- page?: number | undefined;
780
- limit?: number | undefined;
781
779
  createdAt?: {
782
780
  from?: string | null | undefined;
783
781
  to?: string | null | undefined;
784
782
  } | null | undefined;
785
- companyId?: string | undefined;
783
+ page?: number | undefined;
784
+ limit?: number | undefined;
786
785
  agentId?: string | undefined;
786
+ phoneNumber?: string | undefined;
787
787
  rating?: {
788
788
  from?: unknown;
789
789
  to?: unknown;
790
790
  } | null | undefined;
791
791
  callType?: import("../call-history/call-history.contract").CallType | undefined;
792
+ companyId?: string | undefined;
792
793
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
793
794
  leadName?: string | undefined;
794
- phoneNumber?: string | undefined;
795
795
  }>;
796
796
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
797
797
  field: z.ZodString;
@@ -805,7 +805,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
805
805
  }>, "many">>;
806
806
  columns: z.ZodArray<z.ZodString, "many">;
807
807
  }, "strip", z.ZodTypeAny, {
808
- entity: "call-history";
809
808
  sort: {
810
809
  field: string;
811
810
  dir: "ASC" | "DESC";
@@ -821,42 +820,43 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
821
820
  from?: string | null | undefined;
822
821
  to?: string | null | undefined;
823
822
  } | null | undefined;
824
- companyId?: string | undefined;
825
823
  agentId?: string | undefined;
824
+ phoneNumber?: string | undefined;
826
825
  rating?: {
827
826
  from?: import("../common/call-rating.schema").CallRating | null | undefined;
828
827
  to?: import("../common/call-rating.schema").CallRating | null | undefined;
829
828
  } | null | undefined;
830
829
  callType?: import("../call-history/call-history.contract").CallType | undefined;
830
+ companyId?: string | undefined;
831
831
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
832
832
  leadName?: string | undefined;
833
- phoneNumber?: string | undefined;
834
833
  };
834
+ entity: "call-history";
835
835
  columns: string[];
836
836
  }, {
837
- entity: "call-history";
838
837
  filter: {
839
838
  sort?: {
840
839
  field: import("../call-history/call-history.contract").CallHistorySortableFields;
841
840
  order: "ASC" | "DESC";
842
841
  }[] | null | undefined;
843
- page?: number | undefined;
844
- limit?: number | undefined;
845
842
  createdAt?: {
846
843
  from?: string | null | undefined;
847
844
  to?: string | null | undefined;
848
845
  } | null | undefined;
849
- companyId?: string | undefined;
846
+ page?: number | undefined;
847
+ limit?: number | undefined;
850
848
  agentId?: string | undefined;
849
+ phoneNumber?: string | undefined;
851
850
  rating?: {
852
851
  from?: unknown;
853
852
  to?: unknown;
854
853
  } | null | undefined;
855
854
  callType?: import("../call-history/call-history.contract").CallType | undefined;
855
+ companyId?: string | undefined;
856
856
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
857
857
  leadName?: string | undefined;
858
- phoneNumber?: string | undefined;
859
858
  };
859
+ entity: "call-history";
860
860
  columns: string[];
861
861
  sort?: {
862
862
  field: string;
@@ -930,82 +930,82 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
930
930
  field: z.ZodEnum<["description", "numberOfPositions", "status", "tradeId", "collaborationCompany", "collaborationClient", "collaborationAgent", "distance", "postcode", "payRate", "receivedRate", "workHours", "qualificationsCount", "creationSource", "createdAt", "updatedAt", "startDate"]>;
931
931
  order: z.ZodEnum<["ASC", "DESC"]>;
932
932
  }, "strip", z.ZodTypeAny, {
933
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
933
+ field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
934
934
  order: "ASC" | "DESC";
935
935
  }, {
936
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
936
+ field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
937
937
  order: "ASC" | "DESC";
938
938
  }>, "many">>>;
939
939
  }, "strip", z.ZodTypeAny, {
940
940
  page: number;
941
941
  limit: number;
942
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
943
- userId?: string | null | undefined;
942
+ qualificationFilters?: {
943
+ qualificationId?: string | undefined;
944
+ qualificationTypeId?: string | undefined;
945
+ }[] | undefined;
944
946
  sort?: {
945
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
947
+ field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
946
948
  order: "ASC" | "DESC";
947
949
  }[] | null | undefined;
948
- updatedAt?: {
950
+ location?: {
951
+ postcode?: string | null | undefined;
952
+ radius?: number | null | undefined;
953
+ } | null | undefined;
954
+ createdAt?: {
949
955
  from?: string | null | undefined;
950
956
  to?: string | null | undefined;
951
957
  } | null | undefined;
952
- createdAt?: {
958
+ updatedAt?: {
953
959
  from?: string | null | undefined;
954
960
  to?: string | null | undefined;
955
961
  } | null | undefined;
956
962
  description?: string | null | undefined;
957
- location?: {
958
- postcode?: string | null | undefined;
959
- radius?: number | null | undefined;
960
- } | null | undefined;
963
+ tradeId?: string | null | undefined;
961
964
  pay?: {
962
965
  minRate?: number | null | undefined;
963
966
  maxRate?: number | null | undefined;
964
967
  } | null | undefined;
965
- tradeId?: string | null | undefined;
968
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
969
+ userId?: string | null | undefined;
970
+ outreachRequested?: "only_with" | "only_without" | null | undefined;
971
+ companyId?: string | null | undefined;
972
+ clientId?: string | null | undefined;
973
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
974
+ }, {
966
975
  qualificationFilters?: {
967
976
  qualificationId?: string | undefined;
968
977
  qualificationTypeId?: string | undefined;
969
978
  }[] | undefined;
970
- outreachRequested?: "only_with" | "only_without" | null | undefined;
971
- clientId?: string | null | undefined;
972
- companyId?: string | null | undefined;
973
- creationSource?: "BOT" | "MANUAL" | null | undefined;
974
- }, {
975
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
976
- userId?: string | null | undefined;
977
979
  sort?: {
978
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
980
+ field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
979
981
  order: "ASC" | "DESC";
980
982
  }[] | null | undefined;
981
- page?: number | undefined;
982
- limit?: number | undefined;
983
- updatedAt?: {
983
+ location?: {
984
+ postcode?: string | null | undefined;
985
+ radius?: number | null | undefined;
986
+ } | null | undefined;
987
+ createdAt?: {
984
988
  from?: string | null | undefined;
985
989
  to?: string | null | undefined;
986
990
  } | null | undefined;
987
- createdAt?: {
991
+ updatedAt?: {
988
992
  from?: string | null | undefined;
989
993
  to?: string | null | undefined;
990
994
  } | null | undefined;
995
+ page?: number | undefined;
996
+ limit?: number | undefined;
991
997
  description?: string | null | undefined;
992
- location?: {
993
- postcode?: string | null | undefined;
994
- radius?: number | null | undefined;
995
- } | null | undefined;
998
+ tradeId?: string | null | undefined;
996
999
  pay?: {
997
1000
  minRate?: number | null | undefined;
998
1001
  maxRate?: number | null | undefined;
999
1002
  } | null | undefined;
1000
- tradeId?: string | null | undefined;
1001
- qualificationFilters?: {
1002
- qualificationId?: string | undefined;
1003
- qualificationTypeId?: string | undefined;
1004
- }[] | undefined;
1003
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1004
+ userId?: string | null | undefined;
1005
1005
  outreachRequested?: "only_with" | "only_without" | null | undefined;
1006
- clientId?: string | null | undefined;
1007
1006
  companyId?: string | null | undefined;
1008
- creationSource?: "BOT" | "MANUAL" | null | undefined;
1007
+ clientId?: string | null | undefined;
1008
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
1009
1009
  }>;
1010
1010
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
1011
1011
  field: z.ZodString;
@@ -1019,7 +1019,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
1019
1019
  }>, "many">>;
1020
1020
  columns: z.ZodArray<z.ZodString, "many">;
1021
1021
  }, "strip", z.ZodTypeAny, {
1022
- entity: "jobs";
1023
1022
  sort: {
1024
1023
  field: string;
1025
1024
  dir: "ASC" | "DESC";
@@ -1027,78 +1026,79 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
1027
1026
  filter: {
1028
1027
  page: number;
1029
1028
  limit: number;
1030
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1031
- userId?: string | null | undefined;
1029
+ qualificationFilters?: {
1030
+ qualificationId?: string | undefined;
1031
+ qualificationTypeId?: string | undefined;
1032
+ }[] | undefined;
1032
1033
  sort?: {
1033
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
1034
+ field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
1034
1035
  order: "ASC" | "DESC";
1035
1036
  }[] | null | undefined;
1036
- updatedAt?: {
1037
+ location?: {
1038
+ postcode?: string | null | undefined;
1039
+ radius?: number | null | undefined;
1040
+ } | null | undefined;
1041
+ createdAt?: {
1037
1042
  from?: string | null | undefined;
1038
1043
  to?: string | null | undefined;
1039
1044
  } | null | undefined;
1040
- createdAt?: {
1045
+ updatedAt?: {
1041
1046
  from?: string | null | undefined;
1042
1047
  to?: string | null | undefined;
1043
1048
  } | null | undefined;
1044
1049
  description?: string | null | undefined;
1045
- location?: {
1046
- postcode?: string | null | undefined;
1047
- radius?: number | null | undefined;
1048
- } | null | undefined;
1050
+ tradeId?: string | null | undefined;
1049
1051
  pay?: {
1050
1052
  minRate?: number | null | undefined;
1051
1053
  maxRate?: number | null | undefined;
1052
1054
  } | null | undefined;
1053
- tradeId?: string | null | undefined;
1054
- qualificationFilters?: {
1055
- qualificationId?: string | undefined;
1056
- qualificationTypeId?: string | undefined;
1057
- }[] | undefined;
1055
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1056
+ userId?: string | null | undefined;
1058
1057
  outreachRequested?: "only_with" | "only_without" | null | undefined;
1059
- clientId?: string | null | undefined;
1060
1058
  companyId?: string | null | undefined;
1061
- creationSource?: "BOT" | "MANUAL" | null | undefined;
1059
+ clientId?: string | null | undefined;
1060
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
1062
1061
  };
1062
+ entity: "jobs";
1063
1063
  columns: string[];
1064
1064
  }, {
1065
- entity: "jobs";
1066
1065
  filter: {
1067
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1068
- userId?: string | null | undefined;
1066
+ qualificationFilters?: {
1067
+ qualificationId?: string | undefined;
1068
+ qualificationTypeId?: string | undefined;
1069
+ }[] | undefined;
1069
1070
  sort?: {
1070
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
1071
+ field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
1071
1072
  order: "ASC" | "DESC";
1072
1073
  }[] | null | undefined;
1073
- page?: number | undefined;
1074
- limit?: number | undefined;
1075
- updatedAt?: {
1074
+ location?: {
1075
+ postcode?: string | null | undefined;
1076
+ radius?: number | null | undefined;
1077
+ } | null | undefined;
1078
+ createdAt?: {
1076
1079
  from?: string | null | undefined;
1077
1080
  to?: string | null | undefined;
1078
1081
  } | null | undefined;
1079
- createdAt?: {
1082
+ updatedAt?: {
1080
1083
  from?: string | null | undefined;
1081
1084
  to?: string | null | undefined;
1082
1085
  } | null | undefined;
1086
+ page?: number | undefined;
1087
+ limit?: number | undefined;
1083
1088
  description?: string | null | undefined;
1084
- location?: {
1085
- postcode?: string | null | undefined;
1086
- radius?: number | null | undefined;
1087
- } | null | undefined;
1089
+ tradeId?: string | null | undefined;
1088
1090
  pay?: {
1089
1091
  minRate?: number | null | undefined;
1090
1092
  maxRate?: number | null | undefined;
1091
1093
  } | null | undefined;
1092
- tradeId?: string | null | undefined;
1093
- qualificationFilters?: {
1094
- qualificationId?: string | undefined;
1095
- qualificationTypeId?: string | undefined;
1096
- }[] | undefined;
1094
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1095
+ userId?: string | null | undefined;
1097
1096
  outreachRequested?: "only_with" | "only_without" | null | undefined;
1098
- clientId?: string | null | undefined;
1099
1097
  companyId?: string | null | undefined;
1100
- creationSource?: "BOT" | "MANUAL" | null | undefined;
1098
+ clientId?: string | null | undefined;
1099
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
1101
1100
  };
1101
+ entity: "jobs";
1102
1102
  columns: string[];
1103
1103
  sort?: {
1104
1104
  field: string;
@@ -1149,55 +1149,55 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
1149
1149
  field: z.ZodEnum<["lastName", "firstName", "email", "createdAt", "office"]>;
1150
1150
  order: z.ZodEnum<["ASC", "DESC"]>;
1151
1151
  }, "strip", z.ZodTypeAny, {
1152
- field: "createdAt" | "email" | "lastName" | "firstName" | "office";
1152
+ field: "email" | "createdAt" | "lastName" | "firstName" | "office";
1153
1153
  order: "ASC" | "DESC";
1154
1154
  }, {
1155
- field: "createdAt" | "email" | "lastName" | "firstName" | "office";
1155
+ field: "email" | "createdAt" | "lastName" | "firstName" | "office";
1156
1156
  order: "ASC" | "DESC";
1157
1157
  }>, "many">>>;
1158
1158
  }, "strip", z.ZodTypeAny, {
1159
1159
  page: number;
1160
1160
  limit: number;
1161
- status?: "ACTIVE" | "INACTIVE" | undefined;
1161
+ name?: string | undefined;
1162
+ email?: string | undefined;
1163
+ phone?: string | undefined;
1162
1164
  sort?: {
1163
- field: "createdAt" | "email" | "lastName" | "firstName" | "office";
1165
+ field: "email" | "createdAt" | "lastName" | "firstName" | "office";
1164
1166
  order: "ASC" | "DESC";
1165
1167
  }[] | null | undefined;
1166
- name?: string | undefined;
1167
- updatedAt?: {
1168
+ createdAt?: {
1168
1169
  from?: string | null | undefined;
1169
1170
  to?: string | null | undefined;
1170
1171
  } | null | undefined;
1171
- createdAt?: {
1172
+ updatedAt?: {
1172
1173
  from?: string | null | undefined;
1173
1174
  to?: string | null | undefined;
1174
1175
  } | null | undefined;
1175
- phone?: string | undefined;
1176
- email?: string | undefined;
1176
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1177
1177
  roles?: {
1178
1178
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1179
1179
  requireAll?: boolean | undefined;
1180
1180
  } | undefined;
1181
1181
  officeId?: string | undefined;
1182
1182
  }, {
1183
- status?: "ACTIVE" | "INACTIVE" | undefined;
1183
+ name?: string | undefined;
1184
+ email?: string | undefined;
1185
+ phone?: string | undefined;
1184
1186
  sort?: {
1185
- field: "createdAt" | "email" | "lastName" | "firstName" | "office";
1187
+ field: "email" | "createdAt" | "lastName" | "firstName" | "office";
1186
1188
  order: "ASC" | "DESC";
1187
1189
  }[] | null | undefined;
1188
- page?: number | undefined;
1189
- limit?: number | undefined;
1190
- name?: string | undefined;
1191
- updatedAt?: {
1190
+ createdAt?: {
1192
1191
  from?: string | null | undefined;
1193
1192
  to?: string | null | undefined;
1194
1193
  } | null | undefined;
1195
- createdAt?: {
1194
+ updatedAt?: {
1196
1195
  from?: string | null | undefined;
1197
1196
  to?: string | null | undefined;
1198
1197
  } | null | undefined;
1199
- phone?: string | undefined;
1200
- email?: string | undefined;
1198
+ page?: number | undefined;
1199
+ limit?: number | undefined;
1200
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1201
1201
  roles?: {
1202
1202
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1203
1203
  requireAll?: unknown;
@@ -1216,7 +1216,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
1216
1216
  }>, "many">>;
1217
1217
  columns: z.ZodArray<z.ZodString, "many">;
1218
1218
  }, "strip", z.ZodTypeAny, {
1219
- entity: "users";
1220
1219
  sort: {
1221
1220
  field: string;
1222
1221
  dir: "ASC" | "DESC";
@@ -1224,56 +1223,57 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
1224
1223
  filter: {
1225
1224
  page: number;
1226
1225
  limit: number;
1227
- status?: "ACTIVE" | "INACTIVE" | undefined;
1226
+ name?: string | undefined;
1227
+ email?: string | undefined;
1228
+ phone?: string | undefined;
1228
1229
  sort?: {
1229
- field: "createdAt" | "email" | "lastName" | "firstName" | "office";
1230
+ field: "email" | "createdAt" | "lastName" | "firstName" | "office";
1230
1231
  order: "ASC" | "DESC";
1231
1232
  }[] | null | undefined;
1232
- name?: string | undefined;
1233
- updatedAt?: {
1233
+ createdAt?: {
1234
1234
  from?: string | null | undefined;
1235
1235
  to?: string | null | undefined;
1236
1236
  } | null | undefined;
1237
- createdAt?: {
1237
+ updatedAt?: {
1238
1238
  from?: string | null | undefined;
1239
1239
  to?: string | null | undefined;
1240
1240
  } | null | undefined;
1241
- phone?: string | undefined;
1242
- email?: string | undefined;
1241
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1243
1242
  roles?: {
1244
1243
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1245
1244
  requireAll?: boolean | undefined;
1246
1245
  } | undefined;
1247
1246
  officeId?: string | undefined;
1248
1247
  };
1248
+ entity: "users";
1249
1249
  columns: string[];
1250
1250
  }, {
1251
- entity: "users";
1252
1251
  filter: {
1253
- status?: "ACTIVE" | "INACTIVE" | undefined;
1252
+ name?: string | undefined;
1253
+ email?: string | undefined;
1254
+ phone?: string | undefined;
1254
1255
  sort?: {
1255
- field: "createdAt" | "email" | "lastName" | "firstName" | "office";
1256
+ field: "email" | "createdAt" | "lastName" | "firstName" | "office";
1256
1257
  order: "ASC" | "DESC";
1257
1258
  }[] | null | undefined;
1258
- page?: number | undefined;
1259
- limit?: number | undefined;
1260
- name?: string | undefined;
1261
- updatedAt?: {
1259
+ createdAt?: {
1262
1260
  from?: string | null | undefined;
1263
1261
  to?: string | null | undefined;
1264
1262
  } | null | undefined;
1265
- createdAt?: {
1263
+ updatedAt?: {
1266
1264
  from?: string | null | undefined;
1267
1265
  to?: string | null | undefined;
1268
1266
  } | null | undefined;
1269
- phone?: string | undefined;
1270
- email?: string | undefined;
1267
+ page?: number | undefined;
1268
+ limit?: number | undefined;
1269
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1271
1270
  roles?: {
1272
1271
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1273
1272
  requireAll?: unknown;
1274
1273
  } | undefined;
1275
1274
  officeId?: string | undefined;
1276
1275
  };
1276
+ entity: "users";
1277
1277
  columns: string[];
1278
1278
  sort?: {
1279
1279
  field: string;
@@ -1351,15 +1351,18 @@ export declare const ExportJobSchema: z.ZodObject<{
1351
1351
  completedAt: z.ZodNullable<z.ZodString>;
1352
1352
  expiresAt: z.ZodString;
1353
1353
  }, "strip", z.ZodTypeAny, {
1354
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
1355
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
1356
- userId: string;
1357
- requestedAt: string;
1358
1354
  sort: {
1359
1355
  field: string;
1360
1356
  dir: "ASC" | "DESC";
1361
1357
  }[];
1362
1358
  id: string;
1359
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1360
+ userId: string;
1361
+ filter: Record<string, unknown>;
1362
+ requestedAt: string;
1363
+ completedAt: string | null;
1364
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1365
+ columns: string[];
1363
1366
  user: {
1364
1367
  id: string;
1365
1368
  lastName: string;
@@ -1372,22 +1375,22 @@ export declare const ExportJobSchema: z.ZodObject<{
1372
1375
  }[];
1373
1376
  deletedAt?: string | null | undefined;
1374
1377
  } | null;
1375
- filter: Record<string, unknown>;
1376
- expiresAt: string;
1377
- totalRows: number | null;
1378
- errorMessage: string | null;
1379
- completedAt: string | null;
1380
- startedAt: string | null;
1381
- columns: string[];
1382
1378
  rowsProcessed: number;
1383
1379
  rowsSkipped: number;
1380
+ totalRows: number | null;
1384
1381
  byteSize: number | null;
1382
+ errorMessage: string | null;
1383
+ startedAt: string | null;
1384
+ expiresAt: string;
1385
1385
  }, {
1386
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
1387
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
1386
+ id: string;
1387
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1388
1388
  userId: string;
1389
+ filter: Record<string, unknown>;
1389
1390
  requestedAt: string;
1390
- id: string;
1391
+ completedAt: string | null;
1392
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1393
+ columns: string[];
1391
1394
  user: {
1392
1395
  id: string;
1393
1396
  lastName: string;
@@ -1400,16 +1403,13 @@ export declare const ExportJobSchema: z.ZodObject<{
1400
1403
  }[] | undefined;
1401
1404
  deletedAt?: string | Date | null | undefined;
1402
1405
  } | null;
1403
- filter: Record<string, unknown>;
1404
- expiresAt: string;
1405
- totalRows: number | null;
1406
- errorMessage: string | null;
1407
- completedAt: string | null;
1408
- startedAt: string | null;
1409
- columns: string[];
1410
1406
  rowsProcessed: number;
1411
1407
  rowsSkipped: number;
1408
+ totalRows: number | null;
1412
1409
  byteSize: number | null;
1410
+ errorMessage: string | null;
1411
+ startedAt: string | null;
1412
+ expiresAt: string;
1413
1413
  sort?: {
1414
1414
  field: string;
1415
1415
  dir: "ASC" | "DESC";
@@ -1487,15 +1487,18 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1487
1487
  completedAt: z.ZodNullable<z.ZodString>;
1488
1488
  expiresAt: z.ZodString;
1489
1489
  }, "strip", z.ZodTypeAny, {
1490
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
1491
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
1492
- userId: string;
1493
- requestedAt: string;
1494
1490
  sort: {
1495
1491
  field: string;
1496
1492
  dir: "ASC" | "DESC";
1497
1493
  }[];
1498
1494
  id: string;
1495
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1496
+ userId: string;
1497
+ filter: Record<string, unknown>;
1498
+ requestedAt: string;
1499
+ completedAt: string | null;
1500
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1501
+ columns: string[];
1499
1502
  user: {
1500
1503
  id: string;
1501
1504
  lastName: string;
@@ -1508,22 +1511,22 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1508
1511
  }[];
1509
1512
  deletedAt?: string | null | undefined;
1510
1513
  } | null;
1511
- filter: Record<string, unknown>;
1512
- expiresAt: string;
1513
- totalRows: number | null;
1514
- errorMessage: string | null;
1515
- completedAt: string | null;
1516
- startedAt: string | null;
1517
- columns: string[];
1518
1514
  rowsProcessed: number;
1519
1515
  rowsSkipped: number;
1516
+ totalRows: number | null;
1520
1517
  byteSize: number | null;
1518
+ errorMessage: string | null;
1519
+ startedAt: string | null;
1520
+ expiresAt: string;
1521
1521
  }, {
1522
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
1523
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
1522
+ id: string;
1523
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1524
1524
  userId: string;
1525
+ filter: Record<string, unknown>;
1525
1526
  requestedAt: string;
1526
- id: string;
1527
+ completedAt: string | null;
1528
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1529
+ columns: string[];
1527
1530
  user: {
1528
1531
  id: string;
1529
1532
  lastName: string;
@@ -1536,16 +1539,13 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1536
1539
  }[] | undefined;
1537
1540
  deletedAt?: string | Date | null | undefined;
1538
1541
  } | null;
1539
- filter: Record<string, unknown>;
1540
- expiresAt: string;
1541
- totalRows: number | null;
1542
- errorMessage: string | null;
1543
- completedAt: string | null;
1544
- startedAt: string | null;
1545
- columns: string[];
1546
1542
  rowsProcessed: number;
1547
1543
  rowsSkipped: number;
1544
+ totalRows: number | null;
1548
1545
  byteSize: number | null;
1546
+ errorMessage: string | null;
1547
+ startedAt: string | null;
1548
+ expiresAt: string;
1549
1549
  sort?: {
1550
1550
  field: string;
1551
1551
  dir: "ASC" | "DESC";
@@ -1559,15 +1559,18 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1559
1559
  }, "strip", z.ZodTypeAny, {
1560
1560
  limit: number;
1561
1561
  items: {
1562
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
1563
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
1564
- userId: string;
1565
- requestedAt: string;
1566
1562
  sort: {
1567
1563
  field: string;
1568
1564
  dir: "ASC" | "DESC";
1569
1565
  }[];
1570
1566
  id: string;
1567
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1568
+ userId: string;
1569
+ filter: Record<string, unknown>;
1570
+ requestedAt: string;
1571
+ completedAt: string | null;
1572
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1573
+ columns: string[];
1571
1574
  user: {
1572
1575
  id: string;
1573
1576
  lastName: string;
@@ -1580,16 +1583,13 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1580
1583
  }[];
1581
1584
  deletedAt?: string | null | undefined;
1582
1585
  } | null;
1583
- filter: Record<string, unknown>;
1584
- expiresAt: string;
1585
- totalRows: number | null;
1586
- errorMessage: string | null;
1587
- completedAt: string | null;
1588
- startedAt: string | null;
1589
- columns: string[];
1590
1586
  rowsProcessed: number;
1591
1587
  rowsSkipped: number;
1588
+ totalRows: number | null;
1592
1589
  byteSize: number | null;
1590
+ errorMessage: string | null;
1591
+ startedAt: string | null;
1592
+ expiresAt: string;
1593
1593
  }[];
1594
1594
  totalCount: number;
1595
1595
  skip: number;
@@ -1598,11 +1598,14 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1598
1598
  }, {
1599
1599
  limit: number;
1600
1600
  items: {
1601
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
1602
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
1601
+ id: string;
1602
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1603
1603
  userId: string;
1604
+ filter: Record<string, unknown>;
1604
1605
  requestedAt: string;
1605
- id: string;
1606
+ completedAt: string | null;
1607
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1608
+ columns: string[];
1606
1609
  user: {
1607
1610
  id: string;
1608
1611
  lastName: string;
@@ -1615,16 +1618,13 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1615
1618
  }[] | undefined;
1616
1619
  deletedAt?: string | Date | null | undefined;
1617
1620
  } | null;
1618
- filter: Record<string, unknown>;
1619
- expiresAt: string;
1620
- totalRows: number | null;
1621
- errorMessage: string | null;
1622
- completedAt: string | null;
1623
- startedAt: string | null;
1624
- columns: string[];
1625
1621
  rowsProcessed: number;
1626
1622
  rowsSkipped: number;
1623
+ totalRows: number | null;
1627
1624
  byteSize: number | null;
1625
+ errorMessage: string | null;
1626
+ startedAt: string | null;
1627
+ expiresAt: string;
1628
1628
  sort?: {
1629
1629
  field: string;
1630
1630
  dir: "ASC" | "DESC";
@@ -1702,61 +1702,61 @@ export declare const exportJobsContract: {
1702
1702
  radius?: number | null | undefined;
1703
1703
  }>>>;
1704
1704
  }, "strip", z.ZodTypeAny, {
1705
- userId?: string | null | undefined;
1706
1705
  location?: {
1707
1706
  postcode?: string | null | undefined;
1708
1707
  radius?: number | null | undefined;
1709
1708
  } | null | undefined;
1710
1709
  tradeId?: string | null | undefined;
1711
- clientId?: string | null | undefined;
1710
+ userId?: string | null | undefined;
1712
1711
  companyId?: string | null | undefined;
1712
+ clientId?: string | null | undefined;
1713
1713
  }, {
1714
- userId?: string | null | undefined;
1715
1714
  location?: {
1716
1715
  postcode?: string | null | undefined;
1717
1716
  radius?: number | null | undefined;
1718
1717
  } | null | undefined;
1719
1718
  tradeId?: string | null | undefined;
1720
- clientId?: string | null | undefined;
1719
+ userId?: string | null | undefined;
1721
1720
  companyId?: string | null | undefined;
1721
+ clientId?: string | null | undefined;
1722
1722
  }>>>;
1723
1723
  sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1724
1724
  field: z.ZodEnum<["date", "startDate", "workerName", "status", "hoursWorked", "payRate", "receivedRate", "secondAgent", "collaborationCompany", "collaborationClient", "collaborationAgent", "postcode", "firstAgent", "createdAt", "updatedAt"]>;
1725
1725
  order: z.ZodEnum<["ASC", "DESC"]>;
1726
1726
  }, "strip", z.ZodTypeAny, {
1727
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "date" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
1727
+ field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
1728
1728
  order: "ASC" | "DESC";
1729
1729
  }, {
1730
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "date" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
1730
+ field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
1731
1731
  order: "ASC" | "DESC";
1732
1732
  }>, "many">>>;
1733
1733
  }, "strip", z.ZodTypeAny, {
1734
1734
  page: number;
1735
1735
  limit: number;
1736
- status?: {
1737
- status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1738
- } | null | undefined;
1739
1736
  sort?: {
1740
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "date" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
1737
+ field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
1741
1738
  order: "ASC" | "DESC";
1742
1739
  }[] | null | undefined;
1743
1740
  pay?: {
1744
1741
  minRate?: number | null | undefined;
1745
1742
  maxRate?: number | null | undefined;
1746
1743
  } | null | undefined;
1747
- date?: {
1748
- from?: string | null | undefined;
1749
- to?: string | null | undefined;
1744
+ status?: {
1745
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1750
1746
  } | null | undefined;
1751
1747
  job?: {
1752
- userId?: string | null | undefined;
1753
1748
  location?: {
1754
1749
  postcode?: string | null | undefined;
1755
1750
  radius?: number | null | undefined;
1756
1751
  } | null | undefined;
1757
1752
  tradeId?: string | null | undefined;
1758
- clientId?: string | null | undefined;
1753
+ userId?: string | null | undefined;
1759
1754
  companyId?: string | null | undefined;
1755
+ clientId?: string | null | undefined;
1756
+ } | null | undefined;
1757
+ date?: {
1758
+ from?: string | null | undefined;
1759
+ to?: string | null | undefined;
1760
1760
  } | null | undefined;
1761
1761
  workerName?: {
1762
1762
  value?: string | undefined;
@@ -1764,11 +1764,8 @@ export declare const exportJobsContract: {
1764
1764
  } | null | undefined;
1765
1765
  agentId?: string | null | undefined;
1766
1766
  }, {
1767
- status?: {
1768
- status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1769
- } | null | undefined;
1770
1767
  sort?: {
1771
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "date" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
1768
+ field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
1772
1769
  order: "ASC" | "DESC";
1773
1770
  }[] | null | undefined;
1774
1771
  page?: number | undefined;
@@ -1777,19 +1774,22 @@ export declare const exportJobsContract: {
1777
1774
  minRate?: number | null | undefined;
1778
1775
  maxRate?: number | null | undefined;
1779
1776
  } | null | undefined;
1780
- date?: {
1781
- from?: string | null | undefined;
1782
- to?: string | null | undefined;
1777
+ status?: {
1778
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1783
1779
  } | null | undefined;
1784
1780
  job?: {
1785
- userId?: string | null | undefined;
1786
1781
  location?: {
1787
1782
  postcode?: string | null | undefined;
1788
1783
  radius?: number | null | undefined;
1789
1784
  } | null | undefined;
1790
1785
  tradeId?: string | null | undefined;
1791
- clientId?: string | null | undefined;
1786
+ userId?: string | null | undefined;
1792
1787
  companyId?: string | null | undefined;
1788
+ clientId?: string | null | undefined;
1789
+ } | null | undefined;
1790
+ date?: {
1791
+ from?: string | null | undefined;
1792
+ to?: string | null | undefined;
1793
1793
  } | null | undefined;
1794
1794
  workerName?: {
1795
1795
  value?: string | undefined;
@@ -1809,7 +1809,6 @@ export declare const exportJobsContract: {
1809
1809
  }>, "many">>;
1810
1810
  columns: z.ZodArray<z.ZodString, "many">;
1811
1811
  }, "strip", z.ZodTypeAny, {
1812
- entity: "actives";
1813
1812
  sort: {
1814
1813
  field: string;
1815
1814
  dir: "ASC" | "DESC";
@@ -1817,30 +1816,30 @@ export declare const exportJobsContract: {
1817
1816
  filter: {
1818
1817
  page: number;
1819
1818
  limit: number;
1820
- status?: {
1821
- status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1822
- } | null | undefined;
1823
1819
  sort?: {
1824
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "date" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
1820
+ field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
1825
1821
  order: "ASC" | "DESC";
1826
1822
  }[] | null | undefined;
1827
1823
  pay?: {
1828
1824
  minRate?: number | null | undefined;
1829
1825
  maxRate?: number | null | undefined;
1830
1826
  } | null | undefined;
1831
- date?: {
1832
- from?: string | null | undefined;
1833
- to?: string | null | undefined;
1827
+ status?: {
1828
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1834
1829
  } | null | undefined;
1835
1830
  job?: {
1836
- userId?: string | null | undefined;
1837
1831
  location?: {
1838
1832
  postcode?: string | null | undefined;
1839
1833
  radius?: number | null | undefined;
1840
1834
  } | null | undefined;
1841
1835
  tradeId?: string | null | undefined;
1842
- clientId?: string | null | undefined;
1836
+ userId?: string | null | undefined;
1843
1837
  companyId?: string | null | undefined;
1838
+ clientId?: string | null | undefined;
1839
+ } | null | undefined;
1840
+ date?: {
1841
+ from?: string | null | undefined;
1842
+ to?: string | null | undefined;
1844
1843
  } | null | undefined;
1845
1844
  workerName?: {
1846
1845
  value?: string | undefined;
@@ -1848,15 +1847,12 @@ export declare const exportJobsContract: {
1848
1847
  } | null | undefined;
1849
1848
  agentId?: string | null | undefined;
1850
1849
  };
1850
+ entity: "actives";
1851
1851
  columns: string[];
1852
1852
  }, {
1853
- entity: "actives";
1854
1853
  filter: {
1855
- status?: {
1856
- status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1857
- } | null | undefined;
1858
1854
  sort?: {
1859
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "date" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
1855
+ field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
1860
1856
  order: "ASC" | "DESC";
1861
1857
  }[] | null | undefined;
1862
1858
  page?: number | undefined;
@@ -1865,19 +1861,22 @@ export declare const exportJobsContract: {
1865
1861
  minRate?: number | null | undefined;
1866
1862
  maxRate?: number | null | undefined;
1867
1863
  } | null | undefined;
1868
- date?: {
1869
- from?: string | null | undefined;
1870
- to?: string | null | undefined;
1864
+ status?: {
1865
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1871
1866
  } | null | undefined;
1872
1867
  job?: {
1873
- userId?: string | null | undefined;
1874
1868
  location?: {
1875
1869
  postcode?: string | null | undefined;
1876
1870
  radius?: number | null | undefined;
1877
1871
  } | null | undefined;
1878
1872
  tradeId?: string | null | undefined;
1879
- clientId?: string | null | undefined;
1873
+ userId?: string | null | undefined;
1880
1874
  companyId?: string | null | undefined;
1875
+ clientId?: string | null | undefined;
1876
+ } | null | undefined;
1877
+ date?: {
1878
+ from?: string | null | undefined;
1879
+ to?: string | null | undefined;
1881
1880
  } | null | undefined;
1882
1881
  workerName?: {
1883
1882
  value?: string | undefined;
@@ -1885,6 +1884,7 @@ export declare const exportJobsContract: {
1885
1884
  } | null | undefined;
1886
1885
  agentId?: string | null | undefined;
1887
1886
  };
1887
+ entity: "actives";
1888
1888
  columns: string[];
1889
1889
  sort?: {
1890
1890
  field: string;
@@ -1921,10 +1921,10 @@ export declare const exportJobsContract: {
1921
1921
  type: z.ZodOptional<z.ZodEnum<["REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "CONFIRMED"]>>;
1922
1922
  }, "strip", z.ZodTypeAny, {
1923
1923
  category: "ATTEMPT";
1924
- type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
1924
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
1925
1925
  }, {
1926
1926
  category: "ATTEMPT";
1927
- type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
1927
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
1928
1928
  }>, z.ZodObject<{
1929
1929
  category: z.ZodLiteral<"FAILED_START">;
1930
1930
  type: z.ZodOptional<z.ZodEnum<["DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION"]>>;
@@ -1978,23 +1978,23 @@ export declare const exportJobsContract: {
1978
1978
  radius?: number | null | undefined;
1979
1979
  }>>>;
1980
1980
  }, "strip", z.ZodTypeAny, {
1981
- userId?: string | null | undefined;
1982
1981
  location?: {
1983
1982
  postcode?: string | null | undefined;
1984
1983
  radius?: number | null | undefined;
1985
1984
  } | null | undefined;
1986
1985
  tradeId?: string | null | undefined;
1987
- clientId?: string | null | undefined;
1986
+ userId?: string | null | undefined;
1988
1987
  companyId?: string | null | undefined;
1988
+ clientId?: string | null | undefined;
1989
1989
  }, {
1990
- userId?: string | null | undefined;
1991
1990
  location?: {
1992
1991
  postcode?: string | null | undefined;
1993
1992
  radius?: number | null | undefined;
1994
1993
  } | null | undefined;
1995
1994
  tradeId?: string | null | undefined;
1996
- clientId?: string | null | undefined;
1995
+ userId?: string | null | undefined;
1997
1996
  companyId?: string | null | undefined;
1997
+ clientId?: string | null | undefined;
1998
1998
  }>>>;
1999
1999
  agentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2000
2000
  endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -2031,18 +2031,30 @@ export declare const exportJobsContract: {
2031
2031
  field: z.ZodEnum<["status", "startDate", "endDate", "workerName", "payRate", "secondAgent", "collaborationCompany", "collaborationClient", "collaborationAgent", "createdAt", "updatedAt"]>;
2032
2032
  order: z.ZodEnum<["ASC", "DESC"]>;
2033
2033
  }, "strip", z.ZodTypeAny, {
2034
- field: "status" | "updatedAt" | "createdAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
2034
+ field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
2035
2035
  order: "ASC" | "DESC";
2036
2036
  }, {
2037
- field: "status" | "updatedAt" | "createdAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
2037
+ field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
2038
2038
  order: "ASC" | "DESC";
2039
2039
  }>, "many">>>;
2040
2040
  }, "strip", z.ZodTypeAny, {
2041
2041
  page: number;
2042
2042
  limit: number;
2043
+ sort?: {
2044
+ field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
2045
+ order: "ASC" | "DESC";
2046
+ }[] | null | undefined;
2047
+ createdAt?: {
2048
+ from?: string | null | undefined;
2049
+ to?: string | null | undefined;
2050
+ } | null | undefined;
2051
+ updatedAt?: {
2052
+ from?: string | null | undefined;
2053
+ to?: string | null | undefined;
2054
+ } | null | undefined;
2043
2055
  status?: {
2044
2056
  category: "ATTEMPT";
2045
- type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
2057
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
2046
2058
  } | {
2047
2059
  category: "FAILED_START";
2048
2060
  type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
@@ -2056,18 +2068,6 @@ export declare const exportJobsContract: {
2056
2068
  category: "CANCELLED";
2057
2069
  type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
2058
2070
  } | null | undefined;
2059
- sort?: {
2060
- field: "status" | "updatedAt" | "createdAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
2061
- order: "ASC" | "DESC";
2062
- }[] | null | undefined;
2063
- updatedAt?: {
2064
- from?: string | null | undefined;
2065
- to?: string | null | undefined;
2066
- } | null | undefined;
2067
- createdAt?: {
2068
- from?: string | null | undefined;
2069
- to?: string | null | undefined;
2070
- } | null | undefined;
2071
2071
  startDate?: {
2072
2072
  from?: string | null | undefined;
2073
2073
  to?: string | null | undefined;
@@ -2077,14 +2077,14 @@ export declare const exportJobsContract: {
2077
2077
  to?: string | null | undefined;
2078
2078
  } | null | undefined;
2079
2079
  job?: {
2080
- userId?: string | null | undefined;
2081
2080
  location?: {
2082
2081
  postcode?: string | null | undefined;
2083
2082
  radius?: number | null | undefined;
2084
2083
  } | null | undefined;
2085
2084
  tradeId?: string | null | undefined;
2086
- clientId?: string | null | undefined;
2085
+ userId?: string | null | undefined;
2087
2086
  companyId?: string | null | undefined;
2087
+ clientId?: string | null | undefined;
2088
2088
  } | null | undefined;
2089
2089
  workerName?: {
2090
2090
  value?: string | undefined;
@@ -2092,9 +2092,23 @@ export declare const exportJobsContract: {
2092
2092
  } | null | undefined;
2093
2093
  agentId?: string | null | undefined;
2094
2094
  }, {
2095
+ sort?: {
2096
+ field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
2097
+ order: "ASC" | "DESC";
2098
+ }[] | null | undefined;
2099
+ createdAt?: {
2100
+ from?: string | null | undefined;
2101
+ to?: string | null | undefined;
2102
+ } | null | undefined;
2103
+ updatedAt?: {
2104
+ from?: string | null | undefined;
2105
+ to?: string | null | undefined;
2106
+ } | null | undefined;
2107
+ page?: number | undefined;
2108
+ limit?: number | undefined;
2095
2109
  status?: {
2096
2110
  category: "ATTEMPT";
2097
- type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
2111
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
2098
2112
  } | {
2099
2113
  category: "FAILED_START";
2100
2114
  type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
@@ -2108,20 +2122,6 @@ export declare const exportJobsContract: {
2108
2122
  category: "CANCELLED";
2109
2123
  type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
2110
2124
  } | null | undefined;
2111
- sort?: {
2112
- field: "status" | "updatedAt" | "createdAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
2113
- order: "ASC" | "DESC";
2114
- }[] | null | undefined;
2115
- page?: number | undefined;
2116
- limit?: number | undefined;
2117
- updatedAt?: {
2118
- from?: string | null | undefined;
2119
- to?: string | null | undefined;
2120
- } | null | undefined;
2121
- createdAt?: {
2122
- from?: string | null | undefined;
2123
- to?: string | null | undefined;
2124
- } | null | undefined;
2125
2125
  startDate?: {
2126
2126
  from?: string | null | undefined;
2127
2127
  to?: string | null | undefined;
@@ -2131,14 +2131,14 @@ export declare const exportJobsContract: {
2131
2131
  to?: string | null | undefined;
2132
2132
  } | null | undefined;
2133
2133
  job?: {
2134
- userId?: string | null | undefined;
2135
2134
  location?: {
2136
2135
  postcode?: string | null | undefined;
2137
2136
  radius?: number | null | undefined;
2138
2137
  } | null | undefined;
2139
2138
  tradeId?: string | null | undefined;
2140
- clientId?: string | null | undefined;
2139
+ userId?: string | null | undefined;
2141
2140
  companyId?: string | null | undefined;
2141
+ clientId?: string | null | undefined;
2142
2142
  } | null | undefined;
2143
2143
  workerName?: {
2144
2144
  value?: string | undefined;
@@ -2158,7 +2158,6 @@ export declare const exportJobsContract: {
2158
2158
  }>, "many">>;
2159
2159
  columns: z.ZodArray<z.ZodString, "many">;
2160
2160
  }, "strip", z.ZodTypeAny, {
2161
- entity: "bookings";
2162
2161
  sort: {
2163
2162
  field: string;
2164
2163
  dir: "ASC" | "DESC";
@@ -2166,9 +2165,21 @@ export declare const exportJobsContract: {
2166
2165
  filter: {
2167
2166
  page: number;
2168
2167
  limit: number;
2168
+ sort?: {
2169
+ field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
2170
+ order: "ASC" | "DESC";
2171
+ }[] | null | undefined;
2172
+ createdAt?: {
2173
+ from?: string | null | undefined;
2174
+ to?: string | null | undefined;
2175
+ } | null | undefined;
2176
+ updatedAt?: {
2177
+ from?: string | null | undefined;
2178
+ to?: string | null | undefined;
2179
+ } | null | undefined;
2169
2180
  status?: {
2170
2181
  category: "ATTEMPT";
2171
- type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
2182
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
2172
2183
  } | {
2173
2184
  category: "FAILED_START";
2174
2185
  type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
@@ -2182,18 +2193,6 @@ export declare const exportJobsContract: {
2182
2193
  category: "CANCELLED";
2183
2194
  type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
2184
2195
  } | null | undefined;
2185
- sort?: {
2186
- field: "status" | "updatedAt" | "createdAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
2187
- order: "ASC" | "DESC";
2188
- }[] | null | undefined;
2189
- updatedAt?: {
2190
- from?: string | null | undefined;
2191
- to?: string | null | undefined;
2192
- } | null | undefined;
2193
- createdAt?: {
2194
- from?: string | null | undefined;
2195
- to?: string | null | undefined;
2196
- } | null | undefined;
2197
2196
  startDate?: {
2198
2197
  from?: string | null | undefined;
2199
2198
  to?: string | null | undefined;
@@ -2203,14 +2202,14 @@ export declare const exportJobsContract: {
2203
2202
  to?: string | null | undefined;
2204
2203
  } | null | undefined;
2205
2204
  job?: {
2206
- userId?: string | null | undefined;
2207
2205
  location?: {
2208
2206
  postcode?: string | null | undefined;
2209
2207
  radius?: number | null | undefined;
2210
2208
  } | null | undefined;
2211
2209
  tradeId?: string | null | undefined;
2212
- clientId?: string | null | undefined;
2210
+ userId?: string | null | undefined;
2213
2211
  companyId?: string | null | undefined;
2212
+ clientId?: string | null | undefined;
2214
2213
  } | null | undefined;
2215
2214
  workerName?: {
2216
2215
  value?: string | undefined;
@@ -2218,13 +2217,27 @@ export declare const exportJobsContract: {
2218
2217
  } | null | undefined;
2219
2218
  agentId?: string | null | undefined;
2220
2219
  };
2220
+ entity: "bookings";
2221
2221
  columns: string[];
2222
2222
  }, {
2223
- entity: "bookings";
2224
2223
  filter: {
2224
+ sort?: {
2225
+ field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
2226
+ order: "ASC" | "DESC";
2227
+ }[] | null | undefined;
2228
+ createdAt?: {
2229
+ from?: string | null | undefined;
2230
+ to?: string | null | undefined;
2231
+ } | null | undefined;
2232
+ updatedAt?: {
2233
+ from?: string | null | undefined;
2234
+ to?: string | null | undefined;
2235
+ } | null | undefined;
2236
+ page?: number | undefined;
2237
+ limit?: number | undefined;
2225
2238
  status?: {
2226
2239
  category: "ATTEMPT";
2227
- type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
2240
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
2228
2241
  } | {
2229
2242
  category: "FAILED_START";
2230
2243
  type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
@@ -2238,20 +2251,6 @@ export declare const exportJobsContract: {
2238
2251
  category: "CANCELLED";
2239
2252
  type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
2240
2253
  } | null | undefined;
2241
- sort?: {
2242
- field: "status" | "updatedAt" | "createdAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
2243
- order: "ASC" | "DESC";
2244
- }[] | null | undefined;
2245
- page?: number | undefined;
2246
- limit?: number | undefined;
2247
- updatedAt?: {
2248
- from?: string | null | undefined;
2249
- to?: string | null | undefined;
2250
- } | null | undefined;
2251
- createdAt?: {
2252
- from?: string | null | undefined;
2253
- to?: string | null | undefined;
2254
- } | null | undefined;
2255
2254
  startDate?: {
2256
2255
  from?: string | null | undefined;
2257
2256
  to?: string | null | undefined;
@@ -2261,14 +2260,14 @@ export declare const exportJobsContract: {
2261
2260
  to?: string | null | undefined;
2262
2261
  } | null | undefined;
2263
2262
  job?: {
2264
- userId?: string | null | undefined;
2265
2263
  location?: {
2266
2264
  postcode?: string | null | undefined;
2267
2265
  radius?: number | null | undefined;
2268
2266
  } | null | undefined;
2269
2267
  tradeId?: string | null | undefined;
2270
- clientId?: string | null | undefined;
2268
+ userId?: string | null | undefined;
2271
2269
  companyId?: string | null | undefined;
2270
+ clientId?: string | null | undefined;
2272
2271
  } | null | undefined;
2273
2272
  workerName?: {
2274
2273
  value?: string | undefined;
@@ -2276,6 +2275,7 @@ export declare const exportJobsContract: {
2276
2275
  } | null | undefined;
2277
2276
  agentId?: string | null | undefined;
2278
2277
  };
2278
+ entity: "bookings";
2279
2279
  columns: string[];
2280
2280
  sort?: {
2281
2281
  field: string;
@@ -2334,37 +2334,37 @@ export declare const exportJobsContract: {
2334
2334
  from?: string | null | undefined;
2335
2335
  to?: string | null | undefined;
2336
2336
  } | null | undefined;
2337
- companyId?: string | undefined;
2338
2337
  agentId?: string | undefined;
2338
+ phoneNumber?: string | undefined;
2339
2339
  rating?: {
2340
2340
  from?: import("../common/call-rating.schema").CallRating | null | undefined;
2341
2341
  to?: import("../common/call-rating.schema").CallRating | null | undefined;
2342
2342
  } | null | undefined;
2343
2343
  callType?: import("../call-history/call-history.contract").CallType | undefined;
2344
+ companyId?: string | undefined;
2344
2345
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
2345
2346
  leadName?: string | undefined;
2346
- phoneNumber?: string | undefined;
2347
2347
  }, {
2348
2348
  sort?: {
2349
2349
  field: import("../call-history/call-history.contract").CallHistorySortableFields;
2350
2350
  order: "ASC" | "DESC";
2351
2351
  }[] | null | undefined;
2352
- page?: number | undefined;
2353
- limit?: number | undefined;
2354
2352
  createdAt?: {
2355
2353
  from?: string | null | undefined;
2356
2354
  to?: string | null | undefined;
2357
2355
  } | null | undefined;
2358
- companyId?: string | undefined;
2356
+ page?: number | undefined;
2357
+ limit?: number | undefined;
2359
2358
  agentId?: string | undefined;
2359
+ phoneNumber?: string | undefined;
2360
2360
  rating?: {
2361
2361
  from?: unknown;
2362
2362
  to?: unknown;
2363
2363
  } | null | undefined;
2364
2364
  callType?: import("../call-history/call-history.contract").CallType | undefined;
2365
+ companyId?: string | undefined;
2365
2366
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
2366
2367
  leadName?: string | undefined;
2367
- phoneNumber?: string | undefined;
2368
2368
  }>;
2369
2369
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
2370
2370
  field: z.ZodString;
@@ -2378,7 +2378,6 @@ export declare const exportJobsContract: {
2378
2378
  }>, "many">>;
2379
2379
  columns: z.ZodArray<z.ZodString, "many">;
2380
2380
  }, "strip", z.ZodTypeAny, {
2381
- entity: "call-history";
2382
2381
  sort: {
2383
2382
  field: string;
2384
2383
  dir: "ASC" | "DESC";
@@ -2394,42 +2393,43 @@ export declare const exportJobsContract: {
2394
2393
  from?: string | null | undefined;
2395
2394
  to?: string | null | undefined;
2396
2395
  } | null | undefined;
2397
- companyId?: string | undefined;
2398
2396
  agentId?: string | undefined;
2397
+ phoneNumber?: string | undefined;
2399
2398
  rating?: {
2400
2399
  from?: import("../common/call-rating.schema").CallRating | null | undefined;
2401
2400
  to?: import("../common/call-rating.schema").CallRating | null | undefined;
2402
2401
  } | null | undefined;
2403
2402
  callType?: import("../call-history/call-history.contract").CallType | undefined;
2403
+ companyId?: string | undefined;
2404
2404
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
2405
2405
  leadName?: string | undefined;
2406
- phoneNumber?: string | undefined;
2407
2406
  };
2407
+ entity: "call-history";
2408
2408
  columns: string[];
2409
2409
  }, {
2410
- entity: "call-history";
2411
2410
  filter: {
2412
2411
  sort?: {
2413
2412
  field: import("../call-history/call-history.contract").CallHistorySortableFields;
2414
2413
  order: "ASC" | "DESC";
2415
2414
  }[] | null | undefined;
2416
- page?: number | undefined;
2417
- limit?: number | undefined;
2418
2415
  createdAt?: {
2419
2416
  from?: string | null | undefined;
2420
2417
  to?: string | null | undefined;
2421
2418
  } | null | undefined;
2422
- companyId?: string | undefined;
2419
+ page?: number | undefined;
2420
+ limit?: number | undefined;
2423
2421
  agentId?: string | undefined;
2422
+ phoneNumber?: string | undefined;
2424
2423
  rating?: {
2425
2424
  from?: unknown;
2426
2425
  to?: unknown;
2427
2426
  } | null | undefined;
2428
2427
  callType?: import("../call-history/call-history.contract").CallType | undefined;
2428
+ companyId?: string | undefined;
2429
2429
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
2430
2430
  leadName?: string | undefined;
2431
- phoneNumber?: string | undefined;
2432
2431
  };
2432
+ entity: "call-history";
2433
2433
  columns: string[];
2434
2434
  sort?: {
2435
2435
  field: string;
@@ -2503,82 +2503,82 @@ export declare const exportJobsContract: {
2503
2503
  field: z.ZodEnum<["description", "numberOfPositions", "status", "tradeId", "collaborationCompany", "collaborationClient", "collaborationAgent", "distance", "postcode", "payRate", "receivedRate", "workHours", "qualificationsCount", "creationSource", "createdAt", "updatedAt", "startDate"]>;
2504
2504
  order: z.ZodEnum<["ASC", "DESC"]>;
2505
2505
  }, "strip", z.ZodTypeAny, {
2506
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2506
+ field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2507
2507
  order: "ASC" | "DESC";
2508
2508
  }, {
2509
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2509
+ field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2510
2510
  order: "ASC" | "DESC";
2511
2511
  }>, "many">>>;
2512
2512
  }, "strip", z.ZodTypeAny, {
2513
2513
  page: number;
2514
2514
  limit: number;
2515
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2516
- userId?: string | null | undefined;
2515
+ qualificationFilters?: {
2516
+ qualificationId?: string | undefined;
2517
+ qualificationTypeId?: string | undefined;
2518
+ }[] | undefined;
2517
2519
  sort?: {
2518
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2520
+ field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2519
2521
  order: "ASC" | "DESC";
2520
2522
  }[] | null | undefined;
2521
- updatedAt?: {
2523
+ location?: {
2524
+ postcode?: string | null | undefined;
2525
+ radius?: number | null | undefined;
2526
+ } | null | undefined;
2527
+ createdAt?: {
2522
2528
  from?: string | null | undefined;
2523
2529
  to?: string | null | undefined;
2524
2530
  } | null | undefined;
2525
- createdAt?: {
2531
+ updatedAt?: {
2526
2532
  from?: string | null | undefined;
2527
2533
  to?: string | null | undefined;
2528
2534
  } | null | undefined;
2529
2535
  description?: string | null | undefined;
2530
- location?: {
2531
- postcode?: string | null | undefined;
2532
- radius?: number | null | undefined;
2533
- } | null | undefined;
2536
+ tradeId?: string | null | undefined;
2534
2537
  pay?: {
2535
2538
  minRate?: number | null | undefined;
2536
2539
  maxRate?: number | null | undefined;
2537
2540
  } | null | undefined;
2538
- tradeId?: string | null | undefined;
2541
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2542
+ userId?: string | null | undefined;
2543
+ outreachRequested?: "only_with" | "only_without" | null | undefined;
2544
+ companyId?: string | null | undefined;
2545
+ clientId?: string | null | undefined;
2546
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
2547
+ }, {
2539
2548
  qualificationFilters?: {
2540
2549
  qualificationId?: string | undefined;
2541
2550
  qualificationTypeId?: string | undefined;
2542
2551
  }[] | undefined;
2543
- outreachRequested?: "only_with" | "only_without" | null | undefined;
2544
- clientId?: string | null | undefined;
2545
- companyId?: string | null | undefined;
2546
- creationSource?: "BOT" | "MANUAL" | null | undefined;
2547
- }, {
2548
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2549
- userId?: string | null | undefined;
2550
2552
  sort?: {
2551
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2553
+ field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2552
2554
  order: "ASC" | "DESC";
2553
2555
  }[] | null | undefined;
2554
- page?: number | undefined;
2555
- limit?: number | undefined;
2556
- updatedAt?: {
2556
+ location?: {
2557
+ postcode?: string | null | undefined;
2558
+ radius?: number | null | undefined;
2559
+ } | null | undefined;
2560
+ createdAt?: {
2557
2561
  from?: string | null | undefined;
2558
2562
  to?: string | null | undefined;
2559
2563
  } | null | undefined;
2560
- createdAt?: {
2564
+ updatedAt?: {
2561
2565
  from?: string | null | undefined;
2562
2566
  to?: string | null | undefined;
2563
2567
  } | null | undefined;
2568
+ page?: number | undefined;
2569
+ limit?: number | undefined;
2564
2570
  description?: string | null | undefined;
2565
- location?: {
2566
- postcode?: string | null | undefined;
2567
- radius?: number | null | undefined;
2568
- } | null | undefined;
2571
+ tradeId?: string | null | undefined;
2569
2572
  pay?: {
2570
2573
  minRate?: number | null | undefined;
2571
2574
  maxRate?: number | null | undefined;
2572
2575
  } | null | undefined;
2573
- tradeId?: string | null | undefined;
2574
- qualificationFilters?: {
2575
- qualificationId?: string | undefined;
2576
- qualificationTypeId?: string | undefined;
2577
- }[] | undefined;
2576
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2577
+ userId?: string | null | undefined;
2578
2578
  outreachRequested?: "only_with" | "only_without" | null | undefined;
2579
- clientId?: string | null | undefined;
2580
2579
  companyId?: string | null | undefined;
2581
- creationSource?: "BOT" | "MANUAL" | null | undefined;
2580
+ clientId?: string | null | undefined;
2581
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
2582
2582
  }>;
2583
2583
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
2584
2584
  field: z.ZodString;
@@ -2592,7 +2592,6 @@ export declare const exportJobsContract: {
2592
2592
  }>, "many">>;
2593
2593
  columns: z.ZodArray<z.ZodString, "many">;
2594
2594
  }, "strip", z.ZodTypeAny, {
2595
- entity: "jobs";
2596
2595
  sort: {
2597
2596
  field: string;
2598
2597
  dir: "ASC" | "DESC";
@@ -2600,78 +2599,79 @@ export declare const exportJobsContract: {
2600
2599
  filter: {
2601
2600
  page: number;
2602
2601
  limit: number;
2603
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2604
- userId?: string | null | undefined;
2602
+ qualificationFilters?: {
2603
+ qualificationId?: string | undefined;
2604
+ qualificationTypeId?: string | undefined;
2605
+ }[] | undefined;
2605
2606
  sort?: {
2606
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2607
+ field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2607
2608
  order: "ASC" | "DESC";
2608
2609
  }[] | null | undefined;
2609
- updatedAt?: {
2610
+ location?: {
2611
+ postcode?: string | null | undefined;
2612
+ radius?: number | null | undefined;
2613
+ } | null | undefined;
2614
+ createdAt?: {
2610
2615
  from?: string | null | undefined;
2611
2616
  to?: string | null | undefined;
2612
2617
  } | null | undefined;
2613
- createdAt?: {
2618
+ updatedAt?: {
2614
2619
  from?: string | null | undefined;
2615
2620
  to?: string | null | undefined;
2616
2621
  } | null | undefined;
2617
2622
  description?: string | null | undefined;
2618
- location?: {
2619
- postcode?: string | null | undefined;
2620
- radius?: number | null | undefined;
2621
- } | null | undefined;
2623
+ tradeId?: string | null | undefined;
2622
2624
  pay?: {
2623
2625
  minRate?: number | null | undefined;
2624
2626
  maxRate?: number | null | undefined;
2625
2627
  } | null | undefined;
2626
- tradeId?: string | null | undefined;
2627
- qualificationFilters?: {
2628
- qualificationId?: string | undefined;
2629
- qualificationTypeId?: string | undefined;
2630
- }[] | undefined;
2628
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2629
+ userId?: string | null | undefined;
2631
2630
  outreachRequested?: "only_with" | "only_without" | null | undefined;
2632
- clientId?: string | null | undefined;
2633
2631
  companyId?: string | null | undefined;
2634
- creationSource?: "BOT" | "MANUAL" | null | undefined;
2632
+ clientId?: string | null | undefined;
2633
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
2635
2634
  };
2635
+ entity: "jobs";
2636
2636
  columns: string[];
2637
2637
  }, {
2638
- entity: "jobs";
2639
2638
  filter: {
2640
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2641
- userId?: string | null | undefined;
2639
+ qualificationFilters?: {
2640
+ qualificationId?: string | undefined;
2641
+ qualificationTypeId?: string | undefined;
2642
+ }[] | undefined;
2642
2643
  sort?: {
2643
- field: "status" | "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2644
+ field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2644
2645
  order: "ASC" | "DESC";
2645
2646
  }[] | null | undefined;
2646
- page?: number | undefined;
2647
- limit?: number | undefined;
2648
- updatedAt?: {
2649
- from?: string | null | undefined;
2650
- to?: string | null | undefined;
2647
+ location?: {
2648
+ postcode?: string | null | undefined;
2649
+ radius?: number | null | undefined;
2651
2650
  } | null | undefined;
2652
2651
  createdAt?: {
2653
2652
  from?: string | null | undefined;
2654
2653
  to?: string | null | undefined;
2655
2654
  } | null | undefined;
2656
- description?: string | null | undefined;
2657
- location?: {
2658
- postcode?: string | null | undefined;
2659
- radius?: number | null | undefined;
2655
+ updatedAt?: {
2656
+ from?: string | null | undefined;
2657
+ to?: string | null | undefined;
2660
2658
  } | null | undefined;
2659
+ page?: number | undefined;
2660
+ limit?: number | undefined;
2661
+ description?: string | null | undefined;
2662
+ tradeId?: string | null | undefined;
2661
2663
  pay?: {
2662
2664
  minRate?: number | null | undefined;
2663
2665
  maxRate?: number | null | undefined;
2664
2666
  } | null | undefined;
2665
- tradeId?: string | null | undefined;
2666
- qualificationFilters?: {
2667
- qualificationId?: string | undefined;
2668
- qualificationTypeId?: string | undefined;
2669
- }[] | undefined;
2667
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2668
+ userId?: string | null | undefined;
2670
2669
  outreachRequested?: "only_with" | "only_without" | null | undefined;
2671
- clientId?: string | null | undefined;
2672
2670
  companyId?: string | null | undefined;
2673
- creationSource?: "BOT" | "MANUAL" | null | undefined;
2671
+ clientId?: string | null | undefined;
2672
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
2674
2673
  };
2674
+ entity: "jobs";
2675
2675
  columns: string[];
2676
2676
  sort?: {
2677
2677
  field: string;
@@ -2722,55 +2722,55 @@ export declare const exportJobsContract: {
2722
2722
  field: z.ZodEnum<["lastName", "firstName", "email", "createdAt", "office"]>;
2723
2723
  order: z.ZodEnum<["ASC", "DESC"]>;
2724
2724
  }, "strip", z.ZodTypeAny, {
2725
- field: "createdAt" | "email" | "lastName" | "firstName" | "office";
2725
+ field: "email" | "createdAt" | "lastName" | "firstName" | "office";
2726
2726
  order: "ASC" | "DESC";
2727
2727
  }, {
2728
- field: "createdAt" | "email" | "lastName" | "firstName" | "office";
2728
+ field: "email" | "createdAt" | "lastName" | "firstName" | "office";
2729
2729
  order: "ASC" | "DESC";
2730
2730
  }>, "many">>>;
2731
2731
  }, "strip", z.ZodTypeAny, {
2732
2732
  page: number;
2733
2733
  limit: number;
2734
- status?: "ACTIVE" | "INACTIVE" | undefined;
2734
+ name?: string | undefined;
2735
+ email?: string | undefined;
2736
+ phone?: string | undefined;
2735
2737
  sort?: {
2736
- field: "createdAt" | "email" | "lastName" | "firstName" | "office";
2738
+ field: "email" | "createdAt" | "lastName" | "firstName" | "office";
2737
2739
  order: "ASC" | "DESC";
2738
2740
  }[] | null | undefined;
2739
- name?: string | undefined;
2740
- updatedAt?: {
2741
+ createdAt?: {
2741
2742
  from?: string | null | undefined;
2742
2743
  to?: string | null | undefined;
2743
2744
  } | null | undefined;
2744
- createdAt?: {
2745
+ updatedAt?: {
2745
2746
  from?: string | null | undefined;
2746
2747
  to?: string | null | undefined;
2747
2748
  } | null | undefined;
2748
- phone?: string | undefined;
2749
- email?: string | undefined;
2749
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2750
2750
  roles?: {
2751
2751
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2752
2752
  requireAll?: boolean | undefined;
2753
2753
  } | undefined;
2754
2754
  officeId?: string | undefined;
2755
2755
  }, {
2756
- status?: "ACTIVE" | "INACTIVE" | undefined;
2756
+ name?: string | undefined;
2757
+ email?: string | undefined;
2758
+ phone?: string | undefined;
2757
2759
  sort?: {
2758
- field: "createdAt" | "email" | "lastName" | "firstName" | "office";
2760
+ field: "email" | "createdAt" | "lastName" | "firstName" | "office";
2759
2761
  order: "ASC" | "DESC";
2760
2762
  }[] | null | undefined;
2761
- page?: number | undefined;
2762
- limit?: number | undefined;
2763
- name?: string | undefined;
2764
- updatedAt?: {
2763
+ createdAt?: {
2765
2764
  from?: string | null | undefined;
2766
2765
  to?: string | null | undefined;
2767
2766
  } | null | undefined;
2768
- createdAt?: {
2767
+ updatedAt?: {
2769
2768
  from?: string | null | undefined;
2770
2769
  to?: string | null | undefined;
2771
2770
  } | null | undefined;
2772
- phone?: string | undefined;
2773
- email?: string | undefined;
2771
+ page?: number | undefined;
2772
+ limit?: number | undefined;
2773
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2774
2774
  roles?: {
2775
2775
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2776
2776
  requireAll?: unknown;
@@ -2789,7 +2789,6 @@ export declare const exportJobsContract: {
2789
2789
  }>, "many">>;
2790
2790
  columns: z.ZodArray<z.ZodString, "many">;
2791
2791
  }, "strip", z.ZodTypeAny, {
2792
- entity: "users";
2793
2792
  sort: {
2794
2793
  field: string;
2795
2794
  dir: "ASC" | "DESC";
@@ -2797,56 +2796,57 @@ export declare const exportJobsContract: {
2797
2796
  filter: {
2798
2797
  page: number;
2799
2798
  limit: number;
2800
- status?: "ACTIVE" | "INACTIVE" | undefined;
2799
+ name?: string | undefined;
2800
+ email?: string | undefined;
2801
+ phone?: string | undefined;
2801
2802
  sort?: {
2802
- field: "createdAt" | "email" | "lastName" | "firstName" | "office";
2803
+ field: "email" | "createdAt" | "lastName" | "firstName" | "office";
2803
2804
  order: "ASC" | "DESC";
2804
2805
  }[] | null | undefined;
2805
- name?: string | undefined;
2806
- updatedAt?: {
2806
+ createdAt?: {
2807
2807
  from?: string | null | undefined;
2808
2808
  to?: string | null | undefined;
2809
2809
  } | null | undefined;
2810
- createdAt?: {
2810
+ updatedAt?: {
2811
2811
  from?: string | null | undefined;
2812
2812
  to?: string | null | undefined;
2813
2813
  } | null | undefined;
2814
- phone?: string | undefined;
2815
- email?: string | undefined;
2814
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2816
2815
  roles?: {
2817
2816
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2818
2817
  requireAll?: boolean | undefined;
2819
2818
  } | undefined;
2820
2819
  officeId?: string | undefined;
2821
2820
  };
2821
+ entity: "users";
2822
2822
  columns: string[];
2823
2823
  }, {
2824
- entity: "users";
2825
2824
  filter: {
2826
- status?: "ACTIVE" | "INACTIVE" | undefined;
2825
+ name?: string | undefined;
2826
+ email?: string | undefined;
2827
+ phone?: string | undefined;
2827
2828
  sort?: {
2828
- field: "createdAt" | "email" | "lastName" | "firstName" | "office";
2829
+ field: "email" | "createdAt" | "lastName" | "firstName" | "office";
2829
2830
  order: "ASC" | "DESC";
2830
2831
  }[] | null | undefined;
2831
- page?: number | undefined;
2832
- limit?: number | undefined;
2833
- name?: string | undefined;
2834
- updatedAt?: {
2832
+ createdAt?: {
2835
2833
  from?: string | null | undefined;
2836
2834
  to?: string | null | undefined;
2837
2835
  } | null | undefined;
2838
- createdAt?: {
2836
+ updatedAt?: {
2839
2837
  from?: string | null | undefined;
2840
2838
  to?: string | null | undefined;
2841
2839
  } | null | undefined;
2842
- phone?: string | undefined;
2843
- email?: string | undefined;
2840
+ page?: number | undefined;
2841
+ limit?: number | undefined;
2842
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2844
2843
  roles?: {
2845
2844
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2846
2845
  requireAll?: unknown;
2847
2846
  } | undefined;
2848
2847
  officeId?: string | undefined;
2849
2848
  };
2849
+ entity: "users";
2850
2850
  columns: string[];
2851
2851
  sort?: {
2852
2852
  field: string;
@@ -2926,15 +2926,18 @@ export declare const exportJobsContract: {
2926
2926
  completedAt: z.ZodNullable<z.ZodString>;
2927
2927
  expiresAt: z.ZodString;
2928
2928
  }, "strip", z.ZodTypeAny, {
2929
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
2930
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
2931
- userId: string;
2932
- requestedAt: string;
2933
2929
  sort: {
2934
2930
  field: string;
2935
2931
  dir: "ASC" | "DESC";
2936
2932
  }[];
2937
2933
  id: string;
2934
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
2935
+ userId: string;
2936
+ filter: Record<string, unknown>;
2937
+ requestedAt: string;
2938
+ completedAt: string | null;
2939
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
2940
+ columns: string[];
2938
2941
  user: {
2939
2942
  id: string;
2940
2943
  lastName: string;
@@ -2947,22 +2950,22 @@ export declare const exportJobsContract: {
2947
2950
  }[];
2948
2951
  deletedAt?: string | null | undefined;
2949
2952
  } | null;
2950
- filter: Record<string, unknown>;
2951
- expiresAt: string;
2952
- totalRows: number | null;
2953
- errorMessage: string | null;
2954
- completedAt: string | null;
2955
- startedAt: string | null;
2956
- columns: string[];
2957
2953
  rowsProcessed: number;
2958
2954
  rowsSkipped: number;
2955
+ totalRows: number | null;
2959
2956
  byteSize: number | null;
2957
+ errorMessage: string | null;
2958
+ startedAt: string | null;
2959
+ expiresAt: string;
2960
2960
  }, {
2961
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
2962
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
2961
+ id: string;
2962
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
2963
2963
  userId: string;
2964
+ filter: Record<string, unknown>;
2964
2965
  requestedAt: string;
2965
- id: string;
2966
+ completedAt: string | null;
2967
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
2968
+ columns: string[];
2966
2969
  user: {
2967
2970
  id: string;
2968
2971
  lastName: string;
@@ -2975,16 +2978,13 @@ export declare const exportJobsContract: {
2975
2978
  }[] | undefined;
2976
2979
  deletedAt?: string | Date | null | undefined;
2977
2980
  } | null;
2978
- filter: Record<string, unknown>;
2979
- expiresAt: string;
2980
- totalRows: number | null;
2981
- errorMessage: string | null;
2982
- completedAt: string | null;
2983
- startedAt: string | null;
2984
- columns: string[];
2985
2981
  rowsProcessed: number;
2986
2982
  rowsSkipped: number;
2983
+ totalRows: number | null;
2987
2984
  byteSize: number | null;
2985
+ errorMessage: string | null;
2986
+ startedAt: string | null;
2987
+ expiresAt: string;
2988
2988
  sort?: {
2989
2989
  field: string;
2990
2990
  dir: "ASC" | "DESC";
@@ -3028,40 +3028,40 @@ export declare const exportJobsContract: {
3028
3028
  field: z.ZodEnum<["requestedAt", "completedAt", "status", "entity"]>;
3029
3029
  order: z.ZodEnum<["ASC", "DESC"]>;
3030
3030
  }, "strip", z.ZodTypeAny, {
3031
- field: "entity" | "status" | "requestedAt" | "completedAt";
3031
+ field: "status" | "requestedAt" | "completedAt" | "entity";
3032
3032
  order: "ASC" | "DESC";
3033
3033
  }, {
3034
- field: "entity" | "status" | "requestedAt" | "completedAt";
3034
+ field: "status" | "requestedAt" | "completedAt" | "entity";
3035
3035
  order: "ASC" | "DESC";
3036
3036
  }>, "many">>>;
3037
3037
  }, "strip", z.ZodTypeAny, {
3038
3038
  page: number;
3039
3039
  limit: number;
3040
- entity?: "jobs" | "bookings" | "actives" | "call-history" | "users" | undefined;
3041
- status?: "completed" | "cancelled" | "failed" | "pending" | "processing" | undefined;
3042
- userId?: string | undefined;
3043
- requestedAt?: {
3044
- from?: string | null | undefined;
3045
- to?: string | null | undefined;
3046
- } | null | undefined;
3047
3040
  sort?: {
3048
- field: "entity" | "status" | "requestedAt" | "completedAt";
3041
+ field: "status" | "requestedAt" | "completedAt" | "entity";
3049
3042
  order: "ASC" | "DESC";
3050
3043
  }[] | null | undefined;
3051
- }, {
3052
- entity?: "jobs" | "bookings" | "actives" | "call-history" | "users" | undefined;
3053
- status?: "completed" | "cancelled" | "failed" | "pending" | "processing" | undefined;
3044
+ status?: "pending" | "processing" | "completed" | "failed" | "cancelled" | undefined;
3054
3045
  userId?: string | undefined;
3055
3046
  requestedAt?: {
3056
3047
  from?: string | null | undefined;
3057
3048
  to?: string | null | undefined;
3058
3049
  } | null | undefined;
3050
+ entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
3051
+ }, {
3059
3052
  sort?: {
3060
- field: "entity" | "status" | "requestedAt" | "completedAt";
3053
+ field: "status" | "requestedAt" | "completedAt" | "entity";
3061
3054
  order: "ASC" | "DESC";
3062
3055
  }[] | null | undefined;
3063
3056
  page?: number | undefined;
3064
3057
  limit?: number | undefined;
3058
+ status?: "pending" | "processing" | "completed" | "failed" | "cancelled" | undefined;
3059
+ userId?: string | undefined;
3060
+ requestedAt?: {
3061
+ from?: string | null | undefined;
3062
+ to?: string | null | undefined;
3063
+ } | null | undefined;
3064
+ entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
3065
3065
  }>;
3066
3066
  summary: "List export jobs the caller is allowed to see";
3067
3067
  method: "GET";
@@ -3139,15 +3139,18 @@ export declare const exportJobsContract: {
3139
3139
  completedAt: z.ZodNullable<z.ZodString>;
3140
3140
  expiresAt: z.ZodString;
3141
3141
  }, "strip", z.ZodTypeAny, {
3142
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
3143
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
3144
- userId: string;
3145
- requestedAt: string;
3146
3142
  sort: {
3147
3143
  field: string;
3148
3144
  dir: "ASC" | "DESC";
3149
3145
  }[];
3150
3146
  id: string;
3147
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3148
+ userId: string;
3149
+ filter: Record<string, unknown>;
3150
+ requestedAt: string;
3151
+ completedAt: string | null;
3152
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3153
+ columns: string[];
3151
3154
  user: {
3152
3155
  id: string;
3153
3156
  lastName: string;
@@ -3160,22 +3163,22 @@ export declare const exportJobsContract: {
3160
3163
  }[];
3161
3164
  deletedAt?: string | null | undefined;
3162
3165
  } | null;
3163
- filter: Record<string, unknown>;
3164
- expiresAt: string;
3165
- totalRows: number | null;
3166
- errorMessage: string | null;
3167
- completedAt: string | null;
3168
- startedAt: string | null;
3169
- columns: string[];
3170
3166
  rowsProcessed: number;
3171
3167
  rowsSkipped: number;
3168
+ totalRows: number | null;
3172
3169
  byteSize: number | null;
3170
+ errorMessage: string | null;
3171
+ startedAt: string | null;
3172
+ expiresAt: string;
3173
3173
  }, {
3174
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
3175
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
3174
+ id: string;
3175
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3176
3176
  userId: string;
3177
+ filter: Record<string, unknown>;
3177
3178
  requestedAt: string;
3178
- id: string;
3179
+ completedAt: string | null;
3180
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3181
+ columns: string[];
3179
3182
  user: {
3180
3183
  id: string;
3181
3184
  lastName: string;
@@ -3188,16 +3191,13 @@ export declare const exportJobsContract: {
3188
3191
  }[] | undefined;
3189
3192
  deletedAt?: string | Date | null | undefined;
3190
3193
  } | null;
3191
- filter: Record<string, unknown>;
3192
- expiresAt: string;
3193
- totalRows: number | null;
3194
- errorMessage: string | null;
3195
- completedAt: string | null;
3196
- startedAt: string | null;
3197
- columns: string[];
3198
3194
  rowsProcessed: number;
3199
3195
  rowsSkipped: number;
3196
+ totalRows: number | null;
3200
3197
  byteSize: number | null;
3198
+ errorMessage: string | null;
3199
+ startedAt: string | null;
3200
+ expiresAt: string;
3201
3201
  sort?: {
3202
3202
  field: string;
3203
3203
  dir: "ASC" | "DESC";
@@ -3211,15 +3211,18 @@ export declare const exportJobsContract: {
3211
3211
  }, "strip", z.ZodTypeAny, {
3212
3212
  limit: number;
3213
3213
  items: {
3214
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
3215
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
3216
- userId: string;
3217
- requestedAt: string;
3218
3214
  sort: {
3219
3215
  field: string;
3220
3216
  dir: "ASC" | "DESC";
3221
3217
  }[];
3222
3218
  id: string;
3219
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3220
+ userId: string;
3221
+ filter: Record<string, unknown>;
3222
+ requestedAt: string;
3223
+ completedAt: string | null;
3224
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3225
+ columns: string[];
3223
3226
  user: {
3224
3227
  id: string;
3225
3228
  lastName: string;
@@ -3232,16 +3235,13 @@ export declare const exportJobsContract: {
3232
3235
  }[];
3233
3236
  deletedAt?: string | null | undefined;
3234
3237
  } | null;
3235
- filter: Record<string, unknown>;
3236
- expiresAt: string;
3237
- totalRows: number | null;
3238
- errorMessage: string | null;
3239
- completedAt: string | null;
3240
- startedAt: string | null;
3241
- columns: string[];
3242
3238
  rowsProcessed: number;
3243
3239
  rowsSkipped: number;
3240
+ totalRows: number | null;
3244
3241
  byteSize: number | null;
3242
+ errorMessage: string | null;
3243
+ startedAt: string | null;
3244
+ expiresAt: string;
3245
3245
  }[];
3246
3246
  totalCount: number;
3247
3247
  skip: number;
@@ -3250,11 +3250,14 @@ export declare const exportJobsContract: {
3250
3250
  }, {
3251
3251
  limit: number;
3252
3252
  items: {
3253
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
3254
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
3253
+ id: string;
3254
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3255
3255
  userId: string;
3256
+ filter: Record<string, unknown>;
3256
3257
  requestedAt: string;
3257
- id: string;
3258
+ completedAt: string | null;
3259
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3260
+ columns: string[];
3258
3261
  user: {
3259
3262
  id: string;
3260
3263
  lastName: string;
@@ -3267,16 +3270,13 @@ export declare const exportJobsContract: {
3267
3270
  }[] | undefined;
3268
3271
  deletedAt?: string | Date | null | undefined;
3269
3272
  } | null;
3270
- filter: Record<string, unknown>;
3271
- expiresAt: string;
3272
- totalRows: number | null;
3273
- errorMessage: string | null;
3274
- completedAt: string | null;
3275
- startedAt: string | null;
3276
- columns: string[];
3277
3273
  rowsProcessed: number;
3278
3274
  rowsSkipped: number;
3275
+ totalRows: number | null;
3279
3276
  byteSize: number | null;
3277
+ errorMessage: string | null;
3278
+ startedAt: string | null;
3279
+ expiresAt: string;
3280
3280
  sort?: {
3281
3281
  field: string;
3282
3282
  dir: "ASC" | "DESC";
@@ -3372,15 +3372,18 @@ export declare const exportJobsContract: {
3372
3372
  completedAt: z.ZodNullable<z.ZodString>;
3373
3373
  expiresAt: z.ZodString;
3374
3374
  }, "strip", z.ZodTypeAny, {
3375
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
3376
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
3377
- userId: string;
3378
- requestedAt: string;
3379
3375
  sort: {
3380
3376
  field: string;
3381
3377
  dir: "ASC" | "DESC";
3382
3378
  }[];
3383
3379
  id: string;
3380
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3381
+ userId: string;
3382
+ filter: Record<string, unknown>;
3383
+ requestedAt: string;
3384
+ completedAt: string | null;
3385
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3386
+ columns: string[];
3384
3387
  user: {
3385
3388
  id: string;
3386
3389
  lastName: string;
@@ -3393,22 +3396,22 @@ export declare const exportJobsContract: {
3393
3396
  }[];
3394
3397
  deletedAt?: string | null | undefined;
3395
3398
  } | null;
3396
- filter: Record<string, unknown>;
3397
- expiresAt: string;
3398
- totalRows: number | null;
3399
- errorMessage: string | null;
3400
- completedAt: string | null;
3401
- startedAt: string | null;
3402
- columns: string[];
3403
3399
  rowsProcessed: number;
3404
3400
  rowsSkipped: number;
3401
+ totalRows: number | null;
3405
3402
  byteSize: number | null;
3403
+ errorMessage: string | null;
3404
+ startedAt: string | null;
3405
+ expiresAt: string;
3406
3406
  }, {
3407
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
3408
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
3407
+ id: string;
3408
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3409
3409
  userId: string;
3410
+ filter: Record<string, unknown>;
3410
3411
  requestedAt: string;
3411
- id: string;
3412
+ completedAt: string | null;
3413
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3414
+ columns: string[];
3412
3415
  user: {
3413
3416
  id: string;
3414
3417
  lastName: string;
@@ -3421,16 +3424,13 @@ export declare const exportJobsContract: {
3421
3424
  }[] | undefined;
3422
3425
  deletedAt?: string | Date | null | undefined;
3423
3426
  } | null;
3424
- filter: Record<string, unknown>;
3425
- expiresAt: string;
3426
- totalRows: number | null;
3427
- errorMessage: string | null;
3428
- completedAt: string | null;
3429
- startedAt: string | null;
3430
- columns: string[];
3431
3427
  rowsProcessed: number;
3432
3428
  rowsSkipped: number;
3429
+ totalRows: number | null;
3433
3430
  byteSize: number | null;
3431
+ errorMessage: string | null;
3432
+ startedAt: string | null;
3433
+ expiresAt: string;
3434
3434
  sort?: {
3435
3435
  field: string;
3436
3436
  dir: "ASC" | "DESC";
@@ -3529,15 +3529,18 @@ export declare const exportJobsContract: {
3529
3529
  completedAt: z.ZodNullable<z.ZodString>;
3530
3530
  expiresAt: z.ZodString;
3531
3531
  }, "strip", z.ZodTypeAny, {
3532
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
3533
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
3534
- userId: string;
3535
- requestedAt: string;
3536
3532
  sort: {
3537
3533
  field: string;
3538
3534
  dir: "ASC" | "DESC";
3539
3535
  }[];
3540
3536
  id: string;
3537
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3538
+ userId: string;
3539
+ filter: Record<string, unknown>;
3540
+ requestedAt: string;
3541
+ completedAt: string | null;
3542
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3543
+ columns: string[];
3541
3544
  user: {
3542
3545
  id: string;
3543
3546
  lastName: string;
@@ -3550,22 +3553,22 @@ export declare const exportJobsContract: {
3550
3553
  }[];
3551
3554
  deletedAt?: string | null | undefined;
3552
3555
  } | null;
3553
- filter: Record<string, unknown>;
3554
- expiresAt: string;
3555
- totalRows: number | null;
3556
- errorMessage: string | null;
3557
- completedAt: string | null;
3558
- startedAt: string | null;
3559
- columns: string[];
3560
3556
  rowsProcessed: number;
3561
3557
  rowsSkipped: number;
3558
+ totalRows: number | null;
3562
3559
  byteSize: number | null;
3560
+ errorMessage: string | null;
3561
+ startedAt: string | null;
3562
+ expiresAt: string;
3563
3563
  }, {
3564
- entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
3565
- status: "completed" | "cancelled" | "failed" | "pending" | "processing";
3564
+ id: string;
3565
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3566
3566
  userId: string;
3567
+ filter: Record<string, unknown>;
3567
3568
  requestedAt: string;
3568
- id: string;
3569
+ completedAt: string | null;
3570
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3571
+ columns: string[];
3569
3572
  user: {
3570
3573
  id: string;
3571
3574
  lastName: string;
@@ -3578,16 +3581,13 @@ export declare const exportJobsContract: {
3578
3581
  }[] | undefined;
3579
3582
  deletedAt?: string | Date | null | undefined;
3580
3583
  } | null;
3581
- filter: Record<string, unknown>;
3582
- expiresAt: string;
3583
- totalRows: number | null;
3584
- errorMessage: string | null;
3585
- completedAt: string | null;
3586
- startedAt: string | null;
3587
- columns: string[];
3588
3584
  rowsProcessed: number;
3589
3585
  rowsSkipped: number;
3586
+ totalRows: number | null;
3590
3587
  byteSize: number | null;
3588
+ errorMessage: string | null;
3589
+ startedAt: string | null;
3590
+ expiresAt: string;
3591
3591
  sort?: {
3592
3592
  field: string;
3593
3593
  dir: "ASC" | "DESC";