lancer-shared 1.2.38 → 1.2.39

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 (247) hide show
  1. package/dist/bundle.cjs.js +8 -13
  2. package/dist/constants/account-status.d.ts +3 -0
  3. package/dist/constants/account-status.js +17 -0
  4. package/dist/constants/collections.d.ts +13 -0
  5. package/dist/constants/collections.js +16 -0
  6. package/dist/constants/common-questions.js +60 -0
  7. package/dist/constants/index.js +40 -0
  8. package/dist/constants/job-filter-options.js +268 -0
  9. package/dist/constants/job-status.js +26 -0
  10. package/dist/constants/mappings/countryMapping.js +122 -0
  11. package/dist/constants/mappings/regionMapping.js +242 -0
  12. package/dist/constants/organization.d.ts +2 -0
  13. package/dist/constants/proxies.d.ts +4 -0
  14. package/dist/constants/routes.js +114 -0
  15. package/dist/constants/upwork-accounts.js +21 -0
  16. package/dist/constants/upwork-filters.d.ts +5 -0
  17. package/dist/constants/upwork-filters.js +75 -0
  18. package/dist/index.js +20 -0
  19. package/dist/schemas/account/account-status.js +11 -0
  20. package/dist/schemas/account/bidder-account.d.ts +9 -10
  21. package/dist/schemas/account/bidder-account.js +37 -0
  22. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +5 -0
  23. package/dist/schemas/account/index.js +19 -0
  24. package/dist/schemas/account/manager-account.d.ts +116 -0
  25. package/dist/schemas/account/manager-account.js +38 -0
  26. package/dist/schemas/account/scraper-account.d.ts +2 -6
  27. package/dist/schemas/account/scraper-account.js +37 -0
  28. package/dist/schemas/agent/index.d.ts +20 -10
  29. package/dist/schemas/ai/ai-config.d.ts +36 -0
  30. package/dist/schemas/ai/ai-config.js +12 -0
  31. package/dist/schemas/ai/index.d.ts +3 -0
  32. package/dist/schemas/ai/index.js +19 -0
  33. package/dist/schemas/ai/proposal.d.ts +82 -0
  34. package/dist/schemas/ai/proposal.js +16 -0
  35. package/dist/schemas/ai/suitability.d.ts +37 -0
  36. package/dist/schemas/ai/suitability.js +17 -0
  37. package/dist/schemas/ai-config/ai-config.d.ts +39 -0
  38. package/dist/schemas/ai-config/ai-config.js +12 -0
  39. package/dist/schemas/ai-config/index.d.ts +1 -0
  40. package/dist/schemas/ai-config/index.js +17 -0
  41. package/dist/schemas/bid/bid-result.js +15 -0
  42. package/dist/schemas/bid/bid-status.d.ts +30 -0
  43. package/dist/schemas/bid/bid-status.js +15 -0
  44. package/dist/schemas/bid/bid.js +36 -0
  45. package/dist/schemas/bid/exceptions/base-exception.d.ts +4 -0
  46. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +5 -0
  47. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +5 -0
  48. package/dist/schemas/bid/index.js +18 -0
  49. package/dist/schemas/bidding/index.d.ts +1 -0
  50. package/dist/schemas/bidding/index.js +17 -0
  51. package/dist/schemas/bidding/proposal-bidding-status.d.ts +26 -0
  52. package/dist/schemas/bidding/proposal-bidding-status.js +18 -0
  53. package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
  54. package/dist/schemas/bidding/proposal-dto.js +18 -0
  55. package/dist/schemas/campaign/campaign-ai-metrics.js +9 -0
  56. package/dist/schemas/campaign/campaign-analytics.d.ts +40 -48
  57. package/dist/schemas/campaign/campaign-analytics.js +41 -0
  58. package/dist/schemas/campaign/campaign-expenses.js +9 -0
  59. package/dist/schemas/campaign/campaign-insights.js +31 -0
  60. package/dist/schemas/campaign/campaign-integrations.d.ts +82 -0
  61. package/dist/schemas/campaign/campaign-integrations.js +16 -0
  62. package/dist/schemas/campaign/campaign-job-count.d.ts +2 -0
  63. package/dist/schemas/campaign/campaign-job-count.js +6 -0
  64. package/dist/schemas/campaign/campaign.d.ts +1 -13
  65. package/dist/schemas/campaign/campaign.js +44 -0
  66. package/dist/schemas/campaign/index.js +23 -0
  67. package/dist/schemas/chat-message/chat-message.d.ts +31 -0
  68. package/dist/schemas/chat-message/chat-message.js +13 -0
  69. package/dist/schemas/chat-message/index.d.ts +1 -0
  70. package/dist/schemas/chat-message/index.js +17 -0
  71. package/dist/schemas/config/agency-config.d.ts +17 -0
  72. package/dist/schemas/config/agency-config.js +10 -0
  73. package/dist/schemas/config/index.d.ts +1 -0
  74. package/dist/schemas/config/index.js +17 -0
  75. package/dist/schemas/index.js +32 -0
  76. package/dist/schemas/job/index.js +19 -0
  77. package/dist/schemas/job/job-details.d.ts +335 -0
  78. package/dist/schemas/job/job-details.js +29 -0
  79. package/dist/schemas/job/job-note.d.ts +83 -0
  80. package/dist/schemas/job/job-note.js +30 -0
  81. package/dist/schemas/job/job-pipeline.d.ts +74 -0
  82. package/dist/schemas/job/job-pipeline.js +29 -0
  83. package/dist/schemas/job/job-status.d.ts +3 -0
  84. package/dist/schemas/job/job-status.js +27 -0
  85. package/dist/schemas/job/job-suitability.d.ts +12 -0
  86. package/dist/schemas/job/job-suitability.js +13 -0
  87. package/dist/schemas/job/job.d.ts +1160 -0
  88. package/dist/schemas/job/job.js +90 -0
  89. package/dist/schemas/job/pipeline-job.d.ts +608 -0
  90. package/dist/schemas/job/pipeline-job.js +43 -0
  91. package/dist/schemas/job/upwork-job.d.ts +334 -0
  92. package/dist/schemas/job/upwork-job.js +60 -0
  93. package/dist/schemas/job-filters/index.d.ts +1 -0
  94. package/dist/schemas/job-filters/index.js +17 -0
  95. package/dist/schemas/job-filters/job-filters.d.ts +241 -0
  96. package/dist/schemas/job-filters/job-filters.js +87 -0
  97. package/dist/schemas/knowledge-object/index.d.ts +1 -0
  98. package/dist/schemas/knowledge-object/index.js +17 -0
  99. package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
  100. package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
  101. package/dist/schemas/lead/index.js +19 -0
  102. package/dist/schemas/lead/lead-note.d.ts +83 -0
  103. package/dist/schemas/lead/lead-note.js +30 -0
  104. package/dist/schemas/lead/lead-status.js +26 -0
  105. package/dist/schemas/lead/lead.d.ts +1897 -0
  106. package/dist/schemas/lead/lead.js +143 -0
  107. package/dist/schemas/lead/nuxt.d.ts +1664 -0
  108. package/dist/schemas/logger/index.js +17 -0
  109. package/dist/schemas/logger/log-event.d.ts +5 -5
  110. package/dist/schemas/logger/log-event.js +66 -0
  111. package/dist/schemas/organization/index.js +17 -0
  112. package/dist/schemas/organization/organization.d.ts +70 -0
  113. package/dist/schemas/organization/organization.js +19 -0
  114. package/dist/schemas/proxy/index.js +17 -0
  115. package/dist/schemas/proxy/proxy.d.ts +5 -5
  116. package/dist/schemas/proxy/proxy.js +23 -0
  117. package/dist/schemas/saved-search/index.js +12 -0
  118. package/dist/schemas/scraper/index.js +18 -0
  119. package/dist/schemas/scraper/scrape-payload.d.ts +24 -24
  120. package/dist/schemas/scraper/scrape-payload.js +16 -0
  121. package/dist/schemas/scraper/scrape-response.d.ts +345 -0
  122. package/dist/schemas/scraper/scrape-response.js +9 -0
  123. package/dist/schemas/scraper/scrape-result.js +23 -0
  124. package/dist/schemas/shared.js +16 -0
  125. package/dist/schemas/time-filter/index.js +9 -0
  126. package/dist/schemas/upwork-account/index.d.ts +3 -0
  127. package/dist/schemas/upwork-account/index.js +19 -0
  128. package/dist/schemas/upwork-account/upwork-account-status.d.ts +2 -0
  129. package/dist/schemas/upwork-account/upwork-account-status.js +11 -0
  130. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +95 -0
  131. package/dist/schemas/upwork-account/upwork-business-manager-account.js +35 -0
  132. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +92 -0
  133. package/dist/schemas/upwork-account/upwork-scraper-account.js +31 -0
  134. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +90 -0
  135. package/dist/schemas/upwork-account/upwork-scraping-account.js +30 -0
  136. package/dist/schemas/user/index.js +55 -0
  137. package/dist/types/account/account-status.d.ts +3 -0
  138. package/dist/types/account/account-status.js +2 -0
  139. package/dist/types/account/bidder-account.d.ts +7 -0
  140. package/dist/types/account/bidder-account.js +2 -0
  141. package/dist/types/account/index.d.ts +3 -0
  142. package/dist/types/account/index.js +19 -0
  143. package/dist/types/account/manager-account.d.ts +7 -0
  144. package/dist/types/account/manager-account.js +2 -0
  145. package/dist/types/account/scraper-account.d.ts +5 -0
  146. package/dist/types/account/scraper-account.js +2 -0
  147. package/dist/types/ai/ai-config.d.ts +6 -0
  148. package/dist/types/ai/ai-config.js +2 -0
  149. package/dist/types/ai/index.d.ts +3 -0
  150. package/dist/types/ai/index.js +19 -0
  151. package/dist/types/ai/proposal.d.ts +10 -0
  152. package/dist/types/ai/proposal.js +2 -0
  153. package/dist/types/ai/suitability.d.ts +6 -0
  154. package/dist/types/ai/suitability.js +2 -0
  155. package/dist/types/ai-config/ai-config.d.ts +6 -0
  156. package/dist/types/ai-config/ai-config.js +2 -0
  157. package/dist/types/ai-config/index.d.ts +1 -0
  158. package/dist/types/ai-config/index.js +17 -0
  159. package/dist/types/bid/bid-result.d.ts +5 -0
  160. package/dist/types/bid/bid-result.js +2 -0
  161. package/dist/types/bid/bid-status.d.ts +5 -0
  162. package/dist/types/bid/bid-status.js +2 -0
  163. package/dist/types/bid/bid.d.ts +9 -0
  164. package/dist/types/bid/bid.js +2 -0
  165. package/dist/types/bid/index.d.ts +2 -0
  166. package/dist/types/bid/index.js +18 -0
  167. package/dist/types/bidding/index.d.ts +1 -0
  168. package/dist/types/bidding/index.js +17 -0
  169. package/dist/types/bidding/proposal-bidding-status.d.ts +3 -0
  170. package/dist/types/bidding/proposal-bidding-status.js +2 -0
  171. package/dist/types/bidding/proposal-dto.d.ts +3 -0
  172. package/dist/types/bidding/proposal-dto.js +2 -0
  173. package/dist/types/campaign/campaign-analytics.d.ts +7 -0
  174. package/dist/types/campaign/campaign-analytics.js +2 -0
  175. package/dist/types/campaign/campaign-expenses.d.ts +3 -0
  176. package/dist/types/campaign/campaign-expenses.js +2 -0
  177. package/dist/types/campaign/campaign-insights.js +2 -0
  178. package/dist/types/campaign/campaign-integrations.d.ts +6 -0
  179. package/dist/types/campaign/campaign-integrations.js +2 -0
  180. package/dist/types/campaign/campaign-job-count.d.ts +4 -0
  181. package/dist/types/campaign/campaign-job-count.js +2 -0
  182. package/dist/types/campaign/campaign.js +2 -0
  183. package/dist/types/campaign/index.js +22 -0
  184. package/dist/types/chat-message/chat-message.d.ts +4 -0
  185. package/dist/types/chat-message/chat-message.js +2 -0
  186. package/dist/types/chat-message/index.d.ts +1 -0
  187. package/dist/types/chat-message/index.js +17 -0
  188. package/dist/types/config/agency-config.d.ts +4 -0
  189. package/dist/types/config/agency-config.js +2 -0
  190. package/dist/types/config/index.d.ts +1 -0
  191. package/dist/types/config/index.js +17 -0
  192. package/dist/types/index.d.ts +15 -0
  193. package/dist/types/index.js +29 -0
  194. package/dist/types/job/index.d.ts +48 -0
  195. package/dist/types/job/index.js +19 -0
  196. package/dist/types/job/job-details.d.ts +36 -0
  197. package/dist/types/job/job-details.js +2 -0
  198. package/dist/types/job/job-note.d.ts +10 -0
  199. package/dist/types/job/job-note.js +2 -0
  200. package/dist/types/job/job-pipeline.d.ts +4 -0
  201. package/dist/types/job/job-pipeline.js +2 -0
  202. package/dist/types/job/job-status.d.ts +5 -0
  203. package/dist/types/job/job-status.js +12 -0
  204. package/dist/types/job/job-suitability.d.ts +3 -0
  205. package/dist/types/job/job-suitability.js +2 -0
  206. package/dist/types/job/job.d.ts +36 -0
  207. package/dist/types/job/job.js +2 -0
  208. package/dist/types/job/nuxt.d.ts +4 -0
  209. package/dist/types/job-filters/index.d.ts +1 -0
  210. package/dist/types/job-filters/index.js +17 -0
  211. package/dist/types/job-filters/job-filters.d.ts +4 -0
  212. package/dist/types/job-filters/job-filters.js +2 -0
  213. package/dist/types/knowledge-object/index.d.ts +1 -0
  214. package/dist/types/knowledge-object/index.js +17 -0
  215. package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
  216. package/dist/types/knowledge-object/knowledge-object.js +2 -0
  217. package/dist/types/logger/index.d.ts +1 -0
  218. package/dist/types/logger/index.js +17 -0
  219. package/dist/types/logger/log-event.js +2 -0
  220. package/dist/types/saved-search/index.d.ts +6 -0
  221. package/dist/types/saved-search/index.js +2 -0
  222. package/dist/types/scraper/index.d.ts +2 -0
  223. package/dist/types/scraper/index.js +18 -0
  224. package/dist/types/scraper/scrape-payload.d.ts +10 -0
  225. package/dist/types/scraper/scrape-payload.js +2 -0
  226. package/dist/types/scraper/scrape-response.d.ts +4 -0
  227. package/dist/types/scraper/scrape-response.js +2 -0
  228. package/dist/types/scraper/scrape-result.d.ts +8 -0
  229. package/dist/types/scraper/scrape-result.js +2 -0
  230. package/dist/types/shared.d.ts +8 -0
  231. package/dist/types/time-filter/index.d.ts +3 -0
  232. package/dist/types/time-filter/index.js +2 -0
  233. package/dist/types/transaction/index.d.ts +4 -0
  234. package/dist/types/upwork-account/index.d.ts +3 -0
  235. package/dist/types/upwork-account/index.js +19 -0
  236. package/dist/types/upwork-account/upwork-account-status.d.ts +3 -0
  237. package/dist/types/upwork-account/upwork-account-status.js +2 -0
  238. package/dist/types/upwork-account/upwork-business-manager-account.d.ts +7 -0
  239. package/dist/types/upwork-account/upwork-business-manager-account.js +2 -0
  240. package/dist/types/upwork-account/upwork-scraping-account.d.ts +5 -0
  241. package/dist/types/upwork-account/upwork-scraping-account.js +2 -0
  242. package/dist/types/usage/index.d.ts +6 -0
  243. package/dist/types/user/index.d.ts +15 -0
  244. package/dist/types/user/index.js +2 -0
  245. package/dist/utils/index.js +17 -0
  246. package/dist/utils/try-catch.js +25 -0
  247. package/package.json +1 -1
