lancer-shared 1.2.310 → 1.2.312
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 +108 -136
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +103 -135
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +8 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +32 -0
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/scraper/scrape-payload.d.ts +43 -0
- package/dist/schemas/upwork-talent/index.d.ts +562 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -5658,7 +5658,7 @@ const jobListingSchema = objectType({
|
|
|
5658
5658
|
weeklyBudget: amountSchema,
|
|
5659
5659
|
isSTSVectorSearchResult: booleanType(),
|
|
5660
5660
|
});
|
|
5661
|
-
const pagingSchema
|
|
5661
|
+
const pagingSchema = objectType({
|
|
5662
5662
|
total: numberType(),
|
|
5663
5663
|
offset: numberType(),
|
|
5664
5664
|
count: numberType(),
|
|
@@ -5670,7 +5670,7 @@ const jobsSearchSchema = objectType({
|
|
|
5670
5670
|
failed: booleanType(),
|
|
5671
5671
|
}),
|
|
5672
5672
|
jobs: arrayType(jobListingSchema),
|
|
5673
|
-
paging: pagingSchema
|
|
5673
|
+
paging: pagingSchema,
|
|
5674
5674
|
abortController: anyType().nullable(),
|
|
5675
5675
|
currentPage: numberType(),
|
|
5676
5676
|
jobsPerPage: numberType(),
|
|
@@ -9425,138 +9425,6 @@ const systemSchema = objectType({
|
|
|
9425
9425
|
prompts: systemPromptSchema,
|
|
9426
9426
|
});
|
|
9427
9427
|
|
|
9428
|
-
const skillSchema = objectType({
|
|
9429
|
-
prettyName: stringType(),
|
|
9430
|
-
uid: stringType(),
|
|
9431
|
-
});
|
|
9432
|
-
const skillWrapperSchema = objectType({
|
|
9433
|
-
skill: skillSchema,
|
|
9434
|
-
uid: stringType(),
|
|
9435
|
-
});
|
|
9436
|
-
const portfolioCategorySchema = objectType({
|
|
9437
|
-
id: stringType().optional(),
|
|
9438
|
-
level1: stringType().optional(),
|
|
9439
|
-
level2: stringType().optional(),
|
|
9440
|
-
});
|
|
9441
|
-
const portfolioItemSchema = objectType({
|
|
9442
|
-
description: stringType().optional(),
|
|
9443
|
-
title: stringType(),
|
|
9444
|
-
videoUrl: stringType().optional(),
|
|
9445
|
-
uid: stringType(),
|
|
9446
|
-
thumbnailUrl: stringType().optional(),
|
|
9447
|
-
publicPortfolioItem: booleanType(),
|
|
9448
|
-
category: portfolioCategorySchema,
|
|
9449
|
-
});
|
|
9450
|
-
const locationSchema = objectType({
|
|
9451
|
-
country: stringType(),
|
|
9452
|
-
state: stringType().optional(),
|
|
9453
|
-
city: stringType().optional(),
|
|
9454
|
-
region: stringType(),
|
|
9455
|
-
subregion: stringType(),
|
|
9456
|
-
timezone: stringType(),
|
|
9457
|
-
zip: stringType().optional(),
|
|
9458
|
-
});
|
|
9459
|
-
const chargeRateSchema = objectType({
|
|
9460
|
-
rawValue: stringType(),
|
|
9461
|
-
currency: stringType(),
|
|
9462
|
-
});
|
|
9463
|
-
const portraitSchema = objectType({
|
|
9464
|
-
portrait: stringType(),
|
|
9465
|
-
});
|
|
9466
|
-
const statsSchema = objectType({
|
|
9467
|
-
hideJss: booleanType(),
|
|
9468
|
-
hideEarnings: booleanType(),
|
|
9469
|
-
topRatedStatus: stringType(),
|
|
9470
|
-
topRatedStatusEx: stringType(),
|
|
9471
|
-
rate: numberType(),
|
|
9472
|
-
earned: numberType(),
|
|
9473
|
-
jobSuccessScore: numberType(),
|
|
9474
|
-
rankInfo: anyType().optional(),
|
|
9475
|
-
totalHours: numberType(),
|
|
9476
|
-
totalHourlyJobs: numberType(),
|
|
9477
|
-
totalFpJobs: numberType(),
|
|
9478
|
-
totalCompletedJobs: numberType(),
|
|
9479
|
-
});
|
|
9480
|
-
const nuxtStateProfileSchema = objectType({
|
|
9481
|
-
title: stringType().optional(),
|
|
9482
|
-
firstName: stringType().optional(),
|
|
9483
|
-
lastName: stringType().optional(),
|
|
9484
|
-
description: stringType().optional(),
|
|
9485
|
-
location: locationSchema.optional(),
|
|
9486
|
-
chargeRate: chargeRateSchema.optional(),
|
|
9487
|
-
portrait: portraitSchema.optional(),
|
|
9488
|
-
profileUrl: stringType().optional(),
|
|
9489
|
-
offerConsultations: booleanType().optional(),
|
|
9490
|
-
jobSummariesAssignmentRids: anyType().optional(),
|
|
9491
|
-
shortName: stringType().optional(),
|
|
9492
|
-
skills: skillWrapperSchema.array().optional(),
|
|
9493
|
-
stats: statsSchema.optional(),
|
|
9494
|
-
portfolioItems: portfolioItemSchema.array().optional(),
|
|
9495
|
-
totalPortfolioItems: numberType().optional(),
|
|
9496
|
-
specializedProfiles: anyType().array().optional(),
|
|
9497
|
-
isDiversityCertified: booleanType().optional(),
|
|
9498
|
-
isBoosted: booleanType().optional(),
|
|
9499
|
-
boosted: booleanType().optional(),
|
|
9500
|
-
boostedWouldHaveBeen: booleanType().optional(),
|
|
9501
|
-
});
|
|
9502
|
-
const identitySchema = objectType({
|
|
9503
|
-
id: stringType().optional(),
|
|
9504
|
-
ciphertext: stringType(),
|
|
9505
|
-
uid: stringType(),
|
|
9506
|
-
});
|
|
9507
|
-
const agencySchema = objectType({
|
|
9508
|
-
orgId: stringType(),
|
|
9509
|
-
ciphertext: stringType(),
|
|
9510
|
-
name: stringType(),
|
|
9511
|
-
classifications: anyType().array(),
|
|
9512
|
-
logo: stringType().optional(),
|
|
9513
|
-
hideEarnings: booleanType(),
|
|
9514
|
-
totalEarnings: numberType(),
|
|
9515
|
-
isAgencyDiversityCertified: anyType().array(),
|
|
9516
|
-
});
|
|
9517
|
-
const optionsSchema = objectType({
|
|
9518
|
-
position: numberType(),
|
|
9519
|
-
});
|
|
9520
|
-
const upworkTalentSchema = objectType({
|
|
9521
|
-
identity: identitySchema,
|
|
9522
|
-
isPibAvailable: booleanType(),
|
|
9523
|
-
profile: nuxtStateProfileSchema,
|
|
9524
|
-
agency: agencySchema,
|
|
9525
|
-
options: optionsSchema,
|
|
9526
|
-
linkedInURL: stringType().nullish(),
|
|
9527
|
-
});
|
|
9528
|
-
const statusSchema = objectType({
|
|
9529
|
-
loading: booleanType(),
|
|
9530
|
-
loaded: booleanType(),
|
|
9531
|
-
failed: booleanType(),
|
|
9532
|
-
});
|
|
9533
|
-
const pagingSchema = objectType({
|
|
9534
|
-
total: numberType(),
|
|
9535
|
-
offset: numberType(),
|
|
9536
|
-
count: numberType(),
|
|
9537
|
-
originTotal: numberType(),
|
|
9538
|
-
pagesTotal: numberType(),
|
|
9539
|
-
page: numberType(),
|
|
9540
|
-
perPage: numberType(),
|
|
9541
|
-
});
|
|
9542
|
-
const flagsSchema = objectType({
|
|
9543
|
-
portfolioSearch: booleanType(),
|
|
9544
|
-
});
|
|
9545
|
-
const nuxtStateProfileSearchSchema = objectType({
|
|
9546
|
-
status: statusSchema,
|
|
9547
|
-
profiles: nuxtStateProfileSchema.array(),
|
|
9548
|
-
currentPage: numberType(),
|
|
9549
|
-
paging: pagingSchema,
|
|
9550
|
-
flags: flagsSchema,
|
|
9551
|
-
searchQueryCache: recordType(anyType()),
|
|
9552
|
-
});
|
|
9553
|
-
const profileSearchNuxtObjectStateSchema = objectType({
|
|
9554
|
-
profilesSearch: nuxtStateProfileSearchSchema,
|
|
9555
|
-
});
|
|
9556
|
-
const profileSearchNuxtObjectSchema = objectType({
|
|
9557
|
-
state: profileSearchNuxtObjectStateSchema,
|
|
9558
|
-
});
|
|
9559
|
-
|
|
9560
9428
|
const periodTypeSchema = z.union([
|
|
9561
9429
|
z.literal("weekly"),
|
|
9562
9430
|
z.literal("monthly"),
|
|
@@ -9662,6 +9530,98 @@ const getTop20CategoriesByAvgHourlyRatePaidResponseSchema = z.array(z.object({
|
|
|
9662
9530
|
avgHourlyRatePaid: z.number(),
|
|
9663
9531
|
}));
|
|
9664
9532
|
|
|
9533
|
+
const upworkTalentSkillWithRankSchema = objectType({
|
|
9534
|
+
skill: stringType(),
|
|
9535
|
+
rank: numberType(),
|
|
9536
|
+
});
|
|
9537
|
+
const upworkTalentSchema = objectType({
|
|
9538
|
+
id: stringType(),
|
|
9539
|
+
ciphertext: stringType(),
|
|
9540
|
+
vanityUrl: stringType().nullable(),
|
|
9541
|
+
name: stringType(),
|
|
9542
|
+
title: stringType(),
|
|
9543
|
+
description: stringType().nullable(),
|
|
9544
|
+
city: stringType().nullable(),
|
|
9545
|
+
country: stringType(),
|
|
9546
|
+
countryCode: stringType().nullable(),
|
|
9547
|
+
bigPortraitUrl: stringType().nullable(),
|
|
9548
|
+
portrait500Url: stringType().nullable(),
|
|
9549
|
+
hourlyRate: numberType().nullable(),
|
|
9550
|
+
totalJobsWorked: numberType(),
|
|
9551
|
+
totalJobsWorkedRecent: numberType(),
|
|
9552
|
+
totalFixedJobs: numberType(),
|
|
9553
|
+
totalHourlyJobs: numberType(),
|
|
9554
|
+
activeJobs: numberType().nullable(),
|
|
9555
|
+
hideEarnings: booleanType(),
|
|
9556
|
+
contractorEarnings: numberType(),
|
|
9557
|
+
recentEarnings: numberType(),
|
|
9558
|
+
averageRecentEarnings: numberType(),
|
|
9559
|
+
mrr: numberType(),
|
|
9560
|
+
earningsPerProject: numberType(),
|
|
9561
|
+
earningsPerProjectRecent: numberType(),
|
|
9562
|
+
badge: z.enum(['top_rated_plus', 'top_rated', 'rising_talent']).nullable(),
|
|
9563
|
+
jobSuccessScore: numberType().nullable(),
|
|
9564
|
+
totalFeedback: numberType(),
|
|
9565
|
+
rating: numberType(),
|
|
9566
|
+
ratingRecent: numberType(),
|
|
9567
|
+
isVetted: booleanType(),
|
|
9568
|
+
skills: stringType().array(),
|
|
9569
|
+
videoUrl: stringType().nullable(),
|
|
9570
|
+
memberSince: stringType().nullable(),
|
|
9571
|
+
worldTotal: numberType().nullable(),
|
|
9572
|
+
countryTotal: numberType().nullable(),
|
|
9573
|
+
mrrWorldRank: numberType().nullable(),
|
|
9574
|
+
mrrCountryRank: numberType().nullable(),
|
|
9575
|
+
totalEarningsWorldRank: numberType().nullable(),
|
|
9576
|
+
totalEarningsCountryRank: numberType().nullable(),
|
|
9577
|
+
recentEarningsWorldRank: numberType().nullable(),
|
|
9578
|
+
recentEarningsCountryRank: numberType().nullable(),
|
|
9579
|
+
totalProjectsWorldRank: numberType().nullable(),
|
|
9580
|
+
totalProjectsCountryRank: numberType().nullable(),
|
|
9581
|
+
averageEarningsPerProjectWorldRank: numberType().nullable(),
|
|
9582
|
+
averageEarningsPerProjectCountryRank: numberType().nullable(),
|
|
9583
|
+
skillsWithRank: upworkTalentSkillWithRankSchema.array(),
|
|
9584
|
+
});
|
|
9585
|
+
const upworkTalentSearchRequestSchema = objectType({
|
|
9586
|
+
page: numberType().nullable().optional(),
|
|
9587
|
+
limit: numberType().nullable().optional(),
|
|
9588
|
+
sortBy: stringType().nullable().optional(),
|
|
9589
|
+
sortOrder: z.enum(['asc', 'desc']).nullable().optional(),
|
|
9590
|
+
country: stringType().nullable().optional(),
|
|
9591
|
+
skill: stringType().nullable().optional(),
|
|
9592
|
+
badge: z.enum(['top_rated_plus', 'top_rated', 'rising_talent']).nullable().optional(),
|
|
9593
|
+
isVetted: booleanType().nullable().optional(),
|
|
9594
|
+
minEarnings: numberType().nullable().optional(),
|
|
9595
|
+
maxEarnings: numberType().nullable().optional(),
|
|
9596
|
+
minMrr: numberType().nullable().optional(),
|
|
9597
|
+
maxMrr: numberType().nullable().optional(),
|
|
9598
|
+
minHourlyRate: numberType().nullable().optional(),
|
|
9599
|
+
maxHourlyRate: numberType().nullable().optional(),
|
|
9600
|
+
minJobSuccessScore: numberType().nullable().optional(),
|
|
9601
|
+
searchQuery: stringType().nullable().optional(),
|
|
9602
|
+
});
|
|
9603
|
+
const upworkTalentSearchResponseSchema = objectType({
|
|
9604
|
+
data: upworkTalentSchema.array(),
|
|
9605
|
+
pagination: objectType({
|
|
9606
|
+
page: numberType(),
|
|
9607
|
+
limit: numberType(),
|
|
9608
|
+
total: numberType(),
|
|
9609
|
+
totalPages: numberType(),
|
|
9610
|
+
}),
|
|
9611
|
+
});
|
|
9612
|
+
const upworkTalentCountrySchema = objectType({
|
|
9613
|
+
country: stringType(),
|
|
9614
|
+
countryCode: stringType().nullable(),
|
|
9615
|
+
count: numberType(),
|
|
9616
|
+
});
|
|
9617
|
+
const upworkTalentSkillsSchema = objectType({
|
|
9618
|
+
skill: stringType(),
|
|
9619
|
+
count: numberType(),
|
|
9620
|
+
});
|
|
9621
|
+
const upworkTalentSkillsResponseSchema = objectType({
|
|
9622
|
+
data: upworkTalentSkillsSchema.array(),
|
|
9623
|
+
});
|
|
9624
|
+
|
|
9665
9625
|
const breakdownSchema = objectType({
|
|
9666
9626
|
suitability: numberType(),
|
|
9667
9627
|
proposal: numberType(),
|
|
@@ -15486,6 +15446,7 @@ const ROUTES = {
|
|
|
15486
15446
|
BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
|
|
15487
15447
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
|
|
15488
15448
|
REFRESH_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/refresh-proxy`,
|
|
15449
|
+
REFRESH_WITH_IPROYAL_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/refresh-with-iproyal-proxy`,
|
|
15489
15450
|
AGENCIES: 'admin/bidder-accounts/agencies',
|
|
15490
15451
|
ASSIGN_IPROYAL_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/assign-iproyal-proxy`,
|
|
15491
15452
|
},
|
|
@@ -15723,6 +15684,13 @@ const ROUTES = {
|
|
|
15723
15684
|
TOP_10_CATEGORIES_BY_AVG_PAID_PER_PROJECT: 'upwork-analytics/top-10-categories-by-avg-paid-per-project',
|
|
15724
15685
|
TOP_20_CATEGORIES_BY_AVG_HOURLY_RATE_PAID: 'upwork-analytics/top-20-categories-by-avg-hourly-rate-paid',
|
|
15725
15686
|
},
|
|
15687
|
+
UPWORK_TALENT: {
|
|
15688
|
+
BASE: 'upwork-talent',
|
|
15689
|
+
SEARCH: 'upwork-talent/search',
|
|
15690
|
+
BY_ID: (id) => `upwork-talent/${id}`,
|
|
15691
|
+
COUNTRIES: 'upwork-talent/countries',
|
|
15692
|
+
SKILLS: 'upwork-talent/skills',
|
|
15693
|
+
},
|
|
15726
15694
|
BIDDER_INSTANCES: {
|
|
15727
15695
|
BASE: 'bidder-instances',
|
|
15728
15696
|
BY_ID: (id) => `bidder-instances/${id}`,
|
|
@@ -24655,8 +24623,6 @@ exports.pluralize = pluralize;
|
|
|
24655
24623
|
exports.portfolioSchema = portfolioSchema;
|
|
24656
24624
|
exports.privateJobException = privateJobException;
|
|
24657
24625
|
exports.processFeedPayloadSchema = processFeedPayloadSchema;
|
|
24658
|
-
exports.profileSearchNuxtObjectSchema = profileSearchNuxtObjectSchema;
|
|
24659
|
-
exports.profileSearchNuxtObjectStateSchema = profileSearchNuxtObjectStateSchema;
|
|
24660
24626
|
exports.projectDurationEnum = projectDurationEnum;
|
|
24661
24627
|
exports.proposalCompleteEventMetadataSchema = proposalCompleteEventMetadataSchema;
|
|
24662
24628
|
exports.proposalErrorAlertException = proposalErrorAlertException;
|
|
@@ -24752,7 +24718,13 @@ exports.upworkAccountConnectSchema = upworkAccountConnectSchema;
|
|
|
24752
24718
|
exports.upworkAccountConnectStatusSchema = upworkAccountConnectStatusSchema;
|
|
24753
24719
|
exports.upworkJobSchema = upworkJobSchema;
|
|
24754
24720
|
exports.upworkProfileSchema = upworkProfileSchema;
|
|
24721
|
+
exports.upworkTalentCountrySchema = upworkTalentCountrySchema;
|
|
24755
24722
|
exports.upworkTalentSchema = upworkTalentSchema;
|
|
24723
|
+
exports.upworkTalentSearchRequestSchema = upworkTalentSearchRequestSchema;
|
|
24724
|
+
exports.upworkTalentSearchResponseSchema = upworkTalentSearchResponseSchema;
|
|
24725
|
+
exports.upworkTalentSkillWithRankSchema = upworkTalentSkillWithRankSchema;
|
|
24726
|
+
exports.upworkTalentSkillsResponseSchema = upworkTalentSkillsResponseSchema;
|
|
24727
|
+
exports.upworkTalentSkillsSchema = upworkTalentSkillsSchema;
|
|
24756
24728
|
exports.usageEventMetadataSchema = usageEventMetadataSchema;
|
|
24757
24729
|
exports.usageEventSchema = usageEventSchema;
|
|
24758
24730
|
exports.usageEventTypeEnum = usageEventTypeEnum;
|