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
|
@@ -45,6 +45,128 @@ export declare const planFeatureSchema: z.ZodObject<{
|
|
|
45
45
|
description: string;
|
|
46
46
|
tooltipContent: string | null;
|
|
47
47
|
}>;
|
|
48
|
+
export declare const planPricingIntervalSchema: z.ZodObject<{
|
|
49
|
+
amount: z.ZodNumber;
|
|
50
|
+
currency: z.ZodString;
|
|
51
|
+
priceId: z.ZodString;
|
|
52
|
+
lookupKey: z.ZodString;
|
|
53
|
+
isLegacyPricing: z.ZodBoolean;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
currency: string;
|
|
56
|
+
amount: number;
|
|
57
|
+
priceId: string;
|
|
58
|
+
lookupKey: string;
|
|
59
|
+
isLegacyPricing: boolean;
|
|
60
|
+
}, {
|
|
61
|
+
currency: string;
|
|
62
|
+
amount: number;
|
|
63
|
+
priceId: string;
|
|
64
|
+
lookupKey: string;
|
|
65
|
+
isLegacyPricing: boolean;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const planPricingSchema: z.ZodObject<{
|
|
68
|
+
monthly: z.ZodObject<{
|
|
69
|
+
amount: z.ZodNumber;
|
|
70
|
+
currency: z.ZodString;
|
|
71
|
+
priceId: z.ZodString;
|
|
72
|
+
lookupKey: z.ZodString;
|
|
73
|
+
isLegacyPricing: z.ZodBoolean;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
currency: string;
|
|
76
|
+
amount: number;
|
|
77
|
+
priceId: string;
|
|
78
|
+
lookupKey: string;
|
|
79
|
+
isLegacyPricing: boolean;
|
|
80
|
+
}, {
|
|
81
|
+
currency: string;
|
|
82
|
+
amount: number;
|
|
83
|
+
priceId: string;
|
|
84
|
+
lookupKey: string;
|
|
85
|
+
isLegacyPricing: boolean;
|
|
86
|
+
}>;
|
|
87
|
+
quarterly: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
amount: z.ZodNumber;
|
|
89
|
+
currency: z.ZodString;
|
|
90
|
+
priceId: z.ZodString;
|
|
91
|
+
lookupKey: z.ZodString;
|
|
92
|
+
isLegacyPricing: z.ZodBoolean;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
currency: string;
|
|
95
|
+
amount: number;
|
|
96
|
+
priceId: string;
|
|
97
|
+
lookupKey: string;
|
|
98
|
+
isLegacyPricing: boolean;
|
|
99
|
+
}, {
|
|
100
|
+
currency: string;
|
|
101
|
+
amount: number;
|
|
102
|
+
priceId: string;
|
|
103
|
+
lookupKey: string;
|
|
104
|
+
isLegacyPricing: boolean;
|
|
105
|
+
}>>;
|
|
106
|
+
yearly: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
amount: z.ZodNumber;
|
|
108
|
+
currency: z.ZodString;
|
|
109
|
+
priceId: z.ZodString;
|
|
110
|
+
lookupKey: z.ZodString;
|
|
111
|
+
isLegacyPricing: z.ZodBoolean;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
currency: string;
|
|
114
|
+
amount: number;
|
|
115
|
+
priceId: string;
|
|
116
|
+
lookupKey: string;
|
|
117
|
+
isLegacyPricing: boolean;
|
|
118
|
+
}, {
|
|
119
|
+
currency: string;
|
|
120
|
+
amount: number;
|
|
121
|
+
priceId: string;
|
|
122
|
+
lookupKey: string;
|
|
123
|
+
isLegacyPricing: boolean;
|
|
124
|
+
}>>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
monthly: {
|
|
127
|
+
currency: string;
|
|
128
|
+
amount: number;
|
|
129
|
+
priceId: string;
|
|
130
|
+
lookupKey: string;
|
|
131
|
+
isLegacyPricing: boolean;
|
|
132
|
+
};
|
|
133
|
+
quarterly?: {
|
|
134
|
+
currency: string;
|
|
135
|
+
amount: number;
|
|
136
|
+
priceId: string;
|
|
137
|
+
lookupKey: string;
|
|
138
|
+
isLegacyPricing: boolean;
|
|
139
|
+
} | undefined;
|
|
140
|
+
yearly?: {
|
|
141
|
+
currency: string;
|
|
142
|
+
amount: number;
|
|
143
|
+
priceId: string;
|
|
144
|
+
lookupKey: string;
|
|
145
|
+
isLegacyPricing: boolean;
|
|
146
|
+
} | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
monthly: {
|
|
149
|
+
currency: string;
|
|
150
|
+
amount: number;
|
|
151
|
+
priceId: string;
|
|
152
|
+
lookupKey: string;
|
|
153
|
+
isLegacyPricing: boolean;
|
|
154
|
+
};
|
|
155
|
+
quarterly?: {
|
|
156
|
+
currency: string;
|
|
157
|
+
amount: number;
|
|
158
|
+
priceId: string;
|
|
159
|
+
lookupKey: string;
|
|
160
|
+
isLegacyPricing: boolean;
|
|
161
|
+
} | undefined;
|
|
162
|
+
yearly?: {
|
|
163
|
+
currency: string;
|
|
164
|
+
amount: number;
|
|
165
|
+
priceId: string;
|
|
166
|
+
lookupKey: string;
|
|
167
|
+
isLegacyPricing: boolean;
|
|
168
|
+
} | undefined;
|
|
169
|
+
}>;
|
|
48
170
|
export declare const planSchema: z.ZodObject<{
|
|
49
171
|
id: z.ZodString;
|
|
50
172
|
name: z.ZodString;
|
|
@@ -103,6 +225,109 @@ export declare const planSchema: z.ZodObject<{
|
|
|
103
225
|
isActive: z.ZodBoolean;
|
|
104
226
|
createdAt: z.ZodNumber;
|
|
105
227
|
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
228
|
+
pricing: z.ZodObject<{
|
|
229
|
+
monthly: z.ZodObject<{
|
|
230
|
+
amount: z.ZodNumber;
|
|
231
|
+
currency: z.ZodString;
|
|
232
|
+
priceId: z.ZodString;
|
|
233
|
+
lookupKey: z.ZodString;
|
|
234
|
+
isLegacyPricing: z.ZodBoolean;
|
|
235
|
+
}, "strip", z.ZodTypeAny, {
|
|
236
|
+
currency: string;
|
|
237
|
+
amount: number;
|
|
238
|
+
priceId: string;
|
|
239
|
+
lookupKey: string;
|
|
240
|
+
isLegacyPricing: boolean;
|
|
241
|
+
}, {
|
|
242
|
+
currency: string;
|
|
243
|
+
amount: number;
|
|
244
|
+
priceId: string;
|
|
245
|
+
lookupKey: string;
|
|
246
|
+
isLegacyPricing: boolean;
|
|
247
|
+
}>;
|
|
248
|
+
quarterly: z.ZodOptional<z.ZodObject<{
|
|
249
|
+
amount: z.ZodNumber;
|
|
250
|
+
currency: z.ZodString;
|
|
251
|
+
priceId: z.ZodString;
|
|
252
|
+
lookupKey: z.ZodString;
|
|
253
|
+
isLegacyPricing: z.ZodBoolean;
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
currency: string;
|
|
256
|
+
amount: number;
|
|
257
|
+
priceId: string;
|
|
258
|
+
lookupKey: string;
|
|
259
|
+
isLegacyPricing: boolean;
|
|
260
|
+
}, {
|
|
261
|
+
currency: string;
|
|
262
|
+
amount: number;
|
|
263
|
+
priceId: string;
|
|
264
|
+
lookupKey: string;
|
|
265
|
+
isLegacyPricing: boolean;
|
|
266
|
+
}>>;
|
|
267
|
+
yearly: z.ZodOptional<z.ZodObject<{
|
|
268
|
+
amount: z.ZodNumber;
|
|
269
|
+
currency: z.ZodString;
|
|
270
|
+
priceId: z.ZodString;
|
|
271
|
+
lookupKey: z.ZodString;
|
|
272
|
+
isLegacyPricing: z.ZodBoolean;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
currency: string;
|
|
275
|
+
amount: number;
|
|
276
|
+
priceId: string;
|
|
277
|
+
lookupKey: string;
|
|
278
|
+
isLegacyPricing: boolean;
|
|
279
|
+
}, {
|
|
280
|
+
currency: string;
|
|
281
|
+
amount: number;
|
|
282
|
+
priceId: string;
|
|
283
|
+
lookupKey: string;
|
|
284
|
+
isLegacyPricing: boolean;
|
|
285
|
+
}>>;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
monthly: {
|
|
288
|
+
currency: string;
|
|
289
|
+
amount: number;
|
|
290
|
+
priceId: string;
|
|
291
|
+
lookupKey: string;
|
|
292
|
+
isLegacyPricing: boolean;
|
|
293
|
+
};
|
|
294
|
+
quarterly?: {
|
|
295
|
+
currency: string;
|
|
296
|
+
amount: number;
|
|
297
|
+
priceId: string;
|
|
298
|
+
lookupKey: string;
|
|
299
|
+
isLegacyPricing: boolean;
|
|
300
|
+
} | undefined;
|
|
301
|
+
yearly?: {
|
|
302
|
+
currency: string;
|
|
303
|
+
amount: number;
|
|
304
|
+
priceId: string;
|
|
305
|
+
lookupKey: string;
|
|
306
|
+
isLegacyPricing: boolean;
|
|
307
|
+
} | undefined;
|
|
308
|
+
}, {
|
|
309
|
+
monthly: {
|
|
310
|
+
currency: string;
|
|
311
|
+
amount: number;
|
|
312
|
+
priceId: string;
|
|
313
|
+
lookupKey: string;
|
|
314
|
+
isLegacyPricing: boolean;
|
|
315
|
+
};
|
|
316
|
+
quarterly?: {
|
|
317
|
+
currency: string;
|
|
318
|
+
amount: number;
|
|
319
|
+
priceId: string;
|
|
320
|
+
lookupKey: string;
|
|
321
|
+
isLegacyPricing: boolean;
|
|
322
|
+
} | undefined;
|
|
323
|
+
yearly?: {
|
|
324
|
+
currency: string;
|
|
325
|
+
amount: number;
|
|
326
|
+
priceId: string;
|
|
327
|
+
lookupKey: string;
|
|
328
|
+
isLegacyPricing: boolean;
|
|
329
|
+
} | undefined;
|
|
330
|
+
}>;
|
|
106
331
|
}, "strip", z.ZodTypeAny, {
|
|
107
332
|
id: string;
|
|
108
333
|
name: string;
|
|
@@ -120,6 +345,29 @@ export declare const planSchema: z.ZodObject<{
|
|
|
120
345
|
price: number;
|
|
121
346
|
createdAt: number;
|
|
122
347
|
sortOrder: number;
|
|
348
|
+
pricing: {
|
|
349
|
+
monthly: {
|
|
350
|
+
currency: string;
|
|
351
|
+
amount: number;
|
|
352
|
+
priceId: string;
|
|
353
|
+
lookupKey: string;
|
|
354
|
+
isLegacyPricing: boolean;
|
|
355
|
+
};
|
|
356
|
+
quarterly?: {
|
|
357
|
+
currency: string;
|
|
358
|
+
amount: number;
|
|
359
|
+
priceId: string;
|
|
360
|
+
lookupKey: string;
|
|
361
|
+
isLegacyPricing: boolean;
|
|
362
|
+
} | undefined;
|
|
363
|
+
yearly?: {
|
|
364
|
+
currency: string;
|
|
365
|
+
amount: number;
|
|
366
|
+
priceId: string;
|
|
367
|
+
lookupKey: string;
|
|
368
|
+
isLegacyPricing: boolean;
|
|
369
|
+
} | undefined;
|
|
370
|
+
};
|
|
123
371
|
isActive: boolean;
|
|
124
372
|
displayName: string;
|
|
125
373
|
slug: string;
|
|
@@ -146,6 +394,29 @@ export declare const planSchema: z.ZodObject<{
|
|
|
146
394
|
price: number;
|
|
147
395
|
createdAt: number;
|
|
148
396
|
sortOrder: number;
|
|
397
|
+
pricing: {
|
|
398
|
+
monthly: {
|
|
399
|
+
currency: string;
|
|
400
|
+
amount: number;
|
|
401
|
+
priceId: string;
|
|
402
|
+
lookupKey: string;
|
|
403
|
+
isLegacyPricing: boolean;
|
|
404
|
+
};
|
|
405
|
+
quarterly?: {
|
|
406
|
+
currency: string;
|
|
407
|
+
amount: number;
|
|
408
|
+
priceId: string;
|
|
409
|
+
lookupKey: string;
|
|
410
|
+
isLegacyPricing: boolean;
|
|
411
|
+
} | undefined;
|
|
412
|
+
yearly?: {
|
|
413
|
+
currency: string;
|
|
414
|
+
amount: number;
|
|
415
|
+
priceId: string;
|
|
416
|
+
lookupKey: string;
|
|
417
|
+
isLegacyPricing: boolean;
|
|
418
|
+
} | undefined;
|
|
419
|
+
};
|
|
149
420
|
isActive: boolean;
|
|
150
421
|
displayName: string;
|
|
151
422
|
slug: string;
|
|
@@ -161,6 +432,10 @@ export interface PlanStripeMetadata extends infer<typeof planStripeMetadataSchem
|
|
|
161
432
|
}
|
|
162
433
|
export interface PlanFeature extends infer<typeof planFeatureSchema> {
|
|
163
434
|
}
|
|
435
|
+
export interface PlanPricingInterval extends infer<typeof planPricingIntervalSchema> {
|
|
436
|
+
}
|
|
437
|
+
export interface PlanPricing extends infer<typeof planPricingSchema> {
|
|
438
|
+
}
|
|
164
439
|
export interface Plan extends infer<typeof planSchema> {
|
|
165
440
|
}
|
|
166
441
|
export type PlanSlug = z.infer<typeof planSlugEnum>;
|
|
@@ -1108,6 +1108,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1108
1108
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
1109
1109
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
1110
1110
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
1111
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
1111
1112
|
}, "strip", z.ZodTypeAny, {
|
|
1112
1113
|
source: "manual" | "stripe";
|
|
1113
1114
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -1130,6 +1131,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1130
1131
|
currentPeriodEnd: number;
|
|
1131
1132
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1132
1133
|
trialEndsAt: number | null;
|
|
1134
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1133
1135
|
}, {
|
|
1134
1136
|
source: "manual" | "stripe";
|
|
1135
1137
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -1152,6 +1154,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1152
1154
|
currentPeriodEnd: number;
|
|
1153
1155
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1154
1156
|
trialEndsAt: number | null;
|
|
1157
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1155
1158
|
}>>;
|
|
1156
1159
|
active: z.ZodBoolean;
|
|
1157
1160
|
limits: z.ZodObject<{
|
|
@@ -1285,6 +1288,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1285
1288
|
currentPeriodEnd: number;
|
|
1286
1289
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1287
1290
|
trialEndsAt: number | null;
|
|
1291
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1288
1292
|
} | null;
|
|
1289
1293
|
limits: {
|
|
1290
1294
|
monthlyCredits: number;
|
|
@@ -1343,6 +1347,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1343
1347
|
currentPeriodEnd: number;
|
|
1344
1348
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1345
1349
|
trialEndsAt: number | null;
|
|
1350
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1346
1351
|
} | null;
|
|
1347
1352
|
limits: {
|
|
1348
1353
|
monthlyCredits: number;
|
|
@@ -1772,6 +1777,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1772
1777
|
specialisedProfile: string | null;
|
|
1773
1778
|
};
|
|
1774
1779
|
}>>;
|
|
1780
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
1775
1781
|
}>, "processed">, "strip", z.ZodTypeAny, {
|
|
1776
1782
|
id: string | null;
|
|
1777
1783
|
title: string | null;
|
|
@@ -1914,6 +1920,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1914
1920
|
specialisedProfile: string | null;
|
|
1915
1921
|
};
|
|
1916
1922
|
} | null;
|
|
1923
|
+
statusSynced: boolean | null;
|
|
1917
1924
|
activity?: Partial<Record<"4h" | "24h", {
|
|
1918
1925
|
updatedAt: number | null;
|
|
1919
1926
|
unansweredInvites: number | null;
|
|
@@ -2078,6 +2085,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2078
2085
|
specialisedProfile: string | null;
|
|
2079
2086
|
};
|
|
2080
2087
|
} | null;
|
|
2088
|
+
statusSynced: boolean | null;
|
|
2081
2089
|
activity?: Partial<Record<"4h" | "24h", {
|
|
2082
2090
|
updatedAt: number | null;
|
|
2083
2091
|
unansweredInvites: number | null;
|
|
@@ -2246,6 +2254,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2246
2254
|
currentPeriodEnd: number;
|
|
2247
2255
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
2248
2256
|
trialEndsAt: number | null;
|
|
2257
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
2249
2258
|
} | null;
|
|
2250
2259
|
limits: {
|
|
2251
2260
|
monthlyCredits: number;
|
|
@@ -2412,6 +2421,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2412
2421
|
specialisedProfile: string | null;
|
|
2413
2422
|
};
|
|
2414
2423
|
} | null;
|
|
2424
|
+
statusSynced: boolean | null;
|
|
2415
2425
|
activity?: Partial<Record<"4h" | "24h", {
|
|
2416
2426
|
updatedAt: number | null;
|
|
2417
2427
|
unansweredInvites: number | null;
|
|
@@ -2622,6 +2632,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2622
2632
|
currentPeriodEnd: number;
|
|
2623
2633
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
2624
2634
|
trialEndsAt: number | null;
|
|
2635
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
2625
2636
|
} | null;
|
|
2626
2637
|
limits: {
|
|
2627
2638
|
monthlyCredits: number;
|
|
@@ -2788,6 +2799,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2788
2799
|
specialisedProfile: string | null;
|
|
2789
2800
|
};
|
|
2790
2801
|
} | null;
|
|
2802
|
+
statusSynced: boolean | null;
|
|
2791
2803
|
activity?: Partial<Record<"4h" | "24h", {
|
|
2792
2804
|
updatedAt: number | null;
|
|
2793
2805
|
unansweredInvites: number | null;
|