@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,3009 @@
1
+ import { z } from 'zod';
2
+ export declare const ListProofsResponseSchema: z.ZodObject<{
3
+ items: z.ZodArray<z.ZodObject<{
4
+ id: z.ZodString;
5
+ category: z.ZodEnum<["POST", "BOOKING"]>;
6
+ forUserId: z.ZodString;
7
+ forUser: z.ZodObject<{
8
+ id: z.ZodString;
9
+ firstName: z.ZodString;
10
+ lastName: z.ZodString;
11
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
12
+ id: z.ZodString;
13
+ phoneNumber: z.ZodString;
14
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ id: string;
18
+ phoneNumber: string;
19
+ isPrimary: boolean;
20
+ description?: string | null | undefined;
21
+ }, {
22
+ id: string;
23
+ phoneNumber: string;
24
+ description?: string | null | undefined;
25
+ isPrimary?: boolean | undefined;
26
+ }>, "many">>>;
27
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ id: string;
30
+ firstName: string;
31
+ lastName: string;
32
+ phoneNumbers: {
33
+ id: string;
34
+ phoneNumber: string;
35
+ isPrimary: boolean;
36
+ description?: string | null | undefined;
37
+ }[];
38
+ deletedAt?: string | null | undefined;
39
+ }, {
40
+ id: string;
41
+ firstName: string;
42
+ lastName: string;
43
+ phoneNumbers?: {
44
+ id: string;
45
+ phoneNumber: string;
46
+ description?: string | null | undefined;
47
+ isPrimary?: boolean | undefined;
48
+ }[] | undefined;
49
+ deletedAt?: string | Date | null | undefined;
50
+ }>;
51
+ proofDate: z.ZodString;
52
+ description: z.ZodNullable<z.ZodString>;
53
+ createdById: z.ZodString;
54
+ createdBy: z.ZodObject<{
55
+ id: z.ZodString;
56
+ firstName: z.ZodString;
57
+ lastName: z.ZodString;
58
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
59
+ id: z.ZodString;
60
+ phoneNumber: z.ZodString;
61
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ id: string;
65
+ phoneNumber: string;
66
+ isPrimary: boolean;
67
+ description?: string | null | undefined;
68
+ }, {
69
+ id: string;
70
+ phoneNumber: string;
71
+ description?: string | null | undefined;
72
+ isPrimary?: boolean | undefined;
73
+ }>, "many">>>;
74
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ id: string;
77
+ firstName: string;
78
+ lastName: string;
79
+ phoneNumbers: {
80
+ id: string;
81
+ phoneNumber: string;
82
+ isPrimary: boolean;
83
+ description?: string | null | undefined;
84
+ }[];
85
+ deletedAt?: string | null | undefined;
86
+ }, {
87
+ id: string;
88
+ firstName: string;
89
+ lastName: string;
90
+ phoneNumbers?: {
91
+ id: string;
92
+ phoneNumber: string;
93
+ description?: string | null | undefined;
94
+ isPrimary?: boolean | undefined;
95
+ }[] | undefined;
96
+ deletedAt?: string | Date | null | undefined;
97
+ }>;
98
+ createdAt: z.ZodString;
99
+ updatedAt: z.ZodString;
100
+ sections: z.ZodArray<z.ZodObject<{
101
+ id: z.ZodString;
102
+ type: z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER", "CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>;
103
+ photos: z.ZodArray<z.ZodObject<{
104
+ id: z.ZodString;
105
+ sectionId: z.ZodString;
106
+ fileId: z.ZodString;
107
+ position: z.ZodNumber;
108
+ verified: z.ZodBoolean;
109
+ verifiedAt: z.ZodNullable<z.ZodString>;
110
+ verifiedById: z.ZodNullable<z.ZodString>;
111
+ comment: z.ZodNullable<z.ZodString>;
112
+ createdAt: z.ZodString;
113
+ updatedAt: z.ZodString;
114
+ fileUrl: z.ZodOptional<z.ZodString>;
115
+ fileName: z.ZodOptional<z.ZodString>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ id: string;
118
+ createdAt: string;
119
+ updatedAt: string;
120
+ fileId: string;
121
+ comment: string | null;
122
+ verified: boolean;
123
+ position: number;
124
+ sectionId: string;
125
+ verifiedAt: string | null;
126
+ verifiedById: string | null;
127
+ fileUrl?: string | undefined;
128
+ fileName?: string | undefined;
129
+ }, {
130
+ id: string;
131
+ createdAt: string;
132
+ updatedAt: string;
133
+ fileId: string;
134
+ comment: string | null;
135
+ verified: boolean;
136
+ position: number;
137
+ sectionId: string;
138
+ verifiedAt: string | null;
139
+ verifiedById: string | null;
140
+ fileUrl?: string | undefined;
141
+ fileName?: string | undefined;
142
+ }>, "many">;
143
+ photoCount: z.ZodNumber;
144
+ verifiedCount: z.ZodNumber;
145
+ createdAt: z.ZodString;
146
+ updatedAt: z.ZodString;
147
+ }, "strip", z.ZodTypeAny, {
148
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
149
+ id: string;
150
+ createdAt: string;
151
+ updatedAt: string;
152
+ photos: {
153
+ id: string;
154
+ createdAt: string;
155
+ updatedAt: string;
156
+ fileId: string;
157
+ comment: string | null;
158
+ verified: boolean;
159
+ position: number;
160
+ sectionId: string;
161
+ verifiedAt: string | null;
162
+ verifiedById: string | null;
163
+ fileUrl?: string | undefined;
164
+ fileName?: string | undefined;
165
+ }[];
166
+ photoCount: number;
167
+ verifiedCount: number;
168
+ }, {
169
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
170
+ id: string;
171
+ createdAt: string;
172
+ updatedAt: string;
173
+ photos: {
174
+ id: string;
175
+ createdAt: string;
176
+ updatedAt: string;
177
+ fileId: string;
178
+ comment: string | null;
179
+ verified: boolean;
180
+ position: number;
181
+ sectionId: string;
182
+ verifiedAt: string | null;
183
+ verifiedById: string | null;
184
+ fileUrl?: string | undefined;
185
+ fileName?: string | undefined;
186
+ }[];
187
+ photoCount: number;
188
+ verifiedCount: number;
189
+ }>, "many">;
190
+ entityLinks: z.ZodArray<z.ZodObject<{
191
+ id: z.ZodString;
192
+ proofId: z.ZodString;
193
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
194
+ entityId: z.ZodString;
195
+ }, "strip", z.ZodTypeAny, {
196
+ id: string;
197
+ entityType: "BOOKING" | "JOB";
198
+ entityId: string;
199
+ proofId: string;
200
+ }, {
201
+ id: string;
202
+ entityType: "BOOKING" | "JOB";
203
+ entityId: string;
204
+ proofId: string;
205
+ }>, "many">;
206
+ verifiedCount: z.ZodNumber;
207
+ totalPhotos: z.ZodNumber;
208
+ }, "strip", z.ZodTypeAny, {
209
+ id: string;
210
+ description: string | null;
211
+ createdAt: string;
212
+ updatedAt: string;
213
+ category: "POST" | "BOOKING";
214
+ forUserId: string;
215
+ proofDate: string;
216
+ sections: {
217
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
218
+ id: string;
219
+ createdAt: string;
220
+ updatedAt: string;
221
+ photos: {
222
+ id: string;
223
+ createdAt: string;
224
+ updatedAt: string;
225
+ fileId: string;
226
+ comment: string | null;
227
+ verified: boolean;
228
+ position: number;
229
+ sectionId: string;
230
+ verifiedAt: string | null;
231
+ verifiedById: string | null;
232
+ fileUrl?: string | undefined;
233
+ fileName?: string | undefined;
234
+ }[];
235
+ photoCount: number;
236
+ verifiedCount: number;
237
+ }[];
238
+ verifiedCount: number;
239
+ forUser: {
240
+ id: string;
241
+ firstName: string;
242
+ lastName: string;
243
+ phoneNumbers: {
244
+ id: string;
245
+ phoneNumber: string;
246
+ isPrimary: boolean;
247
+ description?: string | null | undefined;
248
+ }[];
249
+ deletedAt?: string | null | undefined;
250
+ };
251
+ createdById: string;
252
+ createdBy: {
253
+ id: string;
254
+ firstName: string;
255
+ lastName: string;
256
+ phoneNumbers: {
257
+ id: string;
258
+ phoneNumber: string;
259
+ isPrimary: boolean;
260
+ description?: string | null | undefined;
261
+ }[];
262
+ deletedAt?: string | null | undefined;
263
+ };
264
+ entityLinks: {
265
+ id: string;
266
+ entityType: "BOOKING" | "JOB";
267
+ entityId: string;
268
+ proofId: string;
269
+ }[];
270
+ totalPhotos: number;
271
+ }, {
272
+ id: string;
273
+ description: string | null;
274
+ createdAt: string;
275
+ updatedAt: string;
276
+ category: "POST" | "BOOKING";
277
+ forUserId: string;
278
+ proofDate: string;
279
+ sections: {
280
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
281
+ id: string;
282
+ createdAt: string;
283
+ updatedAt: string;
284
+ photos: {
285
+ id: string;
286
+ createdAt: string;
287
+ updatedAt: string;
288
+ fileId: string;
289
+ comment: string | null;
290
+ verified: boolean;
291
+ position: number;
292
+ sectionId: string;
293
+ verifiedAt: string | null;
294
+ verifiedById: string | null;
295
+ fileUrl?: string | undefined;
296
+ fileName?: string | undefined;
297
+ }[];
298
+ photoCount: number;
299
+ verifiedCount: number;
300
+ }[];
301
+ verifiedCount: number;
302
+ forUser: {
303
+ id: string;
304
+ firstName: string;
305
+ lastName: string;
306
+ phoneNumbers?: {
307
+ id: string;
308
+ phoneNumber: string;
309
+ description?: string | null | undefined;
310
+ isPrimary?: boolean | undefined;
311
+ }[] | undefined;
312
+ deletedAt?: string | Date | null | undefined;
313
+ };
314
+ createdById: string;
315
+ createdBy: {
316
+ id: string;
317
+ firstName: string;
318
+ lastName: string;
319
+ phoneNumbers?: {
320
+ id: string;
321
+ phoneNumber: string;
322
+ description?: string | null | undefined;
323
+ isPrimary?: boolean | undefined;
324
+ }[] | undefined;
325
+ deletedAt?: string | Date | null | undefined;
326
+ };
327
+ entityLinks: {
328
+ id: string;
329
+ entityType: "BOOKING" | "JOB";
330
+ entityId: string;
331
+ proofId: string;
332
+ }[];
333
+ totalPhotos: number;
334
+ }>, "many">;
335
+ totalCount: z.ZodNumber;
336
+ limit: z.ZodNumber;
337
+ skip: z.ZodNumber;
338
+ currentPage: z.ZodNumber;
339
+ totalPages: z.ZodNumber;
340
+ }, "strip", z.ZodTypeAny, {
341
+ limit: number;
342
+ items: {
343
+ id: string;
344
+ description: string | null;
345
+ createdAt: string;
346
+ updatedAt: string;
347
+ category: "POST" | "BOOKING";
348
+ forUserId: string;
349
+ proofDate: string;
350
+ sections: {
351
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
352
+ id: string;
353
+ createdAt: string;
354
+ updatedAt: string;
355
+ photos: {
356
+ id: string;
357
+ createdAt: string;
358
+ updatedAt: string;
359
+ fileId: string;
360
+ comment: string | null;
361
+ verified: boolean;
362
+ position: number;
363
+ sectionId: string;
364
+ verifiedAt: string | null;
365
+ verifiedById: string | null;
366
+ fileUrl?: string | undefined;
367
+ fileName?: string | undefined;
368
+ }[];
369
+ photoCount: number;
370
+ verifiedCount: number;
371
+ }[];
372
+ verifiedCount: number;
373
+ forUser: {
374
+ id: string;
375
+ firstName: string;
376
+ lastName: string;
377
+ phoneNumbers: {
378
+ id: string;
379
+ phoneNumber: string;
380
+ isPrimary: boolean;
381
+ description?: string | null | undefined;
382
+ }[];
383
+ deletedAt?: string | null | undefined;
384
+ };
385
+ createdById: string;
386
+ createdBy: {
387
+ id: string;
388
+ firstName: string;
389
+ lastName: string;
390
+ phoneNumbers: {
391
+ id: string;
392
+ phoneNumber: string;
393
+ isPrimary: boolean;
394
+ description?: string | null | undefined;
395
+ }[];
396
+ deletedAt?: string | null | undefined;
397
+ };
398
+ entityLinks: {
399
+ id: string;
400
+ entityType: "BOOKING" | "JOB";
401
+ entityId: string;
402
+ proofId: string;
403
+ }[];
404
+ totalPhotos: number;
405
+ }[];
406
+ totalCount: number;
407
+ skip: number;
408
+ currentPage: number;
409
+ totalPages: number;
410
+ }, {
411
+ limit: number;
412
+ items: {
413
+ id: string;
414
+ description: string | null;
415
+ createdAt: string;
416
+ updatedAt: string;
417
+ category: "POST" | "BOOKING";
418
+ forUserId: string;
419
+ proofDate: string;
420
+ sections: {
421
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
422
+ id: string;
423
+ createdAt: string;
424
+ updatedAt: string;
425
+ photos: {
426
+ id: string;
427
+ createdAt: string;
428
+ updatedAt: string;
429
+ fileId: string;
430
+ comment: string | null;
431
+ verified: boolean;
432
+ position: number;
433
+ sectionId: string;
434
+ verifiedAt: string | null;
435
+ verifiedById: string | null;
436
+ fileUrl?: string | undefined;
437
+ fileName?: string | undefined;
438
+ }[];
439
+ photoCount: number;
440
+ verifiedCount: number;
441
+ }[];
442
+ verifiedCount: number;
443
+ forUser: {
444
+ id: string;
445
+ firstName: string;
446
+ lastName: string;
447
+ phoneNumbers?: {
448
+ id: string;
449
+ phoneNumber: string;
450
+ description?: string | null | undefined;
451
+ isPrimary?: boolean | undefined;
452
+ }[] | undefined;
453
+ deletedAt?: string | Date | null | undefined;
454
+ };
455
+ createdById: string;
456
+ createdBy: {
457
+ id: string;
458
+ firstName: string;
459
+ lastName: string;
460
+ phoneNumbers?: {
461
+ id: string;
462
+ phoneNumber: string;
463
+ description?: string | null | undefined;
464
+ isPrimary?: boolean | undefined;
465
+ }[] | undefined;
466
+ deletedAt?: string | Date | null | undefined;
467
+ };
468
+ entityLinks: {
469
+ id: string;
470
+ entityType: "BOOKING" | "JOB";
471
+ entityId: string;
472
+ proofId: string;
473
+ }[];
474
+ totalPhotos: number;
475
+ }[];
476
+ totalCount: number;
477
+ skip: number;
478
+ currentPage: number;
479
+ totalPages: number;
480
+ }>;
481
+ export declare const proofsContract: {
482
+ list: {
483
+ metadata: {
484
+ tags: string[];
485
+ };
486
+ query: z.ZodObject<{
487
+ page: z.ZodDefault<z.ZodNumber>;
488
+ } & {
489
+ limit: z.ZodDefault<z.ZodNumber>;
490
+ category: z.ZodOptional<z.ZodEnum<["POST", "BOOKING"]>>;
491
+ type: z.ZodOptional<z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER", "CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>>;
492
+ forUserId: z.ZodOptional<z.ZodString>;
493
+ verified: z.ZodOptional<z.ZodEnum<["all", "partial", "none"]>>;
494
+ linkedBookingId: z.ZodOptional<z.ZodString>;
495
+ createdById: z.ZodOptional<z.ZodString>;
496
+ createdAt: z.ZodOptional<z.ZodObject<{
497
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
498
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ from?: string | null | undefined;
501
+ to?: string | null | undefined;
502
+ }, {
503
+ from?: string | null | undefined;
504
+ to?: string | null | undefined;
505
+ }>>;
506
+ sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
507
+ field: z.ZodEnum<["createdAt"]>;
508
+ order: z.ZodEnum<["ASC", "DESC"]>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ field: "createdAt";
511
+ order: "ASC" | "DESC";
512
+ }, {
513
+ field: "createdAt";
514
+ order: "ASC" | "DESC";
515
+ }>, "many">>>;
516
+ }, "strip", z.ZodTypeAny, {
517
+ limit: number;
518
+ page: number;
519
+ type?: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS" | undefined;
520
+ sort?: {
521
+ field: "createdAt";
522
+ order: "ASC" | "DESC";
523
+ }[] | null | undefined;
524
+ createdAt?: {
525
+ from?: string | null | undefined;
526
+ to?: string | null | undefined;
527
+ } | undefined;
528
+ category?: "POST" | "BOOKING" | undefined;
529
+ forUserId?: string | undefined;
530
+ verified?: "all" | "partial" | "none" | undefined;
531
+ createdById?: string | undefined;
532
+ linkedBookingId?: string | undefined;
533
+ }, {
534
+ limit?: number | undefined;
535
+ page?: number | undefined;
536
+ type?: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS" | undefined;
537
+ sort?: {
538
+ field: "createdAt";
539
+ order: "ASC" | "DESC";
540
+ }[] | null | undefined;
541
+ createdAt?: {
542
+ from?: string | null | undefined;
543
+ to?: string | null | undefined;
544
+ } | undefined;
545
+ category?: "POST" | "BOOKING" | undefined;
546
+ forUserId?: string | undefined;
547
+ verified?: "all" | "partial" | "none" | undefined;
548
+ createdById?: string | undefined;
549
+ linkedBookingId?: string | undefined;
550
+ }>;
551
+ summary: "List proofs";
552
+ method: "GET";
553
+ path: "/proofs";
554
+ responses: {
555
+ 400: z.ZodObject<{
556
+ statusCode: z.ZodNumber;
557
+ message: z.ZodString;
558
+ code: z.ZodString;
559
+ details: z.ZodOptional<z.ZodUnknown>;
560
+ timestamp: z.ZodString;
561
+ path: z.ZodString;
562
+ correlationId: z.ZodOptional<z.ZodString>;
563
+ }, "strip", z.ZodTypeAny, {
564
+ code: string;
565
+ path: string;
566
+ message: string;
567
+ statusCode: number;
568
+ timestamp: string;
569
+ details?: unknown;
570
+ correlationId?: string | undefined;
571
+ }, {
572
+ code: string;
573
+ path: string;
574
+ message: string;
575
+ statusCode: number;
576
+ timestamp: string;
577
+ details?: unknown;
578
+ correlationId?: string | undefined;
579
+ }>;
580
+ 401: z.ZodObject<{
581
+ statusCode: z.ZodNumber;
582
+ message: z.ZodString;
583
+ code: z.ZodString;
584
+ details: z.ZodOptional<z.ZodUnknown>;
585
+ timestamp: z.ZodString;
586
+ path: z.ZodString;
587
+ correlationId: z.ZodOptional<z.ZodString>;
588
+ }, "strip", z.ZodTypeAny, {
589
+ code: string;
590
+ path: string;
591
+ message: string;
592
+ statusCode: number;
593
+ timestamp: string;
594
+ details?: unknown;
595
+ correlationId?: string | undefined;
596
+ }, {
597
+ code: string;
598
+ path: string;
599
+ message: string;
600
+ statusCode: number;
601
+ timestamp: string;
602
+ details?: unknown;
603
+ correlationId?: string | undefined;
604
+ }>;
605
+ 500: z.ZodObject<{
606
+ statusCode: z.ZodNumber;
607
+ message: z.ZodString;
608
+ code: z.ZodString;
609
+ details: z.ZodOptional<z.ZodUnknown>;
610
+ timestamp: z.ZodString;
611
+ path: z.ZodString;
612
+ correlationId: z.ZodOptional<z.ZodString>;
613
+ }, "strip", z.ZodTypeAny, {
614
+ code: string;
615
+ path: string;
616
+ message: string;
617
+ statusCode: number;
618
+ timestamp: string;
619
+ details?: unknown;
620
+ correlationId?: string | undefined;
621
+ }, {
622
+ code: string;
623
+ path: string;
624
+ message: string;
625
+ statusCode: number;
626
+ timestamp: string;
627
+ details?: unknown;
628
+ correlationId?: string | undefined;
629
+ }>;
630
+ 200: z.ZodObject<{
631
+ items: z.ZodArray<z.ZodObject<{
632
+ id: z.ZodString;
633
+ category: z.ZodEnum<["POST", "BOOKING"]>;
634
+ forUserId: z.ZodString;
635
+ forUser: z.ZodObject<{
636
+ id: z.ZodString;
637
+ firstName: z.ZodString;
638
+ lastName: z.ZodString;
639
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
640
+ id: z.ZodString;
641
+ phoneNumber: z.ZodString;
642
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
643
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
644
+ }, "strip", z.ZodTypeAny, {
645
+ id: string;
646
+ phoneNumber: string;
647
+ isPrimary: boolean;
648
+ description?: string | null | undefined;
649
+ }, {
650
+ id: string;
651
+ phoneNumber: string;
652
+ description?: string | null | undefined;
653
+ isPrimary?: boolean | undefined;
654
+ }>, "many">>>;
655
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
656
+ }, "strip", z.ZodTypeAny, {
657
+ id: string;
658
+ firstName: string;
659
+ lastName: string;
660
+ phoneNumbers: {
661
+ id: string;
662
+ phoneNumber: string;
663
+ isPrimary: boolean;
664
+ description?: string | null | undefined;
665
+ }[];
666
+ deletedAt?: string | null | undefined;
667
+ }, {
668
+ id: string;
669
+ firstName: string;
670
+ lastName: string;
671
+ phoneNumbers?: {
672
+ id: string;
673
+ phoneNumber: string;
674
+ description?: string | null | undefined;
675
+ isPrimary?: boolean | undefined;
676
+ }[] | undefined;
677
+ deletedAt?: string | Date | null | undefined;
678
+ }>;
679
+ proofDate: z.ZodString;
680
+ description: z.ZodNullable<z.ZodString>;
681
+ createdById: z.ZodString;
682
+ createdBy: z.ZodObject<{
683
+ id: z.ZodString;
684
+ firstName: z.ZodString;
685
+ lastName: z.ZodString;
686
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
687
+ id: z.ZodString;
688
+ phoneNumber: z.ZodString;
689
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
690
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
691
+ }, "strip", z.ZodTypeAny, {
692
+ id: string;
693
+ phoneNumber: string;
694
+ isPrimary: boolean;
695
+ description?: string | null | undefined;
696
+ }, {
697
+ id: string;
698
+ phoneNumber: string;
699
+ description?: string | null | undefined;
700
+ isPrimary?: boolean | undefined;
701
+ }>, "many">>>;
702
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
703
+ }, "strip", z.ZodTypeAny, {
704
+ id: string;
705
+ firstName: string;
706
+ lastName: string;
707
+ phoneNumbers: {
708
+ id: string;
709
+ phoneNumber: string;
710
+ isPrimary: boolean;
711
+ description?: string | null | undefined;
712
+ }[];
713
+ deletedAt?: string | null | undefined;
714
+ }, {
715
+ id: string;
716
+ firstName: string;
717
+ lastName: string;
718
+ phoneNumbers?: {
719
+ id: string;
720
+ phoneNumber: string;
721
+ description?: string | null | undefined;
722
+ isPrimary?: boolean | undefined;
723
+ }[] | undefined;
724
+ deletedAt?: string | Date | null | undefined;
725
+ }>;
726
+ createdAt: z.ZodString;
727
+ updatedAt: z.ZodString;
728
+ sections: z.ZodArray<z.ZodObject<{
729
+ id: z.ZodString;
730
+ type: z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER", "CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>;
731
+ photos: z.ZodArray<z.ZodObject<{
732
+ id: z.ZodString;
733
+ sectionId: z.ZodString;
734
+ fileId: z.ZodString;
735
+ position: z.ZodNumber;
736
+ verified: z.ZodBoolean;
737
+ verifiedAt: z.ZodNullable<z.ZodString>;
738
+ verifiedById: z.ZodNullable<z.ZodString>;
739
+ comment: z.ZodNullable<z.ZodString>;
740
+ createdAt: z.ZodString;
741
+ updatedAt: z.ZodString;
742
+ fileUrl: z.ZodOptional<z.ZodString>;
743
+ fileName: z.ZodOptional<z.ZodString>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ id: string;
746
+ createdAt: string;
747
+ updatedAt: string;
748
+ fileId: string;
749
+ comment: string | null;
750
+ verified: boolean;
751
+ position: number;
752
+ sectionId: string;
753
+ verifiedAt: string | null;
754
+ verifiedById: string | null;
755
+ fileUrl?: string | undefined;
756
+ fileName?: string | undefined;
757
+ }, {
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
+ }>, "many">;
771
+ photoCount: z.ZodNumber;
772
+ verifiedCount: z.ZodNumber;
773
+ createdAt: z.ZodString;
774
+ updatedAt: z.ZodString;
775
+ }, "strip", z.ZodTypeAny, {
776
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
777
+ id: string;
778
+ createdAt: string;
779
+ updatedAt: string;
780
+ photos: {
781
+ id: string;
782
+ createdAt: string;
783
+ updatedAt: string;
784
+ fileId: string;
785
+ comment: string | null;
786
+ verified: boolean;
787
+ position: number;
788
+ sectionId: string;
789
+ verifiedAt: string | null;
790
+ verifiedById: string | null;
791
+ fileUrl?: string | undefined;
792
+ fileName?: string | undefined;
793
+ }[];
794
+ photoCount: number;
795
+ verifiedCount: number;
796
+ }, {
797
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
798
+ id: string;
799
+ createdAt: string;
800
+ updatedAt: string;
801
+ photos: {
802
+ id: string;
803
+ createdAt: string;
804
+ updatedAt: string;
805
+ fileId: string;
806
+ comment: string | null;
807
+ verified: boolean;
808
+ position: number;
809
+ sectionId: string;
810
+ verifiedAt: string | null;
811
+ verifiedById: string | null;
812
+ fileUrl?: string | undefined;
813
+ fileName?: string | undefined;
814
+ }[];
815
+ photoCount: number;
816
+ verifiedCount: number;
817
+ }>, "many">;
818
+ entityLinks: z.ZodArray<z.ZodObject<{
819
+ id: z.ZodString;
820
+ proofId: z.ZodString;
821
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
822
+ entityId: z.ZodString;
823
+ }, "strip", z.ZodTypeAny, {
824
+ id: string;
825
+ entityType: "BOOKING" | "JOB";
826
+ entityId: string;
827
+ proofId: string;
828
+ }, {
829
+ id: string;
830
+ entityType: "BOOKING" | "JOB";
831
+ entityId: string;
832
+ proofId: string;
833
+ }>, "many">;
834
+ verifiedCount: z.ZodNumber;
835
+ totalPhotos: z.ZodNumber;
836
+ }, "strip", z.ZodTypeAny, {
837
+ id: string;
838
+ description: string | null;
839
+ createdAt: string;
840
+ updatedAt: string;
841
+ category: "POST" | "BOOKING";
842
+ forUserId: string;
843
+ proofDate: string;
844
+ sections: {
845
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
846
+ id: string;
847
+ createdAt: string;
848
+ updatedAt: string;
849
+ photos: {
850
+ id: string;
851
+ createdAt: string;
852
+ updatedAt: string;
853
+ fileId: string;
854
+ comment: string | null;
855
+ verified: boolean;
856
+ position: number;
857
+ sectionId: string;
858
+ verifiedAt: string | null;
859
+ verifiedById: string | null;
860
+ fileUrl?: string | undefined;
861
+ fileName?: string | undefined;
862
+ }[];
863
+ photoCount: number;
864
+ verifiedCount: number;
865
+ }[];
866
+ verifiedCount: number;
867
+ forUser: {
868
+ id: string;
869
+ firstName: string;
870
+ lastName: string;
871
+ phoneNumbers: {
872
+ id: string;
873
+ phoneNumber: string;
874
+ isPrimary: boolean;
875
+ description?: string | null | undefined;
876
+ }[];
877
+ deletedAt?: string | null | undefined;
878
+ };
879
+ createdById: string;
880
+ createdBy: {
881
+ id: string;
882
+ firstName: string;
883
+ lastName: string;
884
+ phoneNumbers: {
885
+ id: string;
886
+ phoneNumber: string;
887
+ isPrimary: boolean;
888
+ description?: string | null | undefined;
889
+ }[];
890
+ deletedAt?: string | null | undefined;
891
+ };
892
+ entityLinks: {
893
+ id: string;
894
+ entityType: "BOOKING" | "JOB";
895
+ entityId: string;
896
+ proofId: string;
897
+ }[];
898
+ totalPhotos: number;
899
+ }, {
900
+ id: string;
901
+ description: string | null;
902
+ createdAt: string;
903
+ updatedAt: string;
904
+ category: "POST" | "BOOKING";
905
+ forUserId: string;
906
+ proofDate: string;
907
+ sections: {
908
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
909
+ id: string;
910
+ createdAt: string;
911
+ updatedAt: string;
912
+ photos: {
913
+ id: string;
914
+ createdAt: string;
915
+ updatedAt: string;
916
+ fileId: string;
917
+ comment: string | null;
918
+ verified: boolean;
919
+ position: number;
920
+ sectionId: string;
921
+ verifiedAt: string | null;
922
+ verifiedById: string | null;
923
+ fileUrl?: string | undefined;
924
+ fileName?: string | undefined;
925
+ }[];
926
+ photoCount: number;
927
+ verifiedCount: number;
928
+ }[];
929
+ verifiedCount: number;
930
+ forUser: {
931
+ id: string;
932
+ firstName: string;
933
+ lastName: string;
934
+ phoneNumbers?: {
935
+ id: string;
936
+ phoneNumber: string;
937
+ description?: string | null | undefined;
938
+ isPrimary?: boolean | undefined;
939
+ }[] | undefined;
940
+ deletedAt?: string | Date | null | undefined;
941
+ };
942
+ createdById: string;
943
+ createdBy: {
944
+ id: string;
945
+ firstName: string;
946
+ lastName: string;
947
+ phoneNumbers?: {
948
+ id: string;
949
+ phoneNumber: string;
950
+ description?: string | null | undefined;
951
+ isPrimary?: boolean | undefined;
952
+ }[] | undefined;
953
+ deletedAt?: string | Date | null | undefined;
954
+ };
955
+ entityLinks: {
956
+ id: string;
957
+ entityType: "BOOKING" | "JOB";
958
+ entityId: string;
959
+ proofId: string;
960
+ }[];
961
+ totalPhotos: number;
962
+ }>, "many">;
963
+ totalCount: z.ZodNumber;
964
+ limit: z.ZodNumber;
965
+ skip: z.ZodNumber;
966
+ currentPage: z.ZodNumber;
967
+ totalPages: z.ZodNumber;
968
+ }, "strip", z.ZodTypeAny, {
969
+ limit: number;
970
+ items: {
971
+ id: string;
972
+ description: string | null;
973
+ createdAt: string;
974
+ updatedAt: string;
975
+ category: "POST" | "BOOKING";
976
+ forUserId: string;
977
+ proofDate: string;
978
+ sections: {
979
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
980
+ id: string;
981
+ createdAt: string;
982
+ updatedAt: string;
983
+ photos: {
984
+ id: string;
985
+ createdAt: string;
986
+ updatedAt: string;
987
+ fileId: string;
988
+ comment: string | null;
989
+ verified: boolean;
990
+ position: number;
991
+ sectionId: string;
992
+ verifiedAt: string | null;
993
+ verifiedById: string | null;
994
+ fileUrl?: string | undefined;
995
+ fileName?: string | undefined;
996
+ }[];
997
+ photoCount: number;
998
+ verifiedCount: number;
999
+ }[];
1000
+ verifiedCount: number;
1001
+ forUser: {
1002
+ id: string;
1003
+ firstName: string;
1004
+ lastName: string;
1005
+ phoneNumbers: {
1006
+ id: string;
1007
+ phoneNumber: string;
1008
+ isPrimary: boolean;
1009
+ description?: string | null | undefined;
1010
+ }[];
1011
+ deletedAt?: string | null | undefined;
1012
+ };
1013
+ createdById: string;
1014
+ createdBy: {
1015
+ id: string;
1016
+ firstName: string;
1017
+ lastName: string;
1018
+ phoneNumbers: {
1019
+ id: string;
1020
+ phoneNumber: string;
1021
+ isPrimary: boolean;
1022
+ description?: string | null | undefined;
1023
+ }[];
1024
+ deletedAt?: string | null | undefined;
1025
+ };
1026
+ entityLinks: {
1027
+ id: string;
1028
+ entityType: "BOOKING" | "JOB";
1029
+ entityId: string;
1030
+ proofId: string;
1031
+ }[];
1032
+ totalPhotos: number;
1033
+ }[];
1034
+ totalCount: number;
1035
+ skip: number;
1036
+ currentPage: number;
1037
+ totalPages: number;
1038
+ }, {
1039
+ limit: number;
1040
+ items: {
1041
+ id: string;
1042
+ description: string | null;
1043
+ createdAt: string;
1044
+ updatedAt: string;
1045
+ category: "POST" | "BOOKING";
1046
+ forUserId: string;
1047
+ proofDate: string;
1048
+ sections: {
1049
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
1050
+ id: string;
1051
+ createdAt: string;
1052
+ updatedAt: string;
1053
+ photos: {
1054
+ id: string;
1055
+ createdAt: string;
1056
+ updatedAt: string;
1057
+ fileId: string;
1058
+ comment: string | null;
1059
+ verified: boolean;
1060
+ position: number;
1061
+ sectionId: string;
1062
+ verifiedAt: string | null;
1063
+ verifiedById: string | null;
1064
+ fileUrl?: string | undefined;
1065
+ fileName?: string | undefined;
1066
+ }[];
1067
+ photoCount: number;
1068
+ verifiedCount: number;
1069
+ }[];
1070
+ verifiedCount: number;
1071
+ forUser: {
1072
+ id: string;
1073
+ firstName: string;
1074
+ lastName: string;
1075
+ phoneNumbers?: {
1076
+ id: string;
1077
+ phoneNumber: string;
1078
+ description?: string | null | undefined;
1079
+ isPrimary?: boolean | undefined;
1080
+ }[] | undefined;
1081
+ deletedAt?: string | Date | null | undefined;
1082
+ };
1083
+ createdById: string;
1084
+ createdBy: {
1085
+ id: string;
1086
+ firstName: string;
1087
+ lastName: string;
1088
+ phoneNumbers?: {
1089
+ id: string;
1090
+ phoneNumber: string;
1091
+ description?: string | null | undefined;
1092
+ isPrimary?: boolean | undefined;
1093
+ }[] | undefined;
1094
+ deletedAt?: string | Date | null | undefined;
1095
+ };
1096
+ entityLinks: {
1097
+ id: string;
1098
+ entityType: "BOOKING" | "JOB";
1099
+ entityId: string;
1100
+ proofId: string;
1101
+ }[];
1102
+ totalPhotos: number;
1103
+ }[];
1104
+ totalCount: number;
1105
+ skip: number;
1106
+ currentPage: number;
1107
+ totalPages: number;
1108
+ }>;
1109
+ 403: z.ZodObject<{
1110
+ statusCode: z.ZodNumber;
1111
+ message: z.ZodString;
1112
+ code: z.ZodString;
1113
+ details: z.ZodOptional<z.ZodUnknown>;
1114
+ timestamp: z.ZodString;
1115
+ path: z.ZodString;
1116
+ correlationId: z.ZodOptional<z.ZodString>;
1117
+ }, "strip", z.ZodTypeAny, {
1118
+ code: string;
1119
+ path: string;
1120
+ message: string;
1121
+ statusCode: number;
1122
+ timestamp: string;
1123
+ details?: unknown;
1124
+ correlationId?: string | undefined;
1125
+ }, {
1126
+ code: string;
1127
+ path: string;
1128
+ message: string;
1129
+ statusCode: number;
1130
+ timestamp: string;
1131
+ details?: unknown;
1132
+ correlationId?: string | undefined;
1133
+ }>;
1134
+ };
1135
+ };
1136
+ getById: {
1137
+ metadata: {
1138
+ tags: string[];
1139
+ };
1140
+ pathParams: z.ZodObject<{
1141
+ id: z.ZodString;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ id: string;
1144
+ }, {
1145
+ id: string;
1146
+ }>;
1147
+ summary: "Get a proof by ID";
1148
+ method: "GET";
1149
+ path: "/proofs/:id";
1150
+ responses: {
1151
+ 400: z.ZodObject<{
1152
+ statusCode: z.ZodNumber;
1153
+ message: z.ZodString;
1154
+ code: z.ZodString;
1155
+ details: z.ZodOptional<z.ZodUnknown>;
1156
+ timestamp: z.ZodString;
1157
+ path: z.ZodString;
1158
+ correlationId: z.ZodOptional<z.ZodString>;
1159
+ }, "strip", z.ZodTypeAny, {
1160
+ code: string;
1161
+ path: string;
1162
+ message: string;
1163
+ statusCode: number;
1164
+ timestamp: string;
1165
+ details?: unknown;
1166
+ correlationId?: string | undefined;
1167
+ }, {
1168
+ code: string;
1169
+ path: string;
1170
+ message: string;
1171
+ statusCode: number;
1172
+ timestamp: string;
1173
+ details?: unknown;
1174
+ correlationId?: string | undefined;
1175
+ }>;
1176
+ 401: z.ZodObject<{
1177
+ statusCode: z.ZodNumber;
1178
+ message: z.ZodString;
1179
+ code: z.ZodString;
1180
+ details: z.ZodOptional<z.ZodUnknown>;
1181
+ timestamp: z.ZodString;
1182
+ path: z.ZodString;
1183
+ correlationId: z.ZodOptional<z.ZodString>;
1184
+ }, "strip", z.ZodTypeAny, {
1185
+ code: string;
1186
+ path: string;
1187
+ message: string;
1188
+ statusCode: number;
1189
+ timestamp: string;
1190
+ details?: unknown;
1191
+ correlationId?: string | undefined;
1192
+ }, {
1193
+ code: string;
1194
+ path: string;
1195
+ message: string;
1196
+ statusCode: number;
1197
+ timestamp: string;
1198
+ details?: unknown;
1199
+ correlationId?: string | undefined;
1200
+ }>;
1201
+ 500: z.ZodObject<{
1202
+ statusCode: z.ZodNumber;
1203
+ message: z.ZodString;
1204
+ code: z.ZodString;
1205
+ details: z.ZodOptional<z.ZodUnknown>;
1206
+ timestamp: z.ZodString;
1207
+ path: z.ZodString;
1208
+ correlationId: z.ZodOptional<z.ZodString>;
1209
+ }, "strip", z.ZodTypeAny, {
1210
+ code: string;
1211
+ path: string;
1212
+ message: string;
1213
+ statusCode: number;
1214
+ timestamp: string;
1215
+ details?: unknown;
1216
+ correlationId?: string | undefined;
1217
+ }, {
1218
+ code: string;
1219
+ path: string;
1220
+ message: string;
1221
+ statusCode: number;
1222
+ timestamp: string;
1223
+ details?: unknown;
1224
+ correlationId?: string | undefined;
1225
+ }>;
1226
+ 200: z.ZodObject<{
1227
+ id: z.ZodString;
1228
+ category: z.ZodEnum<["POST", "BOOKING"]>;
1229
+ forUserId: z.ZodString;
1230
+ forUser: z.ZodObject<{
1231
+ id: z.ZodString;
1232
+ firstName: z.ZodString;
1233
+ lastName: z.ZodString;
1234
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1235
+ id: z.ZodString;
1236
+ phoneNumber: z.ZodString;
1237
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1238
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
1239
+ }, "strip", z.ZodTypeAny, {
1240
+ id: string;
1241
+ phoneNumber: string;
1242
+ isPrimary: boolean;
1243
+ description?: string | null | undefined;
1244
+ }, {
1245
+ id: string;
1246
+ phoneNumber: string;
1247
+ description?: string | null | undefined;
1248
+ isPrimary?: boolean | undefined;
1249
+ }>, "many">>>;
1250
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ id: string;
1253
+ firstName: string;
1254
+ lastName: string;
1255
+ phoneNumbers: {
1256
+ id: string;
1257
+ phoneNumber: string;
1258
+ isPrimary: boolean;
1259
+ description?: string | null | undefined;
1260
+ }[];
1261
+ deletedAt?: string | null | undefined;
1262
+ }, {
1263
+ id: string;
1264
+ firstName: string;
1265
+ lastName: string;
1266
+ phoneNumbers?: {
1267
+ id: string;
1268
+ phoneNumber: string;
1269
+ description?: string | null | undefined;
1270
+ isPrimary?: boolean | undefined;
1271
+ }[] | undefined;
1272
+ deletedAt?: string | Date | null | undefined;
1273
+ }>;
1274
+ proofDate: z.ZodString;
1275
+ description: z.ZodNullable<z.ZodString>;
1276
+ createdById: z.ZodString;
1277
+ createdBy: z.ZodObject<{
1278
+ id: z.ZodString;
1279
+ firstName: z.ZodString;
1280
+ lastName: z.ZodString;
1281
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1282
+ id: z.ZodString;
1283
+ phoneNumber: z.ZodString;
1284
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1285
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ id: string;
1288
+ phoneNumber: string;
1289
+ isPrimary: boolean;
1290
+ description?: string | null | undefined;
1291
+ }, {
1292
+ id: string;
1293
+ phoneNumber: string;
1294
+ description?: string | null | undefined;
1295
+ isPrimary?: boolean | undefined;
1296
+ }>, "many">>>;
1297
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ id: string;
1300
+ firstName: string;
1301
+ lastName: string;
1302
+ phoneNumbers: {
1303
+ id: string;
1304
+ phoneNumber: string;
1305
+ isPrimary: boolean;
1306
+ description?: string | null | undefined;
1307
+ }[];
1308
+ deletedAt?: string | null | undefined;
1309
+ }, {
1310
+ id: string;
1311
+ firstName: string;
1312
+ lastName: string;
1313
+ phoneNumbers?: {
1314
+ id: string;
1315
+ phoneNumber: string;
1316
+ description?: string | null | undefined;
1317
+ isPrimary?: boolean | undefined;
1318
+ }[] | undefined;
1319
+ deletedAt?: string | Date | null | undefined;
1320
+ }>;
1321
+ createdAt: z.ZodString;
1322
+ updatedAt: z.ZodString;
1323
+ sections: z.ZodArray<z.ZodObject<{
1324
+ id: z.ZodString;
1325
+ type: z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER", "CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>;
1326
+ photos: z.ZodArray<z.ZodObject<{
1327
+ id: z.ZodString;
1328
+ sectionId: z.ZodString;
1329
+ fileId: z.ZodString;
1330
+ position: z.ZodNumber;
1331
+ verified: z.ZodBoolean;
1332
+ verifiedAt: z.ZodNullable<z.ZodString>;
1333
+ verifiedById: z.ZodNullable<z.ZodString>;
1334
+ comment: z.ZodNullable<z.ZodString>;
1335
+ createdAt: z.ZodString;
1336
+ updatedAt: z.ZodString;
1337
+ fileUrl: z.ZodOptional<z.ZodString>;
1338
+ fileName: z.ZodOptional<z.ZodString>;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ id: string;
1341
+ createdAt: string;
1342
+ updatedAt: string;
1343
+ fileId: string;
1344
+ comment: string | null;
1345
+ verified: boolean;
1346
+ position: number;
1347
+ sectionId: string;
1348
+ verifiedAt: string | null;
1349
+ verifiedById: string | null;
1350
+ fileUrl?: string | undefined;
1351
+ fileName?: string | undefined;
1352
+ }, {
1353
+ id: string;
1354
+ createdAt: string;
1355
+ updatedAt: string;
1356
+ fileId: string;
1357
+ comment: string | null;
1358
+ verified: boolean;
1359
+ position: number;
1360
+ sectionId: string;
1361
+ verifiedAt: string | null;
1362
+ verifiedById: string | null;
1363
+ fileUrl?: string | undefined;
1364
+ fileName?: string | undefined;
1365
+ }>, "many">;
1366
+ photoCount: z.ZodNumber;
1367
+ verifiedCount: z.ZodNumber;
1368
+ createdAt: z.ZodString;
1369
+ updatedAt: z.ZodString;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
1372
+ id: string;
1373
+ createdAt: string;
1374
+ updatedAt: string;
1375
+ photos: {
1376
+ id: string;
1377
+ createdAt: string;
1378
+ updatedAt: string;
1379
+ fileId: string;
1380
+ comment: string | null;
1381
+ verified: boolean;
1382
+ position: number;
1383
+ sectionId: string;
1384
+ verifiedAt: string | null;
1385
+ verifiedById: string | null;
1386
+ fileUrl?: string | undefined;
1387
+ fileName?: string | undefined;
1388
+ }[];
1389
+ photoCount: number;
1390
+ verifiedCount: number;
1391
+ }, {
1392
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
1393
+ id: string;
1394
+ createdAt: string;
1395
+ updatedAt: string;
1396
+ photos: {
1397
+ id: string;
1398
+ createdAt: string;
1399
+ updatedAt: string;
1400
+ fileId: string;
1401
+ comment: string | null;
1402
+ verified: boolean;
1403
+ position: number;
1404
+ sectionId: string;
1405
+ verifiedAt: string | null;
1406
+ verifiedById: string | null;
1407
+ fileUrl?: string | undefined;
1408
+ fileName?: string | undefined;
1409
+ }[];
1410
+ photoCount: number;
1411
+ verifiedCount: number;
1412
+ }>, "many">;
1413
+ entityLinks: z.ZodArray<z.ZodObject<{
1414
+ id: z.ZodString;
1415
+ proofId: z.ZodString;
1416
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
1417
+ entityId: z.ZodString;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ id: string;
1420
+ entityType: "BOOKING" | "JOB";
1421
+ entityId: string;
1422
+ proofId: string;
1423
+ }, {
1424
+ id: string;
1425
+ entityType: "BOOKING" | "JOB";
1426
+ entityId: string;
1427
+ proofId: string;
1428
+ }>, "many">;
1429
+ verifiedCount: z.ZodNumber;
1430
+ totalPhotos: z.ZodNumber;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ id: string;
1433
+ description: string | null;
1434
+ createdAt: string;
1435
+ updatedAt: string;
1436
+ category: "POST" | "BOOKING";
1437
+ forUserId: string;
1438
+ proofDate: string;
1439
+ sections: {
1440
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
1441
+ id: string;
1442
+ createdAt: string;
1443
+ updatedAt: string;
1444
+ photos: {
1445
+ id: string;
1446
+ createdAt: string;
1447
+ updatedAt: string;
1448
+ fileId: string;
1449
+ comment: string | null;
1450
+ verified: boolean;
1451
+ position: number;
1452
+ sectionId: string;
1453
+ verifiedAt: string | null;
1454
+ verifiedById: string | null;
1455
+ fileUrl?: string | undefined;
1456
+ fileName?: string | undefined;
1457
+ }[];
1458
+ photoCount: number;
1459
+ verifiedCount: number;
1460
+ }[];
1461
+ verifiedCount: number;
1462
+ forUser: {
1463
+ id: string;
1464
+ firstName: string;
1465
+ lastName: string;
1466
+ phoneNumbers: {
1467
+ id: string;
1468
+ phoneNumber: string;
1469
+ isPrimary: boolean;
1470
+ description?: string | null | undefined;
1471
+ }[];
1472
+ deletedAt?: string | null | undefined;
1473
+ };
1474
+ createdById: string;
1475
+ createdBy: {
1476
+ id: string;
1477
+ firstName: string;
1478
+ lastName: string;
1479
+ phoneNumbers: {
1480
+ id: string;
1481
+ phoneNumber: string;
1482
+ isPrimary: boolean;
1483
+ description?: string | null | undefined;
1484
+ }[];
1485
+ deletedAt?: string | null | undefined;
1486
+ };
1487
+ entityLinks: {
1488
+ id: string;
1489
+ entityType: "BOOKING" | "JOB";
1490
+ entityId: string;
1491
+ proofId: string;
1492
+ }[];
1493
+ totalPhotos: number;
1494
+ }, {
1495
+ id: string;
1496
+ description: string | null;
1497
+ createdAt: string;
1498
+ updatedAt: string;
1499
+ category: "POST" | "BOOKING";
1500
+ forUserId: string;
1501
+ proofDate: string;
1502
+ sections: {
1503
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
1504
+ id: string;
1505
+ createdAt: string;
1506
+ updatedAt: string;
1507
+ photos: {
1508
+ id: string;
1509
+ createdAt: string;
1510
+ updatedAt: string;
1511
+ fileId: string;
1512
+ comment: string | null;
1513
+ verified: boolean;
1514
+ position: number;
1515
+ sectionId: string;
1516
+ verifiedAt: string | null;
1517
+ verifiedById: string | null;
1518
+ fileUrl?: string | undefined;
1519
+ fileName?: string | undefined;
1520
+ }[];
1521
+ photoCount: number;
1522
+ verifiedCount: number;
1523
+ }[];
1524
+ verifiedCount: number;
1525
+ forUser: {
1526
+ id: string;
1527
+ firstName: string;
1528
+ lastName: 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
+ };
1537
+ createdById: string;
1538
+ createdBy: {
1539
+ id: string;
1540
+ firstName: string;
1541
+ lastName: string;
1542
+ phoneNumbers?: {
1543
+ id: string;
1544
+ phoneNumber: string;
1545
+ description?: string | null | undefined;
1546
+ isPrimary?: boolean | undefined;
1547
+ }[] | undefined;
1548
+ deletedAt?: string | Date | null | undefined;
1549
+ };
1550
+ entityLinks: {
1551
+ id: string;
1552
+ entityType: "BOOKING" | "JOB";
1553
+ entityId: string;
1554
+ proofId: string;
1555
+ }[];
1556
+ totalPhotos: number;
1557
+ }>;
1558
+ 404: z.ZodObject<{
1559
+ statusCode: z.ZodNumber;
1560
+ message: z.ZodString;
1561
+ code: z.ZodString;
1562
+ details: z.ZodOptional<z.ZodUnknown>;
1563
+ timestamp: z.ZodString;
1564
+ path: z.ZodString;
1565
+ correlationId: z.ZodOptional<z.ZodString>;
1566
+ }, "strip", z.ZodTypeAny, {
1567
+ code: string;
1568
+ path: string;
1569
+ message: string;
1570
+ statusCode: number;
1571
+ timestamp: string;
1572
+ details?: unknown;
1573
+ correlationId?: string | undefined;
1574
+ }, {
1575
+ code: string;
1576
+ path: string;
1577
+ message: string;
1578
+ statusCode: number;
1579
+ timestamp: string;
1580
+ details?: unknown;
1581
+ correlationId?: string | undefined;
1582
+ }>;
1583
+ 403: z.ZodObject<{
1584
+ statusCode: z.ZodNumber;
1585
+ message: z.ZodString;
1586
+ code: z.ZodString;
1587
+ details: z.ZodOptional<z.ZodUnknown>;
1588
+ timestamp: z.ZodString;
1589
+ path: z.ZodString;
1590
+ correlationId: z.ZodOptional<z.ZodString>;
1591
+ }, "strip", z.ZodTypeAny, {
1592
+ code: string;
1593
+ path: string;
1594
+ message: string;
1595
+ statusCode: number;
1596
+ timestamp: string;
1597
+ details?: unknown;
1598
+ correlationId?: string | undefined;
1599
+ }, {
1600
+ code: string;
1601
+ path: string;
1602
+ message: string;
1603
+ statusCode: number;
1604
+ timestamp: string;
1605
+ details?: unknown;
1606
+ correlationId?: string | undefined;
1607
+ }>;
1608
+ };
1609
+ };
1610
+ listLinkedEntities: {
1611
+ metadata: {
1612
+ tags: string[];
1613
+ };
1614
+ pathParams: z.ZodObject<{
1615
+ id: z.ZodString;
1616
+ }, "strip", z.ZodTypeAny, {
1617
+ id: string;
1618
+ }, {
1619
+ id: string;
1620
+ }>;
1621
+ summary: "Get enriched linked entities for a proof";
1622
+ method: "GET";
1623
+ path: "/proofs/:id/linked-entities";
1624
+ responses: {
1625
+ 400: z.ZodObject<{
1626
+ statusCode: z.ZodNumber;
1627
+ message: z.ZodString;
1628
+ code: z.ZodString;
1629
+ details: z.ZodOptional<z.ZodUnknown>;
1630
+ timestamp: z.ZodString;
1631
+ path: z.ZodString;
1632
+ correlationId: z.ZodOptional<z.ZodString>;
1633
+ }, "strip", z.ZodTypeAny, {
1634
+ code: string;
1635
+ path: string;
1636
+ message: string;
1637
+ statusCode: number;
1638
+ timestamp: string;
1639
+ details?: unknown;
1640
+ correlationId?: string | undefined;
1641
+ }, {
1642
+ code: string;
1643
+ path: string;
1644
+ message: string;
1645
+ statusCode: number;
1646
+ timestamp: string;
1647
+ details?: unknown;
1648
+ correlationId?: string | undefined;
1649
+ }>;
1650
+ 401: z.ZodObject<{
1651
+ statusCode: z.ZodNumber;
1652
+ message: z.ZodString;
1653
+ code: z.ZodString;
1654
+ details: z.ZodOptional<z.ZodUnknown>;
1655
+ timestamp: z.ZodString;
1656
+ path: z.ZodString;
1657
+ correlationId: z.ZodOptional<z.ZodString>;
1658
+ }, "strip", z.ZodTypeAny, {
1659
+ code: string;
1660
+ path: string;
1661
+ message: string;
1662
+ statusCode: number;
1663
+ timestamp: string;
1664
+ details?: unknown;
1665
+ correlationId?: string | undefined;
1666
+ }, {
1667
+ code: string;
1668
+ path: string;
1669
+ message: string;
1670
+ statusCode: number;
1671
+ timestamp: string;
1672
+ details?: unknown;
1673
+ correlationId?: string | undefined;
1674
+ }>;
1675
+ 500: z.ZodObject<{
1676
+ statusCode: z.ZodNumber;
1677
+ message: z.ZodString;
1678
+ code: z.ZodString;
1679
+ details: z.ZodOptional<z.ZodUnknown>;
1680
+ timestamp: z.ZodString;
1681
+ path: z.ZodString;
1682
+ correlationId: z.ZodOptional<z.ZodString>;
1683
+ }, "strip", z.ZodTypeAny, {
1684
+ code: string;
1685
+ path: string;
1686
+ message: string;
1687
+ statusCode: number;
1688
+ timestamp: string;
1689
+ details?: unknown;
1690
+ correlationId?: string | undefined;
1691
+ }, {
1692
+ code: string;
1693
+ path: string;
1694
+ message: string;
1695
+ statusCode: number;
1696
+ timestamp: string;
1697
+ details?: unknown;
1698
+ correlationId?: string | undefined;
1699
+ }>;
1700
+ 200: z.ZodObject<{
1701
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1702
+ type: z.ZodLiteral<"BOOKING">;
1703
+ id: z.ZodString;
1704
+ worker: z.ZodObject<{
1705
+ id: z.ZodString;
1706
+ firstName: z.ZodString;
1707
+ lastName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1708
+ }, "strip", z.ZodTypeAny, {
1709
+ id: string;
1710
+ firstName: string;
1711
+ lastName?: string | null | undefined;
1712
+ }, {
1713
+ id: string;
1714
+ firstName: string;
1715
+ lastName?: string | null | undefined;
1716
+ }>;
1717
+ startDate: z.ZodNullable<z.ZodString>;
1718
+ createdAt: z.ZodString;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ type: "BOOKING";
1721
+ id: string;
1722
+ startDate: string | null;
1723
+ createdAt: string;
1724
+ worker: {
1725
+ id: string;
1726
+ firstName: string;
1727
+ lastName?: string | null | undefined;
1728
+ };
1729
+ }, {
1730
+ type: "BOOKING";
1731
+ id: string;
1732
+ startDate: string | null;
1733
+ createdAt: string;
1734
+ worker: {
1735
+ id: string;
1736
+ firstName: string;
1737
+ lastName?: string | null | undefined;
1738
+ };
1739
+ }>, z.ZodObject<{
1740
+ type: z.ZodLiteral<"JOB">;
1741
+ id: z.ZodString;
1742
+ tradeId: z.ZodString;
1743
+ postcode: z.ZodNullable<z.ZodString>;
1744
+ createdBy: z.ZodObject<{
1745
+ id: z.ZodString;
1746
+ firstName: z.ZodString;
1747
+ lastName: z.ZodString;
1748
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1749
+ id: z.ZodString;
1750
+ phoneNumber: z.ZodString;
1751
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1752
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
1753
+ }, "strip", z.ZodTypeAny, {
1754
+ id: string;
1755
+ phoneNumber: string;
1756
+ isPrimary: boolean;
1757
+ description?: string | null | undefined;
1758
+ }, {
1759
+ id: string;
1760
+ phoneNumber: string;
1761
+ description?: string | null | undefined;
1762
+ isPrimary?: boolean | undefined;
1763
+ }>, "many">>>;
1764
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
1765
+ }, "strip", z.ZodTypeAny, {
1766
+ id: string;
1767
+ firstName: string;
1768
+ lastName: string;
1769
+ phoneNumbers: {
1770
+ id: string;
1771
+ phoneNumber: string;
1772
+ isPrimary: boolean;
1773
+ description?: string | null | undefined;
1774
+ }[];
1775
+ deletedAt?: string | null | undefined;
1776
+ }, {
1777
+ id: string;
1778
+ firstName: string;
1779
+ lastName: string;
1780
+ phoneNumbers?: {
1781
+ id: string;
1782
+ phoneNumber: string;
1783
+ description?: string | null | undefined;
1784
+ isPrimary?: boolean | undefined;
1785
+ }[] | undefined;
1786
+ deletedAt?: string | Date | null | undefined;
1787
+ }>;
1788
+ createdAt: z.ZodString;
1789
+ }, "strip", z.ZodTypeAny, {
1790
+ type: "JOB";
1791
+ id: string;
1792
+ createdAt: string;
1793
+ postcode: string | null;
1794
+ createdBy: {
1795
+ id: string;
1796
+ firstName: string;
1797
+ lastName: string;
1798
+ phoneNumbers: {
1799
+ id: string;
1800
+ phoneNumber: string;
1801
+ isPrimary: boolean;
1802
+ description?: string | null | undefined;
1803
+ }[];
1804
+ deletedAt?: string | null | undefined;
1805
+ };
1806
+ tradeId: string;
1807
+ }, {
1808
+ type: "JOB";
1809
+ id: string;
1810
+ createdAt: string;
1811
+ postcode: string | null;
1812
+ createdBy: {
1813
+ id: string;
1814
+ firstName: string;
1815
+ lastName: string;
1816
+ phoneNumbers?: {
1817
+ id: string;
1818
+ phoneNumber: string;
1819
+ description?: string | null | undefined;
1820
+ isPrimary?: boolean | undefined;
1821
+ }[] | undefined;
1822
+ deletedAt?: string | Date | null | undefined;
1823
+ };
1824
+ tradeId: string;
1825
+ }>]>, "many">;
1826
+ }, "strip", z.ZodTypeAny, {
1827
+ items: ({
1828
+ type: "BOOKING";
1829
+ id: string;
1830
+ startDate: string | null;
1831
+ createdAt: string;
1832
+ worker: {
1833
+ id: string;
1834
+ firstName: string;
1835
+ lastName?: string | null | undefined;
1836
+ };
1837
+ } | {
1838
+ type: "JOB";
1839
+ id: string;
1840
+ createdAt: string;
1841
+ postcode: string | null;
1842
+ createdBy: {
1843
+ id: string;
1844
+ firstName: string;
1845
+ lastName: string;
1846
+ phoneNumbers: {
1847
+ id: string;
1848
+ phoneNumber: string;
1849
+ isPrimary: boolean;
1850
+ description?: string | null | undefined;
1851
+ }[];
1852
+ deletedAt?: string | null | undefined;
1853
+ };
1854
+ tradeId: string;
1855
+ })[];
1856
+ }, {
1857
+ items: ({
1858
+ type: "BOOKING";
1859
+ id: string;
1860
+ startDate: string | null;
1861
+ createdAt: string;
1862
+ worker: {
1863
+ id: string;
1864
+ firstName: string;
1865
+ lastName?: string | null | undefined;
1866
+ };
1867
+ } | {
1868
+ type: "JOB";
1869
+ id: string;
1870
+ createdAt: string;
1871
+ postcode: string | null;
1872
+ createdBy: {
1873
+ id: string;
1874
+ firstName: string;
1875
+ lastName: string;
1876
+ phoneNumbers?: {
1877
+ id: string;
1878
+ phoneNumber: string;
1879
+ description?: string | null | undefined;
1880
+ isPrimary?: boolean | undefined;
1881
+ }[] | undefined;
1882
+ deletedAt?: string | Date | null | undefined;
1883
+ };
1884
+ tradeId: string;
1885
+ })[];
1886
+ }>;
1887
+ 404: z.ZodObject<{
1888
+ statusCode: z.ZodNumber;
1889
+ message: z.ZodString;
1890
+ code: z.ZodString;
1891
+ details: z.ZodOptional<z.ZodUnknown>;
1892
+ timestamp: z.ZodString;
1893
+ path: z.ZodString;
1894
+ correlationId: z.ZodOptional<z.ZodString>;
1895
+ }, "strip", z.ZodTypeAny, {
1896
+ code: string;
1897
+ path: string;
1898
+ message: string;
1899
+ statusCode: number;
1900
+ timestamp: string;
1901
+ details?: unknown;
1902
+ correlationId?: string | undefined;
1903
+ }, {
1904
+ code: string;
1905
+ path: string;
1906
+ message: string;
1907
+ statusCode: number;
1908
+ timestamp: string;
1909
+ details?: unknown;
1910
+ correlationId?: string | undefined;
1911
+ }>;
1912
+ 403: z.ZodObject<{
1913
+ statusCode: z.ZodNumber;
1914
+ message: z.ZodString;
1915
+ code: z.ZodString;
1916
+ details: z.ZodOptional<z.ZodUnknown>;
1917
+ timestamp: z.ZodString;
1918
+ path: z.ZodString;
1919
+ correlationId: z.ZodOptional<z.ZodString>;
1920
+ }, "strip", z.ZodTypeAny, {
1921
+ code: string;
1922
+ path: string;
1923
+ message: string;
1924
+ statusCode: number;
1925
+ timestamp: string;
1926
+ details?: unknown;
1927
+ correlationId?: string | undefined;
1928
+ }, {
1929
+ code: string;
1930
+ path: string;
1931
+ message: string;
1932
+ statusCode: number;
1933
+ timestamp: string;
1934
+ details?: unknown;
1935
+ correlationId?: string | undefined;
1936
+ }>;
1937
+ };
1938
+ };
1939
+ createBatch: {
1940
+ metadata: {
1941
+ tags: string[];
1942
+ };
1943
+ summary: "Create proofs in a batch submission";
1944
+ method: "POST";
1945
+ body: z.ZodDiscriminatedUnion<"category", [z.ZodObject<{
1946
+ category: z.ZodLiteral<"POST">;
1947
+ forUserId: z.ZodString;
1948
+ proofDate: z.ZodOptional<z.ZodString>;
1949
+ linkedEntities: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1950
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
1951
+ entityId: z.ZodString;
1952
+ }, "strip", z.ZodTypeAny, {
1953
+ entityType: "BOOKING" | "JOB";
1954
+ entityId: string;
1955
+ }, {
1956
+ entityType: "BOOKING" | "JOB";
1957
+ entityId: string;
1958
+ }>, "many">>>;
1959
+ sections: z.ZodEffects<z.ZodArray<z.ZodObject<{
1960
+ type: z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER"]>;
1961
+ photos: z.ZodArray<z.ZodObject<{
1962
+ fileId: z.ZodString;
1963
+ comment: z.ZodOptional<z.ZodString>;
1964
+ verified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1965
+ }, "strip", z.ZodTypeAny, {
1966
+ fileId: string;
1967
+ verified: boolean;
1968
+ comment?: string | undefined;
1969
+ }, {
1970
+ fileId: string;
1971
+ comment?: string | undefined;
1972
+ verified?: boolean | undefined;
1973
+ }>, "many">;
1974
+ }, "strip", z.ZodTypeAny, {
1975
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER";
1976
+ photos: {
1977
+ fileId: string;
1978
+ verified: boolean;
1979
+ comment?: string | undefined;
1980
+ }[];
1981
+ }, {
1982
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER";
1983
+ photos: {
1984
+ fileId: string;
1985
+ comment?: string | undefined;
1986
+ verified?: boolean | undefined;
1987
+ }[];
1988
+ }>, "many">, {
1989
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER";
1990
+ photos: {
1991
+ fileId: string;
1992
+ verified: boolean;
1993
+ comment?: string | undefined;
1994
+ }[];
1995
+ }[], {
1996
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER";
1997
+ photos: {
1998
+ fileId: string;
1999
+ comment?: string | undefined;
2000
+ verified?: boolean | undefined;
2001
+ }[];
2002
+ }[]>;
2003
+ }, "strip", z.ZodTypeAny, {
2004
+ category: "POST";
2005
+ forUserId: string;
2006
+ linkedEntities: {
2007
+ entityType: "BOOKING" | "JOB";
2008
+ entityId: string;
2009
+ }[];
2010
+ sections: {
2011
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER";
2012
+ photos: {
2013
+ fileId: string;
2014
+ verified: boolean;
2015
+ comment?: string | undefined;
2016
+ }[];
2017
+ }[];
2018
+ proofDate?: string | undefined;
2019
+ }, {
2020
+ category: "POST";
2021
+ forUserId: string;
2022
+ sections: {
2023
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER";
2024
+ photos: {
2025
+ fileId: string;
2026
+ comment?: string | undefined;
2027
+ verified?: boolean | undefined;
2028
+ }[];
2029
+ }[];
2030
+ proofDate?: string | undefined;
2031
+ linkedEntities?: {
2032
+ entityType: "BOOKING" | "JOB";
2033
+ entityId: string;
2034
+ }[] | undefined;
2035
+ }>, z.ZodObject<{
2036
+ category: z.ZodLiteral<"BOOKING">;
2037
+ forUserId: z.ZodString;
2038
+ proofDate: z.ZodOptional<z.ZodString>;
2039
+ linkedEntities: z.ZodArray<z.ZodObject<{
2040
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
2041
+ entityId: z.ZodString;
2042
+ }, "strip", z.ZodTypeAny, {
2043
+ entityType: "BOOKING" | "JOB";
2044
+ entityId: string;
2045
+ }, {
2046
+ entityType: "BOOKING" | "JOB";
2047
+ entityId: string;
2048
+ }>, "many">;
2049
+ sections: z.ZodEffects<z.ZodArray<z.ZodObject<{
2050
+ type: z.ZodEnum<["CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>;
2051
+ photos: z.ZodArray<z.ZodObject<{
2052
+ fileId: z.ZodString;
2053
+ comment: z.ZodOptional<z.ZodString>;
2054
+ verified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2055
+ }, "strip", z.ZodTypeAny, {
2056
+ fileId: string;
2057
+ verified: boolean;
2058
+ comment?: string | undefined;
2059
+ }, {
2060
+ fileId: string;
2061
+ comment?: string | undefined;
2062
+ verified?: boolean | undefined;
2063
+ }>, "many">;
2064
+ }, "strip", z.ZodTypeAny, {
2065
+ type: "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2066
+ photos: {
2067
+ fileId: string;
2068
+ verified: boolean;
2069
+ comment?: string | undefined;
2070
+ }[];
2071
+ }, {
2072
+ type: "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2073
+ photos: {
2074
+ fileId: string;
2075
+ comment?: string | undefined;
2076
+ verified?: boolean | undefined;
2077
+ }[];
2078
+ }>, "many">, {
2079
+ type: "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2080
+ photos: {
2081
+ fileId: string;
2082
+ verified: boolean;
2083
+ comment?: string | undefined;
2084
+ }[];
2085
+ }[], {
2086
+ type: "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2087
+ photos: {
2088
+ fileId: string;
2089
+ comment?: string | undefined;
2090
+ verified?: boolean | undefined;
2091
+ }[];
2092
+ }[]>;
2093
+ }, "strip", z.ZodTypeAny, {
2094
+ category: "BOOKING";
2095
+ forUserId: string;
2096
+ linkedEntities: {
2097
+ entityType: "BOOKING" | "JOB";
2098
+ entityId: string;
2099
+ }[];
2100
+ sections: {
2101
+ type: "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2102
+ photos: {
2103
+ fileId: string;
2104
+ verified: boolean;
2105
+ comment?: string | undefined;
2106
+ }[];
2107
+ }[];
2108
+ proofDate?: string | undefined;
2109
+ }, {
2110
+ category: "BOOKING";
2111
+ forUserId: string;
2112
+ linkedEntities: {
2113
+ entityType: "BOOKING" | "JOB";
2114
+ entityId: string;
2115
+ }[];
2116
+ sections: {
2117
+ type: "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2118
+ photos: {
2119
+ fileId: string;
2120
+ comment?: string | undefined;
2121
+ verified?: boolean | undefined;
2122
+ }[];
2123
+ }[];
2124
+ proofDate?: string | undefined;
2125
+ }>]>;
2126
+ path: "/proofs/batch";
2127
+ responses: {
2128
+ 401: z.ZodObject<{
2129
+ statusCode: z.ZodNumber;
2130
+ message: z.ZodString;
2131
+ code: z.ZodString;
2132
+ details: z.ZodOptional<z.ZodUnknown>;
2133
+ timestamp: z.ZodString;
2134
+ path: z.ZodString;
2135
+ correlationId: z.ZodOptional<z.ZodString>;
2136
+ }, "strip", z.ZodTypeAny, {
2137
+ code: string;
2138
+ path: string;
2139
+ message: string;
2140
+ statusCode: number;
2141
+ timestamp: string;
2142
+ details?: unknown;
2143
+ correlationId?: string | undefined;
2144
+ }, {
2145
+ code: string;
2146
+ path: string;
2147
+ message: string;
2148
+ statusCode: number;
2149
+ timestamp: string;
2150
+ details?: unknown;
2151
+ correlationId?: string | undefined;
2152
+ }>;
2153
+ 500: z.ZodObject<{
2154
+ statusCode: z.ZodNumber;
2155
+ message: z.ZodString;
2156
+ code: z.ZodString;
2157
+ details: z.ZodOptional<z.ZodUnknown>;
2158
+ timestamp: z.ZodString;
2159
+ path: z.ZodString;
2160
+ correlationId: z.ZodOptional<z.ZodString>;
2161
+ }, "strip", z.ZodTypeAny, {
2162
+ code: string;
2163
+ path: string;
2164
+ message: string;
2165
+ statusCode: number;
2166
+ timestamp: string;
2167
+ details?: unknown;
2168
+ correlationId?: string | undefined;
2169
+ }, {
2170
+ code: string;
2171
+ path: string;
2172
+ message: string;
2173
+ statusCode: number;
2174
+ timestamp: string;
2175
+ details?: unknown;
2176
+ correlationId?: string | undefined;
2177
+ }>;
2178
+ 201: z.ZodObject<{
2179
+ proofId: z.ZodString;
2180
+ }, "strip", z.ZodTypeAny, {
2181
+ proofId: string;
2182
+ }, {
2183
+ proofId: string;
2184
+ }>;
2185
+ 400: z.ZodObject<{
2186
+ statusCode: z.ZodNumber;
2187
+ message: z.ZodString;
2188
+ code: z.ZodString;
2189
+ details: z.ZodOptional<z.ZodUnknown>;
2190
+ timestamp: z.ZodString;
2191
+ path: z.ZodString;
2192
+ correlationId: z.ZodOptional<z.ZodString>;
2193
+ }, "strip", z.ZodTypeAny, {
2194
+ code: string;
2195
+ path: string;
2196
+ message: string;
2197
+ statusCode: number;
2198
+ timestamp: string;
2199
+ details?: unknown;
2200
+ correlationId?: string | undefined;
2201
+ }, {
2202
+ code: string;
2203
+ path: string;
2204
+ message: string;
2205
+ statusCode: number;
2206
+ timestamp: string;
2207
+ details?: unknown;
2208
+ correlationId?: string | undefined;
2209
+ }>;
2210
+ 403: z.ZodObject<{
2211
+ statusCode: z.ZodNumber;
2212
+ message: z.ZodString;
2213
+ code: z.ZodString;
2214
+ details: z.ZodOptional<z.ZodUnknown>;
2215
+ timestamp: z.ZodString;
2216
+ path: z.ZodString;
2217
+ correlationId: z.ZodOptional<z.ZodString>;
2218
+ }, "strip", z.ZodTypeAny, {
2219
+ code: string;
2220
+ path: string;
2221
+ message: string;
2222
+ statusCode: number;
2223
+ timestamp: string;
2224
+ details?: unknown;
2225
+ correlationId?: string | undefined;
2226
+ }, {
2227
+ code: string;
2228
+ path: string;
2229
+ message: string;
2230
+ statusCode: number;
2231
+ timestamp: string;
2232
+ details?: unknown;
2233
+ correlationId?: string | undefined;
2234
+ }>;
2235
+ };
2236
+ };
2237
+ update: {
2238
+ metadata: {
2239
+ tags: string[];
2240
+ };
2241
+ pathParams: z.ZodObject<{
2242
+ id: z.ZodString;
2243
+ }, "strip", z.ZodTypeAny, {
2244
+ id: string;
2245
+ }, {
2246
+ id: string;
2247
+ }>;
2248
+ summary: "Update a proof";
2249
+ method: "PATCH";
2250
+ body: z.ZodObject<{
2251
+ forUserId: z.ZodOptional<z.ZodString>;
2252
+ proofDate: z.ZodOptional<z.ZodString>;
2253
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2254
+ linkedEntities: z.ZodOptional<z.ZodArray<z.ZodObject<{
2255
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
2256
+ entityId: z.ZodString;
2257
+ }, "strip", z.ZodTypeAny, {
2258
+ entityType: "BOOKING" | "JOB";
2259
+ entityId: string;
2260
+ }, {
2261
+ entityType: "BOOKING" | "JOB";
2262
+ entityId: string;
2263
+ }>, "many">>;
2264
+ sections: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
2265
+ id: z.ZodOptional<z.ZodString>;
2266
+ type: z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER", "CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>;
2267
+ photos: z.ZodArray<z.ZodEffects<z.ZodObject<{
2268
+ id: z.ZodOptional<z.ZodString>;
2269
+ fileId: z.ZodOptional<z.ZodString>;
2270
+ verified: z.ZodBoolean;
2271
+ comment: z.ZodNullable<z.ZodString>;
2272
+ position: z.ZodNumber;
2273
+ }, "strip", z.ZodTypeAny, {
2274
+ comment: string | null;
2275
+ verified: boolean;
2276
+ position: number;
2277
+ id?: string | undefined;
2278
+ fileId?: string | undefined;
2279
+ }, {
2280
+ comment: string | null;
2281
+ verified: boolean;
2282
+ position: number;
2283
+ id?: string | undefined;
2284
+ fileId?: string | undefined;
2285
+ }>, {
2286
+ comment: string | null;
2287
+ verified: boolean;
2288
+ position: number;
2289
+ id?: string | undefined;
2290
+ fileId?: string | undefined;
2291
+ }, {
2292
+ comment: string | null;
2293
+ verified: boolean;
2294
+ position: number;
2295
+ id?: string | undefined;
2296
+ fileId?: string | undefined;
2297
+ }>, "many">;
2298
+ }, "strip", z.ZodTypeAny, {
2299
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2300
+ photos: {
2301
+ comment: string | null;
2302
+ verified: boolean;
2303
+ position: number;
2304
+ id?: string | undefined;
2305
+ fileId?: string | undefined;
2306
+ }[];
2307
+ id?: string | undefined;
2308
+ }, {
2309
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2310
+ photos: {
2311
+ comment: string | null;
2312
+ verified: boolean;
2313
+ position: number;
2314
+ id?: string | undefined;
2315
+ fileId?: string | undefined;
2316
+ }[];
2317
+ id?: string | undefined;
2318
+ }>, "many">, {
2319
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2320
+ photos: {
2321
+ comment: string | null;
2322
+ verified: boolean;
2323
+ position: number;
2324
+ id?: string | undefined;
2325
+ fileId?: string | undefined;
2326
+ }[];
2327
+ id?: string | undefined;
2328
+ }[], {
2329
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2330
+ photos: {
2331
+ comment: string | null;
2332
+ verified: boolean;
2333
+ position: number;
2334
+ id?: string | undefined;
2335
+ fileId?: string | undefined;
2336
+ }[];
2337
+ id?: string | undefined;
2338
+ }[]>>;
2339
+ }, "strip", z.ZodTypeAny, {
2340
+ description?: string | null | undefined;
2341
+ forUserId?: string | undefined;
2342
+ proofDate?: string | undefined;
2343
+ linkedEntities?: {
2344
+ entityType: "BOOKING" | "JOB";
2345
+ entityId: string;
2346
+ }[] | undefined;
2347
+ sections?: {
2348
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2349
+ photos: {
2350
+ comment: string | null;
2351
+ verified: boolean;
2352
+ position: number;
2353
+ id?: string | undefined;
2354
+ fileId?: string | undefined;
2355
+ }[];
2356
+ id?: string | undefined;
2357
+ }[] | undefined;
2358
+ }, {
2359
+ description?: string | null | undefined;
2360
+ forUserId?: string | undefined;
2361
+ proofDate?: string | undefined;
2362
+ linkedEntities?: {
2363
+ entityType: "BOOKING" | "JOB";
2364
+ entityId: string;
2365
+ }[] | undefined;
2366
+ sections?: {
2367
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2368
+ photos: {
2369
+ comment: string | null;
2370
+ verified: boolean;
2371
+ position: number;
2372
+ id?: string | undefined;
2373
+ fileId?: string | undefined;
2374
+ }[];
2375
+ id?: string | undefined;
2376
+ }[] | undefined;
2377
+ }>;
2378
+ path: "/proofs/:id";
2379
+ responses: {
2380
+ 400: z.ZodObject<{
2381
+ statusCode: z.ZodNumber;
2382
+ message: z.ZodString;
2383
+ code: z.ZodString;
2384
+ details: z.ZodOptional<z.ZodUnknown>;
2385
+ timestamp: z.ZodString;
2386
+ path: z.ZodString;
2387
+ correlationId: z.ZodOptional<z.ZodString>;
2388
+ }, "strip", z.ZodTypeAny, {
2389
+ code: string;
2390
+ path: string;
2391
+ message: string;
2392
+ statusCode: number;
2393
+ timestamp: string;
2394
+ details?: unknown;
2395
+ correlationId?: string | undefined;
2396
+ }, {
2397
+ code: string;
2398
+ path: string;
2399
+ message: string;
2400
+ statusCode: number;
2401
+ timestamp: string;
2402
+ details?: unknown;
2403
+ correlationId?: string | undefined;
2404
+ }>;
2405
+ 401: z.ZodObject<{
2406
+ statusCode: z.ZodNumber;
2407
+ message: z.ZodString;
2408
+ code: z.ZodString;
2409
+ details: z.ZodOptional<z.ZodUnknown>;
2410
+ timestamp: z.ZodString;
2411
+ path: z.ZodString;
2412
+ correlationId: z.ZodOptional<z.ZodString>;
2413
+ }, "strip", z.ZodTypeAny, {
2414
+ code: string;
2415
+ path: string;
2416
+ message: string;
2417
+ statusCode: number;
2418
+ timestamp: string;
2419
+ details?: unknown;
2420
+ correlationId?: string | undefined;
2421
+ }, {
2422
+ code: string;
2423
+ path: string;
2424
+ message: string;
2425
+ statusCode: number;
2426
+ timestamp: string;
2427
+ details?: unknown;
2428
+ correlationId?: string | undefined;
2429
+ }>;
2430
+ 500: z.ZodObject<{
2431
+ statusCode: z.ZodNumber;
2432
+ message: z.ZodString;
2433
+ code: z.ZodString;
2434
+ details: z.ZodOptional<z.ZodUnknown>;
2435
+ timestamp: z.ZodString;
2436
+ path: z.ZodString;
2437
+ correlationId: z.ZodOptional<z.ZodString>;
2438
+ }, "strip", z.ZodTypeAny, {
2439
+ code: string;
2440
+ path: string;
2441
+ message: string;
2442
+ statusCode: number;
2443
+ timestamp: string;
2444
+ details?: unknown;
2445
+ correlationId?: string | undefined;
2446
+ }, {
2447
+ code: string;
2448
+ path: string;
2449
+ message: string;
2450
+ statusCode: number;
2451
+ timestamp: string;
2452
+ details?: unknown;
2453
+ correlationId?: string | undefined;
2454
+ }>;
2455
+ 200: z.ZodObject<{
2456
+ id: z.ZodString;
2457
+ category: z.ZodEnum<["POST", "BOOKING"]>;
2458
+ forUserId: z.ZodString;
2459
+ forUser: z.ZodObject<{
2460
+ id: z.ZodString;
2461
+ firstName: z.ZodString;
2462
+ lastName: z.ZodString;
2463
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2464
+ id: z.ZodString;
2465
+ phoneNumber: z.ZodString;
2466
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2467
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
2468
+ }, "strip", z.ZodTypeAny, {
2469
+ id: string;
2470
+ phoneNumber: string;
2471
+ isPrimary: boolean;
2472
+ description?: string | null | undefined;
2473
+ }, {
2474
+ id: string;
2475
+ phoneNumber: string;
2476
+ description?: string | null | undefined;
2477
+ isPrimary?: boolean | undefined;
2478
+ }>, "many">>>;
2479
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
2480
+ }, "strip", z.ZodTypeAny, {
2481
+ id: string;
2482
+ firstName: string;
2483
+ lastName: string;
2484
+ phoneNumbers: {
2485
+ id: string;
2486
+ phoneNumber: string;
2487
+ isPrimary: boolean;
2488
+ description?: string | null | undefined;
2489
+ }[];
2490
+ deletedAt?: string | null | undefined;
2491
+ }, {
2492
+ id: string;
2493
+ firstName: string;
2494
+ lastName: string;
2495
+ phoneNumbers?: {
2496
+ id: string;
2497
+ phoneNumber: string;
2498
+ description?: string | null | undefined;
2499
+ isPrimary?: boolean | undefined;
2500
+ }[] | undefined;
2501
+ deletedAt?: string | Date | null | undefined;
2502
+ }>;
2503
+ proofDate: z.ZodString;
2504
+ description: z.ZodNullable<z.ZodString>;
2505
+ createdById: z.ZodString;
2506
+ createdBy: z.ZodObject<{
2507
+ id: z.ZodString;
2508
+ firstName: z.ZodString;
2509
+ lastName: z.ZodString;
2510
+ phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2511
+ id: z.ZodString;
2512
+ phoneNumber: z.ZodString;
2513
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2514
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
2515
+ }, "strip", z.ZodTypeAny, {
2516
+ id: string;
2517
+ phoneNumber: string;
2518
+ isPrimary: boolean;
2519
+ description?: string | null | undefined;
2520
+ }, {
2521
+ id: string;
2522
+ phoneNumber: string;
2523
+ description?: string | null | undefined;
2524
+ isPrimary?: boolean | undefined;
2525
+ }>, "many">>>;
2526
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
2527
+ }, "strip", z.ZodTypeAny, {
2528
+ id: string;
2529
+ firstName: string;
2530
+ lastName: string;
2531
+ phoneNumbers: {
2532
+ id: string;
2533
+ phoneNumber: string;
2534
+ isPrimary: boolean;
2535
+ description?: string | null | undefined;
2536
+ }[];
2537
+ deletedAt?: string | null | undefined;
2538
+ }, {
2539
+ id: string;
2540
+ firstName: string;
2541
+ lastName: string;
2542
+ phoneNumbers?: {
2543
+ id: string;
2544
+ phoneNumber: string;
2545
+ description?: string | null | undefined;
2546
+ isPrimary?: boolean | undefined;
2547
+ }[] | undefined;
2548
+ deletedAt?: string | Date | null | undefined;
2549
+ }>;
2550
+ createdAt: z.ZodString;
2551
+ updatedAt: z.ZodString;
2552
+ sections: z.ZodArray<z.ZodObject<{
2553
+ id: z.ZodString;
2554
+ type: z.ZodEnum<["FACEBOOK", "TELEGRAM", "WHATSAPP", "VIBER", "OTHER", "CONFIRMATION", "DISTANCE", "MORNING_STATUS"]>;
2555
+ photos: z.ZodArray<z.ZodObject<{
2556
+ id: z.ZodString;
2557
+ sectionId: z.ZodString;
2558
+ fileId: z.ZodString;
2559
+ position: z.ZodNumber;
2560
+ verified: z.ZodBoolean;
2561
+ verifiedAt: z.ZodNullable<z.ZodString>;
2562
+ verifiedById: z.ZodNullable<z.ZodString>;
2563
+ comment: z.ZodNullable<z.ZodString>;
2564
+ createdAt: z.ZodString;
2565
+ updatedAt: z.ZodString;
2566
+ fileUrl: z.ZodOptional<z.ZodString>;
2567
+ fileName: z.ZodOptional<z.ZodString>;
2568
+ }, "strip", z.ZodTypeAny, {
2569
+ id: string;
2570
+ createdAt: string;
2571
+ updatedAt: string;
2572
+ fileId: string;
2573
+ comment: string | null;
2574
+ verified: boolean;
2575
+ position: number;
2576
+ sectionId: string;
2577
+ verifiedAt: string | null;
2578
+ verifiedById: string | null;
2579
+ fileUrl?: string | undefined;
2580
+ fileName?: string | undefined;
2581
+ }, {
2582
+ id: string;
2583
+ createdAt: string;
2584
+ updatedAt: string;
2585
+ fileId: string;
2586
+ comment: string | null;
2587
+ verified: boolean;
2588
+ position: number;
2589
+ sectionId: string;
2590
+ verifiedAt: string | null;
2591
+ verifiedById: string | null;
2592
+ fileUrl?: string | undefined;
2593
+ fileName?: string | undefined;
2594
+ }>, "many">;
2595
+ photoCount: z.ZodNumber;
2596
+ verifiedCount: z.ZodNumber;
2597
+ createdAt: z.ZodString;
2598
+ updatedAt: z.ZodString;
2599
+ }, "strip", z.ZodTypeAny, {
2600
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2601
+ id: string;
2602
+ createdAt: string;
2603
+ updatedAt: string;
2604
+ photos: {
2605
+ id: string;
2606
+ createdAt: string;
2607
+ updatedAt: string;
2608
+ fileId: string;
2609
+ comment: string | null;
2610
+ verified: boolean;
2611
+ position: number;
2612
+ sectionId: string;
2613
+ verifiedAt: string | null;
2614
+ verifiedById: string | null;
2615
+ fileUrl?: string | undefined;
2616
+ fileName?: string | undefined;
2617
+ }[];
2618
+ photoCount: number;
2619
+ verifiedCount: number;
2620
+ }, {
2621
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2622
+ id: string;
2623
+ createdAt: string;
2624
+ updatedAt: string;
2625
+ photos: {
2626
+ id: string;
2627
+ createdAt: string;
2628
+ updatedAt: string;
2629
+ fileId: string;
2630
+ comment: string | null;
2631
+ verified: boolean;
2632
+ position: number;
2633
+ sectionId: string;
2634
+ verifiedAt: string | null;
2635
+ verifiedById: string | null;
2636
+ fileUrl?: string | undefined;
2637
+ fileName?: string | undefined;
2638
+ }[];
2639
+ photoCount: number;
2640
+ verifiedCount: number;
2641
+ }>, "many">;
2642
+ entityLinks: z.ZodArray<z.ZodObject<{
2643
+ id: z.ZodString;
2644
+ proofId: z.ZodString;
2645
+ entityType: z.ZodEnum<["BOOKING", "JOB"]>;
2646
+ entityId: z.ZodString;
2647
+ }, "strip", z.ZodTypeAny, {
2648
+ id: string;
2649
+ entityType: "BOOKING" | "JOB";
2650
+ entityId: string;
2651
+ proofId: string;
2652
+ }, {
2653
+ id: string;
2654
+ entityType: "BOOKING" | "JOB";
2655
+ entityId: string;
2656
+ proofId: string;
2657
+ }>, "many">;
2658
+ verifiedCount: z.ZodNumber;
2659
+ totalPhotos: z.ZodNumber;
2660
+ }, "strip", z.ZodTypeAny, {
2661
+ id: string;
2662
+ description: string | null;
2663
+ createdAt: string;
2664
+ updatedAt: string;
2665
+ category: "POST" | "BOOKING";
2666
+ forUserId: string;
2667
+ proofDate: string;
2668
+ sections: {
2669
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2670
+ id: string;
2671
+ createdAt: string;
2672
+ updatedAt: string;
2673
+ photos: {
2674
+ id: string;
2675
+ createdAt: string;
2676
+ updatedAt: string;
2677
+ fileId: string;
2678
+ comment: string | null;
2679
+ verified: boolean;
2680
+ position: number;
2681
+ sectionId: string;
2682
+ verifiedAt: string | null;
2683
+ verifiedById: string | null;
2684
+ fileUrl?: string | undefined;
2685
+ fileName?: string | undefined;
2686
+ }[];
2687
+ photoCount: number;
2688
+ verifiedCount: number;
2689
+ }[];
2690
+ verifiedCount: number;
2691
+ forUser: {
2692
+ id: string;
2693
+ firstName: string;
2694
+ lastName: string;
2695
+ phoneNumbers: {
2696
+ id: string;
2697
+ phoneNumber: string;
2698
+ isPrimary: boolean;
2699
+ description?: string | null | undefined;
2700
+ }[];
2701
+ deletedAt?: string | null | undefined;
2702
+ };
2703
+ createdById: string;
2704
+ createdBy: {
2705
+ id: string;
2706
+ firstName: string;
2707
+ lastName: string;
2708
+ phoneNumbers: {
2709
+ id: string;
2710
+ phoneNumber: string;
2711
+ isPrimary: boolean;
2712
+ description?: string | null | undefined;
2713
+ }[];
2714
+ deletedAt?: string | null | undefined;
2715
+ };
2716
+ entityLinks: {
2717
+ id: string;
2718
+ entityType: "BOOKING" | "JOB";
2719
+ entityId: string;
2720
+ proofId: string;
2721
+ }[];
2722
+ totalPhotos: number;
2723
+ }, {
2724
+ id: string;
2725
+ description: string | null;
2726
+ createdAt: string;
2727
+ updatedAt: string;
2728
+ category: "POST" | "BOOKING";
2729
+ forUserId: string;
2730
+ proofDate: string;
2731
+ sections: {
2732
+ type: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS";
2733
+ id: string;
2734
+ createdAt: string;
2735
+ updatedAt: string;
2736
+ photos: {
2737
+ id: string;
2738
+ createdAt: string;
2739
+ updatedAt: string;
2740
+ fileId: string;
2741
+ comment: string | null;
2742
+ verified: boolean;
2743
+ position: number;
2744
+ sectionId: string;
2745
+ verifiedAt: string | null;
2746
+ verifiedById: string | null;
2747
+ fileUrl?: string | undefined;
2748
+ fileName?: string | undefined;
2749
+ }[];
2750
+ photoCount: number;
2751
+ verifiedCount: number;
2752
+ }[];
2753
+ verifiedCount: number;
2754
+ forUser: {
2755
+ id: string;
2756
+ firstName: string;
2757
+ lastName: string;
2758
+ phoneNumbers?: {
2759
+ id: string;
2760
+ phoneNumber: string;
2761
+ description?: string | null | undefined;
2762
+ isPrimary?: boolean | undefined;
2763
+ }[] | undefined;
2764
+ deletedAt?: string | Date | null | undefined;
2765
+ };
2766
+ createdById: string;
2767
+ createdBy: {
2768
+ id: string;
2769
+ firstName: string;
2770
+ lastName: string;
2771
+ phoneNumbers?: {
2772
+ id: string;
2773
+ phoneNumber: string;
2774
+ description?: string | null | undefined;
2775
+ isPrimary?: boolean | undefined;
2776
+ }[] | undefined;
2777
+ deletedAt?: string | Date | null | undefined;
2778
+ };
2779
+ entityLinks: {
2780
+ id: string;
2781
+ entityType: "BOOKING" | "JOB";
2782
+ entityId: string;
2783
+ proofId: string;
2784
+ }[];
2785
+ totalPhotos: number;
2786
+ }>;
2787
+ 404: z.ZodObject<{
2788
+ statusCode: z.ZodNumber;
2789
+ message: z.ZodString;
2790
+ code: z.ZodString;
2791
+ details: z.ZodOptional<z.ZodUnknown>;
2792
+ timestamp: z.ZodString;
2793
+ path: z.ZodString;
2794
+ correlationId: z.ZodOptional<z.ZodString>;
2795
+ }, "strip", z.ZodTypeAny, {
2796
+ code: string;
2797
+ path: string;
2798
+ message: string;
2799
+ statusCode: number;
2800
+ timestamp: string;
2801
+ details?: unknown;
2802
+ correlationId?: string | undefined;
2803
+ }, {
2804
+ code: string;
2805
+ path: string;
2806
+ message: string;
2807
+ statusCode: number;
2808
+ timestamp: string;
2809
+ details?: unknown;
2810
+ correlationId?: string | undefined;
2811
+ }>;
2812
+ 409: z.ZodObject<{
2813
+ statusCode: z.ZodNumber;
2814
+ message: z.ZodString;
2815
+ code: z.ZodString;
2816
+ details: z.ZodOptional<z.ZodUnknown>;
2817
+ timestamp: z.ZodString;
2818
+ path: z.ZodString;
2819
+ correlationId: z.ZodOptional<z.ZodString>;
2820
+ }, "strip", z.ZodTypeAny, {
2821
+ code: string;
2822
+ path: string;
2823
+ message: string;
2824
+ statusCode: number;
2825
+ timestamp: string;
2826
+ details?: unknown;
2827
+ correlationId?: string | undefined;
2828
+ }, {
2829
+ code: string;
2830
+ path: string;
2831
+ message: string;
2832
+ statusCode: number;
2833
+ timestamp: string;
2834
+ details?: unknown;
2835
+ correlationId?: string | undefined;
2836
+ }>;
2837
+ 403: z.ZodObject<{
2838
+ statusCode: z.ZodNumber;
2839
+ message: z.ZodString;
2840
+ code: z.ZodString;
2841
+ details: z.ZodOptional<z.ZodUnknown>;
2842
+ timestamp: z.ZodString;
2843
+ path: z.ZodString;
2844
+ correlationId: z.ZodOptional<z.ZodString>;
2845
+ }, "strip", z.ZodTypeAny, {
2846
+ code: string;
2847
+ path: string;
2848
+ message: string;
2849
+ statusCode: number;
2850
+ timestamp: string;
2851
+ details?: unknown;
2852
+ correlationId?: string | undefined;
2853
+ }, {
2854
+ code: string;
2855
+ path: string;
2856
+ message: string;
2857
+ statusCode: number;
2858
+ timestamp: string;
2859
+ details?: unknown;
2860
+ correlationId?: string | undefined;
2861
+ }>;
2862
+ };
2863
+ };
2864
+ delete: {
2865
+ metadata: {
2866
+ tags: string[];
2867
+ };
2868
+ pathParams: z.ZodObject<{
2869
+ id: z.ZodString;
2870
+ }, "strip", z.ZodTypeAny, {
2871
+ id: string;
2872
+ }, {
2873
+ id: string;
2874
+ }>;
2875
+ summary: "Delete a proof";
2876
+ method: "DELETE";
2877
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2878
+ path: "/proofs/:id";
2879
+ responses: {
2880
+ 400: z.ZodObject<{
2881
+ statusCode: z.ZodNumber;
2882
+ message: z.ZodString;
2883
+ code: z.ZodString;
2884
+ details: z.ZodOptional<z.ZodUnknown>;
2885
+ timestamp: z.ZodString;
2886
+ path: z.ZodString;
2887
+ correlationId: z.ZodOptional<z.ZodString>;
2888
+ }, "strip", z.ZodTypeAny, {
2889
+ code: string;
2890
+ path: string;
2891
+ message: string;
2892
+ statusCode: number;
2893
+ timestamp: string;
2894
+ details?: unknown;
2895
+ correlationId?: string | undefined;
2896
+ }, {
2897
+ code: string;
2898
+ path: string;
2899
+ message: string;
2900
+ statusCode: number;
2901
+ timestamp: string;
2902
+ details?: unknown;
2903
+ correlationId?: string | undefined;
2904
+ }>;
2905
+ 401: z.ZodObject<{
2906
+ statusCode: z.ZodNumber;
2907
+ message: z.ZodString;
2908
+ code: z.ZodString;
2909
+ details: z.ZodOptional<z.ZodUnknown>;
2910
+ timestamp: z.ZodString;
2911
+ path: z.ZodString;
2912
+ correlationId: z.ZodOptional<z.ZodString>;
2913
+ }, "strip", z.ZodTypeAny, {
2914
+ code: string;
2915
+ path: string;
2916
+ message: string;
2917
+ statusCode: number;
2918
+ timestamp: string;
2919
+ details?: unknown;
2920
+ correlationId?: string | undefined;
2921
+ }, {
2922
+ code: string;
2923
+ path: string;
2924
+ message: string;
2925
+ statusCode: number;
2926
+ timestamp: string;
2927
+ details?: unknown;
2928
+ correlationId?: string | undefined;
2929
+ }>;
2930
+ 500: z.ZodObject<{
2931
+ statusCode: z.ZodNumber;
2932
+ message: z.ZodString;
2933
+ code: z.ZodString;
2934
+ details: z.ZodOptional<z.ZodUnknown>;
2935
+ timestamp: z.ZodString;
2936
+ path: z.ZodString;
2937
+ correlationId: z.ZodOptional<z.ZodString>;
2938
+ }, "strip", z.ZodTypeAny, {
2939
+ code: string;
2940
+ path: string;
2941
+ message: string;
2942
+ statusCode: number;
2943
+ timestamp: string;
2944
+ details?: unknown;
2945
+ correlationId?: string | undefined;
2946
+ }, {
2947
+ code: string;
2948
+ path: string;
2949
+ message: string;
2950
+ statusCode: number;
2951
+ timestamp: string;
2952
+ details?: unknown;
2953
+ correlationId?: string | undefined;
2954
+ }>;
2955
+ 204: z.ZodUndefined;
2956
+ 404: z.ZodObject<{
2957
+ statusCode: z.ZodNumber;
2958
+ message: z.ZodString;
2959
+ code: z.ZodString;
2960
+ details: z.ZodOptional<z.ZodUnknown>;
2961
+ timestamp: z.ZodString;
2962
+ path: z.ZodString;
2963
+ correlationId: z.ZodOptional<z.ZodString>;
2964
+ }, "strip", z.ZodTypeAny, {
2965
+ code: string;
2966
+ path: string;
2967
+ message: string;
2968
+ statusCode: number;
2969
+ timestamp: string;
2970
+ details?: unknown;
2971
+ correlationId?: string | undefined;
2972
+ }, {
2973
+ code: string;
2974
+ path: string;
2975
+ message: string;
2976
+ statusCode: number;
2977
+ timestamp: string;
2978
+ details?: unknown;
2979
+ correlationId?: string | undefined;
2980
+ }>;
2981
+ 403: z.ZodObject<{
2982
+ statusCode: z.ZodNumber;
2983
+ message: z.ZodString;
2984
+ code: z.ZodString;
2985
+ details: z.ZodOptional<z.ZodUnknown>;
2986
+ timestamp: z.ZodString;
2987
+ path: z.ZodString;
2988
+ correlationId: z.ZodOptional<z.ZodString>;
2989
+ }, "strip", z.ZodTypeAny, {
2990
+ code: string;
2991
+ path: string;
2992
+ message: string;
2993
+ statusCode: number;
2994
+ timestamp: string;
2995
+ details?: unknown;
2996
+ correlationId?: string | undefined;
2997
+ }, {
2998
+ code: string;
2999
+ path: string;
3000
+ message: string;
3001
+ statusCode: number;
3002
+ timestamp: string;
3003
+ details?: unknown;
3004
+ correlationId?: string | undefined;
3005
+ }>;
3006
+ };
3007
+ };
3008
+ };
3009
+ //# sourceMappingURL=proofs.contract.d.ts.map