lancer-shared 1.2.140 → 1.2.141

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 (213) hide show
  1. package/dist/bundle.cjs.js +171 -17
  2. package/dist/constants/collections.js +11 -13
  3. package/dist/constants/common-questions.js +1 -4
  4. package/dist/constants/index.d.ts +1 -0
  5. package/dist/constants/index.js +10 -32
  6. package/dist/constants/job-filter-options.js +1 -4
  7. package/dist/constants/job-status.js +7 -12
  8. package/dist/constants/mappings/countryMapping.js +1 -3
  9. package/dist/constants/mappings/regionMapping.js +1 -3
  10. package/dist/constants/organization.d.ts +2 -2
  11. package/dist/constants/plan.d.ts +3 -0
  12. package/dist/constants/routes.js +39 -37
  13. package/dist/constants/upwork-accounts.js +3 -6
  14. package/dist/index.js +4 -20
  15. package/dist/schemas/account/account-status.js +2 -5
  16. package/dist/schemas/account/bidder-account.js +22 -24
  17. package/dist/schemas/account/index.js +3 -19
  18. package/dist/schemas/account/scraper-account.js +21 -24
  19. package/dist/schemas/ai/ai-config.js +8 -11
  20. package/dist/schemas/ai/index.js +3 -19
  21. package/dist/schemas/ai/proposal.js +10 -13
  22. package/dist/schemas/ai/suitability.js +8 -11
  23. package/dist/schemas/bid/bid-result.js +9 -13
  24. package/dist/schemas/bid/bid.js +29 -30
  25. package/dist/schemas/bid/index.js +2 -18
  26. package/dist/schemas/campaign/campaign-ai-metrics.js +5 -8
  27. package/dist/schemas/campaign/campaign-analytics.d.ts +360 -0
  28. package/dist/schemas/campaign/campaign-analytics.js +32 -31
  29. package/dist/schemas/campaign/campaign-expenses.js +5 -8
  30. package/dist/schemas/campaign/campaign-insights.js +30 -30
  31. package/dist/schemas/campaign/campaign-integrations.d.ts +5 -0
  32. package/dist/schemas/campaign/campaign-integrations.js +10 -13
  33. package/dist/schemas/campaign/campaign-job-count.js +3 -6
  34. package/dist/schemas/campaign/campaign.js +32 -35
  35. package/dist/schemas/campaign/index.js +7 -23
  36. package/dist/schemas/chat-message/chat-message.js +7 -10
  37. package/dist/schemas/chat-message/index.js +1 -17
  38. package/dist/schemas/config/agency-config.js +6 -9
  39. package/dist/schemas/config/index.js +1 -17
  40. package/dist/schemas/event/index.d.ts +58 -0
  41. package/dist/schemas/index.d.ts +1 -0
  42. package/dist/schemas/index.js +17 -32
  43. package/dist/schemas/job/haha.json +581 -0
  44. package/dist/schemas/job-filters/index.js +1 -17
  45. package/dist/schemas/job-filters/job-filters.js +62 -65
  46. package/dist/schemas/lead/index.js +173 -19
  47. package/dist/schemas/lead/lead-note.js +13 -16
  48. package/dist/schemas/lead/lead-status.js +3 -6
  49. package/dist/schemas/lead/nuxt.js +287 -0
  50. package/dist/schemas/logger/index.js +1 -17
  51. package/dist/schemas/logger/log-event.js +100 -49
  52. package/dist/schemas/meter-event/index.d.ts +12 -0
  53. package/dist/schemas/organization/index.d.ts +16 -7
  54. package/dist/schemas/organization/index.js +70 -17
  55. package/dist/schemas/organization/member.js +7 -0
  56. package/dist/schemas/organization/organization.d.ts +177 -7
  57. package/dist/schemas/organization/organization.js +14 -17
  58. package/dist/schemas/organization/subscription.js +17 -0
  59. package/dist/schemas/profile/index.d.ts +2551 -0
  60. package/dist/schemas/proxy/index.js +3 -17
  61. package/dist/schemas/proxy/proxy-available-replacements.js +3 -0
  62. package/dist/schemas/proxy/proxy-country.js +249 -0
  63. package/dist/schemas/proxy/proxy.js +25 -19
  64. package/dist/schemas/saved-search/index.js +8 -11
  65. package/dist/schemas/scraper/exceptions.d.ts +13 -1
  66. package/dist/schemas/scraper/index.js +2 -18
  67. package/dist/schemas/scraper/scrape-payload.d.ts +102 -0
  68. package/dist/schemas/scraper/scrape-payload.js +19 -14
  69. package/dist/schemas/scraper/scrape-result.js +21 -21
  70. package/dist/schemas/shared.js +12 -9
  71. package/dist/schemas/talent/index.d.ts +1314 -0
  72. package/dist/schemas/tier/index.d.ts +119 -0
  73. package/dist/schemas/time-filter/index.js +5 -8
  74. package/dist/schemas/transaction/index.js +17 -0
  75. package/dist/schemas/usage/index.js +18 -0
  76. package/dist/schemas/user/index.js +38 -41
  77. package/dist/types/account/account-status.js +1 -2
  78. package/dist/types/account/bidder-account.js +1 -2
  79. package/dist/types/account/index.js +3 -19
  80. package/dist/types/account/scraper-account.js +1 -2
  81. package/dist/types/ai/ai-config.js +1 -2
  82. package/dist/types/ai/index.js +3 -19
  83. package/dist/types/ai/proposal.js +1 -2
  84. package/dist/types/ai/suitability.js +1 -2
  85. package/dist/types/bid/bid-result.js +1 -2
  86. package/dist/types/bid/bid.js +1 -2
  87. package/dist/types/bid/index.js +2 -18
  88. package/dist/types/campaign/campaign-analytics.js +1 -2
  89. package/dist/types/campaign/campaign-expenses.js +1 -2
  90. package/dist/types/campaign/campaign-insights.js +1 -2
  91. package/dist/types/campaign/campaign-integrations.js +1 -2
  92. package/dist/types/campaign/campaign-job-count.js +1 -2
  93. package/dist/types/campaign/campaign.js +1 -2
  94. package/dist/types/campaign/index.js +6 -22
  95. package/dist/types/chat-message/chat-message.js +1 -2
  96. package/dist/types/chat-message/index.js +1 -17
  97. package/dist/types/config/agency-config.js +1 -2
  98. package/dist/types/config/index.js +1 -17
  99. package/dist/types/index.js +15 -29
  100. package/dist/types/job/index.js +3 -19
  101. package/dist/types/job/job-note.js +1 -2
  102. package/dist/types/job/job-status.js +1 -4
  103. package/dist/types/job/nuxt.js +1 -0
  104. package/dist/types/job-filters/index.js +1 -17
  105. package/dist/types/job-filters/job-filters.js +1 -2
  106. package/dist/types/logger/index.js +1 -17
  107. package/dist/types/logger/log-event.js +1 -2
  108. package/dist/types/saved-search/index.js +1 -2
  109. package/dist/types/scraper/index.js +2 -18
  110. package/dist/types/scraper/scrape-payload.js +1 -2
  111. package/dist/types/scraper/scrape-result.js +1 -2
  112. package/dist/types/shared.js +1 -0
  113. package/dist/types/time-filter/index.js +1 -2
  114. package/dist/types/transaction/index.js +1 -0
  115. package/dist/types/usage/index.js +1 -0
  116. package/dist/types/user/index.js +1 -2
  117. package/dist/utils/index.js +1 -17
  118. package/dist/utils/try-catch.js +8 -23
  119. package/package.json +1 -1
  120. package/dist/constants/account-status.d.ts +0 -3
  121. package/dist/constants/account-status.js +0 -17
  122. package/dist/constants/proxies.d.ts +0 -4
  123. package/dist/constants/upwork-filters.d.ts +0 -5
  124. package/dist/constants/upwork-filters.js +0 -75
  125. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
  126. package/dist/schemas/account/manager-account.d.ts +0 -116
  127. package/dist/schemas/account/manager-account.js +0 -38
  128. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  129. package/dist/schemas/ai-config/ai-config.js +0 -12
  130. package/dist/schemas/ai-config/index.d.ts +0 -1
  131. package/dist/schemas/ai-config/index.js +0 -17
  132. package/dist/schemas/bid/bid-status.d.ts +0 -30
  133. package/dist/schemas/bid/bid-status.js +0 -15
  134. package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
  135. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
  136. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
  137. package/dist/schemas/bidding/index.d.ts +0 -1
  138. package/dist/schemas/bidding/index.js +0 -17
  139. package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
  140. package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
  141. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  142. package/dist/schemas/bidding/proposal-dto.js +0 -18
  143. package/dist/schemas/job/feed-job.d.ts +0 -866
  144. package/dist/schemas/job/index.js +0 -19
  145. package/dist/schemas/job/job-details.js +0 -29
  146. package/dist/schemas/job/job-note.d.ts +0 -83
  147. package/dist/schemas/job/job-note.js +0 -30
  148. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  149. package/dist/schemas/job/job-pipeline.js +0 -29
  150. package/dist/schemas/job/job-status.d.ts +0 -3
  151. package/dist/schemas/job/job-status.js +0 -27
  152. package/dist/schemas/job/job-suitability.d.ts +0 -12
  153. package/dist/schemas/job/job-suitability.js +0 -13
  154. package/dist/schemas/job/job.d.ts +0 -1160
  155. package/dist/schemas/job/job.js +0 -90
  156. package/dist/schemas/job/pipeline-job.d.ts +0 -608
  157. package/dist/schemas/job/pipeline-job.js +0 -43
  158. package/dist/schemas/job/upwork-job.d.ts +0 -334
  159. package/dist/schemas/job/upwork-job.js +0 -60
  160. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  161. package/dist/schemas/knowledge-object/index.js +0 -17
  162. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  163. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  164. package/dist/schemas/lead/lead.d.ts +0 -1897
  165. package/dist/schemas/lead/lead.js +0 -143
  166. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  167. package/dist/schemas/scraper/scrape-response.js +0 -9
  168. package/dist/schemas/upwork-account/index.d.ts +0 -3
  169. package/dist/schemas/upwork-account/index.js +0 -19
  170. package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
  171. package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
  172. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
  173. package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
  174. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  175. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  176. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
  177. package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
  178. package/dist/types/account/manager-account.d.ts +0 -7
  179. package/dist/types/account/manager-account.js +0 -2
  180. package/dist/types/ai-config/ai-config.d.ts +0 -6
  181. package/dist/types/ai-config/ai-config.js +0 -2
  182. package/dist/types/ai-config/index.d.ts +0 -1
  183. package/dist/types/ai-config/index.js +0 -17
  184. package/dist/types/bid/bid-status.d.ts +0 -5
  185. package/dist/types/bid/bid-status.js +0 -2
  186. package/dist/types/bidding/index.d.ts +0 -1
  187. package/dist/types/bidding/index.js +0 -17
  188. package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
  189. package/dist/types/bidding/proposal-bidding-status.js +0 -2
  190. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  191. package/dist/types/bidding/proposal-dto.js +0 -2
  192. package/dist/types/job/job-details.d.ts +0 -36
  193. package/dist/types/job/job-details.js +0 -2
  194. package/dist/types/job/job-pipeline.d.ts +0 -4
  195. package/dist/types/job/job-pipeline.js +0 -2
  196. package/dist/types/job/job-suitability.d.ts +0 -3
  197. package/dist/types/job/job-suitability.js +0 -2
  198. package/dist/types/job/job.d.ts +0 -36
  199. package/dist/types/job/job.js +0 -2
  200. package/dist/types/knowledge-object/index.d.ts +0 -1
  201. package/dist/types/knowledge-object/index.js +0 -17
  202. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  203. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  204. package/dist/types/scraper/scrape-response.d.ts +0 -4
  205. package/dist/types/scraper/scrape-response.js +0 -2
  206. package/dist/types/upwork-account/index.d.ts +0 -3
  207. package/dist/types/upwork-account/index.js +0 -19
  208. package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
  209. package/dist/types/upwork-account/upwork-account-status.js +0 -2
  210. package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
  211. package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
  212. package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
  213. package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
