lancer-shared 1.2.269 → 1.2.271

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,9 @@ const subscriptionSchema = objectType({
7006
7007
  source: subscriptionSourceEnum,
7007
7008
  usage: recordType(usageEventTypeEnum, numberType()),
7008
7009
  trialEndsAt: numberType().nullable(),
7010
+ billingInterval: billingIntervalEnum,
7011
+ hasUsBidderAccess: booleanType().nullable(),
7012
+ usBidderSubscriptionItemId: stringType().nullable(),
7009
7013
  });
7010
7014
 
7011
7015
  const coverLetterTemplateSchema = z.object({
@@ -7085,7 +7089,7 @@ const organizationSchema = objectType({
7085
7089
  updatedAt: numberType(),
7086
7090
  openRouterApiKey: stringType().nullable(),
7087
7091
  nextProposalStatusSyncTime: numberType().nullable(),
7088
- oneTimePayments: oneTimePaymentsSchema.optional(),
7092
+ usBidderAccountSubscription: oneTimePaymentsSchema.optional(),
7089
7093
  });
7090
7094
  const organizationUpdateSchema = objectType({ planId: stringType() });
7091
7095
  const caseStudySchema = objectType({
@@ -7156,7 +7160,8 @@ const organizationSettingsSchema = objectType({
7156
7160
  const subscribePayloadSchema = objectType({
7157
7161
  planId: stringType().min(1, 'Plan id is required.'),
7158
7162
  toltReferral: stringType().optional(),
7159
- couponCode: stringType().nullish(),
7163
+ promoCode: stringType().optional(),
7164
+ billingInterval: billingIntervalEnum,
7160
7165
  });
7161
7166
 
7162
7167
  const campaignExpensesSchema = z.object({
@@ -9040,6 +9045,18 @@ const planFeatureSchema = objectType({
9040
9045
  description: stringType(),
9041
9046
  tooltipContent: stringType().nullable(),
9042
9047
  });
9048
+ const planPricingIntervalSchema = objectType({
9049
+ amount: numberType(),
9050
+ currency: stringType(),
9051
+ priceId: stringType().regex(/^price_[a-zA-Z0-9]+$/),
9052
+ lookupKey: stringType(),
9053
+ isLegacyPricing: booleanType(),
9054
+ });
9055
+ const planPricingSchema = objectType({
9056
+ monthly: planPricingIntervalSchema,
9057
+ quarterly: planPricingIntervalSchema.optional(),
9058
+ yearly: planPricingIntervalSchema.optional(),
9059
+ });
9043
9060
  const planSchema = objectType({
9044
9061
  id: stringType().regex(/^prod_[a-zA-Z0-9]+$/),
9045
9062
  name: stringType(),
@@ -9054,6 +9071,7 @@ const planSchema = objectType({
9054
9071
  isActive: booleanType(),
9055
9072
  createdAt: numberType(),
9056
9073
  archivedAt: numberType().nullable(),
9074
+ pricing: planPricingSchema,
9057
9075
  });
9058
9076
  const planSlugEnum = z.enum(['lancer-unlimited-launch-offer']);
9059
9077
 
@@ -15243,13 +15261,15 @@ const ROUTES = {
15243
15261
  BASE: (id) => `organizations/${id}/members`,
15244
15262
  BY_ID: (id, memberId) => `organizations/${id}/members/${memberId}`,
15245
15263
  },
15264
+ CHECK_PROMO_CODE: (id) => `organizations/${id}/check-promo-code`,
15265
+ STRIPE_PORTAL: (id) => `organizations/${id}/stripe-portal-session`,
15246
15266
  UPDATE_LEADS_STATUS: (id) => `organizations/${id}/update-leads-status`,
15247
15267
  SETTINGS: (id) => `organizations/${id}/settings`,
15248
15268
  CHARGES: (id) => `organizations/${id}/charges`,
15249
15269
  PAYMENT_METHODS: (id) => `organizations/${id}/payment-methods`,
15250
15270
  TRACK_USAGE: (id) => `organizations/${id}/track-usage`,
15251
15271
  SUBSCRIBE: (id) => `organizations/${id}/subscribe`,
15252
- BUY_US_BIDDER_ACCOUNT: (id) => `organizations/${id}/buy-us-bidder-account`,
15272
+ SUBSCRIBE_US_BIDDER_ACCOUNT: (id) => `organizations/${id}/subscribe-us-bidder-account`,
15253
15273
  PAUSE_CAMPAIGNS: (id) => `organizations/${id}/pause-campaigns`,
15254
15274
  BIDDER_ACCOUNTS: {
15255
15275
  BASE: (id) => `organizations/${id}/bidder-accounts`,
@@ -24066,6 +24086,7 @@ exports.biddingFailedEventMetadata = biddingFailedEventMetadata;
24066
24086
  exports.biddingHourlyRateStrategyEnum = biddingHourlyRateStrategyEnum;
24067
24087
  exports.biddingProcessingEventMetadata = biddingProcessingEventMetadata;
24068
24088
  exports.biddingRejectedWithFeedbackEventMetadata = biddingRejectedWithFeedbackEventMetadata;
24089
+ exports.billingIntervalEnum = billingIntervalEnum;
24069
24090
  exports.booleanSchema = booleanSchema;
24070
24091
  exports.boostAboveMaxConnectsException = boostAboveMaxConnectsException;
24071
24092
  exports.boostFormSchema = boostFormSchema;
@@ -24254,6 +24275,8 @@ exports.periodUsageSchema = periodUsageSchema;
24254
24275
  exports.pickProfileRequestSchema = pickProfileRequestSchema;
24255
24276
  exports.pickProfileResponseSchema = pickProfileResponseSchema;
24256
24277
  exports.planFeatureSchema = planFeatureSchema;
24278
+ exports.planPricingIntervalSchema = planPricingIntervalSchema;
24279
+ exports.planPricingSchema = planPricingSchema;
24257
24280
  exports.planSchema = planSchema;
24258
24281
  exports.planSlugEnum = planSlugEnum;
24259
24282
  exports.planSlugToNameMap = planSlugToNameMap;