lancer-shared 1.2.294 → 1.2.296
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 +23 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +23 -2
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +1 -0
- package/dist/schemas/account/bidder-account.d.ts +3 -3
- package/dist/schemas/plan/index.d.ts +11 -0
- package/dist/schemas/proxy/proxy-country.d.ts +1 -0
- package/dist/schemas/proxy/proxy.d.ts +6 -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(),
|
|
@@ -9205,6 +9223,7 @@ const planFeatureSchema = objectType({
|
|
|
9205
9223
|
id: stringType(),
|
|
9206
9224
|
description: stringType(),
|
|
9207
9225
|
tooltipContent: stringType().nullable(),
|
|
9226
|
+
icon: stringType().nullable(),
|
|
9208
9227
|
});
|
|
9209
9228
|
const planPricingIntervalSchema = objectType({
|
|
9210
9229
|
amount: numberType(),
|
|
@@ -9231,6 +9250,7 @@ const planSchema = objectType({
|
|
|
9231
9250
|
archivedAt: numberType().nullable(),
|
|
9232
9251
|
hasFreeTrial: booleanType(),
|
|
9233
9252
|
pricing: planPricingSchema,
|
|
9253
|
+
icon: stringType().nullable(),
|
|
9234
9254
|
});
|
|
9235
9255
|
const planSlugEnum = z.enum(['lancer-unlimited-launch-offer']);
|
|
9236
9256
|
|
|
@@ -15449,6 +15469,7 @@ const ROUTES = {
|
|
|
15449
15469
|
DISMISS_CONNECTION_ERROR: (id) => `organizations/${id}/bidder-account-connection/dismiss-connection-error`,
|
|
15450
15470
|
CONNECT_UPWORK_ACCOUNT: (id) => `organizations/${id}/bidder-accounts/connect-upwork-account`,
|
|
15451
15471
|
RETRY_CONNECT_UPWORK_ACCOUNT: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}/retry-connect-upwork-account`,
|
|
15472
|
+
AVAILABLE_REGIONS: (id) => `organizations/${id}/bidder-accounts/available-regions`,
|
|
15452
15473
|
},
|
|
15453
15474
|
LEADS_BY_JOB_ID: (organizationId, jobId) => `organizations/${organizationId}/leads/${jobId}`,
|
|
15454
15475
|
UPDATE_CAMPAIGN_PRIORITY: (organizationId) => `organizations/${organizationId}/update-campaign-priority`,
|
|
@@ -24408,6 +24429,7 @@ exports.jobSkillsSchema = jobSkillsSchema;
|
|
|
24408
24429
|
exports.jobStatusOrder = jobStatusOrder;
|
|
24409
24430
|
exports.labelEnum = labelEnum;
|
|
24410
24431
|
exports.lancerBiddingExceptionEventMetadata = lancerBiddingExceptionEventMetadata;
|
|
24432
|
+
exports.largeCountries = largeCountries;
|
|
24411
24433
|
exports.leadAnalysisActivitySchema = leadAnalysisActivitySchema;
|
|
24412
24434
|
exports.leadBiddingConfigSchema = leadBiddingConfigSchema;
|
|
24413
24435
|
exports.leadResponseSchema = leadResponseSchema;
|