@dakkitor/api-contracts 1.1.154 → 1.4.0

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 (340) hide show
  1. package/dist/abilities/abilities.contract.d.ts +53 -1
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +92 -1
  4. package/dist/abilities/abilities.contract.spec.d.ts +2 -0
  5. package/dist/abilities/abilities.contract.spec.d.ts.map +1 -0
  6. package/dist/abilities/abilities.contract.spec.js +145 -0
  7. package/dist/abilities/admin-dashboard.abilities.test.d.ts +2 -0
  8. package/dist/abilities/admin-dashboard.abilities.test.d.ts.map +1 -0
  9. package/dist/abilities/admin-dashboard.abilities.test.js +33 -0
  10. package/dist/abilities/admin.abilities.json +19 -0
  11. package/dist/abilities/bot.abilities.json +13 -4
  12. package/dist/abilities/first-agent.abilities.json +317 -70
  13. package/dist/abilities/interconnection.abilities.json +75 -0
  14. package/dist/abilities/kpi.abilities.json +68 -0
  15. package/dist/abilities/office-manager.abilities.json +111 -0
  16. package/dist/abilities/second-agent.abilities.json +417 -43
  17. package/dist/abilities/team-leads.json +71 -6
  18. package/dist/abilities/worker-curator.abilities.json +233 -0
  19. package/dist/actives/actives.contract.d.ts +19379 -23651
  20. package/dist/actives/actives.contract.d.ts.map +1 -1
  21. package/dist/actives/actives.contract.js +517 -114
  22. package/dist/agent-client-links/agent-client-links.contract.d.ts +1431 -291
  23. package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
  24. package/dist/auth/auth.contract.d.ts +1050 -81
  25. package/dist/auth/auth.contract.d.ts.map +1 -1
  26. package/dist/auth/auth.contract.js +115 -3
  27. package/dist/bookings/booking-worker-summary.spec.d.ts +2 -0
  28. package/dist/bookings/booking-worker-summary.spec.d.ts.map +1 -0
  29. package/dist/bookings/booking-worker-summary.spec.js +25 -0
  30. package/dist/bookings/bookings.contract.d.ts +20643 -26117
  31. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  32. package/dist/bookings/bookings.contract.js +383 -91
  33. package/dist/bookings/bookings.contract.spec.d.ts +2 -0
  34. package/dist/bookings/bookings.contract.spec.d.ts.map +1 -0
  35. package/dist/bookings/bookings.contract.spec.js +11 -0
  36. package/dist/bookings/job-lock.spec.d.ts +2 -0
  37. package/dist/bookings/job-lock.spec.d.ts.map +1 -0
  38. package/dist/bookings/job-lock.spec.js +56 -0
  39. package/dist/bot-parse-cache/bot-parse-cache.contract.d.ts +232 -0
  40. package/dist/bot-parse-cache/bot-parse-cache.contract.d.ts.map +1 -0
  41. package/dist/bot-parse-cache/bot-parse-cache.contract.js +64 -0
  42. package/dist/call-history/call-history.contract.d.ts +1336 -767
  43. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  44. package/dist/call-history/call-history.contract.js +86 -10
  45. package/dist/calls-feed/calls-feed.contract.d.ts +417 -0
  46. package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -0
  47. package/dist/calls-feed/calls-feed.contract.js +32 -0
  48. package/dist/client-contacts/client-contacts.contract.d.ts +410 -226
  49. package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
  50. package/dist/client-contacts/client-contacts.contract.js +35 -4
  51. package/dist/clients/clients.contract.d.ts +227 -73
  52. package/dist/clients/clients.contract.d.ts.map +1 -1
  53. package/dist/clients/clients.contract.js +45 -21
  54. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2908 -1834
  55. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
  56. package/dist/collaboration-checkings/collaboration-checkings.contract.js +14 -9
  57. package/dist/collaborations/collaborations.contract.d.ts +2676 -1409
  58. package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
  59. package/dist/collaborations/collaborations.contract.js +33 -9
  60. package/dist/common/call-rating.schema.d.ts.map +1 -1
  61. package/dist/common/call-rating.schema.js +4 -2
  62. package/dist/common/common-schemas.d.ts +59 -11
  63. package/dist/common/common-schemas.d.ts.map +1 -1
  64. package/dist/common/common-schemas.js +55 -29
  65. package/dist/common/error-schemas.d.ts +2 -2
  66. package/dist/common/pagination-query.schema.d.ts +13 -2
  67. package/dist/common/pagination-query.schema.d.ts.map +1 -1
  68. package/dist/common/pagination-query.schema.js +21 -2
  69. package/dist/common/pagination-query.schema.spec.d.ts +2 -0
  70. package/dist/common/pagination-query.schema.spec.d.ts.map +1 -0
  71. package/dist/common/pagination-query.schema.spec.js +53 -0
  72. package/dist/companies/companies.contract.d.ts +53 -28
  73. package/dist/companies/companies.contract.d.ts.map +1 -1
  74. package/dist/companies/companies.contract.js +11 -10
  75. package/dist/crews/crews.contract.d.ts +1010 -196
  76. package/dist/crews/crews.contract.d.ts.map +1 -1
  77. package/dist/crews/crews.contract.js +98 -17
  78. package/dist/crews/crews.contract.spec.d.ts +2 -0
  79. package/dist/crews/crews.contract.spec.d.ts.map +1 -0
  80. package/dist/crews/crews.contract.spec.js +67 -0
  81. package/dist/cron-executions/cron-executions.contract.d.ts +988 -59
  82. package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
  83. package/dist/cron-executions/cron-executions.contract.js +127 -7
  84. package/dist/curated-worker-leads/__tests__/disposition-reason.spec.d.ts +2 -0
  85. package/dist/curated-worker-leads/__tests__/disposition-reason.spec.d.ts.map +1 -0
  86. package/dist/curated-worker-leads/__tests__/disposition-reason.spec.js +40 -0
  87. package/dist/curated-worker-leads/candidate-coordination-snapshot.spec.d.ts +2 -0
  88. package/dist/curated-worker-leads/candidate-coordination-snapshot.spec.d.ts.map +1 -0
  89. package/dist/curated-worker-leads/candidate-coordination-snapshot.spec.js +16 -0
  90. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +21650 -0
  91. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -0
  92. package/dist/curated-worker-leads/candidate-coordination.contract.js +921 -0
  93. package/dist/curated-worker-leads/candidate-coordination.contract.spec.d.ts +2 -0
  94. package/dist/curated-worker-leads/candidate-coordination.contract.spec.d.ts.map +1 -0
  95. package/dist/curated-worker-leads/candidate-coordination.contract.spec.js +51 -0
  96. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +2364 -0
  97. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts.map +1 -0
  98. package/dist/curated-worker-leads/candidate-edit-session.contract.js +173 -0
  99. package/dist/curated-worker-leads/consent-queue.contract.d.ts +4497 -0
  100. package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +1 -0
  101. package/dist/curated-worker-leads/consent-queue.contract.js +201 -0
  102. package/dist/curated-worker-leads/contact-history.spec.d.ts +2 -0
  103. package/dist/curated-worker-leads/contact-history.spec.d.ts.map +1 -0
  104. package/dist/curated-worker-leads/contact-history.spec.js +88 -0
  105. package/dist/curated-worker-leads/contact-session.contract.spec.d.ts +2 -0
  106. package/dist/curated-worker-leads/contact-session.contract.spec.d.ts.map +1 -0
  107. package/dist/curated-worker-leads/contact-session.contract.spec.js +315 -0
  108. package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +489 -0
  109. package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts.map +1 -0
  110. package/dist/curated-worker-leads/curated-worker-lead-config.contract.js +88 -0
  111. package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +135 -0
  112. package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts.map +1 -0
  113. package/dist/curated-worker-leads/curated-worker-leads.contract.js +32 -0
  114. package/dist/curated-worker-leads/job-candidate-cards.spec.d.ts +2 -0
  115. package/dist/curated-worker-leads/job-candidate-cards.spec.d.ts.map +1 -0
  116. package/dist/curated-worker-leads/job-candidate-cards.spec.js +157 -0
  117. package/dist/curated-worker-leads/job-candidates.spec.d.ts +2 -0
  118. package/dist/curated-worker-leads/job-candidates.spec.d.ts.map +1 -0
  119. package/dist/curated-worker-leads/job-candidates.spec.js +140 -0
  120. package/dist/curated-worker-leads/job-feed-match-counts.contract.spec.d.ts +2 -0
  121. package/dist/curated-worker-leads/job-feed-match-counts.contract.spec.d.ts.map +1 -0
  122. package/dist/curated-worker-leads/job-feed-match-counts.contract.spec.js +19 -0
  123. package/dist/curated-worker-leads/jobs-tab.contract.d.ts +18365 -0
  124. package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -0
  125. package/dist/curated-worker-leads/jobs-tab.contract.js +642 -0
  126. package/dist/curated-worker-leads/lead-agent-area.contract.d.ts +348 -0
  127. package/dist/curated-worker-leads/lead-agent-area.contract.d.ts.map +1 -0
  128. package/dist/curated-worker-leads/lead-agent-area.contract.js +51 -0
  129. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +1116 -0
  130. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts.map +1 -0
  131. package/dist/curated-worker-leads/owned-jobs-tab.contract.js +93 -0
  132. package/dist/curated-workers/curated-filter-additions.spec.d.ts +2 -0
  133. package/dist/curated-workers/curated-filter-additions.spec.d.ts.map +1 -0
  134. package/dist/curated-workers/curated-filter-additions.spec.js +17 -0
  135. package/dist/curated-workers/curated-job-seeking.spec.d.ts +2 -0
  136. package/dist/curated-workers/curated-job-seeking.spec.d.ts.map +1 -0
  137. package/dist/curated-workers/curated-job-seeking.spec.js +53 -0
  138. package/dist/curated-workers/curated-workers-id-documents.spec.d.ts +2 -0
  139. package/dist/curated-workers/curated-workers-id-documents.spec.d.ts.map +1 -0
  140. package/dist/curated-workers/curated-workers-id-documents.spec.js +38 -0
  141. package/dist/curated-workers/curated-workers.contract.d.ts +6160 -1906
  142. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  143. package/dist/curated-workers/curated-workers.contract.js +333 -51
  144. package/dist/dashboards/agent-daily-metrics.contract.d.ts +10 -10
  145. package/dist/dashboards/agent-daily-metrics.contract.js +1 -1
  146. package/dist/dashboards/dashboard-widgets.contract.d.ts +3800 -496
  147. package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
  148. package/dist/dashboards/dashboard-widgets.contract.js +527 -29
  149. package/dist/dashboards/dashboard.contract.d.ts +8 -8
  150. package/dist/document-intake/document-intake.contract.d.ts +3132 -0
  151. package/dist/document-intake/document-intake.contract.d.ts.map +1 -0
  152. package/dist/document-intake/document-intake.contract.js +418 -0
  153. package/dist/export-jobs/export-jobs.contract.d.ts +3918 -0
  154. package/dist/export-jobs/export-jobs.contract.d.ts.map +1 -0
  155. package/dist/export-jobs/export-jobs.contract.js +240 -0
  156. package/dist/exports-events/exports-events.schemas.d.ts +90 -0
  157. package/dist/exports-events/exports-events.schemas.d.ts.map +1 -0
  158. package/dist/exports-events/exports-events.schemas.js +56 -0
  159. package/dist/files/files.contract.d.ts +133 -126
  160. package/dist/files/files.contract.d.ts.map +1 -1
  161. package/dist/files/files.contract.js +8 -0
  162. package/dist/health/health.contract.d.ts +4 -4
  163. package/dist/index.d.ts +82 -0
  164. package/dist/index.d.ts.map +1 -1
  165. package/dist/index.js +87 -1
  166. package/dist/interactions/interactions.contract.d.ts +162 -0
  167. package/dist/interactions/interactions.contract.d.ts.map +1 -0
  168. package/dist/interactions/interactions.contract.js +42 -0
  169. package/dist/job-clusters/job-clusters.contract.d.ts +1584 -0
  170. package/dist/job-clusters/job-clusters.contract.d.ts.map +1 -0
  171. package/dist/job-clusters/job-clusters.contract.js +133 -0
  172. package/dist/jobs/jobs.contract.d.ts +16517 -8495
  173. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  174. package/dist/jobs/jobs.contract.js +394 -190
  175. package/dist/jobs/jobs.contract.spec.d.ts +2 -0
  176. package/dist/jobs/jobs.contract.spec.d.ts.map +1 -0
  177. package/dist/jobs/jobs.contract.spec.js +70 -0
  178. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +75 -75
  179. package/dist/lead-assignments/lead-assignments.contract.d.ts +2933 -1122
  180. package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
  181. package/dist/lead-assignments/lead-assignments.contract.js +29 -7
  182. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +328 -64
  183. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
  184. package/dist/lead-distribution/agent-lead-distribution.contract.js +1 -1
  185. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +31 -31
  186. package/dist/leads/leads.contract.d.ts +830 -368
  187. package/dist/leads/leads.contract.d.ts.map +1 -1
  188. package/dist/leads/leads.contract.js +106 -26
  189. package/dist/locations/locations.contract.d.ts +36 -36
  190. package/dist/notifications/notifications.contract.d.ts +1039 -0
  191. package/dist/notifications/notifications.contract.d.ts.map +1 -0
  192. package/dist/notifications/notifications.contract.js +110 -0
  193. package/dist/offices/offices.contract.d.ts +210 -60
  194. package/dist/offices/offices.contract.d.ts.map +1 -1
  195. package/dist/offices/offices.contract.js +18 -4
  196. package/dist/outreach/__tests__/outreach-claim.test.d.ts +2 -0
  197. package/dist/outreach/__tests__/outreach-claim.test.d.ts.map +1 -0
  198. package/dist/outreach/__tests__/outreach-claim.test.js +97 -0
  199. package/dist/outreach/__tests__/outreach-confirm-release.test.d.ts +2 -0
  200. package/dist/outreach/__tests__/outreach-confirm-release.test.d.ts.map +1 -0
  201. package/dist/outreach/__tests__/outreach-confirm-release.test.js +98 -0
  202. package/dist/outreach/__tests__/outreach-routes.test.d.ts +2 -0
  203. package/dist/outreach/__tests__/outreach-routes.test.d.ts.map +1 -0
  204. package/dist/outreach/__tests__/outreach-routes.test.js +57 -0
  205. package/dist/outreach/__tests__/outreach.schemas.test.d.ts +2 -0
  206. package/dist/outreach/__tests__/outreach.schemas.test.d.ts.map +1 -0
  207. package/dist/outreach/__tests__/outreach.schemas.test.js +140 -0
  208. package/dist/outreach/outreach.contract.d.ts +809 -0
  209. package/dist/outreach/outreach.contract.d.ts.map +1 -0
  210. package/dist/outreach/outreach.contract.js +195 -0
  211. package/dist/outreach/outreach.schemas.d.ts +113 -0
  212. package/dist/outreach/outreach.schemas.d.ts.map +1 -0
  213. package/dist/outreach/outreach.schemas.js +132 -0
  214. package/dist/own-research/own-research.contract.d.ts +1356 -552
  215. package/dist/own-research/own-research.contract.d.ts.map +1 -1
  216. package/dist/own-research/own-research.contract.js +14 -3
  217. package/dist/postcodes/postcodes.contract.d.ts +16 -16
  218. package/dist/proofs/proof-category.enum.d.ts +4 -0
  219. package/dist/proofs/proof-category.enum.d.ts.map +1 -0
  220. package/dist/proofs/proof-category.enum.js +5 -0
  221. package/dist/proofs/proof-entity-type.enum.d.ts +4 -0
  222. package/dist/proofs/proof-entity-type.enum.d.ts.map +1 -0
  223. package/dist/proofs/proof-entity-type.enum.js +5 -0
  224. package/dist/proofs/proof-type.enum.d.ts +28 -0
  225. package/dist/proofs/proof-type.enum.d.ts.map +1 -0
  226. package/dist/proofs/proof-type.enum.js +14 -0
  227. package/dist/proofs/proofs.contract.d.ts +3009 -0
  228. package/dist/proofs/proofs.contract.d.ts.map +1 -0
  229. package/dist/proofs/proofs.contract.js +92 -0
  230. package/dist/proofs/proofs.dtos.d.ts +1319 -0
  231. package/dist/proofs/proofs.dtos.d.ts.map +1 -0
  232. package/dist/proofs/proofs.dtos.js +178 -0
  233. package/dist/qualifications/qualifications.contract.d.ts +94 -94
  234. package/dist/realtime/data-changed.d.ts +21 -0
  235. package/dist/realtime/data-changed.d.ts.map +1 -0
  236. package/dist/realtime/data-changed.js +37 -0
  237. package/dist/shared/booking-history.schema.d.ts +27 -0
  238. package/dist/shared/booking-history.schema.d.ts.map +1 -0
  239. package/dist/shared/booking-history.schema.js +22 -0
  240. package/dist/shared/booking-history.spec.d.ts +2 -0
  241. package/dist/shared/booking-history.spec.d.ts.map +1 -0
  242. package/dist/shared/booking-history.spec.js +44 -0
  243. package/dist/shared/contact-suppressions.contract.d.ts +22 -0
  244. package/dist/shared/contact-suppressions.contract.d.ts.map +1 -0
  245. package/dist/shared/contact-suppressions.contract.js +13 -0
  246. package/dist/shared/live-booking.schema.d.ts +57 -0
  247. package/dist/shared/live-booking.schema.d.ts.map +1 -0
  248. package/dist/shared/live-booking.schema.js +34 -0
  249. package/dist/shared/summary-schemas.d.ts +218 -0
  250. package/dist/shared/summary-schemas.d.ts.map +1 -0
  251. package/dist/shared/summary-schemas.js +56 -0
  252. package/dist/sheets-sync/__tests__/sheets-sync-events.schemas.test.d.ts +2 -0
  253. package/dist/sheets-sync/__tests__/sheets-sync-events.schemas.test.d.ts.map +1 -0
  254. package/dist/sheets-sync/__tests__/sheets-sync-events.schemas.test.js +20 -0
  255. package/dist/sheets-sync/__tests__/tab-sync-config.schema.test.d.ts +2 -0
  256. package/dist/sheets-sync/__tests__/tab-sync-config.schema.test.d.ts.map +1 -0
  257. package/dist/sheets-sync/__tests__/tab-sync-config.schema.test.js +41 -0
  258. package/dist/sheets-sync/sheets-sync-events.schemas.d.ts +43 -0
  259. package/dist/sheets-sync/sheets-sync-events.schemas.d.ts.map +1 -0
  260. package/dist/sheets-sync/sheets-sync-events.schemas.js +29 -0
  261. package/dist/sheets-sync/sheets-sync.contract.d.ts +7258 -0
  262. package/dist/sheets-sync/sheets-sync.contract.d.ts.map +1 -0
  263. package/dist/sheets-sync/sheets-sync.contract.js +323 -0
  264. package/dist/telegram/telegram.contract.d.ts +727 -0
  265. package/dist/telegram/telegram.contract.d.ts.map +1 -0
  266. package/dist/telegram/telegram.contract.js +75 -0
  267. package/dist/trades/trade-rate-assessment.d.ts +18 -0
  268. package/dist/trades/trade-rate-assessment.d.ts.map +1 -0
  269. package/dist/trades/trade-rate-assessment.js +46 -0
  270. package/dist/trades/trade-rate-assessment.spec.d.ts +2 -0
  271. package/dist/trades/trade-rate-assessment.spec.d.ts.map +1 -0
  272. package/dist/trades/trade-rate-assessment.spec.js +223 -0
  273. package/dist/trades/trades.contract.d.ts +111 -0
  274. package/dist/trades/trades.contract.d.ts.map +1 -1
  275. package/dist/trades/trades.contract.js +49 -1
  276. package/dist/trades/trades.contract.spec.d.ts +2 -0
  277. package/dist/trades/trades.contract.spec.d.ts.map +1 -0
  278. package/dist/trades/trades.contract.spec.js +173 -0
  279. package/dist/user-access-grants/build-user-access-grant-rules.d.ts +10 -0
  280. package/dist/user-access-grants/build-user-access-grant-rules.d.ts.map +1 -0
  281. package/dist/user-access-grants/build-user-access-grant-rules.js +69 -0
  282. package/dist/user-access-grants/build-user-access-grant-rules.spec.d.ts +2 -0
  283. package/dist/user-access-grants/build-user-access-grant-rules.spec.d.ts.map +1 -0
  284. package/dist/user-access-grants/build-user-access-grant-rules.spec.js +77 -0
  285. package/dist/user-access-grants/user-access-grant-templates.json +454 -0
  286. package/dist/user-access-grants/user-access-grants.contract.d.ts +3886 -0
  287. package/dist/user-access-grants/user-access-grants.contract.d.ts.map +1 -0
  288. package/dist/user-access-grants/user-access-grants.contract.js +189 -0
  289. package/dist/user-access-grants/user-access-grants.contract.spec.d.ts +2 -0
  290. package/dist/user-access-grants/user-access-grants.contract.spec.d.ts.map +1 -0
  291. package/dist/user-access-grants/user-access-grants.contract.spec.js +149 -0
  292. package/dist/users/users.contract.d.ts +1959 -349
  293. package/dist/users/users.contract.d.ts.map +1 -1
  294. package/dist/users/users.contract.js +222 -37
  295. package/dist/users/users.contract.spec.d.ts +2 -0
  296. package/dist/users/users.contract.spec.d.ts.map +1 -0
  297. package/dist/users/users.contract.spec.js +103 -0
  298. package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +4609 -0
  299. package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -0
  300. package/dist/worker-identity-cases/worker-identity-cases.contract.js +409 -0
  301. package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +1511 -0
  302. package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts.map +1 -0
  303. package/dist/worker-merge-proposals/worker-merge-proposals.contract.js +150 -0
  304. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +1106 -0
  305. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts.map +1 -0
  306. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.js +85 -0
  307. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.spec.d.ts +2 -0
  308. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.spec.d.ts.map +1 -0
  309. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.spec.js +216 -0
  310. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +453 -0
  311. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts.map +1 -0
  312. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.js +109 -0
  313. package/dist/workers/do-not-contact.contract.d.ts +46 -0
  314. package/dist/workers/do-not-contact.contract.d.ts.map +1 -0
  315. package/dist/workers/do-not-contact.contract.js +41 -0
  316. package/dist/workers/do-not-contact.contract.spec.d.ts +2 -0
  317. package/dist/workers/do-not-contact.contract.spec.d.ts.map +1 -0
  318. package/dist/workers/do-not-contact.contract.spec.js +47 -0
  319. package/dist/workers/duplicate-group-worker.spec.d.ts +2 -0
  320. package/dist/workers/duplicate-group-worker.spec.d.ts.map +1 -0
  321. package/dist/workers/duplicate-group-worker.spec.js +34 -0
  322. package/dist/workers/filter-exact-flags.spec.d.ts +2 -0
  323. package/dist/workers/filter-exact-flags.spec.d.ts.map +1 -0
  324. package/dist/workers/filter-exact-flags.spec.js +37 -0
  325. package/dist/workers/worker-source-attribution.contract.spec.d.ts +2 -0
  326. package/dist/workers/worker-source-attribution.contract.spec.d.ts.map +1 -0
  327. package/dist/workers/worker-source-attribution.contract.spec.js +442 -0
  328. package/dist/workers/worker-source.spec.d.ts +2 -0
  329. package/dist/workers/worker-source.spec.d.ts.map +1 -0
  330. package/dist/workers/worker-source.spec.js +13 -0
  331. package/dist/workers/worker-status-facets.spec.d.ts +2 -0
  332. package/dist/workers/worker-status-facets.spec.d.ts.map +1 -0
  333. package/dist/workers/worker-status-facets.spec.js +34 -0
  334. package/dist/workers/workers.contract.d.ts +19534 -5969
  335. package/dist/workers/workers.contract.d.ts.map +1 -1
  336. package/dist/workers/workers.contract.js +1096 -113
  337. package/dist/workers/workers.contract.spec.d.ts +2 -0
  338. package/dist/workers/workers.contract.spec.d.ts.map +1 -0
  339. package/dist/workers/workers.contract.spec.js +31 -0
  340. package/package.json +5 -4