@@ -131,19 +131,19 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
131
131
  excludes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
132
132
  }>>;
133
133
  payment: import("zod").ZodNullable<import("zod").ZodObject<{
134
- paymentType: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["Fixed-price", "Hourly", "Unspecified"]>, "many">>;
134
+ paymentType: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["Unspecified", "Hourly", "Fixed-price"]>, "many">>;
135
135
  minFixedPrice: import("zod").ZodNullable<import("zod").ZodNumber>;
136
136
  maxFixedPrice: import("zod").ZodNullable<import("zod").ZodNumber>;
137
137
  minHourlyRate: import("zod").ZodNullable<import("zod").ZodNumber>;
138
138
  maxHourlyRate: import("zod").ZodNullable<import("zod").ZodNumber>;
139
139
  }, "strip", import("zod").ZodTypeAny, {
140
- paymentType: ("Unspecified" | "Fixed-price" | "Hourly")[] | null;
140
+ paymentType: ("Unspecified" | "Hourly" | "Fixed-price")[] | null;
141
141
  minFixedPrice: number | null;
142
142
  maxFixedPrice: number | null;
143
143
  minHourlyRate: number | null;
144
144
  maxHourlyRate: number | null;
145
145
  }, {
146
- paymentType: ("Unspecified" | "Fixed-price" | "Hourly")[] | null;
146
+ paymentType: ("Unspecified" | "Hourly" | "Fixed-price")[] | null;
147
147
  minFixedPrice: number | null;
148
148
  maxFixedPrice: number | null;
149
149
  minHourlyRate: number | null;
@@ -245,7 +245,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
245
245
  excludes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
246
246
  } | null;
