@dakkitor/api-contracts 1.9.1 → 1.9.3

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 (111) hide show
  1. package/dist/abilities/abilities.contract.d.ts +28 -1
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +31 -1
  4. package/dist/abilities/abilities.contract.spec.js +52 -3
  5. package/dist/abilities/admin-dashboard.abilities.test.js +1 -0
  6. package/dist/abilities/automatic-caller.abilities.json +1 -0
  7. package/dist/abilities/first-agent.abilities.json +14 -0
  8. package/dist/abilities/interconnection.abilities.json +17 -1
  9. package/dist/abilities/office-manager.abilities.json +4 -0
  10. package/dist/abilities/second-agent.abilities.json +32 -1
  11. package/dist/abilities/worker-curator.abilities.json +17 -1
  12. package/dist/actives/actives.contract.d.ts +7200 -6919
  13. package/dist/actives/actives.contract.d.ts.map +1 -1
  14. package/dist/agent-client-links/agent-client-links.contract.d.ts +137 -137
  15. package/dist/auth/auth.contract.d.ts +85 -85
  16. package/dist/bookings/backdate-guard.spec.js +24 -32
  17. package/dist/bookings/bookings.contract.d.ts +10542 -10116
  18. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  19. package/dist/bookings/bookings.contract.js +2 -16
  20. package/dist/call-history/call-history.contract.d.ts +315 -140
  21. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  22. package/dist/calls-feed/calls-feed.contract.d.ts +39 -6
  23. package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
  24. package/dist/candidate-calling/candidate-calling.contract.d.ts +9230 -4114
  25. package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -1
  26. package/dist/candidate-calling/candidate-calling.contract.js +362 -16
  27. package/dist/candidate-calling/candidate-calling.contract.spec.js +164 -0
  28. package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts +10 -0
  29. package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts.map +1 -0
  30. package/dist/candidate-calling/candidate-dialpad-call.schemas.js +33 -0
  31. package/dist/client-contacts/client-contacts.contract.d.ts +622 -622
  32. package/dist/clients/clients.contract.d.ts +289 -289
  33. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +601 -601
  34. package/dist/collaborations/collaborations.contract.d.ts +538 -538
  35. package/dist/common/callback-slots.d.ts +4 -0
  36. package/dist/common/callback-slots.d.ts.map +1 -0
  37. package/dist/common/callback-slots.js +20 -0
  38. package/dist/common/common-schemas.d.ts +10 -4
  39. package/dist/common/common-schemas.d.ts.map +1 -1
  40. package/dist/common/common-schemas.js +6 -0
  41. package/dist/companies/companies.contract.d.ts +120 -120
  42. package/dist/crews/crews.contract.d.ts +278 -278
  43. package/dist/cron-executions/cron-executions.contract.d.ts +238 -238
  44. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2154 -1296
  45. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
  46. package/dist/curated-worker-leads/candidate-coordination.contract.js +36 -3
  47. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +300 -300
  48. package/dist/curated-worker-leads/contact-history.spec.js +86 -0
  49. package/dist/curated-worker-leads/job-candidate-cards.spec.js +19 -0
  50. package/dist/curated-worker-leads/job-candidates.spec.js +179 -0
  51. package/dist/curated-worker-leads/jobs-tab.contract.d.ts +8598 -2519
  52. package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
  53. package/dist/curated-worker-leads/jobs-tab.contract.js +126 -1
  54. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +110 -110
  55. package/dist/curated-workers/curated-workers.contract.d.ts +1213 -1131
  56. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  57. package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts +2 -0
  58. package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts.map +1 -0
  59. package/dist/dashboards/dashboard-widgets.contact-history.spec.js +160 -0
  60. package/dist/dashboards/dashboard-widgets.contract.d.ts +1278 -535
  61. package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
  62. package/dist/dashboards/dashboard-widgets.contract.js +46 -1
  63. package/dist/dashboards/dashboard.contract.d.ts +8 -8
  64. package/dist/document-intake/document-intake.contract.d.ts +1145 -1145
  65. package/dist/export-jobs/export-jobs.contract.d.ts +663 -663
  66. package/dist/exports-events/exports-events.schemas.d.ts +2 -2
  67. package/dist/index.d.ts +1 -0
  68. package/dist/index.d.ts.map +1 -1
  69. package/dist/index.js +1 -0
  70. package/dist/jobs/jobs.contract.d.ts +5586 -3381
  71. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  72. package/dist/jobs/jobs.contract.js +95 -2
  73. package/dist/jobs/jobs.contract.spec.js +231 -1
  74. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +123 -123
  75. package/dist/lead-assignments/lead-assignments.contract.d.ts +1897 -122
  76. package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
  77. package/dist/lead-assignments/lead-assignments.contract.js +102 -2
  78. package/dist/lead-assignments/lead-assignments.contract.spec.d.ts +2 -0
  79. package/dist/lead-assignments/lead-assignments.contract.spec.d.ts.map +1 -0
  80. package/dist/lead-assignments/lead-assignments.contract.spec.js +51 -0
  81. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +103 -103
  82. package/dist/leads/leads.contract.d.ts +210 -210
  83. package/dist/locations/location-enrichment.contract.spec.d.ts +2 -0
  84. package/dist/locations/location-enrichment.contract.spec.d.ts.map +1 -0
  85. package/dist/locations/location-enrichment.contract.spec.js +50 -0
  86. package/dist/locations/locations.contract.d.ts +132 -98
  87. package/dist/locations/locations.contract.d.ts.map +1 -1
  88. package/dist/locations/locations.contract.js +10 -0
  89. package/dist/notifications/notifications.contract.d.ts +512 -40
  90. package/dist/notifications/notifications.contract.d.ts.map +1 -1
  91. package/dist/notifications/notifications.contract.js +36 -2
  92. package/dist/notifications/notifications.contract.spec.d.ts +2 -0
  93. package/dist/notifications/notifications.contract.spec.d.ts.map +1 -0
  94. package/dist/notifications/notifications.contract.spec.js +39 -0
  95. package/dist/own-research/own-research.contract.d.ts +196 -130
  96. package/dist/own-research/own-research.contract.d.ts.map +1 -1
  97. package/dist/proofs/proofs.contract.d.ts +356 -356
  98. package/dist/proofs/proofs.dtos.d.ts +148 -148
  99. package/dist/realtime/job-call-priority-updated.d.ts +18 -0
  100. package/dist/realtime/job-call-priority-updated.d.ts.map +1 -0
  101. package/dist/realtime/job-call-priority-updated.js +17 -0
  102. package/dist/shared/summary-schemas.d.ts +36 -27
  103. package/dist/shared/summary-schemas.d.ts.map +1 -1
  104. package/dist/shared/summary-schemas.js +7 -0
  105. package/dist/sheets-sync/sheets-sync.contract.d.ts +683 -683
  106. package/dist/user-access-grants/user-access-grants.contract.d.ts +55 -55
  107. package/dist/users/users.contract.d.ts +236 -236
  108. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +69 -69
  109. package/dist/workers/workers.contract.d.ts +2620 -2420
  110. package/dist/workers/workers.contract.d.ts.map +1 -1
  111. package/package.json +1 -1
@@ -40,8 +40,8 @@ export declare const FilterExportJobSchema: z.ZodObject<{
40
40
  order: "ASC" | "DESC";
41
41
  }>, "many">>>;
42
42
  }, "strip", z.ZodTypeAny, {
43
- page: number;
44
43
  limit: number;
44
+ page: number;
45
45
  sort?: {
46
46
  field: "status" | "requestedAt" | "completedAt" | "entity";
47
47
  order: "ASC" | "DESC";
@@ -52,21 +52,21 @@ export declare const FilterExportJobSchema: z.ZodObject<{
52
52
  from?: string | null | undefined;
53
53
  to?: string | null | undefined;
54
54
  } | null | undefined;
55
- entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
55
+ entity?: "bookings" | "actives" | "call-history" | "jobs" | "users" | undefined;
56
56
  }, {
57
57
  sort?: {
58
58
  field: "status" | "requestedAt" | "completedAt" | "entity";
59
59
  order: "ASC" | "DESC";
60
60
  }[] | null | undefined;
61
- page?: number | undefined;
62
- limit?: number | undefined;
63
61
  status?: "pending" | "processing" | "completed" | "failed" | "cancelled" | undefined;
64
62
  userId?: string | undefined;
63
+ limit?: number | undefined;
64
+ page?: number | undefined;
65
65
  requestedAt?: {
66
66
  from?: string | null | undefined;
67
67
  to?: string | null | undefined;
68
68
  } | null | undefined;
69
- entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
69
+ entity?: "bookings" | "actives" | "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,58 +129,44 @@ 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
+ clientId?: string | null | undefined;
134
+ companyId?: string | null | undefined;
135
+ tradeId?: string | null | undefined;
132
136
  location?: {
133
137
  postcode?: string | null | undefined;
134
138
  radius?: number | null | undefined;
135
139
  } | null | undefined;
136
- tradeId?: string | null | undefined;
140
+ }, {
137
141
  userId?: string | null | undefined;
138
- companyId?: string | null | undefined;
139
142
  clientId?: string | null | undefined;
140
- }, {
143
+ companyId?: string | null | undefined;
144
+ tradeId?: string | null | undefined;
141
145
  location?: {
142
146
  postcode?: string | null | undefined;
143
147
  radius?: number | null | undefined;
144
148
  } | null | undefined;
145
- tradeId?: string | null | undefined;
146
- userId?: string | null | undefined;
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: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
154
+ field: "status" | "date" | "startDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "postcode" | "receivedRate" | "hoursWorked" | "firstAgent";
155
155
  order: "ASC" | "DESC";
156
156
  }, {
157
- field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
157
+ field: "status" | "date" | "startDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "postcode" | "receivedRate" | "hoursWorked" | "firstAgent";
158
158
  order: "ASC" | "DESC";
159
159
  }>, "many">>>;
160
160
  }, "strip", z.ZodTypeAny, {
161
- page: number;
162
161
  limit: number;
162
+ page: number;
163
163
  sort?: {
164
- field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
164
+ field: "status" | "date" | "startDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "postcode" | "receivedRate" | "hoursWorked" | "firstAgent";
165
165
  order: "ASC" | "DESC";
166
166
  }[] | null | undefined;
167
- pay?: {
168
- minRate?: number | null | undefined;
169
- maxRate?: number | null | undefined;
170
- } | null | undefined;
171
167
  status?: {
172
168
  status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
173
169
  } | null | undefined;
174
- job?: {
175
- location?: {
176
- postcode?: string | null | undefined;
177
- radius?: number | null | undefined;
178
- } | null | undefined;
179
- tradeId?: string | null | undefined;
180
- userId?: string | null | undefined;
181
- companyId?: string | null | undefined;
182
- clientId?: string | null | undefined;
183
- } | null | undefined;
184
170
  date?: {
185
171
  from?: string | null | undefined;
186
172
  to?: string | null | undefined;
@@ -189,30 +175,28 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
189
175
  value?: string | undefined;
190
176
  exact?: boolean | undefined;
191
177
  } | null | undefined;
192
- agentId?: string | null | undefined;
193
- }, {
194
- sort?: {
195
- field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
196
- order: "ASC" | "DESC";
197
- }[] | null | undefined;
198
- page?: number | undefined;
199
- limit?: number | undefined;
200
178
  pay?: {
201
179
  minRate?: number | null | undefined;
202
180
  maxRate?: number | null | undefined;
203
181
  } | null | undefined;
204
- status?: {
205
- status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
206
- } | null | undefined;
182
+ agentId?: string | null | undefined;
207
183
  job?: {
184
+ userId?: string | null | undefined;
185
+ clientId?: string | null | undefined;
186
+ companyId?: string | null | undefined;
187
+ tradeId?: string | null | undefined;
208
188
  location?: {
209
189
  postcode?: string | null | undefined;
210
190
  radius?: number | null | undefined;
211
191
  } | null | undefined;
212
- tradeId?: string | null | undefined;
213
- userId?: string | null | undefined;
214
- companyId?: string | null | undefined;
215
- clientId?: string | null | undefined;
192
+ } | null | undefined;
193
+ }, {
194
+ sort?: {
195
+ field: "status" | "date" | "startDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "postcode" | "receivedRate" | "hoursWorked" | "firstAgent";
196
+ order: "ASC" | "DESC";
197
+ }[] | null | undefined;
198
+ status?: {
199
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
216
200
  } | null | undefined;
217
201
  date?: {
218
202
  from?: string | null | undefined;
@@ -222,7 +206,23 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
222
206
  value?: string | undefined;
223
207
  exact?: boolean | "true" | "false" | undefined;
224
208
  } | null | undefined;
209
+ pay?: {
210
+ minRate?: number | null | undefined;
211
+ maxRate?: number | null | undefined;
212
+ } | null | undefined;
225
213
  agentId?: string | null | undefined;
214
+ job?: {
215
+ userId?: string | null | undefined;
216
+ clientId?: string | null | undefined;
217
+ companyId?: string | null | undefined;
218
+ tradeId?: string | null | undefined;
219
+ location?: {
220
+ postcode?: string | null | undefined;
221
+ radius?: number | null | undefined;
222
+ } | null | undefined;
223
+ } | null | undefined;
224
+ limit?: number | undefined;
225
+ page?: number | undefined;
226
226
  }>;
227
227
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
228
228
  field: z.ZodString;
@@ -241,29 +241,15 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
241
241
  dir: "ASC" | "DESC";
242
242
  }[];