@@ -6689,6 +6689,10 @@ const bidderAccountProviderDisplayMap = {
6689
6689
  'user-provided': 'User Provided',
6690
6690
  };
6691
6691
 
6692
+ const planSlugToNameMap = {
6693
+ "lancer-unlimited-launch-offer": "Lancer Unlimited - Launch Offer",
6694
+ };
6695
+
6692
6696
  var util;
6693
6697
  (function (util) {
6694
6698
  util.assertEqual = (val) => val;
@@ -12832,8 +12836,8 @@ const onboardingProgressSchema = z.object({
12832
12836
  startCampaign: z.boolean(),
12833
12837
  });
12834
12838
 
12835
- const organizationTypeSchema = z.enum(['agency', 'freelancer']);
12836
- const organizationTierEnum = z.enum(['free', 'premium']);
12839
+ const organizationTypeSchema = z.enum(["agency", "freelancer"]);
12840
+ const organizationTierEnum = z.enum(["free", "premium"]);
12837
12841
  const limitsSchema = objectType({
12838
12842
  monthlyCredits: numberType(),
12839
12843
  usedCredits: numberType(),
@@ -12867,13 +12871,14 @@ const organizationSchema = objectType({
12867
12871
  appTrialEndsAt: numberType().nullable(),
12868
12872
  oneTimePayments: oneTimePaymentsSchema.optional(),
12869
12873
  });
12874
+ const organizationUpdateSchema = objectType({ planId: stringType() });
12870
12875
  const caseStudySchema = objectType({
12871
12876
  id: stringType(),
12872
12877
  title: stringType(),
12873
12878
  description: stringType(),
12874
12879
  });
12875
12880
  z.object({
12876
- type: z.enum(['freelancer', 'agency']),
12881
+ type: z.enum(["freelancer", "agency"]),
12877
12882
  name: z.string(),
12878
12883
  summary: z.string(),
12879
12884
  coreServices: z.string(),
@@ -12894,9 +12899,9 @@ const createOrganizationSchema = organizationSchema.pick({
12894
12899
  type: true,
12895
12900
  });
12896
12901
  const trackUsageEventTypeEnum = z.enum([
12897
- 'suitabilityComplete',
12898
- 'proposalComplete',
12899
- 'biddingComplete',
12902
+ "suitabilityComplete",
12903
+ "proposalComplete",
12904
+ "biddingComplete",
12900
12905
  ]);
12901
12906
  const trackUsagePayloadSchema = objectType({
12902
12907
  event: usageEventTypeEnum,
@@ -12922,8 +12927,8 @@ const organizationSettingsSchema = objectType({
12922
12927
  aiConfig: aiConfigSchema,
12923
12928
  });
12924
12929
  const subscribePayloadSchema = objectType({
12925
- planId: stringType().min(1, 'Plan id is required.'),
12926
- paymentMethodId: stringType().min(1, 'Payment method is required.'),
12930
+ planId: stringType().min(1, "Plan id is required."),
12931
+ paymentMethodId: stringType().min(1, "Payment method is required."),
12927
12932
  toltReferral: stringType().optional(),
12928
12933
  couponCode: stringType().nullish(),
12929
12934
  });
@@ -13998,8 +14003,8 @@ const upworkProfileSchema = objectType({
13998
14003
  });
13999
14004
 
14000
14005
  class NoScraperAccountAvailableException extends Error {
14001
- code = 'NO_SCRAPER_ACCOUNT_AVAILABLE';
14002
- constructor(message = 'No scraper account available.') {
14006
+ code = "NO_SCRAPER_ACCOUNT_AVAILABLE";
14007
+ constructor(message = "No scraper account available.") {
14003
14008
  super(message);
14004
14009
  }
14005
14010
  }
@@ -14007,8 +14012,8 @@ const noScraperAccountAvailableException = (message) => {
14007
14012
  return new NoScraperAccountAvailableException(message);
14008
14013
  };
14009
14014
  class OpenPageException extends Error {
14010
- code = 'OPEN_PAGE_FAILED';
14011
- constructor(message = 'Failed to open page.') {
14015
+ code = "OPEN_PAGE_FAILED";
14016
+ constructor(message = "Failed to open page.") {
14012
14017
  super(message);
14013
14018
  }
14014
14019
  }
@@ -14016,8 +14021,8 @@ const openPageException = (message) => {
14016
14021
  return new OpenPageException(message);
14017
14022
  };
14018
14023
  class FeedScrapeException extends Error {
14019
- code = 'FEED_SCRAPE_FAILED';
14020
- constructor(message = 'Feed scrape failed.') {
14024
+ code = "FEED_SCRAPE_FAILED";
14025
+ constructor(message = "Feed scrape failed.") {
14021
14026
  super(message);
14022
14027
  }
14023
14028
  }
@@ -14025,8 +14030,8 @@ const feedScrapeException = (message) => {
14025
14030
  return new FeedScrapeException(message);
14026
14031
  };
14027
14032
  class ParseJobListingsException extends Error {
14028
- code = 'PARSE_JOB_LISTINGS_FAILED';
14029
- constructor(message = 'Failed to parse job listings.') {
14033
+ code = "PARSE_JOB_LISTINGS_FAILED";
14034
+ constructor(message = "Failed to parse job listings.") {
14030
14035
  super(message);
14031
14036
  }
14032
14037
  }
@@ -14034,7 +14039,7 @@ const parseJobListingsException = (message) => {
14034
14039
  return new ParseJobListingsException(message);
14035
14040
  };
14036
14041
  class ScrapeJobDetailsException extends Error {
14037
- code = 'SCRAPE_JOB_DETAILS_FAILED';
14042
+ code = "SCRAPE_JOB_DETAILS_FAILED";
14038
14043
  constructor(jobListing) {
14039
14044
  super(`Failed to scrape job details for ${JSON.stringify(jobListing)}.`);
14040
14045
  }
@@ -14042,6 +14047,28 @@ class ScrapeJobDetailsException extends Error {
14042
14047
  const scrapeJobDetailsException = (jobListing) => {
14043
14048
  return new ScrapeJobDetailsException(jobListing);
14044
14049
  };
14050
+ class ParseUpworkProfilesException extends Error {
14051
+ code = "PARSE_JOB_PROFILES_FAILED";
14052
+ constructor(message = "Failed to parse profiles.") {
14053
+ super(message);
14054
+ }
14055
+ }
14056
+ const parseUpworkProfilesException = (message) => {
14057
+ return new ParseUpworkProfilesException(message);
14058
+ };
14059
+ class ScraperAccountProxyNotFoundException extends Error {
14060
+ scraperAccountId;
14061
+ proxyId;
14062
+ code = "SCRAPER_ACCOUNT_PROXY_NOT_FOUND";
14063
+ constructor(scraperAccountId, proxyId, message = "Scraper account proxy not found.") {
14064
+ super(message);
14065
+ this.scraperAccountId = scraperAccountId;
14066
+ this.proxyId = proxyId;
14067
+ }
14068
+ }
14069
+ const scraperAccountProxyNotFoundException = (scraperAccountId, proxyId, message) => {
14070
+ return new ScraperAccountProxyNotFoundException(scraperAccountId, proxyId, message);
14071
+ };
14045
14072
 
14046
14073
  const systemPromptSchema = objectType({
14047
14074
  suitability: stringType(),
@@ -14206,6 +14233,125 @@ const bidderInstanceSchema = objectType({
14206
14233
  updatedAt: numberType(),
14207
14234
  });
14208
14235
 
14236
+ const skillSchema = objectType({
14237
+ skill: objectType({
14238
+ prettyName: stringType(),
14239
+ uid: stringType(),
14240
+ }),
14241
+ uid: stringType(),
14242
+ });
14243
+ const portfolioItemSchema = objectType({
14244
+ description: stringType().nullable(),
14245
+ title: stringType(),
14246
+ videoUrl: stringType().nullable(),
14247
+ uid: stringType(),
14248
+ thumbnailUrl: stringType().nullable(),
14249
+ publicPortfolioItem: booleanType(),
14250
+ category: objectType({
14251
+ id: stringType().nullable(),
14252
+ level1: stringType().nullable(),
14253
+ level2: stringType().nullable(),
14254
+ }),
14255
+ });
14256
+ const profileSchema = objectType({
14257
+ title: stringType(),
14258
+ firstName: stringType(),
14259
+ lastName: stringType(),
14260
+ description: stringType(),
14261
+ location: objectType({
14262
+ country: stringType(),
14263
+ state: stringType().nullable(),
14264
+ city: stringType().nullable(),
14265
+ region: stringType(),
14266
+ subregion: stringType(),
14267
+ timezone: stringType(),
14268
+ zip: stringType().nullable(),
14269
+ }),
14270
+ chargeRate: objectType({
14271
+ rawValue: stringType(),
14272
+ currency: stringType(),
14273
+ }),
14274
+ portrait: objectType({
14275
+ portrait: stringType(),
14276
+ }),
14277
+ profileUrl: stringType(),
14278
+ offerConsultations: booleanType(),
14279
+ jobSummariesAssignmentRids: anyType().nullable(),
14280
+ shortName: stringType(),
14281
+ skills: arrayType(skillSchema),
14282
+ stats: objectType({
14283
+ hideJss: booleanType(),
14284
+ hideEarnings: booleanType(),
14285
+ topRatedStatus: stringType(),
14286
+ topRatedStatusEx: stringType(),
14287
+ rate: numberType(),
14288
+ earned: numberType(),
14289
+ jobSuccessScore: numberType(),
14290
+ rankInfo: anyType().nullable(),
14291
+ totalHours: numberType(),
14292
+ totalHourlyJobs: numberType(),
14293
+ totalFpJobs: numberType(),
14294
+ totalCompletedJobs: numberType(),
14295
+ }),
14296
+ portfolioItems: arrayType(portfolioItemSchema),
14297
+ totalPortfolioItems: numberType(),
14298
+ specializedProfiles: arrayType(anyType()),
14299
+ isDiversityCertified: booleanType(),
14300
+ isBoosted: booleanType(),
14301
+ boosted: booleanType(),
14302
+ boostedWouldHaveBeen: booleanType(),
14303
+ });
14304
+ const nuxtStateProfileSchema = objectType({
14305
+ identity: objectType({
14306
+ id: stringType(),
14307
+ ciphertext: stringType(),
14308
+ uid: stringType(),
14309
+ }),
14310
+ isPIBAvailable: booleanType(),
14311
+ profile: profileSchema,
14312
+ agency: objectType({
14313
+ orgId: stringType(),
14314
+ ciphertext: stringType(),
14315
+ name: stringType(),
14316
+ classifications: arrayType(anyType()),
14317
+ logo: stringType().nullable(),
14318
+ hideEarnings: booleanType(),
14319
+ totalEarnings: numberType(),
14320
+ isAgencyDiversityCertified: arrayType(anyType()),
14321
+ }),
14322
+ options: objectType({
14323
+ position: numberType(),
14324
+ }),
14325
+ });
14326
+ const nuxtStateProfilesSearchSchema = objectType({
14327
+ status: objectType({
14328
+ loading: booleanType(),
14329
+ loaded: booleanType(),
14330
+ failed: booleanType(),
14331
+ }),
14332
+ profiles: arrayType(nuxtStateProfileSchema),
14333
+ currentPage: numberType(),
14334
+ paging: objectType({
14335
+ total: numberType(),
14336
+ offset: numberType(),
14337
+ count: numberType(),
14338
+ originTotal: numberType(),
14339
+ pagesTotal: numberType(),
14340
+ page: numberType(),
14341
+ perPage: numberType(),
14342
+ }),
14343
+ flags: objectType({
14344
+ portfolioSearch: booleanType(),
14345
+ }),
14346
+ searchQueryCache: recordType(stringType()),
14347
+ "handle-response-data": recordType(anyType()),
14348
+ });
14349
+ const profileSearchNuxtStateSchema = objectType({
14350
+ state: objectType({
14351
+ profilesSearch: nuxtStateProfilesSearchSchema,
14352
+ }),
14353
+ });
14354
+
14209
14355
  // Main wrapper function
14210
14356
  async function tryCatch(promise) {
14211
14357
  try {
@@ -14612,6 +14758,7 @@ exports.NoScraperAccountAvailableException = NoScraperAccountAvailableException;
14612
14758
  exports.OpenPageException = OpenPageException;
14613
14759
  exports.ParseConnectsException = ParseConnectsException;
14614
14760
  exports.ParseJobListingsException = ParseJobListingsException;
14761
+ exports.ParseUpworkProfilesException = ParseUpworkProfilesException;
14615
14762
  exports.ProposalErrorAlertException = ProposalErrorAlertException;
14616
14763
  exports.ProposalFormWarningAlertException = ProposalFormWarningAlertException;
14617
14764
  exports.ProposalGenerationFailedException = ProposalGenerationFailedException;
@@ -14620,6 +14767,7 @@ exports.PuppeteerConnectionErrorException = PuppeteerConnectionErrorException;
14620
14767
  exports.QuestionPairNotMatchingException = QuestionPairNotMatchingException;
14621
14768
  exports.ROUTES = ROUTES;
14622
14769
  exports.ScrapeJobDetailsException = ScrapeJobDetailsException;
14770
+ exports.ScraperAccountProxyNotFoundException = ScraperAccountProxyNotFoundException;
14623
14771
  exports.SelectAgencyException = SelectAgencyException;
14624
14772
  exports.SelectContractorException = SelectContractorException;
14625
14773
  exports.SelectorNotFoundError = SelectorNotFoundError;
@@ -14783,6 +14931,7 @@ exports.notificationConfigSchema = notificationConfigSchema;
14783
14931
  exports.nuxtStateJobDetailsSchema = nuxtStateJobDetailsSchema;
14784
14932
  exports.nuxtStateJobSchema = nuxtStateJobSchema;
14785
14933
  exports.nuxtStateJobsSearchSchema = nuxtStateJobsSearchSchema;
14934
+ exports.nuxtStateProfilesSearchSchema = nuxtStateProfilesSearchSchema;
14786
14935
  exports.onboardingProgressSchema = onboardingProgressSchema;
14787
14936
  exports.openPageException = openPageException;
14788
14937
  exports.organizationCampaignStatsSchema = organizationCampaignStatsSchema;
@@ -14792,18 +14941,22 @@ exports.organizationSchema = organizationSchema;
14792
14941
  exports.organizationSettingsSchema = organizationSettingsSchema;
14793
14942
  exports.organizationTierEnum = organizationTierEnum;
14794
14943
  exports.organizationTypeSchema = organizationTypeSchema;
14944
+ exports.organizationUpdateSchema = organizationUpdateSchema;
14795
14945
  exports.parseConnectsException = parseConnectsException;
14796
14946
  exports.parseJobListingsException = parseJobListingsException;
14947
+ exports.parseUpworkProfilesException = parseUpworkProfilesException;
14797
14948
  exports.passwordSchema = passwordSchema;
14798
14949
  exports.paymentTypeEnum = paymentTypeEnum;
14799
14950
  exports.periodTypeSchema = periodTypeSchema;
14800
14951
  exports.periodUsageSchema = periodUsageSchema;
14801
14952
  exports.planFeatureSchema = planFeatureSchema;
14802
14953
  exports.planSchema = planSchema;
14954
+ exports.planSlugToNameMap = planSlugToNameMap;
14803
14955
  exports.planStripeMetadataSchema = planStripeMetadataSchema;
14804
14956
  exports.pluralize = pluralize;
14805
14957
  exports.portfolioSchema = portfolioSchema;
14806
14958
  exports.processFeedPayloadSchema = processFeedPayloadSchema;
14959
+ exports.profileSearchNuxtStateSchema = profileSearchNuxtStateSchema;
14807
14960
  exports.projectDurationEnum = projectDurationEnum;
14808
14961
  exports.proposalCompleteEventMetadataSchema = proposalCompleteEventMetadataSchema;
14809
14962
  exports.proposalErrorAlertException = proposalErrorAlertException;
@@ -14848,6 +15001,7 @@ exports.scrapePayloadSchema = scrapePayloadSchema;
14848
15001
  exports.scrapeResultSchema = scrapeResultSchema;
14849
15002
  exports.scrapeUserProfileRequestSchema = scrapeUserProfileRequestSchema;
14850
15003
  exports.scraperAccountErrorEventMetadata = scraperAccountErrorEventMetadata;
15004
+ exports.scraperAccountProxyNotFoundException = scraperAccountProxyNotFoundException;
14851
15005
  exports.scraperAccountRegionEnum = scraperAccountRegionEnum;
14852
15006
  exports.scraperAccountSchema = scraperAccountSchema;
14853
15007
  exports.scraperAccountType = scraperAccountType;
@@ -1,16 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COLLECTIONS = void 0;
4
1
  // Base collection names
5
- exports.COLLECTIONS = {
6
- USERS: 'users',
7
- SETTINGS: 'settings',
8
- CAMPAIGNS: 'campaigns',
9
- LEADS: 'leads',
10
- EVENTS: 'events',
11
- SCRAPER_ACCOUNTS: 'scrapers',
12
- BIDDER_ACCOUNTS: 'bidders',
2
+ export const COLLECTIONS = {
3
+ USERS: "users",
4
+ SETTINGS: "settings",
5
+ CAMPAIGNS: "campaigns",
6
+ LEADS: "leads",
7
+ EVENTS: "events",
8
+ SCRAPER_ACCOUNTS: "scrapers",
9
+ BIDDER_ACCOUNTS: "bidders",
13
10
  CAMPAIGN_ACTIVITIES: (userId, campaignId) => `users/${userId}/campaigns/${campaignId}/activities`,
14
- ORGANIZATIONS: 'organizations',
15
- PROXIES: 'proxies',
11
+ ORGANIZATIONS: "organizations",
12
+ PROXIES: "proxies",
13
+ TRANSACTIONS: "transactions",
16
14
  };
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.commonQuestions = void 0;
4
- exports.commonQuestions = [
1
+ export const commonQuestions = [
5
2
  {
6
3
  id: 'similar_experience',
7
4
  question: 'Describe your recent experience with similar projects',
@@ -6,3 +6,4 @@ export { default as countryMapping } from "./mappings/countryMapping";
6
6
  export { default as regionMapping } from "./mappings/regionMapping";
7
7
  export * from "./routes";
8
8
  export * from "./upwork-accounts";
9
+ export * from "./plan";
@@ -1,24 +1,4 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- var __importDefault = (this && this.__importDefault) || function (mod) {
17
- return (mod && mod.__esModule) ? mod : { "default": mod };
18
- };
19
- Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.regionMapping = exports.countryMapping = exports.paths = void 0;
21
- exports.paths = {
1
+ export const paths = {
22
2
  auth: {
23
3
  register: `auth/register`,
24
4
  },
@@ -27,14 +7,12 @@ exports.paths = {
27
7
  details: (id) => `users/${id}`,
28
8
  },
29
9
  };
30
- __exportStar(require("./job-filter-options"), exports);
31
- var countryMapping_1 = require("./mappings/countryMapping");
32
- Object.defineProperty(exports, "countryMapping", { enumerable: true, get: function () { return __importDefault(countryMapping_1).default; } });
33
- var regionMapping_1 = require("./mappings/regionMapping");
34
- Object.defineProperty(exports, "regionMapping", { enumerable: true, get: function () { return __importDefault(regionMapping_1).default; } });
35
- __exportStar(require("./job-filter-options"), exports);
36
- __exportStar(require("./common-questions"), exports);
37
- __exportStar(require("./job-status"), exports);
38
- __exportStar(require("./routes"), exports);
39
- __exportStar(require("./collections"), exports);
40
- __exportStar(require("./upwork-accounts"), exports);
10
+ export * from './job-filter-options';
11
+ export { default as countryMapping } from './mappings/countryMapping';
12
+ export { default as regionMapping } from './mappings/regionMapping';
13
+ export * from './job-filter-options';
14
+ export * from './common-questions';
15
+ export * from './job-status';
16
+ export * from './routes';
17
+ export * from './collections';
18
+ export * from './upwork-accounts';
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JOB_FILTER_OPTIONS = void 0;
4
- exports.JOB_FILTER_OPTIONS = {
1
+ export const JOB_FILTER_OPTIONS = {
5
2
  REGIONS: ["Worldwide", "UKOnly", "USOnly"],
6
3
  PROJECT_DURATION: [
7
4
  "Less than 1 month",
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getNextStatus = exports.getPreviousStatus = exports.jobStatusOrder = void 0;
4
- exports.jobStatusOrder = [
1
+ export const jobStatusOrder = [
5
2
  "leads",
6
3
  "contacted",
7
4
  "viewed",
@@ -10,17 +7,15 @@ exports.jobStatusOrder = [
10
7
  "won",
11
8
  "lost",
12
9
  ];
13
- const getPreviousStatus = (status) => {
10
+ export const getPreviousStatus = (status) => {
14
11
  if (status === "won")
15
12
  return "negotiations";
16
13
  if (status === "lost")
17
14
  return "negotiations";
18
- const index = exports.jobStatusOrder.indexOf(status);
19
- return index > 0 ? exports.jobStatusOrder[index - 1] : null;
15
+ const index = jobStatusOrder.indexOf(status);
16
+ return index > 0 ? jobStatusOrder[index - 1] : null;
20
17
  };
21
- exports.getPreviousStatus = getPreviousStatus;
22
- const getNextStatus = (status) => {
23
- const index = exports.jobStatusOrder.indexOf(status);
24
- return index < exports.jobStatusOrder.length - 1 ? exports.jobStatusOrder[index + 1] : null;
18
+ export const getNextStatus = (status) => {
19
+ const index = jobStatusOrder.indexOf(status);
20
+ return index < jobStatusOrder.length - 1 ? jobStatusOrder[index + 1] : null;
25
21
  };
26
- exports.getNextStatus = getNextStatus;
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  const countryMapping = {
4
2
  USA: "United States",
5
3
  GBR: "United Kingdom",
@@ -119,4 +117,4 @@ const countryMapping = {
119
117
  VCT: "Saint Vincent and the Grenadines",
120
118
  VGB: "British Virgin Islands",
121
119
  };
122
- exports.default = countryMapping;
120
+ export default countryMapping;
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  const regionMapping = {
4
2
  Africa: [
5
3
  "Algeria",
@@ -239,4 +237,4 @@ const regionMapping = {
239
237
  "Wallis and Futuna",
240
238
  ],
241
239
  };
242
- exports.default = regionMapping;
240
+ export default regionMapping;
@@ -1,2 +1,2 @@
1
- import { CreditDeductionEventType } from "../schemas";
2
- export declare const creditDeductionAmountMap: Record<CreditDeductionEventType, number>;
1
+ import { TrackUsageEventType } from "../schemas";
2
+ export declare const creditDeductionAmountMap: Record<TrackUsageEventType, number>;
@@ -0,0 +1,3 @@
1
+ export declare const planSlugToNameMap: {
2
+ readonly "lancer-unlimited-launch-offer": "Lancer Unlimited - Launch Offer";
3
+ };
@@ -1,17 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildRoute = exports.ROUTES = void 0;
4
- exports.ROUTES = {
1
+ export const ROUTES = {
5
2
  AUTH: {
6
- BASE: 'auth',
7
- REGISTER: 'auth/register',
3
+ BASE: "auth",
4
+ REGISTER: "auth/register",
8
5
  },
9
6
  EVENTS: {
10
- BASE: 'events',
7
+ BASE: "events",
11
8
  BY_ID: (id) => `events/${id}`,
12
9
  },
13
10
  CAMPAIGNS: {
14
- BASE: 'campaigns',
11
+ BASE: "campaigns",
15
12
  BY_ID: (id) => `campaigns/${id}`,
16
13
  LEADS: {
17
14
  BASE: (campaignId) => `campaigns/${campaignId}/leads`,
@@ -44,71 +41,76 @@ exports.ROUTES = {
44
41
  },
45
42
  },
46
43
  JOBS: {
47
- BASE: 'jobs',
44
+ BASE: "jobs",
48
45
  BY_ID: (id) => `jobs/${id}`,
49
- IMPORT: 'jobs/import',
50
- FILTER_OPTIONS: 'jobs/filter-options',
51
- TOTAL_JOBS: 'jobs/total-jobs',
46
+ BY_URL: (url) => `jobs/${encodeURIComponent(url)}`,
47
+ IMPORT: "jobs/import",
48
+ FILTER_OPTIONS: "jobs/filter-options",
49
+ TOTAL_JOBS: "jobs/total-jobs",
52
50
  GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
53
- SEARCH: 'jobs/search',
51
+ SEARCH: "jobs/search",
54
52
  },
55
53
  USERS: {
56
- BASE: 'users',
54
+ BASE: "users",
57
55
  BY_ID: (id) => `users/${id}`,
58
56
  },
59
57
  AI_CONFIG: {
60
- BASE: 'ai-config',
61
- GENERATE_KNOWLEDGE_BASE: 'ai-config/generate-knowledge-base',
58
+ BASE: "ai-config",
59
+ GENERATE_KNOWLEDGE_BASE: "ai-config/generate-knowledge-base",
62
60
  },
63
61
  COOKIES: {
64
- BASE: 'cookies',
65
- SCRAPE: 'cookies/scrape-cookies',
62
+ BASE: "cookies",
63
+ SCRAPE: "cookies/scrape-cookies",
66
64
  },
67
65
  SCRAPING: {
68
- BASE: 'scraping',
69
- START_SCRAPING: 'scraping/start',
70
- START_WORLDWIDE_SCRAPING: 'scraping/start-worldwide',
71
- START_US_SCRAPING: 'scraping/start-us',
72
- START_UK_SCRAPING: 'scraping/start-uk',
73
- UPDATE_ACTIVITY_4H_WORLDWIDE: 'scraping/update-activity/4h',
74
- UPDATE_ACTIVITY_4H_UK: 'scraping/update-activity/4h/uk',
75
- UPDATE_ACTIVITY_4H_US: 'scraping/update-activity/4h/us',
76
- UPDATE_ACTIVITY_24H_WORLDWIDE: 'scraping/update-activity/24h',
77
- UPDATE_ACTIVITY_24H_UK: 'scraping/update-activity/24h/uk',
78
- UPDATE_ACTIVITY_24H_US: 'scraping/update-activity/24h/us',
66
+ BASE: "scraping",
67
+ START_SCRAPING: "scraping/start",
68
+ START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
69
+ START_US_SCRAPING: "scraping/start-us",
70
+ START_UK_SCRAPING: "scraping/start-uk",
71
+ UPDATE_ACTIVITY_4H_WORLDWIDE: "scraping/update-activity/4h",
72
+ UPDATE_ACTIVITY_4H_UK: "scraping/update-activity/4h/uk",
73
+ UPDATE_ACTIVITY_4H_US: "scraping/update-activity/4h/us",
74
+ UPDATE_ACTIVITY_24H_WORLDWIDE: "scraping/update-activity/24h",
75
+ UPDATE_ACTIVITY_24H_UK: "scraping/update-activity/24h/uk",
76
+ UPDATE_ACTIVITY_24H_US: "scraping/update-activity/24h/us",
77
+ SCRAPE_FEED_WORLDWIDE: "scraping/feed-worldwide",
78
+ SCRAPE_FEED_UK: "scraping/feed-uk",
79
+ SCRAPE_FEED_US: "scraping/feed-us",
80
+ SCRAPE_JOB: "scraping/job",
81
+ SCRAPE_JOB_ACTIVITY: "scraping/job-activity",
79
82
  },
80
83
  ADMIN: {
81
- BASE: 'admin',
84
+ BASE: "admin",
82
85
  BIDDER_ACCOUNTS: {
83
- BASE: 'admin/bidder-accounts',
86
+ BASE: "admin/bidder-accounts",
84
87
  BY_ID: (id) => `admin/bidder-accounts/${id}`,
85
88
  BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
86
89
  BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
87
90
  },
88
91
  SCRAPER_ACCOUNTS: {
89
- BASE: 'admin/scraper-accounts',
92
+ BASE: "admin/scraper-accounts",
90
93
  BY_ID: (id) => `admin/scraper-accounts/${id}`,
91
94
  BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
92
95
  BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
93
96
  },
94
97
  PROXIES: {
95
- BASE: 'admin/proxies',
98
+ BASE: "admin/proxies",
96
99
  BY_ID: (id) => `admin/proxies/${id}`,
97
100
  REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
98
- SYNC: 'admin/proxies/sync',
101
+ SYNC: "admin/proxies/sync",
99
102
  },
100
103
  },
101
104
  BID: {
102
- BASE: 'bid',
105
+ BASE: "bid",
103
106
  BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
104
107
  },
105
108
  };
106
109
  // Helper function to build route with parameters
107
- const buildRoute = (route, params = {}) => {
110
+ export const buildRoute = (route, params = {}) => {
108
111
  let builtRoute = route;
109
112
  Object.entries(params).forEach(([key, value]) => {
110
113
  builtRoute = builtRoute.replace(`:${key}`, value);
111
114
  });
112
115
  return builtRoute;
113
116
  };
114
- exports.buildRoute = buildRoute;
@@ -1,21 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bidderAccountProviderDisplayMap = exports.accountStatusDisplayMap = exports.accountStatusOrder = void 0;
4
- exports.accountStatusOrder = [
1
+ export const accountStatusOrder = [
5
2
  'verification_required',
6
3
  'shadow_banned',
7
4
  'healthy',
8
5
  'banned',
9
6
  'suspended',
10
7
  ];
11
- exports.accountStatusDisplayMap = {
8
+ export const accountStatusDisplayMap = {
12
9
  verification_required: 'Verification Required',
13
10
  shadow_banned: 'Shadow Banned',
14
11
  healthy: 'Healthy',
15
12
  banned: 'Banned',
16
13
  suspended: 'Suspended',
17
14
  };
18
- exports.bidderAccountProviderDisplayMap = {
15
+ export const bidderAccountProviderDisplayMap = {
19
16
  'lancer-provided': 'Lancer Provided',
20
17
  'user-provided': 'User Provided',
21
18
  };