@dakkitor/api-contracts 1.1.153 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/dist/abilities/abilities.contract.d.ts +53 -1
  2. package/dist/abilities/abilities.contract.d.ts.map +1 -1
  3. package/dist/abilities/abilities.contract.js +92 -1
  4. package/dist/abilities/abilities.contract.spec.d.ts +2 -0
  5. package/dist/abilities/abilities.contract.spec.d.ts.map +1 -0
  6. package/dist/abilities/abilities.contract.spec.js +145 -0
  7. package/dist/abilities/admin-dashboard.abilities.test.d.ts +2 -0
  8. package/dist/abilities/admin-dashboard.abilities.test.d.ts.map +1 -0
  9. package/dist/abilities/admin-dashboard.abilities.test.js +33 -0
  10. package/dist/abilities/admin.abilities.json +19 -0
  11. package/dist/abilities/bot.abilities.json +13 -4
  12. package/dist/abilities/first-agent.abilities.json +317 -70
  13. package/dist/abilities/interconnection.abilities.json +75 -0
  14. package/dist/abilities/kpi.abilities.json +68 -0
  15. package/dist/abilities/office-manager.abilities.json +111 -0
  16. package/dist/abilities/second-agent.abilities.json +417 -43
  17. package/dist/abilities/team-leads.json +71 -6
  18. package/dist/abilities/worker-curator.abilities.json +233 -0
  19. package/dist/actives/actives.contract.d.ts +19379 -23651
  20. package/dist/actives/actives.contract.d.ts.map +1 -1
  21. package/dist/actives/actives.contract.js +517 -114
  22. package/dist/agent-client-links/agent-client-links.contract.d.ts +1431 -291
  23. package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
  24. package/dist/auth/auth.contract.d.ts +1050 -81
  25. package/dist/auth/auth.contract.d.ts.map +1 -1
  26. package/dist/auth/auth.contract.js +115 -3
  27. package/dist/bookings/booking-worker-summary.spec.d.ts +2 -0
  28. package/dist/bookings/booking-worker-summary.spec.d.ts.map +1 -0
  29. package/dist/bookings/booking-worker-summary.spec.js +25 -0
  30. package/dist/bookings/bookings.contract.d.ts +20643 -26117
  31. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  32. package/dist/bookings/bookings.contract.js +383 -91
  33. package/dist/bookings/bookings.contract.spec.d.ts +2 -0
  34. package/dist/bookings/bookings.contract.spec.d.ts.map +1 -0
  35. package/dist/bookings/bookings.contract.spec.js +11 -0
  36. package/dist/bookings/job-lock.spec.d.ts +2 -0
  37. package/dist/bookings/job-lock.spec.d.ts.map +1 -0
  38. package/dist/bookings/job-lock.spec.js +56 -0
  39. package/dist/bot-parse-cache/bot-parse-cache.contract.d.ts +232 -0
  40. package/dist/bot-parse-cache/bot-parse-cache.contract.d.ts.map +1 -0
  41. package/dist/bot-parse-cache/bot-parse-cache.contract.js +64 -0
  42. package/dist/call-history/call-history.contract.d.ts +1336 -767
  43. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  44. package/dist/call-history/call-history.contract.js +86 -10
  45. package/dist/calls-feed/calls-feed.contract.d.ts +417 -0
  46. package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -0
  47. package/dist/calls-feed/calls-feed.contract.js +32 -0
  48. package/dist/client-contacts/client-contacts.contract.d.ts +410 -226
  49. package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
  50. package/dist/client-contacts/client-contacts.contract.js +35 -4
  51. package/dist/clients/clients.contract.d.ts +227 -73
  52. package/dist/clients/clients.contract.d.ts.map +1 -1
  53. package/dist/clients/clients.contract.js +45 -21
  54. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2908 -1834
  55. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
  56. package/dist/collaboration-checkings/collaboration-checkings.contract.js +14 -9
  57. package/dist/collaborations/collaborations.contract.d.ts +2676 -1409
  58. package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
  59. package/dist/collaborations/collaborations.contract.js +33 -9
  60. package/dist/common/call-rating.schema.d.ts.map +1 -1
  61. package/dist/common/call-rating.schema.js +4 -2
  62. package/dist/common/common-schemas.d.ts +59 -11
  63. package/dist/common/common-schemas.d.ts.map +1 -1
  64. package/dist/common/common-schemas.js +55 -29
  65. package/dist/common/error-schemas.d.ts +2 -2
  66. package/dist/common/pagination-query.schema.d.ts +13 -2
  67. package/dist/common/pagination-query.schema.d.ts.map +1 -1
  68. package/dist/common/pagination-query.schema.js +21 -2
  69. package/dist/common/pagination-query.schema.spec.d.ts +2 -0
  70. package/dist/common/pagination-query.schema.spec.d.ts.map +1 -0
  71. package/dist/common/pagination-query.schema.spec.js +53 -0
  72. package/dist/companies/companies.contract.d.ts +53 -28
  73. package/dist/companies/companies.contract.d.ts.map +1 -1
  74. package/dist/companies/companies.contract.js +11 -10
  75. package/dist/crews/crews.contract.d.ts +1010 -196
  76. package/dist/crews/crews.contract.d.ts.map +1 -1
  77. package/dist/crews/crews.contract.js +98 -17
  78. package/dist/crews/crews.contract.spec.d.ts +2 -0
  79. package/dist/crews/crews.contract.spec.d.ts.map +1 -0
  80. package/dist/crews/crews.contract.spec.js +67 -0
  81. package/dist/cron-executions/cron-executions.contract.d.ts +988 -59
  82. package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
  83. package/dist/cron-executions/cron-executions.contract.js +127 -7
  84. package/dist/curated-worker-leads/__tests__/disposition-reason.spec.d.ts +2 -0
  85. package/dist/curated-worker-leads/__tests__/disposition-reason.spec.d.ts.map +1 -0
  86. package/dist/curated-worker-leads/__tests__/disposition-reason.spec.js +40 -0
  87. package/dist/curated-worker-leads/candidate-coordination-snapshot.spec.d.ts +2 -0
  88. package/dist/curated-worker-leads/candidate-coordination-snapshot.spec.d.ts.map +1 -0
  89. package/dist/curated-worker-leads/candidate-coordination-snapshot.spec.js +16 -0
  90. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +21650 -0
  91. package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -0
  92. package/dist/curated-worker-leads/candidate-coordination.contract.js +921 -0
  93. package/dist/curated-worker-leads/candidate-coordination.contract.spec.d.ts +2 -0
  94. package/dist/curated-worker-leads/candidate-coordination.contract.spec.d.ts.map +1 -0
  95. package/dist/curated-worker-leads/candidate-coordination.contract.spec.js +51 -0
  96. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +2364 -0
  97. package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts.map +1 -0
  98. package/dist/curated-worker-leads/candidate-edit-session.contract.js +173 -0
  99. package/dist/curated-worker-leads/consent-queue.contract.d.ts +4497 -0
  100. package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +1 -0
  101. package/dist/curated-worker-leads/consent-queue.contract.js +201 -0
  102. package/dist/curated-worker-leads/contact-history.spec.d.ts +2 -0
  103. package/dist/curated-worker-leads/contact-history.spec.d.ts.map +1 -0
  104. package/dist/curated-worker-leads/contact-history.spec.js +88 -0
  105. package/dist/curated-worker-leads/contact-session.contract.spec.d.ts +2 -0
  106. package/dist/curated-worker-leads/contact-session.contract.spec.d.ts.map +1 -0
  107. package/dist/curated-worker-leads/contact-session.contract.spec.js +315 -0
  108. package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +489 -0
  109. package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts.map +1 -0
  110. package/dist/curated-worker-leads/curated-worker-lead-config.contract.js +88 -0
  111. package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +135 -0
  112. package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts.map +1 -0
  113. package/dist/curated-worker-leads/curated-worker-leads.contract.js +32 -0
  114. package/dist/curated-worker-leads/job-candidate-cards.spec.d.ts +2 -0
  115. package/dist/curated-worker-leads/job-candidate-cards.spec.d.ts.map +1 -0
  116. package/dist/curated-worker-leads/job-candidate-cards.spec.js +157 -0
  117. package/dist/curated-worker-leads/job-candidates.spec.d.ts +2 -0
  118. package/dist/curated-worker-leads/job-candidates.spec.d.ts.map +1 -0
  119. package/dist/curated-worker-leads/job-candidates.spec.js +140 -0
  120. package/dist/curated-worker-leads/job-feed-match-counts.contract.spec.d.ts +2 -0
  121. package/dist/curated-worker-leads/job-feed-match-counts.contract.spec.d.ts.map +1 -0
  122. package/dist/curated-worker-leads/job-feed-match-counts.contract.spec.js +19 -0
  123. package/dist/curated-worker-leads/jobs-tab.contract.d.ts +18365 -0
  124. package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -0
  125. package/dist/curated-worker-leads/jobs-tab.contract.js +642 -0
  126. package/dist/curated-worker-leads/lead-agent-area.contract.d.ts +348 -0
  127. package/dist/curated-worker-leads/lead-agent-area.contract.d.ts.map +1 -0
  128. package/dist/curated-worker-leads/lead-agent-area.contract.js +51 -0
  129. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +1116 -0
  130. package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts.map +1 -0
  131. package/dist/curated-worker-leads/owned-jobs-tab.contract.js +93 -0
  132. package/dist/curated-workers/curated-filter-additions.spec.d.ts +2 -0
  133. package/dist/curated-workers/curated-filter-additions.spec.d.ts.map +1 -0
  134. package/dist/curated-workers/curated-filter-additions.spec.js +17 -0
  135. package/dist/curated-workers/curated-job-seeking.spec.d.ts +2 -0
  136. package/dist/curated-workers/curated-job-seeking.spec.d.ts.map +1 -0
  137. package/dist/curated-workers/curated-job-seeking.spec.js +53 -0
  138. package/dist/curated-workers/curated-workers-id-documents.spec.d.ts +2 -0
  139. package/dist/curated-workers/curated-workers-id-documents.spec.d.ts.map +1 -0
  140. package/dist/curated-workers/curated-workers-id-documents.spec.js +38 -0
  141. package/dist/curated-workers/curated-workers.contract.d.ts +6160 -1906
  142. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  143. package/dist/curated-workers/curated-workers.contract.js +333 -51
  144. package/dist/dashboards/agent-daily-metrics.contract.d.ts +10 -10
  145. package/dist/dashboards/agent-daily-metrics.contract.js +1 -1
  146. package/dist/dashboards/dashboard-widgets.contract.d.ts +3800 -496
  147. package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
  148. package/dist/dashboards/dashboard-widgets.contract.js +527 -29
  149. package/dist/dashboards/dashboard.contract.d.ts +8 -8
  150. package/dist/document-intake/document-intake.contract.d.ts +3132 -0
  151. package/dist/document-intake/document-intake.contract.d.ts.map +1 -0
  152. package/dist/document-intake/document-intake.contract.js +418 -0
  153. package/dist/export-jobs/export-jobs.contract.d.ts +3918 -0
  154. package/dist/export-jobs/export-jobs.contract.d.ts.map +1 -0
  155. package/dist/export-jobs/export-jobs.contract.js +240 -0
  156. package/dist/exports-events/exports-events.schemas.d.ts +90 -0
  157. package/dist/exports-events/exports-events.schemas.d.ts.map +1 -0
  158. package/dist/exports-events/exports-events.schemas.js +56 -0
  159. package/dist/files/files.contract.d.ts +133 -126
  160. package/dist/files/files.contract.d.ts.map +1 -1
  161. package/dist/files/files.contract.js +8 -0
  162. package/dist/health/health.contract.d.ts +4 -4
  163. package/dist/index.d.ts +82 -0
  164. package/dist/index.d.ts.map +1 -1
  165. package/dist/index.js +87 -1
  166. package/dist/interactions/interactions.contract.d.ts +162 -0
  167. package/dist/interactions/interactions.contract.d.ts.map +1 -0
  168. package/dist/interactions/interactions.contract.js +42 -0
  169. package/dist/job-clusters/job-clusters.contract.d.ts +1584 -0
  170. package/dist/job-clusters/job-clusters.contract.d.ts.map +1 -0
  171. package/dist/job-clusters/job-clusters.contract.js +133 -0
  172. package/dist/jobs/jobs.contract.d.ts +16517 -8495
  173. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  174. package/dist/jobs/jobs.contract.js +394 -190
  175. package/dist/jobs/jobs.contract.spec.d.ts +2 -0
  176. package/dist/jobs/jobs.contract.spec.d.ts.map +1 -0
  177. package/dist/jobs/jobs.contract.spec.js +70 -0
  178. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +75 -75
  179. package/dist/lead-assignments/lead-assignments.contract.d.ts +2933 -1122
  180. package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
  181. package/dist/lead-assignments/lead-assignments.contract.js +29 -7
  182. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +328 -64
  183. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
  184. package/dist/lead-distribution/agent-lead-distribution.contract.js +1 -1
  185. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +31 -31
  186. package/dist/leads/leads.contract.d.ts +830 -368
  187. package/dist/leads/leads.contract.d.ts.map +1 -1
  188. package/dist/leads/leads.contract.js +106 -26
  189. package/dist/locations/locations.contract.d.ts +36 -36
  190. package/dist/notifications/notifications.contract.d.ts +1039 -0
  191. package/dist/notifications/notifications.contract.d.ts.map +1 -0
  192. package/dist/notifications/notifications.contract.js +110 -0
  193. package/dist/offices/offices.contract.d.ts +210 -60
  194. package/dist/offices/offices.contract.d.ts.map +1 -1
  195. package/dist/offices/offices.contract.js +18 -4
  196. package/dist/outreach/__tests__/outreach-claim.test.d.ts +2 -0
  197. package/dist/outreach/__tests__/outreach-claim.test.d.ts.map +1 -0
  198. package/dist/outreach/__tests__/outreach-claim.test.js +97 -0
  199. package/dist/outreach/__tests__/outreach-confirm-release.test.d.ts +2 -0
  200. package/dist/outreach/__tests__/outreach-confirm-release.test.d.ts.map +1 -0
  201. package/dist/outreach/__tests__/outreach-confirm-release.test.js +98 -0
  202. package/dist/outreach/__tests__/outreach-routes.test.d.ts +2 -0
  203. package/dist/outreach/__tests__/outreach-routes.test.d.ts.map +1 -0
  204. package/dist/outreach/__tests__/outreach-routes.test.js +57 -0
  205. package/dist/outreach/__tests__/outreach.schemas.test.d.ts +2 -0
  206. package/dist/outreach/__tests__/outreach.schemas.test.d.ts.map +1 -0
  207. package/dist/outreach/__tests__/outreach.schemas.test.js +140 -0
  208. package/dist/outreach/outreach.contract.d.ts +809 -0
  209. package/dist/outreach/outreach.contract.d.ts.map +1 -0
  210. package/dist/outreach/outreach.contract.js +195 -0
  211. package/dist/outreach/outreach.schemas.d.ts +113 -0
  212. package/dist/outreach/outreach.schemas.d.ts.map +1 -0
  213. package/dist/outreach/outreach.schemas.js +132 -0
  214. package/dist/own-research/own-research.contract.d.ts +1356 -552
  215. package/dist/own-research/own-research.contract.d.ts.map +1 -1
  216. package/dist/own-research/own-research.contract.js +14 -3
  217. package/dist/postcodes/postcodes.contract.d.ts +16 -16
  218. package/dist/proofs/proof-category.enum.d.ts +4 -0
  219. package/dist/proofs/proof-category.enum.d.ts.map +1 -0
  220. package/dist/proofs/proof-category.enum.js +5 -0
  221. package/dist/proofs/proof-entity-type.enum.d.ts +4 -0
  222. package/dist/proofs/proof-entity-type.enum.d.ts.map +1 -0
  223. package/dist/proofs/proof-entity-type.enum.js +5 -0
  224. package/dist/proofs/proof-type.enum.d.ts +28 -0
  225. package/dist/proofs/proof-type.enum.d.ts.map +1 -0
  226. package/dist/proofs/proof-type.enum.js +14 -0
  227. package/dist/proofs/proofs.contract.d.ts +3009 -0
  228. package/dist/proofs/proofs.contract.d.ts.map +1 -0
  229. package/dist/proofs/proofs.contract.js +92 -0
  230. package/dist/proofs/proofs.dtos.d.ts +1319 -0
  231. package/dist/proofs/proofs.dtos.d.ts.map +1 -0
  232. package/dist/proofs/proofs.dtos.js +178 -0
  233. package/dist/qualifications/qualifications.contract.d.ts +94 -94
  234. package/dist/realtime/data-changed.d.ts +21 -0
  235. package/dist/realtime/data-changed.d.ts.map +1 -0
  236. package/dist/realtime/data-changed.js +37 -0
  237. package/dist/shared/booking-history.schema.d.ts +27 -0
  238. package/dist/shared/booking-history.schema.d.ts.map +1 -0
  239. package/dist/shared/booking-history.schema.js +22 -0
  240. package/dist/shared/booking-history.spec.d.ts +2 -0
  241. package/dist/shared/booking-history.spec.d.ts.map +1 -0
  242. package/dist/shared/booking-history.spec.js +44 -0
  243. package/dist/shared/contact-suppressions.contract.d.ts +22 -0
  244. package/dist/shared/contact-suppressions.contract.d.ts.map +1 -0
  245. package/dist/shared/contact-suppressions.contract.js +13 -0
  246. package/dist/shared/live-booking.schema.d.ts +57 -0
  247. package/dist/shared/live-booking.schema.d.ts.map +1 -0
  248. package/dist/shared/live-booking.schema.js +34 -0
  249. package/dist/shared/summary-schemas.d.ts +218 -0
  250. package/dist/shared/summary-schemas.d.ts.map +1 -0
  251. package/dist/shared/summary-schemas.js +56 -0
  252. package/dist/sheets-sync/__tests__/sheets-sync-events.schemas.test.d.ts +2 -0
  253. package/dist/sheets-sync/__tests__/sheets-sync-events.schemas.test.d.ts.map +1 -0
  254. package/dist/sheets-sync/__tests__/sheets-sync-events.schemas.test.js +20 -0
  255. package/dist/sheets-sync/__tests__/tab-sync-config.schema.test.d.ts +2 -0
  256. package/dist/sheets-sync/__tests__/tab-sync-config.schema.test.d.ts.map +1 -0
  257. package/dist/sheets-sync/__tests__/tab-sync-config.schema.test.js +41 -0
  258. package/dist/sheets-sync/sheets-sync-events.schemas.d.ts +43 -0
  259. package/dist/sheets-sync/sheets-sync-events.schemas.d.ts.map +1 -0
  260. package/dist/sheets-sync/sheets-sync-events.schemas.js +29 -0
  261. package/dist/sheets-sync/sheets-sync.contract.d.ts +7258 -0
  262. package/dist/sheets-sync/sheets-sync.contract.d.ts.map +1 -0
  263. package/dist/sheets-sync/sheets-sync.contract.js +323 -0
  264. package/dist/telegram/telegram.contract.d.ts +727 -0
  265. package/dist/telegram/telegram.contract.d.ts.map +1 -0
  266. package/dist/telegram/telegram.contract.js +75 -0
  267. package/dist/trades/trade-rate-assessment.d.ts +18 -0
  268. package/dist/trades/trade-rate-assessment.d.ts.map +1 -0
  269. package/dist/trades/trade-rate-assessment.js +46 -0
  270. package/dist/trades/trade-rate-assessment.spec.d.ts +2 -0
  271. package/dist/trades/trade-rate-assessment.spec.d.ts.map +1 -0
  272. package/dist/trades/trade-rate-assessment.spec.js +223 -0
  273. package/dist/trades/trades.contract.d.ts +111 -0
  274. package/dist/trades/trades.contract.d.ts.map +1 -1
  275. package/dist/trades/trades.contract.js +49 -1
  276. package/dist/trades/trades.contract.spec.d.ts +2 -0
  277. package/dist/trades/trades.contract.spec.d.ts.map +1 -0
  278. package/dist/trades/trades.contract.spec.js +173 -0
  279. package/dist/user-access-grants/build-user-access-grant-rules.d.ts +10 -0
  280. package/dist/user-access-grants/build-user-access-grant-rules.d.ts.map +1 -0
  281. package/dist/user-access-grants/build-user-access-grant-rules.js +69 -0
  282. package/dist/user-access-grants/build-user-access-grant-rules.spec.d.ts +2 -0
  283. package/dist/user-access-grants/build-user-access-grant-rules.spec.d.ts.map +1 -0
  284. package/dist/user-access-grants/build-user-access-grant-rules.spec.js +77 -0
  285. package/dist/user-access-grants/user-access-grant-templates.json +454 -0
  286. package/dist/user-access-grants/user-access-grants.contract.d.ts +3886 -0
  287. package/dist/user-access-grants/user-access-grants.contract.d.ts.map +1 -0
  288. package/dist/user-access-grants/user-access-grants.contract.js +189 -0
  289. package/dist/user-access-grants/user-access-grants.contract.spec.d.ts +2 -0
  290. package/dist/user-access-grants/user-access-grants.contract.spec.d.ts.map +1 -0
  291. package/dist/user-access-grants/user-access-grants.contract.spec.js +149 -0
  292. package/dist/users/users.contract.d.ts +1959 -349
  293. package/dist/users/users.contract.d.ts.map +1 -1
  294. package/dist/users/users.contract.js +222 -37
  295. package/dist/users/users.contract.spec.d.ts +2 -0
  296. package/dist/users/users.contract.spec.d.ts.map +1 -0
  297. package/dist/users/users.contract.spec.js +103 -0
  298. package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +4609 -0
  299. package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -0
  300. package/dist/worker-identity-cases/worker-identity-cases.contract.js +409 -0
  301. package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +1511 -0
  302. package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts.map +1 -0
  303. package/dist/worker-merge-proposals/worker-merge-proposals.contract.js +150 -0
  304. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +1106 -0
  305. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts.map +1 -0
  306. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.js +85 -0
  307. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.spec.d.ts +2 -0
  308. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.spec.d.ts.map +1 -0
  309. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.spec.js +216 -0
  310. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +453 -0
  311. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts.map +1 -0
  312. package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.js +109 -0
  313. package/dist/workers/do-not-contact.contract.d.ts +46 -0
  314. package/dist/workers/do-not-contact.contract.d.ts.map +1 -0
  315. package/dist/workers/do-not-contact.contract.js +41 -0
  316. package/dist/workers/do-not-contact.contract.spec.d.ts +2 -0
  317. package/dist/workers/do-not-contact.contract.spec.d.ts.map +1 -0
  318. package/dist/workers/do-not-contact.contract.spec.js +47 -0
  319. package/dist/workers/duplicate-group-worker.spec.d.ts +2 -0
  320. package/dist/workers/duplicate-group-worker.spec.d.ts.map +1 -0
  321. package/dist/workers/duplicate-group-worker.spec.js +34 -0
  322. package/dist/workers/filter-exact-flags.spec.d.ts +2 -0
  323. package/dist/workers/filter-exact-flags.spec.d.ts.map +1 -0
  324. package/dist/workers/filter-exact-flags.spec.js +37 -0
  325. package/dist/workers/worker-source-attribution.contract.spec.d.ts +2 -0
  326. package/dist/workers/worker-source-attribution.contract.spec.d.ts.map +1 -0
  327. package/dist/workers/worker-source-attribution.contract.spec.js +442 -0
  328. package/dist/workers/worker-source.spec.d.ts +2 -0
  329. package/dist/workers/worker-source.spec.d.ts.map +1 -0
  330. package/dist/workers/worker-source.spec.js +13 -0
  331. package/dist/workers/worker-status-facets.spec.d.ts +2 -0
  332. package/dist/workers/worker-status-facets.spec.d.ts.map +1 -0
  333. package/dist/workers/worker-status-facets.spec.js +34 -0
  334. package/dist/workers/workers.contract.d.ts +19534 -5969
  335. package/dist/workers/workers.contract.d.ts.map +1 -1
  336. package/dist/workers/workers.contract.js +1096 -113
  337. package/dist/workers/workers.contract.spec.d.ts +2 -0
  338. package/dist/workers/workers.contract.spec.d.ts.map +1 -0
  339. package/dist/workers/workers.contract.spec.js +31 -0
  340. package/package.json +5 -4
