@dakkitor/api-contracts 1.7.1 → 1.9.1

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