lancer-shared 1.2.269 → 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.
@@ -6972,6 +6972,7 @@ const billingSchema = objectType({
6972
6972
  stripe: billingStripeMetadataSchema,
6973
6973
  });
6974
6974
 
6975
+ const billingIntervalEnum = z.enum(['monthly', 'quarterly', 'yearly']);
6975
6976
  const subscriptionStatusEnum = z.enum([
6976
6977
  'active',
6977
6978
  'trialing',
@@ -7006,6 +7007,7 @@ const subscriptionSchema = objectType({
7006
7007
  source: subscriptionSourceEnum,
7007
7008
  usage: recordType(usageEventTypeEnum, numberType()),
7008
7009
  trialEndsAt: numberType().nullable(),
7010
+ billingInterval: billingIntervalEnum,
7009
7011
  });
7010
7012
 
7011
7013
  const coverLetterTemplateSchema = z.object({
@@ -7156,7 +7158,8 @@ const organizationSettingsSchema = objectType({
7156
7158
  const subscribePayloadSchema = objectType({
7157
7159
  planId: stringType().min(1, 'Plan id is required.'),
7158
7160
  toltReferral: stringType().optional(),
7159
- couponCode: stringType().nullish(),
7161
+ promoCode: stringType().optional(),
7162
+ billingInterval: billingIntervalEnum,
7160
7163
  });
7161
7164
 
7162
7165
  const campaignExpensesSchema = z.object({
@@ -9040,6 +9043,18 @@ const planFeatureSchema = objectType({
9040
9043
  description: stringType(),
9041
9044
  tooltipContent: stringType().nullable(),
9042
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
+ });
9043
9058
  const planSchema = objectType({
9044
9059
  id: stringType().regex(/^prod_[a-zA-Z0-9]+$/),
9045
9060
  name: stringType(),
@@ -9054,6 +9069,7 @@ const planSchema = objectType({
9054
9069
  isActive: booleanType(),
9055
9070
  createdAt: numberType(),
9056
9071
  archivedAt: numberType().nullable(),
9072
+ pricing: planPricingSchema,
9057
9073
  });
9058
9074
  const planSlugEnum = z.enum(['lancer-unlimited-launch-offer']);
9059
9075
 
@@ -15243,6 +15259,8 @@ const ROUTES = {
15243
15259
  BASE: (id) => `organizations/${id}/members`,
15244
15260
  BY_ID: (id, memberId) => `organizations/${id}/members/${memberId}`,
15245
15261
  },
15262
+ CHECK_PROMO_CODE: (id) => `organizations/${id}/check-promo-code`,
15263
+ STRIPE_PORTAL: (id) => `organizations/${id}/stripe-portal-session`,
15246
15264
  UPDATE_LEADS_STATUS: (id) => `organizations/${id}/update-leads-status`,
15247
15265
  SETTINGS: (id) => `organizations/${id}/settings`,
15248
15266
  CHARGES: (id) => `organizations/${id}/charges`,
@@ -24066,6 +24084,7 @@ exports.biddingFailedEventMetadata = biddingFailedEventMetadata;
24066
24084
  exports.biddingHourlyRateStrategyEnum = biddingHourlyRateStrategyEnum;
24067
24085
  exports.biddingProcessingEventMetadata = biddingProcessingEventMetadata;
24068
24086
  exports.biddingRejectedWithFeedbackEventMetadata = biddingRejectedWithFeedbackEventMetadata;
24087
+ exports.billingIntervalEnum = billingIntervalEnum;
24069
24088
  exports.booleanSchema = booleanSchema;
24070
24089
  exports.boostAboveMaxConnectsException = boostAboveMaxConnectsException;
24071
24090
  exports.boostFormSchema = boostFormSchema;
@@ -24254,6 +24273,8 @@ exports.periodUsageSchema = periodUsageSchema;
24254
24273
  exports.pickProfileRequestSchema = pickProfileRequestSchema;
24255
24274
  exports.pickProfileResponseSchema = pickProfileResponseSchema;
24256
24275
  exports.planFeatureSchema = planFeatureSchema;
24276
+ exports.planPricingIntervalSchema = planPricingIntervalSchema;
24277
+ exports.planPricingSchema = planPricingSchema;
24257
24278
  exports.planSchema = planSchema;
24258
24279
  exports.planSlugEnum = planSlugEnum;
24259
24280
  exports.planSlugToNameMap = planSlugToNameMap;