247
247
  payment: {
248
- paymentType: ("Unspecified" | "Fixed-price" | "Hourly")[] | null;
248
+ paymentType: ("Unspecified" | "Hourly" | "Fixed-price")[] | null;
249
249
  minFixedPrice: number | null;
250
250
  maxFixedPrice: number | null;
251
251
  minHourlyRate: number | null;
@@ -295,7 +295,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
295
295
  excludes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
296
296
  } | null;
297
297
  payment: {
298
- paymentType: ("Unspecified" | "Fixed-price" | "Hourly")[] | null;
298
+ paymentType: ("Unspecified" | "Hourly" | "Fixed-price")[] | null;
299
299
  minFixedPrice: number | null;
300
300
  maxFixedPrice: number | null;
301
301
  minHourlyRate: number | null;
@@ -344,9 +344,8 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
344
344
  minimumBoost: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
345
345
  webhookUrl: import("zod").ZodNullable<import("zod").ZodString>;
346
346
  monthlyBudget: import("zod").ZodNullable<import("zod").ZodNumber>;
347
- suitabilityThreshold: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
348
347
  boostingThreshold: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
349
- leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>, import("zod").ZodNumber>>;
348
+ leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, import("zod").ZodNumber>>;
350
349
  expenses: import("zod").ZodObject<{
351
350
  biddingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
352
351
  boostingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
@@ -394,7 +393,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
394
393
  excludes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
395
394
  } | null;
396
395
  payment: {
397
- paymentType: ("Unspecified" | "Fixed-price" | "Hourly")[] | null;
396
+ paymentType: ("Unspecified" | "Hourly" | "Fixed-price")[] | null;
398
397
  minFixedPrice: number | null;
399
398
  maxFixedPrice: number | null;
400
399
  minHourlyRate: number | null;
@@ -443,9 +442,8 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
443
442
  minimumBoost: number | null;
444
443
  webhookUrl: string | null;
445
444
  monthlyBudget: number | null;
446
- suitabilityThreshold: number | null;
447
445
  boostingThreshold: number | null;
448
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
446
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
449
447
  expenses: {
450
448
  biddingAmount: number;
451
449
  boostingAmount: number;
@@ -475,7 +473,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
475
473
  excludes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
476
474
  } | null;
477
475
  payment: {
478
- paymentType: ("Unspecified" | "Fixed-price" | "Hourly")[] | null;
476
+ paymentType: ("Unspecified" | "Hourly" | "Fixed-price")[] | null;
479
477
  minFixedPrice: number | null;
480
478
  maxFixedPrice: number | null;
481
479
  minHourlyRate: number | null;
@@ -521,7 +519,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
521
519
  automatedBidding: boolean | null;
522
520
  webhookUrl: string | null;
523
521
  monthlyBudget: number | null;
524
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
522
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
525
523
  expenses: {
526
524
  biddingAmount?: number | undefined;
527
525
  boostingAmount?: number | undefined;
@@ -539,7 +537,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
539
537
  boostingEnabled?: boolean | null | undefined;
540
538
  maximumBoost?: number | null | undefined;
541
539
  minimumBoost?: number | null | undefined;
542
- suitabilityThreshold?: number | null | undefined;
543
540
  boostingThreshold?: number | null | undefined;
544
541
  }>;
545
542
  organization: import("zod").ZodObject<{
@@ -1110,12 +1107,13 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1110
1107
  answer: string;
1111
1108
  }>, "many">>;
1112
1109
  agentStatus: import("zod").ZodNullable<import("zod").ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
1113
- leadStatus: import("zod").ZodNullable<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>>;
1110
+ leadStatus: import("zod").ZodNullable<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
1114
1111
  biddingAmount: import("zod").ZodNullable<import("zod").ZodNumber>;
1115
1112
  boosted: import("zod").ZodNullable<import("zod").ZodBoolean>;
1116
1113
  boostingAmount: import("zod").ZodNullable<import("zod").ZodNumber>;
1117
1114
  biddingTaskScheduled: import("zod").ZodNullable<import("zod").ZodBoolean>;
1118
1115
  scheduledBiddingTime: import("zod").ZodNullable<import("zod").ZodNumber>;
1116
+ wonAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
1119
1117
  }>, "processed">, "strip", import("zod").ZodTypeAny, {
1120
1118
  uid: string | null;
1121
1119
  title: string | null;
@@ -1219,7 +1217,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1219
1217
  answer: string;
1220
1218
  }[] | null;
1221
1219
  agentStatus: "proposalFailed" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1222
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
1220
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1223
1221
  biddingTaskScheduled: boolean | null;
1224
1222
  scheduledBiddingTime: number | null;
1225
1223
  activity?: Partial<Record<"4h" | "24h", {
@@ -1243,6 +1241,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1243
1241
  unansweredInvites: number;
1244
1242
  } | null | undefined;
1245
1243
  proposalId?: string | undefined;
1244
+ wonAmount?: number | undefined;
1246
1245
  }, {
1247
1246
  uid: string | null;
1248
1247
  title: string | null;
@@ -1346,7 +1345,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1346
1345
  answer: string;
1347
1346
  }[] | null;
1348
1347
  agentStatus: "proposalFailed" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1349
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
1348
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1350
1349
  biddingTaskScheduled: boolean | null;
1351
1350
  scheduledBiddingTime: number | null;
1352
1351
  activity?: Partial<Record<"4h" | "24h", {
@@ -1370,6 +1369,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1370
1369
  unansweredInvites: number;
1371
1370
  } | null | undefined;
1372
1371
  proposalId?: string | undefined;
1372
+ wonAmount?: number | undefined;
1373
1373
  }>;
