@dakkitor/api-contracts 1.8.0 → 1.9.2

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