243
243
  filter: {
244
- page: number;
245
244
  limit: number;
245
+ page: number;
246
246
  sort?: {
247
- field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
247
+ field: "status" | "date" | "startDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "postcode" | "receivedRate" | "hoursWorked" | "firstAgent";
248
248
  order: "ASC" | "DESC";
249
249
  }[] | null | undefined;
250
- pay?: {
251
- minRate?: number | null | undefined;
252
- maxRate?: number | null | undefined;
253
- } | null | undefined;
254
250
  status?: {
255
251
  status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
256
252
  } | null | undefined;
257
- job?: {
258
- location?: {
259
- postcode?: string | null | undefined;
260
- radius?: number | null | undefined;
261
- } | null | undefined;
262
- tradeId?: string | null | undefined;
263
- userId?: string | null | undefined;
264
- companyId?: string | null | undefined;
265
- clientId?: string | null | undefined;
266
- } | null | undefined;
267
253
  date?: {
268
254
  from?: string | null | undefined;
269
255
  to?: string | null | undefined;
@@ -272,35 +258,33 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
272
258
  value?: string | undefined;
273
259
  exact?: boolean | undefined;
274
260
  } | null | undefined;
261
+ pay?: {
262
+ minRate?: number | null | undefined;
263
+ maxRate?: number | null | undefined;
264
+ } | null | undefined;
275
265
  agentId?: string | null | undefined;
266
+ job?: {
267
+ userId?: string | null | undefined;
268
+ clientId?: string | null | undefined;
269
+ companyId?: string | null | undefined;
270
+ tradeId?: string | null | undefined;
271
+ location?: {
272
+ postcode?: string | null | undefined;
273
+ radius?: number | null | undefined;
274
+ } | null | undefined;
275
+ } | null | undefined;
276
276
  };
277
277
  entity: "actives";
278
278
  columns: string[];
279
279
  }, {
280
280
  filter: {
281
281
  sort?: {
282
- field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
282
+ field: "status" | "date" | "startDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "postcode" | "receivedRate" | "hoursWorked" | "firstAgent";
283
283
  order: "ASC" | "DESC";
284
284
  }[] | null | undefined;
285
- page?: number | undefined;
286
- limit?: number | undefined;
287
- pay?: {
288
- minRate?: number | null | undefined;
289
- maxRate?: number | null | undefined;
290
- } | null | undefined;
291
285
  status?: {
292
286
  status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
293
287
  } | null | undefined;
294
- job?: {
295
- location?: {
296
- postcode?: string | null | undefined;
297
- radius?: number | null | undefined;
298
- } | null | undefined;
299
- tradeId?: string | null | undefined;
300
- userId?: string | null | undefined;
301
- companyId?: string | null | undefined;
302
- clientId?: string | null | undefined;
303
- } | null | undefined;
304
288
  date?: {
305
289
  from?: string | null | undefined;
306
290
  to?: string | null | undefined;
@@ -309,7 +293,23 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
309
293
  value?: string | undefined;
310
294
  exact?: boolean | "true" | "false" | undefined;
311
295
  } | null | undefined;
296
+ pay?: {
297
+ minRate?: number | null | undefined;
298
+ maxRate?: number | null | undefined;
299
+ } | null | undefined;
312
300
  agentId?: string | null | undefined;
301
+ job?: {
302
+ userId?: string | null | undefined;
303
+ clientId?: string | null | undefined;
304
+ companyId?: string | null | undefined;
305
+ tradeId?: string | null | undefined;
306
+ location?: {
307
+ postcode?: string | null | undefined;
308
+ radius?: number | null | undefined;
309
+ } | null | undefined;
310
+ } | null | undefined;
311
+ limit?: number | undefined;
312
+ page?: number | undefined;
313
313
  };
314
314
  entity: "actives";
315
315
  columns: string[];
@@ -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
+ clientId?: string | null | undefined;
410
+ companyId?: string | null | undefined;
411
+ tradeId?: string | null | undefined;
408
412
  location?: {
409
413
  postcode?: string | null | undefined;
410
414
  radius?: number | null | undefined;
411
415
  } | null | undefined;
412
- tradeId?: string | null | undefined;
416
+ }, {
413
417
  userId?: string | null | undefined;
414
- companyId?: string | null | undefined;
415
418
  clientId?: string | null | undefined;
416
- }, {
419
+ companyId?: string | null | undefined;
420
+ tradeId?: string | null | undefined;
417
421
  location?: {
418
422
  postcode?: string | null | undefined;
419
423
  radius?: number | null | undefined;
420
424
  } | null | undefined;
421
- tradeId?: string | null | undefined;
422
- userId?: string | null | undefined;
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,27 +458,19 @@ 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: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
461
+ field: "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt";
462
462
  order: "ASC" | "DESC";
463
463
  }, {
464
- field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
464
+ field: "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt";
465
465
  order: "ASC" | "DESC";
466
466
  }>, "many">>>;
467
467
  }, "strip", z.ZodTypeAny, {
468
- page: number;
469
468
  limit: number;
469
+ page: number;
470
470
  sort?: {
471
- field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
471
+ field: "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt";
472
472
  order: "ASC" | "DESC";
473
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;
482
474
  status?: {
483
475
  category: "ATTEMPT";
484
476
  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;
@@ -503,26 +495,10 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
503
495
  from?: string | null | undefined;
504
496
  to?: string | null | undefined;
505
497
  } | null | undefined;
506
- job?: {
507
- location?: {
508
- postcode?: string | null | undefined;
509
- radius?: number | null | undefined;
510
- } | null | undefined;
511
- tradeId?: string | null | undefined;
512
- userId?: string | null | undefined;
513
- companyId?: string | null | undefined;
514
- clientId?: string | null | undefined;
515
- } | null | undefined;
516
498
  workerName?: {
517
499
  value?: string | undefined;
518
500
  exact?: boolean | undefined;
519
501
  } | null | undefined;
520
- agentId?: string | null | undefined;
521
- }, {
522
- sort?: {
523
- field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
524
- order: "ASC" | "DESC";
525
- }[] | null | undefined;
526
502
  createdAt?: {
527
503
  from?: string | null | undefined;
528
504
  to?: string | null | undefined;
@@ -531,8 +507,22 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
531
507
  from?: string | null | undefined;
532
508
  to?: string | null | undefined;
533
509
  } | null | undefined;
534
- page?: number | undefined;
535
- limit?: number | undefined;
510
+ agentId?: string | null | undefined;
511
+ job?: {
512
+ userId?: string | null | undefined;
513
+ clientId?: string | null | undefined;
514
+ companyId?: string | null | undefined;
515
+ tradeId?: string | null | undefined;
516
+ location?: {
517
+ postcode?: string | null | undefined;
518
+ radius?: number | null | undefined;
519
+ } | null | undefined;
520
+ } | null | undefined;
521
+ }, {
522
+ sort?: {
523
+ field: "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt";
524
+ order: "ASC" | "DESC";
525
+ }[] | null | undefined;
536
526
  status?: {
537
527
  category: "ATTEMPT";
538
528
  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;
@@ -557,21 +547,31 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
557
547
  from?: string | null | undefined;
558
548
  to?: string | null | undefined;
559
549
  } | null | undefined;
550
+ workerName?: {
551
+ value?: string | undefined;
552
+ exact?: boolean | "true" | "false" | undefined;
553
+ } | null | undefined;
554
+ createdAt?: {
555
+ from?: string | null | undefined;
556
+ to?: string | null | undefined;
557
+ } | null | undefined;
558
+ updatedAt?: {
559
+ from?: string | null | undefined;
560
+ to?: string | null | undefined;
561
+ } | null | undefined;
562
+ agentId?: string | null | undefined;
560
563
  job?: {
564
+ userId?: string | null | undefined;
565
+ clientId?: string | null | undefined;
566
+ companyId?: string | null | undefined;
567
+ tradeId?: string | null | undefined;
561
568
  location?: {
562
569
  postcode?: string | null | undefined;
563
570
  radius?: number | null | undefined;
564
571
  } | null | undefined;
565
- tradeId?: string | null | undefined;
566
- userId?: string | null | undefined;
567
- companyId?: string | null | undefined;
568
- clientId?: string | null | undefined;
569
- } | null | undefined;
570
- workerName?: {
571
- value?: string | undefined;
572
- exact?: boolean | "true" | "false" | undefined;
573
572
  } | null | undefined;
574
- agentId?: string | null | undefined;
573
+ limit?: number | undefined;
574
+ page?: number | undefined;
575
575
  }>;
576
576
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
577
577
  field: z.ZodString;
@@ -590,20 +590,12 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
590
590
  dir: "ASC" | "DESC";
591
591
  }[];
592
592
  filter: {
593
- page: number;
594
593
  limit: number;
594
+ page: number;
595
595
  sort?: {
596
- field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
596
+ field: "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt";
597
597
  order: "ASC" | "DESC";
598
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;
607
599
  status?: {
608
600
  category: "ATTEMPT";
609
601
  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;
@@ -628,40 +620,38 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
628
620
  from?: string | null | undefined;
629
621
  to?: string | null | undefined;
630
622
  } | null | undefined;
623
+ workerName?: {
624
+ value?: string | undefined;
625
+ exact?: boolean | undefined;
626
+ } | null | undefined;
627
+ createdAt?: {
628
+ from?: string | null | undefined;
629
+ to?: string | null | undefined;
630
+ } | null | undefined;
631
+ updatedAt?: {
632
+ from?: string | null | undefined;
633
+ to?: string | null | undefined;
634
+ } | null | undefined;
635
+ agentId?: string | null | undefined;
631
636
  job?: {
637
+ userId?: string | null | undefined;
638
+ clientId?: string | null | undefined;
639
+ companyId?: string | null | undefined;
640
+ tradeId?: string | null | undefined;
632
641
  location?: {
633
642
  postcode?: string | null | undefined;
634
643
  radius?: number | null | undefined;
635
644
  } | null | undefined;
636
- tradeId?: string | null | undefined;
637
- userId?: string | null | undefined;
638
- companyId?: string | null | undefined;
639
- clientId?: string | null | undefined;
640
645
  } | null | undefined;
641
- workerName?: {
642
- value?: string | undefined;
643
- exact?: boolean | undefined;
644
- } | null | undefined;
645
- agentId?: string | null | undefined;
646
646
  };
647
647
  entity: "bookings";
648
648
  columns: string[];
649
649
  }, {
650
650
  filter: {
651
651
  sort?: {
652
- field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
652
+ field: "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt";
653
653
  order: "ASC" | "DESC";
654
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;
665
655
  status?: {
666
656
  category: "ATTEMPT";
667
657
  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;
@@ -686,21 +676,31 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
686
676
  from?: string | null | undefined;
687
677
  to?: string | null | undefined;
688
678
  } | null | undefined;
679
+ workerName?: {
680
+ value?: string | undefined;
681
+ exact?: boolean | "true" | "false" | undefined;
682
+ } | null | undefined;
683
+ createdAt?: {
684
+ from?: string | null | undefined;
685
+ to?: string | null | undefined;
686
+ } | null | undefined;
687
+ updatedAt?: {
688
+ from?: string | null | undefined;
689
+ to?: string | null | undefined;
690
+ } | null | undefined;
691
+ agentId?: string | null | undefined;
689
692
  job?: {
693
+ userId?: string | null | undefined;
694
+ clientId?: string | null | undefined;
695
+ companyId?: string | null | undefined;
696
+ tradeId?: string | null | undefined;
690
697
  location?: {
691
698
  postcode?: string | null | undefined;
692
699
  radius?: number | null | undefined;
693
700
  } | null | undefined;
694
- tradeId?: string | null | undefined;
695
- userId?: string | null | undefined;
696
- companyId?: string | null | undefined;
697
- clientId?: string | null | undefined;
698
701
  } | null | undefined;
699
- workerName?: {
700
- value?: string | undefined;
701
- exact?: boolean | "true" | "false" | undefined;
702
- } | null | undefined;
703
- agentId?: string | null | undefined;
702
+ limit?: number | undefined;
703
+ page?: number | undefined;
704
704
  };
705
705
  entity: "bookings";
706
706
  columns: string[];
@@ -751,8 +751,8 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
751
751
  order: "ASC" | "DESC";
752
752
  }>, "many">>>;
753
753
  }, "strip", z.ZodTypeAny, {
754
- page: number;
755
754
  limit: number;
755
+ page: number;
756
756
  sort?: {
757
757
  field: import("../call-history/call-history.contract").CallHistorySortableFields;
758
758
  order: "ASC" | "DESC";
@@ -761,16 +761,16 @@ 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;
764
765
  agentId?: string | undefined;
765
766
  phoneNumber?: string | undefined;
767
+ leadName?: string | undefined;
766
768
  rating?: {
767
769
  from?: import("../common/call-rating.schema").CallRating | null | undefined;
768
770
  to?: import("../common/call-rating.schema").CallRating | null | undefined;
769
771
  } | null | undefined;
770
772
  callType?: import("../call-history/call-history.contract").CallType | undefined;
771
- companyId?: string | undefined;
772
773
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
773
- leadName?: string | undefined;
774
774
  }, {
775
775
  sort?: {
776
776
  field: import("../call-history/call-history.contract").CallHistorySortableFields;
@@ -780,18 +780,18 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
780
780
  from?: string | null | undefined;
781
781
  to?: string | null | undefined;
782
782
  } | null | undefined;
783
- page?: number | undefined;
784
- limit?: number | undefined;
783
+ companyId?: string | undefined;
785
784
  agentId?: string | undefined;
786
785
  phoneNumber?: string | undefined;
786
+ leadName?: string | undefined;
787
+ limit?: number | undefined;
788
+ page?: number | undefined;
787
789
  rating?: {
788
790
  from?: unknown;
789
791
  to?: unknown;
790
792
  } | null | undefined;
791
793
  callType?: import("../call-history/call-history.contract").CallType | undefined;
792
- companyId?: string | undefined;
793
794
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
794
- leadName?: string | undefined;
795
795
  }>;
796
796
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
797
797
  field: z.ZodString;
@@ -810,8 +810,8 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
810
810
  dir: "ASC" | "DESC";
811
811
  }[];