1374
1374
  bidder: import("zod").ZodObject<{
1375
1375
  id: import("zod").ZodString;
@@ -1464,7 +1464,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1464
1464
  excludes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
1465
1465
  } | null;
1466
1466
  payment: {
1467
- paymentType: ("Unspecified" | "Fixed-price" | "Hourly")[] | null;
1467
+ paymentType: ("Unspecified" | "Hourly" | "Fixed-price")[] | null;
1468
1468
  minFixedPrice: number | null;
1469
1469
  maxFixedPrice: number | null;
1470
1470
  minHourlyRate: number | null;
@@ -1513,9 +1513,8 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1513
1513
  minimumBoost: number | null;
1514
1514
  webhookUrl: string | null;
1515
1515
  monthlyBudget: number | null;
1516
- suitabilityThreshold: number | null;
1517
1516
  boostingThreshold: number | null;
1518
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
1517
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
1519
1518
  expenses: {
1520
1519
  biddingAmount: number;
1521
1520
  boostingAmount: number;
@@ -1679,7 +1678,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1679
1678
  answer: string;
1680
1679
  }[] | null;
1681
1680
  agentStatus: "proposalFailed" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1682
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
1681
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1683
1682
  biddingTaskScheduled: boolean | null;
1684
1683
  scheduledBiddingTime: number | null;
1685
1684
  activity?: Partial<Record<"4h" | "24h", {
@@ -1703,6 +1702,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1703
1702
  unansweredInvites: number;
1704
1703
  } | null | undefined;
1705
1704
  proposalId?: string | undefined;
1705
+ wonAmount?: number | undefined;
1706
1706
  };
