lancer-shared 1.2.286 → 1.2.288
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 +31 -8
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +31 -8
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +2 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +126 -0
- package/dist/schemas/campaign/campaign.d.ts +15 -0
- package/dist/schemas/organization/cover-letter.d.ts +5 -1
- package/dist/schemas/organization/index.d.ts +3 -3
- package/dist/schemas/proxy/proxy-available-replacements.d.ts +1 -1
- package/dist/schemas/proxy/proxy.d.ts +12 -8
- package/dist/schemas/scraper/scrape-payload.d.ts +7 -0
- package/package.json +1 -1
package/dist/bundle.esm.js
CHANGED
|
@@ -6561,6 +6561,7 @@ const proxyProviderSchema = z.enum([
|
|
|
6561
6561
|
'proxy-cheap',
|
|
6562
6562
|
'rayobyte',
|
|
6563
6563
|
'brightdata',
|
|
6564
|
+
'iproyal',
|
|
6564
6565
|
]);
|
|
6565
6566
|
const proxyTypeSchema = z.enum(['rotating', 'static']);
|
|
6566
6567
|
const proxySchema = z.object({
|
|
@@ -6574,6 +6575,7 @@ const proxySchema = z.object({
|
|
|
6574
6575
|
ip: z.string(),
|
|
6575
6576
|
isProxy: z.boolean().nullable(),
|
|
6576
6577
|
claimedCountry: proxyCountryEnum,
|
|
6578
|
+
city: z.string().nullable(),
|
|
6577
6579
|
status: proxyStatusSchema.nullable(),
|
|
6578
6580
|
country: proxyCountryEnum.nullable(),
|
|
6579
6581
|
accountId: z.string().nullable(),
|
|
@@ -6584,6 +6586,7 @@ const externalProxySchema = proxySchema.omit({
|
|
|
6584
6586
|
accountId: true,
|
|
6585
6587
|
status: true,
|
|
6586
6588
|
country: true,
|
|
6589
|
+
city: true,
|
|
6587
6590
|
});
|
|
6588
6591
|
const refreshRotatingProxiesRequestBodySchema = z.object({
|
|
6589
6592
|
region: regionEnum,
|
|
@@ -7097,6 +7100,7 @@ const coverLetterTemplateSchema = z.object({
|
|
|
7097
7100
|
description: z.string().nullable(),
|
|
7098
7101
|
template: z.string(),
|
|
7099
7102
|
instructions: z.string(),
|
|
7103
|
+
status: z.enum(['active', 'archived']),
|
|
7100
7104
|
});
|
|
7101
7105
|
const createCoverLetterTemplateSchema = coverLetterTemplateSchema.pick({
|
|
7102
7106
|
name: true,
|
|
@@ -7244,7 +7248,7 @@ const subscribePayloadSchema = objectType({
|
|
|
7244
7248
|
planId: stringType().min(1, 'Plan id is required.'),
|
|
7245
7249
|
toltReferral: stringType().optional(),
|
|
7246
7250
|
promoCode: stringType().optional(),
|
|
7247
|
-
|
|
7251
|
+
billingInterval: billingIntervalEnum.optional(),
|
|
7248
7252
|
});
|
|
7249
7253
|
|
|
7250
7254
|
const campaignExpensesSchema = z.object({
|
|
@@ -7381,6 +7385,13 @@ const campaignAnalyticsSchema = z.object({
|
|
|
7381
7385
|
suitableJobs: z.number().optional(),
|
|
7382
7386
|
unsuitableJobs: z.number().optional(),
|
|
7383
7387
|
wonAmount: z.number().optional(),
|
|
7388
|
+
avgSubmissionDelayInMs: z.number().optional(),
|
|
7389
|
+
submissionDelayCount: z.number().optional(),
|
|
7390
|
+
totalBiddingAmount: z.number().optional(),
|
|
7391
|
+
totalBoostedAmount: z.number().optional(),
|
|
7392
|
+
replyRateByTemplateId: z.record(z.string(), z.number()).optional(),
|
|
7393
|
+
viewRateByTemplateId: z.record(z.string(), z.number()).optional(),
|
|
7394
|
+
contactedByTemplateId: z.record(z.string(), z.number()).optional(),
|
|
7384
7395
|
});
|
|
7385
7396
|
const campaignAnalyticsStatsSchema = z.object({
|
|
7386
7397
|
totalStats: campaignAnalyticsSchema,
|
|
@@ -7392,8 +7403,13 @@ const campaignAnalyticsStatsSchema = z.object({
|
|
|
7392
7403
|
replied: z.number(),
|
|
7393
7404
|
won: z.number(),
|
|
7394
7405
|
leadsAnalyzed: z.number(),
|
|
7406
|
+
avgSubmissionDelayInMs: z.number(),
|
|
7407
|
+
submissionDelayCount: z.number(),
|
|
7395
7408
|
totalBiddingAmount: z.number(),
|
|
7396
7409
|
totalBoostedAmount: z.number(),
|
|
7410
|
+
replyRateByTemplateId: z.record(z.string(), z.number()),
|
|
7411
|
+
viewRateByTemplateId: z.record(z.string(), z.number()),
|
|
7412
|
+
contactedByTemplateId: z.record(z.string(), z.number()),
|
|
7397
7413
|
})),
|
|
7398
7414
|
});
|
|
7399
7415
|
const campaignAnalyticsResponseSchema = z.object({
|
|
@@ -7403,6 +7419,13 @@ const campaignAnalyticsResponseSchema = z.object({
|
|
|
7403
7419
|
viewed: z.number(),
|
|
7404
7420
|
replied: z.number(),
|
|
7405
7421
|
won: z.number(),
|
|
7422
|
+
avgSubmissionDelayInMs: z.number(),
|
|
7423
|
+
submissionDelayCount: z.number(),
|
|
7424
|
+
totalBiddingAmount: z.number(),
|
|
7425
|
+
totalBoostedAmount: z.number(),
|
|
7426
|
+
replyRateByTemplateId: z.record(z.string(), z.number()),
|
|
7427
|
+
viewRateByTemplateId: z.record(z.string(), z.number()),
|
|
7428
|
+
contactedByTemplateId: z.record(z.string(), z.number()),
|
|
7406
7429
|
});
|
|
7407
7430
|
const campaignActivityTypeSchema = z.enum([
|
|
7408
7431
|
'campaign_status',
|
|
@@ -9167,6 +9190,7 @@ const planStripeMetadataSchema = objectType({
|
|
|
9167
9190
|
id: stringType().regex(/^price_[a-zA-Z0-9]+$/),
|
|
9168
9191
|
nickname: stringType(),
|
|
9169
9192
|
lookup_key: stringType(),
|
|
9193
|
+
billing_interval: billingIntervalEnum,
|
|
9170
9194
|
})),
|
|
9171
9195
|
});
|
|
9172
9196
|
const planFeatureSchema = objectType({
|
|
@@ -9176,24 +9200,21 @@ const planFeatureSchema = objectType({
|
|
|
9176
9200
|
});
|
|
9177
9201
|
const planPricingIntervalSchema = objectType({
|
|
9178
9202
|
amount: numberType(),
|
|
9179
|
-
|
|
9203
|
+
label: stringType(),
|
|
9180
9204
|
priceId: stringType().regex(/^price_[a-zA-Z0-9]+$/),
|
|
9181
9205
|
lookupKey: stringType(),
|
|
9182
|
-
isLegacyPricing: booleanType(),
|
|
9183
9206
|
});
|
|
9184
9207
|
const planPricingSchema = objectType({
|
|
9185
|
-
monthly: planPricingIntervalSchema,
|
|
9186
|
-
quarterly: planPricingIntervalSchema.optional(),
|
|
9187
|
-
yearly: planPricingIntervalSchema.optional(),
|
|
9208
|
+
monthly: arrayType(planPricingIntervalSchema),
|
|
9209
|
+
quarterly: arrayType(planPricingIntervalSchema).optional(),
|
|
9210
|
+
yearly: arrayType(planPricingIntervalSchema).optional(),
|
|
9188
9211
|
});
|
|
9189
9212
|
const planSchema = objectType({
|
|
9190
9213
|
id: stringType().regex(/^prod_[a-zA-Z0-9]+$/),
|
|
9191
9214
|
name: stringType(),
|
|
9192
|
-
displayName: stringType(),
|
|
9193
9215
|
slug: stringType().regex(/^[a-z0-9-]+$/),
|
|
9194
9216
|
description: stringType(),
|
|
9195
9217
|
price: numberType(),
|
|
9196
|
-
stripe: planStripeMetadataSchema,
|
|
9197
9218
|
version: numberType().int().positive(),
|
|
9198
9219
|
features: arrayType(planFeatureSchema),
|
|
9199
9220
|
sortOrder: numberType().int().positive(),
|
|
@@ -15386,6 +15407,7 @@ const ROUTES = {
|
|
|
15386
15407
|
COVER_LETTER: {
|
|
15387
15408
|
BASE: (id) => `organizations/${id}/cover-letter`,
|
|
15388
15409
|
BY_ID: (id, coverLetterId) => `organizations/${id}/cover-letter/${coverLetterId}`,
|
|
15410
|
+
DUPLICATE: (id, coverLetterId) => `organizations/${id}/cover-letter/${coverLetterId}/duplicate`,
|
|
15389
15411
|
},
|
|
15390
15412
|
PROFILES: {
|
|
15391
15413
|
BASE: (id) => `organizations/${id}/profiles`,
|
|
@@ -15421,6 +15443,7 @@ const ROUTES = {
|
|
|
15421
15443
|
LEADS_BY_JOB_ID: (organizationId, jobId) => `organizations/${organizationId}/leads/${jobId}`,
|
|
15422
15444
|
UPDATE_CAMPAIGN_PRIORITY: (organizationId) => `organizations/${organizationId}/update-campaign-priority`,
|
|
15423
15445
|
CAMPAIGN_ANALYTICS: (organizationId) => `organizations/${organizationId}/campaign-analytics`,
|
|
15446
|
+
CAMPAIGN_ANALYTICS_BY_CAMPAIGN: (organizationId) => `organizations/${organizationId}/campaign-analytics-by-campaign`,
|
|
15424
15447
|
CAMPAIGNS: {
|
|
15425
15448
|
BASE: (organizationId) => `organizations/${organizationId}/campaigns`,
|
|
15426
15449
|
BY_ID: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}`,
|