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.
- package/dist/bundle.cjs.js +26 -3
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +24 -4
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +3 -1
- package/dist/schemas/campaign/campaign-analytics.d.ts +80 -8
- package/dist/schemas/organization/index.d.ts +34 -7
- package/dist/schemas/organization/subscription.d.ts +11 -0
- package/dist/schemas/plan/index.d.ts +275 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +26 -5
- 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,9 @@ 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"]>;
|
|
1112
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
1113
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
1111
1114
|
}, "strip", z.ZodTypeAny, {
|
|
1112
1115
|
source: "manual" | "stripe";
|
|
1113
1116
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -1130,6 +1133,9 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1130
1133
|
currentPeriodEnd: number;
|
|
1131
1134
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1132
1135
|
trialEndsAt: number | null;
|
|
1136
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1137
|
+
hasUsBidderAccess: boolean | null;
|
|
1138
|
+
usBidderSubscriptionItemId: string | null;
|
|
1133
1139
|
}, {
|
|
1134
1140
|
source: "manual" | "stripe";
|
|
1135
1141
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -1152,6 +1158,9 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1152
1158
|
currentPeriodEnd: number;
|
|
1153
1159
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1154
1160
|
trialEndsAt: number | null;
|
|
1161
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1162
|
+
hasUsBidderAccess: boolean | null;
|
|
1163
|
+
usBidderSubscriptionItemId: string | null;
|
|
1155
1164
|
}>>;
|
|
1156
1165
|
active: z.ZodBoolean;
|
|
1157
1166
|
limits: z.ZodObject<{
|
|
@@ -1207,7 +1216,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1207
1216
|
updatedAt: z.ZodNumber;
|
|
1208
1217
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
1209
1218
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
1210
|
-
|
|
1219
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
1211
1220
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
1212
1221
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
1213
1222
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1285,6 +1294,9 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1285
1294
|
currentPeriodEnd: number;
|
|
1286
1295
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1287
1296
|
trialEndsAt: number | null;
|
|
1297
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1298
|
+
hasUsBidderAccess: boolean | null;
|
|
1299
|
+
usBidderSubscriptionItemId: string | null;
|
|
1288
1300
|
} | null;
|
|
1289
1301
|
limits: {
|
|
1290
1302
|
monthlyCredits: number;
|
|
@@ -1297,7 +1309,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1297
1309
|
updatedAt: number;
|
|
1298
1310
|
openRouterApiKey: string | null;
|
|
1299
1311
|
nextProposalStatusSyncTime: number | null;
|
|
1300
|
-
|
|
1312
|
+
usBidderAccountSubscription?: {
|
|
1301
1313
|
usBidderAccountPayment?: {
|
|
1302
1314
|
status: string;
|
|
1303
1315
|
error?: string | undefined;
|
|
@@ -1343,6 +1355,9 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1343
1355
|
currentPeriodEnd: number;
|
|
1344
1356
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1345
1357
|
trialEndsAt: number | null;
|
|
1358
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1359
|
+
hasUsBidderAccess: boolean | null;
|
|
1360
|
+
usBidderSubscriptionItemId: string | null;
|
|
1346
1361
|
} | null;
|
|
1347
1362
|
limits: {
|
|
1348
1363
|
monthlyCredits: number;
|
|
@@ -1355,7 +1370,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1355
1370
|
updatedAt: number;
|
|
1356
1371
|
openRouterApiKey: string | null;
|
|
1357
1372
|
nextProposalStatusSyncTime: number | null;
|
|
1358
|
-
|
|
1373
|
+
usBidderAccountSubscription?: {
|
|
1359
1374
|
usBidderAccountPayment?: {
|
|
1360
1375
|
status: string;
|
|
1361
1376
|
error?: string | undefined;
|
|
@@ -2249,6 +2264,9 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2249
2264
|
currentPeriodEnd: number;
|
|
2250
2265
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
2251
2266
|
trialEndsAt: number | null;
|
|
2267
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
2268
|
+
hasUsBidderAccess: boolean | null;
|
|
2269
|
+
usBidderSubscriptionItemId: string | null;
|
|
2252
2270
|
} | null;
|
|
2253
2271
|
limits: {
|
|
2254
2272
|
monthlyCredits: number;
|
|
@@ -2261,7 +2279,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2261
2279
|
updatedAt: number;
|
|
2262
2280
|
openRouterApiKey: string | null;
|
|
2263
2281
|
nextProposalStatusSyncTime: number | null;
|
|
2264
|
-
|
|
2282
|
+
usBidderAccountSubscription?: {
|
|
2265
2283
|
usBidderAccountPayment?: {
|
|
2266
2284
|
status: string;
|
|
2267
2285
|
error?: string | undefined;
|
|
@@ -2626,6 +2644,9 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2626
2644
|
currentPeriodEnd: number;
|
|
2627
2645
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
2628
2646
|
trialEndsAt: number | null;
|
|
2647
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
2648
|
+
hasUsBidderAccess: boolean | null;
|
|
2649
|
+
usBidderSubscriptionItemId: string | null;
|
|
2629
2650
|
} | null;
|
|
2630
2651
|
limits: {
|
|
2631
2652
|
monthlyCredits: number;
|
|
@@ -2638,7 +2659,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2638
2659
|
updatedAt: number;
|
|
2639
2660
|
openRouterApiKey: string | null;
|
|
2640
2661
|
nextProposalStatusSyncTime: number | null;
|
|
2641
|
-
|
|
2662
|
+
usBidderAccountSubscription?: {
|
|
2642
2663
|
usBidderAccountPayment?: {
|
|
2643
2664
|
status: string;
|
|
2644
2665
|
error?: string | undefined;
|