1707
1707
  bidder: {
1708
1708
  id: string;
@@ -1745,7 +1745,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1745
1745
  excludes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
1746
1746
  } | null;
1747
1747
  payment: {
1748
- paymentType: ("Unspecified" | "Fixed-price" | "Hourly")[] | null;
1748
+ paymentType: ("Unspecified" | "Hourly" | "Fixed-price")[] | null;
1749
1749
  minFixedPrice: number | null;
1750
1750
  maxFixedPrice: number | null;
1751
1751
  minHourlyRate: number | null;
@@ -1791,7 +1791,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1791
1791
  automatedBidding: boolean | null;
1792
1792
  webhookUrl: string | null;
1793
1793
  monthlyBudget: number | null;
1794
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
1794
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
1795
1795
  expenses: {
1796
1796
  biddingAmount?: number | undefined;
1797
1797
  boostingAmount?: number | undefined;
@@ -1809,7 +1809,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1809
1809
  boostingEnabled?: boolean | null | undefined;
1810
1810
  maximumBoost?: number | null | undefined;
1811
1811
  minimumBoost?: number | null | undefined;
1812
- suitabilityThreshold?: number | null | undefined;
1813
1812
  boostingThreshold?: number | null | undefined;
1814
1813
  };
1815
1814
  organization: {
@@ -1960,7 +1959,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1960
1959
  answer: string;
1961
1960
  }[] | null;
1962
1961
  agentStatus: "proposalFailed" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1963
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
1962
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1964
1963
  biddingTaskScheduled: boolean | null;
1965
1964
  scheduledBiddingTime: number | null;
1966
1965
  activity?: Partial<Record<"4h" | "24h", {
@@ -1984,6 +1983,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1984
1983
  unansweredInvites: number;
1985
1984
  } | null | undefined;
1986
1985
  proposalId?: string | undefined;
1986
+ wonAmount?: number | undefined;
1987
1987
  };
