lancer-shared 1.2.296 → 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 +124 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +102 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +26 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/upwork-analytics/index.d.ts +200 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -9550,6 +9550,81 @@ const transactionSchema = objectType({
|
|
|
9550
9550
|
stripe: transactionStripeMetadataSchema,
|
|
9551
9551
|
});
|
|
9552
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
|
+
|
|
9553
9628
|
const breakdownSchema = objectType({
|
|
9554
9629
|
suitability: numberType(),
|
|
9555
9630
|
proposal: numberType(),
|
|
@@ -15580,6 +15655,32 @@ const ROUTES = {
|
|
|
15580
15655
|
BASE: 'usage-events',
|
|
15581
15656
|
BY_ID: (id) => `usage-events/${id}`,
|
|
15582
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
|
+
},
|
|
15583
15684
|
BIDDER_INSTANCES: {
|
|
15584
15685
|
BASE: 'bidder-instances',
|
|
15585
15686
|
BY_ID: (id) => `bidder-instances/${id}`,
|
|
@@ -24375,11 +24476,23 @@ exports.freelancerBidPayloadSchema = freelancerBidPayloadSchema;
|
|
|
24375
24476
|
exports.freelancerBidProposalDataSchema = freelancerBidProposalDataSchema;
|
|
24376
24477
|
exports.generateLeadCountsRequestSchema = generateLeadCountsRequestSchema;
|
|
24377
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;
|
|
24378
24485
|
exports.getBiddingProcessingEventFromAnotherCampaignsPayloadSchema = getBiddingProcessingEventFromAnotherCampaignsPayloadSchema;
|
|
24379
24486
|
exports.getBiddingProcessingEventFromAnotherCampaignsResponseSchema = getBiddingProcessingEventFromAnotherCampaignsResponseSchema;
|
|
24380
24487
|
exports.getCampaignLeadsRequestQuerySchema = getCampaignLeadsRequestQuerySchema;
|
|
24381
24488
|
exports.getCampaignLeadsResponseSchema = getCampaignLeadsResponseSchema;
|
|
24382
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;
|
|
24383
24496
|
exports.getMultiloginBrowserException = getMultiloginBrowserException;
|
|
24384
24497
|
exports.getNextStatus = getNextStatus;
|
|
24385
24498
|
exports.getOrganizationLeadsRequestQuerySchema = getOrganizationLeadsRequestQuerySchema;
|
|
@@ -24387,6 +24500,17 @@ exports.getOrganizationLeadsStatusEnum = getOrganizationLeadsStatusEnum;
|
|
|
24387
24500
|
exports.getPreviousStatus = getPreviousStatus;
|
|
24388
24501
|
exports.getRouteWithoutAdminPrefix = getRouteWithoutAdminPrefix;
|
|
24389
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;
|
|
24390
24514
|
exports.goToUrlException = goToUrlException;
|
|
24391
24515
|
exports.hasQuestionsEnum = hasQuestionsEnum;
|
|
24392
24516
|
exports.incorrectSecurityQuestionAnswerException = incorrectSecurityQuestionAnswerException;
|