@@ -0,0 +1,1319 @@
1
+ import { z } from 'zod';
2
+ export declare const LinkedEntitySchema: z.ZodObject<{
3
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
4
+ entityId: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ entityType: "BOOKING" | "JOB";
7
+ entityId: string;
8
+ }, {
9
+ entityType: "BOOKING" | "JOB";
10
+ entityId: string;
11
+ }>;
12
+ export declare const CreateProofBatchSchema: z.ZodDiscriminatedUnion<"category", [z.ZodObject<{
13
+ category: z.ZodLiteral<"POST">;
14
+ forUserId: z.ZodString;
15
+ proofDate: z.ZodOptional<z.ZodString>;
16
+ linkedEntities: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
17
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
18
+ entityId: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ entityType: "BOOKING" | "JOB";
21
+ entityId: string;
22
+ }, {
23
+ entityType: "BOOKING" | "JOB";
24
+ entityId: string;
25
+ }>, "many">>>;
26
+ sections: z.ZodEffects<z.ZodArray<z.ZodObject<{
27
+ type: z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER"]>;
28
+ photos: z.ZodArray<z.ZodObject<{
29
+ fileId: z.ZodString;
30
+ comment: z.ZodOptional<z.ZodString>;
31
+ verified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ fileId: string;
34
+ verified: boolean;
35
+ comment?: string | undefined;
36
+ }, {
37
+ fileId: string;
38
+ comment?: string | undefined;
39
+ verified?: boolean | undefined;
40
+ }>, "many">;
41
+ }, "strip", z.ZodTypeAny, {
42
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER";
43
+ photos: {
44
+ fileId: string;
45
+ verified: boolean;
46
+ comment?: string | undefined;
47
+ }[];
48
+ }, {
49
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER";
50
+ photos: {
51
+ fileId: string;
52
+ comment?: string | undefined;
53
+ verified?: boolean | undefined;
54
+ }[];
55
+ }>, "many">, {
56
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER";
57
+ photos: {
58
+ fileId: string;
59
+ verified: boolean;
60
+ comment?: string | undefined;
61
+ }[];
62
+ }[], {
63
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER";
64
+ photos: {
65
+ fileId: string;
66
+ comment?: string | undefined;
67
+ verified?: boolean | undefined;
68
+ }[];
69
+ }[]>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ category: "POST";
72
+ forUserId: string;
73
+ linkedEntities: {
74
+ entityType: "BOOKING" | "JOB";
75
+ entityId: string;
76
+ }[];
77
+ sections: {
78
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER";
79
+ photos: {
80
+ fileId: string;
81
+ verified: boolean;
82
+ comment?: string | undefined;
83
+ }[];
84
+ }[];
85
+ proofDate?: string | undefined;
86
+ }, {
87
+ category: "POST";
88
+ forUserId: string;
89
+ sections: {
90
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER";
91
+ photos: {
92
+ fileId: string;
93
+ comment?: string | undefined;
94
+ verified?: boolean | undefined;
95
+ }[];
96
+ }[];
97
+ proofDate?: string | undefined;
98
+ linkedEntities?: {
99
+ entityType: "BOOKING" | "JOB";
100
+ entityId: string;
101
+ }[] | undefined;
102
+ }>, z.ZodObject<{
103
+ category: z.ZodLiteral<"BOOKING">;
104
+ forUserId: z.ZodString;
105
+ proofDate: z.ZodOptional<z.ZodString>;
106
+ linkedEntities: z.ZodArray<z.ZodObject<{
107
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
108
+ entityId: z.ZodString;
109
+ }, "strip", z.ZodTypeAny, {
110
+ entityType: "BOOKING" | "JOB";
111
+ entityId: string;
112
+ }, {
113
+ entityType: "BOOKING" | "JOB";
114
+ entityId: string;
115
+ }>, "many">;
116
+ sections: z.ZodEffects<z.ZodArray<z.ZodObject<{
117
+ type: z.ZodEnum<["CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>;
118
+ photos: z.ZodArray<z.ZodObject<{
119
+ fileId: z.ZodString;
120
+ comment: z.ZodOptional<z.ZodString>;
121
+ verified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ fileId: string;
124
+ verified: boolean;
125
+ comment?: string | undefined;
126
+ }, {
127
+ fileId: string;
128
+ comment?: string | undefined;
129
+ verified?: boolean | undefined;
130
+ }>, "many">;
131
+ }, "strip", z.ZodTypeAny, {
132
+ type: "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
133
+ photos: {
134
+ fileId: string;
135
+ verified: boolean;
136
+ comment?: string | undefined;
137
+ }[];
138
+ }, {
139
+ type: "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
140
+ photos: {
141
+ fileId: string;
142
+ comment?: string | undefined;
143
+ verified?: boolean | undefined;
144
+ }[];
145
+ }>, "many">, {
146
+ type: "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
147
+ photos: {
148
+ fileId: string;
149
+ verified: boolean;
150
+ comment?: string | undefined;
151
+ }[];
152
+ }[], {
153
+ type: "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
154
+ photos: {
155
+ fileId: string;
156
+ comment?: string | undefined;
157
+ verified?: boolean | undefined;
158
+ }[];
159
+ }[]>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ category: "BOOKING";
162
+ forUserId: string;
163
+ linkedEntities: {
164
+ entityType: "BOOKING" | "JOB";
165
+ entityId: string;
166
+ }[];
167
+ sections: {
168
+ type: "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
169
+ photos: {
170
+ fileId: string;
171
+ verified: boolean;
172
+ comment?: string | undefined;
173
+ }[];
174
+ }[];
175
+ proofDate?: string | undefined;
176
+ }, {
177
+ category: "BOOKING";
178
+ forUserId: string;
179
+ linkedEntities: {
180
+ entityType: "BOOKING" | "JOB";
181
+ entityId: string;
182
+ }[];
183
+ sections: {
184
+ type: "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
185
+ photos: {
186
+ fileId: string;
187
+ comment?: string | undefined;
188
+ verified?: boolean | undefined;
189
+ }[];
190
+ }[];
191
+ proofDate?: string | undefined;
192
+ }>]>;
193
+ export type CreateProofBatchInput = z.infer<typeof CreateProofBatchSchema>;
194
+ export declare const CreateProofBatchResponseSchema: z.ZodObject<{
195
+ proofId: z.ZodString;
196
+ }, "strip", z.ZodTypeAny, {
197
+ proofId: string;
198
+ }, {
199
+ proofId: string;
200
+ }>;
201
+ export declare const UpdateProofSchema: z.ZodObject<{
202
+ forUserId: z.ZodOptional<z.ZodString>;
203
+ proofDate: z.ZodOptional<z.ZodString>;
204
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
+ linkedEntities: z.ZodOptional<z.ZodArray<z.ZodObject<{
206
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
207
+ entityId: z.ZodString;
208
+ }, "strip", z.ZodTypeAny, {
209
+ entityType: "BOOKING" | "JOB";
210
+ entityId: string;
211
+ }, {
212
+ entityType: "BOOKING" | "JOB";
213
+ entityId: string;
214
+ }>, "many">>;
215
+ sections: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
216
+ id: z.ZodOptional<z.ZodString>;
217
+ type: z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER", "CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>;
218
+ photos: z.ZodArray<z.ZodEffects<z.ZodObject<{
219
+ id: z.ZodOptional<z.ZodString>;
220
+ fileId: z.ZodOptional<z.ZodString>;
221
+ verified: z.ZodBoolean;
222
+ comment: z.ZodNullable<z.ZodString>;
223
+ position: z.ZodNumber;
224
+ }, "strip", z.ZodTypeAny, {
225
+ comment: string | null;
226
+ verified: boolean;
227
+ position: number;
228
+ id?: string | undefined;
229
+ fileId?: string | undefined;
230
+ }, {
231
+ comment: string | null;
232
+ verified: boolean;
233
+ position: number;
234
+ id?: string | undefined;
235
+ fileId?: string | undefined;
236
+ }>, {
237
+ comment: string | null;
238
+ verified: boolean;
239
+ position: number;
240
+ id?: string | undefined;
241
+ fileId?: string | undefined;
242
+ }, {
243
+ comment: string | null;
244
+ verified: boolean;
245
+ position: number;
246
+ id?: string | undefined;
247
+ fileId?: string | undefined;
248
+ }>, "many">;
249
+ }, "strip", z.ZodTypeAny, {
250
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
251
+ photos: {
252
+ comment: string | null;
253
+ verified: boolean;
254
+ position: number;
255
+ id?: string | undefined;
256
+ fileId?: string | undefined;
257
+ }[];
258
+ id?: string | undefined;
259
+ }, {
260
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
261
+ photos: {
262
+ comment: string | null;
263
+ verified: boolean;
264
+ position: number;
265
+ id?: string | undefined;
266
+ fileId?: string | undefined;
267
+ }[];
268
+ id?: string | undefined;
269
+ }>, "many">, {
270
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
271
+ photos: {
272
+ comment: string | null;
273
+ verified: boolean;
274
+ position: number;
275
+ id?: string | undefined;
276
+ fileId?: string | undefined;
277
+ }[];
278
+ id?: string | undefined;
279
+ }[], {
280
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
281
+ photos: {
282
+ comment: string | null;
283
+ verified: boolean;
284
+ position: number;
285
+ id?: string | undefined;
286
+ fileId?: string | undefined;
287
+ }[];
288
+ id?: string | undefined;
289
+ }[]>>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ description?: string | null | undefined;
292
+ forUserId?: string | undefined;
293
+ proofDate?: string | undefined;
294
+ linkedEntities?: {
295
+ entityType: "BOOKING" | "JOB";
296
+ entityId: string;
297
+ }[] | undefined;
298
+ sections?: {
299
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
300
+ photos: {
301
+ comment: string | null;
302
+ verified: boolean;
303
+ position: number;
304
+ id?: string | undefined;
305
+ fileId?: string | undefined;
306
+ }[];
307
+ id?: string | undefined;
308
+ }[] | undefined;
309
+ }, {
310
+ description?: string | null | undefined;
311
+ forUserId?: string | undefined;
312
+ proofDate?: string | undefined;
313
+ linkedEntities?: {
314
+ entityType: "BOOKING" | "JOB";
315
+ entityId: string;
316
+ }[] | undefined;
317
+ sections?: {
318
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
319
+ photos: {
320
+ comment: string | null;
321
+ verified: boolean;
322
+ position: number;
323
+ id?: string | undefined;
324
+ fileId?: string | undefined;
325
+ }[];
326
+ id?: string | undefined;
327
+ }[] | undefined;
328
+ }>;
329
+ export type UpdateProofInput = z.infer<typeof UpdateProofSchema>;
330
+ export declare const ProofPhotoResponseSchema: z.ZodObject<{
331
+ id: z.ZodString;
332
+ sectionId: z.ZodString;
333
+ fileId: z.ZodString;
334
+ position: z.ZodNumber;
335
+ verified: z.ZodBoolean;
336
+ verifiedAt: z.ZodNullable<z.ZodString>;
337
+ verifiedById: z.ZodNullable<z.ZodString>;
338
+ comment: z.ZodNullable<z.ZodString>;
339
+ createdAt: z.ZodString;
340
+ updatedAt: z.ZodString;
341
+ fileUrl: z.ZodOptional<z.ZodString>;
342
+ fileName: z.ZodOptional<z.ZodString>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ id: string;
345
+ createdAt: string;
346
+ updatedAt: string;
347
+ fileId: string;
348
+ comment: string | null;
349
+ verified: boolean;
350
+ position: number;
351
+ sectionId: string;
352
+ verifiedAt: string | null;
353
+ verifiedById: string | null;
354
+ fileUrl?: string | undefined;
355
+ fileName?: string | undefined;
356
+ }, {
357
+ id: string;
358
+ createdAt: string;
359
+ updatedAt: string;
360
+ fileId: string;
361
+ comment: string | null;
362
+ verified: boolean;
363
+ position: number;
364
+ sectionId: string;
365
+ verifiedAt: string | null;
366
+ verifiedById: string | null;
367
+ fileUrl?: string | undefined;
368
+ fileName?: string | undefined;
369
+ }>;
370
+ export declare const ProofSectionResponseSchema: z.ZodObject<{
371
+ id: z.ZodString;
372
+ type: z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER", "CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>;
373
+ photos: z.ZodArray<z.ZodObject<{
374
+ id: z.ZodString;
375
+ sectionId: z.ZodString;
376
+ fileId: z.ZodString;
377
+ position: z.ZodNumber;
378
+ verified: z.ZodBoolean;
379
+ verifiedAt: z.ZodNullable<z.ZodString>;
380
+ verifiedById: z.ZodNullable<z.ZodString>;
381
+ comment: z.ZodNullable<z.ZodString>;
382
+ createdAt: z.ZodString;
383
+ updatedAt: z.ZodString;
384
+ fileUrl: z.ZodOptional<z.ZodString>;
385
+ fileName: z.ZodOptional<z.ZodString>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ id: string;
388
+ createdAt: string;
389
+ updatedAt: string;
390
+ fileId: string;
391
+ comment: string | null;
392
+ verified: boolean;
393
+ position: number;
394
+ sectionId: string;
395
+ verifiedAt: string | null;
396
+ verifiedById: string | null;
397
+ fileUrl?: string | undefined;
398
+ fileName?: string | undefined;
399
+ }, {
400
+ id: string;
401
+ createdAt: string;
402
+ updatedAt: string;
403
+ fileId: string;
404
+ comment: string | null;
405
+ verified: boolean;
406
+ position: number;
407
+ sectionId: string;
408
+ verifiedAt: string | null;
409
+ verifiedById: string | null;
410
+ fileUrl?: string | undefined;
411
+ fileName?: string | undefined;
412
+ }>, "many">;
413
+ photoCount: z.ZodNumber;
414
+ verifiedCount: z.ZodNumber;
415
+ createdAt: z.ZodString;
416
+ updatedAt: z.ZodString;
417
+ }, "strip", z.ZodTypeAny, {
418
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
419
+ id: string;
420
+ createdAt: string;
421
+ updatedAt: string;
422
+ photos: {
423
+ id: string;
424
+ createdAt: string;
425
+ updatedAt: string;
426
+ fileId: string;
427
+ comment: string | null;
428
+ verified: boolean;
429
+ position: number;
430
+ sectionId: string;
431
+ verifiedAt: string | null;
432
+ verifiedById: string | null;
433
+ fileUrl?: string | undefined;
434
+ fileName?: string | undefined;
435
+ }[];
436
+ photoCount: number;
437
+ verifiedCount: number;
438
+ }, {
439
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
440
+ id: string;
441
+ createdAt: string;
442
+ updatedAt: string;
443
+ photos: {
444
+ id: string;
445
+ createdAt: string;
446
+ updatedAt: string;
447
+ fileId: string;
448
+ comment: string | null;
449
+ verified: boolean;
450
+ position: number;
451
+ sectionId: string;
452
+ verifiedAt: string | null;
453
+ verifiedById: string | null;
454
+ fileUrl?: string | undefined;
455
+ fileName?: string | undefined;
456
+ }[];
457
+ photoCount: number;
458
+ verifiedCount: number;
459
+ }>;
460
+ export declare const ProofEntityLinkResponseSchema: z.ZodObject<{
461
+ id: z.ZodString;
462
+ proofId: z.ZodString;
463
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
464
+ entityId: z.ZodString;
465
+ }, "strip", z.ZodTypeAny, {
466
+ id: string;
467
+ entityType: "BOOKING" | "JOB";
468
+ entityId: string;
469
+ proofId: string;
470
+ }, {
471
+ id: string;
472
+ entityType: "BOOKING" | "JOB";
473
+ entityId: string;
474
+ proofId: string;
475
+ }>;
476
+ export declare const ProofResponseSchema: z.ZodObject<{
477
+ id: z.ZodString;
478
+ category: z.ZodEnum<["POST", "BOOKING"]>;
479
+ forUserId: z.ZodString;
480
+ forUser: z.ZodObject<{
481
+ id: z.ZodString;
482
+ firstName: z.ZodString;
483
+ lastName: z.ZodString;
484
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
485
+ id: z.ZodString;
486
+ phoneNumber: z.ZodString;
487
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
489
+ }, "strip", z.ZodTypeAny, {
490
+ id: string;
491
+ phoneNumber: string;
492
+ isPrimary: boolean;
493
+ description?: string | null | undefined;
494
+ }, {
495
+ id: string;
496
+ phoneNumber: string;
497
+ description?: string | null | undefined;
498
+ isPrimary?: boolean | undefined;
499
+ }>, "many">>>;
500
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
501
+ }, "strip", z.ZodTypeAny, {
502
+ id: string;
503
+ firstName: string;
504
+ lastName: string;
505
+ phoneNumbers: {
506
+ id: string;
507
+ phoneNumber: string;
508
+ isPrimary: boolean;
509
+ description?: string | null | undefined;
510
+ }[];
511
+ deletedAt?: string | null | undefined;
512
+ }, {
513
+ id: string;
514
+ firstName: string;
515
+ lastName: string;
516
+ phoneNumbers?: {
517
+ id: string;
518
+ phoneNumber: string;
519
+ description?: string | null | undefined;
520
+ isPrimary?: boolean | undefined;
521
+ }[] | undefined;
522
+ deletedAt?: string | Date | null | undefined;
523
+ }>;
524
+ proofDate: z.ZodString;
525
+ description: z.ZodNullable<z.ZodString>;
526
+ createdById: z.ZodString;
527
+ createdBy: z.ZodObject<{
528
+ id: z.ZodString;
529
+ firstName: z.ZodString;
530
+ lastName: z.ZodString;
531
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
532
+ id: z.ZodString;
533
+ phoneNumber: z.ZodString;
534
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
535
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
536
+ }, "strip", z.ZodTypeAny, {
537
+ id: string;
538
+ phoneNumber: string;
539
+ isPrimary: boolean;
540
+ description?: string | null | undefined;
541
+ }, {
542
+ id: string;
543
+ phoneNumber: string;
544
+ description?: string | null | undefined;
545
+ isPrimary?: boolean | undefined;
546
+ }>, "many">>>;
547
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ id: string;
550
+ firstName: string;
551
+ lastName: string;
552
+ phoneNumbers: {
553
+ id: string;
554
+ phoneNumber: string;
555
+ isPrimary: boolean;
556
+ description?: string | null | undefined;
557
+ }[];
558
+ deletedAt?: string | null | undefined;
559
+ }, {
560
+ id: string;
561
+ firstName: string;
562
+ lastName: string;
563
+ phoneNumbers?: {
564
+ id: string;
565
+ phoneNumber: string;
566
+ description?: string | null | undefined;
567
+ isPrimary?: boolean | undefined;
568
+ }[] | undefined;
569
+ deletedAt?: string | Date | null | undefined;
570
+ }>;
571
+ createdAt: z.ZodString;
572
+ updatedAt: z.ZodString;
573
+ sections: z.ZodArray<z.ZodObject<{
574
+ id: z.ZodString;
575
+ type: z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER", "CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>;
576
+ photos: z.ZodArray<z.ZodObject<{
577
+ id: z.ZodString;
578
+ sectionId: z.ZodString;
579
+ fileId: z.ZodString;
580
+ position: z.ZodNumber;
581
+ verified: z.ZodBoolean;
582
+ verifiedAt: z.ZodNullable<z.ZodString>;
583
+ verifiedById: z.ZodNullable<z.ZodString>;
584
+ comment: z.ZodNullable<z.ZodString>;
585
+ createdAt: z.ZodString;
586
+ updatedAt: z.ZodString;
587
+ fileUrl: z.ZodOptional<z.ZodString>;
588
+ fileName: z.ZodOptional<z.ZodString>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ id: string;
591
+ createdAt: string;
592
+ updatedAt: string;
593
+ fileId: string;
594
+ comment: string | null;
595
+ verified: boolean;
596
+ position: number;
597
+ sectionId: string;
598
+ verifiedAt: string | null;
599
+ verifiedById: string | null;
600
+ fileUrl?: string | undefined;
601
+ fileName?: string | undefined;
602
+ }, {
603
+ id: string;
604
+ createdAt: string;
605
+ updatedAt: string;
606
+ fileId: string;
607
+ comment: string | null;
608
+ verified: boolean;
609
+ position: number;
610
+ sectionId: string;
611
+ verifiedAt: string | null;
612
+ verifiedById: string | null;
613
+ fileUrl?: string | undefined;
614
+ fileName?: string | undefined;
615
+ }>, "many">;
616
+ photoCount: z.ZodNumber;
617
+ verifiedCount: z.ZodNumber;
618
+ createdAt: z.ZodString;
619
+ updatedAt: z.ZodString;
620
+ }, "strip", z.ZodTypeAny, {
621
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
622
+ id: string;
623
+ createdAt: string;
624
+ updatedAt: string;
625
+ photos: {
626
+ id: string;
627
+ createdAt: string;
628
+ updatedAt: string;
629
+ fileId: string;
630
+ comment: string | null;
631
+ verified: boolean;
632
+ position: number;
633
+ sectionId: string;
634
+ verifiedAt: string | null;
635
+ verifiedById: string | null;
636
+ fileUrl?: string | undefined;
637
+ fileName?: string | undefined;
638
+ }[];
639
+ photoCount: number;
640
+ verifiedCount: number;
641
+ }, {
642
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
643
+ id: string;
644
+ createdAt: string;
645
+ updatedAt: string;
646
+ photos: {
647
+ id: string;
648
+ createdAt: string;
649
+ updatedAt: string;
650
+ fileId: string;
651
+ comment: string | null;
652
+ verified: boolean;
653
+ position: number;
654
+ sectionId: string;
655
+ verifiedAt: string | null;
656
+ verifiedById: string | null;
657
+ fileUrl?: string | undefined;
658
+ fileName?: string | undefined;
659
+ }[];
660
+ photoCount: number;
661
+ verifiedCount: number;
662
+ }>, "many">;
663
+ entityLinks: z.ZodArray<z.ZodObject<{
664
+ id: z.ZodString;
665
+ proofId: z.ZodString;
666
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
667
+ entityId: z.ZodString;
668
+ }, "strip", z.ZodTypeAny, {
669
+ id: string;
670
+ entityType: "BOOKING" | "JOB";
671
+ entityId: string;
672
+ proofId: string;
673
+ }, {
674
+ id: string;
675
+ entityType: "BOOKING" | "JOB";
676
+ entityId: string;
677
+ proofId: string;
678
+ }>, "many">;
679
+ verifiedCount: z.ZodNumber;
680
+ totalPhotos: z.ZodNumber;
681
+ }, "strip", z.ZodTypeAny, {
682
+ id: string;
683
+ description: string | null;
684
+ createdAt: string;
685
+ updatedAt: string;
686
+ category: "POST" | "BOOKING";
687
+ forUserId: string;
688
+ proofDate: string;
689
+ sections: {
690
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
691
+ id: string;
692
+ createdAt: string;
693
+ updatedAt: string;
694
+ photos: {
695
+ id: string;
696
+ createdAt: string;
697
+ updatedAt: string;
698
+ fileId: string;
699
+ comment: string | null;
700
+ verified: boolean;
701
+ position: number;
702
+ sectionId: string;
703
+ verifiedAt: string | null;
704
+ verifiedById: string | null;
705
+ fileUrl?: string | undefined;
706
+ fileName?: string | undefined;
707
+ }[];
708
+ photoCount: number;
709
+ verifiedCount: number;
710
+ }[];
711
+ verifiedCount: number;
712
+ forUser: {
713
+ id: string;
714
+ firstName: string;
715
+ lastName: string;
716
+ phoneNumbers: {
717
+ id: string;
718
+ phoneNumber: string;
719
+ isPrimary: boolean;
720
+ description?: string | null | undefined;
721
+ }[];
722
+ deletedAt?: string | null | undefined;
723
+ };
724
+ createdById: string;
725
+ createdBy: {
726
+ id: string;
727
+ firstName: string;
728
+ lastName: string;
729
+ phoneNumbers: {
730
+ id: string;
731
+ phoneNumber: string;
732
+ isPrimary: boolean;
733
+ description?: string | null | undefined;
734
+ }[];
735
+ deletedAt?: string | null | undefined;
736
+ };
737
+ entityLinks: {
738
+ id: string;
739
+ entityType: "BOOKING" | "JOB";
740
+ entityId: string;
741
+ proofId: string;
742
+ }[];
743
+ totalPhotos: number;
744
+ }, {
745
+ id: string;
746
+ description: string | null;
747
+ createdAt: string;
748
+ updatedAt: string;
749
+ category: "POST" | "BOOKING";
750
+ forUserId: string;
751
+ proofDate: string;
752
+ sections: {
753
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
754
+ id: string;
755
+ createdAt: string;
756
+ updatedAt: string;
757
+ photos: {
758
+ id: string;
759
+ createdAt: string;
760
+ updatedAt: string;
761
+ fileId: string;
762
+ comment: string | null;
763
+ verified: boolean;
764
+ position: number;
765
+ sectionId: string;
766
+ verifiedAt: string | null;
767
+ verifiedById: string | null;
768
+ fileUrl?: string | undefined;
769
+ fileName?: string | undefined;
770
+ }[];
771
+ photoCount: number;
772
+ verifiedCount: number;
773
+ }[];
774
+ verifiedCount: number;
775
+ forUser: {
776
+ id: string;
777
+ firstName: string;
778
+ lastName: string;
779
+ phoneNumbers?: {
780
+ id: string;
781
+ phoneNumber: string;
782
+ description?: string | null | undefined;
783
+ isPrimary?: boolean | undefined;
784
+ }[] | undefined;
785
+ deletedAt?: string | Date | null | undefined;
786
+ };
787
+ createdById: string;
788
+ createdBy: {
789
+ id: string;
790
+ firstName: string;
791
+ lastName: string;
792
+ phoneNumbers?: {
793
+ id: string;
794
+ phoneNumber: string;
795
+ description?: string | null | undefined;
796
+ isPrimary?: boolean | undefined;
797
+ }[] | undefined;
798
+ deletedAt?: string | Date | null | undefined;
799
+ };
800
+ entityLinks: {
801
+ id: string;
802
+ entityType: "BOOKING" | "JOB";
803
+ entityId: string;
804
+ proofId: string;
805
+ }[];
806
+ totalPhotos: number;
807
+ }>;
808
+ export declare const ProofSortableFieldsSchema: z.ZodEnum<["createdAt"]>;
809
+ export type ProofSortableFields = z.infer<typeof ProofSortableFieldsSchema>;
810
+ export declare const FilterProofsSchema: z.ZodObject<{
811
+ page: z.ZodDefault<z.ZodNumber>;
812
+ } & {
813
+ limit: z.ZodDefault<z.ZodNumber>;
814
+ category: z.ZodOptional<z.ZodEnum<["POST", "BOOKING"]>>;
815
+ type: z.ZodOptional<z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER", "CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>>;
816
+ forUserId: z.ZodOptional<z.ZodString>;
817
+ verified: z.ZodOptional<z.ZodEnum<["all", "partial", "none"]>>;
818
+ linkedBookingId: z.ZodOptional<z.ZodString>;
819
+ createdById: z.ZodOptional<z.ZodString>;
820
+ createdAt: z.ZodOptional<z.ZodObject<{
821
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
822
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
823
+ }, "strip", z.ZodTypeAny, {
824
+ from?: string | null | undefined;
825
+ to?: string | null | undefined;
826
+ }, {
827
+ from?: string | null | undefined;
828
+ to?: string | null | undefined;
829
+ }>>;
830
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
831
+ field: z.ZodEnum<["createdAt"]>;
832
+ order: z.ZodEnum<["ASC", "DESC"]>;
833
+ }, "strip", z.ZodTypeAny, {
834
+ field: "createdAt";
835
+ order: "ASC" | "DESC";
836
+ }, {
837
+ field: "createdAt";
838
+ order: "ASC" | "DESC";
839
+ }>, "many">>>;
840
+ }, "strip", z.ZodTypeAny, {
841
+ limit: number;
842
+ page: number;
843
+ type?: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS" | undefined;
844
+ sort?: {
845
+ field: "createdAt";
846
+ order: "ASC" | "DESC";
847
+ }[] | null | undefined;
848
+ createdAt?: {
849
+ from?: string | null | undefined;
850
+ to?: string | null | undefined;
851
+ } | undefined;
852
+ category?: "POST" | "BOOKING" | undefined;
853
+ forUserId?: string | undefined;
854
+ verified?: "all" | "partial" | "none" | undefined;
855
+ createdById?: string | undefined;
856
+ linkedBookingId?: string | undefined;
857
+ }, {
858
+ limit?: number | undefined;
859
+ page?: number | undefined;
860
+ type?: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS" | undefined;
861
+ sort?: {
862
+ field: "createdAt";
863
+ order: "ASC" | "DESC";
864
+ }[] | null | undefined;
865
+ createdAt?: {
866
+ from?: string | null | undefined;
867
+ to?: string | null | undefined;
868
+ } | undefined;
869
+ category?: "POST" | "BOOKING" | undefined;
870
+ forUserId?: string | undefined;
871
+ verified?: "all" | "partial" | "none" | undefined;
872
+ createdById?: string | undefined;
873
+ linkedBookingId?: string | undefined;
874
+ }>;
875
+ export type FilterProofs = z.infer<typeof FilterProofsSchema>;
876
+ export type ProofResponse = z.infer<typeof ProofResponseSchema>;
877
+ export declare const LinkedBookingSummarySchema: z.ZodObject<{
878
+ type: z.ZodLiteral<"BOOKING">;
879
+ id: z.ZodString;
880
+ worker: z.ZodObject<{
881
+ id: z.ZodString;
882
+ firstName: z.ZodString;
883
+ lastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
884
+ }, "strip", z.ZodTypeAny, {
885
+ id: string;
886
+ firstName: string;
887
+ lastName?: string | null | undefined;
888
+ }, {
889
+ id: string;
890
+ firstName: string;
891
+ lastName?: string | null | undefined;
892
+ }>;
893
+ startDate: z.ZodNullable<z.ZodString>;
894
+ createdAt: z.ZodString;
895
+ }, "strip", z.ZodTypeAny, {
896
+ type: "BOOKING";
897
+ id: string;
898
+ startDate: string | null;
899
+ createdAt: string;
900
+ worker: {
901
+ id: string;
902
+ firstName: string;
903
+ lastName?: string | null | undefined;
904
+ };
905
+ }, {
906
+ type: "BOOKING";
907
+ id: string;
908
+ startDate: string | null;
909
+ createdAt: string;
910
+ worker: {
911
+ id: string;
912
+ firstName: string;
913
+ lastName?: string | null | undefined;
914
+ };
915
+ }>;
916
+ export declare const LinkedJobSummarySchema: z.ZodObject<{
917
+ type: z.ZodLiteral<"JOB">;
918
+ id: z.ZodString;
919
+ tradeId: z.ZodString;
920
+ postcode: z.ZodNullable<z.ZodString>;
921
+ createdBy: z.ZodObject<{
922
+ id: z.ZodString;
923
+ firstName: z.ZodString;
924
+ lastName: z.ZodString;
925
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
926
+ id: z.ZodString;
927
+ phoneNumber: z.ZodString;
928
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
930
+ }, "strip", z.ZodTypeAny, {
931
+ id: string;
932
+ phoneNumber: string;
933
+ isPrimary: boolean;
934
+ description?: string | null | undefined;
935
+ }, {
936
+ id: string;
937
+ phoneNumber: string;
938
+ description?: string | null | undefined;
939
+ isPrimary?: boolean | undefined;
940
+ }>, "many">>>;
941
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
942
+ }, "strip", z.ZodTypeAny, {
943
+ id: string;
944
+ firstName: string;
945
+ lastName: string;
946
+ phoneNumbers: {
947
+ id: string;
948
+ phoneNumber: string;
949
+ isPrimary: boolean;
950
+ description?: string | null | undefined;
951
+ }[];
952
+ deletedAt?: string | null | undefined;
953
+ }, {
954
+ id: string;
955
+ firstName: string;
956
+ lastName: string;
957
+ phoneNumbers?: {
958
+ id: string;
959
+ phoneNumber: string;
960
+ description?: string | null | undefined;
961
+ isPrimary?: boolean | undefined;
962
+ }[] | undefined;
963
+ deletedAt?: string | Date | null | undefined;
964
+ }>;
965
+ createdAt: z.ZodString;
966
+ }, "strip", z.ZodTypeAny, {
967
+ type: "JOB";
968
+ id: string;
969
+ createdAt: string;
970
+ postcode: string | null;
971
+ createdBy: {
972
+ id: string;
973
+ firstName: string;
974
+ lastName: string;
975
+ phoneNumbers: {
976
+ id: string;
977
+ phoneNumber: string;
978
+ isPrimary: boolean;
979
+ description?: string | null | undefined;
980
+ }[];
981
+ deletedAt?: string | null | undefined;
982
+ };
983
+ tradeId: string;
984
+ }, {
985
+ type: "JOB";
986
+ id: string;
987
+ createdAt: string;
988
+ postcode: string | null;
989
+ createdBy: {
990
+ id: string;
991
+ firstName: string;
992
+ lastName: string;
993
+ phoneNumbers?: {
994
+ id: string;
995
+ phoneNumber: string;
996
+ description?: string | null | undefined;
997
+ isPrimary?: boolean | undefined;
998
+ }[] | undefined;
999
+ deletedAt?: string | Date | null | undefined;
1000
+ };
1001
+ tradeId: string;
1002
+ }>;
1003
+ export declare const LinkedEntitySummarySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1004
+ type: z.ZodLiteral<"BOOKING">;
1005
+ id: z.ZodString;
1006
+ worker: z.ZodObject<{
1007
+ id: z.ZodString;
1008
+ firstName: z.ZodString;
1009
+ lastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1010
+ }, "strip", z.ZodTypeAny, {
1011
+ id: string;
1012
+ firstName: string;
1013
+ lastName?: string | null | undefined;
1014
+ }, {
1015
+ id: string;
1016
+ firstName: string;
1017
+ lastName?: string | null | undefined;
1018
+ }>;
1019
+ startDate: z.ZodNullable<z.ZodString>;
1020
+ createdAt: z.ZodString;
1021
+ }, "strip", z.ZodTypeAny, {
1022
+ type: "BOOKING";
1023
+ id: string;
1024
+ startDate: string | null;
1025
+ createdAt: string;
1026
+ worker: {
1027
+ id: string;
1028
+ firstName: string;
1029
+ lastName?: string | null | undefined;
1030
+ };
1031
+ }, {
1032
+ type: "BOOKING";
1033
+ id: string;
1034
+ startDate: string | null;
1035
+ createdAt: string;
1036
+ worker: {
1037
+ id: string;
1038
+ firstName: string;
1039
+ lastName?: string | null | undefined;
1040
+ };
1041
+ }>, z.ZodObject<{
1042
+ type: z.ZodLiteral<"JOB">;
1043
+ id: z.ZodString;
1044
+ tradeId: z.ZodString;
1045
+ postcode: z.ZodNullable<z.ZodString>;
1046
+ createdBy: z.ZodObject<{
1047
+ id: z.ZodString;
1048
+ firstName: z.ZodString;
1049
+ lastName: z.ZodString;
1050
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1051
+ id: z.ZodString;
1052
+ phoneNumber: z.ZodString;
1053
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1054
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
1055
+ }, "strip", z.ZodTypeAny, {
1056
+ id: string;
1057
+ phoneNumber: string;
1058
+ isPrimary: boolean;
1059
+ description?: string | null | undefined;
1060
+ }, {
1061
+ id: string;
1062
+ phoneNumber: string;
1063
+ description?: string | null | undefined;
1064
+ isPrimary?: boolean | undefined;
1065
+ }>, "many">>>;
1066
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1067
+ }, "strip", z.ZodTypeAny, {
1068
+ id: string;
1069
+ firstName: string;
1070
+ lastName: string;
1071
+ phoneNumbers: {
1072
+ id: string;
1073
+ phoneNumber: string;
1074
+ isPrimary: boolean;
1075
+ description?: string | null | undefined;
1076
+ }[];
1077
+ deletedAt?: string | null | undefined;
1078
+ }, {
1079
+ id: string;
1080
+ firstName: string;
1081
+ lastName: string;
1082
+ phoneNumbers?: {
1083
+ id: string;
1084
+ phoneNumber: string;
1085
+ description?: string | null | undefined;
1086
+ isPrimary?: boolean | undefined;
1087
+ }[] | undefined;
1088
+ deletedAt?: string | Date | null | undefined;
1089
+ }>;
1090
+ createdAt: z.ZodString;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ type: "JOB";
1093
+ id: string;
1094
+ createdAt: string;
1095
+ postcode: string | null;
1096
+ createdBy: {
1097
+ id: string;
1098
+ firstName: string;
1099
+ lastName: string;
1100
+ phoneNumbers: {
1101
+ id: string;
1102
+ phoneNumber: string;
1103
+ isPrimary: boolean;
1104
+ description?: string | null | undefined;
1105
+ }[];
1106
+ deletedAt?: string | null | undefined;
1107
+ };
1108
+ tradeId: string;
1109
+ }, {
1110
+ type: "JOB";
1111
+ id: string;
1112
+ createdAt: string;
1113
+ postcode: string | null;
1114
+ createdBy: {
1115
+ id: string;
1116
+ firstName: string;
1117
+ lastName: string;
1118
+ phoneNumbers?: {
1119
+ id: string;
1120
+ phoneNumber: string;
1121
+ description?: string | null | undefined;
1122
+ isPrimary?: boolean | undefined;
1123
+ }[] | undefined;
1124
+ deletedAt?: string | Date | null | undefined;
1125
+ };
1126
+ tradeId: string;
1127
+ }>]>;
1128
+ export declare const LinkedEntitiesResponseSchema: z.ZodObject<{
1129
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1130
+ type: z.ZodLiteral<"BOOKING">;
1131
+ id: z.ZodString;
1132
+ worker: z.ZodObject<{
1133
+ id: z.ZodString;
1134
+ firstName: z.ZodString;
1135
+ lastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ id: string;
1138
+ firstName: string;
1139
+ lastName?: string | null | undefined;
1140
+ }, {
1141
+ id: string;
1142
+ firstName: string;
1143
+ lastName?: string | null | undefined;
1144
+ }>;
1145
+ startDate: z.ZodNullable<z.ZodString>;
1146
+ createdAt: z.ZodString;
1147
+ }, "strip", z.ZodTypeAny, {
1148
+ type: "BOOKING";
1149
+ id: string;
1150
+ startDate: string | null;
1151
+ createdAt: string;
1152
+ worker: {
1153
+ id: string;
1154
+ firstName: string;
1155
+ lastName?: string | null | undefined;
1156
+ };
1157
+ }, {
1158
+ type: "BOOKING";
1159
+ id: string;
1160
+ startDate: string | null;
1161
+ createdAt: string;
1162
+ worker: {
1163
+ id: string;
1164
+ firstName: string;
1165
+ lastName?: string | null | undefined;
1166
+ };
1167
+ }>, z.ZodObject<{
1168
+ type: z.ZodLiteral<"JOB">;
1169
+ id: z.ZodString;
1170
+ tradeId: z.ZodString;
1171
+ postcode: z.ZodNullable<z.ZodString>;
1172
+ createdBy: z.ZodObject<{
1173
+ id: z.ZodString;
1174
+ firstName: z.ZodString;
1175
+ lastName: z.ZodString;
1176
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1177
+ id: z.ZodString;
1178
+ phoneNumber: z.ZodString;
1179
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1180
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
1181
+ }, "strip", z.ZodTypeAny, {
1182
+ id: string;
1183
+ phoneNumber: string;
1184
+ isPrimary: boolean;
1185
+ description?: string | null | undefined;
1186
+ }, {
1187
+ id: string;
1188
+ phoneNumber: string;
1189
+ description?: string | null | undefined;
1190
+ isPrimary?: boolean | undefined;
1191
+ }>, "many">>>;
1192
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ id: string;
1195
+ firstName: string;
1196
+ lastName: string;
1197
+ phoneNumbers: {
1198
+ id: string;
1199
+ phoneNumber: string;
1200
+ isPrimary: boolean;
1201
+ description?: string | null | undefined;
1202
+ }[];
1203
+ deletedAt?: string | null | undefined;
1204
+ }, {
1205
+ id: string;
1206
+ firstName: string;
1207
+ lastName: string;
1208
+ phoneNumbers?: {
1209
+ id: string;
1210
+ phoneNumber: string;
1211
+ description?: string | null | undefined;
1212
+ isPrimary?: boolean | undefined;
1213
+ }[] | undefined;
1214
+ deletedAt?: string | Date | null | undefined;
1215
+ }>;
1216
+ createdAt: z.ZodString;
1217
+ }, "strip", z.ZodTypeAny, {
1218
+ type: "JOB";
1219
+ id: string;
1220
+ createdAt: string;
1221
+ postcode: string | null;
1222
+ createdBy: {
1223
+ id: string;
1224
+ firstName: string;
1225
+ lastName: string;
1226
+ phoneNumbers: {
1227
+ id: string;
1228
+ phoneNumber: string;
1229
+ isPrimary: boolean;
1230
+ description?: string | null | undefined;
1231
+ }[];
1232
+ deletedAt?: string | null | undefined;
1233
+ };
1234
+ tradeId: string;
1235
+ }, {
1236
+ type: "JOB";
1237
+ id: string;
1238
+ createdAt: string;
1239
+ postcode: string | null;
1240
+ createdBy: {
1241
+ id: string;
1242
+ firstName: string;
1243
+ lastName: string;
1244
+ phoneNumbers?: {
1245
+ id: string;
1246
+ phoneNumber: string;
1247
+ description?: string | null | undefined;
1248
+ isPrimary?: boolean | undefined;
1249
+ }[] | undefined;
1250
+ deletedAt?: string | Date | null | undefined;
1251
+ };
1252
+ tradeId: string;
1253
+ }>]>, "many">;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ items: ({
1256
+ type: "BOOKING";
1257
+ id: string;
1258
+ startDate: string | null;
1259
+ createdAt: string;
1260
+ worker: {
1261
+ id: string;
1262
+ firstName: string;
1263
+ lastName?: string | null | undefined;
1264
+ };
1265
+ } | {
1266
+ type: "JOB";
1267
+ id: string;
1268
+ createdAt: string;
1269
+ postcode: string | null;
1270
+ createdBy: {
1271
+ id: string;
1272
+ firstName: string;
1273
+ lastName: string;
1274
+ phoneNumbers: {
1275
+ id: string;
1276
+ phoneNumber: string;
1277
+ isPrimary: boolean;
1278
+ description?: string | null | undefined;
1279
+ }[];
1280
+ deletedAt?: string | null | undefined;
1281
+ };
1282
+ tradeId: string;
1283
+ })[];
1284
+ }, {
1285
+ items: ({
1286
+ type: "BOOKING";
1287
+ id: string;
1288
+ startDate: string | null;
1289
+ createdAt: string;
1290
+ worker: {
1291
+ id: string;
1292
+ firstName: string;
1293
+ lastName?: string | null | undefined;
1294
+ };
1295
+ } | {
1296
+ type: "JOB";
1297
+ id: string;
1298
+ createdAt: string;
1299
+ postcode: string | null;
1300
+ createdBy: {
1301
+ id: string;
1302
+ firstName: string;
1303
+ lastName: string;
1304
+ phoneNumbers?: {
1305
+ id: string;
1306
+ phoneNumber: string;
1307
+ description?: string | null | undefined;
1308
+ isPrimary?: boolean | undefined;
1309
+ }[] | undefined;
1310
+ deletedAt?: string | Date | null | undefined;
1311
+ };
1312
+ tradeId: string;
1313
+ })[];
1314
+ }>;
1315
+ export type LinkedBookingSummary = z.infer<typeof LinkedBookingSummarySchema>;
1316
+ export type LinkedJobSummary = z.infer<typeof LinkedJobSummarySchema>;
1317
+ export type LinkedEntitySummary = z.infer<typeof LinkedEntitySummarySchema>;
1318
+ export type LinkedEntitiesResponse = z.infer<typeof LinkedEntitiesResponseSchema>;
1319
+ //# sourceMappingURL=proofs.dtos.d.ts.map