1988
1988
  bidder: {
1989
1989
  id: string;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scrapeUserProfilePayloadSchema = exports.scrapePayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.scrapePayloadSchema = zod_1.z.object({
6
+ latestJobsUrls: zod_1.z.array(zod_1.z.string()),
7
+ cookies: zod_1.z.array(zod_1.z.any()),
8
+ username: zod_1.z.string(),
9
+ password: zod_1.z.string(),
10
+ });
11
+ exports.scrapeUserProfilePayloadSchema = zod_1.z.object({
12
+ profileUrl: zod_1.z.string(),
13
+ cookies: zod_1.z.array(zod_1.z.any()),
14
+ username: zod_1.z.string(),
15
+ password: zod_1.z.string(),
16
+ });
@@ -0,0 +1,345 @@
1
+ import { z } from 'zod';
2
+ export declare const scrapeResponseSchema: z.ZodObject<{
3
+ jobs: z.ZodArray<z.ZodObject<{
4
+ id: z.ZodNullable<z.ZodString>;
5
+ createdAt: z.ZodNullable<z.ZodNumber>;
6
+ title: z.ZodNullable<z.ZodString>;
7
+ category: z.ZodNullable<z.ZodString>;
8
+ skills: z.ZodNullable<z.ZodArray<z.ZodObject<{
9
+ name: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ name: string;
12
+ }, {
13
+ name: string;
14
+ }>, "many">>;
15
+ datetime: z.ZodNullable<z.ZodNumber>;
16
+ description: z.ZodNullable<z.ZodString>;
17
+ descriptionLength: z.ZodNullable<z.ZodNumber>;
18
+ connectsRequired: z.ZodNullable<z.ZodNumber>;
19
+ projectType: z.ZodNullable<z.ZodString>;
20
+ projectDuration: z.ZodNullable<z.ZodString>;
21
+ questions: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
22
+ jobUrl: z.ZodNullable<z.ZodString>;
23
+ metadata: z.ZodNullable<z.ZodObject<{
24
+ hours: z.ZodNullable<z.ZodString>;
25
+ duration: z.ZodNullable<z.ZodString>;
26
+ experienceLevel: z.ZodNullable<z.ZodString>;
27
+ hourlyRate: z.ZodNullable<z.ZodObject<{
28
+ min: z.ZodNullable<z.ZodNumber>;
29
+ max: z.ZodNullable<z.ZodNumber>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ max: number | null;
32
+ min: number | null;
33
+ }, {
34
+ max: number | null;
35
+ min: number | null;
36
+ }>>;
37
+ paymentType: z.ZodNullable<z.ZodString>;
38
+ fixedPrice: z.ZodNullable<z.ZodNumber>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ hours: string | null;
41
+ duration: string | null;
42
+ experienceLevel: string | null;
43
+ hourlyRate: {
44
+ max: number | null;
45
+ min: number | null;
46
+ } | null;
47
+ paymentType: string | null;
48
+ fixedPrice: number | null;
49
+ }, {
50
+ hours: string | null;
51
+ duration: string | null;
52
+ experienceLevel: string | null;
53
+ hourlyRate: {
54
+ max: number | null;
55
+ min: number | null;
56
+ } | null;
57
+ paymentType: string | null;
58
+ fixedPrice: number | null;
59
+ }>>;
60
+ clientInfo: z.ZodNullable<z.ZodObject<{
61
+ isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
62
+ numberOfReviews: z.ZodNullable<z.ZodNumber>;
63
+ rating: z.ZodNullable<z.ZodNumber>;
64
+ country: z.ZodNullable<z.ZodString>;
65
+ region: z.ZodNullable<z.ZodString>;
66
+ jobsPosted: z.ZodNullable<z.ZodNumber>;
67
+ totalSpent: z.ZodNullable<z.ZodNumber>;
68
+ numberOfHires: z.ZodNullable<z.ZodNumber>;
69
+ activeEngagements: z.ZodNullable<z.ZodNumber>;
70
+ openJobs: z.ZodNullable<z.ZodNumber>;
71
+ hireRate: z.ZodNullable<z.ZodNumber>;
72
+ memberSince: z.ZodNullable<z.ZodString>;
73
+ companyIndustry: z.ZodNullable<z.ZodString>;
74
+ companySize: z.ZodNullable<z.ZodString>;
75
+ enterpriseClient: z.ZodNullable<z.ZodBoolean>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ country: string | null;
78
+ region: string | null;
79
+ rating: number | null;
80
+ isPaymentVerified: boolean | null;
81
+ numberOfReviews: number | null;
82
+ jobsPosted: number | null;
83
+ totalSpent: number | null;
84
+ numberOfHires: number | null;
85
+ activeEngagements: number | null;
86
+ openJobs: number | null;
87
+ hireRate: number | null;
88
+ memberSince: string | null;
89
+ companyIndustry: string | null;
90
+ companySize: string | null;
91
+ enterpriseClient: boolean | null;
92
+ }, {
93
+ country: string | null;
94
+ region: string | null;
95
+ rating: number | null;
96
+ isPaymentVerified: boolean | null;
97
+ numberOfReviews: number | null;
98
+ jobsPosted: number | null;
99
+ totalSpent: number | null;
100
+ numberOfHires: number | null;
101
+ activeEngagements: number | null;
102
+ openJobs: number | null;
103
+ hireRate: number | null;
104
+ memberSince: string | null;
105
+ companyIndustry: string | null;
106
+ companySize: string | null;
107
+ enterpriseClient: boolean | null;
108
+ }>>;
109
+ vendorQualifications: z.ZodNullable<z.ZodObject<{
110
+ location: z.ZodNullable<z.ZodString>;
111
+ talentType: z.ZodNullable<z.ZodEnum<["Agency", "Independent", "unspecified"]>>;
112
+ englishLevel: z.ZodNullable<z.ZodString>;
113
+ minimumEarnings: z.ZodNullable<z.ZodNumber>;
114
+ jobSuccessScore: z.ZodNullable<z.ZodString>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ location: string | null;
117
+ talentType: "unspecified" | "Agency" | "Independent" | null;
118
+ englishLevel: string | null;
119
+ minimumEarnings: number | null;
120
+ jobSuccessScore: string | null;
121
+ }, {
122
+ location: string | null;
123
+ talentType: "unspecified" | "Agency" | "Independent" | null;
124
+ englishLevel: string | null;
125
+ minimumEarnings: number | null;
126
+ jobSuccessScore: string | null;
127
+ }>>;
128
+ processed: z.ZodNullable<z.ZodBoolean>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ id: string | null;
131
+ title: string | null;
132
+ metadata: {
133
+ hours: string | null;
134
+ duration: string | null;
135
+ experienceLevel: string | null;
136
+ hourlyRate: {
137
+ max: number | null;
138
+ min: number | null;
139
+ } | null;
140
+ paymentType: string | null;
141
+ fixedPrice: number | null;
142
+ } | null;
143
+ description: string | null;
144
+ datetime: number | null;
145
+ createdAt: number | null;
146
+ category: string | null;
147
+ skills: {
148
+ name: string;
149
+ }[] | null;
150
+ descriptionLength: number | null;
151
+ connectsRequired: number | null;
152
+ projectType: string | null;
153
+ projectDuration: string | null;
154
+ questions: string[] | null;
155
+ jobUrl: string | null;
156
+ clientInfo: {
157
+ country: string | null;
158
+ region: string | null;
159
+ rating: number | null;
160
+ isPaymentVerified: boolean | null;
161
+ numberOfReviews: number | null;
162
+ jobsPosted: number | null;
163
+ totalSpent: number | null;
164
+ numberOfHires: number | null;
165
+ activeEngagements: number | null;
166
+ openJobs: number | null;
167
+ hireRate: number | null;
168
+ memberSince: string | null;
169
+ companyIndustry: string | null;
170
+ companySize: string | null;
171
+ enterpriseClient: boolean | null;
172
+ } | null;
173
+ vendorQualifications: {
174
+ location: string | null;
175
+ talentType: "unspecified" | "Agency" | "Independent" | null;
176
+ englishLevel: string | null;
177
+ minimumEarnings: number | null;
178
+ jobSuccessScore: string | null;
179
+ } | null;
180
+ processed: boolean | null;
181
+ }, {
182
+ id: string | null;
183
+ title: string | null;
184
+ metadata: {
185
+ hours: string | null;
186
+ duration: string | null;
187
+ experienceLevel: string | null;
188
+ hourlyRate: {
189
+ max: number | null;
190
+ min: number | null;
191
+ } | null;
192
+ paymentType: string | null;
193
+ fixedPrice: number | null;
194
+ } | null;
195
+ description: string | null;
196
+ datetime: number | null;
197
+ createdAt: number | null;
198
+ category: string | null;
199
+ skills: {
200
+ name: string;
201
+ }[] | null;
202
+ descriptionLength: number | null;
203
+ connectsRequired: number | null;
204
+ projectType: string | null;
205
+ projectDuration: string | null;
206
+ questions: string[] | null;
207
+ jobUrl: string | null;
208
+ clientInfo: {
209
+ country: string | null;
210
+ region: string | null;
211
+ rating: number | null;
212
+ isPaymentVerified: boolean | null;
213
+ numberOfReviews: number | null;
214
+ jobsPosted: number | null;
215
+ totalSpent: number | null;
216
+ numberOfHires: number | null;
217
+ activeEngagements: number | null;
218
+ openJobs: number | null;
219
+ hireRate: number | null;
220
+ memberSince: string | null;
221
+ companyIndustry: string | null;
222
+ companySize: string | null;
223
+ enterpriseClient: boolean | null;
224
+ } | null;
225
+ vendorQualifications: {
226
+ location: string | null;
227
+ talentType: "unspecified" | "Agency" | "Independent" | null;
228
+ englishLevel: string | null;
229
+ minimumEarnings: number | null;
230
+ jobSuccessScore: string | null;
231
+ } | null;
232
+ processed: boolean | null;
233
+ }>, "many">;
234
+ cookies: z.ZodArray<z.ZodAny, "many">;
235
+ }, "strip", z.ZodTypeAny, {
236
+ jobs: {
237
+ id: string | null;
238
+ title: string | null;
239
+ metadata: {
240
+ hours: string | null;
241
+ duration: string | null;
242
+ experienceLevel: string | null;
243
+ hourlyRate: {
244
+ max: number | null;
245
+ min: number | null;
246
+ } | null;
247
+ paymentType: string | null;
248
+ fixedPrice: number | null;
249
+ } | null;
250
+ description: string | null;
251
+ datetime: number | null;
252
+ createdAt: number | null;
253
+ category: string | null;
254
+ skills: {
255
+ name: string;
256
+ }[] | null;
257
+ descriptionLength: number | null;
258
+ connectsRequired: number | null;
259
+ projectType: string | null;
260
+ projectDuration: string | null;
261
+ questions: string[] | null;
262
+ jobUrl: string | null;
263
+ clientInfo: {
264
+ country: string | null;
265
+ region: string | null;
266
+ rating: number | null;
267
+ isPaymentVerified: boolean | null;
268
+ numberOfReviews: number | null;
269
+ jobsPosted: number | null;
270
+ totalSpent: number | null;
271
+ numberOfHires: number | null;
272
+ activeEngagements: number | null;
273
+ openJobs: number | null;
274
+ hireRate: number | null;
275
+ memberSince: string | null;
276
+ companyIndustry: string | null;
277
+ companySize: string | null;
278
+ enterpriseClient: boolean | null;
279
+ } | null;
280
+ vendorQualifications: {
281
+ location: string | null;
282
+ talentType: "unspecified" | "Agency" | "Independent" | null;
283
+ englishLevel: string | null;
284
+ minimumEarnings: number | null;
285
+ jobSuccessScore: string | null;
286
+ } | null;
287
+ processed: boolean | null;
288
+ }[];
289
+ cookies: any[];
290
+ }, {
291
+ jobs: {
292
+ id: string | null;
293
+ title: string | null;
294
+ metadata: {
295
+ hours: string | null;
296
+ duration: string | null;
297
+ experienceLevel: string | null;
298
+ hourlyRate: {
299
+ max: number | null;
300
+ min: number | null;
301
+ } | null;
302
+ paymentType: string | null;
303
+ fixedPrice: number | null;
304
+ } | null;
305
+ description: string | null;
306
+ datetime: number | null;
307
+ createdAt: number | null;
308
+ category: string | null;
309
+ skills: {
310
+ name: string;
311
+ }[] | null;
312
+ descriptionLength: number | null;
313
+ connectsRequired: number | null;
314
+ projectType: string | null;
315
+ projectDuration: string | null;
316
+ questions: string[] | null;
317
+ jobUrl: string | null;
318
+ clientInfo: {
319
+ country: string | null;
320
+ region: string | null;
321
+ rating: number | null;
322
+ isPaymentVerified: boolean | null;
323
+ numberOfReviews: number | null;
324
+ jobsPosted: number | null;
325
+ totalSpent: number | null;
326
+ numberOfHires: number | null;
327
+ activeEngagements: number | null;
328
+ openJobs: number | null;
329
+ hireRate: number | null;
330
+ memberSince: string | null;
331
+ companyIndustry: string | null;
332
+ companySize: string | null;
333
+ enterpriseClient: boolean | null;
334
+ } | null;
335
+ vendorQualifications: {
336
+ location: string | null;
337
+ talentType: "unspecified" | "Agency" | "Independent" | null;
338
+ englishLevel: string | null;
339
+ minimumEarnings: number | null;
340
+ jobSuccessScore: string | null;
341
+ } | null;
342
+ processed: boolean | null;
343
+ }[];
344
+ cookies: any[];
345
+ }>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scrapeResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const job_1 = require("../job");
6
+ exports.scrapeResponseSchema = zod_1.z.object({
7
+ jobs: zod_1.z.array(job_1.upworkJobSchema),
8
+ cookies: zod_1.z.array(zod_1.z.any()),
9
+ });
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scrapeUserProfileResultSchema = exports.scrapeResultSchema = exports.regionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const lead_1 = require("../lead");
6
+ const user_1 = require("../user");
7
+ exports.regionSchema = zod_1.z.union([
8
+ zod_1.z.literal("USOnly"),
9
+ zod_1.z.literal("UKOnly"),
10
+ zod_1.z.literal("Worldwide"),
11
+ ]);
12
+ exports.scrapeResultSchema = zod_1.z.object({
13
+ jobs: zod_1.z.array(lead_1.upworkJobSchema),
14
+ cookies: zod_1.z.array(zod_1.z.any()),
15
+ region: exports.regionSchema,
16
+ usAccountCookies: zod_1.z.array(zod_1.z.any()).optional(),
17
+ ukAccountCookies: zod_1.z.array(zod_1.z.any()).optional(),
18
+ });
19
+ exports.scrapeUserProfileResultSchema = zod_1.z.object({
20
+ success: zod_1.z.boolean(),
21
+ message: zod_1.z.string(),
22
+ data: user_1.upworkProfileSchema,
23
+ });