812
812
  filter: {
813
- page: number;
814
813
  limit: number;
814
+ page: number;
815
815
  sort?: {
816
816
  field: import("../call-history/call-history.contract").CallHistorySortableFields;
817
817
  order: "ASC" | "DESC";
@@ -820,16 +820,16 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
820
820
  from?: string | null | undefined;
821
821
  to?: string | null | undefined;
822
822
  } | null | undefined;
823
+ companyId?: string | undefined;
823
824
  agentId?: string | undefined;
824
825
  phoneNumber?: string | undefined;
826
+ leadName?: string | undefined;
825
827
  rating?: {
826
828
  from?: import("../common/call-rating.schema").CallRating | null | undefined;
827
829
  to?: import("../common/call-rating.schema").CallRating | null | undefined;
828
830
  } | null | undefined;
829
831
  callType?: import("../call-history/call-history.contract").CallType | undefined;
830
- companyId?: string | undefined;
831
832
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
832
- leadName?: string | undefined;
833
833
  };
834
834
  entity: "call-history";
835
835
  columns: string[];
@@ -843,18 +843,18 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
843
843
  from?: string | null | undefined;
844
844
  to?: string | null | undefined;
845
845
  } | null | undefined;
846
- page?: number | undefined;
847
- limit?: number | undefined;
846
+ companyId?: string | undefined;
848
847
  agentId?: string | undefined;
849
848
  phoneNumber?: string | undefined;
849
+ leadName?: string | undefined;
850
+ limit?: number | undefined;
851
+ page?: number | undefined;
850
852
  rating?: {
851
853
  from?: unknown;
852
854
  to?: unknown;
853
855
  } | null | undefined;
854
856
  callType?: import("../call-history/call-history.contract").CallType | undefined;
855
- companyId?: string | undefined;
856
857
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
857
- leadName?: string | undefined;
858
858
  };
859
859
  entity: "call-history";
860
860
  columns: string[];
@@ -930,27 +930,20 @@ 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: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
933
+ field: "status" | "startDate" | "payRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "tradeId" | "postcode" | "description" | "numberOfPositions" | "workHours" | "receivedRate" | "creationSource" | "distance" | "qualificationsCount";
934
934
  order: "ASC" | "DESC";
935
935
  }, {
936
- field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
936
+ field: "status" | "startDate" | "payRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "tradeId" | "postcode" | "description" | "numberOfPositions" | "workHours" | "receivedRate" | "creationSource" | "distance" | "qualificationsCount";
937
937
  order: "ASC" | "DESC";
938
938
  }>, "many">>>;
939
939
  }, "strip", z.ZodTypeAny, {
940
- page: number;
941
940
  limit: number;
942
- qualificationFilters?: {
943
- qualificationId?: string | undefined;
944
- qualificationTypeId?: string | undefined;
945
- }[] | undefined;
941
+ page: number;
946
942
  sort?: {
947
- field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
943
+ field: "status" | "startDate" | "payRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "tradeId" | "postcode" | "description" | "numberOfPositions" | "workHours" | "receivedRate" | "creationSource" | "distance" | "qualificationsCount";
948
944
  order: "ASC" | "DESC";
949
945
  }[] | null | undefined;
950
- location?: {
951
- postcode?: string | null | undefined;
952
- radius?: number | null | undefined;
953
- } | null | undefined;
946
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
954
947
  createdAt?: {
955
948
  from?: string | null | undefined;
956
949
  to?: string | null | undefined;
@@ -959,31 +952,31 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
959
952
  from?: string | null | undefined;
960
953
  to?: string | null | undefined;
961
954
  } | null | undefined;
962
- description?: string | null | undefined;
963
- tradeId?: string | null | undefined;
964
955
  pay?: {
965
956
  minRate?: number | null | undefined;
966
957
  maxRate?: number | null | undefined;
967
958
  } | null | undefined;
968
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
969
959
  userId?: string | null | undefined;
970
- outreachRequested?: "only_with" | "only_without" | null | undefined;
971
- companyId?: string | null | undefined;
972
960
  clientId?: string | null | undefined;
961
+ companyId?: string | null | undefined;
962
+ tradeId?: string | null | undefined;
963
+ location?: {
964
+ postcode?: string | null | undefined;
965
+ radius?: number | null | undefined;
966
+ } | null | undefined;
967
+ description?: string | null | undefined;
973
968
  creationSource?: "MANUAL" | "BOT" | null | undefined;
974
- }, {
975
969
  qualificationFilters?: {
976
970
  qualificationId?: string | undefined;
977
971
  qualificationTypeId?: string | undefined;
978
972
  }[] | undefined;
973
+ outreachRequested?: "only_with" | "only_without" | null | undefined;
974
+ }, {
979
975
  sort?: {
980
- field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
976
+ field: "status" | "startDate" | "payRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "tradeId" | "postcode" | "description" | "numberOfPositions" | "workHours" | "receivedRate" | "creationSource" | "distance" | "qualificationsCount";
981
977
  order: "ASC" | "DESC";
982
978
  }[] | null | undefined;
983
- location?: {
984
- postcode?: string | null | undefined;
985
- radius?: number | null | undefined;
986
- } | null | undefined;
979
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
987
980
  createdAt?: {
988
981
  from?: string | null | undefined;
989
982
  to?: string | null | undefined;
@@ -992,20 +985,27 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
992
985
  from?: string | null | undefined;
993
986
  to?: string | null | undefined;
994
987
  } | null | undefined;
995
- page?: number | undefined;
996
- limit?: number | undefined;
997
- description?: string | null | undefined;
998
- tradeId?: string | null | undefined;
999
988
  pay?: {
1000
989
  minRate?: number | null | undefined;
1001
990
  maxRate?: number | null | undefined;
1002
991
  } | null | undefined;
1003
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1004
992
  userId?: string | null | undefined;
1005
- outreachRequested?: "only_with" | "only_without" | null | undefined;
1006
- companyId?: string | null | undefined;
1007
993
  clientId?: string | null | undefined;
994
+ companyId?: string | null | undefined;
995
+ tradeId?: string | null | undefined;
996
+ location?: {
997
+ postcode?: string | null | undefined;
998
+ radius?: number | null | undefined;
999
+ } | null | undefined;
1000
+ description?: string | null | undefined;
1008
1001
  creationSource?: "MANUAL" | "BOT" | null | undefined;
1002
+ limit?: number | undefined;
1003
+ page?: number | undefined;
1004
+ qualificationFilters?: {
1005
+ qualificationId?: string | undefined;
1006
+ qualificationTypeId?: string | undefined;
1007
+ }[] | undefined;
1008
+ outreachRequested?: "only_with" | "only_without" | null | undefined;
1009
1009
  }>;
1010
1010
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
1011
1011
  field: z.ZodString;
@@ -1024,20 +1024,13 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
1024
1024
  dir: "ASC" | "DESC";
1025
1025
  }[];
1026
1026
  filter: {
1027
- page: number;
1028
1027
  limit: number;
1029
- qualificationFilters?: {
1030
- qualificationId?: string | undefined;
1031
- qualificationTypeId?: string | undefined;
1032
- }[] | undefined;
1028
+ page: number;
1033
1029
  sort?: {
1034
- field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
1030
+ field: "status" | "startDate" | "payRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "tradeId" | "postcode" | "description" | "numberOfPositions" | "workHours" | "receivedRate" | "creationSource" | "distance" | "qualificationsCount";
1035
1031
  order: "ASC" | "DESC";
1036
1032
  }[] | null | undefined;
1037
- location?: {
1038
- postcode?: string | null | undefined;
1039
- radius?: number | null | undefined;
1040
- } | null | undefined;
1033
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1041
1034
  createdAt?: {
1042
1035
  from?: string | null | undefined;
1043
1036
  to?: string | null | undefined;
@@ -1046,57 +1039,64 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
1046
1039
  from?: string | null | undefined;
1047
1040
  to?: string | null | undefined;
1048
1041
  } | null | undefined;
1049
- description?: string | null | undefined;
1050
- tradeId?: string | null | undefined;
1051
1042
  pay?: {
1052
1043
  minRate?: number | null | undefined;
1053
1044
  maxRate?: number | null | undefined;
1054
1045
  } | null | undefined;
1055
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1056
1046
  userId?: string | null | undefined;
1057
- outreachRequested?: "only_with" | "only_without" | null | undefined;
1058
- companyId?: string | null | undefined;
1059
1047
  clientId?: string | null | undefined;
1048
+ companyId?: string | null | undefined;
1049
+ tradeId?: string | null | undefined;
1050
+ location?: {
1051
+ postcode?: string | null | undefined;
1052
+ radius?: number | null | undefined;
1053
+ } | null | undefined;
1054
+ description?: string | null | undefined;
1060
1055
  creationSource?: "MANUAL" | "BOT" | null | undefined;
1056
+ qualificationFilters?: {
1057
+ qualificationId?: string | undefined;
1058
+ qualificationTypeId?: string | undefined;
1059
+ }[] | undefined;
1060
+ outreachRequested?: "only_with" | "only_without" | null | undefined;
1061
1061
  };
1062
1062
  entity: "jobs";
1063
1063
  columns: string[];
1064
1064
  }, {
1065
1065
  filter: {
1066
- qualificationFilters?: {
1067
- qualificationId?: string | undefined;
1068
- qualificationTypeId?: string | undefined;
1069
- }[] | undefined;
1070
1066
  sort?: {
1071
- field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
1067
+ field: "status" | "startDate" | "payRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "tradeId" | "postcode" | "description" | "numberOfPositions" | "workHours" | "receivedRate" | "creationSource" | "distance" | "qualificationsCount";
1072
1068
  order: "ASC" | "DESC";
1073
1069
  }[] | null | undefined;
1074
- location?: {
1075
- postcode?: string | null | undefined;
1076
- radius?: number | null | undefined;
1077
- } | null | undefined;
1070
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1078
1071
  createdAt?: {
1079
1072
  from?: string | null | undefined;
1080
1073
  to?: string | null | undefined;
1081
1074
  } | null | undefined;
1082
1075
  updatedAt?: {
1083
- from?: string | null | undefined;
1084
- to?: string | null | undefined;
1085
- } | null | undefined;
1086
- page?: number | undefined;
1087
- limit?: number | undefined;
1088
- description?: string | null | undefined;
1089
- tradeId?: string | null | undefined;
1076
+ from?: string | null | undefined;
1077
+ to?: string | null | undefined;
1078
+ } | null | undefined;
1090
1079
  pay?: {
1091
1080
  minRate?: number | null | undefined;
1092
1081
  maxRate?: number | null | undefined;
1093
1082
  } | null | undefined;
1094
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1095
1083
  userId?: string | null | undefined;
1096
- outreachRequested?: "only_with" | "only_without" | null | undefined;
1097
- companyId?: string | null | undefined;
1098
1084
  clientId?: string | null | undefined;
1085
+ companyId?: string | null | undefined;
1086
+ tradeId?: string | null | undefined;
1087
+ location?: {
1088
+ postcode?: string | null | undefined;
1089
+ radius?: number | null | undefined;
1090
+ } | null | undefined;
1091
+ description?: string | null | undefined;
1099
1092
  creationSource?: "MANUAL" | "BOT" | null | undefined;
1093
+ limit?: number | undefined;
1094
+ page?: number | undefined;
1095
+ qualificationFilters?: {
1096
+ qualificationId?: string | undefined;
1097
+ qualificationTypeId?: string | undefined;
1098
+ }[] | undefined;
1099
+ outreachRequested?: "only_with" | "only_without" | null | undefined;
1100
1100
  };
1101
1101
  entity: "jobs";
1102
1102
  columns: string[];
@@ -1149,22 +1149,20 @@ 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: "email" | "createdAt" | "lastName" | "firstName" | "office";
1152
+ field: "createdAt" | "firstName" | "lastName" | "email" | "office";
1153
1153
  order: "ASC" | "DESC";
1154
1154
  }, {
1155
- field: "email" | "createdAt" | "lastName" | "firstName" | "office";
1155
+ field: "createdAt" | "firstName" | "lastName" | "email" | "office";
1156
1156
  order: "ASC" | "DESC";
1157
1157
  }>, "many">>>;
1158
1158
  }, "strip", z.ZodTypeAny, {
1159
- page: number;
1160
1159
  limit: number;
1161
- name?: string | undefined;
1162
- email?: string | undefined;
1163
- phone?: string | undefined;
1160
+ page: number;
1164
1161
  sort?: {
1165
- field: "email" | "createdAt" | "lastName" | "firstName" | "office";
1162
+ field: "createdAt" | "firstName" | "lastName" | "email" | "office";
1166
1163
  order: "ASC" | "DESC";
1167
1164
  }[] | null | undefined;
1165
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1168
1166
  createdAt?: {
1169
1167
  from?: string | null | undefined;
1170
1168
  to?: string | null | undefined;
@@ -1173,20 +1171,20 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
1173
1171
  from?: string | null | undefined;
1174
1172
  to?: string | null | undefined;
1175
1173
  } | null | undefined;
1176
- status?: "ACTIVE" | "INACTIVE" | undefined;
1174
+ name?: string | undefined;
1175
+ email?: string | undefined;
1177
1176
  roles?: {
1178
1177
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1179
1178
  requireAll?: boolean | undefined;
1180
1179
  } | undefined;
1181
1180
  officeId?: string | undefined;
1182
- }, {
1183
- name?: string | undefined;
1184
- email?: string | undefined;
1185
1181
  phone?: string | undefined;
1182
+ }, {
1186
1183
  sort?: {
1187
- field: "email" | "createdAt" | "lastName" | "firstName" | "office";
1184
+ field: "createdAt" | "firstName" | "lastName" | "email" | "office";
1188
1185
  order: "ASC" | "DESC";
1189
1186
  }[] | null | undefined;
1187
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1190
1188
  createdAt?: {
1191
1189
  from?: string | null | undefined;
1192
1190
  to?: string | null | undefined;
@@ -1195,14 +1193,16 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
1195
1193
  from?: string | null | undefined;
1196
1194
  to?: string | null | undefined;
1197
1195
  } | null | undefined;
1198
- page?: number | undefined;
1199
- limit?: number | undefined;
1200
- status?: "ACTIVE" | "INACTIVE" | undefined;
1196
+ name?: string | undefined;
1197
+ email?: string | undefined;
1201
1198
  roles?: {
1202
1199
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1203
1200
  requireAll?: unknown;
1204
1201
  } | undefined;
1205
1202
  officeId?: string | undefined;
1203
+ limit?: number | undefined;
1204
+ page?: number | undefined;
1205
+ phone?: string | undefined;
1206
1206
  }>;
