lancer-shared 1.2.221 → 1.2.223

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 (367) hide show
  1. package/dist/bundle.cjs.js +8515 -8530
  2. package/dist/bundle.esm.js +23747 -0
  3. package/package.json +5 -7
  4. package/dist/constants/account-status.d.ts +0 -3
  5. package/dist/constants/account-status.js +0 -17
  6. package/dist/constants/campaign-notifications.d.ts +0 -2
  7. package/dist/constants/campaign-webhook-types.d.ts +0 -2
  8. package/dist/constants/collections.d.ts +0 -13
  9. package/dist/constants/collections.js +0 -16
  10. package/dist/constants/common-questions.d.ts +0 -5
  11. package/dist/constants/common-questions.js +0 -60
  12. package/dist/constants/index.d.ts +0 -9
  13. package/dist/constants/index.js +0 -40
  14. package/dist/constants/invoice.d.ts +0 -2
  15. package/dist/constants/job-filter-options.d.ts +0 -68
  16. package/dist/constants/job-filter-options.js +0 -268
  17. package/dist/constants/job-status.d.ts +0 -4
  18. package/dist/constants/job-status.js +0 -26
  19. package/dist/constants/mappings/countryMapping.d.ts +0 -2
  20. package/dist/constants/mappings/countryMapping.js +0 -122
  21. package/dist/constants/mappings/regionMapping.d.ts +0 -2
  22. package/dist/constants/mappings/regionMapping.js +0 -242
  23. package/dist/constants/organization.d.ts +0 -2
  24. package/dist/constants/plan.d.ts +0 -3
  25. package/dist/constants/proxies.d.ts +0 -4
  26. package/dist/constants/routes.d.ts +0 -257
  27. package/dist/constants/routes.js +0 -114
  28. package/dist/constants/upwork-accounts.d.ts +0 -4
  29. package/dist/constants/upwork-accounts.js +0 -21
  30. package/dist/constants/upwork-filters.d.ts +0 -5
  31. package/dist/constants/upwork-filters.js +0 -75
  32. package/dist/index.js +0 -20
  33. package/dist/schemas/account/account-status.d.ts +0 -3
  34. package/dist/schemas/account/account-status.js +0 -11
  35. package/dist/schemas/account/bidder-account.d.ts +0 -585
  36. package/dist/schemas/account/bidder-account.js +0 -37
  37. package/dist/schemas/account/exceptions/bidder-account-alreay-connected.exception.d.ts +0 -6
  38. package/dist/schemas/account/exceptions/index.d.ts +0 -4
  39. package/dist/schemas/account/exceptions/invalid-google-oauth-token.exception.d.ts +0 -5
  40. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
  41. package/dist/schemas/account/exceptions/no-bidder-accounts-available.exception.d.ts +0 -5
  42. package/dist/schemas/account/exceptions/no-google-oauth-tokens-found.exception.d.ts +0 -5
  43. package/dist/schemas/account/index.d.ts +0 -4
  44. package/dist/schemas/account/index.js +0 -19
  45. package/dist/schemas/account/manager-account.d.ts +0 -116
  46. package/dist/schemas/account/manager-account.js +0 -38
  47. package/dist/schemas/account/scraper-account.d.ts +0 -130
  48. package/dist/schemas/account/scraper-account.js +0 -37
  49. package/dist/schemas/agent/index.d.ts +0 -1128
  50. package/dist/schemas/agent/proposal.d.ts +0 -27
  51. package/dist/schemas/ai/ai-config.d.ts +0 -36
  52. package/dist/schemas/ai/ai-config.js +0 -12
  53. package/dist/schemas/ai/index.d.ts +0 -3
  54. package/dist/schemas/ai/index.js +0 -19
  55. package/dist/schemas/ai/proposal.d.ts +0 -82
  56. package/dist/schemas/ai/proposal.js +0 -16
  57. package/dist/schemas/ai/suitability.d.ts +0 -37
  58. package/dist/schemas/ai/suitability.js +0 -17
  59. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  60. package/dist/schemas/ai-config/ai-config.js +0 -12
  61. package/dist/schemas/ai-config/index.d.ts +0 -1
  62. package/dist/schemas/ai-config/index.js +0 -17
  63. package/dist/schemas/bid/bid-result.d.ts +0 -30
  64. package/dist/schemas/bid/bid-result.js +0 -15
  65. package/dist/schemas/bid/bid-status.d.ts +0 -30
  66. package/dist/schemas/bid/bid-status.js +0 -15
  67. package/dist/schemas/bid/bid.d.ts +0 -8010
  68. package/dist/schemas/bid/bid.js +0 -36
  69. package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
  70. package/dist/schemas/bid/exceptions/cloudflare-challenge-failed.exception.d.ts +0 -5
  71. package/dist/schemas/bid/exceptions/delete-multilogin-profile.exception.d.ts +0 -5
  72. package/dist/schemas/bid/exceptions/dropdown-option-not-present.exception.d.ts +0 -5
  73. package/dist/schemas/bid/exceptions/element-not-clickable.exception.d.ts +0 -5
  74. package/dist/schemas/bid/exceptions/evalaute-element.exception.d.ts +0 -5
  75. package/dist/schemas/bid/exceptions/evaluate-function.exception.d.ts +0 -5
  76. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
  77. package/dist/schemas/bid/exceptions/get-multilogin-browser.exception.d.ts +0 -5
  78. package/dist/schemas/bid/exceptions/incorrect-security-question-answer.exception.d.ts +0 -5
  79. package/dist/schemas/bid/exceptions/index.d.ts +0 -63
  80. package/dist/schemas/bid/exceptions/init-browser.exception.d.ts +0 -5
  81. package/dist/schemas/bid/exceptions/insufficient-connects.exception.d.ts +0 -5
  82. package/dist/schemas/bid/exceptions/invalid-credentials.exception.d.ts +0 -5
  83. package/dist/schemas/bid/exceptions/invalid-job-url.exception.d.ts +0 -5
  84. package/dist/schemas/bid/exceptions/login-failed.exception.d.ts +0 -5
  85. package/dist/schemas/bid/exceptions/multilogin-authentication.exception.d.ts +0 -5
  86. package/dist/schemas/bid/exceptions/navigation-timeout.exception.d.ts +0 -5
  87. package/dist/schemas/bid/exceptions/new-browser-page.exception.d.ts +0 -5
  88. package/dist/schemas/bid/exceptions/new-page.exception.d.ts +0 -5
  89. package/dist/schemas/bid/exceptions/open-new-url.exception.d.ts +0 -15
  90. package/dist/schemas/bid/exceptions/parse-connects.exception.d.ts +0 -5
  91. package/dist/schemas/bid/exceptions/proposal-error-alert.exception.d.ts +0 -5
  92. package/dist/schemas/bid/exceptions/proposal-form-warning-alert.exception.d.ts +0 -5
  93. package/dist/schemas/bid/exceptions/proposal-generation-failed.exception.d.ts +0 -5
  94. package/dist/schemas/bid/exceptions/proposal-submit-failed.exception.d.ts +0 -5
  95. package/dist/schemas/bid/exceptions/pupeteer-conection-error.exception.d.ts +0 -5
  96. package/dist/schemas/bid/exceptions/question-pair-not-matching.exception.d.ts +0 -5
  97. package/dist/schemas/bid/exceptions/select-agency.exception.d.ts +0 -5
  98. package/dist/schemas/bid/exceptions/select-contractor.exception.d.ts +0 -5
  99. package/dist/schemas/bid/exceptions/selector-not-found.exception.d.ts +0 -5
  100. package/dist/schemas/bid/exceptions/typed-value-not-matching.exception.d.ts +0 -5
  101. package/dist/schemas/bid/exceptions/typing-input-field.exception.d.ts +0 -5
  102. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
  103. package/dist/schemas/bid/exceptions/wait-for-function-timeout.exception.d.ts +0 -5
  104. package/dist/schemas/bid/index.d.ts +0 -3
  105. package/dist/schemas/bid/index.js +0 -18
  106. package/dist/schemas/bidder/bid-result.d.ts +0 -30
  107. package/dist/schemas/bidder/bid.d.ts +0 -8982
  108. package/dist/schemas/bidder/exceptions/boost-above-max-connects.exception.d.ts +0 -5
  109. package/dist/schemas/bidder/exceptions/cloudflare-challenge-failed.exception.d.ts +0 -5
  110. package/dist/schemas/bidder/exceptions/delete-multilogin-profile.exception.d.ts +0 -5
  111. package/dist/schemas/bidder/exceptions/dropdown-option-not-present.exception.d.ts +0 -5
  112. package/dist/schemas/bidder/exceptions/element-not-clickable.exception.d.ts +0 -5
  113. package/dist/schemas/bidder/exceptions/evalaute-element.exception.d.ts +0 -5
  114. package/dist/schemas/bidder/exceptions/evaluate-function.exception.d.ts +0 -5
  115. package/dist/schemas/bidder/exceptions/get-multilogin-browser.exception.d.ts +0 -5
  116. package/dist/schemas/bidder/exceptions/incorrect-security-question-answer.exception.d.ts +0 -5
  117. package/dist/schemas/bidder/exceptions/index.d.ts +0 -73
  118. package/dist/schemas/bidder/exceptions/init-browser.exception.d.ts +0 -5
  119. package/dist/schemas/bidder/exceptions/insufficient-connects.exception.d.ts +0 -5
  120. package/dist/schemas/bidder/exceptions/invalid-credentials.exception.d.ts +0 -5
  121. package/dist/schemas/bidder/exceptions/invalid-job-url.exception.d.ts +0 -5
  122. package/dist/schemas/bidder/exceptions/job-already-bidded-on.exception.d.ts +0 -5
  123. package/dist/schemas/bidder/exceptions/job-already-processed-in-another-campaign.exception.d.ts +0 -5
  124. package/dist/schemas/bidder/exceptions/job-no-longer-available.exception.d.ts +0 -5
  125. package/dist/schemas/bidder/exceptions/login-failed.exception.d.ts +0 -5
  126. package/dist/schemas/bidder/exceptions/multilogin-authentication.exception.d.ts +0 -5
  127. package/dist/schemas/bidder/exceptions/navigation-timeout.exception.d.ts +0 -5
  128. package/dist/schemas/bidder/exceptions/new-browser-page.exception.d.ts +0 -5
  129. package/dist/schemas/bidder/exceptions/new-page.exception.d.ts +0 -5
  130. package/dist/schemas/bidder/exceptions/open-new-url.exception.d.ts +0 -15
  131. package/dist/schemas/bidder/exceptions/parse-connects.exception.d.ts +0 -5
  132. package/dist/schemas/bidder/exceptions/private-job.exception.d.ts +0 -5
  133. package/dist/schemas/bidder/exceptions/proposal-error-alert.exception.d.ts +0 -5
  134. package/dist/schemas/bidder/exceptions/proposal-form-warning-alert.exception.d.ts +0 -5
  135. package/dist/schemas/bidder/exceptions/proposal-generation-failed.exception.d.ts +0 -5
  136. package/dist/schemas/bidder/exceptions/proposal-submit-failed.exception.d.ts +0 -5
  137. package/dist/schemas/bidder/exceptions/pupeteer-conection-error.exception.d.ts +0 -5
  138. package/dist/schemas/bidder/exceptions/question-pair-not-matching.exception.d.ts +0 -5
  139. package/dist/schemas/bidder/exceptions/select-agency.exception.d.ts +0 -5
  140. package/dist/schemas/bidder/exceptions/select-contractor.exception.d.ts +0 -5
  141. package/dist/schemas/bidder/exceptions/selector-not-found.exception.d.ts +0 -5
  142. package/dist/schemas/bidder/exceptions/typed-value-not-matching.exception.d.ts +0 -5
  143. package/dist/schemas/bidder/exceptions/typing-input-field.exception.d.ts +0 -5
  144. package/dist/schemas/bidder/exceptions/wait-for-function-timeout.exception.d.ts +0 -5
  145. package/dist/schemas/bidder/index.d.ts +0 -4
  146. package/dist/schemas/bidder/sync-proposal-status.d.ts +0 -12
  147. package/dist/schemas/bidding/index.d.ts +0 -1
  148. package/dist/schemas/bidding/index.js +0 -17
  149. package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
  150. package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
  151. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  152. package/dist/schemas/bidding/proposal-dto.js +0 -18
  153. package/dist/schemas/campaign/campaign-ai-metrics.d.ts +0 -16
  154. package/dist/schemas/campaign/campaign-ai-metrics.js +0 -9
  155. package/dist/schemas/campaign/campaign-analytics.d.ts +0 -8432
  156. package/dist/schemas/campaign/campaign-analytics.js +0 -41
  157. package/dist/schemas/campaign/campaign-chat-bot.d.ts +0 -186
  158. package/dist/schemas/campaign/campaign-expenses.d.ts +0 -15
  159. package/dist/schemas/campaign/campaign-expenses.js +0 -9
  160. package/dist/schemas/campaign/campaign-insights.d.ts +0 -122
  161. package/dist/schemas/campaign/campaign-insights.js +0 -31
  162. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -82
  163. package/dist/schemas/campaign/campaign-integrations.js +0 -16
  164. package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
  165. package/dist/schemas/campaign/campaign-job-count.js +0 -6
  166. package/dist/schemas/campaign/campaign-notifications.d.ts +0 -9
  167. package/dist/schemas/campaign/campaign-search.d.ts +0 -88
  168. package/dist/schemas/campaign/campaign-webhooks.d.ts +0 -0
  169. package/dist/schemas/campaign/campaign.d.ts +0 -1894
  170. package/dist/schemas/campaign/campaign.js +0 -44
  171. package/dist/schemas/campaign/index.d.ts +0 -8
  172. package/dist/schemas/campaign/index.js +0 -23
  173. package/dist/schemas/campaign/sequence/bid-node.d.ts +0 -6
  174. package/dist/schemas/campaign/sequence/boost-node.d.ts +0 -26
  175. package/dist/schemas/campaign/sequence/budget-node.d.ts +0 -294
  176. package/dist/schemas/campaign/sequence/client-size-node.d.ts +0 -45
  177. package/dist/schemas/campaign/sequence/client-size.d.ts +0 -45
  178. package/dist/schemas/campaign/sequence/client-spent-node.d.ts +0 -92
  179. package/dist/schemas/campaign/sequence/edges.d.ts +0 -24
  180. package/dist/schemas/campaign/sequence/fixed-budget-node.d.ts +0 -91
  181. package/dist/schemas/campaign/sequence/hire-rate-node.d.ts +0 -91
  182. package/dist/schemas/campaign/sequence/hire-rate.d.ts +0 -91
  183. package/dist/schemas/campaign/sequence/hourly-budget-node.d.ts +0 -91
  184. package/dist/schemas/campaign/sequence/hourly-rate-node.d.ts +0 -91
  185. package/dist/schemas/campaign/sequence/hourly-rate.d.ts +0 -91
  186. package/dist/schemas/campaign/sequence/index.d.ts +0 -10
  187. package/dist/schemas/campaign/sequence/node-types.d.ts +0 -3
  188. package/dist/schemas/campaign/sequence/payment-type-node.d.ts +0 -45
  189. package/dist/schemas/campaign/sequence/payment-type.d.ts +0 -45
  190. package/dist/schemas/campaign/sequence/rating-node.d.ts +0 -91
  191. package/dist/schemas/campaign/sequence/start-node.d.ts +0 -16
  192. package/dist/schemas/campaign/sequence/suitability-node.d.ts +0 -90
  193. package/dist/schemas/campaign/sequence/suitability.d.ts +0 -90
  194. package/dist/schemas/chat-message/chat-message.d.ts +0 -31
  195. package/dist/schemas/chat-message/chat-message.js +0 -13
  196. package/dist/schemas/chat-message/index.d.ts +0 -1
  197. package/dist/schemas/chat-message/index.js +0 -17
  198. package/dist/schemas/config/agency-config.d.ts +0 -17
  199. package/dist/schemas/config/agency-config.js +0 -10
  200. package/dist/schemas/config/index.d.ts +0 -1
  201. package/dist/schemas/config/index.js +0 -17
  202. package/dist/schemas/dashboard/index.d.ts +0 -372
  203. package/dist/schemas/index.d.ts +0 -24
  204. package/dist/schemas/index.js +0 -32
  205. package/dist/schemas/infrastructure/index.d.ts +0 -90
  206. package/dist/schemas/invoice/index.d.ts +0 -264
  207. package/dist/schemas/job/feed-job.d.ts +0 -866
  208. package/dist/schemas/job/index.d.ts +0 -977
  209. package/dist/schemas/job/index.js +0 -19
  210. package/dist/schemas/job/job-api.d.ts +0 -87
  211. package/dist/schemas/job/job-details.d.ts +0 -5741
  212. package/dist/schemas/job/job-details.js +0 -29
  213. package/dist/schemas/job/job-exceptions.d.ts +0 -10
  214. package/dist/schemas/job/job-filters.d.ts +0 -289
  215. package/dist/schemas/job/job-listing.d.ts +0 -866
  216. package/dist/schemas/job/job-note.d.ts +0 -83
  217. package/dist/schemas/job/job-note.js +0 -30
  218. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  219. package/dist/schemas/job/job-pipeline.js +0 -29
  220. package/dist/schemas/job/job-status.d.ts +0 -3
  221. package/dist/schemas/job/job-status.js +0 -27
  222. package/dist/schemas/job/job-suitability.d.ts +0 -12
  223. package/dist/schemas/job/job-suitability.js +0 -13
  224. package/dist/schemas/job/job.d.ts +0 -1160
  225. package/dist/schemas/job/job.js +0 -90
  226. package/dist/schemas/job/nuxt.d.ts +0 -1667
  227. package/dist/schemas/job/pipeline-job.d.ts +0 -608
  228. package/dist/schemas/job/pipeline-job.js +0 -43
  229. package/dist/schemas/job/upwork-job.d.ts +0 -334
  230. package/dist/schemas/job/upwork-job.js +0 -60
  231. package/dist/schemas/job-filters/index.d.ts +0 -1
  232. package/dist/schemas/job-filters/index.js +0 -17
  233. package/dist/schemas/job-filters/job-filters.d.ts +0 -241
  234. package/dist/schemas/job-filters/job-filters.js +0 -87
  235. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  236. package/dist/schemas/knowledge-object/index.js +0 -17
  237. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  238. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  239. package/dist/schemas/lead/index.d.ts +0 -4080
  240. package/dist/schemas/lead/index.js +0 -19
  241. package/dist/schemas/lead/lead-note.d.ts +0 -83
  242. package/dist/schemas/lead/lead-note.js +0 -30
  243. package/dist/schemas/lead/lead-status.d.ts +0 -42
  244. package/dist/schemas/lead/lead-status.js +0 -26
  245. package/dist/schemas/lead/lead.d.ts +0 -1897
  246. package/dist/schemas/lead/lead.js +0 -143
  247. package/dist/schemas/lead/nuxt.d.ts +0 -1664
  248. package/dist/schemas/logger/feed/feed-chunk-enrich.d.ts +0 -93
  249. package/dist/schemas/logger/feed/feed-enrich.d.ts +0 -87
  250. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +0 -1624
  251. package/dist/schemas/logger/feed/feed-scrape.d.ts +0 -72
  252. package/dist/schemas/logger/feed/index.d.ts +0 -4
  253. package/dist/schemas/logger/index.d.ts +0 -3
  254. package/dist/schemas/logger/index.js +0 -17
  255. package/dist/schemas/logger/log-event.d.ts +0 -457
  256. package/dist/schemas/logger/log-event.js +0 -66
  257. package/dist/schemas/logger/scraper-events.d.ts +0 -518
  258. package/dist/schemas/notifications/index.d.ts +0 -21
  259. package/dist/schemas/organization/billing.d.ts +0 -51
  260. package/dist/schemas/organization/cover-letter.d.ts +0 -37
  261. package/dist/schemas/organization/index.d.ts +0 -1049
  262. package/dist/schemas/organization/index.js +0 -17
  263. package/dist/schemas/organization/member.d.ts +0 -18
  264. package/dist/schemas/organization/onboarding.d.ts +0 -21
  265. package/dist/schemas/organization/organization.d.ts +0 -70
  266. package/dist/schemas/organization/organization.js +0 -19
  267. package/dist/schemas/organization/subscription.d.ts +0 -198
  268. package/dist/schemas/plan/index.d.ts +0 -166
  269. package/dist/schemas/proxy/index.d.ts +0 -3
  270. package/dist/schemas/proxy/index.js +0 -17
  271. package/dist/schemas/proxy/proxy-available-replacements.d.ts +0 -4
  272. package/dist/schemas/proxy/proxy-country.d.ts +0 -2
  273. package/dist/schemas/proxy/proxy.d.ts +0 -104
  274. package/dist/schemas/proxy/proxy.js +0 -23
  275. package/dist/schemas/saved-search/index.d.ts +0 -22
  276. package/dist/schemas/saved-search/index.js +0 -12
  277. package/dist/schemas/scraper/exceptions.d.ts +0 -33
  278. package/dist/schemas/scraper/index.d.ts +0 -4
  279. package/dist/schemas/scraper/index.js +0 -18
  280. package/dist/schemas/scraper/scrape-payload.d.ts +0 -2751
  281. package/dist/schemas/scraper/scrape-payload.js +0 -16
  282. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  283. package/dist/schemas/scraper/scrape-response.js +0 -9
  284. package/dist/schemas/scraper/scrape-result.d.ts +0 -813
  285. package/dist/schemas/scraper/scrape-result.js +0 -23
  286. package/dist/schemas/scraper/upwork-profile.d.ts +0 -101
  287. package/dist/schemas/shared.d.ts +0 -14
  288. package/dist/schemas/shared.js +0 -16
  289. package/dist/schemas/system/index.d.ts +0 -45
  290. package/dist/schemas/talent/index.d.ts +0 -2408
  291. package/dist/schemas/time-filter/index.d.ts +0 -3
  292. package/dist/schemas/time-filter/index.js +0 -9
  293. package/dist/schemas/transaction/index.d.ts +0 -102
  294. package/dist/schemas/upwork-account/index.d.ts +0 -3
  295. package/dist/schemas/upwork-account/index.js +0 -19
  296. package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
  297. package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
  298. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
  299. package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
  300. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  301. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  302. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
  303. package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
  304. package/dist/schemas/usage/index.d.ts +0 -77
  305. package/dist/schemas/usage-event/index.d.ts +0 -62
  306. package/dist/schemas/user/index.d.ts +0 -88
  307. package/dist/schemas/user/index.js +0 -55
  308. package/dist/types/account/account-status.js +0 -2
  309. package/dist/types/account/bidder-account.js +0 -2
  310. package/dist/types/account/index.js +0 -19
  311. package/dist/types/account/manager-account.js +0 -2
  312. package/dist/types/account/scraper-account.js +0 -2
  313. package/dist/types/ai/ai-config.js +0 -2
  314. package/dist/types/ai/index.js +0 -19
  315. package/dist/types/ai/proposal.js +0 -2
  316. package/dist/types/ai/suitability.js +0 -2
  317. package/dist/types/ai-config/ai-config.js +0 -2
  318. package/dist/types/ai-config/index.js +0 -17
  319. package/dist/types/bid/bid-result.js +0 -2
  320. package/dist/types/bid/bid-status.js +0 -2
  321. package/dist/types/bid/bid.js +0 -2
  322. package/dist/types/bid/index.js +0 -18
  323. package/dist/types/bidding/index.js +0 -17
  324. package/dist/types/bidding/proposal-bidding-status.js +0 -2
  325. package/dist/types/bidding/proposal-dto.js +0 -2
  326. package/dist/types/campaign/campaign-analytics.js +0 -2
  327. package/dist/types/campaign/campaign-expenses.js +0 -2
  328. package/dist/types/campaign/campaign-insights.js +0 -2
  329. package/dist/types/campaign/campaign-integrations.js +0 -2
  330. package/dist/types/campaign/campaign-job-count.js +0 -2
  331. package/dist/types/campaign/campaign.js +0 -2
  332. package/dist/types/campaign/index.js +0 -22
  333. package/dist/types/chat-message/chat-message.js +0 -2
  334. package/dist/types/chat-message/index.js +0 -17
  335. package/dist/types/config/agency-config.js +0 -2
  336. package/dist/types/config/index.js +0 -17
  337. package/dist/types/index.js +0 -29
  338. package/dist/types/job/index.js +0 -19
  339. package/dist/types/job/job-details.js +0 -2
  340. package/dist/types/job/job-note.js +0 -2
  341. package/dist/types/job/job-pipeline.js +0 -2
  342. package/dist/types/job/job-status.js +0 -12
  343. package/dist/types/job/job-suitability.js +0 -2
  344. package/dist/types/job/job.js +0 -2
  345. package/dist/types/job-filters/index.js +0 -17
  346. package/dist/types/job-filters/job-filters.js +0 -2
  347. package/dist/types/knowledge-object/index.js +0 -17
  348. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  349. package/dist/types/logger/index.js +0 -17
  350. package/dist/types/logger/log-event.js +0 -2
  351. package/dist/types/saved-search/index.js +0 -2
  352. package/dist/types/scraper/index.js +0 -18
  353. package/dist/types/scraper/scrape-payload.js +0 -2
  354. package/dist/types/scraper/scrape-response.js +0 -2
  355. package/dist/types/scraper/scrape-result.js +0 -2
  356. package/dist/types/time-filter/index.js +0 -2
  357. package/dist/types/upwork-account/index.js +0 -19
  358. package/dist/types/upwork-account/upwork-account-status.js +0 -2
  359. package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
  360. package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
  361. package/dist/types/user/index.js +0 -2
  362. package/dist/utils/index.d.ts +0 -3
  363. package/dist/utils/index.js +0 -17
  364. package/dist/utils/shared.d.ts +0 -7
  365. package/dist/utils/timezones.d.ts +0 -6
  366. package/dist/utils/try-catch.d.ts +0 -10
  367. package/dist/utils/try-catch.js +0 -25
