lancer-shared 1.2.296 → 1.2.298
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 +130 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +107 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +27 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/upwork-analytics/index.d.ts +211 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -9550,6 +9550,85 @@ 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
|
+
const getTop20CategoriesByAvgHourlyRatePaidResponseSchema = z.array(z.object({
|
|
9628
|
+
category: z.string(),
|
|
9629
|
+
avgHourlyRatePaid: z.number(),
|
|
9630
|
+
}));
|
|
9631
|
+
|
|
9553
9632
|
const breakdownSchema = objectType({
|
|
9554
9633
|
suitability: numberType(),
|
|
9555
9634
|
proposal: numberType(),
|
|
@@ -15580,6 +15659,33 @@ const ROUTES = {
|
|
|
15580
15659
|
BASE: 'usage-events',
|
|
15581
15660
|
BY_ID: (id) => `usage-events/${id}`,
|
|
15582
15661
|
},
|
|
15662
|
+
UPWORK_ANALYTICS: {
|
|
15663
|
+
BASE: 'upwork-analytics',
|
|
15664
|
+
JOBS_POSTED: 'upwork-analytics/jobs-posted',
|
|
15665
|
+
AVERAGE_CLIENT_HIRE_RATE: 'upwork-analytics/average-client-hire-rate',
|
|
15666
|
+
AVERAGE_CLIENT_TOTAL_SPENT: 'upwork-analytics/average-client-total-spent',
|
|
15667
|
+
AVERAGE_HOURLY_RATE_BUDGET: 'upwork-analytics/average-hourly-rate-budget',
|
|
15668
|
+
AVERAGE_FIXED_PRICE_BUDGET: 'upwork-analytics/average-fixed-price-budget',
|
|
15669
|
+
AVERAGE_PAID_PER_PROJECT: 'upwork-analytics/average-paid-per-project',
|
|
15670
|
+
JOBS_COUNT_LAST_3_MONTHS: 'upwork-analytics/jobs-count-last-3-months',
|
|
15671
|
+
JOBS_BY_COUNTRY: 'upwork-analytics/jobs-by-country',
|
|
15672
|
+
JOBS_BY_CLIENT_TOTAL_SPENT: 'upwork-analytics/jobs-by-client-total-spent',
|
|
15673
|
+
JOBS_BY_HOUR_POSTED: 'upwork-analytics/jobs-by-hour-posted',
|
|
15674
|
+
JOBS_BY_DAY_OF_WEEK: 'upwork-analytics/jobs-by-day-of-week',
|
|
15675
|
+
AVERAGE_HOURLY_RATE_PAID_BY_COUNTRY: 'upwork-analytics/average-hourly-rate-paid-by-country',
|
|
15676
|
+
TOP_10_SKILLS: 'upwork-analytics/top-10-skills',
|
|
15677
|
+
TOP_10_COUNTRIES_BY_JOBS_POSTED: 'upwork-analytics/top-10-countries-by-jobs-posted',
|
|
15678
|
+
TOP_10_COUNTRIES_BY_CLIENT_TOTAL_SPENT: 'upwork-analytics/top-10-countries-by-client-total-spent',
|
|
15679
|
+
TOP_10_COUNTRIES_BY_CLIENT_HIRE_RATE: 'upwork-analytics/top-10-countries-by-client-hire-rate',
|
|
15680
|
+
TOP_10_COUNTRIES_BY_AVG_HOURLY_BUDGET: 'upwork-analytics/top-10-countries-by-avg-hourly-budget',
|
|
15681
|
+
TOP_10_COUNTRIES_BY_AVG_PAID_PER_PROJECT: 'upwork-analytics/top-10-countries-by-avg-paid-per-project',
|
|
15682
|
+
TOP_10_CATEGORIES_BY_JOBS_POSTED: 'upwork-analytics/top-10-categories-by-jobs-posted',
|
|
15683
|
+
TOP_10_CATEGORIES_BY_CLIENT_TOTAL_SPENT: 'upwork-analytics/top-10-categories-by-client-total-spent',
|
|
15684
|
+
TOP_10_CATEGORIES_BY_CLIENT_HIRE_RATE: 'upwork-analytics/top-10-categories-by-client-hire-rate',
|
|
15685
|
+
TOP_10_CATEGORIES_BY_AVG_HOURLY_BUDGET: 'upwork-analytics/top-10-categories-by-avg-hourly-budget',
|
|
15686
|
+
TOP_10_CATEGORIES_BY_AVG_PAID_PER_PROJECT: 'upwork-analytics/top-10-categories-by-avg-paid-per-project',
|
|
15687
|
+
TOP_20_CATEGORIES_BY_AVG_HOURLY_RATE_PAID: 'upwork-analytics/top-20-categories-by-avg-hourly-rate-paid',
|
|
15688
|
+
},
|
|
15583
15689
|
BIDDER_INSTANCES: {
|
|
15584
15690
|
BASE: 'bidder-instances',
|
|
15585
15691
|
BY_ID: (id) => `bidder-instances/${id}`,
|
|
@@ -24375,11 +24481,23 @@ exports.freelancerBidPayloadSchema = freelancerBidPayloadSchema;
|
|
|
24375
24481
|
exports.freelancerBidProposalDataSchema = freelancerBidProposalDataSchema;
|
|
24376
24482
|
exports.generateLeadCountsRequestSchema = generateLeadCountsRequestSchema;
|
|
24377
24483
|
exports.generateSlug = generateSlug;
|
|
24484
|
+
exports.getAverageClientHireRateResponseSchema = getAverageClientHireRateResponseSchema;
|
|
24485
|
+
exports.getAverageClientTotalSpentResponseSchema = getAverageClientTotalSpentResponseSchema;
|
|
24486
|
+
exports.getAverageFixedPriceBudgetResponseSchema = getAverageFixedPriceBudgetResponseSchema;
|
|
24487
|
+
exports.getAverageHourlyRateBudgetResponseSchema = getAverageHourlyRateBudgetResponseSchema;
|
|
24488
|
+
exports.getAverageHourlyRatePaidByCountryResponseSchema = getAverageHourlyRatePaidByCountryResponseSchema;
|
|
24489
|
+
exports.getAveragePaidPerProjectResponseSchema = getAveragePaidPerProjectResponseSchema;
|
|
24378
24490
|
exports.getBiddingProcessingEventFromAnotherCampaignsPayloadSchema = getBiddingProcessingEventFromAnotherCampaignsPayloadSchema;
|
|
24379
24491
|
exports.getBiddingProcessingEventFromAnotherCampaignsResponseSchema = getBiddingProcessingEventFromAnotherCampaignsResponseSchema;
|
|
24380
24492
|
exports.getCampaignLeadsRequestQuerySchema = getCampaignLeadsRequestQuerySchema;
|
|
24381
24493
|
exports.getCampaignLeadsResponseSchema = getCampaignLeadsResponseSchema;
|
|
24382
24494
|
exports.getCampaignLeadsStatusEnum = getCampaignLeadsStatusEnum;
|
|
24495
|
+
exports.getJobsByClientTotalSpentResponseSchema = getJobsByClientTotalSpentResponseSchema;
|
|
24496
|
+
exports.getJobsByCountryResponseSchema = getJobsByCountryResponseSchema;
|
|
24497
|
+
exports.getJobsByDayOfWeekResponseSchema = getJobsByDayOfWeekResponseSchema;
|
|
24498
|
+
exports.getJobsByHourPostedResponseSchema = getJobsByHourPostedResponseSchema;
|
|
24499
|
+
exports.getJobsCountLast3MonthsResponseSchema = getJobsCountLast3MonthsResponseSchema;
|
|
24500
|
+
exports.getJobsPostedResponseSchema = getJobsPostedResponseSchema;
|
|
24383
24501
|
exports.getMultiloginBrowserException = getMultiloginBrowserException;
|
|
24384
24502
|
exports.getNextStatus = getNextStatus;
|
|
24385
24503
|
exports.getOrganizationLeadsRequestQuerySchema = getOrganizationLeadsRequestQuerySchema;
|
|
@@ -24387,6 +24505,18 @@ exports.getOrganizationLeadsStatusEnum = getOrganizationLeadsStatusEnum;
|
|
|
24387
24505
|
exports.getPreviousStatus = getPreviousStatus;
|
|
24388
24506
|
exports.getRouteWithoutAdminPrefix = getRouteWithoutAdminPrefix;
|
|
24389
24507
|
exports.getSamplesRequestSchema = getSamplesRequestSchema;
|
|
24508
|
+
exports.getTop10CategoriesByAvgHourlyBudgetResponseSchema = getTop10CategoriesByAvgHourlyBudgetResponseSchema;
|
|
24509
|
+
exports.getTop10CategoriesByAvgPaidPerProjectResponseSchema = getTop10CategoriesByAvgPaidPerProjectResponseSchema;
|
|
24510
|
+
exports.getTop10CategoriesByClientHireRateResponseSchema = getTop10CategoriesByClientHireRateResponseSchema;
|
|
24511
|
+
exports.getTop10CategoriesByClientTotalSpentResponseSchema = getTop10CategoriesByClientTotalSpentResponseSchema;
|
|
24512
|
+
exports.getTop10CategoriesByJobsPostedResponseSchema = getTop10CategoriesByJobsPostedResponseSchema;
|
|
24513
|
+
exports.getTop10CountriesByAvgHourlyBudgetResponseSchema = getTop10CountriesByAvgHourlyBudgetResponseSchema;
|
|
24514
|
+
exports.getTop10CountriesByAvgPaidPerProjectResponseSchema = getTop10CountriesByAvgPaidPerProjectResponseSchema;
|
|
24515
|
+
exports.getTop10CountriesByClientHireRateResponseSchema = getTop10CountriesByClientHireRateResponseSchema;
|
|
24516
|
+
exports.getTop10CountriesByClientTotalSpentResponseSchema = getTop10CountriesByClientTotalSpentResponseSchema;
|
|
24517
|
+
exports.getTop10CountriesByJobsPostedResponseSchema = getTop10CountriesByJobsPostedResponseSchema;
|
|
24518
|
+
exports.getTop10SkillsResponseSchema = getTop10SkillsResponseSchema;
|
|
24519
|
+
exports.getTop20CategoriesByAvgHourlyRatePaidResponseSchema = getTop20CategoriesByAvgHourlyRatePaidResponseSchema;
|
|
24390
24520
|
exports.goToUrlException = goToUrlException;
|
|
24391
24521
|
exports.hasQuestionsEnum = hasQuestionsEnum;
|
|
24392
24522
|
exports.incorrectSecurityQuestionAnswerException = incorrectSecurityQuestionAnswerException;
|