lancer-shared 1.2.286 → 1.2.287

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.
@@ -6563,6 +6563,7 @@ const proxyProviderSchema = z.enum([
6563
6563
  'proxy-cheap',
6564
6564
  'rayobyte',
6565
6565
  'brightdata',
6566
+ 'iproyal',
6566
6567
  ]);
6567
6568
  const proxyTypeSchema = z.enum(['rotating', 'static']);
6568
6569
  const proxySchema = z.object({
@@ -6576,6 +6577,7 @@ const proxySchema = z.object({
6576
6577
  ip: z.string(),
6577
6578
  isProxy: z.boolean().nullable(),
6578
6579
  claimedCountry: proxyCountryEnum,
6580
+ city: z.string().nullable(),
6579
6581
  status: proxyStatusSchema.nullable(),
6580
6582
  country: proxyCountryEnum.nullable(),
6581
6583
  accountId: z.string().nullable(),
@@ -6586,6 +6588,7 @@ const externalProxySchema = proxySchema.omit({
6586
6588
  accountId: true,
6587
6589
  status: true,
6588
6590
  country: true,
6591
+ city: true,
6589
6592
  });
6590
6593
  const refreshRotatingProxiesRequestBodySchema = z.object({
6591
6594
  region: regionEnum,
@@ -7099,6 +7102,7 @@ const coverLetterTemplateSchema = z.object({
7099
7102
  description: z.string().nullable(),
7100
7103
  template: z.string(),
7101
7104
  instructions: z.string(),
7105
+ status: z.enum(['active', 'archived']),
7102
7106
  });
7103
7107
  const createCoverLetterTemplateSchema = coverLetterTemplateSchema.pick({
7104
7108
  name: true,
@@ -7246,7 +7250,7 @@ const subscribePayloadSchema = objectType({
7246
7250
  planId: stringType().min(1, 'Plan id is required.'),
7247
7251
  toltReferral: stringType().optional(),
7248
7252
  promoCode: stringType().optional(),
7249
- // billingInterval: billingIntervalEnum,
7253
+ billingInterval: billingIntervalEnum.optional(),
7250
7254
  });
7251
7255
 
7252
7256
  const campaignExpensesSchema = z.object({
@@ -7383,6 +7387,13 @@ const campaignAnalyticsSchema = z.object({
7383
7387
  suitableJobs: z.number().optional(),
7384
7388
  unsuitableJobs: z.number().optional(),
7385
7389
  wonAmount: z.number().optional(),
7390
+ avgSubmissionDelayInMs: z.number().optional(),
7391
+ submissionDelayCount: z.number().optional(),
7392
+ totalBiddingAmount: z.number().optional(),
7393
+ totalBoostedAmount: z.number().optional(),
7394
+ replyRateByTemplateId: z.record(z.string(), z.number()).optional(),
7395
+ viewRateByTemplateId: z.record(z.string(), z.number()).optional(),
7396
+ contactedByTemplateId: z.record(z.string(), z.number()).optional(),
7386
7397
  });
7387
7398
  const campaignAnalyticsStatsSchema = z.object({
7388
7399
  totalStats: campaignAnalyticsSchema,
@@ -7394,8 +7405,13 @@ const campaignAnalyticsStatsSchema = z.object({
7394
7405
  replied: z.number(),
7395
7406
  won: z.number(),
7396
7407
  leadsAnalyzed: z.number(),
7408
+ avgSubmissionDelayInMs: z.number(),
7409
+ submissionDelayCount: z.number(),
7397
7410
  totalBiddingAmount: z.number(),
7398
7411
  totalBoostedAmount: z.number(),
7412
+ replyRateByTemplateId: z.record(z.string(), z.number()),
7413
+ viewRateByTemplateId: z.record(z.string(), z.number()),
7414
+ contactedByTemplateId: z.record(z.string(), z.number()),
7399
7415
  })),
7400
7416
  });
7401
7417
  const campaignAnalyticsResponseSchema = z.object({
@@ -7405,6 +7421,13 @@ const campaignAnalyticsResponseSchema = z.object({
7405
7421
  viewed: z.number(),
7406
7422
  replied: z.number(),
7407
7423
  won: z.number(),
7424
+ avgSubmissionDelayInMs: z.number(),
7425
+ submissionDelayCount: z.number(),
7426
+ totalBiddingAmount: z.number(),
7427
+ totalBoostedAmount: z.number(),
7428
+ replyRateByTemplateId: z.record(z.string(), z.number()),
7429
+ viewRateByTemplateId: z.record(z.string(), z.number()),
7430
+ contactedByTemplateId: z.record(z.string(), z.number()),
7408
7431
  });
7409
7432
  const campaignActivityTypeSchema = z.enum([
7410
7433
  'campaign_status',
@@ -9169,6 +9192,7 @@ const planStripeMetadataSchema = objectType({
9169
9192
  id: stringType().regex(/^price_[a-zA-Z0-9]+$/),
9170
9193
  nickname: stringType(),
9171
9194
  lookup_key: stringType(),
9195
+ billing_interval: billingIntervalEnum,
9172
9196
  })),
9173
9197
  });
9174
9198
  const planFeatureSchema = objectType({
@@ -9178,24 +9202,21 @@ const planFeatureSchema = objectType({
9178
9202
  });
9179
9203
  const planPricingIntervalSchema = objectType({
9180
9204
  amount: numberType(),
9181
- currency: stringType(),
9205
+ label: stringType(),
9182
9206
  priceId: stringType().regex(/^price_[a-zA-Z0-9]+$/),
9183
9207
  lookupKey: stringType(),
9184
- isLegacyPricing: booleanType(),
9185
9208
  });
9186
9209
  const planPricingSchema = objectType({
9187
- monthly: planPricingIntervalSchema,
9188
- quarterly: planPricingIntervalSchema.optional(),
9189
- yearly: planPricingIntervalSchema.optional(),
9210
+ monthly: arrayType(planPricingIntervalSchema),
9211
+ quarterly: arrayType(planPricingIntervalSchema).optional(),
9212
+ yearly: arrayType(planPricingIntervalSchema).optional(),
9190
9213
  });
9191
9214
  const planSchema = objectType({
9192
9215
  id: stringType().regex(/^prod_[a-zA-Z0-9]+$/),
9193
9216
  name: stringType(),
9194
- displayName: stringType(),
9195
9217
  slug: stringType().regex(/^[a-z0-9-]+$/),
9196
9218
  description: stringType(),
9197
9219
  price: numberType(),
9198
- stripe: planStripeMetadataSchema,
9199
9220
  version: numberType().int().positive(),
9200
9221
  features: arrayType(planFeatureSchema),
9201
9222
  sortOrder: numberType().int().positive(),
@@ -15388,6 +15409,7 @@ const ROUTES = {
15388
15409
  COVER_LETTER: {
15389
15410
  BASE: (id) => `organizations/${id}/cover-letter`,
15390
15411
  BY_ID: (id, coverLetterId) => `organizations/${id}/cover-letter/${coverLetterId}`,
15412
+ DUPLICATE: (id, coverLetterId) => `organizations/${id}/cover-letter/${coverLetterId}/duplicate`,
15391
15413
  },
15392
15414
  PROFILES: {
15393
15415
  BASE: (id) => `organizations/${id}/profiles`,
@@ -15423,6 +15445,7 @@ const ROUTES = {
15423
15445
  LEADS_BY_JOB_ID: (organizationId, jobId) => `organizations/${organizationId}/leads/${jobId}`,
15424
15446
  UPDATE_CAMPAIGN_PRIORITY: (organizationId) => `organizations/${organizationId}/update-campaign-priority`,
15425
15447
  CAMPAIGN_ANALYTICS: (organizationId) => `organizations/${organizationId}/campaign-analytics`,
15448
+ CAMPAIGN_ANALYTICS_BY_CAMPAIGN: (organizationId) => `organizations/${organizationId}/campaign-analytics-by-campaign`,
15426
15449
  CAMPAIGNS: {
15427
15450
  BASE: (organizationId) => `organizations/${organizationId}/campaigns`,
15428
15451
  BY_ID: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}`,