@@ -1,1049 +0,0 @@
1
- import { infer, z } from 'zod';
2
- import { CoverLetterTemplate } from './cover-letter';
3
- import { OnboardingProgress } from './onboarding';
4
- export declare const organizationTypeSchema: z.ZodEnum<["agency", "freelancer"]>;
5
- export declare const organizationTierEnum: z.ZodEnum<["free", "premium"]>;
6
- export declare const limitsSchema: z.ZodObject<{
7
- monthlyCredits: z.ZodNumber;
8
- usedCredits: z.ZodNumber;
9
- extraCredits: z.ZodNumber;
10
- }, "strip", z.ZodTypeAny, {
11
- monthlyCredits: number;
12
- usedCredits: number;
13
- extraCredits: number;
14
- }, {
15
- monthlyCredits: number;
16
- usedCredits: number;
17
- extraCredits: number;
18
- }>;
19
- declare const oneTimePaymentSchema: z.ZodObject<{
20
- paidAt: z.ZodOptional<z.ZodNumber>;
21
- amount: z.ZodOptional<z.ZodNumber>;
22
- currency: z.ZodOptional<z.ZodString>;
23
- status: z.ZodString;
24
- paymentIntentId: z.ZodOptional<z.ZodString>;
25
- error: z.ZodOptional<z.ZodString>;
26
- }, "strip", z.ZodTypeAny, {
27
- status: string;
28
- paidAt?: number | undefined;
29
- amount?: number | undefined;
30
- currency?: string | undefined;
31
- paymentIntentId?: string | undefined;
32
- error?: string | undefined;
33
- }, {
34
- status: string;
35
- paidAt?: number | undefined;
36
- amount?: number | undefined;
37
- currency?: string | undefined;
38
- paymentIntentId?: string | undefined;
39
- error?: string | undefined;
40
- }>;
41
- declare const oneTimePaymentsSchema: z.ZodObject<{
42
- usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
43
- paidAt: z.ZodOptional<z.ZodNumber>;
44
- amount: z.ZodOptional<z.ZodNumber>;
45
- currency: z.ZodOptional<z.ZodString>;
46
- status: z.ZodString;
47
- paymentIntentId: z.ZodOptional<z.ZodString>;
48
- error: z.ZodOptional<z.ZodString>;
49
- }, "strip", z.ZodTypeAny, {
50
- status: string;
51
- paidAt?: number | undefined;
52
- amount?: number | undefined;
53
- currency?: string | undefined;
54
- paymentIntentId?: string | undefined;
55
- error?: string | undefined;
56
- }, {
57
- status: string;
58
- paidAt?: number | undefined;
59
- amount?: number | undefined;
60
- currency?: string | undefined;
61
- paymentIntentId?: string | undefined;
62
- error?: string | undefined;
63
- }>>;
64
- }, "strip", z.ZodTypeAny, {
65
- usBidderAccountPayment?: {
66
- status: string;
67
- paidAt?: number | undefined;
68
- amount?: number | undefined;
69
- currency?: string | undefined;
70
- paymentIntentId?: string | undefined;
71
- error?: string | undefined;
72
- } | undefined;
73
- }, {
74
- usBidderAccountPayment?: {
75
- status: string;
76
- paidAt?: number | undefined;
77
- amount?: number | undefined;
78
- currency?: string | undefined;
79
- paymentIntentId?: string | undefined;
80
- error?: string | undefined;
81
- } | undefined;
82
- }>;
83
- export declare const organizationSchema: z.ZodObject<{
84
- id: z.ZodString;
85
- name: z.ZodString;
86
- type: z.ZodEnum<["agency", "freelancer"]>;
87
- associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
88
- subscription: z.ZodNullable<z.ZodObject<{
89
- planId: z.ZodString;
90
- pendingPlanId: z.ZodNullable<z.ZodString>;
91
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
92
- startedAt: z.ZodNumber;
93
- currentPeriodEnd: z.ZodNumber;
94
- stripe: z.ZodObject<{
95
- id: z.ZodString;
96
- items: z.ZodArray<z.ZodObject<{
97
- id: z.ZodString;
98
- price: z.ZodObject<{
99
- id: z.ZodString;
100
- }, "strip", z.ZodTypeAny, {
101
- id: string;
102
- }, {
103
- id: string;
104
- }>;
105
- }, "strip", z.ZodTypeAny, {
106
- id: string;
107
- price: {
108
- id: string;
109
- };
110
- }, {
111
- id: string;
112
- price: {
113
- id: string;
114
- };
115
- }>, "many">;
116
- invoice: z.ZodObject<{
117
- id: z.ZodString;
118
- hosted_invoice_url: z.ZodNullable<z.ZodString>;
119
- }, "strip", z.ZodTypeAny, {
120
- id: string;
121
- hosted_invoice_url: string | null;
122
- }, {
123
- id: string;
124
- hosted_invoice_url: string | null;
125
- }>;
126
- }, "strip", z.ZodTypeAny, {
127
- id: string;
128
- items: {
129
- id: string;
130
- price: {
131
- id: string;
132
- };
133
- }[];
134
- invoice: {
135
- id: string;
136
- hosted_invoice_url: string | null;
137
- };
138
- }, {
139
- id: string;
140
- items: {
141
- id: string;
142
- price: {
143
- id: string;
144
- };
145
- }[];
146
- invoice: {
147
- id: string;
148
- hosted_invoice_url: string | null;
149
- };
150
- }>;
151
- source: z.ZodEnum<["stripe", "manual"]>;
152
- usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
153
- trialEndsAt: z.ZodNullable<z.ZodNumber>;
154
- }, "strip", z.ZodTypeAny, {
155
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
156
- planId: string;
157
- pendingPlanId: string | null;
158
- startedAt: number;
159
- currentPeriodEnd: number;
160
- stripe: {
161
- id: string;
162
- items: {
163
- id: string;
164
- price: {
165
- id: string;
166
- };
167
- }[];
168
- invoice: {
169
- id: string;
170
- hosted_invoice_url: string | null;
171
- };
172
- };
173
- source: "stripe" | "manual";
174
- usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
175
- trialEndsAt: number | null;
176
- }, {
177
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
178
- planId: string;
179
- pendingPlanId: string | null;
180
- startedAt: number;
181
- currentPeriodEnd: number;
182
- stripe: {
183
- id: string;
184
- items: {
185
- id: string;
186
- price: {
187
- id: string;
188
- };
189
- }[];
190
- invoice: {
191
- id: string;
192
- hosted_invoice_url: string | null;
193
- };
194
- };
195
- source: "stripe" | "manual";
196
- usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
197
- trialEndsAt: number | null;
198
- }>>;
199
- active: z.ZodBoolean;
200
- limits: z.ZodObject<{
201
- monthlyCredits: z.ZodNumber;
202
- usedCredits: z.ZodNumber;
203
- extraCredits: z.ZodNumber;
204
- }, "strip", z.ZodTypeAny, {
205
- monthlyCredits: number;
206
- usedCredits: number;
207
- extraCredits: number;
208
- }, {
209
- monthlyCredits: number;
210
- usedCredits: number;
211
- extraCredits: number;
212
- }>;
213
- billing: z.ZodNullable<z.ZodObject<{
214
- savedCard: z.ZodBoolean;
215
- stripe: z.ZodObject<{
216
- customer: z.ZodObject<{
217
- id: z.ZodNullable<z.ZodString>;
218
- }, "strip", z.ZodTypeAny, {
219
- id: string | null;
220
- }, {
221
- id: string | null;
222
- }>;
223
- }, "strip", z.ZodTypeAny, {
224
- customer: {
225
- id: string | null;
226
- };
227
- }, {
228
- customer: {
229
- id: string | null;
230
- };
231
- }>;
232
- }, "strip", z.ZodTypeAny, {
233
- stripe: {
234
- customer: {
235
- id: string | null;
236
- };
237
- };
238
- savedCard: boolean;
239
- }, {
240
- stripe: {
241
- customer: {
242
- id: string | null;
243
- };
244
- };
245
- savedCard: boolean;
246
- }>>;
247
- lastBidTime: z.ZodNullable<z.ZodNumber>;
248
- nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
249
- createdAt: z.ZodNumber;
250
- updatedAt: z.ZodNumber;
251
- openRouterApiKey: z.ZodNullable<z.ZodString>;
252
- nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
253
- oneTimePayments: z.ZodOptional<z.ZodObject<{
254
- usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
255
- paidAt: z.ZodOptional<z.ZodNumber>;
256
- amount: z.ZodOptional<z.ZodNumber>;
257
- currency: z.ZodOptional<z.ZodString>;
258
- status: z.ZodString;
259
- paymentIntentId: z.ZodOptional<z.ZodString>;
260
- error: z.ZodOptional<z.ZodString>;
261
- }, "strip", z.ZodTypeAny, {
262
- status: string;
263
- paidAt?: number | undefined;
264
- amount?: number | undefined;
265
- currency?: string | undefined;
266
- paymentIntentId?: string | undefined;
267
- error?: string | undefined;
268
- }, {
269
- status: string;
270
- paidAt?: number | undefined;
271
- amount?: number | undefined;
272
- currency?: string | undefined;
273
- paymentIntentId?: string | undefined;
274
- error?: string | undefined;
275
- }>>;
276
- }, "strip", z.ZodTypeAny, {
277
- usBidderAccountPayment?: {
278
- status: string;
279
- paidAt?: number | undefined;
280
- amount?: number | undefined;
281
- currency?: string | undefined;
282
- paymentIntentId?: string | undefined;
283
- error?: string | undefined;
284
- } | undefined;
285
- }, {
286
- usBidderAccountPayment?: {
287
- status: string;
288
- paidAt?: number | undefined;
289
- amount?: number | undefined;
290
- currency?: string | undefined;
291
- paymentIntentId?: string | undefined;
292
- error?: string | undefined;
293
- } | undefined;
294
- }>>;
295
- }, "strip", z.ZodTypeAny, {
296
- type: "agency" | "freelancer";
297
- id: string;
298
- name: string;
299
- associatedBidders: string[] | null;
300
- active: boolean;
301
- subscription: {
302
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
303
- planId: string;
304
- pendingPlanId: string | null;
305
- startedAt: number;
306
- currentPeriodEnd: number;
307
- stripe: {
308
- id: string;
309
- items: {
310
- id: string;
311
- price: {
312
- id: string;
313
- };
314
- }[];
315
- invoice: {
316
- id: string;
317
- hosted_invoice_url: string | null;
318
- };
319
- };
320
- source: "stripe" | "manual";
321
- usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
322
- trialEndsAt: number | null;
323
- } | null;
324
- limits: {
325
- monthlyCredits: number;
326
- usedCredits: number;
327
- extraCredits: number;
328
- };
329
- billing: {
330
- stripe: {
331
- customer: {
332
- id: string | null;
333
- };
334
- };
335
- savedCard: boolean;
336
- } | null;
337
- lastBidTime: number | null;
338
- nextScheduledBidTime: number | null;
339
- createdAt: number;
340
- updatedAt: number;
341
- openRouterApiKey: string | null;
342
- nextProposalStatusSyncTime: number | null;
343
- oneTimePayments?: {
344
- usBidderAccountPayment?: {
345
- status: string;
346
- paidAt?: number | undefined;
347
- amount?: number | undefined;
348
- currency?: string | undefined;
349
- paymentIntentId?: string | undefined;
350
- error?: string | undefined;
351
- } | undefined;
352
- } | undefined;
353
- }, {
354
- type: "agency" | "freelancer";
355
- id: string;
356
- name: string;
357
- associatedBidders: string[] | null;
358
- active: boolean;
359
- subscription: {
360
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
361
- planId: string;
362
- pendingPlanId: string | null;
363
- startedAt: number;
364
- currentPeriodEnd: number;
365
- stripe: {
366
- id: string;
367
- items: {
368
- id: string;
369
- price: {
370
- id: string;
371
- };
372
- }[];
373
- invoice: {
374
- id: string;
375
- hosted_invoice_url: string | null;
376
- };
377
- };
378
- source: "stripe" | "manual";
379
- usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
380
- trialEndsAt: number | null;
381
- } | null;
382
- limits: {
383
- monthlyCredits: number;
384
- usedCredits: number;
385
- extraCredits: number;
386
- };
387
- billing: {
388
- stripe: {
389
- customer: {
390
- id: string | null;
391
- };
392
- };
393
- savedCard: boolean;
394
- } | null;
395
- lastBidTime: number | null;
396
- nextScheduledBidTime: number | null;
397
- createdAt: number;
398
- updatedAt: number;
399
- openRouterApiKey: string | null;
400
- nextProposalStatusSyncTime: number | null;
401
- oneTimePayments?: {
402
- usBidderAccountPayment?: {
403
- status: string;
404
- paidAt?: number | undefined;
405
- amount?: number | undefined;
406
- currency?: string | undefined;
407
- paymentIntentId?: string | undefined;
408
- error?: string | undefined;
409
- } | undefined;
410
- } | undefined;
411
- }>;
412
- export declare const organizationUpdateSchema: z.ZodObject<{
413
- planId: z.ZodString;
414
- }, "strip", z.ZodTypeAny, {
415
- planId: string;
416
- }, {
417
- planId: string;
418
- }>;
419
- export declare const caseStudySchema: z.ZodObject<{
420
- id: z.ZodString;
421
- title: z.ZodString;
422
- description: z.ZodString;
423
- }, "strip", z.ZodTypeAny, {
424
- id: string;
425
- title: string;
426
- description: string;
427
- }, {
428
- id: string;
429
- title: string;
430
- description: string;
431
- }>;
432
- export type CaseStudy = z.infer<typeof caseStudySchema>;
433
- export declare const organizationProfileSchema: z.ZodObject<{
434
- id: z.ZodString;
435
- type: z.ZodEnum<["freelancer", "agency"]>;
436
- title: z.ZodString;
437
- name: z.ZodString;
438
- summary: z.ZodString;
439
- coreServices: z.ZodString;
440
- toolsSkillsTechnologies: z.ZodString;
441
- approach: z.ZodString;
442
- icp: z.ZodString;
443
- projectsTheyAvoid: z.ZodString;
444
- spokenLanguages: z.ZodString;
445
- agencyInfo: z.ZodObject<{
446
- location: z.ZodArray<z.ZodString, "many">;
447
- website: z.ZodString;
448
- teamSize: z.ZodNumber;
449
- }, "strip", z.ZodTypeAny, {
450
- location: string[];
451
- website: string;
452
- teamSize: number;
453
- }, {
454
- location: string[];
455
- website: string;
456
- teamSize: number;
457
- }>;
458
- caseStudies: z.ZodArray<z.ZodObject<{
459
- id: z.ZodString;
460
- title: z.ZodString;
461
- description: z.ZodString;
462
- }, "strip", z.ZodTypeAny, {
463
- id: string;
464
- title: string;
465
- description: string;
466
- }, {
467
- id: string;
468
- title: string;
469
- description: string;
470
- }>, "many">;
471
- createdAt: z.ZodNumber;
472
- }, "strip", z.ZodTypeAny, {
473
- type: "agency" | "freelancer";
474
- id: string;
475
- name: string;
476
- createdAt: number;
477
- title: string;
478
- summary: string;
479
- coreServices: string;
480
- toolsSkillsTechnologies: string;
481
- approach: string;
482
- icp: string;
483
- projectsTheyAvoid: string;
484
- spokenLanguages: string;
485
- agencyInfo: {
486
- location: string[];
487
- website: string;
488
- teamSize: number;
489
- };
490
- caseStudies: {
491
- id: string;
492
- title: string;
493
- description: string;
494
- }[];
495
- }, {
496
- type: "agency" | "freelancer";
497
- id: string;
498
- name: string;
499
- createdAt: number;
500
- title: string;
501
- summary: string;
502
- coreServices: string;
503
- toolsSkillsTechnologies: string;
504
- approach: string;
505
- icp: string;
506
- projectsTheyAvoid: string;
507
- spokenLanguages: string;
508
- agencyInfo: {
509
- location: string[];
510
- website: string;
511
- teamSize: number;
512
- };
513
- caseStudies: {
514
- id: string;
515
- title: string;
516
- description: string;
517
- }[];
518
- }>;
519
- export declare const updateOrganizationProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
520
- id: z.ZodOptional<z.ZodString>;
521
- type: z.ZodOptional<z.ZodEnum<["freelancer", "agency"]>>;
522
- title: z.ZodOptional<z.ZodString>;
523
- name: z.ZodOptional<z.ZodString>;
524
- summary: z.ZodOptional<z.ZodString>;
525
- coreServices: z.ZodOptional<z.ZodString>;
526
- toolsSkillsTechnologies: z.ZodOptional<z.ZodString>;
527
- approach: z.ZodOptional<z.ZodString>;
528
- icp: z.ZodOptional<z.ZodString>;
529
- projectsTheyAvoid: z.ZodOptional<z.ZodString>;
530
- spokenLanguages: z.ZodOptional<z.ZodString>;
531
- agencyInfo: z.ZodOptional<z.ZodObject<{
532
- location: z.ZodArray<z.ZodString, "many">;
533
- website: z.ZodString;
534
- teamSize: z.ZodNumber;
535
- }, "strip", z.ZodTypeAny, {
536
- location: string[];
537
- website: string;
538
- teamSize: number;
539
- }, {
540
- location: string[];
541
- website: string;
542
- teamSize: number;
543
- }>>;
544
- caseStudies: z.ZodOptional<z.ZodArray<z.ZodObject<{
545
- id: z.ZodString;
546
- title: z.ZodString;
547
- description: z.ZodString;
548
- }, "strip", z.ZodTypeAny, {
549
- id: string;
550
- title: string;
551
- description: string;
552
- }, {
553
- id: string;
554
- title: string;
555
- description: string;
556
- }>, "many">>;
557
- createdAt: z.ZodOptional<z.ZodNumber>;
558
- }, {
559
- id: z.ZodString;
560
- }>, "strip", z.ZodTypeAny, {
561
- id: string;
562
- type?: "agency" | "freelancer" | undefined;
563
- name?: string | undefined;
564
- createdAt?: number | undefined;
565
- title?: string | undefined;
566
- summary?: string | undefined;
567
- coreServices?: string | undefined;
568
- toolsSkillsTechnologies?: string | undefined;
569
- approach?: string | undefined;
570
- icp?: string | undefined;
571
- projectsTheyAvoid?: string | undefined;
572
- spokenLanguages?: string | undefined;
573
- agencyInfo?: {
574
- location: string[];
575
- website: string;
576
- teamSize: number;
577
- } | undefined;
578
- caseStudies?: {
579
- id: string;
580
- title: string;
581
- description: string;
582
- }[] | undefined;
583
- }, {
584
- id: string;
585
- type?: "agency" | "freelancer" | undefined;
586
- name?: string | undefined;
587
- createdAt?: number | undefined;
588
- title?: string | undefined;
589
- summary?: string | undefined;
590
- coreServices?: string | undefined;
591
- toolsSkillsTechnologies?: string | undefined;
592
- approach?: string | undefined;
593
- icp?: string | undefined;
594
- projectsTheyAvoid?: string | undefined;
595
- spokenLanguages?: string | undefined;
596
- agencyInfo?: {
597
- location: string[];
598
- website: string;
599
- teamSize: number;
600
- } | undefined;
601
- caseStudies?: {
602
- id: string;
603
- title: string;
604
- description: string;
605
- }[] | undefined;
606
- }>;
607
- export declare const createOrganizationProfileSchema: z.ZodObject<Pick<{
608
- id: z.ZodString;
609
- type: z.ZodEnum<["freelancer", "agency"]>;
610
- title: z.ZodString;
611
- name: z.ZodString;
612
- summary: z.ZodString;
613
- coreServices: z.ZodString;
614
- toolsSkillsTechnologies: z.ZodString;
615
- approach: z.ZodString;
616
- icp: z.ZodString;
617
- projectsTheyAvoid: z.ZodString;
618
- spokenLanguages: z.ZodString;
619
- agencyInfo: z.ZodObject<{
620
- location: z.ZodArray<z.ZodString, "many">;
621
- website: z.ZodString;
622
- teamSize: z.ZodNumber;
623
- }, "strip", z.ZodTypeAny, {
624
- location: string[];
625
- website: string;
626
- teamSize: number;
627
- }, {
628
- location: string[];
629
- website: string;
630
- teamSize: number;
631
- }>;
632
- caseStudies: z.ZodArray<z.ZodObject<{
633
- id: z.ZodString;
634
- title: z.ZodString;
635
- description: z.ZodString;
636
- }, "strip", z.ZodTypeAny, {
637
- id: string;
638
- title: string;
639
- description: string;
640
- }, {
641
- id: string;
642
- title: string;
643
- description: string;
644
- }>, "many">;
645
- createdAt: z.ZodNumber;
646
- }, "title">, "strip", z.ZodTypeAny, {
647
- title: string;
648
- }, {
649
- title: string;
650
- }>;
651
- export type OrganizationProfile = z.infer<typeof organizationProfileSchema>;
652
- export type UpdateOrganizationProfile = z.infer<typeof updateOrganizationProfileSchema>;
653
- export type CreateOrganizationProfile = z.infer<typeof createOrganizationProfileSchema>;
654
- export declare const createOrganizationSchema: z.ZodObject<Pick<{
655
- id: z.ZodString;
656
- name: z.ZodString;
657
- type: z.ZodEnum<["agency", "freelancer"]>;
658
- associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
659
- subscription: z.ZodNullable<z.ZodObject<{
660
- planId: z.ZodString;
661
- pendingPlanId: z.ZodNullable<z.ZodString>;
662
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
663
- startedAt: z.ZodNumber;
664
- currentPeriodEnd: z.ZodNumber;
665
- stripe: z.ZodObject<{
666
- id: z.ZodString;
667
- items: z.ZodArray<z.ZodObject<{
668
- id: z.ZodString;
669
- price: z.ZodObject<{
670
- id: z.ZodString;
671
- }, "strip", z.ZodTypeAny, {
672
- id: string;
673
- }, {
674
- id: string;
675
- }>;
676
- }, "strip", z.ZodTypeAny, {
677
- id: string;
678
- price: {
679
- id: string;
680
- };
681
- }, {
682
- id: string;
683
- price: {
684
- id: string;
685
- };
686
- }>, "many">;
687
- invoice: z.ZodObject<{
688
- id: z.ZodString;
689
- hosted_invoice_url: z.ZodNullable<z.ZodString>;
690
- }, "strip", z.ZodTypeAny, {
691
- id: string;
692
- hosted_invoice_url: string | null;
693
- }, {
694
- id: string;
695
- hosted_invoice_url: string | null;
696
- }>;
697
- }, "strip", z.ZodTypeAny, {
698
- id: string;
699
- items: {
700
- id: string;
701
- price: {
702
- id: string;
703
- };
704
- }[];
705
- invoice: {
706
- id: string;
707
- hosted_invoice_url: string | null;
708
- };
709
- }, {
710
- id: string;
711
- items: {
712
- id: string;
713
- price: {
714
- id: string;
715
- };
716
- }[];
717
- invoice: {
718
- id: string;
719
- hosted_invoice_url: string | null;
720
- };
721
- }>;
722
- source: z.ZodEnum<["stripe", "manual"]>;
723
- usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
724
- trialEndsAt: z.ZodNullable<z.ZodNumber>;
725
- }, "strip", z.ZodTypeAny, {
726
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
727
- planId: string;
728
- pendingPlanId: string | null;
729
- startedAt: number;
730
- currentPeriodEnd: number;
731
- stripe: {
732
- id: string;
733
- items: {
734
- id: string;
735
- price: {
736
- id: string;
737
- };
738
- }[];
739
- invoice: {
740
- id: string;
741
- hosted_invoice_url: string | null;
742
- };
743
- };
744
- source: "stripe" | "manual";
745
- usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
746
- trialEndsAt: number | null;
747
- }, {
748
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
749
- planId: string;
750
- pendingPlanId: string | null;
751
- startedAt: number;
752
- currentPeriodEnd: number;
753
- stripe: {
754
- id: string;
755
- items: {
756
- id: string;
757
- price: {
758
- id: string;
759
- };
760
- }[];
761
- invoice: {
762
- id: string;
763
- hosted_invoice_url: string | null;
764
- };
765
- };
766
- source: "stripe" | "manual";
767
- usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
768
- trialEndsAt: number | null;
769
- }>>;
770
- active: z.ZodBoolean;
771
- limits: z.ZodObject<{
772
- monthlyCredits: z.ZodNumber;
773
- usedCredits: z.ZodNumber;
774
- extraCredits: z.ZodNumber;
775
- }, "strip", z.ZodTypeAny, {
776
- monthlyCredits: number;
777
- usedCredits: number;
778
- extraCredits: number;
779
- }, {
780
- monthlyCredits: number;
781
- usedCredits: number;
782
- extraCredits: number;
783
- }>;
784
- billing: z.ZodNullable<z.ZodObject<{
785
- savedCard: z.ZodBoolean;
786
- stripe: z.ZodObject<{
787
- customer: z.ZodObject<{
788
- id: z.ZodNullable<z.ZodString>;
789
- }, "strip", z.ZodTypeAny, {
790
- id: string | null;
791
- }, {
792
- id: string | null;
793
- }>;
794
- }, "strip", z.ZodTypeAny, {
795
- customer: {
796
- id: string | null;
797
- };
798
- }, {
799
- customer: {
800
- id: string | null;
801
- };
802
- }>;
803
- }, "strip", z.ZodTypeAny, {
804
- stripe: {
805
- customer: {
806
- id: string | null;
807
- };
808
- };
809
- savedCard: boolean;
810
- }, {
811
- stripe: {
812
- customer: {
813
- id: string | null;
814
- };
815
- };
816
- savedCard: boolean;
817
- }>>;
818
- lastBidTime: z.ZodNullable<z.ZodNumber>;
819
- nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
820
- createdAt: z.ZodNumber;
821
- updatedAt: z.ZodNumber;
822
- openRouterApiKey: z.ZodNullable<z.ZodString>;
823
- nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
824
- oneTimePayments: z.ZodOptional<z.ZodObject<{
825
- usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
826
- paidAt: z.ZodOptional<z.ZodNumber>;
827
- amount: z.ZodOptional<z.ZodNumber>;
828
- currency: z.ZodOptional<z.ZodString>;
829
- status: z.ZodString;
830
- paymentIntentId: z.ZodOptional<z.ZodString>;
831
- error: z.ZodOptional<z.ZodString>;
832
- }, "strip", z.ZodTypeAny, {
833
- status: string;
834
- paidAt?: number | undefined;
835
- amount?: number | undefined;
836
- currency?: string | undefined;
837
- paymentIntentId?: string | undefined;
838
- error?: string | undefined;
839
- }, {
840
- status: string;
841
- paidAt?: number | undefined;
842
- amount?: number | undefined;
843
- currency?: string | undefined;
844
- paymentIntentId?: string | undefined;
845
- error?: string | undefined;
846
- }>>;
847
- }, "strip", z.ZodTypeAny, {
848
- usBidderAccountPayment?: {
849
- status: string;
850
- paidAt?: number | undefined;
851
- amount?: number | undefined;
852
- currency?: string | undefined;
853
- paymentIntentId?: string | undefined;
854
- error?: string | undefined;
855
- } | undefined;
856
- }, {
857
- usBidderAccountPayment?: {
858
- status: string;
859
- paidAt?: number | undefined;
860
- amount?: number | undefined;
861
- currency?: string | undefined;
862
- paymentIntentId?: string | undefined;
863
- error?: string | undefined;
864
- } | undefined;
865
- }>>;
866
- }, "type" | "name">, "strip", z.ZodTypeAny, {
867
- type: "agency" | "freelancer";
868
- name: string;
869
- }, {
870
- type: "agency" | "freelancer";
871
- name: string;
872
- }>;
873
- export type CreateOrganization = z.infer<typeof createOrganizationSchema>;
874
- export declare const trackUsageEventTypeEnum: z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>;
875
- export declare const trackUsagePayloadSchema: z.ZodObject<{
876
- event: z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>;
877
- campaignId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
878
- }, "strip", z.ZodTypeAny, {
879
- event: "suitabilityComplete" | "proposalComplete" | "biddingComplete";
880
- campaignId?: string | null | undefined;
881
- }, {
882
- event: "suitabilityComplete" | "proposalComplete" | "biddingComplete";
883
- campaignId?: string | null | undefined;
884
- }>;
885
- export declare const questionRulesSchema: z.ZodObject<{
886
- question: z.ZodString;
887
- answer: z.ZodString;
888
- exampleAnswer: z.ZodOptional<z.ZodString>;
889
- }, "strip", z.ZodTypeAny, {
890
- question: string;
891
- answer: string;
892
- exampleAnswer?: string | undefined;
893
- }, {
894
- question: string;
895
- answer: string;
896
- exampleAnswer?: string | undefined;
897
- }>;
898
- export type QuestionRules = z.infer<typeof questionRulesSchema>;
899
- export declare const aiConfigSchema: z.ZodObject<{
900
- questionHandling: z.ZodNullable<z.ZodString>;
901
- questionRules: z.ZodNullable<z.ZodArray<z.ZodObject<{
902
- question: z.ZodString;
903
- answer: z.ZodString;
904
- exampleAnswer: z.ZodOptional<z.ZodString>;
905
- }, "strip", z.ZodTypeAny, {
906
- question: string;
907
- answer: string;
908
- exampleAnswer?: string | undefined;
909
- }, {
910
- question: string;
911
- answer: string;
912
- exampleAnswer?: string | undefined;
913
- }>, "many">>;
914
- disqualifierRules: z.ZodNullable<z.ZodString>;
915
- userInstructions: z.ZodNullable<z.ZodString>;
916
- }, "strip", z.ZodTypeAny, {
917
- questionHandling: string | null;
918
- questionRules: {
919
- question: string;
920
- answer: string;
921
- exampleAnswer?: string | undefined;
922
- }[] | null;
923
- disqualifierRules: string | null;
924
- userInstructions: string | null;
925
- }, {
926
- questionHandling: string | null;
927
- questionRules: {
928
- question: string;
929
- answer: string;
930
- exampleAnswer?: string | undefined;
931
- }[] | null;
932
- disqualifierRules: string | null;
933
- userInstructions: string | null;
934
- }>;
935
- export declare const notificationConfigSchema: z.ZodObject<{
936
- emailEnabled: z.ZodBoolean;
937
- discordWebhookUrl: z.ZodNullable<z.ZodString>;
938
- slackWebhookUrl: z.ZodNullable<z.ZodString>;
939
- }, "strip", z.ZodTypeAny, {
940
- emailEnabled: boolean;
941
- discordWebhookUrl: string | null;
942
- slackWebhookUrl: string | null;
943
- }, {
944
- emailEnabled: boolean;
945
- discordWebhookUrl: string | null;
946
- slackWebhookUrl: string | null;
947
- }>;
948
- export declare const organizationSettingsSchema: z.ZodObject<{
949
- aiConfig: z.ZodObject<{
950
- questionHandling: z.ZodNullable<z.ZodString>;
951
- questionRules: z.ZodNullable<z.ZodArray<z.ZodObject<{
952
- question: z.ZodString;
953
- answer: z.ZodString;
954
- exampleAnswer: z.ZodOptional<z.ZodString>;
955
- }, "strip", z.ZodTypeAny, {
956
- question: string;
957
- answer: string;
958
- exampleAnswer?: string | undefined;
959
- }, {
960
- question: string;
961
- answer: string;
962
- exampleAnswer?: string | undefined;
963
- }>, "many">>;
964
- disqualifierRules: z.ZodNullable<z.ZodString>;
965
- userInstructions: z.ZodNullable<z.ZodString>;
966
- }, "strip", z.ZodTypeAny, {
967
- questionHandling: string | null;
968
- questionRules: {
969
- question: string;
970
- answer: string;
971
- exampleAnswer?: string | undefined;
972
- }[] | null;
973
- disqualifierRules: string | null;
974
- userInstructions: string | null;
975
- }, {
976
- questionHandling: string | null;
977
- questionRules: {
978
- question: string;
979
- answer: string;
980
- exampleAnswer?: string | undefined;
981
- }[] | null;
982
- disqualifierRules: string | null;
983
- userInstructions: string | null;
984
- }>;
985
- }, "strip", z.ZodTypeAny, {
986
- aiConfig: {
987
- questionHandling: string | null;
988
- questionRules: {
989
- question: string;
990
- answer: string;
991
- exampleAnswer?: string | undefined;
992
- }[] | null;
993
- disqualifierRules: string | null;
994
- userInstructions: string | null;
995
- };
996
- }, {
997
- aiConfig: {
998
- questionHandling: string | null;
999
- questionRules: {
1000
- question: string;
1001
- answer: string;
1002
- exampleAnswer?: string | undefined;
1003
- }[] | null;
1004
- disqualifierRules: string | null;
1005
- userInstructions: string | null;
1006
- };
1007
- }>;
1008
- export declare const subscribePayloadSchema: z.ZodObject<{
1009
- planId: z.ZodString;
1010
- toltReferral: z.ZodOptional<z.ZodString>;
1011
- couponCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1012
- }, "strip", z.ZodTypeAny, {
1013
- planId: string;
1014
- toltReferral?: string | undefined;
1015
- couponCode?: string | null | undefined;
1016
- }, {
1017
- planId: string;
1018
- toltReferral?: string | undefined;
1019
- couponCode?: string | null | undefined;
1020
- }>;
1021
- export interface OneTimePayment extends z.infer<typeof oneTimePaymentSchema> {
1022
- }
1023
- export interface OneTimePayments extends z.infer<typeof oneTimePaymentsSchema> {
1024
- usBidderAccountPayment?: OneTimePayment;
1025
- }
1026
- export interface Organization extends infer<typeof organizationSchema> {
1027
- coverLetterTemplates: CoverLetterTemplate[] | null;
1028
- settings: OrganizationSettings | null;
1029
- profiles: OrganizationProfile[] | null;
1030
- onboarding: OnboardingProgress | null;
1031
- oneTimePayments: OneTimePayments;
1032
- }
1033
- export interface OrganizationUpdateSchema extends infer<typeof organizationUpdateSchema> {
1034
- }
1035
- export interface TrackUsagePayloadSchema extends infer<typeof trackUsagePayloadSchema> {
1036
- }
1037
- export interface AiConfig extends infer<typeof aiConfigSchema> {
1038
- }
1039
- export interface NotificationConfig extends infer<typeof notificationConfigSchema> {
1040
- }
1041
- export interface OrganizationSettings extends infer<typeof organizationSettingsSchema> {
1042
- }
1043
- export type OrganizationType = z.infer<typeof organizationTypeSchema>;
1044
- export interface SubscribePayload extends z.infer<typeof subscribePayloadSchema> {
1045
- }
1046
- export * from './cover-letter';
1047
- export * from './member';
1048
- export * from './onboarding';
1049
- export * from './subscription';