1207
1207
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
1208
1208
  field: z.ZodString;
@@ -1221,15 +1221,13 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
1221
1221
  dir: "ASC" | "DESC";
1222
1222
  }[];
1223
1223
  filter: {
1224
- page: number;
1225
1224
  limit: number;
1226
- name?: string | undefined;
1227
- email?: string | undefined;
1228
- phone?: string | undefined;
1225
+ page: number;
1229
1226
  sort?: {
1230
- field: "email" | "createdAt" | "lastName" | "firstName" | "office";
1227
+ field: "createdAt" | "firstName" | "lastName" | "email" | "office";
1231
1228
  order: "ASC" | "DESC";
1232
1229
  }[] | null | undefined;
1230
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1233
1231
  createdAt?: {
1234
1232
  from?: string | null | undefined;
1235
1233
  to?: string | null | undefined;
@@ -1238,24 +1236,24 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
1238
1236
  from?: string | null | undefined;
1239
1237
  to?: string | null | undefined;
1240
1238
  } | null | undefined;
1241
- status?: "ACTIVE" | "INACTIVE" | undefined;
1239
+ name?: string | undefined;
1240
+ email?: string | undefined;
1242
1241
  roles?: {
1243
1242
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1244
1243
  requireAll?: boolean | undefined;
1245
1244
  } | undefined;
1246
1245
  officeId?: string | undefined;
1246
+ phone?: string | undefined;
1247
1247
  };
1248
1248
  entity: "users";
1249
1249
  columns: string[];