@@ -0,0 +1,3918 @@
1
+ import { z } from 'zod';
2
+ export declare const ExportEntitySchema: z.ZodEnum<["actives", "bookings", "call-history", "jobs", "users"]>;
3
+ export declare const ExportStatusSchema: z.ZodEnum<["pending", "processing", "completed", "failed", "cancelled"]>;
4
+ export declare const SortSpecSchema: z.ZodDefault<z.ZodArray<z.ZodObject<{
5
+ field: z.ZodString;
6
+ dir: z.ZodEnum<["ASC", "DESC"]>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ field: string;
9
+ dir: "ASC" | "DESC";
10
+ }, {
11
+ field: string;
12
+ dir: "ASC" | "DESC";
13
+ }>, "many">>;
14
+ export declare const ExportJobSortableFieldsSchema: z.ZodEnum<["requestedAt", "completedAt", "status", "entity"]>;
15
+ export declare const FilterExportJobSchema: z.ZodObject<{
16
+ limit: z.ZodDefault<z.ZodNumber>;
17
+ page: z.ZodDefault<z.ZodNumber>;
18
+ } & {
19
+ entity: z.ZodOptional<z.ZodEnum<["actives", "bookings", "call-history", "jobs", "users"]>>;
20
+ status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed", "cancelled"]>>;
21
+ userId: z.ZodOptional<z.ZodString>;
22
+ requestedAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
23
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ from?: string | null | undefined;
27
+ to?: string | null | undefined;
28
+ }, {
29
+ from?: string | null | undefined;
30
+ to?: string | null | undefined;
31
+ }>>>;
32
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
33
+ field: z.ZodEnum<["requestedAt", "completedAt", "status", "entity"]>;
34
+ order: z.ZodEnum<["ASC", "DESC"]>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ field: "status" | "requestedAt" | "completedAt" | "entity";
37
+ order: "ASC" | "DESC";
38
+ }, {
39
+ field: "status" | "requestedAt" | "completedAt" | "entity";
40
+ order: "ASC" | "DESC";
41
+ }>, "many">>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ limit: number;
44
+ page: number;
45
+ sort?: {
46
+ field: "status" | "requestedAt" | "completedAt" | "entity";
47
+ order: "ASC" | "DESC";
48
+ }[] | null | undefined;
49
+ status?: "pending" | "processing" | "completed" | "failed" | "cancelled" | undefined;
50
+ userId?: string | undefined;
51
+ requestedAt?: {
52
+ from?: string | null | undefined;
53
+ to?: string | null | undefined;
54
+ } | null | undefined;
55
+ entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
56
+ }, {
57
+ limit?: number | undefined;
58
+ page?: number | undefined;
59
+ sort?: {
60
+ field: "status" | "requestedAt" | "completedAt" | "entity";
61
+ order: "ASC" | "DESC";
62
+ }[] | null | undefined;
63
+ status?: "pending" | "processing" | "completed" | "failed" | "cancelled" | undefined;
64
+ userId?: string | undefined;
65
+ requestedAt?: {
66
+ from?: string | null | undefined;
67
+ to?: string | null | undefined;
68
+ } | null | undefined;
69
+ entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
70
+ }>;
71
+ export type FilterExportJob = z.infer<typeof FilterExportJobSchema>;
72
+ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
73
+ entity: z.ZodLiteral<"actives">;
74
+ filter: z.ZodObject<{
75
+ limit: z.ZodDefault<z.ZodNumber>;
76
+ page: z.ZodDefault<z.ZodNumber>;
77
+ } & {
78
+ date: z.ZodNullable<z.ZodOptional<z.ZodObject<{
79
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ from?: string | null | undefined;
83
+ to?: string | null | undefined;
84
+ }, {
85
+ from?: string | null | undefined;
86
+ to?: string | null | undefined;
87
+ }>>>;
88
+ workerName: z.ZodNullable<z.ZodOptional<z.ZodObject<{
89
+ value: z.ZodOptional<z.ZodString>;
90
+ exact: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ value?: string | undefined;
93
+ exact?: boolean | undefined;
94
+ }, {
95
+ value?: string | undefined;
96
+ exact?: boolean | "true" | "false" | undefined;
97
+ }>>>;
98
+ status: z.ZodNullable<z.ZodOptional<z.ZodObject<{
99
+ status: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY", "OFF_SCHEDULE"]>>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
102
+ }, {
103
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
104
+ }>>>;
105
+ pay: z.ZodNullable<z.ZodOptional<z.ZodObject<{
106
+ minRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
107
+ maxRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ minRate?: number | null | undefined;
110
+ maxRate?: number | null | undefined;
111
+ }, {
112
+ minRate?: number | null | undefined;
113
+ maxRate?: number | null | undefined;
114
+ }>>>;
115
+ agentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
116
+ job: z.ZodNullable<z.ZodOptional<z.ZodObject<{
117
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
118
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
119
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
120
+ tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
121
+ location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
122
+ postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
123
+ radius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ postcode?: string | null | undefined;
126
+ radius?: number | null | undefined;
127
+ }, {
128
+ postcode?: string | null | undefined;
129
+ radius?: number | null | undefined;
130
+ }>>>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ userId?: string | null | undefined;
133
+ tradeId?: string | null | undefined;
134
+ companyId?: string | null | undefined;
135
+ clientId?: string | null | undefined;
136
+ location?: {
137
+ postcode?: string | null | undefined;
138
+ radius?: number | null | undefined;
139
+ } | null | undefined;
140
+ }, {
141
+ userId?: string | null | undefined;
142
+ tradeId?: string | null | undefined;
143
+ companyId?: string | null | undefined;
144
+ clientId?: string | null | undefined;
145
+ location?: {
146
+ postcode?: string | null | undefined;
147
+ radius?: number | null | undefined;
148
+ } | null | undefined;
149
+ }>>>;
150
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
151
+ field: z.ZodEnum<["date", "startDate", "workerName", "status", "hoursWorked", "payRate", "receivedRate", "secondAgent", "collaborationCompany", "collaborationClient", "collaborationAgent", "postcode", "firstAgent", "createdAt", "updatedAt"]>;
152
+ order: z.ZodEnum<["ASC", "DESC"]>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ field: "status" | "date" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "workerName" | "firstAgent" | "secondAgent" | "hoursWorked" | "payRate" | "receivedRate" | "collaborationAgent";
155
+ order: "ASC" | "DESC";
156
+ }, {
157
+ field: "status" | "date" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "workerName" | "firstAgent" | "secondAgent" | "hoursWorked" | "payRate" | "receivedRate" | "collaborationAgent";
158
+ order: "ASC" | "DESC";
159
+ }>, "many">>>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ limit: number;
162
+ page: number;
163
+ sort?: {
164
+ field: "status" | "date" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "workerName" | "firstAgent" | "secondAgent" | "hoursWorked" | "payRate" | "receivedRate" | "collaborationAgent";
165
+ order: "ASC" | "DESC";
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
+ workerName?: {
175
+ value?: string | undefined;
176
+ exact?: boolean | undefined;
177
+ } | null | undefined;
178
+ agentId?: string | null | undefined;
179
+ pay?: {
180
+ minRate?: number | null | undefined;
181
+ maxRate?: number | null | undefined;
182
+ } | null | undefined;
183
+ job?: {
184
+ userId?: string | null | undefined;
185
+ tradeId?: string | null | undefined;
186
+ companyId?: string | null | undefined;
187
+ clientId?: string | null | undefined;
188
+ location?: {
189
+ postcode?: string | null | undefined;
190
+ radius?: number | null | undefined;
191
+ } | null | undefined;
192
+ } | null | undefined;
193
+ }, {
194
+ limit?: number | undefined;
195
+ page?: number | undefined;
196
+ sort?: {
197
+ field: "status" | "date" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "workerName" | "firstAgent" | "secondAgent" | "hoursWorked" | "payRate" | "receivedRate" | "collaborationAgent";
198
+ order: "ASC" | "DESC";
199
+ }[] | null | undefined;
200
+ status?: {
201
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
202
+ } | null | undefined;
203
+ date?: {
204
+ from?: string | null | undefined;
205
+ to?: string | null | undefined;
206
+ } | null | undefined;
207
+ workerName?: {
208
+ value?: string | undefined;
209
+ exact?: boolean | "true" | "false" | undefined;
210
+ } | null | undefined;
211
+ agentId?: string | null | undefined;
212
+ pay?: {
213
+ minRate?: number | null | undefined;
214
+ maxRate?: number | null | undefined;
215
+ } | null | undefined;
216
+ job?: {
217
+ userId?: string | null | undefined;
218
+ tradeId?: string | null | undefined;
219
+ companyId?: string | null | undefined;
220
+ clientId?: string | null | undefined;
221
+ location?: {
222
+ postcode?: string | null | undefined;
223
+ radius?: number | null | undefined;
224
+ } | null | undefined;
225
+ } | null | undefined;
226
+ }>;
227
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
228
+ field: z.ZodString;
229
+ dir: z.ZodEnum<["ASC", "DESC"]>;
230
+ }, "strip", z.ZodTypeAny, {
231
+ field: string;
232
+ dir: "ASC" | "DESC";
233
+ }, {
234
+ field: string;
235
+ dir: "ASC" | "DESC";
236
+ }>, "many">>;
237
+ columns: z.ZodArray<z.ZodString, "many">;
238
+ }, "strip", z.ZodTypeAny, {
239
+ sort: {
240
+ field: string;
241
+ dir: "ASC" | "DESC";
242
+ }[];
243
+ filter: {
244
+ limit: number;
245
+ page: number;
246
+ sort?: {
247
+ field: "status" | "date" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "workerName" | "firstAgent" | "secondAgent" | "hoursWorked" | "payRate" | "receivedRate" | "collaborationAgent";
248
+ order: "ASC" | "DESC";
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
+ workerName?: {
258
+ value?: string | undefined;
259
+ exact?: boolean | undefined;
260
+ } | null | undefined;
261
+ agentId?: string | null | undefined;
262
+ pay?: {
263
+ minRate?: number | null | undefined;
264
+ maxRate?: number | null | undefined;
265
+ } | null | undefined;
266
+ job?: {
267
+ userId?: string | null | undefined;
268
+ tradeId?: string | null | undefined;
269
+ companyId?: string | null | undefined;
270
+ clientId?: string | null | undefined;
271
+ location?: {
272
+ postcode?: string | null | undefined;
273
+ radius?: number | null | undefined;
274
+ } | null | undefined;
275
+ } | null | undefined;
276
+ };
277
+ entity: "actives";
278
+ columns: string[];
279
+ }, {
280
+ filter: {
281
+ limit?: number | undefined;
282
+ page?: number | undefined;
283
+ sort?: {
284
+ field: "status" | "date" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "workerName" | "firstAgent" | "secondAgent" | "hoursWorked" | "payRate" | "receivedRate" | "collaborationAgent";
285
+ order: "ASC" | "DESC";
286
+ }[] | null | undefined;
287
+ status?: {
288
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
289
+ } | null | undefined;
290
+ date?: {
291
+ from?: string | null | undefined;
292
+ to?: string | null | undefined;
293
+ } | null | undefined;
294
+ workerName?: {
295
+ value?: string | undefined;
296
+ exact?: boolean | "true" | "false" | undefined;
297
+ } | null | undefined;
298
+ agentId?: string | null | undefined;
299
+ pay?: {
300
+ minRate?: number | null | undefined;
301
+ maxRate?: number | null | undefined;
302
+ } | null | undefined;
303
+ job?: {
304
+ userId?: string | null | undefined;
305
+ tradeId?: string | null | undefined;
306
+ companyId?: string | null | undefined;
307
+ clientId?: string | null | undefined;
308
+ location?: {
309
+ postcode?: string | null | undefined;
310
+ radius?: number | null | undefined;
311
+ } | null | undefined;
312
+ } | null | undefined;
313
+ };
314
+ entity: "actives";
315
+ columns: string[];
316
+ sort?: {
317
+ field: string;
318
+ dir: "ASC" | "DESC";
319
+ }[] | undefined;
320
+ }>, z.ZodObject<{
321
+ entity: z.ZodLiteral<"bookings">;
322
+ filter: z.ZodObject<{
323
+ limit: z.ZodDefault<z.ZodNumber>;
324
+ page: z.ZodDefault<z.ZodNumber>;
325
+ } & {
326
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
327
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
328
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ from?: string | null | undefined;
331
+ to?: string | null | undefined;
332
+ }, {
333
+ from?: string | null | undefined;
334
+ to?: string | null | undefined;
335
+ }>>>;
336
+ workerName: z.ZodNullable<z.ZodOptional<z.ZodObject<{
337
+ value: z.ZodOptional<z.ZodString>;
338
+ exact: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ value?: string | undefined;
341
+ exact?: boolean | undefined;
342
+ }, {
343
+ value?: string | undefined;
344
+ exact?: boolean | "true" | "false" | undefined;
345
+ }>>>;
346
+ status: z.ZodNullable<z.ZodOptional<z.ZodDiscriminatedUnion<"category", [z.ZodObject<{
347
+ category: z.ZodLiteral<"ATTEMPT">;
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
+ }, "strip", z.ZodTypeAny, {
350
+ category: "ATTEMPT";
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
+ }, {
353
+ category: "ATTEMPT";
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
+ }>, z.ZodObject<{
356
+ category: z.ZodLiteral<"FAILED_START">;
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"]>>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ category: "FAILED_START";
360
+ 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;
361
+ }, {
362
+ category: "FAILED_START";
363
+ 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;
364
+ }>, z.ZodObject<{
365
+ category: z.ZodLiteral<"IN_PROGRESS">;
366
+ type: z.ZodOptional<z.ZodEnum<["SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB"]>>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ category: "IN_PROGRESS";
369
+ type?: "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | undefined;
370
+ }, {
371
+ category: "IN_PROGRESS";
372
+ type?: "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | undefined;
373
+ }>, z.ZodObject<{
374
+ category: z.ZodLiteral<"FINISHED_THE_JOB">;
375
+ type: z.ZodOptional<z.ZodLiteral<"COMPLETED">>;
376
+ }, "strip", z.ZodTypeAny, {
377
+ category: "FINISHED_THE_JOB";
378
+ type?: "COMPLETED" | undefined;
379
+ }, {
380
+ category: "FINISHED_THE_JOB";
381
+ type?: "COMPLETED" | undefined;
382
+ }>, z.ZodObject<{
383
+ category: z.ZodLiteral<"CANCELLED">;
384
+ type: z.ZodOptional<z.ZodEnum<["CANCELLED", "JOB_CANCELLED"]>>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ category: "CANCELLED";
387
+ type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
388
+ }, {
389
+ category: "CANCELLED";
390
+ type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
391
+ }>]>>>;
392
+ job: z.ZodNullable<z.ZodOptional<z.ZodObject<{
393
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
394
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
395
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
396
+ tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
397
+ location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
398
+ postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
399
+ radius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ postcode?: string | null | undefined;
402
+ radius?: number | null | undefined;
403
+ }, {
404
+ postcode?: string | null | undefined;
405
+ radius?: number | null | undefined;
406
+ }>>>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ userId?: string | null | undefined;
409
+ tradeId?: string | null | undefined;
410
+ companyId?: string | null | undefined;
411
+ clientId?: string | null | undefined;
412
+ location?: {
413
+ postcode?: string | null | undefined;
414
+ radius?: number | null | undefined;
415
+ } | null | undefined;
416
+ }, {
417
+ userId?: string | null | undefined;
418
+ tradeId?: string | null | undefined;
419
+ companyId?: string | null | undefined;
420
+ clientId?: string | null | undefined;
421
+ location?: {
422
+ postcode?: string | null | undefined;
423
+ radius?: number | null | undefined;
424
+ } | null | undefined;
425
+ }>>>;
426
+ agentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
427
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
428
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
429
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ from?: string | null | undefined;
432
+ to?: string | null | undefined;
433
+ }, {
434
+ from?: string | null | undefined;
435
+ to?: string | null | undefined;
436
+ }>>>;
437
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
438
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
439
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ from?: string | null | undefined;
442
+ to?: string | null | undefined;
443
+ }, {
444
+ from?: string | null | undefined;
445
+ to?: string | null | undefined;
446
+ }>>>;
447
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
448
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
449
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ from?: string | null | undefined;
452
+ to?: string | null | undefined;
453
+ }, {
454
+ from?: string | null | undefined;
455
+ to?: string | null | undefined;
456
+ }>>>;
457
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
458
+ field: z.ZodEnum<["status", "startDate", "endDate", "workerName", "payRate", "secondAgent", "collaborationCompany", "collaborationClient", "collaborationAgent", "createdAt", "updatedAt"]>;
459
+ order: z.ZodEnum<["ASC", "DESC"]>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ field: "status" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "workerName" | "secondAgent" | "payRate" | "collaborationAgent" | "endDate";
462
+ order: "ASC" | "DESC";
463
+ }, {
464
+ field: "status" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "workerName" | "secondAgent" | "payRate" | "collaborationAgent" | "endDate";
465
+ order: "ASC" | "DESC";
466
+ }>, "many">>>;
467
+ }, "strip", z.ZodTypeAny, {
468
+ limit: number;
469
+ page: number;
470
+ sort?: {
471
+ field: "status" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "workerName" | "secondAgent" | "payRate" | "collaborationAgent" | "endDate";
472
+ order: "ASC" | "DESC";
473
+ }[] | null | undefined;
474
+ status?: {
475
+ category: "ATTEMPT";
476
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
477
+ } | {
478
+ category: "FAILED_START";
479
+ type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
480
+ } | {
481
+ category: "IN_PROGRESS";
482
+ type?: "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | undefined;
483
+ } | {
484
+ category: "FINISHED_THE_JOB";
485
+ type?: "COMPLETED" | undefined;
486
+ } | {
487
+ category: "CANCELLED";
488
+ type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
489
+ } | null | undefined;
490
+ startDate?: {
491
+ from?: string | null | undefined;
492
+ to?: string | null | undefined;
493
+ } | null | undefined;
494
+ createdAt?: {
495
+ from?: string | null | undefined;
496
+ to?: string | null | undefined;
497
+ } | null | undefined;
498
+ updatedAt?: {
499
+ from?: string | null | undefined;
500
+ to?: string | null | undefined;
501
+ } | null | undefined;
502
+ workerName?: {
503
+ value?: string | undefined;
504
+ exact?: boolean | undefined;
505
+ } | null | undefined;
506
+ agentId?: string | null | undefined;
507
+ job?: {
508
+ userId?: string | null | undefined;
509
+ tradeId?: string | null | undefined;
510
+ companyId?: string | null | undefined;
511
+ clientId?: string | null | undefined;
512
+ location?: {
513
+ postcode?: string | null | undefined;
514
+ radius?: number | null | undefined;
515
+ } | null | undefined;
516
+ } | null | undefined;
517
+ endDate?: {
518
+ from?: string | null | undefined;
519
+ to?: string | null | undefined;
520
+ } | null | undefined;
521
+ }, {
522
+ limit?: number | undefined;
523
+ page?: number | undefined;
524
+ sort?: {
525
+ field: "status" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "workerName" | "secondAgent" | "payRate" | "collaborationAgent" | "endDate";
526
+ order: "ASC" | "DESC";
527
+ }[] | null | undefined;
528
+ status?: {
529
+ category: "ATTEMPT";
530
+ 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;
531
+ } | {
532
+ category: "FAILED_START";
533
+ 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;
534
+ } | {
535
+ category: "IN_PROGRESS";
536
+ type?: "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | undefined;
537
+ } | {
538
+ category: "FINISHED_THE_JOB";
539
+ type?: "COMPLETED" | undefined;
540
+ } | {
541
+ category: "CANCELLED";
542
+ type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
543
+ } | null | undefined;
544
+ startDate?: {
545
+ from?: string | null | undefined;
546
+ to?: string | null | undefined;
547
+ } | null | undefined;
548
+ createdAt?: {
549
+ from?: string | null | undefined;
550
+ to?: string | null | undefined;
551
+ } | null | undefined;
552
+ updatedAt?: {
553
+ from?: string | null | undefined;
554
+ to?: string | null | undefined;
555
+ } | null | undefined;
556
+ workerName?: {
557
+ value?: string | undefined;
558
+ exact?: boolean | "true" | "false" | undefined;
559
+ } | null | undefined;
560
+ agentId?: string | null | undefined;
561
+ job?: {
562
+ userId?: string | null | undefined;
563
+ tradeId?: string | null | undefined;
564
+ companyId?: string | null | undefined;
565
+ clientId?: string | null | undefined;
566
+ location?: {
567
+ postcode?: string | null | undefined;
568
+ radius?: number | null | undefined;
569
+ } | null | undefined;
570
+ } | null | undefined;
571
+ endDate?: {
572
+ from?: string | null | undefined;
573
+ to?: string | null | undefined;
574
+ } | null | undefined;
575
+ }>;
576
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
577
+ field: z.ZodString;
578
+ dir: z.ZodEnum<["ASC", "DESC"]>;
579
+ }, "strip", z.ZodTypeAny, {
580
+ field: string;
581
+ dir: "ASC" | "DESC";
582
+ }, {
583
+ field: string;
584
+ dir: "ASC" | "DESC";
585
+ }>, "many">>;
586
+ columns: z.ZodArray<z.ZodString, "many">;
587
+ }, "strip", z.ZodTypeAny, {
588
+ sort: {
589
+ field: string;
590
+ dir: "ASC" | "DESC";
591
+ }[];
592
+ filter: {
593
+ limit: number;
594
+ page: number;
595
+ sort?: {
596
+ field: "status" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "workerName" | "secondAgent" | "payRate" | "collaborationAgent" | "endDate";
597
+ order: "ASC" | "DESC";
598
+ }[] | null | undefined;
599
+ status?: {
600
+ category: "ATTEMPT";
601
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
602
+ } | {
603
+ category: "FAILED_START";
604
+ type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
605
+ } | {
606
+ category: "IN_PROGRESS";
607
+ type?: "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | undefined;
608
+ } | {
609
+ category: "FINISHED_THE_JOB";
610
+ type?: "COMPLETED" | undefined;
611
+ } | {
612
+ category: "CANCELLED";
613
+ type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
614
+ } | null | undefined;
615
+ startDate?: {
616
+ from?: string | null | undefined;
617
+ to?: string | null | undefined;
618
+ } | null | undefined;
619
+ createdAt?: {
620
+ from?: string | null | undefined;
621
+ to?: string | null | undefined;
622
+ } | null | undefined;
623
+ updatedAt?: {
624
+ from?: string | null | undefined;
625
+ to?: string | null | undefined;
626
+ } | null | undefined;
627
+ workerName?: {
628
+ value?: string | undefined;
629
+ exact?: boolean | undefined;
630
+ } | null | undefined;
631
+ agentId?: string | null | undefined;
632
+ job?: {
633
+ userId?: string | null | undefined;
634
+ tradeId?: string | null | undefined;
635
+ companyId?: string | null | undefined;
636
+ clientId?: string | null | undefined;
637
+ location?: {
638
+ postcode?: string | null | undefined;
639
+ radius?: number | null | undefined;
640
+ } | null | undefined;
641
+ } | null | undefined;
642
+ endDate?: {
643
+ from?: string | null | undefined;
644
+ to?: string | null | undefined;
645
+ } | null | undefined;
646
+ };
647
+ entity: "bookings";
648
+ columns: string[];
649
+ }, {
650
+ filter: {
651
+ limit?: number | undefined;
652
+ page?: number | undefined;
653
+ sort?: {
654
+ field: "status" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "workerName" | "secondAgent" | "payRate" | "collaborationAgent" | "endDate";
655
+ order: "ASC" | "DESC";
656
+ }[] | null | undefined;
657
+ status?: {
658
+ category: "ATTEMPT";
659
+ 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;
660
+ } | {
661
+ category: "FAILED_START";
662
+ 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;
663
+ } | {
664
+ category: "IN_PROGRESS";
665
+ type?: "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | undefined;
666
+ } | {
667
+ category: "FINISHED_THE_JOB";
668
+ type?: "COMPLETED" | undefined;
669
+ } | {
670
+ category: "CANCELLED";
671
+ type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
672
+ } | null | undefined;
673
+ startDate?: {
674
+ from?: string | null | undefined;
675
+ to?: string | null | undefined;
676
+ } | null | undefined;
677
+ createdAt?: {
678
+ from?: string | null | undefined;
679
+ to?: string | null | undefined;
680
+ } | null | undefined;
681
+ updatedAt?: {
682
+ from?: string | null | undefined;
683
+ to?: string | null | undefined;
684
+ } | null | undefined;
685
+ workerName?: {
686
+ value?: string | undefined;
687
+ exact?: boolean | "true" | "false" | undefined;
688
+ } | null | undefined;
689
+ agentId?: string | null | undefined;
690
+ job?: {
691
+ userId?: string | null | undefined;
692
+ tradeId?: string | null | undefined;
693
+ companyId?: string | null | undefined;
694
+ clientId?: string | null | undefined;
695
+ location?: {
696
+ postcode?: string | null | undefined;
697
+ radius?: number | null | undefined;
698
+ } | null | undefined;
699
+ } | null | undefined;
700
+ endDate?: {
701
+ from?: string | null | undefined;
702
+ to?: string | null | undefined;
703
+ } | null | undefined;
704
+ };
705
+ entity: "bookings";
706
+ columns: string[];
707
+ sort?: {
708
+ field: string;
709
+ dir: "ASC" | "DESC";
710
+ }[] | undefined;
711
+ }>, z.ZodObject<{
712
+ entity: z.ZodLiteral<"call-history">;
713
+ filter: z.ZodObject<{
714
+ limit: z.ZodDefault<z.ZodNumber>;
715
+ page: z.ZodDefault<z.ZodNumber>;
716
+ } & {
717
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
718
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
719
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ from?: string | null | undefined;
722
+ to?: string | null | undefined;
723
+ }, {
724
+ from?: string | null | undefined;
725
+ to?: string | null | undefined;
726
+ }>>>;
727
+ agentId: z.ZodOptional<z.ZodString>;
728
+ companyId: z.ZodOptional<z.ZodString>;
729
+ rating: z.ZodNullable<z.ZodOptional<z.ZodObject<{
730
+ from: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>>>, import("../common/call-rating.schema").CallRating | null | undefined, unknown>;
731
+ to: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>>>, import("../common/call-rating.schema").CallRating | null | undefined, unknown>;
732
+ }, "strip", z.ZodTypeAny, {
733
+ from?: import("../common/call-rating.schema").CallRating | null | undefined;
734
+ to?: import("../common/call-rating.schema").CallRating | null | undefined;
735
+ }, {
736
+ from?: unknown;
737
+ to?: unknown;
738
+ }>>>;
739
+ callType: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>>;
740
+ leadSource: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").LeadSource>>;
741
+ phoneNumber: z.ZodOptional<z.ZodString>;
742
+ leadName: z.ZodOptional<z.ZodString>;
743
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
744
+ field: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallHistorySortableFields>;
745
+ order: z.ZodEnum<["ASC", "DESC"]>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ field: import("../call-history/call-history.contract").CallHistorySortableFields;
748
+ order: "ASC" | "DESC";
749
+ }, {
750
+ field: import("../call-history/call-history.contract").CallHistorySortableFields;
751
+ order: "ASC" | "DESC";
752
+ }>, "many">>>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ limit: number;
755
+ page: number;
756
+ sort?: {
757
+ field: import("../call-history/call-history.contract").CallHistorySortableFields;
758
+ order: "ASC" | "DESC";
759
+ }[] | null | undefined;
760
+ createdAt?: {
761
+ from?: string | null | undefined;
762
+ to?: string | null | undefined;
763
+ } | null | undefined;
764
+ phoneNumber?: string | undefined;
765
+ agentId?: string | undefined;
766
+ rating?: {
767
+ from?: import("../common/call-rating.schema").CallRating | null | undefined;
768
+ to?: import("../common/call-rating.schema").CallRating | null | undefined;
769
+ } | null | undefined;
770
+ callType?: import("../call-history/call-history.contract").CallType | undefined;
771
+ companyId?: string | undefined;
772
+ leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
773
+ leadName?: string | undefined;
774
+ }, {
775
+ limit?: number | undefined;
776
+ page?: number | undefined;
777
+ sort?: {
778
+ field: import("../call-history/call-history.contract").CallHistorySortableFields;
779
+ order: "ASC" | "DESC";
780
+ }[] | null | undefined;
781
+ createdAt?: {
782
+ from?: string | null | undefined;
783
+ to?: string | null | undefined;
784
+ } | null | undefined;
785
+ phoneNumber?: string | undefined;
786
+ agentId?: string | undefined;
787
+ rating?: {
788
+ from?: unknown;
789
+ to?: unknown;
790
+ } | null | undefined;
791
+ callType?: import("../call-history/call-history.contract").CallType | undefined;
792
+ companyId?: string | undefined;
793
+ leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
794
+ leadName?: string | undefined;
795
+ }>;
796
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
797
+ field: z.ZodString;
798
+ dir: z.ZodEnum<["ASC", "DESC"]>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ field: string;
801
+ dir: "ASC" | "DESC";
802
+ }, {
803
+ field: string;
804
+ dir: "ASC" | "DESC";
805
+ }>, "many">>;
806
+ columns: z.ZodArray<z.ZodString, "many">;
807
+ }, "strip", z.ZodTypeAny, {
808
+ sort: {
809
+ field: string;
810
+ dir: "ASC" | "DESC";
811
+ }[];
812
+ filter: {
813
+ limit: number;
814
+ page: number;
815
+ sort?: {
816
+ field: import("../call-history/call-history.contract").CallHistorySortableFields;
817
+ order: "ASC" | "DESC";
818
+ }[] | null | undefined;
819
+ createdAt?: {
820
+ from?: string | null | undefined;
821
+ to?: string | null | undefined;
822
+ } | null | undefined;
823
+ phoneNumber?: string | undefined;
824
+ agentId?: string | undefined;
825
+ rating?: {
826
+ from?: import("../common/call-rating.schema").CallRating | null | undefined;
827
+ to?: import("../common/call-rating.schema").CallRating | null | undefined;
828
+ } | null | undefined;
829
+ callType?: import("../call-history/call-history.contract").CallType | undefined;
830
+ companyId?: string | undefined;
831
+ leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
832
+ leadName?: string | undefined;
833
+ };
834
+ entity: "call-history";
835
+ columns: string[];
836
+ }, {
837
+ filter: {
838
+ limit?: number | undefined;
839
+ page?: number | undefined;
840
+ sort?: {
841
+ field: import("../call-history/call-history.contract").CallHistorySortableFields;
842
+ order: "ASC" | "DESC";
843
+ }[] | null | undefined;
844
+ createdAt?: {
845
+ from?: string | null | undefined;
846
+ to?: string | null | undefined;
847
+ } | null | undefined;
848
+ phoneNumber?: string | undefined;
849
+ agentId?: string | undefined;
850
+ rating?: {
851
+ from?: unknown;
852
+ to?: unknown;
853
+ } | null | undefined;
854
+ callType?: import("../call-history/call-history.contract").CallType | undefined;
855
+ companyId?: string | undefined;
856
+ leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
857
+ leadName?: string | undefined;
858
+ };
859
+ entity: "call-history";
860
+ columns: string[];
861
+ sort?: {
862
+ field: string;
863
+ dir: "ASC" | "DESC";
864
+ }[] | undefined;
865
+ }>, z.ZodObject<{
866
+ entity: z.ZodLiteral<"jobs">;
867
+ filter: z.ZodObject<{
868
+ limit: z.ZodDefault<z.ZodNumber>;
869
+ page: z.ZodDefault<z.ZodNumber>;
870
+ } & {
871
+ status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["AVAILABLE", "NOT_AVAILABLE"]>>>;
872
+ creationSource: z.ZodNullable<z.ZodOptional<z.ZodEnum<["MANUAL", "BOT"]>>>;
873
+ tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
874
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
875
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
876
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
877
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
878
+ location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
879
+ postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
880
+ radius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
881
+ }, "strip", z.ZodTypeAny, {
882
+ postcode?: string | null | undefined;
883
+ radius?: number | null | undefined;
884
+ }, {
885
+ postcode?: string | null | undefined;
886
+ radius?: number | null | undefined;
887
+ }>>>;
888
+ pay: z.ZodNullable<z.ZodOptional<z.ZodObject<{
889
+ minRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
890
+ maxRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
891
+ }, "strip", z.ZodTypeAny, {
892
+ minRate?: number | null | undefined;
893
+ maxRate?: number | null | undefined;
894
+ }, {
895
+ minRate?: number | null | undefined;
896
+ maxRate?: number | null | undefined;
897
+ }>>>;
898
+ qualificationFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
899
+ qualificationId: z.ZodOptional<z.ZodString>;
900
+ qualificationTypeId: z.ZodOptional<z.ZodString>;
901
+ }, "strip", z.ZodTypeAny, {
902
+ qualificationId?: string | undefined;
903
+ qualificationTypeId?: string | undefined;
904
+ }, {
905
+ qualificationId?: string | undefined;
906
+ qualificationTypeId?: string | undefined;
907
+ }>, "many">>;
908
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
909
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
910
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
911
+ }, "strip", z.ZodTypeAny, {
912
+ from?: string | null | undefined;
913
+ to?: string | null | undefined;
914
+ }, {
915
+ from?: string | null | undefined;
916
+ to?: string | null | undefined;
917
+ }>>>;
918
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
919
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
920
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
921
+ }, "strip", z.ZodTypeAny, {
922
+ from?: string | null | undefined;
923
+ to?: string | null | undefined;
924
+ }, {
925
+ from?: string | null | undefined;
926
+ to?: string | null | undefined;
927
+ }>>>;
928
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
929
+ field: z.ZodEnum<["description", "numberOfPositions", "status", "tradeId", "collaborationCompany", "collaborationClient", "collaborationAgent", "distance", "postcode", "payRate", "receivedRate", "workHours", "qualificationsCount", "creationSource", "createdAt", "updatedAt", "startDate"]>;
930
+ order: z.ZodEnum<["ASC", "DESC"]>;
931
+ }, "strip", z.ZodTypeAny, {
932
+ field: "status" | "description" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "tradeId" | "payRate" | "receivedRate" | "collaborationAgent" | "creationSource" | "numberOfPositions" | "distance" | "workHours" | "qualificationsCount";
933
+ order: "ASC" | "DESC";
934
+ }, {
935
+ field: "status" | "description" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "tradeId" | "payRate" | "receivedRate" | "collaborationAgent" | "creationSource" | "numberOfPositions" | "distance" | "workHours" | "qualificationsCount";
936
+ order: "ASC" | "DESC";
937
+ }>, "many">>>;
938
+ }, "strip", z.ZodTypeAny, {
939
+ limit: number;
940
+ page: number;
941
+ sort?: {
942
+ field: "status" | "description" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "tradeId" | "payRate" | "receivedRate" | "collaborationAgent" | "creationSource" | "numberOfPositions" | "distance" | "workHours" | "qualificationsCount";
943
+ order: "ASC" | "DESC";
944
+ }[] | null | undefined;
945
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
946
+ description?: string | null | undefined;
947
+ createdAt?: {
948
+ from?: string | null | undefined;
949
+ to?: string | null | undefined;
950
+ } | null | undefined;
951
+ updatedAt?: {
952
+ from?: string | null | undefined;
953
+ to?: string | null | undefined;
954
+ } | null | undefined;
955
+ userId?: string | null | undefined;
956
+ tradeId?: string | null | undefined;
957
+ companyId?: string | null | undefined;
958
+ pay?: {
959
+ minRate?: number | null | undefined;
960
+ maxRate?: number | null | undefined;
961
+ } | null | undefined;
962
+ clientId?: string | null | undefined;
963
+ location?: {
964
+ postcode?: string | null | undefined;
965
+ radius?: number | null | undefined;
966
+ } | null | undefined;
967
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
968
+ qualificationFilters?: {
969
+ qualificationId?: string | undefined;
970
+ qualificationTypeId?: string | undefined;
971
+ }[] | undefined;
972
+ }, {
973
+ limit?: number | undefined;
974
+ page?: number | undefined;
975
+ sort?: {
976
+ field: "status" | "description" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "tradeId" | "payRate" | "receivedRate" | "collaborationAgent" | "creationSource" | "numberOfPositions" | "distance" | "workHours" | "qualificationsCount";
977
+ order: "ASC" | "DESC";
978
+ }[] | null | undefined;
979
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
980
+ description?: string | null | undefined;
981
+ createdAt?: {
982
+ from?: string | null | undefined;
983
+ to?: string | null | undefined;
984
+ } | null | undefined;
985
+ updatedAt?: {
986
+ from?: string | null | undefined;
987
+ to?: string | null | undefined;
988
+ } | null | undefined;
989
+ userId?: string | null | undefined;
990
+ tradeId?: string | null | undefined;
991
+ companyId?: string | null | undefined;
992
+ pay?: {
993
+ minRate?: number | null | undefined;
994
+ maxRate?: number | null | undefined;
995
+ } | null | undefined;
996
+ clientId?: string | null | undefined;
997
+ location?: {
998
+ postcode?: string | null | undefined;
999
+ radius?: number | null | undefined;
1000
+ } | null | undefined;
1001
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
1002
+ qualificationFilters?: {
1003
+ qualificationId?: string | undefined;
1004
+ qualificationTypeId?: string | undefined;
1005
+ }[] | undefined;
1006
+ }>;
1007
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
1008
+ field: z.ZodString;
1009
+ dir: z.ZodEnum<["ASC", "DESC"]>;
1010
+ }, "strip", z.ZodTypeAny, {
1011
+ field: string;
1012
+ dir: "ASC" | "DESC";
1013
+ }, {
1014
+ field: string;
1015
+ dir: "ASC" | "DESC";
1016
+ }>, "many">>;
1017
+ columns: z.ZodArray<z.ZodString, "many">;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ sort: {
1020
+ field: string;
1021
+ dir: "ASC" | "DESC";
1022
+ }[];
1023
+ filter: {
1024
+ limit: number;
1025
+ page: number;
1026
+ sort?: {
1027
+ field: "status" | "description" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "tradeId" | "payRate" | "receivedRate" | "collaborationAgent" | "creationSource" | "numberOfPositions" | "distance" | "workHours" | "qualificationsCount";
1028
+ order: "ASC" | "DESC";
1029
+ }[] | null | undefined;
1030
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1031
+ description?: string | null | undefined;
1032
+ createdAt?: {
1033
+ from?: string | null | undefined;
1034
+ to?: string | null | undefined;
1035
+ } | null | undefined;
1036
+ updatedAt?: {
1037
+ from?: string | null | undefined;
1038
+ to?: string | null | undefined;
1039
+ } | null | undefined;
1040
+ userId?: string | null | undefined;
1041
+ tradeId?: string | null | undefined;
1042
+ companyId?: string | null | undefined;
1043
+ pay?: {
1044
+ minRate?: number | null | undefined;
1045
+ maxRate?: number | null | undefined;
1046
+ } | null | undefined;
1047
+ clientId?: string | null | undefined;
1048
+ location?: {
1049
+ postcode?: string | null | undefined;
1050
+ radius?: number | null | undefined;
1051
+ } | null | undefined;
1052
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
1053
+ qualificationFilters?: {
1054
+ qualificationId?: string | undefined;
1055
+ qualificationTypeId?: string | undefined;
1056
+ }[] | undefined;
1057
+ };
1058
+ entity: "jobs";
1059
+ columns: string[];
1060
+ }, {
1061
+ filter: {
1062
+ limit?: number | undefined;
1063
+ page?: number | undefined;
1064
+ sort?: {
1065
+ field: "status" | "description" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "tradeId" | "payRate" | "receivedRate" | "collaborationAgent" | "creationSource" | "numberOfPositions" | "distance" | "workHours" | "qualificationsCount";
1066
+ order: "ASC" | "DESC";
1067
+ }[] | null | undefined;
1068
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
1069
+ description?: string | null | undefined;
1070
+ createdAt?: {
1071
+ from?: string | null | undefined;
1072
+ to?: string | null | undefined;
1073
+ } | null | undefined;
1074
+ updatedAt?: {
1075
+ from?: string | null | undefined;
1076
+ to?: string | null | undefined;
1077
+ } | null | undefined;
1078
+ userId?: string | null | undefined;
1079
+ tradeId?: string | null | undefined;
1080
+ companyId?: string | null | undefined;
1081
+ pay?: {
1082
+ minRate?: number | null | undefined;
1083
+ maxRate?: number | null | undefined;
1084
+ } | null | undefined;
1085
+ clientId?: string | null | undefined;
1086
+ location?: {
1087
+ postcode?: string | null | undefined;
1088
+ radius?: number | null | undefined;
1089
+ } | null | undefined;
1090
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
1091
+ qualificationFilters?: {
1092
+ qualificationId?: string | undefined;
1093
+ qualificationTypeId?: string | undefined;
1094
+ }[] | undefined;
1095
+ };
1096
+ entity: "jobs";
1097
+ columns: string[];
1098
+ sort?: {
1099
+ field: string;
1100
+ dir: "ASC" | "DESC";
1101
+ }[] | undefined;
1102
+ }>, z.ZodObject<{
1103
+ entity: z.ZodLiteral<"users">;
1104
+ filter: z.ZodObject<{
1105
+ limit: z.ZodDefault<z.ZodNumber>;
1106
+ page: z.ZodDefault<z.ZodNumber>;
1107
+ } & {
1108
+ name: z.ZodOptional<z.ZodString>;
1109
+ email: z.ZodOptional<z.ZodString>;
1110
+ phone: z.ZodOptional<z.ZodString>;
1111
+ roles: z.ZodOptional<z.ZodObject<{
1112
+ values: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
1113
+ requireAll: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
1114
+ }, "strip", z.ZodTypeAny, {
1115
+ values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1116
+ requireAll?: boolean | undefined;
1117
+ }, {
1118
+ values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1119
+ requireAll?: unknown;
1120
+ }>>;
1121
+ officeId: z.ZodOptional<z.ZodString>;
1122
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE"]>>;
1123
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1124
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1125
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ from?: string | null | undefined;
1128
+ to?: string | null | undefined;
1129
+ }, {
1130
+ from?: string | null | undefined;
1131
+ to?: string | null | undefined;
1132
+ }>>>;
1133
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1134
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1135
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ from?: string | null | undefined;
1138
+ to?: string | null | undefined;
1139
+ }, {
1140
+ from?: string | null | undefined;
1141
+ to?: string | null | undefined;
1142
+ }>>>;
1143
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1144
+ field: z.ZodEnum<["lastName", "firstName", "email", "createdAt", "office"]>;
1145
+ order: z.ZodEnum<["ASC", "DESC"]>;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ field: "firstName" | "lastName" | "email" | "createdAt" | "office";
1148
+ order: "ASC" | "DESC";
1149
+ }, {
1150
+ field: "firstName" | "lastName" | "email" | "createdAt" | "office";
1151
+ order: "ASC" | "DESC";
1152
+ }>, "many">>>;
1153
+ }, "strip", z.ZodTypeAny, {
1154
+ limit: number;
1155
+ page: number;
1156
+ sort?: {
1157
+ field: "firstName" | "lastName" | "email" | "createdAt" | "office";
1158
+ order: "ASC" | "DESC";
1159
+ }[] | null | undefined;
1160
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1161
+ email?: string | undefined;
1162
+ roles?: {
1163
+ values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1164
+ requireAll?: boolean | undefined;
1165
+ } | undefined;
1166
+ name?: string | undefined;
1167
+ createdAt?: {
1168
+ from?: string | null | undefined;
1169
+ to?: string | null | undefined;
1170
+ } | null | undefined;
1171
+ updatedAt?: {
1172
+ from?: string | null | undefined;
1173
+ to?: string | null | undefined;
1174
+ } | null | undefined;
1175
+ officeId?: string | undefined;
1176
+ phone?: string | undefined;
1177
+ }, {
1178
+ limit?: number | undefined;
1179
+ page?: number | undefined;
1180
+ sort?: {
1181
+ field: "firstName" | "lastName" | "email" | "createdAt" | "office";
1182
+ order: "ASC" | "DESC";
1183
+ }[] | null | undefined;
1184
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1185
+ email?: string | undefined;
1186
+ roles?: {
1187
+ values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1188
+ requireAll?: unknown;
1189
+ } | undefined;
1190
+ name?: string | undefined;
1191
+ createdAt?: {
1192
+ from?: string | null | undefined;
1193
+ to?: string | null | undefined;
1194
+ } | null | undefined;
1195
+ updatedAt?: {
1196
+ from?: string | null | undefined;
1197
+ to?: string | null | undefined;
1198
+ } | null | undefined;
1199
+ officeId?: string | undefined;
1200
+ phone?: string | undefined;
1201
+ }>;
1202
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
1203
+ field: z.ZodString;
1204
+ dir: z.ZodEnum<["ASC", "DESC"]>;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ field: string;
1207
+ dir: "ASC" | "DESC";
1208
+ }, {
1209
+ field: string;
1210
+ dir: "ASC" | "DESC";
1211
+ }>, "many">>;
1212
+ columns: z.ZodArray<z.ZodString, "many">;
1213
+ }, "strip", z.ZodTypeAny, {
1214
+ sort: {
1215
+ field: string;
1216
+ dir: "ASC" | "DESC";
1217
+ }[];
1218
+ filter: {
1219
+ limit: number;
1220
+ page: number;
1221
+ sort?: {
1222
+ field: "firstName" | "lastName" | "email" | "createdAt" | "office";
1223
+ order: "ASC" | "DESC";
1224
+ }[] | null | undefined;
1225
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1226
+ email?: string | undefined;
1227
+ roles?: {
1228
+ values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1229
+ requireAll?: boolean | undefined;
1230
+ } | undefined;
1231
+ name?: string | undefined;
1232
+ createdAt?: {
1233
+ from?: string | null | undefined;
1234
+ to?: string | null | undefined;
1235
+ } | null | undefined;
1236
+ updatedAt?: {
1237
+ from?: string | null | undefined;
1238
+ to?: string | null | undefined;
1239
+ } | null | undefined;
1240
+ officeId?: string | undefined;
1241
+ phone?: string | undefined;
1242
+ };
1243
+ entity: "users";
1244
+ columns: string[];
1245
+ }, {
1246
+ filter: {
1247
+ limit?: number | undefined;
1248
+ page?: number | undefined;
1249
+ sort?: {
1250
+ field: "firstName" | "lastName" | "email" | "createdAt" | "office";
1251
+ order: "ASC" | "DESC";
1252
+ }[] | null | undefined;
1253
+ status?: "ACTIVE" | "INACTIVE" | undefined;
1254
+ email?: string | undefined;
1255
+ roles?: {
1256
+ values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
1257
+ requireAll?: unknown;
1258
+ } | undefined;
1259
+ name?: string | undefined;
1260
+ createdAt?: {
1261
+ from?: string | null | undefined;
1262
+ to?: string | null | undefined;
1263
+ } | null | undefined;
1264
+ updatedAt?: {
1265
+ from?: string | null | undefined;
1266
+ to?: string | null | undefined;
1267
+ } | null | undefined;
1268
+ officeId?: string | undefined;
1269
+ phone?: string | undefined;
1270
+ };
1271
+ entity: "users";
1272
+ columns: string[];
1273
+ sort?: {
1274
+ field: string;
1275
+ dir: "ASC" | "DESC";
1276
+ }[] | undefined;
1277
+ }>]>;
1278
+ export declare const ExportJobSchema: z.ZodObject<{
1279
+ id: z.ZodString;
1280
+ userId: z.ZodString;
1281
+ user: z.ZodNullable<z.ZodObject<{
1282
+ id: z.ZodString;
1283
+ firstName: z.ZodString;
1284
+ lastName: z.ZodString;
1285
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1286
+ id: z.ZodString;
1287
+ phoneNumber: z.ZodString;
1288
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1289
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
1290
+ }, "strip", z.ZodTypeAny, {
1291
+ id: string;
1292
+ phoneNumber: string;
1293
+ isPrimary: boolean;
1294
+ description?: string | null | undefined;
1295
+ }, {
1296
+ id: string;
1297
+ phoneNumber: string;
1298
+ description?: string | null | undefined;
1299
+ isPrimary?: boolean | undefined;
1300
+ }>, "many">>>;
1301
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ id: string;
1304
+ firstName: string;
1305
+ lastName: string;
1306
+ phoneNumbers: {
1307
+ id: string;
1308
+ phoneNumber: string;
1309
+ isPrimary: boolean;
1310
+ description?: string | null | undefined;
1311
+ }[];
1312
+ deletedAt?: string | null | undefined;
1313
+ }, {
1314
+ id: string;
1315
+ firstName: string;
1316
+ lastName: string;
1317
+ phoneNumbers?: {
1318
+ id: string;
1319
+ phoneNumber: string;
1320
+ description?: string | null | undefined;
1321
+ isPrimary?: boolean | undefined;
1322
+ }[] | undefined;
1323
+ deletedAt?: string | Date | null | undefined;
1324
+ }>>;
1325
+ entity: z.ZodEnum<["actives", "bookings", "call-history", "jobs", "users"]>;
1326
+ status: z.ZodEnum<["pending", "processing", "completed", "failed", "cancelled"]>;
1327
+ filter: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1328
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
1329
+ field: z.ZodString;
1330
+ dir: z.ZodEnum<["ASC", "DESC"]>;
1331
+ }, "strip", z.ZodTypeAny, {
1332
+ field: string;
1333
+ dir: "ASC" | "DESC";
1334
+ }, {
1335
+ field: string;
1336
+ dir: "ASC" | "DESC";
1337
+ }>, "many">>;
1338
+ columns: z.ZodArray<z.ZodString, "many">;
1339
+ rowsProcessed: z.ZodNumber;
1340
+ rowsSkipped: z.ZodNumber;
1341
+ totalRows: z.ZodNullable<z.ZodNumber>;
1342
+ byteSize: z.ZodNullable<z.ZodNumber>;
1343
+ errorMessage: z.ZodNullable<z.ZodString>;
1344
+ requestedAt: z.ZodString;
1345
+ startedAt: z.ZodNullable<z.ZodString>;
1346
+ completedAt: z.ZodNullable<z.ZodString>;
1347
+ expiresAt: z.ZodString;
1348
+ }, "strip", z.ZodTypeAny, {
1349
+ sort: {
1350
+ field: string;
1351
+ dir: "ASC" | "DESC";
1352
+ }[];
1353
+ filter: Record<string, unknown>;
1354
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1355
+ id: string;
1356
+ user: {
1357
+ id: string;
1358
+ firstName: string;
1359
+ lastName: string;
1360
+ phoneNumbers: {
1361
+ id: string;
1362
+ phoneNumber: string;
1363
+ isPrimary: boolean;
1364
+ description?: string | null | undefined;
1365
+ }[];
1366
+ deletedAt?: string | null | undefined;
1367
+ } | null;
1368
+ userId: string;
1369
+ requestedAt: string;
1370
+ completedAt: string | null;
1371
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1372
+ columns: string[];
1373
+ rowsProcessed: number;
1374
+ rowsSkipped: number;
1375
+ totalRows: number | null;
1376
+ byteSize: number | null;
1377
+ errorMessage: string | null;
1378
+ startedAt: string | null;
1379
+ expiresAt: string;
1380
+ }, {
1381
+ filter: Record<string, unknown>;
1382
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1383
+ id: string;
1384
+ user: {
1385
+ id: string;
1386
+ firstName: string;
1387
+ lastName: string;
1388
+ phoneNumbers?: {
1389
+ id: string;
1390
+ phoneNumber: string;
1391
+ description?: string | null | undefined;
1392
+ isPrimary?: boolean | undefined;
1393
+ }[] | undefined;
1394
+ deletedAt?: string | Date | null | undefined;
1395
+ } | null;
1396
+ userId: string;
1397
+ requestedAt: string;
1398
+ completedAt: string | null;
1399
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1400
+ columns: string[];
1401
+ rowsProcessed: number;
1402
+ rowsSkipped: number;
1403
+ totalRows: number | null;
1404
+ byteSize: number | null;
1405
+ errorMessage: string | null;
1406
+ startedAt: string | null;
1407
+ expiresAt: string;
1408
+ sort?: {
1409
+ field: string;
1410
+ dir: "ASC" | "DESC";
1411
+ }[] | undefined;
1412
+ }>;
1413
+ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
1414
+ items: z.ZodArray<z.ZodObject<{
1415
+ id: z.ZodString;
1416
+ userId: z.ZodString;
1417
+ user: z.ZodNullable<z.ZodObject<{
1418
+ id: z.ZodString;
1419
+ firstName: z.ZodString;
1420
+ lastName: z.ZodString;
1421
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1422
+ id: z.ZodString;
1423
+ phoneNumber: z.ZodString;
1424
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1425
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
1426
+ }, "strip", z.ZodTypeAny, {
1427
+ id: string;
1428
+ phoneNumber: string;
1429
+ isPrimary: boolean;
1430
+ description?: string | null | undefined;
1431
+ }, {
1432
+ id: string;
1433
+ phoneNumber: string;
1434
+ description?: string | null | undefined;
1435
+ isPrimary?: boolean | undefined;
1436
+ }>, "many">>>;
1437
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1438
+ }, "strip", z.ZodTypeAny, {
1439
+ id: string;
1440
+ firstName: string;
1441
+ lastName: string;
1442
+ phoneNumbers: {
1443
+ id: string;
1444
+ phoneNumber: string;
1445
+ isPrimary: boolean;
1446
+ description?: string | null | undefined;
1447
+ }[];
1448
+ deletedAt?: string | null | undefined;
1449
+ }, {
1450
+ id: string;
1451
+ firstName: string;
1452
+ lastName: string;
1453
+ phoneNumbers?: {
1454
+ id: string;
1455
+ phoneNumber: string;
1456
+ description?: string | null | undefined;
1457
+ isPrimary?: boolean | undefined;
1458
+ }[] | undefined;
1459
+ deletedAt?: string | Date | null | undefined;
1460
+ }>>;
1461
+ entity: z.ZodEnum<["actives", "bookings", "call-history", "jobs", "users"]>;
1462
+ status: z.ZodEnum<["pending", "processing", "completed", "failed", "cancelled"]>;
1463
+ filter: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1464
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
1465
+ field: z.ZodString;
1466
+ dir: z.ZodEnum<["ASC", "DESC"]>;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ field: string;
1469
+ dir: "ASC" | "DESC";
1470
+ }, {
1471
+ field: string;
1472
+ dir: "ASC" | "DESC";
1473
+ }>, "many">>;
1474
+ columns: z.ZodArray<z.ZodString, "many">;
1475
+ rowsProcessed: z.ZodNumber;
1476
+ rowsSkipped: z.ZodNumber;
1477
+ totalRows: z.ZodNullable<z.ZodNumber>;
1478
+ byteSize: z.ZodNullable<z.ZodNumber>;
1479
+ errorMessage: z.ZodNullable<z.ZodString>;
1480
+ requestedAt: z.ZodString;
1481
+ startedAt: z.ZodNullable<z.ZodString>;
1482
+ completedAt: z.ZodNullable<z.ZodString>;
1483
+ expiresAt: z.ZodString;
1484
+ }, "strip", z.ZodTypeAny, {
1485
+ sort: {
1486
+ field: string;
1487
+ dir: "ASC" | "DESC";
1488
+ }[];
1489
+ filter: Record<string, unknown>;
1490
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1491
+ id: string;
1492
+ user: {
1493
+ id: string;
1494
+ firstName: string;
1495
+ lastName: string;
1496
+ phoneNumbers: {
1497
+ id: string;
1498
+ phoneNumber: string;
1499
+ isPrimary: boolean;
1500
+ description?: string | null | undefined;
1501
+ }[];
1502
+ deletedAt?: string | null | undefined;
1503
+ } | null;
1504
+ userId: string;
1505
+ requestedAt: string;
1506
+ completedAt: string | null;
1507
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1508
+ columns: string[];
1509
+ rowsProcessed: number;
1510
+ rowsSkipped: number;
1511
+ totalRows: number | null;
1512
+ byteSize: number | null;
1513
+ errorMessage: string | null;
1514
+ startedAt: string | null;
1515
+ expiresAt: string;
1516
+ }, {
1517
+ filter: Record<string, unknown>;
1518
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1519
+ id: string;
1520
+ user: {
1521
+ id: string;
1522
+ firstName: string;
1523
+ lastName: string;
1524
+ phoneNumbers?: {
1525
+ id: string;
1526
+ phoneNumber: string;
1527
+ description?: string | null | undefined;
1528
+ isPrimary?: boolean | undefined;
1529
+ }[] | undefined;
1530
+ deletedAt?: string | Date | null | undefined;
1531
+ } | null;
1532
+ userId: string;
1533
+ requestedAt: string;
1534
+ completedAt: string | null;
1535
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1536
+ columns: string[];
1537
+ rowsProcessed: number;
1538
+ rowsSkipped: number;
1539
+ totalRows: number | null;
1540
+ byteSize: number | null;
1541
+ errorMessage: string | null;
1542
+ startedAt: string | null;
1543
+ expiresAt: string;
1544
+ sort?: {
1545
+ field: string;
1546
+ dir: "ASC" | "DESC";
1547
+ }[] | undefined;
1548
+ }>, "many">;
1549
+ totalCount: z.ZodNumber;
1550
+ limit: z.ZodNumber;
1551
+ skip: z.ZodNumber;
1552
+ currentPage: z.ZodNumber;
1553
+ totalPages: z.ZodNumber;
1554
+ }, "strip", z.ZodTypeAny, {
1555
+ limit: number;
1556
+ items: {
1557
+ sort: {
1558
+ field: string;
1559
+ dir: "ASC" | "DESC";
1560
+ }[];
1561
+ filter: Record<string, unknown>;
1562
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1563
+ id: string;
1564
+ user: {
1565
+ id: string;
1566
+ firstName: string;
1567
+ lastName: string;
1568
+ phoneNumbers: {
1569
+ id: string;
1570
+ phoneNumber: string;
1571
+ isPrimary: boolean;
1572
+ description?: string | null | undefined;
1573
+ }[];
1574
+ deletedAt?: string | null | undefined;
1575
+ } | null;
1576
+ userId: string;
1577
+ requestedAt: string;
1578
+ completedAt: string | null;
1579
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1580
+ columns: string[];
1581
+ rowsProcessed: number;
1582
+ rowsSkipped: number;
1583
+ totalRows: number | null;
1584
+ byteSize: number | null;
1585
+ errorMessage: string | null;
1586
+ startedAt: string | null;
1587
+ expiresAt: string;
1588
+ }[];
1589
+ totalCount: number;
1590
+ skip: number;
1591
+ currentPage: number;
1592
+ totalPages: number;
1593
+ }, {
1594
+ limit: number;
1595
+ items: {
1596
+ filter: Record<string, unknown>;
1597
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
1598
+ id: string;
1599
+ user: {
1600
+ id: string;
1601
+ firstName: string;
1602
+ lastName: string;
1603
+ phoneNumbers?: {
1604
+ id: string;
1605
+ phoneNumber: string;
1606
+ description?: string | null | undefined;
1607
+ isPrimary?: boolean | undefined;
1608
+ }[] | undefined;
1609
+ deletedAt?: string | Date | null | undefined;
1610
+ } | null;
1611
+ userId: string;
1612
+ requestedAt: string;
1613
+ completedAt: string | null;
1614
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
1615
+ columns: string[];
1616
+ rowsProcessed: number;
1617
+ rowsSkipped: number;
1618
+ totalRows: number | null;
1619
+ byteSize: number | null;
1620
+ errorMessage: string | null;
1621
+ startedAt: string | null;
1622
+ expiresAt: string;
1623
+ sort?: {
1624
+ field: string;
1625
+ dir: "ASC" | "DESC";
1626
+ }[] | undefined;
1627
+ }[];
1628
+ totalCount: number;
1629
+ skip: number;
1630
+ currentPage: number;
1631
+ totalPages: number;
1632
+ }>;
1633
+ export type PaginatedExportJobResponse = z.infer<typeof PaginatedExportJobResponseSchema>;
1634
+ export type CreateExportJobBody = z.infer<typeof CreateExportJobBodySchema>;
1635
+ export type ExportJobDto = z.infer<typeof ExportJobSchema>;
1636
+ export declare const exportJobsContract: {
1637
+ create: {
1638
+ summary: "Create an async CSV export job";
1639
+ method: "POST";
1640
+ body: z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
1641
+ entity: z.ZodLiteral<"actives">;
1642
+ filter: z.ZodObject<{
1643
+ limit: z.ZodDefault<z.ZodNumber>;
1644
+ page: z.ZodDefault<z.ZodNumber>;
1645
+ } & {
1646
+ date: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1647
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1648
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1649
+ }, "strip", z.ZodTypeAny, {
1650
+ from?: string | null | undefined;
1651
+ to?: string | null | undefined;
1652
+ }, {
1653
+ from?: string | null | undefined;
1654
+ to?: string | null | undefined;
1655
+ }>>>;
1656
+ workerName: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1657
+ value: z.ZodOptional<z.ZodString>;
1658
+ exact: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
1659
+ }, "strip", z.ZodTypeAny, {
1660
+ value?: string | undefined;
1661
+ exact?: boolean | undefined;
1662
+ }, {
1663
+ value?: string | undefined;
1664
+ exact?: boolean | "true" | "false" | undefined;
1665
+ }>>>;
1666
+ status: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1667
+ status: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY", "OFF_SCHEDULE"]>>;
1668
+ }, "strip", z.ZodTypeAny, {
1669
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1670
+ }, {
1671
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1672
+ }>>>;
1673
+ pay: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1674
+ minRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1675
+ maxRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1676
+ }, "strip", z.ZodTypeAny, {
1677
+ minRate?: number | null | undefined;
1678
+ maxRate?: number | null | undefined;
1679
+ }, {
1680
+ minRate?: number | null | undefined;
1681
+ maxRate?: number | null | undefined;
1682
+ }>>>;
1683
+ agentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1684
+ job: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1685
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1686
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1687
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1688
+ tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1689
+ location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1690
+ postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1691
+ radius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1692
+ }, "strip", z.ZodTypeAny, {
1693
+ postcode?: string | null | undefined;
1694
+ radius?: number | null | undefined;
1695
+ }, {
1696
+ postcode?: string | null | undefined;
1697
+ radius?: number | null | undefined;
1698
+ }>>>;
1699
+ }, "strip", z.ZodTypeAny, {
1700
+ userId?: string | null | undefined;
1701
+ tradeId?: string | null | undefined;
1702
+ companyId?: string | null | undefined;
1703
+ clientId?: string | null | undefined;
1704
+ location?: {
1705
+ postcode?: string | null | undefined;
1706
+ radius?: number | null | undefined;
1707
+ } | null | undefined;
1708
+ }, {
1709
+ userId?: string | null | undefined;
1710
+ tradeId?: string | null | undefined;
1711
+ companyId?: string | null | undefined;
1712
+ clientId?: string | null | undefined;
1713
+ location?: {
1714
+ postcode?: string | null | undefined;
1715
+ radius?: number | null | undefined;
1716
+ } | null | undefined;
1717
+ }>>>;
1718
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1719
+ field: z.ZodEnum<["date", "startDate", "workerName", "status", "hoursWorked", "payRate", "receivedRate", "secondAgent", "collaborationCompany", "collaborationClient", "collaborationAgent", "postcode", "firstAgent", "createdAt", "updatedAt"]>;
1720
+ order: z.ZodEnum<["ASC", "DESC"]>;
1721
+ }, "strip", z.ZodTypeAny, {
1722
+ field: "status" | "date" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "workerName" | "firstAgent" | "secondAgent" | "hoursWorked" | "payRate" | "receivedRate" | "collaborationAgent";
1723
+ order: "ASC" | "DESC";
1724
+ }, {
1725
+ field: "status" | "date" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "workerName" | "firstAgent" | "secondAgent" | "hoursWorked" | "payRate" | "receivedRate" | "collaborationAgent";
1726
+ order: "ASC" | "DESC";
1727
+ }>, "many">>>;
1728
+ }, "strip", z.ZodTypeAny, {
1729
+ limit: number;
1730
+ page: number;
1731
+ sort?: {
1732
+ field: "status" | "date" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "workerName" | "firstAgent" | "secondAgent" | "hoursWorked" | "payRate" | "receivedRate" | "collaborationAgent";
1733
+ order: "ASC" | "DESC";
1734
+ }[] | null | undefined;
1735
+ status?: {
1736
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1737
+ } | null | undefined;
1738
+ date?: {
1739
+ from?: string | null | undefined;
1740
+ to?: string | null | undefined;
1741
+ } | null | undefined;
1742
+ workerName?: {
1743
+ value?: string | undefined;
1744
+ exact?: boolean | undefined;
1745
+ } | null | undefined;
1746
+ agentId?: string | null | undefined;
1747
+ pay?: {
1748
+ minRate?: number | null | undefined;
1749
+ maxRate?: number | null | undefined;
1750
+ } | null | undefined;
1751
+ job?: {
1752
+ userId?: string | null | undefined;
1753
+ tradeId?: string | null | undefined;
1754
+ companyId?: string | null | undefined;
1755
+ clientId?: string | null | undefined;
1756
+ location?: {
1757
+ postcode?: string | null | undefined;
1758
+ radius?: number | null | undefined;
1759
+ } | null | undefined;
1760
+ } | null | undefined;
1761
+ }, {
1762
+ limit?: number | undefined;
1763
+ page?: number | undefined;
1764
+ sort?: {
1765
+ field: "status" | "date" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "workerName" | "firstAgent" | "secondAgent" | "hoursWorked" | "payRate" | "receivedRate" | "collaborationAgent";
1766
+ order: "ASC" | "DESC";
1767
+ }[] | null | undefined;
1768
+ status?: {
1769
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1770
+ } | null | undefined;
1771
+ date?: {
1772
+ from?: string | null | undefined;
1773
+ to?: string | null | undefined;
1774
+ } | null | undefined;
1775
+ workerName?: {
1776
+ value?: string | undefined;
1777
+ exact?: boolean | "true" | "false" | undefined;
1778
+ } | null | undefined;
1779
+ agentId?: string | null | undefined;
1780
+ pay?: {
1781
+ minRate?: number | null | undefined;
1782
+ maxRate?: number | null | undefined;
1783
+ } | null | undefined;
1784
+ job?: {
1785
+ userId?: string | null | undefined;
1786
+ tradeId?: string | null | undefined;
1787
+ companyId?: string | null | undefined;
1788
+ clientId?: string | null | undefined;
1789
+ location?: {
1790
+ postcode?: string | null | undefined;
1791
+ radius?: number | null | undefined;
1792
+ } | null | undefined;
1793
+ } | null | undefined;
1794
+ }>;
1795
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
1796
+ field: z.ZodString;
1797
+ dir: z.ZodEnum<["ASC", "DESC"]>;
1798
+ }, "strip", z.ZodTypeAny, {
1799
+ field: string;
1800
+ dir: "ASC" | "DESC";
1801
+ }, {
1802
+ field: string;
1803
+ dir: "ASC" | "DESC";
1804
+ }>, "many">>;
1805
+ columns: z.ZodArray<z.ZodString, "many">;
1806
+ }, "strip", z.ZodTypeAny, {
1807
+ sort: {
1808
+ field: string;
1809
+ dir: "ASC" | "DESC";
1810
+ }[];
1811
+ filter: {
1812
+ limit: number;
1813
+ page: number;
1814
+ sort?: {
1815
+ field: "status" | "date" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "workerName" | "firstAgent" | "secondAgent" | "hoursWorked" | "payRate" | "receivedRate" | "collaborationAgent";
1816
+ order: "ASC" | "DESC";
1817
+ }[] | null | undefined;
1818
+ status?: {
1819
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1820
+ } | null | undefined;
1821
+ date?: {
1822
+ from?: string | null | undefined;
1823
+ to?: string | null | undefined;
1824
+ } | null | undefined;
1825
+ workerName?: {
1826
+ value?: string | undefined;
1827
+ exact?: boolean | undefined;
1828
+ } | null | undefined;
1829
+ agentId?: string | null | undefined;
1830
+ pay?: {
1831
+ minRate?: number | null | undefined;
1832
+ maxRate?: number | null | undefined;
1833
+ } | null | undefined;
1834
+ job?: {
1835
+ userId?: string | null | undefined;
1836
+ tradeId?: string | null | undefined;
1837
+ companyId?: string | null | undefined;
1838
+ clientId?: string | null | undefined;
1839
+ location?: {
1840
+ postcode?: string | null | undefined;
1841
+ radius?: number | null | undefined;
1842
+ } | null | undefined;
1843
+ } | null | undefined;
1844
+ };
1845
+ entity: "actives";
1846
+ columns: string[];
1847
+ }, {
1848
+ filter: {
1849
+ limit?: number | undefined;
1850
+ page?: number | undefined;
1851
+ sort?: {
1852
+ field: "status" | "date" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "workerName" | "firstAgent" | "secondAgent" | "hoursWorked" | "payRate" | "receivedRate" | "collaborationAgent";
1853
+ order: "ASC" | "DESC";
1854
+ }[] | null | undefined;
1855
+ status?: {
1856
+ status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
1857
+ } | null | undefined;
1858
+ date?: {
1859
+ from?: string | null | undefined;
1860
+ to?: string | null | undefined;
1861
+ } | null | undefined;
1862
+ workerName?: {
1863
+ value?: string | undefined;
1864
+ exact?: boolean | "true" | "false" | undefined;
1865
+ } | null | undefined;
1866
+ agentId?: string | null | undefined;
1867
+ pay?: {
1868
+ minRate?: number | null | undefined;
1869
+ maxRate?: number | null | undefined;
1870
+ } | null | undefined;
1871
+ job?: {
1872
+ userId?: string | null | undefined;
1873
+ tradeId?: string | null | undefined;
1874
+ companyId?: string | null | undefined;
1875
+ clientId?: string | null | undefined;
1876
+ location?: {
1877
+ postcode?: string | null | undefined;
1878
+ radius?: number | null | undefined;
1879
+ } | null | undefined;
1880
+ } | null | undefined;
1881
+ };
1882
+ entity: "actives";
1883
+ columns: string[];
1884
+ sort?: {
1885
+ field: string;
1886
+ dir: "ASC" | "DESC";
1887
+ }[] | undefined;
1888
+ }>, z.ZodObject<{
1889
+ entity: z.ZodLiteral<"bookings">;
1890
+ filter: z.ZodObject<{
1891
+ limit: z.ZodDefault<z.ZodNumber>;
1892
+ page: z.ZodDefault<z.ZodNumber>;
1893
+ } & {
1894
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1895
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1896
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1897
+ }, "strip", z.ZodTypeAny, {
1898
+ from?: string | null | undefined;
1899
+ to?: string | null | undefined;
1900
+ }, {
1901
+ from?: string | null | undefined;
1902
+ to?: string | null | undefined;
1903
+ }>>>;
1904
+ workerName: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1905
+ value: z.ZodOptional<z.ZodString>;
1906
+ exact: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>;
1907
+ }, "strip", z.ZodTypeAny, {
1908
+ value?: string | undefined;
1909
+ exact?: boolean | undefined;
1910
+ }, {
1911
+ value?: string | undefined;
1912
+ exact?: boolean | "true" | "false" | undefined;
1913
+ }>>>;
1914
+ status: z.ZodNullable<z.ZodOptional<z.ZodDiscriminatedUnion<"category", [z.ZodObject<{
1915
+ category: z.ZodLiteral<"ATTEMPT">;
1916
+ 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"]>>;
1917
+ }, "strip", z.ZodTypeAny, {
1918
+ category: "ATTEMPT";
1919
+ 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;
1920
+ }, {
1921
+ category: "ATTEMPT";
1922
+ 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;
1923
+ }>, z.ZodObject<{
1924
+ category: z.ZodLiteral<"FAILED_START">;
1925
+ 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"]>>;
1926
+ }, "strip", z.ZodTypeAny, {
1927
+ category: "FAILED_START";
1928
+ 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;
1929
+ }, {
1930
+ category: "FAILED_START";
1931
+ 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;
1932
+ }>, z.ZodObject<{
1933
+ category: z.ZodLiteral<"IN_PROGRESS">;
1934
+ type: z.ZodOptional<z.ZodEnum<["SPOKE_WITH_WORKER_IN_THE_MORNING", "ON_THE_WAY_TO_THE_SITE", "AT_THE_INDUCTION", "STARTED_THE_JOB"]>>;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ category: "IN_PROGRESS";
1937
+ type?: "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | undefined;
1938
+ }, {
1939
+ category: "IN_PROGRESS";
1940
+ type?: "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | undefined;
1941
+ }>, z.ZodObject<{
1942
+ category: z.ZodLiteral<"FINISHED_THE_JOB">;
1943
+ type: z.ZodOptional<z.ZodLiteral<"COMPLETED">>;
1944
+ }, "strip", z.ZodTypeAny, {
1945
+ category: "FINISHED_THE_JOB";
1946
+ type?: "COMPLETED" | undefined;
1947
+ }, {
1948
+ category: "FINISHED_THE_JOB";
1949
+ type?: "COMPLETED" | undefined;
1950
+ }>, z.ZodObject<{
1951
+ category: z.ZodLiteral<"CANCELLED">;
1952
+ type: z.ZodOptional<z.ZodEnum<["CANCELLED", "JOB_CANCELLED"]>>;
1953
+ }, "strip", z.ZodTypeAny, {
1954
+ category: "CANCELLED";
1955
+ type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
1956
+ }, {
1957
+ category: "CANCELLED";
1958
+ type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
1959
+ }>]>>>;
1960
+ job: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1961
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1962
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1963
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1964
+ tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1965
+ location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1966
+ postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1967
+ radius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1968
+ }, "strip", z.ZodTypeAny, {
1969
+ postcode?: string | null | undefined;
1970
+ radius?: number | null | undefined;
1971
+ }, {
1972
+ postcode?: string | null | undefined;
1973
+ radius?: number | null | undefined;
1974
+ }>>>;
1975
+ }, "strip", z.ZodTypeAny, {
1976
+ userId?: string | null | undefined;
1977
+ tradeId?: string | null | undefined;
1978
+ companyId?: string | null | undefined;
1979
+ clientId?: string | null | undefined;
1980
+ location?: {
1981
+ postcode?: string | null | undefined;
1982
+ radius?: number | null | undefined;
1983
+ } | null | undefined;
1984
+ }, {
1985
+ userId?: string | null | undefined;
1986
+ tradeId?: string | null | undefined;
1987
+ companyId?: string | null | undefined;
1988
+ clientId?: string | null | undefined;
1989
+ location?: {
1990
+ postcode?: string | null | undefined;
1991
+ radius?: number | null | undefined;
1992
+ } | null | undefined;
1993
+ }>>>;
1994
+ agentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1995
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1996
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1997
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1998
+ }, "strip", z.ZodTypeAny, {
1999
+ from?: string | null | undefined;
2000
+ to?: string | null | undefined;
2001
+ }, {
2002
+ from?: string | null | undefined;
2003
+ to?: string | null | undefined;
2004
+ }>>>;
2005
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2006
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2007
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2008
+ }, "strip", z.ZodTypeAny, {
2009
+ from?: string | null | undefined;
2010
+ to?: string | null | undefined;
2011
+ }, {
2012
+ from?: string | null | undefined;
2013
+ to?: string | null | undefined;
2014
+ }>>>;
2015
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2016
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2017
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2018
+ }, "strip", z.ZodTypeAny, {
2019
+ from?: string | null | undefined;
2020
+ to?: string | null | undefined;
2021
+ }, {
2022
+ from?: string | null | undefined;
2023
+ to?: string | null | undefined;
2024
+ }>>>;
2025
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
2026
+ field: z.ZodEnum<["status", "startDate", "endDate", "workerName", "payRate", "secondAgent", "collaborationCompany", "collaborationClient", "collaborationAgent", "createdAt", "updatedAt"]>;
2027
+ order: z.ZodEnum<["ASC", "DESC"]>;
2028
+ }, "strip", z.ZodTypeAny, {
2029
+ field: "status" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "workerName" | "secondAgent" | "payRate" | "collaborationAgent" | "endDate";
2030
+ order: "ASC" | "DESC";
2031
+ }, {
2032
+ field: "status" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "workerName" | "secondAgent" | "payRate" | "collaborationAgent" | "endDate";
2033
+ order: "ASC" | "DESC";
2034
+ }>, "many">>>;
2035
+ }, "strip", z.ZodTypeAny, {
2036
+ limit: number;
2037
+ page: number;
2038
+ sort?: {
2039
+ field: "status" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "workerName" | "secondAgent" | "payRate" | "collaborationAgent" | "endDate";
2040
+ order: "ASC" | "DESC";
2041
+ }[] | null | undefined;
2042
+ status?: {
2043
+ category: "ATTEMPT";
2044
+ 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;
2045
+ } | {
2046
+ category: "FAILED_START";
2047
+ 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;
2048
+ } | {
2049
+ category: "IN_PROGRESS";
2050
+ type?: "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | undefined;
2051
+ } | {
2052
+ category: "FINISHED_THE_JOB";
2053
+ type?: "COMPLETED" | undefined;
2054
+ } | {
2055
+ category: "CANCELLED";
2056
+ type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
2057
+ } | null | undefined;
2058
+ startDate?: {
2059
+ from?: string | null | undefined;
2060
+ to?: string | null | undefined;
2061
+ } | null | undefined;
2062
+ createdAt?: {
2063
+ from?: string | null | undefined;
2064
+ to?: string | null | undefined;
2065
+ } | null | undefined;
2066
+ updatedAt?: {
2067
+ from?: string | null | undefined;
2068
+ to?: string | null | undefined;
2069
+ } | null | undefined;
2070
+ workerName?: {
2071
+ value?: string | undefined;
2072
+ exact?: boolean | undefined;
2073
+ } | null | undefined;
2074
+ agentId?: string | null | undefined;
2075
+ job?: {
2076
+ userId?: string | null | undefined;
2077
+ tradeId?: string | null | undefined;
2078
+ companyId?: string | null | undefined;
2079
+ clientId?: string | null | undefined;
2080
+ location?: {
2081
+ postcode?: string | null | undefined;
2082
+ radius?: number | null | undefined;
2083
+ } | null | undefined;
2084
+ } | null | undefined;
2085
+ endDate?: {
2086
+ from?: string | null | undefined;
2087
+ to?: string | null | undefined;
2088
+ } | null | undefined;
2089
+ }, {
2090
+ limit?: number | undefined;
2091
+ page?: number | undefined;
2092
+ sort?: {
2093
+ field: "status" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "workerName" | "secondAgent" | "payRate" | "collaborationAgent" | "endDate";
2094
+ order: "ASC" | "DESC";
2095
+ }[] | null | undefined;
2096
+ status?: {
2097
+ category: "ATTEMPT";
2098
+ 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;
2099
+ } | {
2100
+ category: "FAILED_START";
2101
+ 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;
2102
+ } | {
2103
+ category: "IN_PROGRESS";
2104
+ type?: "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | undefined;
2105
+ } | {
2106
+ category: "FINISHED_THE_JOB";
2107
+ type?: "COMPLETED" | undefined;
2108
+ } | {
2109
+ category: "CANCELLED";
2110
+ type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
2111
+ } | null | undefined;
2112
+ startDate?: {
2113
+ from?: string | null | undefined;
2114
+ to?: string | null | undefined;
2115
+ } | null | undefined;
2116
+ createdAt?: {
2117
+ from?: string | null | undefined;
2118
+ to?: string | null | undefined;
2119
+ } | null | undefined;
2120
+ updatedAt?: {
2121
+ from?: string | null | undefined;
2122
+ to?: string | null | undefined;
2123
+ } | null | undefined;
2124
+ workerName?: {
2125
+ value?: string | undefined;
2126
+ exact?: boolean | "true" | "false" | undefined;
2127
+ } | null | undefined;
2128
+ agentId?: string | null | undefined;
2129
+ job?: {
2130
+ userId?: string | null | undefined;
2131
+ tradeId?: string | null | undefined;
2132
+ companyId?: string | null | undefined;
2133
+ clientId?: string | null | undefined;
2134
+ location?: {
2135
+ postcode?: string | null | undefined;
2136
+ radius?: number | null | undefined;
2137
+ } | null | undefined;
2138
+ } | null | undefined;
2139
+ endDate?: {
2140
+ from?: string | null | undefined;
2141
+ to?: string | null | undefined;
2142
+ } | null | undefined;
2143
+ }>;
2144
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
2145
+ field: z.ZodString;
2146
+ dir: z.ZodEnum<["ASC", "DESC"]>;
2147
+ }, "strip", z.ZodTypeAny, {
2148
+ field: string;
2149
+ dir: "ASC" | "DESC";
2150
+ }, {
2151
+ field: string;
2152
+ dir: "ASC" | "DESC";
2153
+ }>, "many">>;
2154
+ columns: z.ZodArray<z.ZodString, "many">;
2155
+ }, "strip", z.ZodTypeAny, {
2156
+ sort: {
2157
+ field: string;
2158
+ dir: "ASC" | "DESC";
2159
+ }[];
2160
+ filter: {
2161
+ limit: number;
2162
+ page: number;
2163
+ sort?: {
2164
+ field: "status" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "workerName" | "secondAgent" | "payRate" | "collaborationAgent" | "endDate";
2165
+ order: "ASC" | "DESC";
2166
+ }[] | null | undefined;
2167
+ status?: {
2168
+ category: "ATTEMPT";
2169
+ 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;
2170
+ } | {
2171
+ category: "FAILED_START";
2172
+ 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;
2173
+ } | {
2174
+ category: "IN_PROGRESS";
2175
+ type?: "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | undefined;
2176
+ } | {
2177
+ category: "FINISHED_THE_JOB";
2178
+ type?: "COMPLETED" | undefined;
2179
+ } | {
2180
+ category: "CANCELLED";
2181
+ type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
2182
+ } | null | undefined;
2183
+ startDate?: {
2184
+ from?: string | null | undefined;
2185
+ to?: string | null | undefined;
2186
+ } | null | undefined;
2187
+ createdAt?: {
2188
+ from?: string | null | undefined;
2189
+ to?: string | null | undefined;
2190
+ } | null | undefined;
2191
+ updatedAt?: {
2192
+ from?: string | null | undefined;
2193
+ to?: string | null | undefined;
2194
+ } | null | undefined;
2195
+ workerName?: {
2196
+ value?: string | undefined;
2197
+ exact?: boolean | undefined;
2198
+ } | null | undefined;
2199
+ agentId?: string | null | undefined;
2200
+ job?: {
2201
+ userId?: string | null | undefined;
2202
+ tradeId?: string | null | undefined;
2203
+ companyId?: string | null | undefined;
2204
+ clientId?: string | null | undefined;
2205
+ location?: {
2206
+ postcode?: string | null | undefined;
2207
+ radius?: number | null | undefined;
2208
+ } | null | undefined;
2209
+ } | null | undefined;
2210
+ endDate?: {
2211
+ from?: string | null | undefined;
2212
+ to?: string | null | undefined;
2213
+ } | null | undefined;
2214
+ };
2215
+ entity: "bookings";
2216
+ columns: string[];
2217
+ }, {
2218
+ filter: {
2219
+ limit?: number | undefined;
2220
+ page?: number | undefined;
2221
+ sort?: {
2222
+ field: "status" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "workerName" | "secondAgent" | "payRate" | "collaborationAgent" | "endDate";
2223
+ order: "ASC" | "DESC";
2224
+ }[] | null | undefined;
2225
+ status?: {
2226
+ category: "ATTEMPT";
2227
+ type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | "CONFIRMED" | undefined;
2228
+ } | {
2229
+ category: "FAILED_START";
2230
+ 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;
2231
+ } | {
2232
+ category: "IN_PROGRESS";
2233
+ type?: "SPOKE_WITH_WORKER_IN_THE_MORNING" | "ON_THE_WAY_TO_THE_SITE" | "AT_THE_INDUCTION" | "STARTED_THE_JOB" | undefined;
2234
+ } | {
2235
+ category: "FINISHED_THE_JOB";
2236
+ type?: "COMPLETED" | undefined;
2237
+ } | {
2238
+ category: "CANCELLED";
2239
+ type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
2240
+ } | null | undefined;
2241
+ startDate?: {
2242
+ from?: string | null | undefined;
2243
+ to?: string | null | undefined;
2244
+ } | null | undefined;
2245
+ createdAt?: {
2246
+ from?: string | null | undefined;
2247
+ to?: string | null | undefined;
2248
+ } | null | undefined;
2249
+ updatedAt?: {
2250
+ from?: string | null | undefined;
2251
+ to?: string | null | undefined;
2252
+ } | null | undefined;
2253
+ workerName?: {
2254
+ value?: string | undefined;
2255
+ exact?: boolean | "true" | "false" | undefined;
2256
+ } | null | undefined;
2257
+ agentId?: string | null | undefined;
2258
+ job?: {
2259
+ userId?: string | null | undefined;
2260
+ tradeId?: string | null | undefined;
2261
+ companyId?: string | null | undefined;
2262
+ clientId?: string | null | undefined;
2263
+ location?: {
2264
+ postcode?: string | null | undefined;
2265
+ radius?: number | null | undefined;
2266
+ } | null | undefined;
2267
+ } | null | undefined;
2268
+ endDate?: {
2269
+ from?: string | null | undefined;
2270
+ to?: string | null | undefined;
2271
+ } | null | undefined;
2272
+ };
2273
+ entity: "bookings";
2274
+ columns: string[];
2275
+ sort?: {
2276
+ field: string;
2277
+ dir: "ASC" | "DESC";
2278
+ }[] | undefined;
2279
+ }>, z.ZodObject<{
2280
+ entity: z.ZodLiteral<"call-history">;
2281
+ filter: z.ZodObject<{
2282
+ limit: z.ZodDefault<z.ZodNumber>;
2283
+ page: z.ZodDefault<z.ZodNumber>;
2284
+ } & {
2285
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2286
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2287
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2288
+ }, "strip", z.ZodTypeAny, {
2289
+ from?: string | null | undefined;
2290
+ to?: string | null | undefined;
2291
+ }, {
2292
+ from?: string | null | undefined;
2293
+ to?: string | null | undefined;
2294
+ }>>>;
2295
+ agentId: z.ZodOptional<z.ZodString>;
2296
+ companyId: z.ZodOptional<z.ZodString>;
2297
+ rating: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2298
+ from: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>>>, import("../common/call-rating.schema").CallRating | null | undefined, unknown>;
2299
+ to: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>>>, import("../common/call-rating.schema").CallRating | null | undefined, unknown>;
2300
+ }, "strip", z.ZodTypeAny, {
2301
+ from?: import("../common/call-rating.schema").CallRating | null | undefined;
2302
+ to?: import("../common/call-rating.schema").CallRating | null | undefined;
2303
+ }, {
2304
+ from?: unknown;
2305
+ to?: unknown;
2306
+ }>>>;
2307
+ callType: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>>;
2308
+ leadSource: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").LeadSource>>;
2309
+ phoneNumber: z.ZodOptional<z.ZodString>;
2310
+ leadName: z.ZodOptional<z.ZodString>;
2311
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
2312
+ field: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallHistorySortableFields>;
2313
+ order: z.ZodEnum<["ASC", "DESC"]>;
2314
+ }, "strip", z.ZodTypeAny, {
2315
+ field: import("../call-history/call-history.contract").CallHistorySortableFields;
2316
+ order: "ASC" | "DESC";
2317
+ }, {
2318
+ field: import("../call-history/call-history.contract").CallHistorySortableFields;
2319
+ order: "ASC" | "DESC";
2320
+ }>, "many">>>;
2321
+ }, "strip", z.ZodTypeAny, {
2322
+ limit: number;
2323
+ page: number;
2324
+ sort?: {
2325
+ field: import("../call-history/call-history.contract").CallHistorySortableFields;
2326
+ order: "ASC" | "DESC";
2327
+ }[] | null | undefined;
2328
+ createdAt?: {
2329
+ from?: string | null | undefined;
2330
+ to?: string | null | undefined;
2331
+ } | null | undefined;
2332
+ phoneNumber?: string | undefined;
2333
+ agentId?: string | undefined;
2334
+ rating?: {
2335
+ from?: import("../common/call-rating.schema").CallRating | null | undefined;
2336
+ to?: import("../common/call-rating.schema").CallRating | null | undefined;
2337
+ } | null | undefined;
2338
+ callType?: import("../call-history/call-history.contract").CallType | undefined;
2339
+ companyId?: string | undefined;
2340
+ leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
2341
+ leadName?: string | undefined;
2342
+ }, {
2343
+ limit?: number | undefined;
2344
+ page?: number | undefined;
2345
+ sort?: {
2346
+ field: import("../call-history/call-history.contract").CallHistorySortableFields;
2347
+ order: "ASC" | "DESC";
2348
+ }[] | null | undefined;
2349
+ createdAt?: {
2350
+ from?: string | null | undefined;
2351
+ to?: string | null | undefined;
2352
+ } | null | undefined;
2353
+ phoneNumber?: string | undefined;
2354
+ agentId?: string | undefined;
2355
+ rating?: {
2356
+ from?: unknown;
2357
+ to?: unknown;
2358
+ } | null | undefined;
2359
+ callType?: import("../call-history/call-history.contract").CallType | undefined;
2360
+ companyId?: string | undefined;
2361
+ leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
2362
+ leadName?: string | undefined;
2363
+ }>;
2364
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
2365
+ field: z.ZodString;
2366
+ dir: z.ZodEnum<["ASC", "DESC"]>;
2367
+ }, "strip", z.ZodTypeAny, {
2368
+ field: string;
2369
+ dir: "ASC" | "DESC";
2370
+ }, {
2371
+ field: string;
2372
+ dir: "ASC" | "DESC";
2373
+ }>, "many">>;
2374
+ columns: z.ZodArray<z.ZodString, "many">;
2375
+ }, "strip", z.ZodTypeAny, {
2376
+ sort: {
2377
+ field: string;
2378
+ dir: "ASC" | "DESC";
2379
+ }[];
2380
+ filter: {
2381
+ limit: number;
2382
+ page: number;
2383
+ sort?: {
2384
+ field: import("../call-history/call-history.contract").CallHistorySortableFields;
2385
+ order: "ASC" | "DESC";
2386
+ }[] | null | undefined;
2387
+ createdAt?: {
2388
+ from?: string | null | undefined;
2389
+ to?: string | null | undefined;
2390
+ } | null | undefined;
2391
+ phoneNumber?: string | undefined;
2392
+ agentId?: string | undefined;
2393
+ rating?: {
2394
+ from?: import("../common/call-rating.schema").CallRating | null | undefined;
2395
+ to?: import("../common/call-rating.schema").CallRating | null | undefined;
2396
+ } | null | undefined;
2397
+ callType?: import("../call-history/call-history.contract").CallType | undefined;
2398
+ companyId?: string | undefined;
2399
+ leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
2400
+ leadName?: string | undefined;
2401
+ };
2402
+ entity: "call-history";
2403
+ columns: string[];
2404
+ }, {
2405
+ filter: {
2406
+ limit?: number | undefined;
2407
+ page?: number | undefined;
2408
+ sort?: {
2409
+ field: import("../call-history/call-history.contract").CallHistorySortableFields;
2410
+ order: "ASC" | "DESC";
2411
+ }[] | null | undefined;
2412
+ createdAt?: {
2413
+ from?: string | null | undefined;
2414
+ to?: string | null | undefined;
2415
+ } | null | undefined;
2416
+ phoneNumber?: string | undefined;
2417
+ agentId?: string | undefined;
2418
+ rating?: {
2419
+ from?: unknown;
2420
+ to?: unknown;
2421
+ } | null | undefined;
2422
+ callType?: import("../call-history/call-history.contract").CallType | undefined;
2423
+ companyId?: string | undefined;
2424
+ leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
2425
+ leadName?: string | undefined;
2426
+ };
2427
+ entity: "call-history";
2428
+ columns: string[];
2429
+ sort?: {
2430
+ field: string;
2431
+ dir: "ASC" | "DESC";
2432
+ }[] | undefined;
2433
+ }>, z.ZodObject<{
2434
+ entity: z.ZodLiteral<"jobs">;
2435
+ filter: z.ZodObject<{
2436
+ limit: z.ZodDefault<z.ZodNumber>;
2437
+ page: z.ZodDefault<z.ZodNumber>;
2438
+ } & {
2439
+ status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["AVAILABLE", "NOT_AVAILABLE"]>>>;
2440
+ creationSource: z.ZodNullable<z.ZodOptional<z.ZodEnum<["MANUAL", "BOT"]>>>;
2441
+ tradeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2442
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2443
+ companyId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2444
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2445
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2446
+ location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2447
+ postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2448
+ radius: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2449
+ }, "strip", z.ZodTypeAny, {
2450
+ postcode?: string | null | undefined;
2451
+ radius?: number | null | undefined;
2452
+ }, {
2453
+ postcode?: string | null | undefined;
2454
+ radius?: number | null | undefined;
2455
+ }>>>;
2456
+ pay: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2457
+ minRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2458
+ maxRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2459
+ }, "strip", z.ZodTypeAny, {
2460
+ minRate?: number | null | undefined;
2461
+ maxRate?: number | null | undefined;
2462
+ }, {
2463
+ minRate?: number | null | undefined;
2464
+ maxRate?: number | null | undefined;
2465
+ }>>>;
2466
+ qualificationFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
2467
+ qualificationId: z.ZodOptional<z.ZodString>;
2468
+ qualificationTypeId: z.ZodOptional<z.ZodString>;
2469
+ }, "strip", z.ZodTypeAny, {
2470
+ qualificationId?: string | undefined;
2471
+ qualificationTypeId?: string | undefined;
2472
+ }, {
2473
+ qualificationId?: string | undefined;
2474
+ qualificationTypeId?: string | undefined;
2475
+ }>, "many">>;
2476
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2477
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2478
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2479
+ }, "strip", z.ZodTypeAny, {
2480
+ from?: string | null | undefined;
2481
+ to?: string | null | undefined;
2482
+ }, {
2483
+ from?: string | null | undefined;
2484
+ to?: string | null | undefined;
2485
+ }>>>;
2486
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2487
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2488
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2489
+ }, "strip", z.ZodTypeAny, {
2490
+ from?: string | null | undefined;
2491
+ to?: string | null | undefined;
2492
+ }, {
2493
+ from?: string | null | undefined;
2494
+ to?: string | null | undefined;
2495
+ }>>>;
2496
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
2497
+ field: z.ZodEnum<["description", "numberOfPositions", "status", "tradeId", "collaborationCompany", "collaborationClient", "collaborationAgent", "distance", "postcode", "payRate", "receivedRate", "workHours", "qualificationsCount", "creationSource", "createdAt", "updatedAt", "startDate"]>;
2498
+ order: z.ZodEnum<["ASC", "DESC"]>;
2499
+ }, "strip", z.ZodTypeAny, {
2500
+ field: "status" | "description" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "tradeId" | "payRate" | "receivedRate" | "collaborationAgent" | "creationSource" | "numberOfPositions" | "distance" | "workHours" | "qualificationsCount";
2501
+ order: "ASC" | "DESC";
2502
+ }, {
2503
+ field: "status" | "description" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "tradeId" | "payRate" | "receivedRate" | "collaborationAgent" | "creationSource" | "numberOfPositions" | "distance" | "workHours" | "qualificationsCount";
2504
+ order: "ASC" | "DESC";
2505
+ }>, "many">>>;
2506
+ }, "strip", z.ZodTypeAny, {
2507
+ limit: number;
2508
+ page: number;
2509
+ sort?: {
2510
+ field: "status" | "description" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "tradeId" | "payRate" | "receivedRate" | "collaborationAgent" | "creationSource" | "numberOfPositions" | "distance" | "workHours" | "qualificationsCount";
2511
+ order: "ASC" | "DESC";
2512
+ }[] | null | undefined;
2513
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2514
+ description?: string | null | undefined;
2515
+ createdAt?: {
2516
+ from?: string | null | undefined;
2517
+ to?: string | null | undefined;
2518
+ } | null | undefined;
2519
+ updatedAt?: {
2520
+ from?: string | null | undefined;
2521
+ to?: string | null | undefined;
2522
+ } | null | undefined;
2523
+ userId?: string | null | undefined;
2524
+ tradeId?: string | null | undefined;
2525
+ companyId?: string | null | undefined;
2526
+ pay?: {
2527
+ minRate?: number | null | undefined;
2528
+ maxRate?: number | null | undefined;
2529
+ } | null | undefined;
2530
+ clientId?: string | null | undefined;
2531
+ location?: {
2532
+ postcode?: string | null | undefined;
2533
+ radius?: number | null | undefined;
2534
+ } | null | undefined;
2535
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
2536
+ qualificationFilters?: {
2537
+ qualificationId?: string | undefined;
2538
+ qualificationTypeId?: string | undefined;
2539
+ }[] | undefined;
2540
+ }, {
2541
+ limit?: number | undefined;
2542
+ page?: number | undefined;
2543
+ sort?: {
2544
+ field: "status" | "description" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "tradeId" | "payRate" | "receivedRate" | "collaborationAgent" | "creationSource" | "numberOfPositions" | "distance" | "workHours" | "qualificationsCount";
2545
+ order: "ASC" | "DESC";
2546
+ }[] | null | undefined;
2547
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2548
+ description?: string | null | undefined;
2549
+ createdAt?: {
2550
+ from?: string | null | undefined;
2551
+ to?: string | null | undefined;
2552
+ } | null | undefined;
2553
+ updatedAt?: {
2554
+ from?: string | null | undefined;
2555
+ to?: string | null | undefined;
2556
+ } | null | undefined;
2557
+ userId?: string | null | undefined;
2558
+ tradeId?: string | null | undefined;
2559
+ companyId?: string | null | undefined;
2560
+ pay?: {
2561
+ minRate?: number | null | undefined;
2562
+ maxRate?: number | null | undefined;
2563
+ } | null | undefined;
2564
+ clientId?: string | null | undefined;
2565
+ location?: {
2566
+ postcode?: string | null | undefined;
2567
+ radius?: number | null | undefined;
2568
+ } | null | undefined;
2569
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
2570
+ qualificationFilters?: {
2571
+ qualificationId?: string | undefined;
2572
+ qualificationTypeId?: string | undefined;
2573
+ }[] | undefined;
2574
+ }>;
2575
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
2576
+ field: z.ZodString;
2577
+ dir: z.ZodEnum<["ASC", "DESC"]>;
2578
+ }, "strip", z.ZodTypeAny, {
2579
+ field: string;
2580
+ dir: "ASC" | "DESC";
2581
+ }, {
2582
+ field: string;
2583
+ dir: "ASC" | "DESC";
2584
+ }>, "many">>;
2585
+ columns: z.ZodArray<z.ZodString, "many">;
2586
+ }, "strip", z.ZodTypeAny, {
2587
+ sort: {
2588
+ field: string;
2589
+ dir: "ASC" | "DESC";
2590
+ }[];
2591
+ filter: {
2592
+ limit: number;
2593
+ page: number;
2594
+ sort?: {
2595
+ field: "status" | "description" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "tradeId" | "payRate" | "receivedRate" | "collaborationAgent" | "creationSource" | "numberOfPositions" | "distance" | "workHours" | "qualificationsCount";
2596
+ order: "ASC" | "DESC";
2597
+ }[] | null | undefined;
2598
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2599
+ description?: string | null | undefined;
2600
+ createdAt?: {
2601
+ from?: string | null | undefined;
2602
+ to?: string | null | undefined;
2603
+ } | null | undefined;
2604
+ updatedAt?: {
2605
+ from?: string | null | undefined;
2606
+ to?: string | null | undefined;
2607
+ } | null | undefined;
2608
+ userId?: string | null | undefined;
2609
+ tradeId?: string | null | undefined;
2610
+ companyId?: string | null | undefined;
2611
+ pay?: {
2612
+ minRate?: number | null | undefined;
2613
+ maxRate?: number | null | undefined;
2614
+ } | null | undefined;
2615
+ clientId?: string | null | undefined;
2616
+ location?: {
2617
+ postcode?: string | null | undefined;
2618
+ radius?: number | null | undefined;
2619
+ } | null | undefined;
2620
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
2621
+ qualificationFilters?: {
2622
+ qualificationId?: string | undefined;
2623
+ qualificationTypeId?: string | undefined;
2624
+ }[] | undefined;
2625
+ };
2626
+ entity: "jobs";
2627
+ columns: string[];
2628
+ }, {
2629
+ filter: {
2630
+ limit?: number | undefined;
2631
+ page?: number | undefined;
2632
+ sort?: {
2633
+ field: "status" | "description" | "startDate" | "createdAt" | "updatedAt" | "collaborationClient" | "collaborationCompany" | "postcode" | "tradeId" | "payRate" | "receivedRate" | "collaborationAgent" | "creationSource" | "numberOfPositions" | "distance" | "workHours" | "qualificationsCount";
2634
+ order: "ASC" | "DESC";
2635
+ }[] | null | undefined;
2636
+ status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
2637
+ description?: string | null | undefined;
2638
+ createdAt?: {
2639
+ from?: string | null | undefined;
2640
+ to?: string | null | undefined;
2641
+ } | null | undefined;
2642
+ updatedAt?: {
2643
+ from?: string | null | undefined;
2644
+ to?: string | null | undefined;
2645
+ } | null | undefined;
2646
+ userId?: string | null | undefined;
2647
+ tradeId?: string | null | undefined;
2648
+ companyId?: string | null | undefined;
2649
+ pay?: {
2650
+ minRate?: number | null | undefined;
2651
+ maxRate?: number | null | undefined;
2652
+ } | null | undefined;
2653
+ clientId?: string | null | undefined;
2654
+ location?: {
2655
+ postcode?: string | null | undefined;
2656
+ radius?: number | null | undefined;
2657
+ } | null | undefined;
2658
+ creationSource?: "MANUAL" | "BOT" | null | undefined;
2659
+ qualificationFilters?: {
2660
+ qualificationId?: string | undefined;
2661
+ qualificationTypeId?: string | undefined;
2662
+ }[] | undefined;
2663
+ };
2664
+ entity: "jobs";
2665
+ columns: string[];
2666
+ sort?: {
2667
+ field: string;
2668
+ dir: "ASC" | "DESC";
2669
+ }[] | undefined;
2670
+ }>, z.ZodObject<{
2671
+ entity: z.ZodLiteral<"users">;
2672
+ filter: z.ZodObject<{
2673
+ limit: z.ZodDefault<z.ZodNumber>;
2674
+ page: z.ZodDefault<z.ZodNumber>;
2675
+ } & {
2676
+ name: z.ZodOptional<z.ZodString>;
2677
+ email: z.ZodOptional<z.ZodString>;
2678
+ phone: z.ZodOptional<z.ZodString>;
2679
+ roles: z.ZodOptional<z.ZodObject<{
2680
+ values: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
2681
+ requireAll: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
2682
+ }, "strip", z.ZodTypeAny, {
2683
+ values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2684
+ requireAll?: boolean | undefined;
2685
+ }, {
2686
+ values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2687
+ requireAll?: unknown;
2688
+ }>>;
2689
+ officeId: z.ZodOptional<z.ZodString>;
2690
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE"]>>;
2691
+ createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2692
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2693
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2694
+ }, "strip", z.ZodTypeAny, {
2695
+ from?: string | null | undefined;
2696
+ to?: string | null | undefined;
2697
+ }, {
2698
+ from?: string | null | undefined;
2699
+ to?: string | null | undefined;
2700
+ }>>>;
2701
+ updatedAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2702
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2703
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2704
+ }, "strip", z.ZodTypeAny, {
2705
+ from?: string | null | undefined;
2706
+ to?: string | null | undefined;
2707
+ }, {
2708
+ from?: string | null | undefined;
2709
+ to?: string | null | undefined;
2710
+ }>>>;
2711
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
2712
+ field: z.ZodEnum<["lastName", "firstName", "email", "createdAt", "office"]>;
2713
+ order: z.ZodEnum<["ASC", "DESC"]>;
2714
+ }, "strip", z.ZodTypeAny, {
2715
+ field: "firstName" | "lastName" | "email" | "createdAt" | "office";
2716
+ order: "ASC" | "DESC";
2717
+ }, {
2718
+ field: "firstName" | "lastName" | "email" | "createdAt" | "office";
2719
+ order: "ASC" | "DESC";
2720
+ }>, "many">>>;
2721
+ }, "strip", z.ZodTypeAny, {
2722
+ limit: number;
2723
+ page: number;
2724
+ sort?: {
2725
+ field: "firstName" | "lastName" | "email" | "createdAt" | "office";
2726
+ order: "ASC" | "DESC";
2727
+ }[] | null | undefined;
2728
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2729
+ email?: string | undefined;
2730
+ roles?: {
2731
+ values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2732
+ requireAll?: boolean | undefined;
2733
+ } | undefined;
2734
+ name?: string | undefined;
2735
+ createdAt?: {
2736
+ from?: string | null | undefined;
2737
+ to?: string | null | undefined;
2738
+ } | null | undefined;
2739
+ updatedAt?: {
2740
+ from?: string | null | undefined;
2741
+ to?: string | null | undefined;
2742
+ } | null | undefined;
2743
+ officeId?: string | undefined;
2744
+ phone?: string | undefined;
2745
+ }, {
2746
+ limit?: number | undefined;
2747
+ page?: number | undefined;
2748
+ sort?: {
2749
+ field: "firstName" | "lastName" | "email" | "createdAt" | "office";
2750
+ order: "ASC" | "DESC";
2751
+ }[] | null | undefined;
2752
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2753
+ email?: string | undefined;
2754
+ roles?: {
2755
+ values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2756
+ requireAll?: unknown;
2757
+ } | undefined;
2758
+ name?: string | undefined;
2759
+ createdAt?: {
2760
+ from?: string | null | undefined;
2761
+ to?: string | null | undefined;
2762
+ } | null | undefined;
2763
+ updatedAt?: {
2764
+ from?: string | null | undefined;
2765
+ to?: string | null | undefined;
2766
+ } | null | undefined;
2767
+ officeId?: string | undefined;
2768
+ phone?: string | undefined;
2769
+ }>;
2770
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
2771
+ field: z.ZodString;
2772
+ dir: z.ZodEnum<["ASC", "DESC"]>;
2773
+ }, "strip", z.ZodTypeAny, {
2774
+ field: string;
2775
+ dir: "ASC" | "DESC";
2776
+ }, {
2777
+ field: string;
2778
+ dir: "ASC" | "DESC";
2779
+ }>, "many">>;
2780
+ columns: z.ZodArray<z.ZodString, "many">;
2781
+ }, "strip", z.ZodTypeAny, {
2782
+ sort: {
2783
+ field: string;
2784
+ dir: "ASC" | "DESC";
2785
+ }[];
2786
+ filter: {
2787
+ limit: number;
2788
+ page: number;
2789
+ sort?: {
2790
+ field: "firstName" | "lastName" | "email" | "createdAt" | "office";
2791
+ order: "ASC" | "DESC";
2792
+ }[] | null | undefined;
2793
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2794
+ email?: string | undefined;
2795
+ roles?: {
2796
+ values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2797
+ requireAll?: boolean | undefined;
2798
+ } | undefined;
2799
+ name?: string | undefined;
2800
+ createdAt?: {
2801
+ from?: string | null | undefined;
2802
+ to?: string | null | undefined;
2803
+ } | null | undefined;
2804
+ updatedAt?: {
2805
+ from?: string | null | undefined;
2806
+ to?: string | null | undefined;
2807
+ } | null | undefined;
2808
+ officeId?: string | undefined;
2809
+ phone?: string | undefined;
2810
+ };
2811
+ entity: "users";
2812
+ columns: string[];
2813
+ }, {
2814
+ filter: {
2815
+ limit?: number | undefined;
2816
+ page?: number | undefined;
2817
+ sort?: {
2818
+ field: "firstName" | "lastName" | "email" | "createdAt" | "office";
2819
+ order: "ASC" | "DESC";
2820
+ }[] | null | undefined;
2821
+ status?: "ACTIVE" | "INACTIVE" | undefined;
2822
+ email?: string | undefined;
2823
+ roles?: {
2824
+ values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
2825
+ requireAll?: unknown;
2826
+ } | undefined;
2827
+ name?: string | undefined;
2828
+ createdAt?: {
2829
+ from?: string | null | undefined;
2830
+ to?: string | null | undefined;
2831
+ } | null | undefined;
2832
+ updatedAt?: {
2833
+ from?: string | null | undefined;
2834
+ to?: string | null | undefined;
2835
+ } | null | undefined;
2836
+ officeId?: string | undefined;
2837
+ phone?: string | undefined;
2838
+ };
2839
+ entity: "users";
2840
+ columns: string[];
2841
+ sort?: {
2842
+ field: string;
2843
+ dir: "ASC" | "DESC";
2844
+ }[] | undefined;
2845
+ }>]>;
2846
+ path: "/v2/export-jobs";
2847
+ responses: {
2848
+ 201: z.ZodObject<{
2849
+ id: z.ZodString;
2850
+ userId: z.ZodString;
2851
+ user: z.ZodNullable<z.ZodObject<{
2852
+ id: z.ZodString;
2853
+ firstName: z.ZodString;
2854
+ lastName: z.ZodString;
2855
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2856
+ id: z.ZodString;
2857
+ phoneNumber: z.ZodString;
2858
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2859
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
2860
+ }, "strip", z.ZodTypeAny, {
2861
+ id: string;
2862
+ phoneNumber: string;
2863
+ isPrimary: boolean;
2864
+ description?: string | null | undefined;
2865
+ }, {
2866
+ id: string;
2867
+ phoneNumber: string;
2868
+ description?: string | null | undefined;
2869
+ isPrimary?: boolean | undefined;
2870
+ }>, "many">>>;
2871
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
2872
+ }, "strip", z.ZodTypeAny, {
2873
+ id: string;
2874
+ firstName: string;
2875
+ lastName: string;
2876
+ phoneNumbers: {
2877
+ id: string;
2878
+ phoneNumber: string;
2879
+ isPrimary: boolean;
2880
+ description?: string | null | undefined;
2881
+ }[];
2882
+ deletedAt?: string | null | undefined;
2883
+ }, {
2884
+ id: string;
2885
+ firstName: string;
2886
+ lastName: string;
2887
+ phoneNumbers?: {
2888
+ id: string;
2889
+ phoneNumber: string;
2890
+ description?: string | null | undefined;
2891
+ isPrimary?: boolean | undefined;
2892
+ }[] | undefined;
2893
+ deletedAt?: string | Date | null | undefined;
2894
+ }>>;
2895
+ entity: z.ZodEnum<["actives", "bookings", "call-history", "jobs", "users"]>;
2896
+ status: z.ZodEnum<["pending", "processing", "completed", "failed", "cancelled"]>;
2897
+ filter: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2898
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
2899
+ field: z.ZodString;
2900
+ dir: z.ZodEnum<["ASC", "DESC"]>;
2901
+ }, "strip", z.ZodTypeAny, {
2902
+ field: string;
2903
+ dir: "ASC" | "DESC";
2904
+ }, {
2905
+ field: string;
2906
+ dir: "ASC" | "DESC";
2907
+ }>, "many">>;
2908
+ columns: z.ZodArray<z.ZodString, "many">;
2909
+ rowsProcessed: z.ZodNumber;
2910
+ rowsSkipped: z.ZodNumber;
2911
+ totalRows: z.ZodNullable<z.ZodNumber>;
2912
+ byteSize: z.ZodNullable<z.ZodNumber>;
2913
+ errorMessage: z.ZodNullable<z.ZodString>;
2914
+ requestedAt: z.ZodString;
2915
+ startedAt: z.ZodNullable<z.ZodString>;
2916
+ completedAt: z.ZodNullable<z.ZodString>;
2917
+ expiresAt: z.ZodString;
2918
+ }, "strip", z.ZodTypeAny, {
2919
+ sort: {
2920
+ field: string;
2921
+ dir: "ASC" | "DESC";
2922
+ }[];
2923
+ filter: Record<string, unknown>;
2924
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
2925
+ id: string;
2926
+ user: {
2927
+ id: string;
2928
+ firstName: string;
2929
+ lastName: string;
2930
+ phoneNumbers: {
2931
+ id: string;
2932
+ phoneNumber: string;
2933
+ isPrimary: boolean;
2934
+ description?: string | null | undefined;
2935
+ }[];
2936
+ deletedAt?: string | null | undefined;
2937
+ } | null;
2938
+ userId: string;
2939
+ requestedAt: string;
2940
+ completedAt: string | null;
2941
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
2942
+ columns: string[];
2943
+ rowsProcessed: number;
2944
+ rowsSkipped: number;
2945
+ totalRows: number | null;
2946
+ byteSize: number | null;
2947
+ errorMessage: string | null;
2948
+ startedAt: string | null;
2949
+ expiresAt: string;
2950
+ }, {
2951
+ filter: Record<string, unknown>;
2952
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
2953
+ id: string;
2954
+ user: {
2955
+ id: string;
2956
+ firstName: string;
2957
+ lastName: string;
2958
+ phoneNumbers?: {
2959
+ id: string;
2960
+ phoneNumber: string;
2961
+ description?: string | null | undefined;
2962
+ isPrimary?: boolean | undefined;
2963
+ }[] | undefined;
2964
+ deletedAt?: string | Date | null | undefined;
2965
+ } | null;
2966
+ userId: string;
2967
+ requestedAt: string;
2968
+ completedAt: string | null;
2969
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
2970
+ columns: string[];
2971
+ rowsProcessed: number;
2972
+ rowsSkipped: number;
2973
+ totalRows: number | null;
2974
+ byteSize: number | null;
2975
+ errorMessage: string | null;
2976
+ startedAt: string | null;
2977
+ expiresAt: string;
2978
+ sort?: {
2979
+ field: string;
2980
+ dir: "ASC" | "DESC";
2981
+ }[] | undefined;
2982
+ }>;
2983
+ 403: z.ZodObject<{
2984
+ message: z.ZodString;
2985
+ }, "strip", z.ZodTypeAny, {
2986
+ message: string;
2987
+ }, {
2988
+ message: string;
2989
+ }>;
2990
+ 409: z.ZodObject<{
2991
+ message: z.ZodString;
2992
+ }, "strip", z.ZodTypeAny, {
2993
+ message: string;
2994
+ }, {
2995
+ message: string;
2996
+ }>;
2997
+ };
2998
+ };
2999
+ list: {
3000
+ query: z.ZodObject<{
3001
+ limit: z.ZodDefault<z.ZodNumber>;
3002
+ page: z.ZodDefault<z.ZodNumber>;
3003
+ } & {
3004
+ entity: z.ZodOptional<z.ZodEnum<["actives", "bookings", "call-history", "jobs", "users"]>>;
3005
+ status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed", "cancelled"]>>;
3006
+ userId: z.ZodOptional<z.ZodString>;
3007
+ requestedAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3008
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3009
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3010
+ }, "strip", z.ZodTypeAny, {
3011
+ from?: string | null | undefined;
3012
+ to?: string | null | undefined;
3013
+ }, {
3014
+ from?: string | null | undefined;
3015
+ to?: string | null | undefined;
3016
+ }>>>;
3017
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
3018
+ field: z.ZodEnum<["requestedAt", "completedAt", "status", "entity"]>;
3019
+ order: z.ZodEnum<["ASC", "DESC"]>;
3020
+ }, "strip", z.ZodTypeAny, {
3021
+ field: "status" | "requestedAt" | "completedAt" | "entity";
3022
+ order: "ASC" | "DESC";
3023
+ }, {
3024
+ field: "status" | "requestedAt" | "completedAt" | "entity";
3025
+ order: "ASC" | "DESC";
3026
+ }>, "many">>>;
3027
+ }, "strip", z.ZodTypeAny, {
3028
+ limit: number;
3029
+ page: number;
3030
+ sort?: {
3031
+ field: "status" | "requestedAt" | "completedAt" | "entity";
3032
+ order: "ASC" | "DESC";
3033
+ }[] | null | undefined;
3034
+ status?: "pending" | "processing" | "completed" | "failed" | "cancelled" | undefined;
3035
+ userId?: string | undefined;
3036
+ requestedAt?: {
3037
+ from?: string | null | undefined;
3038
+ to?: string | null | undefined;
3039
+ } | null | undefined;
3040
+ entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
3041
+ }, {
3042
+ limit?: number | undefined;
3043
+ page?: number | undefined;
3044
+ sort?: {
3045
+ field: "status" | "requestedAt" | "completedAt" | "entity";
3046
+ order: "ASC" | "DESC";
3047
+ }[] | null | undefined;
3048
+ status?: "pending" | "processing" | "completed" | "failed" | "cancelled" | undefined;
3049
+ userId?: string | undefined;
3050
+ requestedAt?: {
3051
+ from?: string | null | undefined;
3052
+ to?: string | null | undefined;
3053
+ } | null | undefined;
3054
+ entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
3055
+ }>;
3056
+ summary: "List export jobs the caller is allowed to see";
3057
+ method: "GET";
3058
+ path: "/v2/export-jobs";
3059
+ responses: {
3060
+ 200: z.ZodObject<{
3061
+ items: z.ZodArray<z.ZodObject<{
3062
+ id: z.ZodString;
3063
+ userId: z.ZodString;
3064
+ user: z.ZodNullable<z.ZodObject<{
3065
+ id: z.ZodString;
3066
+ firstName: z.ZodString;
3067
+ lastName: z.ZodString;
3068
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
3069
+ id: z.ZodString;
3070
+ phoneNumber: z.ZodString;
3071
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3072
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
3073
+ }, "strip", z.ZodTypeAny, {
3074
+ id: string;
3075
+ phoneNumber: string;
3076
+ isPrimary: boolean;
3077
+ description?: string | null | undefined;
3078
+ }, {
3079
+ id: string;
3080
+ phoneNumber: string;
3081
+ description?: string | null | undefined;
3082
+ isPrimary?: boolean | undefined;
3083
+ }>, "many">>>;
3084
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
3085
+ }, "strip", z.ZodTypeAny, {
3086
+ id: string;
3087
+ firstName: string;
3088
+ lastName: string;
3089
+ phoneNumbers: {
3090
+ id: string;
3091
+ phoneNumber: string;
3092
+ isPrimary: boolean;
3093
+ description?: string | null | undefined;
3094
+ }[];
3095
+ deletedAt?: string | null | undefined;
3096
+ }, {
3097
+ id: string;
3098
+ firstName: string;
3099
+ lastName: string;
3100
+ phoneNumbers?: {
3101
+ id: string;
3102
+ phoneNumber: string;
3103
+ description?: string | null | undefined;
3104
+ isPrimary?: boolean | undefined;
3105
+ }[] | undefined;
3106
+ deletedAt?: string | Date | null | undefined;
3107
+ }>>;
3108
+ entity: z.ZodEnum<["actives", "bookings", "call-history", "jobs", "users"]>;
3109
+ status: z.ZodEnum<["pending", "processing", "completed", "failed", "cancelled"]>;
3110
+ filter: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3111
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
3112
+ field: z.ZodString;
3113
+ dir: z.ZodEnum<["ASC", "DESC"]>;
3114
+ }, "strip", z.ZodTypeAny, {
3115
+ field: string;
3116
+ dir: "ASC" | "DESC";
3117
+ }, {
3118
+ field: string;
3119
+ dir: "ASC" | "DESC";
3120
+ }>, "many">>;
3121
+ columns: z.ZodArray<z.ZodString, "many">;
3122
+ rowsProcessed: z.ZodNumber;
3123
+ rowsSkipped: z.ZodNumber;
3124
+ totalRows: z.ZodNullable<z.ZodNumber>;
3125
+ byteSize: z.ZodNullable<z.ZodNumber>;
3126
+ errorMessage: z.ZodNullable<z.ZodString>;
3127
+ requestedAt: z.ZodString;
3128
+ startedAt: z.ZodNullable<z.ZodString>;
3129
+ completedAt: z.ZodNullable<z.ZodString>;
3130
+ expiresAt: z.ZodString;
3131
+ }, "strip", z.ZodTypeAny, {
3132
+ sort: {
3133
+ field: string;
3134
+ dir: "ASC" | "DESC";
3135
+ }[];
3136
+ filter: Record<string, unknown>;
3137
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3138
+ id: string;
3139
+ user: {
3140
+ id: string;
3141
+ firstName: string;
3142
+ lastName: string;
3143
+ phoneNumbers: {
3144
+ id: string;
3145
+ phoneNumber: string;
3146
+ isPrimary: boolean;
3147
+ description?: string | null | undefined;
3148
+ }[];
3149
+ deletedAt?: string | null | undefined;
3150
+ } | null;
3151
+ userId: string;
3152
+ requestedAt: string;
3153
+ completedAt: string | null;
3154
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3155
+ columns: string[];
3156
+ rowsProcessed: number;
3157
+ rowsSkipped: number;
3158
+ totalRows: number | null;
3159
+ byteSize: number | null;
3160
+ errorMessage: string | null;
3161
+ startedAt: string | null;
3162
+ expiresAt: string;
3163
+ }, {
3164
+ filter: Record<string, unknown>;
3165
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3166
+ id: string;
3167
+ user: {
3168
+ id: string;
3169
+ firstName: string;
3170
+ lastName: string;
3171
+ phoneNumbers?: {
3172
+ id: string;
3173
+ phoneNumber: string;
3174
+ description?: string | null | undefined;
3175
+ isPrimary?: boolean | undefined;
3176
+ }[] | undefined;
3177
+ deletedAt?: string | Date | null | undefined;
3178
+ } | null;
3179
+ userId: string;
3180
+ requestedAt: string;
3181
+ completedAt: string | null;
3182
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3183
+ columns: string[];
3184
+ rowsProcessed: number;
3185
+ rowsSkipped: number;
3186
+ totalRows: number | null;
3187
+ byteSize: number | null;
3188
+ errorMessage: string | null;
3189
+ startedAt: string | null;
3190
+ expiresAt: string;
3191
+ sort?: {
3192
+ field: string;
3193
+ dir: "ASC" | "DESC";
3194
+ }[] | undefined;
3195
+ }>, "many">;
3196
+ totalCount: z.ZodNumber;
3197
+ limit: z.ZodNumber;
3198
+ skip: z.ZodNumber;
3199
+ currentPage: z.ZodNumber;
3200
+ totalPages: z.ZodNumber;
3201
+ }, "strip", z.ZodTypeAny, {
3202
+ limit: number;
3203
+ items: {
3204
+ sort: {
3205
+ field: string;
3206
+ dir: "ASC" | "DESC";
3207
+ }[];
3208
+ filter: Record<string, unknown>;
3209
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3210
+ id: string;
3211
+ user: {
3212
+ id: string;
3213
+ firstName: string;
3214
+ lastName: string;
3215
+ phoneNumbers: {
3216
+ id: string;
3217
+ phoneNumber: string;
3218
+ isPrimary: boolean;
3219
+ description?: string | null | undefined;
3220
+ }[];
3221
+ deletedAt?: string | null | undefined;
3222
+ } | null;
3223
+ userId: string;
3224
+ requestedAt: string;
3225
+ completedAt: string | null;
3226
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3227
+ columns: string[];
3228
+ rowsProcessed: number;
3229
+ rowsSkipped: number;
3230
+ totalRows: number | null;
3231
+ byteSize: number | null;
3232
+ errorMessage: string | null;
3233
+ startedAt: string | null;
3234
+ expiresAt: string;
3235
+ }[];
3236
+ totalCount: number;
3237
+ skip: number;
3238
+ currentPage: number;
3239
+ totalPages: number;
3240
+ }, {
3241
+ limit: number;
3242
+ items: {
3243
+ filter: Record<string, unknown>;
3244
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3245
+ id: string;
3246
+ user: {
3247
+ id: string;
3248
+ firstName: string;
3249
+ lastName: string;
3250
+ phoneNumbers?: {
3251
+ id: string;
3252
+ phoneNumber: string;
3253
+ description?: string | null | undefined;
3254
+ isPrimary?: boolean | undefined;
3255
+ }[] | undefined;
3256
+ deletedAt?: string | Date | null | undefined;
3257
+ } | null;
3258
+ userId: string;
3259
+ requestedAt: string;
3260
+ completedAt: string | null;
3261
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3262
+ columns: string[];
3263
+ rowsProcessed: number;
3264
+ rowsSkipped: number;
3265
+ totalRows: number | null;
3266
+ byteSize: number | null;
3267
+ errorMessage: string | null;
3268
+ startedAt: string | null;
3269
+ expiresAt: string;
3270
+ sort?: {
3271
+ field: string;
3272
+ dir: "ASC" | "DESC";
3273
+ }[] | undefined;
3274
+ }[];
3275
+ totalCount: number;
3276
+ skip: number;
3277
+ currentPage: number;
3278
+ totalPages: number;
3279
+ }>;
3280
+ };
3281
+ };
3282
+ getOne: {
3283
+ pathParams: z.ZodObject<{
3284
+ id: z.ZodString;
3285
+ }, "strip", z.ZodTypeAny, {
3286
+ id: string;
3287
+ }, {
3288
+ id: string;
3289
+ }>;
3290
+ summary: "Fetch a single export job";
3291
+ method: "GET";
3292
+ path: "/v2/export-jobs/:id";
3293
+ responses: {
3294
+ 200: z.ZodObject<{
3295
+ id: z.ZodString;
3296
+ userId: z.ZodString;
3297
+ user: z.ZodNullable<z.ZodObject<{
3298
+ id: z.ZodString;
3299
+ firstName: z.ZodString;
3300
+ lastName: z.ZodString;
3301
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
3302
+ id: z.ZodString;
3303
+ phoneNumber: z.ZodString;
3304
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3305
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
3306
+ }, "strip", z.ZodTypeAny, {
3307
+ id: string;
3308
+ phoneNumber: string;
3309
+ isPrimary: boolean;
3310
+ description?: string | null | undefined;
3311
+ }, {
3312
+ id: string;
3313
+ phoneNumber: string;
3314
+ description?: string | null | undefined;
3315
+ isPrimary?: boolean | undefined;
3316
+ }>, "many">>>;
3317
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
3318
+ }, "strip", z.ZodTypeAny, {
3319
+ id: string;
3320
+ firstName: string;
3321
+ lastName: string;
3322
+ phoneNumbers: {
3323
+ id: string;
3324
+ phoneNumber: string;
3325
+ isPrimary: boolean;
3326
+ description?: string | null | undefined;
3327
+ }[];
3328
+ deletedAt?: string | null | undefined;
3329
+ }, {
3330
+ id: string;
3331
+ firstName: string;
3332
+ lastName: string;
3333
+ phoneNumbers?: {
3334
+ id: string;
3335
+ phoneNumber: string;
3336
+ description?: string | null | undefined;
3337
+ isPrimary?: boolean | undefined;
3338
+ }[] | undefined;
3339
+ deletedAt?: string | Date | null | undefined;
3340
+ }>>;
3341
+ entity: z.ZodEnum<["actives", "bookings", "call-history", "jobs", "users"]>;
3342
+ status: z.ZodEnum<["pending", "processing", "completed", "failed", "cancelled"]>;
3343
+ filter: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3344
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
3345
+ field: z.ZodString;
3346
+ dir: z.ZodEnum<["ASC", "DESC"]>;
3347
+ }, "strip", z.ZodTypeAny, {
3348
+ field: string;
3349
+ dir: "ASC" | "DESC";
3350
+ }, {
3351
+ field: string;
3352
+ dir: "ASC" | "DESC";
3353
+ }>, "many">>;
3354
+ columns: z.ZodArray<z.ZodString, "many">;
3355
+ rowsProcessed: z.ZodNumber;
3356
+ rowsSkipped: z.ZodNumber;
3357
+ totalRows: z.ZodNullable<z.ZodNumber>;
3358
+ byteSize: z.ZodNullable<z.ZodNumber>;
3359
+ errorMessage: z.ZodNullable<z.ZodString>;
3360
+ requestedAt: z.ZodString;
3361
+ startedAt: z.ZodNullable<z.ZodString>;
3362
+ completedAt: z.ZodNullable<z.ZodString>;
3363
+ expiresAt: z.ZodString;
3364
+ }, "strip", z.ZodTypeAny, {
3365
+ sort: {
3366
+ field: string;
3367
+ dir: "ASC" | "DESC";
3368
+ }[];
3369
+ filter: Record<string, unknown>;
3370
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3371
+ id: string;
3372
+ user: {
3373
+ id: string;
3374
+ firstName: string;
3375
+ lastName: string;
3376
+ phoneNumbers: {
3377
+ id: string;
3378
+ phoneNumber: string;
3379
+ isPrimary: boolean;
3380
+ description?: string | null | undefined;
3381
+ }[];
3382
+ deletedAt?: string | null | undefined;
3383
+ } | null;
3384
+ userId: string;
3385
+ requestedAt: string;
3386
+ completedAt: string | null;
3387
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3388
+ columns: string[];
3389
+ rowsProcessed: number;
3390
+ rowsSkipped: number;
3391
+ totalRows: number | null;
3392
+ byteSize: number | null;
3393
+ errorMessage: string | null;
3394
+ startedAt: string | null;
3395
+ expiresAt: string;
3396
+ }, {
3397
+ filter: Record<string, unknown>;
3398
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3399
+ id: string;
3400
+ user: {
3401
+ id: string;
3402
+ firstName: string;
3403
+ lastName: string;
3404
+ phoneNumbers?: {
3405
+ id: string;
3406
+ phoneNumber: string;
3407
+ description?: string | null | undefined;
3408
+ isPrimary?: boolean | undefined;
3409
+ }[] | undefined;
3410
+ deletedAt?: string | Date | null | undefined;
3411
+ } | null;
3412
+ userId: string;
3413
+ requestedAt: string;
3414
+ completedAt: string | null;
3415
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3416
+ columns: string[];
3417
+ rowsProcessed: number;
3418
+ rowsSkipped: number;
3419
+ totalRows: number | null;
3420
+ byteSize: number | null;
3421
+ errorMessage: string | null;
3422
+ startedAt: string | null;
3423
+ expiresAt: string;
3424
+ sort?: {
3425
+ field: string;
3426
+ dir: "ASC" | "DESC";
3427
+ }[] | undefined;
3428
+ }>;
3429
+ 404: z.ZodObject<{
3430
+ message: z.ZodString;
3431
+ }, "strip", z.ZodTypeAny, {
3432
+ message: string;
3433
+ }, {
3434
+ message: string;
3435
+ }>;
3436
+ };
3437
+ };
3438
+ cancel: {
3439
+ pathParams: z.ZodObject<{
3440
+ id: z.ZodString;
3441
+ }, "strip", z.ZodTypeAny, {
3442
+ id: string;
3443
+ }, {
3444
+ id: string;
3445
+ }>;
3446
+ summary: "Request cancellation of an export job";
3447
+ method: "POST";
3448
+ body: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
3449
+ path: "/v2/export-jobs/:id/cancel";
3450
+ responses: {
3451
+ 200: z.ZodObject<{
3452
+ id: z.ZodString;
3453
+ userId: z.ZodString;
3454
+ user: z.ZodNullable<z.ZodObject<{
3455
+ id: z.ZodString;
3456
+ firstName: z.ZodString;
3457
+ lastName: z.ZodString;
3458
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
3459
+ id: z.ZodString;
3460
+ phoneNumber: z.ZodString;
3461
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3462
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
3463
+ }, "strip", z.ZodTypeAny, {
3464
+ id: string;
3465
+ phoneNumber: string;
3466
+ isPrimary: boolean;
3467
+ description?: string | null | undefined;
3468
+ }, {
3469
+ id: string;
3470
+ phoneNumber: string;
3471
+ description?: string | null | undefined;
3472
+ isPrimary?: boolean | undefined;
3473
+ }>, "many">>>;
3474
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
3475
+ }, "strip", z.ZodTypeAny, {
3476
+ id: string;
3477
+ firstName: string;
3478
+ lastName: string;
3479
+ phoneNumbers: {
3480
+ id: string;
3481
+ phoneNumber: string;
3482
+ isPrimary: boolean;
3483
+ description?: string | null | undefined;
3484
+ }[];
3485
+ deletedAt?: string | null | undefined;
3486
+ }, {
3487
+ id: string;
3488
+ firstName: string;
3489
+ lastName: string;
3490
+ phoneNumbers?: {
3491
+ id: string;
3492
+ phoneNumber: string;
3493
+ description?: string | null | undefined;
3494
+ isPrimary?: boolean | undefined;
3495
+ }[] | undefined;
3496
+ deletedAt?: string | Date | null | undefined;
3497
+ }>>;
3498
+ entity: z.ZodEnum<["actives", "bookings", "call-history", "jobs", "users"]>;
3499
+ status: z.ZodEnum<["pending", "processing", "completed", "failed", "cancelled"]>;
3500
+ filter: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3501
+ sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
3502
+ field: z.ZodString;
3503
+ dir: z.ZodEnum<["ASC", "DESC"]>;
3504
+ }, "strip", z.ZodTypeAny, {
3505
+ field: string;
3506
+ dir: "ASC" | "DESC";
3507
+ }, {
3508
+ field: string;
3509
+ dir: "ASC" | "DESC";
3510
+ }>, "many">>;
3511
+ columns: z.ZodArray<z.ZodString, "many">;
3512
+ rowsProcessed: z.ZodNumber;
3513
+ rowsSkipped: z.ZodNumber;
3514
+ totalRows: z.ZodNullable<z.ZodNumber>;
3515
+ byteSize: z.ZodNullable<z.ZodNumber>;
3516
+ errorMessage: z.ZodNullable<z.ZodString>;
3517
+ requestedAt: z.ZodString;
3518
+ startedAt: z.ZodNullable<z.ZodString>;
3519
+ completedAt: z.ZodNullable<z.ZodString>;
3520
+ expiresAt: z.ZodString;
3521
+ }, "strip", z.ZodTypeAny, {
3522
+ sort: {
3523
+ field: string;
3524
+ dir: "ASC" | "DESC";
3525
+ }[];
3526
+ filter: Record<string, unknown>;
3527
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3528
+ id: string;
3529
+ user: {
3530
+ id: string;
3531
+ firstName: string;
3532
+ lastName: string;
3533
+ phoneNumbers: {
3534
+ id: string;
3535
+ phoneNumber: string;
3536
+ isPrimary: boolean;
3537
+ description?: string | null | undefined;
3538
+ }[];
3539
+ deletedAt?: string | null | undefined;
3540
+ } | null;
3541
+ userId: string;
3542
+ requestedAt: string;
3543
+ completedAt: string | null;
3544
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3545
+ columns: string[];
3546
+ rowsProcessed: number;
3547
+ rowsSkipped: number;
3548
+ totalRows: number | null;
3549
+ byteSize: number | null;
3550
+ errorMessage: string | null;
3551
+ startedAt: string | null;
3552
+ expiresAt: string;
3553
+ }, {
3554
+ filter: Record<string, unknown>;
3555
+ status: "pending" | "processing" | "completed" | "failed" | "cancelled";
3556
+ id: string;
3557
+ user: {
3558
+ id: string;
3559
+ firstName: string;
3560
+ lastName: string;
3561
+ phoneNumbers?: {
3562
+ id: string;
3563
+ phoneNumber: string;
3564
+ description?: string | null | undefined;
3565
+ isPrimary?: boolean | undefined;
3566
+ }[] | undefined;
3567
+ deletedAt?: string | Date | null | undefined;
3568
+ } | null;
3569
+ userId: string;
3570
+ requestedAt: string;
3571
+ completedAt: string | null;
3572
+ entity: "actives" | "bookings" | "call-history" | "jobs" | "users";
3573
+ columns: string[];
3574
+ rowsProcessed: number;
3575
+ rowsSkipped: number;
3576
+ totalRows: number | null;
3577
+ byteSize: number | null;
3578
+ errorMessage: string | null;
3579
+ startedAt: string | null;
3580
+ expiresAt: string;
3581
+ sort?: {
3582
+ field: string;
3583
+ dir: "ASC" | "DESC";
3584
+ }[] | undefined;
3585
+ }>;
3586
+ 404: z.ZodObject<{
3587
+ message: z.ZodString;
3588
+ }, "strip", z.ZodTypeAny, {
3589
+ message: string;
3590
+ }, {
3591
+ message: string;
3592
+ }>;
3593
+ 409: z.ZodObject<{
3594
+ message: z.ZodString;
3595
+ }, "strip", z.ZodTypeAny, {
3596
+ message: string;
3597
+ }, {
3598
+ message: string;
3599
+ }>;
3600
+ };
3601
+ };
3602
+ download: {
3603
+ pathParams: z.ZodObject<{
3604
+ id: z.ZodString;
3605
+ }, "strip", z.ZodTypeAny, {
3606
+ id: string;
3607
+ }, {
3608
+ id: string;
3609
+ }>;
3610
+ summary: "Returns a short-lived presigned R2 URL for the export file";
3611
+ method: "GET";
3612
+ path: "/v2/export-jobs/:id/download";
3613
+ responses: {
3614
+ 200: z.ZodObject<{
3615
+ url: z.ZodString;
3616
+ }, "strip", z.ZodTypeAny, {
3617
+ url: string;
3618
+ }, {
3619
+ url: string;
3620
+ }>;
3621
+ 403: z.ZodObject<{
3622
+ message: z.ZodString;
3623
+ }, "strip", z.ZodTypeAny, {
3624
+ message: string;
3625
+ }, {
3626
+ message: string;
3627
+ }>;
3628
+ 404: z.ZodObject<{
3629
+ message: z.ZodString;
3630
+ }, "strip", z.ZodTypeAny, {
3631
+ message: string;
3632
+ }, {
3633
+ message: string;
3634
+ }>;
3635
+ 409: z.ZodObject<{
3636
+ message: z.ZodString;
3637
+ }, "strip", z.ZodTypeAny, {
3638
+ message: string;
3639
+ }, {
3640
+ message: string;
3641
+ }>;
3642
+ 410: z.ZodObject<{
3643
+ message: z.ZodString;
3644
+ }, "strip", z.ZodTypeAny, {
3645
+ message: string;
3646
+ }, {
3647
+ message: string;
3648
+ }>;
3649
+ };
3650
+ };
3651
+ };
3652
+ export declare const ACTIVES_EXPORT_COLUMNS: readonly [{
3653
+ readonly path: "id";
3654
+ readonly label: "Active ID";
3655
+ }, {
3656
+ readonly path: "date";
3657
+ readonly label: "Date";
3658
+ }, {
3659
+ readonly path: "booking.startDate";
3660
+ readonly label: "Start Date";
3661
+ }, {
3662
+ readonly path: "booking.endDate";
3663
+ readonly label: "End Date";
3664
+ }, {
3665
+ readonly path: "status";
3666
+ readonly label: "Status";
3667
+ }, {
3668
+ readonly path: "worker.firstName";
3669
+ readonly label: "Worker First Name";
3670
+ }, {
3671
+ readonly path: "worker.lastName";
3672
+ readonly label: "Worker Last Name";
3673
+ }, {
3674
+ readonly path: "booking.id";
3675
+ readonly label: "Booking ID";
3676
+ }, {
3677
+ readonly path: "collaboration.client.name";
3678
+ readonly label: "Client";
3679
+ }, {
3680
+ readonly path: "pay.rate";
3681
+ readonly label: "Pay Rate";
3682
+ }, {
3683
+ readonly path: "pay.unit";
3684
+ readonly label: "Pay Unit";
3685
+ }, {
3686
+ readonly path: "pay.hourlyRate";
3687
+ readonly label: "Hourly Rate";
3688
+ }, {
3689
+ readonly path: "hoursWorked";
3690
+ readonly label: "Hours Worked";
3691
+ }, {
3692
+ readonly path: "createdAt";
3693
+ readonly label: "Created At";
3694
+ }];
3695
+ export declare const BOOKINGS_EXPORT_COLUMNS: readonly [{
3696
+ readonly path: "id";
3697
+ readonly label: "Booking ID";
3698
+ }, {
3699
+ readonly path: "createdAt";
3700
+ readonly label: "Created At";
3701
+ }, {
3702
+ readonly path: "startDate";
3703
+ readonly label: "Start Date";
3704
+ }, {
3705
+ readonly path: "endDate";
3706
+ readonly label: "End Date";
3707
+ }, {
3708
+ readonly path: "status.category";
3709
+ readonly label: "Status Category";
3710
+ }, {
3711
+ readonly path: "status.type";
3712
+ readonly label: "Status Type";
3713
+ }, {
3714
+ readonly path: "worker.firstName";
3715
+ readonly label: "Worker First Name";
3716
+ }, {
3717
+ readonly path: "worker.lastName";
3718
+ readonly label: "Worker Last Name";
3719
+ }, {
3720
+ readonly path: "job.collaboration.client.name";
3721
+ readonly label: "Client";
3722
+ }, {
3723
+ readonly path: "job.collaboration.company.name";
3724
+ readonly label: "Company";
3725
+ }, {
3726
+ readonly path: "job.location.postcode";
3727
+ readonly label: "Postcode";
3728
+ }, {
3729
+ readonly path: "pay.rate";
3730
+ readonly label: "Pay Rate";
3731
+ }, {
3732
+ readonly path: "pay.unit";
3733
+ readonly label: "Pay Unit";
3734
+ }];
3735
+ export declare const CALL_HISTORY_EXPORT_COLUMNS: readonly [{
3736
+ readonly path: "id";
3737
+ readonly label: "Call ID";
3738
+ }, {
3739
+ readonly path: "createdAt";
3740
+ readonly label: "Created At";
3741
+ }, {
3742
+ readonly path: "callType";
3743
+ readonly label: "Call Type";
3744
+ }, {
3745
+ readonly path: "leadSource";
3746
+ readonly label: "Lead Source";
3747
+ }, {
3748
+ readonly path: "rating";
3749
+ readonly label: "Rating";
3750
+ }, {
3751
+ readonly path: "ratingWeight";
3752
+ readonly label: "Rating Weight";
3753
+ }, {
3754
+ readonly path: "notes";
3755
+ readonly label: "Notes";
3756
+ }, {
3757
+ readonly path: "assignment.agent.firstName";
3758
+ readonly label: "Agent First Name";
3759
+ }, {
3760
+ readonly path: "assignment.agent.lastName";
3761
+ readonly label: "Agent Last Name";
3762
+ }, {
3763
+ readonly path: "assignment.lead.name";
3764
+ readonly label: "Lead Name";
3765
+ }, {
3766
+ readonly path: "assignment.lead.phoneNumber";
3767
+ readonly label: "Lead Phone";
3768
+ }, {
3769
+ readonly path: "assignment.company.name";
3770
+ readonly label: "Company";
3771
+ }];
3772
+ export declare const JOBS_EXPORT_COLUMNS: readonly [{
3773
+ readonly path: "id";
3774
+ readonly label: "Job ID";
3775
+ }, {
3776
+ readonly path: "description";
3777
+ readonly label: "Description";
3778
+ }, {
3779
+ readonly path: "status";
3780
+ readonly label: "Status";
3781
+ }, {
3782
+ readonly path: "creationSource";
3783
+ readonly label: "Source";
3784
+ }, {
3785
+ readonly path: "numberOfPositions";
3786
+ readonly label: "Positions";
3787
+ }, {
3788
+ readonly path: "filledPositions";
3789
+ readonly label: "Filled Positions";
3790
+ }, {
3791
+ readonly path: "workHours";
3792
+ readonly label: "Work Hours";
3793
+ }, {
3794
+ readonly path: "tradeId";
3795
+ readonly label: "Trade ID";
3796
+ }, {
3797
+ readonly path: "trade.name";
3798
+ readonly label: "Trade";
3799
+ }, {
3800
+ readonly path: "pay.rate";
3801
+ readonly label: "Pay Rate";
3802
+ }, {
3803
+ readonly path: "pay.rateMax";
3804
+ readonly label: "Pay Rate Max";
3805
+ }, {
3806
+ readonly path: "pay.rateUnit";
3807
+ readonly label: "Pay Rate Unit";
3808
+ }, {
3809
+ readonly path: "pay.isNegotiable";
3810
+ readonly label: "Pay Negotiable";
3811
+ }, {
3812
+ readonly path: "pay.receivedRate";
3813
+ readonly label: "Received Rate";
3814
+ }, {
3815
+ readonly path: "location.postcode";
3816
+ readonly label: "Postcode";
3817
+ }, {
3818
+ readonly path: "location.postTown";
3819
+ readonly label: "Post Town";
3820
+ }, {
3821
+ readonly path: "location.adminDistrict";
3822
+ readonly label: "District";
3823
+ }, {
3824
+ readonly path: "location.address";
3825
+ readonly label: "Address";
3826
+ }, {
3827
+ readonly path: "distanceKm";
3828
+ readonly label: "Distance (km)";
3829
+ }, {
3830
+ readonly path: "collaboration.id";
3831
+ readonly label: "Collaboration ID";
3832
+ }, {
3833
+ readonly path: "collaboration.status";
3834
+ readonly label: "Collaboration Status";
3835
+ }, {
3836
+ readonly path: "collaboration.userId";
3837
+ readonly label: "Agent User ID";
3838
+ }, {
3839
+ readonly path: "collaboration.client.id";
3840
+ readonly label: "Client ID";
3841
+ }, {
3842
+ readonly path: "collaboration.client.name";
3843
+ readonly label: "Client";
3844
+ }, {
3845
+ readonly path: "collaboration.company.id";
3846
+ readonly label: "Company ID";
3847
+ }, {
3848
+ readonly path: "collaboration.company.name";
3849
+ readonly label: "Company";
3850
+ }, {
3851
+ readonly path: "collaboration.user.id";
3852
+ readonly label: "Agent ID";
3853
+ }, {
3854
+ readonly path: "collaboration.user.firstName";
3855
+ readonly label: "Agent First Name";
3856
+ }, {
3857
+ readonly path: "collaboration.user.lastName";
3858
+ readonly label: "Agent Last Name";
3859
+ }, {
3860
+ readonly path: "collaboration.user.phoneNumbers";
3861
+ readonly label: "Agent Phone Numbers";
3862
+ }, {
3863
+ readonly path: "collaboration.user.deletedAt";
3864
+ readonly label: "Agent Deleted At";
3865
+ }, {
3866
+ readonly path: "jobQualifications";
3867
+ readonly label: "Qualifications";
3868
+ }, {
3869
+ readonly path: "createdById";
3870
+ readonly label: "Created By User ID";
3871
+ }, {
3872
+ readonly path: "createdBy.id";
3873
+ readonly label: "Creator ID";
3874
+ }, {
3875
+ readonly path: "createdBy.firstName";
3876
+ readonly label: "Creator First Name";
3877
+ }, {
3878
+ readonly path: "createdBy.lastName";
3879
+ readonly label: "Creator Last Name";
3880
+ }, {
3881
+ readonly path: "createdBy.phoneNumbers";
3882
+ readonly label: "Creator Phone Numbers";
3883
+ }, {
3884
+ readonly path: "createdBy.deletedAt";
3885
+ readonly label: "Creator Deleted At";
3886
+ }, {
3887
+ readonly path: "createdAt";
3888
+ readonly label: "Created";
3889
+ }, {
3890
+ readonly path: "updatedAt";
3891
+ readonly label: "Updated";
3892
+ }];
3893
+ export declare const USERS_EXPORT_COLUMNS: readonly [{
3894
+ readonly path: "id";
3895
+ readonly label: "User ID";
3896
+ }, {
3897
+ readonly path: "firstName";
3898
+ readonly label: "First Name";
3899
+ }, {
3900
+ readonly path: "lastName";
3901
+ readonly label: "Last Name";
3902
+ }, {
3903
+ readonly path: "email";
3904
+ readonly label: "Email";
3905
+ }, {
3906
+ readonly path: "roles";
3907
+ readonly label: "Roles";
3908
+ }, {
3909
+ readonly path: "status";
3910
+ readonly label: "Status";
3911
+ }, {
3912
+ readonly path: "office.name";
3913
+ readonly label: "Office";
3914
+ }, {
3915
+ readonly path: "createdAt";
3916
+ readonly label: "Created At";
3917
+ }];
3918
+ //# sourceMappingURL=export-jobs.contract.d.ts.map