lancer-shared 1.2.295 → 1.2.297
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.
- package/dist/bundle.cjs.js +145 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +122 -2
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +27 -0
- package/dist/schemas/account/bidder-account.d.ts +3 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/proxy/proxy-country.d.ts +1 -0
- package/dist/schemas/proxy/proxy.d.ts +6 -0
- package/dist/schemas/upwork-analytics/index.d.ts +200 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -6551,6 +6551,23 @@ const proxyCountryCodeToName = {
|
|
|
6551
6551
|
ZM: 'Zambia',
|
|
6552
6552
|
ZW: 'Zimbabwe',
|
|
6553
6553
|
};
|
|
6554
|
+
const largeCountries = [
|
|
6555
|
+
'US',
|
|
6556
|
+
'CN',
|
|
6557
|
+
'IN',
|
|
6558
|
+
'BR',
|
|
6559
|
+
'CA',
|
|
6560
|
+
'RU',
|
|
6561
|
+
'AU',
|
|
6562
|
+
'MX',
|
|
6563
|
+
'TR',
|
|
6564
|
+
'DE',
|
|
6565
|
+
'GB',
|
|
6566
|
+
'FR',
|
|
6567
|
+
'IT',
|
|
6568
|
+
'ES',
|
|
6569
|
+
'UA',
|
|
6570
|
+
];
|
|
6554
6571
|
|
|
6555
6572
|
const proxyStatusSchema = z.enum([
|
|
6556
6573
|
'invalid',
|
|
@@ -6580,6 +6597,7 @@ const proxySchema = z.object({
|
|
|
6580
6597
|
city: z.string().nullable(),
|
|
6581
6598
|
status: proxyStatusSchema.nullable(),
|
|
6582
6599
|
country: proxyCountryEnum.nullable(),
|
|
6600
|
+
region: z.string().nullable(),
|
|
6583
6601
|
accountId: z.string().nullable(),
|
|
6584
6602
|
type: proxyTypeSchema,
|
|
6585
6603
|
});
|
|
@@ -6648,6 +6666,7 @@ const connectUpworkAccountSchema = z.object({
|
|
|
6648
6666
|
password: z.string(),
|
|
6649
6667
|
securityQuestionAnswer: z.string().nullable(),
|
|
6650
6668
|
targetCountry: proxyCountryEnum,
|
|
6669
|
+
targetRegion: z.string().optional(),
|
|
6651
6670
|
});
|
|
6652
6671
|
const createBidderAccountSchema = bidderAccountSchema
|
|
6653
6672
|
.pick({
|
|
@@ -6679,7 +6698,6 @@ const verifyBidderAccountCredentialsResponseSchema = z.object({
|
|
|
6679
6698
|
accountName: z.string().nullable(),
|
|
6680
6699
|
accountPhotoUrl: z.string().nullable(),
|
|
6681
6700
|
agencies: z.array(bidderAccountAgencySchema).nullable(),
|
|
6682
|
-
specialisedProfiles: z.array(z.string()).nullable(),
|
|
6683
6701
|
});
|
|
6684
6702
|
const acceptUpworkInvitationSchema = z.object({
|
|
6685
6703
|
code: z.string(),
|
|
@@ -9532,6 +9550,81 @@ const transactionSchema = objectType({
|
|
|
9532
9550
|
stripe: transactionStripeMetadataSchema,
|
|
9533
9551
|
});
|
|
9534
9552
|
|
|
9553
|
+
const getJobsPostedResponseSchema = z.number();
|
|
9554
|
+
const getAverageClientHireRateResponseSchema = z.number();
|
|
9555
|
+
const getAverageClientTotalSpentResponseSchema = z.number();
|
|
9556
|
+
const getAverageHourlyRateBudgetResponseSchema = z.number();
|
|
9557
|
+
const getAverageFixedPriceBudgetResponseSchema = z.number();
|
|
9558
|
+
const getAveragePaidPerProjectResponseSchema = z.number();
|
|
9559
|
+
const getJobsCountLast3MonthsResponseSchema = z.array(z.object({
|
|
9560
|
+
period: z.string(),
|
|
9561
|
+
count: z.number(),
|
|
9562
|
+
}));
|
|
9563
|
+
const getJobsByCountryResponseSchema = z.array(z.object({
|
|
9564
|
+
country: z.string(),
|
|
9565
|
+
count: z.number(),
|
|
9566
|
+
}));
|
|
9567
|
+
const getAverageHourlyRatePaidByCountryResponseSchema = z.array(z.object({
|
|
9568
|
+
country: z.string(),
|
|
9569
|
+
avgHourlyRatePaid: z.number(),
|
|
9570
|
+
}));
|
|
9571
|
+
const getJobsByClientTotalSpentResponseSchema = z.array(z.object({
|
|
9572
|
+
range: z.string(),
|
|
9573
|
+
count: z.number(),
|
|
9574
|
+
}));
|
|
9575
|
+
const getJobsByHourPostedResponseSchema = z.array(z.object({
|
|
9576
|
+
hour: z.string(),
|
|
9577
|
+
count: z.number(),
|
|
9578
|
+
}));
|
|
9579
|
+
const getJobsByDayOfWeekResponseSchema = z.array(z.object({
|
|
9580
|
+
day: z.string(),
|
|
9581
|
+
count: z.number(),
|
|
9582
|
+
}));
|
|
9583
|
+
const getTop10SkillsResponseSchema = z.array(z.object({
|
|
9584
|
+
skill: z.string(),
|
|
9585
|
+
count: z.number(),
|
|
9586
|
+
}));
|
|
9587
|
+
const getTop10CountriesByJobsPostedResponseSchema = z.array(z.object({
|
|
9588
|
+
country: z.string(),
|
|
9589
|
+
jobsPosted: z.number(),
|
|
9590
|
+
}));
|
|
9591
|
+
const getTop10CountriesByClientTotalSpentResponseSchema = z.array(z.object({
|
|
9592
|
+
country: z.string(),
|
|
9593
|
+
totalSpent: z.number(),
|
|
9594
|
+
}));
|
|
9595
|
+
const getTop10CountriesByClientHireRateResponseSchema = z.array(z.object({
|
|
9596
|
+
country: z.string(),
|
|
9597
|
+
hireRate: z.number(),
|
|
9598
|
+
}));
|
|
9599
|
+
const getTop10CountriesByAvgHourlyBudgetResponseSchema = z.array(z.object({
|
|
9600
|
+
country: z.string(),
|
|
9601
|
+
avgHourlyBudget: z.number(),
|
|
9602
|
+
}));
|
|
9603
|
+
const getTop10CountriesByAvgPaidPerProjectResponseSchema = z.array(z.object({
|
|
9604
|
+
country: z.string(),
|
|
9605
|
+
avgPaidPerProject: z.number(),
|
|
9606
|
+
}));
|
|
9607
|
+
const getTop10CategoriesByJobsPostedResponseSchema = z.array(z.object({
|
|
9608
|
+
category: z.string(),
|
|
9609
|
+
jobsPosted: z.number(),
|
|
9610
|
+
}));
|
|
9611
|
+
const getTop10CategoriesByClientTotalSpentResponseSchema = z.array(z.object({
|
|
9612
|
+
category: z.string(),
|
|
9613
|
+
totalSpent: z.number(),
|
|
9614
|
+
}));
|
|
9615
|
+
const getTop10CategoriesByClientHireRateResponseSchema = z.array(z.object({
|
|
9616
|
+
category: z.string(),
|
|
9617
|
+
hireRate: z.number(),
|
|
9618
|
+
}));
|
|
9619
|
+
const getTop10CategoriesByAvgHourlyBudgetResponseSchema = z.array(z.object({
|
|
9620
|
+
category: z.string(),
|
|
9621
|
+
avgHourlyBudget: z.number(),
|
|
9622
|
+
}));
|
|
9623
|
+
const getTop10CategoriesByAvgPaidPerProjectResponseSchema = z.array(z.object({
|
|
9624
|
+
category: z.string(),
|
|
9625
|
+
avgPaidPerProject: z.number(),
|
|
9626
|
+
}));
|
|
9627
|
+
|
|
9535
9628
|
const breakdownSchema = objectType({
|
|
9536
9629
|
suitability: numberType(),
|
|
9537
9630
|
proposal: numberType(),
|
|
@@ -15451,6 +15544,7 @@ const ROUTES = {
|
|
|
15451
15544
|
DISMISS_CONNECTION_ERROR: (id) => `organizations/${id}/bidder-account-connection/dismiss-connection-error`,
|
|
15452
15545
|
CONNECT_UPWORK_ACCOUNT: (id) => `organizations/${id}/bidder-accounts/connect-upwork-account`,
|
|
15453
15546
|
RETRY_CONNECT_UPWORK_ACCOUNT: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}/retry-connect-upwork-account`,
|
|
15547
|
+
AVAILABLE_REGIONS: (id) => `organizations/${id}/bidder-accounts/available-regions`,
|
|
15454
15548
|
},
|
|
15455
15549
|
LEADS_BY_JOB_ID: (organizationId, jobId) => `organizations/${organizationId}/leads/${jobId}`,
|
|
15456
15550
|
UPDATE_CAMPAIGN_PRIORITY: (organizationId) => `organizations/${organizationId}/update-campaign-priority`,
|
|
@@ -15561,6 +15655,32 @@ const ROUTES = {
|
|
|
15561
15655
|
BASE: 'usage-events',
|
|
15562
15656
|
BY_ID: (id) => `usage-events/${id}`,
|
|
15563
15657
|
},
|
|
15658
|
+
UPWORK_ANALYTICS: {
|
|
15659
|
+
BASE: 'upwork-analytics',
|
|
15660
|
+
JOBS_POSTED: 'upwork-analytics/jobs-posted',
|
|
15661
|
+
AVERAGE_CLIENT_HIRE_RATE: 'upwork-analytics/average-client-hire-rate',
|
|
15662
|
+
AVERAGE_CLIENT_TOTAL_SPENT: 'upwork-analytics/average-client-total-spent',
|
|
15663
|
+
AVERAGE_HOURLY_RATE_BUDGET: 'upwork-analytics/average-hourly-rate-budget',
|
|
15664
|
+
AVERAGE_FIXED_PRICE_BUDGET: 'upwork-analytics/average-fixed-price-budget',
|
|
15665
|
+
AVERAGE_PAID_PER_PROJECT: 'upwork-analytics/average-paid-per-project',
|
|
15666
|
+
JOBS_COUNT_LAST_3_MONTHS: 'upwork-analytics/jobs-count-last-3-months',
|
|
15667
|
+
JOBS_BY_COUNTRY: 'upwork-analytics/jobs-by-country',
|
|
15668
|
+
JOBS_BY_CLIENT_TOTAL_SPENT: 'upwork-analytics/jobs-by-client-total-spent',
|
|
15669
|
+
JOBS_BY_HOUR_POSTED: 'upwork-analytics/jobs-by-hour-posted',
|
|
15670
|
+
JOBS_BY_DAY_OF_WEEK: 'upwork-analytics/jobs-by-day-of-week',
|
|
15671
|
+
AVERAGE_HOURLY_RATE_PAID_BY_COUNTRY: 'upwork-analytics/average-hourly-rate-paid-by-country',
|
|
15672
|
+
TOP_10_SKILLS: 'upwork-analytics/top-10-skills',
|
|
15673
|
+
TOP_10_COUNTRIES_BY_JOBS_POSTED: 'upwork-analytics/top-10-countries-by-jobs-posted',
|
|
15674
|
+
TOP_10_COUNTRIES_BY_CLIENT_TOTAL_SPENT: 'upwork-analytics/top-10-countries-by-client-total-spent',
|
|
15675
|
+
TOP_10_COUNTRIES_BY_CLIENT_HIRE_RATE: 'upwork-analytics/top-10-countries-by-client-hire-rate',
|
|
15676
|
+
TOP_10_COUNTRIES_BY_AVG_HOURLY_BUDGET: 'upwork-analytics/top-10-countries-by-avg-hourly-budget',
|
|
15677
|
+
TOP_10_COUNTRIES_BY_AVG_PAID_PER_PROJECT: 'upwork-analytics/top-10-countries-by-avg-paid-per-project',
|
|
15678
|
+
TOP_10_CATEGORIES_BY_JOBS_POSTED: 'upwork-analytics/top-10-categories-by-jobs-posted',
|
|
15679
|
+
TOP_10_CATEGORIES_BY_CLIENT_TOTAL_SPENT: 'upwork-analytics/top-10-categories-by-client-total-spent',
|
|
15680
|
+
TOP_10_CATEGORIES_BY_CLIENT_HIRE_RATE: 'upwork-analytics/top-10-categories-by-client-hire-rate',
|
|
15681
|
+
TOP_10_CATEGORIES_BY_AVG_HOURLY_BUDGET: 'upwork-analytics/top-10-categories-by-avg-hourly-budget',
|
|
15682
|
+
TOP_10_CATEGORIES_BY_AVG_PAID_PER_PROJECT: 'upwork-analytics/top-10-categories-by-avg-paid-per-project',
|
|
15683
|
+
},
|
|
15564
15684
|
BIDDER_INSTANCES: {
|
|
15565
15685
|
BASE: 'bidder-instances',
|
|
15566
15686
|
BY_ID: (id) => `bidder-instances/${id}`,
|
|
@@ -24356,11 +24476,23 @@ exports.freelancerBidPayloadSchema = freelancerBidPayloadSchema;
|
|
|
24356
24476
|
exports.freelancerBidProposalDataSchema = freelancerBidProposalDataSchema;
|
|
24357
24477
|
exports.generateLeadCountsRequestSchema = generateLeadCountsRequestSchema;
|
|
24358
24478
|
exports.generateSlug = generateSlug;
|
|
24479
|
+
exports.getAverageClientHireRateResponseSchema = getAverageClientHireRateResponseSchema;
|
|
24480
|
+
exports.getAverageClientTotalSpentResponseSchema = getAverageClientTotalSpentResponseSchema;
|
|
24481
|
+
exports.getAverageFixedPriceBudgetResponseSchema = getAverageFixedPriceBudgetResponseSchema;
|
|
24482
|
+
exports.getAverageHourlyRateBudgetResponseSchema = getAverageHourlyRateBudgetResponseSchema;
|
|
24483
|
+
exports.getAverageHourlyRatePaidByCountryResponseSchema = getAverageHourlyRatePaidByCountryResponseSchema;
|
|
24484
|
+
exports.getAveragePaidPerProjectResponseSchema = getAveragePaidPerProjectResponseSchema;
|
|
24359
24485
|
exports.getBiddingProcessingEventFromAnotherCampaignsPayloadSchema = getBiddingProcessingEventFromAnotherCampaignsPayloadSchema;
|
|
24360
24486
|
exports.getBiddingProcessingEventFromAnotherCampaignsResponseSchema = getBiddingProcessingEventFromAnotherCampaignsResponseSchema;
|
|
24361
24487
|
exports.getCampaignLeadsRequestQuerySchema = getCampaignLeadsRequestQuerySchema;
|
|
24362
24488
|
exports.getCampaignLeadsResponseSchema = getCampaignLeadsResponseSchema;
|
|
24363
24489
|
exports.getCampaignLeadsStatusEnum = getCampaignLeadsStatusEnum;
|
|
24490
|
+
exports.getJobsByClientTotalSpentResponseSchema = getJobsByClientTotalSpentResponseSchema;
|
|
24491
|
+
exports.getJobsByCountryResponseSchema = getJobsByCountryResponseSchema;
|
|
24492
|
+
exports.getJobsByDayOfWeekResponseSchema = getJobsByDayOfWeekResponseSchema;
|
|
24493
|
+
exports.getJobsByHourPostedResponseSchema = getJobsByHourPostedResponseSchema;
|
|
24494
|
+
exports.getJobsCountLast3MonthsResponseSchema = getJobsCountLast3MonthsResponseSchema;
|
|
24495
|
+
exports.getJobsPostedResponseSchema = getJobsPostedResponseSchema;
|
|
24364
24496
|
exports.getMultiloginBrowserException = getMultiloginBrowserException;
|
|
24365
24497
|
exports.getNextStatus = getNextStatus;
|
|
24366
24498
|
exports.getOrganizationLeadsRequestQuerySchema = getOrganizationLeadsRequestQuerySchema;
|
|
@@ -24368,6 +24500,17 @@ exports.getOrganizationLeadsStatusEnum = getOrganizationLeadsStatusEnum;
|
|
|
24368
24500
|
exports.getPreviousStatus = getPreviousStatus;
|
|
24369
24501
|
exports.getRouteWithoutAdminPrefix = getRouteWithoutAdminPrefix;
|
|
24370
24502
|
exports.getSamplesRequestSchema = getSamplesRequestSchema;
|
|
24503
|
+
exports.getTop10CategoriesByAvgHourlyBudgetResponseSchema = getTop10CategoriesByAvgHourlyBudgetResponseSchema;
|
|
24504
|
+
exports.getTop10CategoriesByAvgPaidPerProjectResponseSchema = getTop10CategoriesByAvgPaidPerProjectResponseSchema;
|
|
24505
|
+
exports.getTop10CategoriesByClientHireRateResponseSchema = getTop10CategoriesByClientHireRateResponseSchema;
|
|
24506
|
+
exports.getTop10CategoriesByClientTotalSpentResponseSchema = getTop10CategoriesByClientTotalSpentResponseSchema;
|
|
24507
|
+
exports.getTop10CategoriesByJobsPostedResponseSchema = getTop10CategoriesByJobsPostedResponseSchema;
|
|
24508
|
+
exports.getTop10CountriesByAvgHourlyBudgetResponseSchema = getTop10CountriesByAvgHourlyBudgetResponseSchema;
|
|
24509
|
+
exports.getTop10CountriesByAvgPaidPerProjectResponseSchema = getTop10CountriesByAvgPaidPerProjectResponseSchema;
|
|
24510
|
+
exports.getTop10CountriesByClientHireRateResponseSchema = getTop10CountriesByClientHireRateResponseSchema;
|
|
24511
|
+
exports.getTop10CountriesByClientTotalSpentResponseSchema = getTop10CountriesByClientTotalSpentResponseSchema;
|
|
24512
|
+
exports.getTop10CountriesByJobsPostedResponseSchema = getTop10CountriesByJobsPostedResponseSchema;
|
|
24513
|
+
exports.getTop10SkillsResponseSchema = getTop10SkillsResponseSchema;
|
|
24371
24514
|
exports.goToUrlException = goToUrlException;
|
|
24372
24515
|
exports.hasQuestionsEnum = hasQuestionsEnum;
|
|
24373
24516
|
exports.incorrectSecurityQuestionAnswerException = incorrectSecurityQuestionAnswerException;
|
|
@@ -24410,6 +24553,7 @@ exports.jobSkillsSchema = jobSkillsSchema;
|
|
|
24410
24553
|
exports.jobStatusOrder = jobStatusOrder;
|
|
24411
24554
|
exports.labelEnum = labelEnum;
|
|
24412
24555
|
exports.lancerBiddingExceptionEventMetadata = lancerBiddingExceptionEventMetadata;
|
|
24556
|
+
exports.largeCountries = largeCountries;
|
|
24413
24557
|
exports.leadAnalysisActivitySchema = leadAnalysisActivitySchema;
|
|
24414
24558
|
exports.leadBiddingConfigSchema = leadBiddingConfigSchema;
|
|
24415
24559
|
exports.leadResponseSchema = leadResponseSchema;
|