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