lancer-shared 1.2.268 → 1.2.270
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 +24 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +22 -2
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +2 -0
- package/dist/schemas/agent/index.d.ts +5 -0
- package/dist/schemas/bidder/bid.d.ts +49 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +33 -0
- package/dist/schemas/lead/index.d.ts +18 -0
- package/dist/schemas/organization/index.d.ts +14 -3
- package/dist/schemas/organization/subscription.d.ts +5 -0
- package/dist/schemas/plan/index.d.ts +275 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +12 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -6133,6 +6133,7 @@ const clientInfoSchema = objectType({
|
|
|
6133
6133
|
companySize: stringType().nullable(),
|
|
6134
6134
|
enterpriseClient: booleanType().nullable(),
|
|
6135
6135
|
avgHourlyRatePaid: numberType().nullable(),
|
|
6136
|
+
companyId: stringType().nullable(),
|
|
6136
6137
|
});
|
|
6137
6138
|
const clientReviewSchema = objectType({
|
|
6138
6139
|
jobTitle: stringType().nullable(),
|
|
@@ -6809,6 +6810,7 @@ const leadSchema = upworkJobSchema
|
|
|
6809
6810
|
rejectedFeedback: stringType().nullable(),
|
|
6810
6811
|
applicationId: stringType().nullable(),
|
|
6811
6812
|
leadBiddingConfig: leadBiddingConfigSchema.nullable(),
|
|
6813
|
+
statusSynced: booleanType().nullable(),
|
|
6812
6814
|
})
|
|
6813
6815
|
.omit({
|
|
6814
6816
|
processed: true,
|
|
@@ -6970,6 +6972,7 @@ const billingSchema = objectType({
|
|
|
6970
6972
|
stripe: billingStripeMetadataSchema,
|
|
6971
6973
|
});
|
|
6972
6974
|
|
|
6975
|
+
const billingIntervalEnum = z.enum(['monthly', 'quarterly', 'yearly']);
|
|
6973
6976
|
const subscriptionStatusEnum = z.enum([
|
|
6974
6977
|
'active',
|
|
6975
6978
|
'trialing',
|
|
@@ -7004,6 +7007,7 @@ const subscriptionSchema = objectType({
|
|
|
7004
7007
|
source: subscriptionSourceEnum,
|
|
7005
7008
|
usage: recordType(usageEventTypeEnum, numberType()),
|
|
7006
7009
|
trialEndsAt: numberType().nullable(),
|
|
7010
|
+
billingInterval: billingIntervalEnum,
|
|
7007
7011
|
});
|
|
7008
7012
|
|
|
7009
7013
|
const coverLetterTemplateSchema = z.object({
|
|
@@ -7154,7 +7158,8 @@ const organizationSettingsSchema = objectType({
|
|
|
7154
7158
|
const subscribePayloadSchema = objectType({
|
|
7155
7159
|
planId: stringType().min(1, 'Plan id is required.'),
|
|
7156
7160
|
toltReferral: stringType().optional(),
|
|
7157
|
-
|
|
7161
|
+
promoCode: stringType().optional(),
|
|
7162
|
+
billingInterval: billingIntervalEnum,
|
|
7158
7163
|
});
|
|
7159
7164
|
|
|
7160
7165
|
const campaignExpensesSchema = z.object({
|
|
@@ -9038,6 +9043,18 @@ const planFeatureSchema = objectType({
|
|
|
9038
9043
|
description: stringType(),
|
|
9039
9044
|
tooltipContent: stringType().nullable(),
|
|
9040
9045
|
});
|
|
9046
|
+
const planPricingIntervalSchema = objectType({
|
|
9047
|
+
amount: numberType(),
|
|
9048
|
+
currency: stringType(),
|
|
9049
|
+
priceId: stringType().regex(/^price_[a-zA-Z0-9]+$/),
|
|
9050
|
+
lookupKey: stringType(),
|
|
9051
|
+
isLegacyPricing: booleanType(),
|
|
9052
|
+
});
|
|
9053
|
+
const planPricingSchema = objectType({
|
|
9054
|
+
monthly: planPricingIntervalSchema,
|
|
9055
|
+
quarterly: planPricingIntervalSchema.optional(),
|
|
9056
|
+
yearly: planPricingIntervalSchema.optional(),
|
|
9057
|
+
});
|
|
9041
9058
|
const planSchema = objectType({
|
|
9042
9059
|
id: stringType().regex(/^prod_[a-zA-Z0-9]+$/),
|
|
9043
9060
|
name: stringType(),
|
|
@@ -9052,6 +9069,7 @@ const planSchema = objectType({
|
|
|
9052
9069
|
isActive: booleanType(),
|
|
9053
9070
|
createdAt: numberType(),
|
|
9054
9071
|
archivedAt: numberType().nullable(),
|
|
9072
|
+
pricing: planPricingSchema,
|
|
9055
9073
|
});
|
|
9056
9074
|
const planSlugEnum = z.enum(['lancer-unlimited-launch-offer']);
|
|
9057
9075
|
|
|
@@ -15241,6 +15259,8 @@ const ROUTES = {
|
|
|
15241
15259
|
BASE: (id) => `organizations/${id}/members`,
|
|
15242
15260
|
BY_ID: (id, memberId) => `organizations/${id}/members/${memberId}`,
|
|
15243
15261
|
},
|
|
15262
|
+
CHECK_PROMO_CODE: (id) => `organizations/${id}/check-promo-code`,
|
|
15263
|
+
STRIPE_PORTAL: (id) => `organizations/${id}/stripe-portal-session`,
|
|
15244
15264
|
UPDATE_LEADS_STATUS: (id) => `organizations/${id}/update-leads-status`,
|
|
15245
15265
|
SETTINGS: (id) => `organizations/${id}/settings`,
|
|
15246
15266
|
CHARGES: (id) => `organizations/${id}/charges`,
|
|
@@ -24064,6 +24084,7 @@ exports.biddingFailedEventMetadata = biddingFailedEventMetadata;
|
|
|
24064
24084
|
exports.biddingHourlyRateStrategyEnum = biddingHourlyRateStrategyEnum;
|
|
24065
24085
|
exports.biddingProcessingEventMetadata = biddingProcessingEventMetadata;
|
|
24066
24086
|
exports.biddingRejectedWithFeedbackEventMetadata = biddingRejectedWithFeedbackEventMetadata;
|
|
24087
|
+
exports.billingIntervalEnum = billingIntervalEnum;
|
|
24067
24088
|
exports.booleanSchema = booleanSchema;
|
|
24068
24089
|
exports.boostAboveMaxConnectsException = boostAboveMaxConnectsException;
|
|
24069
24090
|
exports.boostFormSchema = boostFormSchema;
|
|
@@ -24252,6 +24273,8 @@ exports.periodUsageSchema = periodUsageSchema;
|
|
|
24252
24273
|
exports.pickProfileRequestSchema = pickProfileRequestSchema;
|
|
24253
24274
|
exports.pickProfileResponseSchema = pickProfileResponseSchema;
|
|
24254
24275
|
exports.planFeatureSchema = planFeatureSchema;
|
|
24276
|
+
exports.planPricingIntervalSchema = planPricingIntervalSchema;
|
|
24277
|
+
exports.planPricingSchema = planPricingSchema;
|
|
24255
24278
|
exports.planSchema = planSchema;
|
|
24256
24279
|
exports.planSlugEnum = planSlugEnum;
|
|
24257
24280
|
exports.planSlugToNameMap = planSlugToNameMap;
|