lancer-shared 1.2.270 → 1.2.272
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 +13 -6
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +13 -7
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +1 -1
- package/dist/schemas/account/bidder-account.d.ts +20 -20
- package/dist/schemas/account/scraper-account.d.ts +22 -22
- package/dist/schemas/agent/index.d.ts +216 -216
- package/dist/schemas/agent/proposal.d.ts +2 -2
- package/dist/schemas/bidder/bid.d.ts +2062 -2043
- package/dist/schemas/campaign/campaign-analytics.d.ts +840 -784
- package/dist/schemas/campaign/campaign-chat-bot.d.ts +9 -9
- package/dist/schemas/campaign/campaign.d.ts +378 -378
- package/dist/schemas/dashboard/index.d.ts +12 -12
- package/dist/schemas/golden-dataset/sample.d.ts +8 -8
- package/dist/schemas/invoice/index.d.ts +4 -4
- package/dist/schemas/job/index.d.ts +112 -112
- package/dist/schemas/job/job-api.d.ts +6 -6
- package/dist/schemas/job/job-details.d.ts +74 -74
- package/dist/schemas/job/job-filters.d.ts +47 -47
- package/dist/schemas/job/job-listing.d.ts +22 -22
- package/dist/schemas/job/nuxt.d.ts +24 -24
- package/dist/schemas/lead/index.d.ts +845 -844
- package/dist/schemas/lead/insufficient-connects-action.d.ts +3 -0
- package/dist/schemas/lead/lead-status.d.ts +10 -10
- package/dist/schemas/logger/feed/feed-chunk-enrich.d.ts +6 -6
- package/dist/schemas/logger/feed/feed-enrich.d.ts +6 -6
- package/dist/schemas/logger/feed/feed-job-enrich.d.ts +140 -140
- package/dist/schemas/logger/feed/feed-scrape.d.ts +6 -6
- package/dist/schemas/logger/log-event.d.ts +72 -72
- package/dist/schemas/logger/scraper-events.d.ts +28 -28
- package/dist/schemas/notifications/index.d.ts +4 -4
- package/dist/schemas/organization/billing.d.ts +2 -2
- package/dist/schemas/organization/index.d.ts +86 -66
- package/dist/schemas/organization/organization-leads.d.ts +4 -4
- package/dist/schemas/organization/subscription.d.ts +15 -9
- package/dist/schemas/plan/index.d.ts +22 -22
- package/dist/schemas/proxy/proxy.d.ts +2 -2
- package/dist/schemas/scraper/scrape-payload.d.ts +514 -495
- package/dist/schemas/scraper/scrape-result.d.ts +136 -136
- package/dist/schemas/talent/index.d.ts +148 -148
- package/dist/schemas/transaction/index.d.ts +2 -2
- package/dist/schemas/usage/index.d.ts +2 -2
- package/dist/schemas/usage-event/index.d.ts +8 -8
- package/package.json +1 -1
|
@@ -7,15 +7,15 @@ export declare const sendAlertPayloadSchema: z.ZodObject<{
|
|
|
7
7
|
errorMessage: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
type: "proposal" | "suitability" | "bidding" | "scraper";
|
|
10
|
-
campaignId: string | null;
|
|
11
|
-
organizationId: string | null;
|
|
12
10
|
leadId: string | null;
|
|
11
|
+
organizationId: string | null;
|
|
12
|
+
campaignId: string | null;
|
|
13
13
|
errorMessage: string;
|
|
14
14
|
}, {
|
|
15
15
|
type: "proposal" | "suitability" | "bidding" | "scraper";
|
|
16
|
-
campaignId: string | null;
|
|
17
|
-
organizationId: string | null;
|
|
18
16
|
leadId: string | null;
|
|
17
|
+
organizationId: string | null;
|
|
18
|
+
campaignId: string | null;
|
|
19
19
|
errorMessage: string;
|
|
20
20
|
}>;
|
|
21
21
|
export type SendAlertPayload = z.infer<typeof sendAlertPayloadSchema>;
|
|
@@ -35,17 +35,17 @@ export declare const billingSchema: import("zod").ZodObject<{
|
|
|
35
35
|
};
|
|
36
36
|
}>;
|
|
37
37
|
}, "strip", import("zod").ZodTypeAny, {
|
|
38
|
-
savedCard: boolean;
|
|
39
38
|
stripe: {
|
|
40
39
|
customer: {
|
|
41
40
|
id: string | null;
|
|
42
41
|
};
|
|
43
42
|
};
|
|
44
|
-
}, {
|
|
45
43
|
savedCard: boolean;
|
|
44
|
+
}, {
|
|
46
45
|
stripe: {
|
|
47
46
|
customer: {
|
|
48
47
|
id: string | null;
|
|
49
48
|
};
|
|
50
49
|
};
|
|
50
|
+
savedCard: boolean;
|
|
51
51
|
}>;
|
|
@@ -27,15 +27,15 @@ declare const oneTimePaymentSchema: z.ZodObject<{
|
|
|
27
27
|
status: string;
|
|
28
28
|
error?: string | undefined;
|
|
29
29
|
currency?: string | undefined;
|
|
30
|
-
paidAt?: number | undefined;
|
|
31
30
|
amount?: number | undefined;
|
|
31
|
+
paidAt?: number | undefined;
|
|
32
32
|
paymentIntentId?: string | undefined;
|
|
33
33
|
}, {
|
|
34
34
|
status: string;
|
|
35
35
|
error?: string | undefined;
|
|
36
36
|
currency?: string | undefined;
|
|
37
|
-
paidAt?: number | undefined;
|
|
38
37
|
amount?: number | undefined;
|
|
38
|
+
paidAt?: number | undefined;
|
|
39
39
|
paymentIntentId?: string | undefined;
|
|
40
40
|
}>;
|
|
41
41
|
declare const oneTimePaymentsSchema: z.ZodObject<{
|
|
@@ -50,15 +50,15 @@ declare const oneTimePaymentsSchema: z.ZodObject<{
|
|
|
50
50
|
status: string;
|
|
51
51
|
error?: string | undefined;
|
|
52
52
|
currency?: string | undefined;
|
|
53
|
-
paidAt?: number | undefined;
|
|
54
53
|
amount?: number | undefined;
|
|
54
|
+
paidAt?: number | undefined;
|
|
55
55
|
paymentIntentId?: string | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
status: string;
|
|
58
58
|
error?: string | undefined;
|
|
59
59
|
currency?: string | undefined;
|
|
60
|
-
paidAt?: number | undefined;
|
|
61
60
|
amount?: number | undefined;
|
|
61
|
+
paidAt?: number | undefined;
|
|
62
62
|
paymentIntentId?: string | undefined;
|
|
63
63
|
}>>;
|
|
64
64
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -66,8 +66,8 @@ declare const oneTimePaymentsSchema: z.ZodObject<{
|
|
|
66
66
|
status: string;
|
|
67
67
|
error?: string | undefined;
|
|
68
68
|
currency?: string | undefined;
|
|
69
|
-
paidAt?: number | undefined;
|
|
70
69
|
amount?: number | undefined;
|
|
70
|
+
paidAt?: number | undefined;
|
|
71
71
|
paymentIntentId?: string | undefined;
|
|
72
72
|
} | undefined;
|
|
73
73
|
}, {
|
|
@@ -75,8 +75,8 @@ declare const oneTimePaymentsSchema: z.ZodObject<{
|
|
|
75
75
|
status: string;
|
|
76
76
|
error?: string | undefined;
|
|
77
77
|
currency?: string | undefined;
|
|
78
|
-
paidAt?: number | undefined;
|
|
79
78
|
amount?: number | undefined;
|
|
79
|
+
paidAt?: number | undefined;
|
|
80
80
|
paymentIntentId?: string | undefined;
|
|
81
81
|
} | undefined;
|
|
82
82
|
}>;
|
|
@@ -151,11 +151,16 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
151
151
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
152
152
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
153
153
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
154
|
-
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]
|
|
154
|
+
billingInterval: z.ZodNullable<z.ZodEnum<["monthly", "quarterly", "yearly"]>>;
|
|
155
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
156
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
155
157
|
}, "strip", z.ZodTypeAny, {
|
|
156
158
|
source: "manual" | "stripe";
|
|
157
159
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
158
160
|
planId: string;
|
|
161
|
+
pendingPlanId: string | null;
|
|
162
|
+
startedAt: number;
|
|
163
|
+
currentPeriodEnd: number;
|
|
159
164
|
stripe: {
|
|
160
165
|
id: string;
|
|
161
166
|
items: {
|
|
@@ -169,16 +174,18 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
169
174
|
hosted_invoice_url: string | null;
|
|
170
175
|
};
|
|
171
176
|
};
|
|
172
|
-
pendingPlanId: string | null;
|
|
173
|
-
startedAt: number;
|
|
174
|
-
currentPeriodEnd: number;
|
|
175
177
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
176
178
|
trialEndsAt: number | null;
|
|
177
|
-
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
179
|
+
billingInterval: "monthly" | "quarterly" | "yearly" | null;
|
|
180
|
+
hasUsBidderAccess: boolean | null;
|
|
181
|
+
usBidderSubscriptionItemId: string | null;
|
|
178
182
|
}, {
|
|
179
183
|
source: "manual" | "stripe";
|
|
180
184
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
181
185
|
planId: string;
|
|
186
|
+
pendingPlanId: string | null;
|
|
187
|
+
startedAt: number;
|
|
188
|
+
currentPeriodEnd: number;
|
|
182
189
|
stripe: {
|
|
183
190
|
id: string;
|
|
184
191
|
items: {
|
|
@@ -192,12 +199,11 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
192
199
|
hosted_invoice_url: string | null;
|
|
193
200
|
};
|
|
194
201
|
};
|
|
195
|
-
pendingPlanId: string | null;
|
|
196
|
-
startedAt: number;
|
|
197
|
-
currentPeriodEnd: number;
|
|
198
202
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
199
203
|
trialEndsAt: number | null;
|
|
200
|
-
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
204
|
+
billingInterval: "monthly" | "quarterly" | "yearly" | null;
|
|
205
|
+
hasUsBidderAccess: boolean | null;
|
|
206
|
+
usBidderSubscriptionItemId: string | null;
|
|
201
207
|
}>>;
|
|
202
208
|
active: z.ZodBoolean;
|
|
203
209
|
limits: z.ZodObject<{
|
|
@@ -233,19 +239,19 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
233
239
|
};
|
|
234
240
|
}>;
|
|
235
241
|
}, "strip", z.ZodTypeAny, {
|
|
236
|
-
savedCard: boolean;
|
|
237
242
|
stripe: {
|
|
238
243
|
customer: {
|
|
239
244
|
id: string | null;
|
|
240
245
|
};
|
|
241
246
|
};
|
|
242
|
-
}, {
|
|
243
247
|
savedCard: boolean;
|
|
248
|
+
}, {
|
|
244
249
|
stripe: {
|
|
245
250
|
customer: {
|
|
246
251
|
id: string | null;
|
|
247
252
|
};
|
|
248
253
|
};
|
|
254
|
+
savedCard: boolean;
|
|
249
255
|
}>>;
|
|
250
256
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
251
257
|
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
@@ -253,7 +259,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
253
259
|
updatedAt: z.ZodNumber;
|
|
254
260
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
255
261
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
256
|
-
|
|
262
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
257
263
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
258
264
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
259
265
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -265,15 +271,15 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
265
271
|
status: string;
|
|
266
272
|
error?: string | undefined;
|
|
267
273
|
currency?: string | undefined;
|
|
268
|
-
paidAt?: number | undefined;
|
|
269
274
|
amount?: number | undefined;
|
|
275
|
+
paidAt?: number | undefined;
|
|
270
276
|
paymentIntentId?: string | undefined;
|
|
271
277
|
}, {
|
|
272
278
|
status: string;
|
|
273
279
|
error?: string | undefined;
|
|
274
280
|
currency?: string | undefined;
|
|
275
|
-
paidAt?: number | undefined;
|
|
276
281
|
amount?: number | undefined;
|
|
282
|
+
paidAt?: number | undefined;
|
|
277
283
|
paymentIntentId?: string | undefined;
|
|
278
284
|
}>>;
|
|
279
285
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -281,8 +287,8 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
281
287
|
status: string;
|
|
282
288
|
error?: string | undefined;
|
|
283
289
|
currency?: string | undefined;
|
|
284
|
-
paidAt?: number | undefined;
|
|
285
290
|
amount?: number | undefined;
|
|
291
|
+
paidAt?: number | undefined;
|
|
286
292
|
paymentIntentId?: string | undefined;
|
|
287
293
|
} | undefined;
|
|
288
294
|
}, {
|
|
@@ -290,29 +296,40 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
290
296
|
status: string;
|
|
291
297
|
error?: string | undefined;
|
|
292
298
|
currency?: string | undefined;
|
|
293
|
-
paidAt?: number | undefined;
|
|
294
299
|
amount?: number | undefined;
|
|
300
|
+
paidAt?: number | undefined;
|
|
295
301
|
paymentIntentId?: string | undefined;
|
|
296
302
|
} | undefined;
|
|
297
303
|
}>>;
|
|
304
|
+
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
298
305
|
}, "strip", z.ZodTypeAny, {
|
|
299
306
|
type: "agency" | "freelancer";
|
|
300
307
|
id: string;
|
|
301
308
|
active: boolean;
|
|
302
309
|
name: string;
|
|
303
310
|
billing: {
|
|
304
|
-
savedCard: boolean;
|
|
305
311
|
stripe: {
|
|
306
312
|
customer: {
|
|
307
313
|
id: string | null;
|
|
308
314
|
};
|
|
309
315
|
};
|
|
316
|
+
savedCard: boolean;
|
|
310
317
|
} | null;
|
|
318
|
+
createdAt: number;
|
|
319
|
+
updatedAt: number;
|
|
320
|
+
limits: {
|
|
321
|
+
monthlyCredits: number;
|
|
322
|
+
usedCredits: number;
|
|
323
|
+
extraCredits: number;
|
|
324
|
+
};
|
|
311
325
|
associatedBidders: string[] | null;
|
|
312
326
|
subscription: {
|
|
313
327
|
source: "manual" | "stripe";
|
|
314
328
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
315
329
|
planId: string;
|
|
330
|
+
pendingPlanId: string | null;
|
|
331
|
+
startedAt: number;
|
|
332
|
+
currentPeriodEnd: number;
|
|
316
333
|
stripe: {
|
|
317
334
|
id: string;
|
|
318
335
|
items: {
|
|
@@ -326,31 +343,24 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
326
343
|
hosted_invoice_url: string | null;
|
|
327
344
|
};
|
|
328
345
|
};
|
|
329
|
-
pendingPlanId: string | null;
|
|
330
|
-
startedAt: number;
|
|
331
|
-
currentPeriodEnd: number;
|
|
332
346
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
333
347
|
trialEndsAt: number | null;
|
|
334
|
-
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
348
|
+
billingInterval: "monthly" | "quarterly" | "yearly" | null;
|
|
349
|
+
hasUsBidderAccess: boolean | null;
|
|
350
|
+
usBidderSubscriptionItemId: string | null;
|
|
335
351
|
} | null;
|
|
336
|
-
limits: {
|
|
337
|
-
monthlyCredits: number;
|
|
338
|
-
usedCredits: number;
|
|
339
|
-
extraCredits: number;
|
|
340
|
-
};
|
|
341
352
|
lastBidTime: number | null;
|
|
342
353
|
nextScheduledBidTime: number | null;
|
|
343
|
-
createdAt: number;
|
|
344
|
-
updatedAt: number;
|
|
345
354
|
openRouterApiKey: string | null;
|
|
346
355
|
nextProposalStatusSyncTime: number | null;
|
|
347
|
-
|
|
356
|
+
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
|
|
357
|
+
usBidderAccountSubscription?: {
|
|
348
358
|
usBidderAccountPayment?: {
|
|
349
359
|
status: string;
|
|
350
360
|
error?: string | undefined;
|
|
351
361
|
currency?: string | undefined;
|
|
352
|
-
paidAt?: number | undefined;
|
|
353
362
|
amount?: number | undefined;
|
|
363
|
+
paidAt?: number | undefined;
|
|
354
364
|
paymentIntentId?: string | undefined;
|
|
355
365
|
} | undefined;
|
|
356
366
|
} | undefined;
|
|
@@ -360,18 +370,28 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
360
370
|
active: boolean;
|
|
361
371
|
name: string;
|
|
362
372
|
billing: {
|
|
363
|
-
savedCard: boolean;
|
|
364
373
|
stripe: {
|
|
365
374
|
customer: {
|
|
366
375
|
id: string | null;
|
|
367
376
|
};
|
|
368
377
|
};
|
|
378
|
+
savedCard: boolean;
|
|
369
379
|
} | null;
|
|
380
|
+
createdAt: number;
|
|
381
|
+
updatedAt: number;
|
|
382
|
+
limits: {
|
|
383
|
+
monthlyCredits: number;
|
|
384
|
+
usedCredits: number;
|
|
385
|
+
extraCredits: number;
|
|
386
|
+
};
|
|
370
387
|
associatedBidders: string[] | null;
|
|
371
388
|
subscription: {
|
|
372
389
|
source: "manual" | "stripe";
|
|
373
390
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
374
391
|
planId: string;
|
|
392
|
+
pendingPlanId: string | null;
|
|
393
|
+
startedAt: number;
|
|
394
|
+
currentPeriodEnd: number;
|
|
375
395
|
stripe: {
|
|
376
396
|
id: string;
|
|
377
397
|
items: {
|
|
@@ -385,31 +405,24 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
385
405
|
hosted_invoice_url: string | null;
|
|
386
406
|
};
|
|
387
407
|
};
|
|
388
|
-
pendingPlanId: string | null;
|
|
389
|
-
startedAt: number;
|
|
390
|
-
currentPeriodEnd: number;
|
|
391
408
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
392
409
|
trialEndsAt: number | null;
|
|
393
|
-
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
410
|
+
billingInterval: "monthly" | "quarterly" | "yearly" | null;
|
|
411
|
+
hasUsBidderAccess: boolean | null;
|
|
412
|
+
usBidderSubscriptionItemId: string | null;
|
|
394
413
|
} | null;
|
|
395
|
-
limits: {
|
|
396
|
-
monthlyCredits: number;
|
|
397
|
-
usedCredits: number;
|
|
398
|
-
extraCredits: number;
|
|
399
|
-
};
|
|
400
414
|
lastBidTime: number | null;
|
|
401
415
|
nextScheduledBidTime: number | null;
|
|
402
|
-
createdAt: number;
|
|
403
|
-
updatedAt: number;
|
|
404
416
|
openRouterApiKey: string | null;
|
|
405
417
|
nextProposalStatusSyncTime: number | null;
|
|
406
|
-
|
|
418
|
+
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
|
|
419
|
+
usBidderAccountSubscription?: {
|
|
407
420
|
usBidderAccountPayment?: {
|
|
408
421
|
status: string;
|
|
409
422
|
error?: string | undefined;
|
|
410
423
|
currency?: string | undefined;
|
|
411
|
-
paidAt?: number | undefined;
|
|
412
424
|
amount?: number | undefined;
|
|
425
|
+
paidAt?: number | undefined;
|
|
413
426
|
paymentIntentId?: string | undefined;
|
|
414
427
|
} | undefined;
|
|
415
428
|
} | undefined;
|
|
@@ -727,11 +740,16 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
727
740
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
728
741
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
729
742
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
730
|
-
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]
|
|
743
|
+
billingInterval: z.ZodNullable<z.ZodEnum<["monthly", "quarterly", "yearly"]>>;
|
|
744
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
745
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
731
746
|
}, "strip", z.ZodTypeAny, {
|
|
732
747
|
source: "manual" | "stripe";
|
|
733
748
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
734
749
|
planId: string;
|
|
750
|
+
pendingPlanId: string | null;
|
|
751
|
+
startedAt: number;
|
|
752
|
+
currentPeriodEnd: number;
|
|
735
753
|
stripe: {
|
|
736
754
|
id: string;
|
|
737
755
|
items: {
|
|
@@ -745,16 +763,18 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
745
763
|
hosted_invoice_url: string | null;
|
|
746
764
|
};
|
|
747
765
|
};
|
|
748
|
-
pendingPlanId: string | null;
|
|
749
|
-
startedAt: number;
|
|
750
|
-
currentPeriodEnd: number;
|
|
751
766
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
752
767
|
trialEndsAt: number | null;
|
|
753
|
-
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
768
|
+
billingInterval: "monthly" | "quarterly" | "yearly" | null;
|
|
769
|
+
hasUsBidderAccess: boolean | null;
|
|
770
|
+
usBidderSubscriptionItemId: string | null;
|
|
754
771
|
}, {
|
|
755
772
|
source: "manual" | "stripe";
|
|
756
773
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
757
774
|
planId: string;
|
|
775
|
+
pendingPlanId: string | null;
|
|
776
|
+
startedAt: number;
|
|
777
|
+
currentPeriodEnd: number;
|
|
758
778
|
stripe: {
|
|
759
779
|
id: string;
|
|
760
780
|
items: {
|
|
@@ -768,12 +788,11 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
768
788
|
hosted_invoice_url: string | null;
|
|
769
789
|
};
|
|
770
790
|
};
|
|
771
|
-
pendingPlanId: string | null;
|
|
772
|
-
startedAt: number;
|
|
773
|
-
currentPeriodEnd: number;
|
|
774
791
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
775
792
|
trialEndsAt: number | null;
|
|
776
|
-
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
793
|
+
billingInterval: "monthly" | "quarterly" | "yearly" | null;
|
|
794
|
+
hasUsBidderAccess: boolean | null;
|
|
795
|
+
usBidderSubscriptionItemId: string | null;
|
|
777
796
|
}>>;
|
|
778
797
|
active: z.ZodBoolean;
|
|
779
798
|
limits: z.ZodObject<{
|
|
@@ -809,19 +828,19 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
809
828
|
};
|
|
810
829
|
}>;
|
|
811
830
|
}, "strip", z.ZodTypeAny, {
|
|
812
|
-
savedCard: boolean;
|
|
813
831
|
stripe: {
|
|
814
832
|
customer: {
|
|
815
833
|
id: string | null;
|
|
816
834
|
};
|
|
817
835
|
};
|
|
818
|
-
}, {
|
|
819
836
|
savedCard: boolean;
|
|
837
|
+
}, {
|
|
820
838
|
stripe: {
|
|
821
839
|
customer: {
|
|
822
840
|
id: string | null;
|
|
823
841
|
};
|
|
824
842
|
};
|
|
843
|
+
savedCard: boolean;
|
|
825
844
|
}>>;
|
|
826
845
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
827
846
|
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
@@ -829,7 +848,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
829
848
|
updatedAt: z.ZodNumber;
|
|
830
849
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
831
850
|
nextProposalStatusSyncTime: z.ZodNullable<z.ZodNumber>;
|
|
832
|
-
|
|
851
|
+
usBidderAccountSubscription: z.ZodOptional<z.ZodObject<{
|
|
833
852
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
834
853
|
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
835
854
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -841,15 +860,15 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
841
860
|
status: string;
|
|
842
861
|
error?: string | undefined;
|
|
843
862
|
currency?: string | undefined;
|
|
844
|
-
paidAt?: number | undefined;
|
|
845
863
|
amount?: number | undefined;
|
|
864
|
+
paidAt?: number | undefined;
|
|
846
865
|
paymentIntentId?: string | undefined;
|
|
847
866
|
}, {
|
|
848
867
|
status: string;
|
|
849
868
|
error?: string | undefined;
|
|
850
869
|
currency?: string | undefined;
|
|
851
|
-
paidAt?: number | undefined;
|
|
852
870
|
amount?: number | undefined;
|
|
871
|
+
paidAt?: number | undefined;
|
|
853
872
|
paymentIntentId?: string | undefined;
|
|
854
873
|
}>>;
|
|
855
874
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -857,8 +876,8 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
857
876
|
status: string;
|
|
858
877
|
error?: string | undefined;
|
|
859
878
|
currency?: string | undefined;
|
|
860
|
-
paidAt?: number | undefined;
|
|
861
879
|
amount?: number | undefined;
|
|
880
|
+
paidAt?: number | undefined;
|
|
862
881
|
paymentIntentId?: string | undefined;
|
|
863
882
|
} | undefined;
|
|
864
883
|
}, {
|
|
@@ -866,11 +885,12 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
866
885
|
status: string;
|
|
867
886
|
error?: string | undefined;
|
|
868
887
|
currency?: string | undefined;
|
|
869
|
-
paidAt?: number | undefined;
|
|
870
888
|
amount?: number | undefined;
|
|
889
|
+
paidAt?: number | undefined;
|
|
871
890
|
paymentIntentId?: string | undefined;
|
|
872
891
|
} | undefined;
|
|
873
892
|
}>>;
|
|
893
|
+
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
874
894
|
}, "type" | "name">, "strip", z.ZodTypeAny, {
|
|
875
895
|
type: "agency" | "freelancer";
|
|
876
896
|
name: string;
|
|
@@ -8,16 +8,16 @@ export declare const getOrganizationLeadsRequestQuerySchema: z.ZodObject<{
|
|
|
8
8
|
inQueue: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
cursor?: string | undefined;
|
|
11
|
-
status?: "all" | "rejected" | "
|
|
11
|
+
status?: "all" | "rejected" | "contacted" | "viewed" | "replied" | "suitable" | undefined;
|
|
12
12
|
campaignId?: string | undefined;
|
|
13
|
-
limit?: number | undefined;
|
|
14
13
|
inQueue?: boolean | undefined;
|
|
14
|
+
limit?: number | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
cursor?: string | undefined;
|
|
17
|
-
status?: "all" | "rejected" | "
|
|
17
|
+
status?: "all" | "rejected" | "contacted" | "viewed" | "replied" | "suitable" | undefined;
|
|
18
18
|
campaignId?: string | undefined;
|
|
19
|
-
limit?: number | undefined;
|
|
20
19
|
inQueue?: boolean | undefined;
|
|
20
|
+
limit?: number | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
export type GetOrganizationLeadsStatus = z.infer<typeof getOrganizationLeadsStatusEnum>;
|
|
23
23
|
export type GetOrganizationLeadsRequestQuery = z.infer<typeof getOrganizationLeadsRequestQuerySchema>;
|
|
@@ -145,11 +145,16 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
145
145
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
146
146
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
147
147
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
148
|
-
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]
|
|
148
|
+
billingInterval: z.ZodNullable<z.ZodEnum<["monthly", "quarterly", "yearly"]>>;
|
|
149
|
+
hasUsBidderAccess: z.ZodNullable<z.ZodBoolean>;
|
|
150
|
+
usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
|
|
149
151
|
}, "strip", z.ZodTypeAny, {
|
|
150
152
|
source: "manual" | "stripe";
|
|
151
153
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
152
154
|
planId: string;
|
|
155
|
+
pendingPlanId: string | null;
|
|
156
|
+
startedAt: number;
|
|
157
|
+
currentPeriodEnd: number;
|
|
153
158
|
stripe: {
|
|
154
159
|
id: string;
|
|
155
160
|
items: {
|
|
@@ -163,16 +168,18 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
163
168
|
hosted_invoice_url: string | null;
|
|
164
169
|
};
|
|
165
170
|
};
|
|
166
|
-
pendingPlanId: string | null;
|
|
167
|
-
startedAt: number;
|
|
168
|
-
currentPeriodEnd: number;
|
|
169
171
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
170
172
|
trialEndsAt: number | null;
|
|
171
|
-
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
173
|
+
billingInterval: "monthly" | "quarterly" | "yearly" | null;
|
|
174
|
+
hasUsBidderAccess: boolean | null;
|
|
175
|
+
usBidderSubscriptionItemId: string | null;
|
|
172
176
|
}, {
|
|
173
177
|
source: "manual" | "stripe";
|
|
174
178
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
175
179
|
planId: string;
|
|
180
|
+
pendingPlanId: string | null;
|
|
181
|
+
startedAt: number;
|
|
182
|
+
currentPeriodEnd: number;
|
|
176
183
|
stripe: {
|
|
177
184
|
id: string;
|
|
178
185
|
items: {
|
|
@@ -186,12 +193,11 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
186
193
|
hosted_invoice_url: string | null;
|
|
187
194
|
};
|
|
188
195
|
};
|
|
189
|
-
pendingPlanId: string | null;
|
|
190
|
-
startedAt: number;
|
|
191
|
-
currentPeriodEnd: number;
|
|
192
196
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
193
197
|
trialEndsAt: number | null;
|
|
194
|
-
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
198
|
+
billingInterval: "monthly" | "quarterly" | "yearly" | null;
|
|
199
|
+
hasUsBidderAccess: boolean | null;
|
|
200
|
+
usBidderSubscriptionItemId: string | null;
|
|
195
201
|
}>;
|
|
196
202
|
export type SubscriptionStatus = z.infer<typeof subscriptionStatusEnum>;
|
|
197
203
|
export interface SubscriptionStripeMetadataItem extends infer<typeof subscriptionStripeMetadataItemSchema> {
|
|
@@ -333,17 +333,6 @@ export declare const planSchema: z.ZodObject<{
|
|
|
333
333
|
name: string;
|
|
334
334
|
description: string;
|
|
335
335
|
version: number;
|
|
336
|
-
stripe: {
|
|
337
|
-
id: string;
|
|
338
|
-
name: string;
|
|
339
|
-
prices: {
|
|
340
|
-
id: string;
|
|
341
|
-
nickname: string;
|
|
342
|
-
lookup_key: string;
|
|
343
|
-
}[];
|
|
344
|
-
};
|
|
345
|
-
price: number;
|
|
346
|
-
createdAt: number;
|
|
347
336
|
sortOrder: number;
|
|
348
337
|
pricing: {
|
|
349
338
|
monthly: {
|
|
@@ -368,7 +357,18 @@ export declare const planSchema: z.ZodObject<{
|
|
|
368
357
|
isLegacyPricing: boolean;
|
|
369
358
|
} | undefined;
|
|
370
359
|
};
|
|
360
|
+
price: number;
|
|
361
|
+
createdAt: number;
|
|
371
362
|
isActive: boolean;
|
|
363
|
+
stripe: {
|
|
364
|
+
id: string;
|
|
365
|
+
name: string;
|
|
366
|
+
prices: {
|
|
367
|
+
id: string;
|
|
368
|
+
nickname: string;
|
|
369
|
+
lookup_key: string;
|
|
370
|
+
}[];
|
|
371
|
+
};
|
|
372
372
|
displayName: string;
|
|
373
373
|
slug: string;
|
|
374
374
|
features: {
|
|
@@ -382,17 +382,6 @@ export declare const planSchema: z.ZodObject<{
|
|
|
382
382
|
name: string;
|
|
383
383
|
description: string;
|
|
384
384
|
version: number;
|
|
385
|
-
stripe: {
|
|
386
|
-
id: string;
|
|
387
|
-
name: string;
|
|
388
|
-
prices: {
|
|
389
|
-
id: string;
|
|
390
|
-
nickname: string;
|
|
391
|
-
lookup_key: string;
|
|
392
|
-
}[];
|
|
393
|
-
};
|
|
394
|
-
price: number;
|
|
395
|
-
createdAt: number;
|
|
396
385
|
sortOrder: number;
|
|
397
386
|
pricing: {
|
|
398
387
|
monthly: {
|
|
@@ -417,7 +406,18 @@ export declare const planSchema: z.ZodObject<{
|
|
|
417
406
|
isLegacyPricing: boolean;
|
|
418
407
|
} | undefined;
|
|
419
408
|
};
|
|
409
|
+
price: number;
|
|
410
|
+
createdAt: number;
|
|
420
411
|
isActive: boolean;
|
|
412
|
+
stripe: {
|
|
413
|
+
id: string;
|
|
414
|
+
name: string;
|
|
415
|
+
prices: {
|
|
416
|
+
id: string;
|
|
417
|
+
nickname: string;
|
|
418
|
+
lookup_key: string;
|
|
419
|
+
}[];
|
|
420
|
+
};
|
|
421
421
|
displayName: string;
|
|
422
422
|
slug: string;
|
|
423
423
|
features: {
|
|
@@ -84,9 +84,9 @@ export declare const externalProxySchema: z.ZodObject<Omit<{
|
|
|
84
84
|
export declare const refreshRotatingProxiesRequestBodySchema: z.ZodObject<{
|
|
85
85
|
region: z.ZodEnum<["Worldwide", "USOnly", "UKOnly", "All"]>;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
region: "
|
|
87
|
+
region: "USOnly" | "UKOnly" | "Worldwide" | "All";
|
|
88
88
|
}, {
|
|
89
|
-
region: "
|
|
89
|
+
region: "USOnly" | "UKOnly" | "Worldwide" | "All";
|
|
90
90
|
}>;
|
|
91
91
|
export type ProxyProvider = z.infer<typeof proxyProviderSchema>;
|
|
92
92
|
export type ProxyCountry = z.infer<typeof proxyCountryEnum>;
|