1250
1250
  }, {
1251
1251
  filter: {
1252
- name?: string | undefined;
1253
- email?: string | undefined;
1254
- phone?: string | undefined;
1255
1252
  sort?: {
1256
- field: "email" | "createdAt" | "lastName" | "firstName" | "office";
1253
+ field: "createdAt" | "firstName" | "lastName" | "email" | "office";
1257
1254
  order: "ASC" | "DESC";
1258
1255
  }[] | null | undefined;
1256
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1259
1257
  createdAt?: {
1260
1258
  from?: string | null | undefined;
1261
1259
  to?: string | null | undefined;
@@ -1264,14 +1262,16 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
1264
1262
  from?: string | null | undefined;
1265
1263
  to?: string | null | undefined;
1266
1264
  } | null | undefined;
1267
- page?: number | undefined;
1268
- limit?: number | undefined;
1269
- status?: "ACTIVE" | "INACTIVE" | undefined;
1265
+ name?: string | undefined;
1266
+ email?: string | undefined;
1270
1267
  roles?: {
1271
1268
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
1272
1269
  requireAll?: unknown;
1273
1270
  } | undefined;
1274
1271
  officeId?: string | undefined;
1272
+ limit?: number | undefined;
1273
+ page?: number | undefined;
1274
+ phone?: string | undefined;
1275
1275
  };
1276
1276
  entity: "users";
1277
1277
  columns: string[];
@@ -1306,8 +1306,8 @@ export declare const ExportJobSchema: z.ZodObject<{
1306
1306
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1307
1307
  }, "strip", z.ZodTypeAny, {
1308
1308
  id: string;
1309
- lastName: string;
1310
1309
  firstName: string;
1310
+ lastName: string;
1311
1311
  phoneNumbers: {
1312
1312
  id: string;
1313
1313
  phoneNumber: string;
@@ -1317,8 +1317,8 @@ export declare const ExportJobSchema: z.ZodObject<{
1317
1317
  deletedAt?: string | null | undefined;
1318
1318
  }, {
1319
1319
  id: string;
1320
- lastName: string;
1321
1320
  firstName: string;
1321
+ lastName: string;
1322
1322
  phoneNumbers?: {
1323
1323
  id: string;
1324
1324
  phoneNumber: string;
@@ -1355,18 +1355,14 @@ export declare const ExportJobSchema: z.ZodObject<{
1355
1355
  field: string;
1356
1356
  dir: "ASC" | "DESC";
1357
1357
  }[];
1358
- id: string;
1358
+ filter: Record<string, unknown>;
1359
1359
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1360
+ id: string;
1360
1361
  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[];
1366
1362
  user: {
1367
1363
  id: string;
1368
- lastName: string;
1369
1364
  firstName: string;
1365
+ lastName: string;
1370
1366
  phoneNumbers: {
1371
1367
  id: string;
1372
1368
  phoneNumber: string;
@@ -1375,6 +1371,10 @@ export declare const ExportJobSchema: z.ZodObject<{
1375
1371
  }[];
1376
1372
  deletedAt?: string | null | undefined;
1377
1373
  } | null;
1374
+ requestedAt: string;
1375
+ completedAt: string | null;
1376
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
1377
+ columns: string[];
1378
1378
  rowsProcessed: number;
1379
1379
  rowsSkipped: number;
1380
1380
  totalRows: number | null;
@@ -1383,18 +1383,14 @@ export declare const ExportJobSchema: z.ZodObject<{
1383
1383
  startedAt: string | null;
1384
1384
  expiresAt: string;
1385
1385
  }, {
1386
- id: string;
1386
+ filter: Record<string, unknown>;
1387
1387
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1388
+ id: string;
1388
1389
  userId: string;
1389
- filter: Record<string, unknown>;
1390
- requestedAt: string;
1391
- completedAt: string | null;
1392
- entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1393
- columns: string[];
1394
1390
  user: {
1395
1391
  id: string;
1396
- lastName: string;
1397
1392
  firstName: string;
1393
+ lastName: string;
1398
1394
  phoneNumbers?: {
1399
1395
  id: string;
1400
1396
  phoneNumber: string;
@@ -1403,6 +1399,10 @@ export declare const ExportJobSchema: z.ZodObject<{
1403
1399
  }[] | undefined;
1404
1400
  deletedAt?: string | Date | null | undefined;
1405
1401
  } | null;
1402
+ requestedAt: string;
1403
+ completedAt: string | null;
1404
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
1405
+ columns: string[];
1406
1406
  rowsProcessed: number;
1407
1407
  rowsSkipped: number;
1408
1408
  totalRows: number | null;
@@ -1442,8 +1442,8 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1442
1442
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1443
1443
  }, "strip", z.ZodTypeAny, {
1444
1444
  id: string;
1445
- lastName: string;
1446
1445
  firstName: string;
1446
+ lastName: string;
1447
1447
  phoneNumbers: {
1448
1448
  id: string;
1449
1449
  phoneNumber: string;
@@ -1453,8 +1453,8 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1453
1453
  deletedAt?: string | null | undefined;
1454
1454
  }, {
1455
1455
  id: string;
1456
- lastName: string;
1457
1456
  firstName: string;
1457
+ lastName: string;
1458
1458
  phoneNumbers?: {
1459
1459
  id: string;
1460
1460
  phoneNumber: string;
@@ -1491,18 +1491,14 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1491
1491
  field: string;
1492
1492
  dir: "ASC" | "DESC";
1493
1493
  }[];
1494
- id: string;
1494
+ filter: Record<string, unknown>;
1495
1495
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1496
+ id: string;
1496
1497
  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[];
1502
1498
  user: {
1503
1499
  id: string;
1504
- lastName: string;
1505
1500
  firstName: string;
1501
+ lastName: string;
1506
1502
  phoneNumbers: {
1507
1503
  id: string;
1508
1504
  phoneNumber: string;
@@ -1511,6 +1507,10 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1511
1507
  }[];
1512
1508
  deletedAt?: string | null | undefined;
1513
1509
  } | null;
1510
+ requestedAt: string;
1511
+ completedAt: string | null;
1512
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
1513
+ columns: string[];
1514
1514
  rowsProcessed: number;
1515
1515
  rowsSkipped: number;
1516
1516
  totalRows: number | null;
@@ -1519,18 +1519,14 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1519
1519
  startedAt: string | null;
1520
1520
  expiresAt: string;
1521
1521
  }, {
1522
- id: string;
1522
+ filter: Record<string, unknown>;
1523
1523
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1524
+ id: string;
1524
1525
  userId: string;
1525
- filter: Record<string, unknown>;
1526
- requestedAt: string;
1527
- completedAt: string | null;
1528
- entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1529
- columns: string[];
1530
1526
  user: {
1531
1527
  id: string;
1532
- lastName: string;
1533
1528
  firstName: string;
1529
+ lastName: string;
1534
1530
  phoneNumbers?: {
1535
1531
  id: string;
1536
1532
  phoneNumber: string;
@@ -1539,6 +1535,10 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1539
1535
  }[] | undefined;
1540
1536
  deletedAt?: string | Date | null | undefined;
1541
1537
  } | null;
1538
+ requestedAt: string;
1539
+ completedAt: string | null;
1540
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
1541
+ columns: string[];
1542
1542
  rowsProcessed: number;
1543
1543
  rowsSkipped: number;
1544
1544
  totalRows: number | null;
@@ -1563,18 +1563,14 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1563
1563
  field: string;
1564
1564
  dir: "ASC" | "DESC";
1565
1565
  }[];
1566
- id: string;
1566
+ filter: Record<string, unknown>;
1567
1567
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1568
+ id: string;
1568
1569
  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[];
1574
1570
  user: {
1575
1571
  id: string;
1576
- lastName: string;
1577
1572
  firstName: string;
1573
+ lastName: string;
1578
1574
  phoneNumbers: {
1579
1575
  id: string;
1580
1576
  phoneNumber: string;
@@ -1583,6 +1579,10 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1583
1579
  }[];
1584
1580
  deletedAt?: string | null | undefined;
1585
1581
  } | null;
1582
+ requestedAt: string;
1583
+ completedAt: string | null;
1584
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
1585
+ columns: string[];
1586
1586
  rowsProcessed: number;
1587
1587
  rowsSkipped: number;
1588
1588
  totalRows: number | null;
@@ -1598,18 +1598,14 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1598
1598
  }, {
1599
1599
  limit: number;
1600
1600
  items: {
1601
- id: string;
1601
+ filter: Record<string, unknown>;
1602
1602
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1603
+ id: string;
1603
1604
  userId: string;
1604
- filter: Record<string, unknown>;
1605
- requestedAt: string;
1606
- completedAt: string | null;
1607
- entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1608
- columns: string[];
1609
1605
  user: {
1610
1606
  id: string;
1611
- lastName: string;
1612
1607
  firstName: string;
1608
+ lastName: string;
1613
1609
  phoneNumbers?: {
1614
1610
  id: string;
1615
1611
  phoneNumber: string;
@@ -1618,6 +1614,10 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1618
1614
  }[] | undefined;
1619
1615
  deletedAt?: string | Date | null | undefined;
1620
1616
  } | null;
1617
+ requestedAt: string;
1618
+ completedAt: string | null;
1619
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
1620
+ columns: string[];
1621
1621
  rowsProcessed: number;
1622
1622
  rowsSkipped: number;
1623
1623
  totalRows: number | null;
@@ -1702,58 +1702,44 @@ export declare const exportJobsContract: {
1702
1702
  radius?: number | null | undefined;
1703
1703
  }>>>;
1704
1704
  }, "strip", z.ZodTypeAny, {
1705
+ userId?: string | null | undefined;
1706
+ clientId?: string | null | undefined;
1707
+ companyId?: string | null | undefined;
1708
+ tradeId?: string | null | undefined;
1705
1709
  location?: {
1706
1710
  postcode?: string | null | undefined;
1707
1711
  radius?: number | null | undefined;
1708
1712
  } | null | undefined;
1709
- tradeId?: string | null | undefined;
1713
+ }, {
1710
1714
  userId?: string | null | undefined;
1711
- companyId?: string | null | undefined;
1712
1715
  clientId?: string | null | undefined;
1713
- }, {
1716
+ companyId?: string | null | undefined;
1717
+ tradeId?: string | null | undefined;
1714
1718
  location?: {
1715
1719
  postcode?: string | null | undefined;
1716
1720
  radius?: number | null | undefined;
1717
1721
  } | null | undefined;
1718
- tradeId?: string | null | undefined;
1719
- userId?: string | null | undefined;
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: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
1727
+ field: "status" | "date" | "startDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "postcode" | "receivedRate" | "hoursWorked" | "firstAgent";
1728
1728
  order: "ASC" | "DESC";
1729
1729
  }, {
1730
- field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
1730
+ field: "status" | "date" | "startDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "postcode" | "receivedRate" | "hoursWorked" | "firstAgent";
1731
1731
  order: "ASC" | "DESC";
1732
1732
  }>, "many">>>;
1733
1733
  }, "strip", z.ZodTypeAny, {
1734
- page: number;
1735
1734
  limit: number;
1735
+ page: number;
1736
1736
  sort?: {
1737
- field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
1737
+ field: "status" | "date" | "startDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "postcode" | "receivedRate" | "hoursWorked" | "firstAgent";
1738
1738
  order: "ASC" | "DESC";
1739
1739
  }[] | null | undefined;
1740
- pay?: {
1741
- minRate?: number | null | undefined;
1742
- maxRate?: number | null | undefined;
1743
- } | null | undefined;
1744
1740
  status?: {
1745
1741
  status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1746
1742
  } | null | undefined;
1747
- job?: {
1748
- location?: {
1749
- postcode?: string | null | undefined;
1750
- radius?: number | null | undefined;
1751
- } | null | undefined;
1752
- tradeId?: string | null | undefined;
1753
- userId?: string | null | undefined;
1754
- companyId?: string | null | undefined;
1755
- clientId?: string | null | undefined;
1756
- } | null | undefined;
1757
1743
  date?: {
1758
1744
  from?: string | null | undefined;
1759
1745
  to?: string | null | undefined;
@@ -1762,30 +1748,28 @@ export declare const exportJobsContract: {
1762
1748
  value?: string | undefined;
1763
1749
  exact?: boolean | undefined;
1764
1750
  } | null | undefined;
1765
- agentId?: string | null | undefined;
1766
- }, {
1767
- sort?: {
1768
- field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
1769
- order: "ASC" | "DESC";
1770
- }[] | null | undefined;
1771
- page?: number | undefined;
1772
- limit?: number | undefined;
1773
1751
  pay?: {
1774
1752
  minRate?: number | null | undefined;
1775
1753
  maxRate?: number | null | undefined;
1776
1754
  } | null | undefined;
1777
- status?: {
1778
- status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1779
- } | null | undefined;
1755
+ agentId?: string | null | undefined;
1780
1756
  job?: {
1757
+ userId?: string | null | undefined;
1758
+ clientId?: string | null | undefined;
1759
+ companyId?: string | null | undefined;
1760
+ tradeId?: string | null | undefined;
1781
1761
  location?: {
1782
1762
  postcode?: string | null | undefined;
1783
1763
  radius?: number | null | undefined;
1784
1764
  } | null | undefined;
1785
- tradeId?: string | null | undefined;
1786
- userId?: string | null | undefined;
1787
- companyId?: string | null | undefined;
1788
- clientId?: string | null | undefined;
1765
+ } | null | undefined;
1766
+ }, {
1767
+ sort?: {
1768
+ field: "status" | "date" | "startDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "postcode" | "receivedRate" | "hoursWorked" | "firstAgent";
1769
+ order: "ASC" | "DESC";
1770
+ }[] | null | undefined;
1771
+ status?: {
1772
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1789
1773
  } | null | undefined;
1790
1774
  date?: {
1791
1775
  from?: string | null | undefined;
@@ -1795,7 +1779,23 @@ export declare const exportJobsContract: {
1795
1779
  value?: string | undefined;
1796
1780
  exact?: boolean | "true" | "false" | undefined;
1797
1781
  } | null | undefined;
1782
+ pay?: {
1783
+ minRate?: number | null | undefined;
1784
+ maxRate?: number | null | undefined;
1785
+ } | null | undefined;
1798
1786
  agentId?: string | null | undefined;
1787
+ job?: {
1788
+ userId?: string | null | undefined;
1789
+ clientId?: string | null | undefined;
1790
+ companyId?: string | null | undefined;
1791
+ tradeId?: string | null | undefined;
1792
+ location?: {
1793
+ postcode?: string | null | undefined;
1794
+ radius?: number | null | undefined;
1795
+ } | null | undefined;
1796
+ } | null | undefined;
1797
+ limit?: number | undefined;
1798
+ page?: number | undefined;
1799
1799
  }>;
1800
1800
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
1801
1801
  field: z.ZodString;
@@ -1814,29 +1814,15 @@ export declare const exportJobsContract: {
1814
1814
  dir: "ASC" | "DESC";
1815
1815
  }[];
1816
1816
  filter: {
1817
- page: number;
1818
1817
  limit: number;
1818
+ page: number;
1819
1819
  sort?: {
1820
- field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
1820
+ field: "status" | "date" | "startDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "postcode" | "receivedRate" | "hoursWorked" | "firstAgent";
1821
1821
  order: "ASC" | "DESC";
1822
1822
  }[] | null | undefined;
1823
- pay?: {
1824
- minRate?: number | null | undefined;
1825
- maxRate?: number | null | undefined;
1826
- } | null | undefined;
1827
1823
  status?: {
1828
1824
  status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1829
1825
  } | null | undefined;
1830
- job?: {
1831
- location?: {
1832
- postcode?: string | null | undefined;
1833
- radius?: number | null | undefined;
1834
- } | null | undefined;
1835
- tradeId?: string | null | undefined;
1836
- userId?: string | null | undefined;
1837
- companyId?: string | null | undefined;
1838
- clientId?: string | null | undefined;
1839
- } | null | undefined;
1840
1826
  date?: {
1841
1827
  from?: string | null | undefined;
1842
1828
  to?: string | null | undefined;
@@ -1845,35 +1831,33 @@ export declare const exportJobsContract: {
1845
1831
  value?: string | undefined;
1846
1832
  exact?: boolean | undefined;
1847
1833
  } | null | undefined;
1834
+ pay?: {
1835
+ minRate?: number | null | undefined;
1836
+ maxRate?: number | null | undefined;
1837
+ } | null | undefined;
1848
1838
  agentId?: string | null | undefined;
1839
+ job?: {
1840
+ userId?: string | null | undefined;
1841
+ clientId?: string | null | undefined;
1842
+ companyId?: string | null | undefined;
1843
+ tradeId?: string | null | undefined;
1844
+ location?: {
1845
+ postcode?: string | null | undefined;
1846
+ radius?: number | null | undefined;
1847
+ } | null | undefined;
1848
+ } | null | undefined;
1849
1849
  };
1850
1850
  entity: "actives";
1851
1851
  columns: string[];
1852
1852
  }, {
1853
- filter: {
1854
- sort?: {
1855
- field: "postcode" | "createdAt" | "updatedAt" | "status" | "startDate" | "hoursWorked" | "date" | "workerName" | "payRate" | "receivedRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "firstAgent";
1856
- order: "ASC" | "DESC";
1857
- }[] | null | undefined;
1858
- page?: number | undefined;
1859
- limit?: number | undefined;
1860
- pay?: {
1861
- minRate?: number | null | undefined;
1862
- maxRate?: number | null | undefined;
1863
- } | null | undefined;
1853
+ filter: {
1854
+ sort?: {
1855
+ field: "status" | "date" | "startDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "postcode" | "receivedRate" | "hoursWorked" | "firstAgent";
1856
+ order: "ASC" | "DESC";
1857
+ }[] | null | undefined;
1864
1858
  status?: {
1865
1859
  status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1866
1860
  } | null | undefined;
1867
- job?: {
1868
- location?: {
1869
- postcode?: string | null | undefined;
1870
- radius?: number | null | undefined;
1871
- } | null | undefined;
1872
- tradeId?: string | null | undefined;
1873
- userId?: string | null | undefined;
1874
- companyId?: string | null | undefined;
1875
- clientId?: string | null | undefined;
1876
- } | null | undefined;
1877
1861
  date?: {
1878
1862
  from?: string | null | undefined;
1879
1863
  to?: string | null | undefined;
@@ -1882,7 +1866,23 @@ export declare const exportJobsContract: {
1882
1866
  value?: string | undefined;
1883
1867
  exact?: boolean | "true" | "false" | undefined;
1884
1868
  } | null | undefined;
1869
+ pay?: {
1870
+ minRate?: number | null | undefined;
1871
+ maxRate?: number | null | undefined;
1872
+ } | null | undefined;
1885
1873
  agentId?: string | null | undefined;
1874
+ job?: {
1875
+ userId?: string | null | undefined;
1876
+ clientId?: string | null | undefined;
1877
+ companyId?: string | null | undefined;
1878
+ tradeId?: string | null | undefined;
1879
+ location?: {
1880
+ postcode?: string | null | undefined;
1881
+ radius?: number | null | undefined;
1882
+ } | null | undefined;
1883
+ } | null | undefined;
1884
+ limit?: number | undefined;
1885
+ page?: number | undefined;
1886
1886
  };
1887
1887
  entity: "actives";
1888
1888
  columns: string[];
@@ -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
+ clientId?: string | null | undefined;
1983
+ companyId?: string | null | undefined;
1984
+ tradeId?: string | null | undefined;
1981
1985
  location?: {
1982
1986
  postcode?: string | null | undefined;
1983
1987
  radius?: number | null | undefined;
1984
1988
  } | null | undefined;
1985
- tradeId?: string | null | undefined;
1989
+ }, {
1986
1990
  userId?: string | null | undefined;
1987
- companyId?: string | null | undefined;
1988
1991
  clientId?: string | null | undefined;
1989
- }, {
1992
+ companyId?: string | null | undefined;
1993
+ tradeId?: string | null | undefined;
1990
1994
  location?: {
1991
1995
  postcode?: string | null | undefined;
1992
1996
  radius?: number | null | undefined;
1993
1997
  } | null | undefined;
1994
- tradeId?: string | null | undefined;
1995
- userId?: string | null | undefined;
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,27 +2031,19 @@ 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: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
2034
+ field: "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt";
2035
2035
  order: "ASC" | "DESC";
2036
2036
  }, {
2037
- field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
2037
+ field: "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt";
2038
2038
  order: "ASC" | "DESC";
2039
2039
  }>, "many">>>;
2040
2040
  }, "strip", z.ZodTypeAny, {
2041
- page: number;
2042
2041
  limit: number;
2042
+ page: number;
2043
2043
  sort?: {
2044
- field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
2044
+ field: "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt";
2045
2045
  order: "ASC" | "DESC";
2046
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;
2055
2047
  status?: {
2056
2048
  category: "ATTEMPT";
2057
2049
  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;
@@ -2076,26 +2068,10 @@ export declare const exportJobsContract: {
2076
2068
  from?: string | null | undefined;
2077
2069
  to?: string | null | undefined;
2078
2070
  } | null | undefined;
2079
- job?: {
2080
- location?: {
2081
- postcode?: string | null | undefined;
2082
- radius?: number | null | undefined;
2083
- } | null | undefined;
2084
- tradeId?: string | null | undefined;
2085
- userId?: string | null | undefined;
2086
- companyId?: string | null | undefined;
2087
- clientId?: string | null | undefined;
2088
- } | null | undefined;
2089
2071
  workerName?: {
2090
2072
  value?: string | undefined;
2091
2073
  exact?: boolean | undefined;
2092
2074
  } | null | undefined;
2093
- agentId?: string | null | undefined;
2094
- }, {
2095
- sort?: {
2096
- field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
2097
- order: "ASC" | "DESC";
2098
- }[] | null | undefined;
2099
2075
  createdAt?: {
2100
2076
  from?: string | null | undefined;
2101
2077
  to?: string | null | undefined;
@@ -2104,8 +2080,22 @@ export declare const exportJobsContract: {
2104
2080
  from?: string | null | undefined;
2105
2081
  to?: string | null | undefined;
2106
2082
  } | null | undefined;
2107
- page?: number | undefined;
2108
- limit?: number | undefined;
2083
+ agentId?: string | null | undefined;
2084
+ job?: {
2085
+ userId?: string | null | undefined;
2086
+ clientId?: string | null | undefined;
2087
+ companyId?: string | null | undefined;
2088
+ tradeId?: string | null | undefined;
2089
+ location?: {
2090
+ postcode?: string | null | undefined;
2091
+ radius?: number | null | undefined;
2092
+ } | null | undefined;
2093
+ } | null | undefined;
2094
+ }, {
2095
+ sort?: {
2096
+ field: "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt";
2097
+ order: "ASC" | "DESC";
2098
+ }[] | null | undefined;
2109
2099
  status?: {
2110
2100
  category: "ATTEMPT";
2111
2101
  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;
@@ -2130,21 +2120,31 @@ export declare const exportJobsContract: {
2130
2120
  from?: string | null | undefined;
2131
2121
  to?: string | null | undefined;
2132
2122
  } | null | undefined;
2123
+ workerName?: {
2124
+ value?: string | undefined;
2125
+ exact?: boolean | "true" | "false" | undefined;
2126
+ } | null | undefined;
2127
+ createdAt?: {
2128
+ from?: string | null | undefined;
2129
+ to?: string | null | undefined;
2130
+ } | null | undefined;
2131
+ updatedAt?: {
2132
+ from?: string | null | undefined;
2133
+ to?: string | null | undefined;
2134
+ } | null | undefined;
2135
+ agentId?: string | null | undefined;
2133
2136
  job?: {
2137
+ userId?: string | null | undefined;
2138
+ clientId?: string | null | undefined;
2139
+ companyId?: string | null | undefined;
2140
+ tradeId?: string | null | undefined;
2134
2141
  location?: {
2135
2142
  postcode?: string | null | undefined;
2136
2143
  radius?: number | null | undefined;
2137
2144
  } | null | undefined;
2138
- tradeId?: string | null | undefined;
2139
- userId?: string | null | undefined;
2140
- companyId?: string | null | undefined;
2141
- clientId?: string | null | undefined;
2142
- } | null | undefined;
2143
- workerName?: {
2144
- value?: string | undefined;
2145
- exact?: boolean | "true" | "false" | undefined;
2146
2145
  } | null | undefined;
2147
- agentId?: string | null | undefined;
2146
+ limit?: number | undefined;
2147
+ page?: number | undefined;
2148
2148
  }>;
2149
2149
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
2150
2150
  field: z.ZodString;
@@ -2163,20 +2163,12 @@ export declare const exportJobsContract: {
2163
2163
  dir: "ASC" | "DESC";
2164
2164
  }[];
2165
2165
  filter: {
2166
- page: number;
2167
2166
  limit: number;
2167
+ page: number;
2168
2168
  sort?: {
2169
- field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
2169
+ field: "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt";
2170
2170
  order: "ASC" | "DESC";
2171
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;
2180
2172
  status?: {
2181
2173
  category: "ATTEMPT";
2182
2174
  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;
@@ -2201,40 +2193,38 @@ export declare const exportJobsContract: {
2201
2193
  from?: string | null | undefined;
2202
2194
  to?: string | null | undefined;
2203
2195
  } | null | undefined;
2196
+ workerName?: {
2197
+ value?: string | undefined;
2198
+ exact?: boolean | undefined;
2199
+ } | null | undefined;
2200
+ createdAt?: {
2201
+ from?: string | null | undefined;
2202
+ to?: string | null | undefined;
2203
+ } | null | undefined;
2204
+ updatedAt?: {
2205
+ from?: string | null | undefined;
2206
+ to?: string | null | undefined;
2207
+ } | null | undefined;
2208
+ agentId?: string | null | undefined;
2204
2209
  job?: {
2210
+ userId?: string | null | undefined;
2211
+ clientId?: string | null | undefined;
2212
+ companyId?: string | null | undefined;
2213
+ tradeId?: string | null | undefined;
2205
2214
  location?: {
2206
2215
  postcode?: string | null | undefined;
2207
2216
  radius?: number | null | undefined;
2208
2217
  } | null | undefined;
2209
- tradeId?: string | null | undefined;
2210
- userId?: string | null | undefined;
2211
- companyId?: string | null | undefined;
2212
- clientId?: string | null | undefined;
2213
- } | null | undefined;
2214
- workerName?: {
2215
- value?: string | undefined;
2216
- exact?: boolean | undefined;
2217
2218
  } | null | undefined;
2218
- agentId?: string | null | undefined;
2219
2219
  };
2220
2220
  entity: "bookings";
2221
2221
  columns: string[];
2222
2222
  }, {
2223
2223
  filter: {
2224
2224
  sort?: {
2225
- field: "createdAt" | "updatedAt" | "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
2225
+ field: "status" | "startDate" | "endDate" | "workerName" | "payRate" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt";
2226
2226
  order: "ASC" | "DESC";
2227
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;
2238
2228
  status?: {
2239
2229
  category: "ATTEMPT";
2240
2230
  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;
@@ -2259,21 +2249,31 @@ export declare const exportJobsContract: {
2259
2249
  from?: string | null | undefined;
2260
2250
  to?: string | null | undefined;
2261
2251
  } | null | undefined;
2252
+ workerName?: {
2253
+ value?: string | undefined;
2254
+ exact?: boolean | "true" | "false" | undefined;
2255
+ } | null | undefined;
2256
+ createdAt?: {
2257
+ from?: string | null | undefined;
2258
+ to?: string | null | undefined;
2259
+ } | null | undefined;
2260
+ updatedAt?: {
2261
+ from?: string | null | undefined;
2262
+ to?: string | null | undefined;
2263
+ } | null | undefined;
2264
+ agentId?: string | null | undefined;
2262
2265
  job?: {
2266
+ userId?: string | null | undefined;
2267
+ clientId?: string | null | undefined;
2268
+ companyId?: string | null | undefined;
2269
+ tradeId?: string | null | undefined;
2263
2270
  location?: {
2264
2271
  postcode?: string | null | undefined;
2265
2272
  radius?: number | null | undefined;
2266
2273
  } | null | undefined;
2267
- tradeId?: string | null | undefined;
2268
- userId?: string | null | undefined;
2269
- companyId?: string | null | undefined;
2270
- clientId?: string | null | undefined;
2271
- } | null | undefined;
2272
- workerName?: {
2273
- value?: string | undefined;
2274
- exact?: boolean | "true" | "false" | undefined;
2275
2274
  } | null | undefined;
2276
- agentId?: string | null | undefined;
2275
+ limit?: number | undefined;
2276
+ page?: number | undefined;
2277
2277
  };
2278
2278
  entity: "bookings";
2279
2279
  columns: string[];
@@ -2324,8 +2324,8 @@ export declare const exportJobsContract: {
2324
2324
  order: "ASC" | "DESC";
2325
2325
  }>, "many">>>;
2326
2326
  }, "strip", z.ZodTypeAny, {
2327
- page: number;
2328
2327
  limit: number;
2328
+ page: number;
2329
2329
  sort?: {
2330
2330
  field: import("../call-history/call-history.contract").CallHistorySortableFields;
2331
2331
  order: "ASC" | "DESC";
@@ -2334,16 +2334,16 @@ export declare const exportJobsContract: {
2334
2334
  from?: string | null | undefined;
2335
2335
  to?: string | null | undefined;
2336
2336
  } | null | undefined;
2337
+ companyId?: string | undefined;
2337
2338
  agentId?: string | undefined;
2338
2339
  phoneNumber?: string | undefined;
2340
+ leadName?: string | undefined;
2339
2341
  rating?: {
2340
2342
  from?: import("../common/call-rating.schema").CallRating | null | undefined;
2341
2343
  to?: import("../common/call-rating.schema").CallRating | null | undefined;
2342
2344
  } | null | undefined;
2343
2345
  callType?: import("../call-history/call-history.contract").CallType | undefined;
2344
- companyId?: string | undefined;
2345
2346
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
2346
- leadName?: string | undefined;
2347
2347
  }, {
2348
2348
  sort?: {
2349
2349
  field: import("../call-history/call-history.contract").CallHistorySortableFields;
@@ -2353,18 +2353,18 @@ export declare const exportJobsContract: {
2353
2353
  from?: string | null | undefined;
2354
2354
  to?: string | null | undefined;
2355
2355
  } | null | undefined;
2356
- page?: number | undefined;
2357
- limit?: number | undefined;
2356
+ companyId?: string | undefined;
2358
2357
  agentId?: string | undefined;
2359
2358
  phoneNumber?: string | undefined;
2359
+ leadName?: string | undefined;
2360
+ limit?: number | undefined;
2361
+ page?: number | undefined;
2360
2362
  rating?: {
2361
2363
  from?: unknown;
2362
2364
  to?: unknown;
2363
2365
  } | null | undefined;
2364
2366
  callType?: import("../call-history/call-history.contract").CallType | undefined;
2365
- companyId?: string | undefined;
2366
2367
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
2367
- leadName?: string | undefined;
2368
2368
  }>;
2369
2369
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
2370
2370
  field: z.ZodString;
@@ -2383,8 +2383,8 @@ export declare const exportJobsContract: {
2383
2383
  dir: "ASC" | "DESC";
2384
2384
  }[];
2385
2385
  filter: {
2386
- page: number;
2387
2386
  limit: number;
2387
+ page: number;
2388
2388
  sort?: {
2389
2389
  field: import("../call-history/call-history.contract").CallHistorySortableFields;
2390
2390
  order: "ASC" | "DESC";
@@ -2393,16 +2393,16 @@ export declare const exportJobsContract: {
2393
2393
  from?: string | null | undefined;
2394
2394
  to?: string | null | undefined;
2395
2395
  } | null | undefined;
2396
+ companyId?: string | undefined;
2396
2397
  agentId?: string | undefined;
2397
2398
  phoneNumber?: string | undefined;
2399
+ leadName?: string | undefined;
2398
2400
  rating?: {
2399
2401
  from?: import("../common/call-rating.schema").CallRating | null | undefined;
2400
2402
  to?: import("../common/call-rating.schema").CallRating | null | undefined;
2401
2403
  } | null | undefined;
2402
2404
  callType?: import("../call-history/call-history.contract").CallType | undefined;
2403
- companyId?: string | undefined;
2404
2405
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
2405
- leadName?: string | undefined;
2406
2406
  };
2407
2407
  entity: "call-history";
2408
2408
  columns: string[];
@@ -2416,18 +2416,18 @@ export declare const exportJobsContract: {
2416
2416
  from?: string | null | undefined;
2417
2417
  to?: string | null | undefined;
2418
2418
  } | null | undefined;
2419
- page?: number | undefined;
2420
- limit?: number | undefined;
2419
+ companyId?: string | undefined;
2421
2420
  agentId?: string | undefined;
2422
2421
  phoneNumber?: string | undefined;
2422
+ leadName?: string | undefined;
2423
+ limit?: number | undefined;
2424
+ page?: number | undefined;
2423
2425
  rating?: {
2424
2426
  from?: unknown;
2425
2427
  to?: unknown;
2426
2428
  } | null | undefined;
2427
2429
  callType?: import("../call-history/call-history.contract").CallType | undefined;
2428
- companyId?: string | undefined;
2429
2430
  leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
2430
- leadName?: string | undefined;
2431
2431
  };
2432
2432
  entity: "call-history";
2433
2433
  columns: string[];
@@ -2503,27 +2503,20 @@ 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: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2506
+ field: "status" | "startDate" | "payRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "tradeId" | "postcode" | "description" | "numberOfPositions" | "workHours" | "receivedRate" | "creationSource" | "distance" | "qualificationsCount";
2507
2507
  order: "ASC" | "DESC";
2508
2508
  }, {
2509
- field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2509
+ field: "status" | "startDate" | "payRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "tradeId" | "postcode" | "description" | "numberOfPositions" | "workHours" | "receivedRate" | "creationSource" | "distance" | "qualificationsCount";
2510
2510
  order: "ASC" | "DESC";
2511
2511
  }>, "many">>>;
2512
2512
  }, "strip", z.ZodTypeAny, {
2513
- page: number;
2514
2513
  limit: number;
2515
- qualificationFilters?: {
2516
- qualificationId?: string | undefined;
2517
- qualificationTypeId?: string | undefined;
2518
- }[] | undefined;
2514
+ page: number;
2519
2515
  sort?: {
2520
- field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2516
+ field: "status" | "startDate" | "payRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "tradeId" | "postcode" | "description" | "numberOfPositions" | "workHours" | "receivedRate" | "creationSource" | "distance" | "qualificationsCount";
2521
2517
  order: "ASC" | "DESC";
2522
2518
  }[] | null | undefined;
2523
- location?: {
2524
- postcode?: string | null | undefined;
2525
- radius?: number | null | undefined;
2526
- } | null | undefined;
2519
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2527
2520
  createdAt?: {
2528
2521
  from?: string | null | undefined;
2529
2522
  to?: string | null | undefined;
@@ -2532,31 +2525,31 @@ export declare const exportJobsContract: {
2532
2525
  from?: string | null | undefined;
2533
2526
  to?: string | null | undefined;
2534
2527
  } | null | undefined;
2535
- description?: string | null | undefined;
2536
- tradeId?: string | null | undefined;
2537
2528
  pay?: {
2538
2529
  minRate?: number | null | undefined;
2539
2530
  maxRate?: number | null | undefined;
2540
2531
  } | null | undefined;
2541
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2542
2532
  userId?: string | null | undefined;
2543
- outreachRequested?: "only_with" | "only_without" | null | undefined;
2544
- companyId?: string | null | undefined;
2545
2533
  clientId?: string | null | undefined;
2534
+ companyId?: string | null | undefined;
2535
+ tradeId?: string | null | undefined;
2536
+ location?: {
2537
+ postcode?: string | null | undefined;
2538
+ radius?: number | null | undefined;
2539
+ } | null | undefined;
2540
+ description?: string | null | undefined;
2546
2541
  creationSource?: "MANUAL" | "BOT" | null | undefined;
2547
- }, {
2548
2542
  qualificationFilters?: {
2549
2543
  qualificationId?: string | undefined;
2550
2544
  qualificationTypeId?: string | undefined;
2551
2545
  }[] | undefined;
2546
+ outreachRequested?: "only_with" | "only_without" | null | undefined;
2547
+ }, {
2552
2548
  sort?: {
2553
- field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2549
+ field: "status" | "startDate" | "payRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "tradeId" | "postcode" | "description" | "numberOfPositions" | "workHours" | "receivedRate" | "creationSource" | "distance" | "qualificationsCount";
2554
2550
  order: "ASC" | "DESC";
2555
2551
  }[] | null | undefined;
2556
- location?: {
2557
- postcode?: string | null | undefined;
2558
- radius?: number | null | undefined;
2559
- } | null | undefined;
2552
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2560
2553
  createdAt?: {
2561
2554
  from?: string | null | undefined;
2562
2555
  to?: string | null | undefined;
@@ -2565,20 +2558,27 @@ export declare const exportJobsContract: {
2565
2558
  from?: string | null | undefined;
2566
2559
  to?: string | null | undefined;
2567
2560
  } | null | undefined;
2568
- page?: number | undefined;
2569
- limit?: number | undefined;
2570
- description?: string | null | undefined;
2571
- tradeId?: string | null | undefined;
2572
2561
  pay?: {
2573
2562
  minRate?: number | null | undefined;
2574
2563
  maxRate?: number | null | undefined;
2575
2564
  } | null | undefined;
2576
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2577
2565
  userId?: string | null | undefined;
2578
- outreachRequested?: "only_with" | "only_without" | null | undefined;
2579
- companyId?: string | null | undefined;
2580
2566
  clientId?: string | null | undefined;
2567
+ companyId?: string | null | undefined;
2568
+ tradeId?: string | null | undefined;
2569
+ location?: {
2570
+ postcode?: string | null | undefined;
2571
+ radius?: number | null | undefined;
2572
+ } | null | undefined;
2573
+ description?: string | null | undefined;
2581
2574
  creationSource?: "MANUAL" | "BOT" | null | undefined;
2575
+ limit?: number | undefined;
2576
+ page?: number | undefined;
2577
+ qualificationFilters?: {
2578
+ qualificationId?: string | undefined;
2579
+ qualificationTypeId?: string | undefined;
2580
+ }[] | undefined;
2581
+ outreachRequested?: "only_with" | "only_without" | null | undefined;
2582
2582
  }>;
2583
2583
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
2584
2584
  field: z.ZodString;
@@ -2597,20 +2597,13 @@ export declare const exportJobsContract: {
2597
2597
  dir: "ASC" | "DESC";
2598
2598
  }[];
2599
2599
  filter: {
2600
- page: number;
2601
2600
  limit: number;
2602
- qualificationFilters?: {
2603
- qualificationId?: string | undefined;
2604
- qualificationTypeId?: string | undefined;
2605
- }[] | undefined;
2601
+ page: number;
2606
2602
  sort?: {
2607
- field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2603
+ field: "status" | "startDate" | "payRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "tradeId" | "postcode" | "description" | "numberOfPositions" | "workHours" | "receivedRate" | "creationSource" | "distance" | "qualificationsCount";
2608
2604
  order: "ASC" | "DESC";
2609
2605
  }[] | null | undefined;
2610
- location?: {
2611
- postcode?: string | null | undefined;
2612
- radius?: number | null | undefined;
2613
- } | null | undefined;
2606
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2614
2607
  createdAt?: {
2615
2608
  from?: string | null | undefined;
2616
2609
  to?: string | null | undefined;
@@ -2619,35 +2612,35 @@ export declare const exportJobsContract: {
2619
2612
  from?: string | null | undefined;
2620
2613
  to?: string | null | undefined;
2621
2614
  } | null | undefined;
2622
- description?: string | null | undefined;
2623
- tradeId?: string | null | undefined;
2624
2615
  pay?: {
2625
2616
  minRate?: number | null | undefined;
2626
2617
  maxRate?: number | null | undefined;
2627
2618
  } | null | undefined;
2628
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2629
2619
  userId?: string | null | undefined;
2630
- outreachRequested?: "only_with" | "only_without" | null | undefined;
2631
- companyId?: string | null | undefined;
2632
2620
  clientId?: string | null | undefined;
2621
+ companyId?: string | null | undefined;
2622
+ tradeId?: string | null | undefined;
2623
+ location?: {
2624
+ postcode?: string | null | undefined;
2625
+ radius?: number | null | undefined;
2626
+ } | null | undefined;
2627
+ description?: string | null | undefined;
2633
2628
  creationSource?: "MANUAL" | "BOT" | null | undefined;
2629
+ qualificationFilters?: {
2630
+ qualificationId?: string | undefined;
2631
+ qualificationTypeId?: string | undefined;
2632
+ }[] | undefined;
2633
+ outreachRequested?: "only_with" | "only_without" | null | undefined;
2634
2634
  };
2635
2635
  entity: "jobs";
2636
2636
  columns: string[];
2637
2637
  }, {
2638
2638
  filter: {
2639
- qualificationFilters?: {
2640
- qualificationId?: string | undefined;
2641
- qualificationTypeId?: string | undefined;
2642
- }[] | undefined;
2643
2639
  sort?: {
2644
- field: "postcode" | "distance" | "createdAt" | "updatedAt" | "qualificationsCount" | "description" | "tradeId" | "numberOfPositions" | "workHours" | "status" | "startDate" | "payRate" | "receivedRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
2640
+ field: "status" | "startDate" | "payRate" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "createdAt" | "updatedAt" | "tradeId" | "postcode" | "description" | "numberOfPositions" | "workHours" | "receivedRate" | "creationSource" | "distance" | "qualificationsCount";
2645
2641
  order: "ASC" | "DESC";
2646
2642
  }[] | null | undefined;
2647
- location?: {
2648
- postcode?: string | null | undefined;
2649
- radius?: number | null | undefined;
2650
- } | null | undefined;
2643
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2651
2644
  createdAt?: {
2652
2645
  from?: string | null | undefined;
2653
2646
  to?: string | null | undefined;
@@ -2656,20 +2649,27 @@ export declare const exportJobsContract: {
2656
2649
  from?: string | null | undefined;
2657
2650
  to?: string | null | undefined;
2658
2651
  } | null | undefined;
2659
- page?: number | undefined;
2660
- limit?: number | undefined;
2661
- description?: string | null | undefined;
2662
- tradeId?: string | null | undefined;
2663
2652
  pay?: {
2664
2653
  minRate?: number | null | undefined;
2665
2654
  maxRate?: number | null | undefined;
2666
2655
  } | null | undefined;
2667
- status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2668
2656
  userId?: string | null | undefined;
2669
- outreachRequested?: "only_with" | "only_without" | null | undefined;
2670
- companyId?: string | null | undefined;
2671
2657
  clientId?: string | null | undefined;
2658
+ companyId?: string | null | undefined;
2659
+ tradeId?: string | null | undefined;
2660
+ location?: {
2661
+ postcode?: string | null | undefined;
2662
+ radius?: number | null | undefined;
2663
+ } | null | undefined;
2664
+ description?: string | null | undefined;
2672
2665
  creationSource?: "MANUAL" | "BOT" | null | undefined;
2666
+ limit?: number | undefined;
2667
+ page?: number | undefined;
2668
+ qualificationFilters?: {
2669
+ qualificationId?: string | undefined;
2670
+ qualificationTypeId?: string | undefined;
2671
+ }[] | undefined;
2672
+ outreachRequested?: "only_with" | "only_without" | null | undefined;
2673
2673
  };
2674
2674
  entity: "jobs";
2675
2675
  columns: string[];
@@ -2722,22 +2722,20 @@ 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: "email" | "createdAt" | "lastName" | "firstName" | "office";
2725
+ field: "createdAt" | "firstName" | "lastName" | "email" | "office";
2726
2726
  order: "ASC" | "DESC";
2727
2727
  }, {
2728
- field: "email" | "createdAt" | "lastName" | "firstName" | "office";
2728
+ field: "createdAt" | "firstName" | "lastName" | "email" | "office";
2729
2729
  order: "ASC" | "DESC";
2730
2730
  }>, "many">>>;
2731
2731
  }, "strip", z.ZodTypeAny, {
2732
- page: number;
2733
2732
  limit: number;
2734
- name?: string | undefined;
2735
- email?: string | undefined;
2736
- phone?: string | undefined;
2733
+ page: number;
2737
2734
  sort?: {
2738
- field: "email" | "createdAt" | "lastName" | "firstName" | "office";
2735
+ field: "createdAt" | "firstName" | "lastName" | "email" | "office";
2739
2736
  order: "ASC" | "DESC";
2740
2737
  }[] | null | undefined;
2738
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2741
2739
  createdAt?: {
2742
2740
  from?: string | null | undefined;
2743
2741
  to?: string | null | undefined;
@@ -2746,20 +2744,20 @@ export declare const exportJobsContract: {
2746
2744
  from?: string | null | undefined;
2747
2745
  to?: string | null | undefined;
2748
2746
  } | null | undefined;
2749
- status?: "ACTIVE" | "INACTIVE" | undefined;
2747
+ name?: string | undefined;
2748
+ email?: string | undefined;
2750
2749
  roles?: {
2751
2750
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2752
2751
  requireAll?: boolean | undefined;
2753
2752
  } | undefined;
2754
2753
  officeId?: string | undefined;
2755
- }, {
2756
- name?: string | undefined;
2757
- email?: string | undefined;
2758
2754
  phone?: string | undefined;
2755
+ }, {
2759
2756
  sort?: {
2760
- field: "email" | "createdAt" | "lastName" | "firstName" | "office";
2757
+ field: "createdAt" | "firstName" | "lastName" | "email" | "office";
2761
2758
  order: "ASC" | "DESC";
2762
2759
  }[] | null | undefined;
2760
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2763
2761
  createdAt?: {
2764
2762
  from?: string | null | undefined;
2765
2763
  to?: string | null | undefined;
@@ -2768,14 +2766,16 @@ export declare const exportJobsContract: {
2768
2766
  from?: string | null | undefined;
2769
2767
  to?: string | null | undefined;
2770
2768
  } | null | undefined;
2771
- page?: number | undefined;
2772
- limit?: number | undefined;
2773
- status?: "ACTIVE" | "INACTIVE" | undefined;
2769
+ name?: string | undefined;
2770
+ email?: string | undefined;
2774
2771
  roles?: {
2775
2772
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2776
2773
  requireAll?: unknown;
2777
2774
  } | undefined;
2778
2775
  officeId?: string | undefined;
2776
+ limit?: number | undefined;
2777
+ page?: number | undefined;
2778
+ phone?: string | undefined;
2779
2779
  }>;
2780
2780
  sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
2781
2781
  field: z.ZodString;
@@ -2794,15 +2794,13 @@ export declare const exportJobsContract: {
2794
2794
  dir: "ASC" | "DESC";
2795
2795
  }[];
2796
2796
  filter: {
2797
- page: number;
2798
2797
  limit: number;
2799
- name?: string | undefined;
2800
- email?: string | undefined;
2801
- phone?: string | undefined;
2798
+ page: number;
2802
2799
  sort?: {
2803
- field: "email" | "createdAt" | "lastName" | "firstName" | "office";
2800
+ field: "createdAt" | "firstName" | "lastName" | "email" | "office";
2804
2801
  order: "ASC" | "DESC";
2805
2802
  }[] | null | undefined;
2803
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2806
2804
  createdAt?: {
2807
2805
  from?: string | null | undefined;
2808
2806
  to?: string | null | undefined;
@@ -2811,24 +2809,24 @@ export declare const exportJobsContract: {
2811
2809
  from?: string | null | undefined;
2812
2810
  to?: string | null | undefined;
2813
2811
  } | null | undefined;
2814
- status?: "ACTIVE" | "INACTIVE" | undefined;
2812
+ name?: string | undefined;
2813
+ email?: string | undefined;
2815
2814
  roles?: {
2816
2815
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2817
2816
  requireAll?: boolean | undefined;
2818
2817
  } | undefined;
2819
2818
  officeId?: string | undefined;
2819
+ phone?: string | undefined;
2820
2820
  };
2821
2821
  entity: "users";
2822
2822
  columns: string[];
2823
2823
  }, {
2824
2824
  filter: {
2825
- name?: string | undefined;
2826
- email?: string | undefined;
2827
- phone?: string | undefined;
2828
2825
  sort?: {
2829
- field: "email" | "createdAt" | "lastName" | "firstName" | "office";
2826
+ field: "createdAt" | "firstName" | "lastName" | "email" | "office";
2830
2827
  order: "ASC" | "DESC";
2831
2828
  }[] | null | undefined;
2829
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2832
2830
  createdAt?: {
2833
2831
  from?: string | null | undefined;
2834
2832
  to?: string | null | undefined;
@@ -2837,14 +2835,16 @@ export declare const exportJobsContract: {
2837
2835
  from?: string | null | undefined;
2838
2836
  to?: string | null | undefined;
2839
2837
  } | null | undefined;
2840
- page?: number | undefined;
2841
- limit?: number | undefined;
2842
- status?: "ACTIVE" | "INACTIVE" | undefined;
2838
+ name?: string | undefined;
2839
+ email?: string | undefined;
2843
2840
  roles?: {
2844
2841
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
2845
2842
  requireAll?: unknown;
2846
2843
  } | undefined;
2847
2844
  officeId?: string | undefined;
2845
+ limit?: number | undefined;
2846
+ page?: number | undefined;
2847
+ phone?: string | undefined;
2848
2848
  };
2849
2849
  entity: "users";
2850
2850
  columns: string[];
@@ -2881,8 +2881,8 @@ export declare const exportJobsContract: {
2881
2881
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
2882
2882
  }, "strip", z.ZodTypeAny, {
2883
2883
  id: string;
2884
- lastName: string;
2885
2884
  firstName: string;
2885
+ lastName: string;
2886
2886
  phoneNumbers: {
2887
2887
  id: string;
2888
2888
  phoneNumber: string;
@@ -2892,8 +2892,8 @@ export declare const exportJobsContract: {
2892
2892
  deletedAt?: string | null | undefined;
2893
2893
  }, {
2894
2894
  id: string;
2895
- lastName: string;
2896
2895
  firstName: string;
2896
+ lastName: string;
2897
2897
  phoneNumbers?: {
2898
2898
  id: string;
2899
2899
  phoneNumber: string;
@@ -2930,18 +2930,14 @@ export declare const exportJobsContract: {
2930
2930
  field: string;
2931
2931
  dir: "ASC" | "DESC";
2932
2932
  }[];
2933
- id: string;
2933
+ filter: Record<string, unknown>;
2934
2934
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
2935
+ id: string;
2935
2936
  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[];
2941
2937
  user: {
2942
2938
  id: string;
2943
- lastName: string;
2944
2939
  firstName: string;
2940
+ lastName: string;
2945
2941
  phoneNumbers: {
2946
2942
  id: string;
2947
2943
  phoneNumber: string;
@@ -2950,6 +2946,10 @@ export declare const exportJobsContract: {
2950
2946
  }[];
2951
2947
  deletedAt?: string | null | undefined;
2952
2948
  } | null;
2949
+ requestedAt: string;
2950
+ completedAt: string | null;
2951
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
2952
+ columns: string[];
2953
2953
  rowsProcessed: number;
2954
2954
  rowsSkipped: number;
2955
2955
  totalRows: number | null;
@@ -2958,18 +2958,14 @@ export declare const exportJobsContract: {
2958
2958
  startedAt: string | null;
2959
2959
  expiresAt: string;
2960
2960
  }, {
2961
- id: string;
2961
+ filter: Record<string, unknown>;
2962
2962
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
2963
+ id: string;
2963
2964
  userId: string;
2964
- filter: Record<string, unknown>;
2965
- requestedAt: string;
2966
- completedAt: string | null;
2967
- entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
2968
- columns: string[];
2969
2965
  user: {
2970
2966
  id: string;
2971
- lastName: string;
2972
2967
  firstName: string;
2968
+ lastName: string;
2973
2969
  phoneNumbers?: {
2974
2970
  id: string;
2975
2971
  phoneNumber: string;
@@ -2978,6 +2974,10 @@ export declare const exportJobsContract: {
2978
2974
  }[] | undefined;
2979
2975
  deletedAt?: string | Date | null | undefined;
2980
2976
  } | null;
2977
+ requestedAt: string;
2978
+ completedAt: string | null;
2979
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
2980
+ columns: string[];
2981
2981
  rowsProcessed: number;
2982
2982
  rowsSkipped: number;
2983
2983
  totalRows: number | null;
@@ -3035,8 +3035,8 @@ export declare const exportJobsContract: {
3035
3035
  order: "ASC" | "DESC";
3036
3036
  }>, "many">>>;
3037
3037
  }, "strip", z.ZodTypeAny, {
3038
- page: number;
3039
3038
  limit: number;
3039
+ page: number;
3040
3040
  sort?: {
3041
3041
  field: "status" | "requestedAt" | "completedAt" | "entity";
3042
3042
  order: "ASC" | "DESC";
@@ -3047,21 +3047,21 @@ export declare const exportJobsContract: {
3047
3047
  from?: string | null | undefined;
3048
3048
  to?: string | null | undefined;
3049
3049
  } | null | undefined;
3050
- entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
3050
+ entity?: "bookings" | "actives" | "call-history" | "jobs" | "users" | undefined;
3051
3051
  }, {
3052
3052
  sort?: {
3053
3053
  field: "status" | "requestedAt" | "completedAt" | "entity";
3054
3054
  order: "ASC" | "DESC";
3055
3055
  }[] | null | undefined;
3056
- page?: number | undefined;
3057
- limit?: number | undefined;
3058
3056
  status?: "pending" | "processing" | "completed" | "failed" | "cancelled" | undefined;
3059
3057
  userId?: string | undefined;
3058
+ limit?: number | undefined;
3059
+ page?: number | undefined;
3060
3060
  requestedAt?: {
3061
3061
  from?: string | null | undefined;
3062
3062
  to?: string | null | undefined;
3063
3063
  } | null | undefined;
3064
- entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
3064
+ entity?: "bookings" | "actives" | "call-history" | "jobs" | "users" | undefined;
3065
3065
  }>;
3066
3066
  summary: "List export jobs the caller is allowed to see";
3067
3067
  method: "GET";
@@ -3094,8 +3094,8 @@ export declare const exportJobsContract: {
3094
3094
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
3095
3095
  }, "strip", z.ZodTypeAny, {
3096
3096
  id: string;
3097
- lastName: string;
3098
3097
  firstName: string;
3098
+ lastName: string;
3099
3099
  phoneNumbers: {
3100
3100
  id: string;
3101
3101
  phoneNumber: string;
@@ -3105,8 +3105,8 @@ export declare const exportJobsContract: {
3105
3105
  deletedAt?: string | null | undefined;
3106
3106
  }, {
3107
3107
  id: string;
3108
- lastName: string;
3109
3108
  firstName: string;
3109
+ lastName: string;
3110
3110
  phoneNumbers?: {
3111
3111
  id: string;
3112
3112
  phoneNumber: string;
@@ -3143,18 +3143,14 @@ export declare const exportJobsContract: {
3143
3143
  field: string;
3144
3144
  dir: "ASC" | "DESC";
3145
3145
  }[];
3146
- id: string;
3146
+ filter: Record<string, unknown>;
3147
3147
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3148
+ id: string;
3148
3149
  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[];
3154
3150
  user: {
3155
3151
  id: string;
3156
- lastName: string;
3157
3152
  firstName: string;
3153
+ lastName: string;
3158
3154
  phoneNumbers: {
3159
3155
  id: string;
3160
3156
  phoneNumber: string;
@@ -3163,6 +3159,10 @@ export declare const exportJobsContract: {
3163
3159
  }[];
3164
3160
  deletedAt?: string | null | undefined;
3165
3161
  } | null;
3162
+ requestedAt: string;
3163
+ completedAt: string | null;
3164
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
3165
+ columns: string[];
3166
3166
  rowsProcessed: number;
3167
3167
  rowsSkipped: number;
3168
3168
  totalRows: number | null;
@@ -3171,18 +3171,14 @@ export declare const exportJobsContract: {
3171
3171
  startedAt: string | null;
3172
3172
  expiresAt: string;
3173
3173
  }, {
3174
- id: string;
3174
+ filter: Record<string, unknown>;
3175
3175
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3176
+ id: string;
3176
3177
  userId: string;
3177
- filter: Record<string, unknown>;
3178
- requestedAt: string;
3179
- completedAt: string | null;
3180
- entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3181
- columns: string[];
3182
3178
  user: {
3183
3179
  id: string;
3184
- lastName: string;
3185
3180
  firstName: string;
3181
+ lastName: string;
3186
3182
  phoneNumbers?: {
3187
3183
  id: string;
3188
3184
  phoneNumber: string;
@@ -3191,6 +3187,10 @@ export declare const exportJobsContract: {
3191
3187
  }[] | undefined;
3192
3188
  deletedAt?: string | Date | null | undefined;
3193
3189
  } | null;
3190
+ requestedAt: string;
3191
+ completedAt: string | null;
3192
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
3193
+ columns: string[];
3194
3194
  rowsProcessed: number;
3195
3195
  rowsSkipped: number;
3196
3196
  totalRows: number | null;
@@ -3215,18 +3215,14 @@ export declare const exportJobsContract: {
3215
3215
  field: string;
3216
3216
  dir: "ASC" | "DESC";
3217
3217
  }[];
3218
- id: string;
3218
+ filter: Record<string, unknown>;
3219
3219
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3220
+ id: string;
3220
3221
  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[];
3226
3222
  user: {
3227
3223
  id: string;
3228
- lastName: string;
3229
3224
  firstName: string;
3225
+ lastName: string;
3230
3226
  phoneNumbers: {
3231
3227
  id: string;
3232
3228
  phoneNumber: string;
@@ -3235,6 +3231,10 @@ export declare const exportJobsContract: {
3235
3231
  }[];
3236
3232
  deletedAt?: string | null | undefined;
3237
3233
  } | null;
3234
+ requestedAt: string;
3235
+ completedAt: string | null;
3236
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
3237
+ columns: string[];
3238
3238
  rowsProcessed: number;
3239
3239
  rowsSkipped: number;
3240
3240
  totalRows: number | null;
@@ -3250,18 +3250,14 @@ export declare const exportJobsContract: {
3250
3250
  }, {
3251
3251
  limit: number;
3252
3252
  items: {
3253
- id: string;
3253
+ filter: Record<string, unknown>;
3254
3254
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3255
+ id: string;
3255
3256
  userId: string;
3256
- filter: Record<string, unknown>;
3257
- requestedAt: string;
3258
- completedAt: string | null;
3259
- entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3260
- columns: string[];
3261
3257
  user: {
3262
3258
  id: string;
3263
- lastName: string;
3264
3259
  firstName: string;
3260
+ lastName: string;
3265
3261
  phoneNumbers?: {
3266
3262
  id: string;
3267
3263
  phoneNumber: string;
@@ -3270,6 +3266,10 @@ export declare const exportJobsContract: {
3270
3266
  }[] | undefined;
3271
3267
  deletedAt?: string | Date | null | undefined;
3272
3268
  } | null;
3269
+ requestedAt: string;
3270
+ completedAt: string | null;
3271
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
3272
+ columns: string[];
3273
3273
  rowsProcessed: number;
3274
3274
  rowsSkipped: number;
3275
3275
  totalRows: number | null;
@@ -3327,8 +3327,8 @@ export declare const exportJobsContract: {
3327
3327
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
3328
3328
  }, "strip", z.ZodTypeAny, {
3329
3329
  id: string;
3330
- lastName: string;
3331
3330
  firstName: string;
3331
+ lastName: string;
3332
3332
  phoneNumbers: {
3333
3333
  id: string;
3334
3334
  phoneNumber: string;
@@ -3338,8 +3338,8 @@ export declare const exportJobsContract: {
3338
3338
  deletedAt?: string | null | undefined;
3339
3339
  }, {
3340
3340
  id: string;
3341
- lastName: string;
3342
3341
  firstName: string;
3342
+ lastName: string;
3343
3343
  phoneNumbers?: {
3344
3344
  id: string;
3345
3345
  phoneNumber: string;
@@ -3376,18 +3376,14 @@ export declare const exportJobsContract: {
3376
3376
  field: string;
3377
3377
  dir: "ASC" | "DESC";
3378
3378
  }[];
3379
- id: string;
3379
+ filter: Record<string, unknown>;
3380
3380
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3381
+ id: string;
3381
3382
  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[];
3387
3383
  user: {
3388
3384
  id: string;
3389
- lastName: string;
3390
3385
  firstName: string;
3386
+ lastName: string;
3391
3387
  phoneNumbers: {
3392
3388
  id: string;
3393
3389
  phoneNumber: string;
@@ -3396,6 +3392,10 @@ export declare const exportJobsContract: {
3396
3392
  }[];
3397
3393
  deletedAt?: string | null | undefined;
3398
3394
  } | null;
3395
+ requestedAt: string;
3396
+ completedAt: string | null;
3397
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
3398
+ columns: string[];
3399
3399
  rowsProcessed: number;
3400
3400
  rowsSkipped: number;
3401
3401
  totalRows: number | null;
@@ -3404,18 +3404,14 @@ export declare const exportJobsContract: {
3404
3404
  startedAt: string | null;
3405
3405
  expiresAt: string;
3406
3406
  }, {
3407
- id: string;
3407
+ filter: Record<string, unknown>;
3408
3408
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3409
+ id: string;
3409
3410
  userId: string;
3410
- filter: Record<string, unknown>;
3411
- requestedAt: string;
3412
- completedAt: string | null;
3413
- entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3414
- columns: string[];
3415
3411
  user: {
3416
3412
  id: string;
3417
- lastName: string;
3418
3413
  firstName: string;
3414
+ lastName: string;
3419
3415
  phoneNumbers?: {
3420
3416
  id: string;
3421
3417
  phoneNumber: string;
@@ -3424,6 +3420,10 @@ export declare const exportJobsContract: {
3424
3420
  }[] | undefined;
3425
3421
  deletedAt?: string | Date | null | undefined;
3426
3422
  } | null;
3423
+ requestedAt: string;
3424
+ completedAt: string | null;
3425
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
3426
+ columns: string[];
3427
3427
  rowsProcessed: number;
3428
3428
  rowsSkipped: number;
3429
3429
  totalRows: number | null;
@@ -3484,8 +3484,8 @@ export declare const exportJobsContract: {
3484
3484
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
3485
3485
  }, "strip", z.ZodTypeAny, {
3486
3486
  id: string;
3487
- lastName: string;
3488
3487
  firstName: string;
3488
+ lastName: string;
3489
3489
  phoneNumbers: {
3490
3490
  id: string;
3491
3491
  phoneNumber: string;
@@ -3495,8 +3495,8 @@ export declare const exportJobsContract: {
3495
3495
  deletedAt?: string | null | undefined;
3496
3496
  }, {
3497
3497
  id: string;
3498
- lastName: string;
3499
3498
  firstName: string;
3499
+ lastName: string;
3500
3500
  phoneNumbers?: {
3501
3501
  id: string;
3502
3502
  phoneNumber: string;
@@ -3533,18 +3533,14 @@ export declare const exportJobsContract: {
3533
3533
  field: string;
3534
3534
  dir: "ASC" | "DESC";
3535
3535
  }[];
3536
- id: string;
3536
+ filter: Record<string, unknown>;
3537
3537
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3538
+ id: string;
3538
3539
  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[];
3544
3540
  user: {
3545
3541
  id: string;
3546
- lastName: string;
3547
3542
  firstName: string;
3543
+ lastName: string;
3548
3544
  phoneNumbers: {
3549
3545
  id: string;
3550
3546
  phoneNumber: string;
@@ -3553,6 +3549,10 @@ export declare const exportJobsContract: {
3553
3549
  }[];
3554
3550
  deletedAt?: string | null | undefined;
3555
3551
  } | null;
3552
+ requestedAt: string;
3553
+ completedAt: string | null;
3554
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
3555
+ columns: string[];
3556
3556
  rowsProcessed: number;
3557
3557
  rowsSkipped: number;
3558
3558
  totalRows: number | null;
@@ -3561,18 +3561,14 @@ export declare const exportJobsContract: {
3561
3561
  startedAt: string | null;
3562
3562
  expiresAt: string;
3563
3563
  }, {
3564
- id: string;
3564
+ filter: Record<string, unknown>;
3565
3565
  status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3566
+ id: string;
3566
3567
  userId: string;
3567
- filter: Record<string, unknown>;
3568
- requestedAt: string;
3569
- completedAt: string | null;
3570
- entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3571
- columns: string[];
3572
3568
  user: {
3573
3569
  id: string;
3574
- lastName: string;
3575
3570
  firstName: string;
3571
+ lastName: string;
3576
3572
  phoneNumbers?: {
3577
3573
  id: string;
3578
3574
  phoneNumber: string;
@@ -3581,6 +3577,10 @@ export declare const exportJobsContract: {
3581
3577
  }[] | undefined;
3582
3578
  deletedAt?: string | Date | null | undefined;
3583
3579
  } | null;
3580
+ requestedAt: string;
3581
+ completedAt: string | null;
3582
+ entity: "bookings" | "actives" | "call-history" | "jobs" | "users";
3583
+ columns: string[];
3584
3584
  rowsProcessed: number;
3585
3585
  rowsSkipped: number;
3586
3586
  totalRows: number | null;