lancer-shared 1.2.241 → 1.2.242
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.map +1 -0
- package/dist/bundle.esm.js.map +1 -0
- package/dist/schemas/account/bidder-account.d.ts +75 -75
- package/dist/schemas/account/scraper-account.d.ts +37 -37
- package/dist/schemas/agent/index.d.ts +285 -285
- package/dist/schemas/agent/proposal.d.ts +6 -6
- package/dist/schemas/bidder/bid.d.ts +2345 -2345
- package/dist/schemas/campaign/campaign-analytics.d.ts +857 -857
- package/dist/schemas/campaign/campaign-chat-bot.d.ts +25 -25
- package/dist/schemas/campaign/campaign-expenses.d.ts +2 -2
- package/dist/schemas/campaign/campaign-insights.d.ts +12 -12
- package/dist/schemas/campaign/campaign.d.ts +201 -201
- package/dist/schemas/campaign/sequence/boost-node.d.ts +2 -2
- package/dist/schemas/campaign/sequence/client-size-node.d.ts +8 -8
- package/dist/schemas/campaign/sequence/client-spent-node.d.ts +16 -16
- package/dist/schemas/campaign/sequence/hire-rate-node.d.ts +16 -16
- package/dist/schemas/campaign/sequence/hourly-rate-node.d.ts +16 -16
- package/dist/schemas/campaign/sequence/rating-node.d.ts +16 -16
- package/dist/schemas/campaign/sequence/suitability-node.d.ts +16 -16
- package/dist/schemas/dashboard/index.d.ts +34 -34
- package/dist/schemas/infrastructure/index.d.ts +8 -8
- package/dist/schemas/invoice/index.d.ts +51 -51
- package/dist/schemas/job/index.d.ts +212 -212
- package/dist/schemas/job/job-api.d.ts +4 -4
- package/dist/schemas/job/job-details.d.ts +736 -736
- package/dist/schemas/job/job-filters.d.ts +14 -14
- package/dist/schemas/job/job-listing.d.ts +94 -94
- package/dist/schemas/job/nuxt.d.ts +150 -150
- package/dist/schemas/lead/index.d.ts +1022 -1022
- package/dist/schemas/lead/lead-status.d.ts +10 -10
- package/dist/schemas/logger/feed/feed-chunk-enrich.d.ts +25 -25
- package/dist/schemas/logger/feed/feed-enrich.d.ts +15 -15
- package/dist/schemas/logger/feed/feed-job-enrich.d.ts +321 -321
- package/dist/schemas/logger/feed/feed-scrape.d.ts +15 -15
- package/dist/schemas/logger/log-event.d.ts +91 -91
- package/dist/schemas/logger/scraper-events.d.ts +90 -90
- package/dist/schemas/notifications/index.d.ts +4 -4
- package/dist/schemas/organization/cover-letter.d.ts +2 -2
- package/dist/schemas/organization/index.d.ts +104 -104
- package/dist/schemas/organization/subscription.d.ts +6 -6
- package/dist/schemas/plan/index.d.ts +14 -14
- package/dist/schemas/proxy/proxy.d.ts +20 -20
- package/dist/schemas/saved-search/index.d.ts +4 -4
- package/dist/schemas/scraper/scrape-payload.d.ts +621 -621
- package/dist/schemas/scraper/scrape-result.d.ts +214 -214
- package/dist/schemas/scraper/upwork-profile.d.ts +16 -16
- package/dist/schemas/shared.d.ts +1 -1
- package/dist/schemas/talent/index.d.ts +854 -854
- package/dist/schemas/transaction/index.d.ts +18 -18
- package/dist/schemas/usage/index.d.ts +16 -16
- package/dist/schemas/usage-event/index.d.ts +4 -4
- package/dist/schemas/user/index.d.ts +4 -4
- package/package.json +8 -6
|
@@ -25,18 +25,18 @@ declare const oneTimePaymentSchema: z.ZodObject<{
|
|
|
25
25
|
error: z.ZodOptional<z.ZodString>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
27
|
status: string;
|
|
28
|
+
error?: string | undefined;
|
|
29
|
+
currency?: string | undefined;
|
|
28
30
|
paidAt?: number | undefined;
|
|
29
31
|
amount?: number | undefined;
|
|
30
|
-
currency?: string | undefined;
|
|
31
32
|
paymentIntentId?: string | undefined;
|
|
32
|
-
error?: string | undefined;
|
|
33
33
|
}, {
|
|
34
34
|
status: string;
|
|
35
|
+
error?: string | undefined;
|
|
36
|
+
currency?: string | undefined;
|
|
35
37
|
paidAt?: number | undefined;
|
|
36
38
|
amount?: number | undefined;
|
|
37
|
-
currency?: string | undefined;
|
|
38
39
|
paymentIntentId?: string | undefined;
|
|
39
|
-
error?: string | undefined;
|
|
40
40
|
}>;
|
|
41
41
|
declare const oneTimePaymentsSchema: z.ZodObject<{
|
|
42
42
|
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
@@ -48,36 +48,36 @@ declare const oneTimePaymentsSchema: z.ZodObject<{
|
|
|
48
48
|
error: z.ZodOptional<z.ZodString>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
status: string;
|
|
51
|
+
error?: string | undefined;
|
|
52
|
+
currency?: string | undefined;
|
|
51
53
|
paidAt?: number | undefined;
|
|
52
54
|
amount?: number | undefined;
|
|
53
|
-
currency?: string | undefined;
|
|
54
55
|
paymentIntentId?: string | undefined;
|
|
55
|
-
error?: string | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
status: string;
|
|
58
|
+
error?: string | undefined;
|
|
59
|
+
currency?: string | undefined;
|
|
58
60
|
paidAt?: number | undefined;
|
|
59
61
|
amount?: number | undefined;
|
|
60
|
-
currency?: string | undefined;
|
|
61
62
|
paymentIntentId?: string | undefined;
|
|
62
|
-
error?: string | undefined;
|
|
63
63
|
}>>;
|
|
64
64
|
}, "strip", z.ZodTypeAny, {
|
|
65
65
|
usBidderAccountPayment?: {
|
|
66
66
|
status: string;
|
|
67
|
+
error?: string | undefined;
|
|
68
|
+
currency?: string | undefined;
|
|
67
69
|
paidAt?: number | undefined;
|
|
68
70
|
amount?: number | undefined;
|
|
69
|
-
currency?: string | undefined;
|
|
70
71
|
paymentIntentId?: string | undefined;
|
|
71
|
-
error?: string | undefined;
|
|
72
72
|
} | undefined;
|
|
73
73
|
}, {
|
|
74
74
|
usBidderAccountPayment?: {
|
|
75
75
|
status: string;
|
|
76
|
+
error?: string | undefined;
|
|
77
|
+
currency?: string | undefined;
|
|
76
78
|
paidAt?: number | undefined;
|
|
77
79
|
amount?: number | undefined;
|
|
78
|
-
currency?: string | undefined;
|
|
79
80
|
paymentIntentId?: string | undefined;
|
|
80
|
-
error?: string | undefined;
|
|
81
81
|
} | undefined;
|
|
82
82
|
}>;
|
|
83
83
|
export declare const organizationSchema: z.ZodObject<{
|
|
@@ -152,11 +152,9 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
152
152
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
153
153
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
154
154
|
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
|
|
155
|
+
source: "manual" | "stripe";
|
|
156
|
+
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
156
157
|
planId: string;
|
|
157
|
-
pendingPlanId: string | null;
|
|
158
|
-
startedAt: number;
|
|
159
|
-
currentPeriodEnd: number;
|
|
160
158
|
stripe: {
|
|
161
159
|
id: string;
|
|
162
160
|
items: {
|
|
@@ -170,15 +168,15 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
170
168
|
hosted_invoice_url: string | null;
|
|
171
169
|
};
|
|
172
170
|
};
|
|
173
|
-
|
|
171
|
+
pendingPlanId: string | null;
|
|
172
|
+
startedAt: number;
|
|
173
|
+
currentPeriodEnd: number;
|
|
174
174
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
175
175
|
trialEndsAt: number | null;
|
|
176
176
|
}, {
|
|
177
|
-
|
|
177
|
+
source: "manual" | "stripe";
|
|
178
|
+
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
178
179
|
planId: string;
|
|
179
|
-
pendingPlanId: string | null;
|
|
180
|
-
startedAt: number;
|
|
181
|
-
currentPeriodEnd: number;
|
|
182
180
|
stripe: {
|
|
183
181
|
id: string;
|
|
184
182
|
items: {
|
|
@@ -192,7 +190,9 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
192
190
|
hosted_invoice_url: string | null;
|
|
193
191
|
};
|
|
194
192
|
};
|
|
195
|
-
|
|
193
|
+
pendingPlanId: string | null;
|
|
194
|
+
startedAt: number;
|
|
195
|
+
currentPeriodEnd: number;
|
|
196
196
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
197
197
|
trialEndsAt: number | null;
|
|
198
198
|
}>>;
|
|
@@ -230,19 +230,19 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
230
230
|
};
|
|
231
231
|
}>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
savedCard: boolean;
|
|
233
234
|
stripe: {
|
|
234
235
|
customer: {
|
|
235
236
|
id: string | null;
|
|
236
237
|
};
|
|
237
238
|
};
|
|
238
|
-
savedCard: boolean;
|
|
239
239
|
}, {
|
|
240
|
+
savedCard: boolean;
|
|
240
241
|
stripe: {
|
|
241
242
|
customer: {
|
|
242
243
|
id: string | null;
|
|
243
244
|
};
|
|
244
245
|
};
|
|
245
|
-
savedCard: boolean;
|
|
246
246
|
}>>;
|
|
247
247
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
248
248
|
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
@@ -260,50 +260,56 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
260
260
|
error: z.ZodOptional<z.ZodString>;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
262
|
status: string;
|
|
263
|
+
error?: string | undefined;
|
|
264
|
+
currency?: string | undefined;
|
|
263
265
|
paidAt?: number | undefined;
|
|
264
266
|
amount?: number | undefined;
|
|
265
|
-
currency?: string | undefined;
|
|
266
267
|
paymentIntentId?: string | undefined;
|
|
267
|
-
error?: string | undefined;
|
|
268
268
|
}, {
|
|
269
269
|
status: string;
|
|
270
|
+
error?: string | undefined;
|
|
271
|
+
currency?: string | undefined;
|
|
270
272
|
paidAt?: number | undefined;
|
|
271
273
|
amount?: number | undefined;
|
|
272
|
-
currency?: string | undefined;
|
|
273
274
|
paymentIntentId?: string | undefined;
|
|
274
|
-
error?: string | undefined;
|
|
275
275
|
}>>;
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
277
|
usBidderAccountPayment?: {
|
|
278
278
|
status: string;
|
|
279
|
+
error?: string | undefined;
|
|
280
|
+
currency?: string | undefined;
|
|
279
281
|
paidAt?: number | undefined;
|
|
280
282
|
amount?: number | undefined;
|
|
281
|
-
currency?: string | undefined;
|
|
282
283
|
paymentIntentId?: string | undefined;
|
|
283
|
-
error?: string | undefined;
|
|
284
284
|
} | undefined;
|
|
285
285
|
}, {
|
|
286
286
|
usBidderAccountPayment?: {
|
|
287
287
|
status: string;
|
|
288
|
+
error?: string | undefined;
|
|
289
|
+
currency?: string | undefined;
|
|
288
290
|
paidAt?: number | undefined;
|
|
289
291
|
amount?: number | undefined;
|
|
290
|
-
currency?: string | undefined;
|
|
291
292
|
paymentIntentId?: string | undefined;
|
|
292
|
-
error?: string | undefined;
|
|
293
293
|
} | undefined;
|
|
294
294
|
}>>;
|
|
295
295
|
}, "strip", z.ZodTypeAny, {
|
|
296
296
|
type: "agency" | "freelancer";
|
|
297
297
|
id: string;
|
|
298
|
+
active: boolean;
|
|
298
299
|
name: string;
|
|
300
|
+
billing: {
|
|
301
|
+
savedCard: boolean;
|
|
302
|
+
stripe: {
|
|
303
|
+
customer: {
|
|
304
|
+
id: string | null;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
} | null;
|
|
299
308
|
associatedBidders: string[] | null;
|
|
300
|
-
active: boolean;
|
|
301
309
|
subscription: {
|
|
302
|
-
|
|
310
|
+
source: "manual" | "stripe";
|
|
311
|
+
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
303
312
|
planId: string;
|
|
304
|
-
pendingPlanId: string | null;
|
|
305
|
-
startedAt: number;
|
|
306
|
-
currentPeriodEnd: number;
|
|
307
313
|
stripe: {
|
|
308
314
|
id: string;
|
|
309
315
|
items: {
|
|
@@ -317,7 +323,9 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
317
323
|
hosted_invoice_url: string | null;
|
|
318
324
|
};
|
|
319
325
|
};
|
|
320
|
-
|
|
326
|
+
pendingPlanId: string | null;
|
|
327
|
+
startedAt: number;
|
|
328
|
+
currentPeriodEnd: number;
|
|
321
329
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
322
330
|
trialEndsAt: number | null;
|
|
323
331
|
} | null;
|
|
@@ -326,14 +334,6 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
326
334
|
usedCredits: number;
|
|
327
335
|
extraCredits: number;
|
|
328
336
|
};
|
|
329
|
-
billing: {
|
|
330
|
-
stripe: {
|
|
331
|
-
customer: {
|
|
332
|
-
id: string | null;
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
savedCard: boolean;
|
|
336
|
-
} | null;
|
|
337
337
|
lastBidTime: number | null;
|
|
338
338
|
nextScheduledBidTime: number | null;
|
|
339
339
|
createdAt: number;
|
|
@@ -343,25 +343,31 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
343
343
|
oneTimePayments?: {
|
|
344
344
|
usBidderAccountPayment?: {
|
|
345
345
|
status: string;
|
|
346
|
+
error?: string | undefined;
|
|
347
|
+
currency?: string | undefined;
|
|
346
348
|
paidAt?: number | undefined;
|
|
347
349
|
amount?: number | undefined;
|
|
348
|
-
currency?: string | undefined;
|
|
349
350
|
paymentIntentId?: string | undefined;
|
|
350
|
-
error?: string | undefined;
|
|
351
351
|
} | undefined;
|
|
352
352
|
} | undefined;
|
|
353
353
|
}, {
|
|
354
354
|
type: "agency" | "freelancer";
|
|
355
355
|
id: string;
|
|
356
|
+
active: boolean;
|
|
356
357
|
name: string;
|
|
358
|
+
billing: {
|
|
359
|
+
savedCard: boolean;
|
|
360
|
+
stripe: {
|
|
361
|
+
customer: {
|
|
362
|
+
id: string | null;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
} | null;
|
|
357
366
|
associatedBidders: string[] | null;
|
|
358
|
-
active: boolean;
|
|
359
367
|
subscription: {
|
|
360
|
-
|
|
368
|
+
source: "manual" | "stripe";
|
|
369
|
+
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
361
370
|
planId: string;
|
|
362
|
-
pendingPlanId: string | null;
|
|
363
|
-
startedAt: number;
|
|
364
|
-
currentPeriodEnd: number;
|
|
365
371
|
stripe: {
|
|
366
372
|
id: string;
|
|
367
373
|
items: {
|
|
@@ -375,7 +381,9 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
375
381
|
hosted_invoice_url: string | null;
|
|
376
382
|
};
|
|
377
383
|
};
|
|
378
|
-
|
|
384
|
+
pendingPlanId: string | null;
|
|
385
|
+
startedAt: number;
|
|
386
|
+
currentPeriodEnd: number;
|
|
379
387
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
380
388
|
trialEndsAt: number | null;
|
|
381
389
|
} | null;
|
|
@@ -384,14 +392,6 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
384
392
|
usedCredits: number;
|
|
385
393
|
extraCredits: number;
|
|
386
394
|
};
|
|
387
|
-
billing: {
|
|
388
|
-
stripe: {
|
|
389
|
-
customer: {
|
|
390
|
-
id: string | null;
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
|
-
savedCard: boolean;
|
|
394
|
-
} | null;
|
|
395
395
|
lastBidTime: number | null;
|
|
396
396
|
nextScheduledBidTime: number | null;
|
|
397
397
|
createdAt: number;
|
|
@@ -401,11 +401,11 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
401
401
|
oneTimePayments?: {
|
|
402
402
|
usBidderAccountPayment?: {
|
|
403
403
|
status: string;
|
|
404
|
+
error?: string | undefined;
|
|
405
|
+
currency?: string | undefined;
|
|
404
406
|
paidAt?: number | undefined;
|
|
405
407
|
amount?: number | undefined;
|
|
406
|
-
currency?: string | undefined;
|
|
407
408
|
paymentIntentId?: string | undefined;
|
|
408
|
-
error?: string | undefined;
|
|
409
409
|
} | undefined;
|
|
410
410
|
} | undefined;
|
|
411
411
|
}>;
|
|
@@ -473,9 +473,9 @@ export declare const organizationProfileSchema: z.ZodObject<{
|
|
|
473
473
|
type: "agency" | "freelancer";
|
|
474
474
|
id: string;
|
|
475
475
|
name: string;
|
|
476
|
-
createdAt: number;
|
|
477
|
-
title: string;
|
|
478
476
|
summary: string;
|
|
477
|
+
title: string;
|
|
478
|
+
createdAt: number;
|
|
479
479
|
coreServices: string;
|
|
480
480
|
toolsSkillsTechnologies: string;
|
|
481
481
|
approach: string;
|
|
@@ -496,9 +496,9 @@ export declare const organizationProfileSchema: z.ZodObject<{
|
|
|
496
496
|
type: "agency" | "freelancer";
|
|
497
497
|
id: string;
|
|
498
498
|
name: string;
|
|
499
|
-
createdAt: number;
|
|
500
|
-
title: string;
|
|
501
499
|
summary: string;
|
|
500
|
+
title: string;
|
|
501
|
+
createdAt: number;
|
|
502
502
|
coreServices: string;
|
|
503
503
|
toolsSkillsTechnologies: string;
|
|
504
504
|
approach: string;
|
|
@@ -561,9 +561,9 @@ export declare const updateOrganizationProfileSchema: z.ZodObject<z.objectUtil.e
|
|
|
561
561
|
id: string;
|
|
562
562
|
type?: "agency" | "freelancer" | undefined;
|
|
563
563
|
name?: string | undefined;
|
|
564
|
-
createdAt?: number | undefined;
|
|
565
|
-
title?: string | undefined;
|
|
566
564
|
summary?: string | undefined;
|
|
565
|
+
title?: string | undefined;
|
|
566
|
+
createdAt?: number | undefined;
|
|
567
567
|
coreServices?: string | undefined;
|
|
568
568
|
toolsSkillsTechnologies?: string | undefined;
|
|
569
569
|
approach?: string | undefined;
|
|
@@ -584,9 +584,9 @@ export declare const updateOrganizationProfileSchema: z.ZodObject<z.objectUtil.e
|
|
|
584
584
|
id: string;
|
|
585
585
|
type?: "agency" | "freelancer" | undefined;
|
|
586
586
|
name?: string | undefined;
|
|
587
|
-
createdAt?: number | undefined;
|
|
588
|
-
title?: string | undefined;
|
|
589
587
|
summary?: string | undefined;
|
|
588
|
+
title?: string | undefined;
|
|
589
|
+
createdAt?: number | undefined;
|
|
590
590
|
coreServices?: string | undefined;
|
|
591
591
|
toolsSkillsTechnologies?: string | undefined;
|
|
592
592
|
approach?: string | undefined;
|
|
@@ -723,11 +723,9 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
723
723
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
724
724
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
725
725
|
}, "strip", z.ZodTypeAny, {
|
|
726
|
-
|
|
726
|
+
source: "manual" | "stripe";
|
|
727
|
+
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
727
728
|
planId: string;
|
|
728
|
-
pendingPlanId: string | null;
|
|
729
|
-
startedAt: number;
|
|
730
|
-
currentPeriodEnd: number;
|
|
731
729
|
stripe: {
|
|
732
730
|
id: string;
|
|
733
731
|
items: {
|
|
@@ -741,15 +739,15 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
741
739
|
hosted_invoice_url: string | null;
|
|
742
740
|
};
|
|
743
741
|
};
|
|
744
|
-
|
|
742
|
+
pendingPlanId: string | null;
|
|
743
|
+
startedAt: number;
|
|
744
|
+
currentPeriodEnd: number;
|
|
745
745
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
746
746
|
trialEndsAt: number | null;
|
|
747
747
|
}, {
|
|
748
|
-
|
|
748
|
+
source: "manual" | "stripe";
|
|
749
|
+
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
749
750
|
planId: string;
|
|
750
|
-
pendingPlanId: string | null;
|
|
751
|
-
startedAt: number;
|
|
752
|
-
currentPeriodEnd: number;
|
|
753
751
|
stripe: {
|
|
754
752
|
id: string;
|
|
755
753
|
items: {
|
|
@@ -763,7 +761,9 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
763
761
|
hosted_invoice_url: string | null;
|
|
764
762
|
};
|
|
765
763
|
};
|
|
766
|
-
|
|
764
|
+
pendingPlanId: string | null;
|
|
765
|
+
startedAt: number;
|
|
766
|
+
currentPeriodEnd: number;
|
|
767
767
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
768
768
|
trialEndsAt: number | null;
|
|
769
769
|
}>>;
|
|
@@ -801,19 +801,19 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
801
801
|
};
|
|
802
802
|
}>;
|
|
803
803
|
}, "strip", z.ZodTypeAny, {
|
|
804
|
+
savedCard: boolean;
|
|
804
805
|
stripe: {
|
|
805
806
|
customer: {
|
|
806
807
|
id: string | null;
|
|
807
808
|
};
|
|
808
809
|
};
|
|
809
|
-
savedCard: boolean;
|
|
810
810
|
}, {
|
|
811
|
+
savedCard: boolean;
|
|
811
812
|
stripe: {
|
|
812
813
|
customer: {
|
|
813
814
|
id: string | null;
|
|
814
815
|
};
|
|
815
816
|
};
|
|
816
|
-
savedCard: boolean;
|
|
817
817
|
}>>;
|
|
818
818
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
819
819
|
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
@@ -831,36 +831,36 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
831
831
|
error: z.ZodOptional<z.ZodString>;
|
|
832
832
|
}, "strip", z.ZodTypeAny, {
|
|
833
833
|
status: string;
|
|
834
|
+
error?: string | undefined;
|
|
835
|
+
currency?: string | undefined;
|
|
834
836
|
paidAt?: number | undefined;
|
|
835
837
|
amount?: number | undefined;
|
|
836
|
-
currency?: string | undefined;
|
|
837
838
|
paymentIntentId?: string | undefined;
|
|
838
|
-
error?: string | undefined;
|
|
839
839
|
}, {
|
|
840
840
|
status: string;
|
|
841
|
+
error?: string | undefined;
|
|
842
|
+
currency?: string | undefined;
|
|
841
843
|
paidAt?: number | undefined;
|
|
842
844
|
amount?: number | undefined;
|
|
843
|
-
currency?: string | undefined;
|
|
844
845
|
paymentIntentId?: string | undefined;
|
|
845
|
-
error?: string | undefined;
|
|
846
846
|
}>>;
|
|
847
847
|
}, "strip", z.ZodTypeAny, {
|
|
848
848
|
usBidderAccountPayment?: {
|
|
849
849
|
status: string;
|
|
850
|
+
error?: string | undefined;
|
|
851
|
+
currency?: string | undefined;
|
|
850
852
|
paidAt?: number | undefined;
|
|
851
853
|
amount?: number | undefined;
|
|
852
|
-
currency?: string | undefined;
|
|
853
854
|
paymentIntentId?: string | undefined;
|
|
854
|
-
error?: string | undefined;
|
|
855
855
|
} | undefined;
|
|
856
856
|
}, {
|
|
857
857
|
usBidderAccountPayment?: {
|
|
858
858
|
status: string;
|
|
859
|
+
error?: string | undefined;
|
|
860
|
+
currency?: string | undefined;
|
|
859
861
|
paidAt?: number | undefined;
|
|
860
862
|
amount?: number | undefined;
|
|
861
|
-
currency?: string | undefined;
|
|
862
863
|
paymentIntentId?: string | undefined;
|
|
863
|
-
error?: string | undefined;
|
|
864
864
|
} | undefined;
|
|
865
865
|
}>>;
|
|
866
866
|
}, "type" | "name">, "strip", z.ZodTypeAny, {
|
|
@@ -887,12 +887,12 @@ export declare const questionRulesSchema: z.ZodObject<{
|
|
|
887
887
|
answer: z.ZodString;
|
|
888
888
|
exampleAnswer: z.ZodOptional<z.ZodString>;
|
|
889
889
|
}, "strip", z.ZodTypeAny, {
|
|
890
|
-
question: string;
|
|
891
890
|
answer: string;
|
|
891
|
+
question: string;
|
|
892
892
|
exampleAnswer?: string | undefined;
|
|
893
893
|
}, {
|
|
894
|
-
question: string;
|
|
895
894
|
answer: string;
|
|
895
|
+
question: string;
|
|
896
896
|
exampleAnswer?: string | undefined;
|
|
897
897
|
}>;
|
|
898
898
|
export type QuestionRules = z.infer<typeof questionRulesSchema>;
|
|
@@ -903,12 +903,12 @@ export declare const aiConfigSchema: z.ZodObject<{
|
|
|
903
903
|
answer: z.ZodString;
|
|
904
904
|
exampleAnswer: z.ZodOptional<z.ZodString>;
|
|
905
905
|
}, "strip", z.ZodTypeAny, {
|
|
906
|
-
question: string;
|
|
907
906
|
answer: string;
|
|
907
|
+
question: string;
|
|
908
908
|
exampleAnswer?: string | undefined;
|
|
909
909
|
}, {
|
|
910
|
-
question: string;
|
|
911
910
|
answer: string;
|
|
911
|
+
question: string;
|
|
912
912
|
exampleAnswer?: string | undefined;
|
|
913
913
|
}>, "many">>;
|
|
914
914
|
disqualifierRules: z.ZodNullable<z.ZodString>;
|
|
@@ -916,8 +916,8 @@ export declare const aiConfigSchema: z.ZodObject<{
|
|
|
916
916
|
}, "strip", z.ZodTypeAny, {
|
|
917
917
|
questionHandling: string | null;
|
|
918
918
|
questionRules: {
|
|
919
|
-
question: string;
|
|
920
919
|
answer: string;
|
|
920
|
+
question: string;
|
|
921
921
|
exampleAnswer?: string | undefined;
|
|
922
922
|
}[] | null;
|
|
923
923
|
disqualifierRules: string | null;
|
|
@@ -925,8 +925,8 @@ export declare const aiConfigSchema: z.ZodObject<{
|
|
|
925
925
|
}, {
|
|
926
926
|
questionHandling: string | null;
|
|
927
927
|
questionRules: {
|
|
928
|
-
question: string;
|
|
929
928
|
answer: string;
|
|
929
|
+
question: string;
|
|
930
930
|
exampleAnswer?: string | undefined;
|
|
931
931
|
}[] | null;
|
|
932
932
|
disqualifierRules: string | null;
|
|
@@ -953,12 +953,12 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
953
953
|
answer: z.ZodString;
|
|
954
954
|
exampleAnswer: z.ZodOptional<z.ZodString>;
|
|
955
955
|
}, "strip", z.ZodTypeAny, {
|
|
956
|
-
question: string;
|
|
957
956
|
answer: string;
|
|
957
|
+
question: string;
|
|
958
958
|
exampleAnswer?: string | undefined;
|
|
959
959
|
}, {
|
|
960
|
-
question: string;
|
|
961
960
|
answer: string;
|
|
961
|
+
question: string;
|
|
962
962
|
exampleAnswer?: string | undefined;
|
|
963
963
|
}>, "many">>;
|
|
964
964
|
disqualifierRules: z.ZodNullable<z.ZodString>;
|
|
@@ -966,8 +966,8 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
966
966
|
}, "strip", z.ZodTypeAny, {
|
|
967
967
|
questionHandling: string | null;
|
|
968
968
|
questionRules: {
|
|
969
|
-
question: string;
|
|
970
969
|
answer: string;
|
|
970
|
+
question: string;
|
|
971
971
|
exampleAnswer?: string | undefined;
|
|
972
972
|
}[] | null;
|
|
973
973
|
disqualifierRules: string | null;
|
|
@@ -975,8 +975,8 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
975
975
|
}, {
|
|
976
976
|
questionHandling: string | null;
|
|
977
977
|
questionRules: {
|
|
978
|
-
question: string;
|
|
979
978
|
answer: string;
|
|
979
|
+
question: string;
|
|
980
980
|
exampleAnswer?: string | undefined;
|
|
981
981
|
}[] | null;
|
|
982
982
|
disqualifierRules: string | null;
|
|
@@ -986,8 +986,8 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
986
986
|
aiConfig: {
|
|
987
987
|
questionHandling: string | null;
|
|
988
988
|
questionRules: {
|
|
989
|
-
question: string;
|
|
990
989
|
answer: string;
|
|
990
|
+
question: string;
|
|
991
991
|
exampleAnswer?: string | undefined;
|
|
992
992
|
}[] | null;
|
|
993
993
|
disqualifierRules: string | null;
|
|
@@ -997,8 +997,8 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
997
997
|
aiConfig: {
|
|
998
998
|
questionHandling: string | null;
|
|
999
999
|
questionRules: {
|
|
1000
|
-
question: string;
|
|
1001
1000
|
answer: string;
|
|
1001
|
+
question: string;
|
|
1002
1002
|
exampleAnswer?: string | undefined;
|
|
1003
1003
|
}[] | null;
|
|
1004
1004
|
disqualifierRules: string | null;
|
|
@@ -145,6 +145,9 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
145
145
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
146
146
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
source: "manual" | "stripe";
|
|
149
|
+
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
150
|
+
planId: string;
|
|
148
151
|
stripe: {
|
|
149
152
|
id: string;
|
|
150
153
|
items: {
|
|
@@ -158,15 +161,15 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
158
161
|
hosted_invoice_url: string | null;
|
|
159
162
|
};
|
|
160
163
|
};
|
|
161
|
-
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
162
|
-
planId: string;
|
|
163
164
|
pendingPlanId: string | null;
|
|
164
165
|
startedAt: number;
|
|
165
166
|
currentPeriodEnd: number;
|
|
166
|
-
source: "stripe" | "manual";
|
|
167
167
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
168
168
|
trialEndsAt: number | null;
|
|
169
169
|
}, {
|
|
170
|
+
source: "manual" | "stripe";
|
|
171
|
+
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
172
|
+
planId: string;
|
|
170
173
|
stripe: {
|
|
171
174
|
id: string;
|
|
172
175
|
items: {
|
|
@@ -180,12 +183,9 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
180
183
|
hosted_invoice_url: string | null;
|
|
181
184
|
};
|
|
182
185
|
};
|
|
183
|
-
status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
184
|
-
planId: string;
|
|
185
186
|
pendingPlanId: string | null;
|
|
186
187
|
startedAt: number;
|
|
187
188
|
currentPeriodEnd: number;
|
|
188
|
-
source: "stripe" | "manual";
|
|
189
189
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
190
190
|
trialEndsAt: number | null;
|
|
191
191
|
}>;
|
|
@@ -107,9 +107,7 @@ export declare const planSchema: z.ZodObject<{
|
|
|
107
107
|
id: string;
|
|
108
108
|
name: string;
|
|
109
109
|
description: string;
|
|
110
|
-
|
|
111
|
-
slug: string;
|
|
112
|
-
price: number;
|
|
110
|
+
version: number;
|
|
113
111
|
stripe: {
|
|
114
112
|
id: string;
|
|
115
113
|
name: string;
|
|
@@ -119,23 +117,23 @@ export declare const planSchema: z.ZodObject<{
|
|
|
119
117
|
lookup_key: string;
|
|
120
118
|
}[];
|
|
121
119
|
};
|
|
122
|
-
|
|
120
|
+
price: number;
|
|
121
|
+
createdAt: number;
|
|
122
|
+
sortOrder: number;
|
|
123
|
+
isActive: boolean;
|
|
124
|
+
displayName: string;
|
|
125
|
+
slug: string;
|
|
123
126
|
features: {
|
|
124
127
|
id: string;
|
|
125
128
|
description: string;
|
|
126
129
|
tooltipContent: string | null;
|
|
127
130
|
}[];
|
|
128
|
-
sortOrder: number;
|
|
129
|
-
isActive: boolean;
|
|
130
|
-
createdAt: number;
|
|
131
131
|
archivedAt: number | null;
|
|
132
132
|
}, {
|
|
133
133
|
id: string;
|
|
134
134
|
name: string;
|
|
135
135
|
description: string;
|
|
136
|
-
|
|
137
|
-
slug: string;
|
|
138
|
-
price: number;
|
|
136
|
+
version: number;
|
|
139
137
|
stripe: {
|
|
140
138
|
id: string;
|
|
141
139
|
name: string;
|
|
@@ -145,15 +143,17 @@ export declare const planSchema: z.ZodObject<{
|
|
|
145
143
|
lookup_key: string;
|
|
146
144
|
}[];
|
|
147
145
|
};
|
|
148
|
-
|
|
146
|
+
price: number;
|
|
147
|
+
createdAt: number;
|
|
148
|
+
sortOrder: number;
|
|
149
|
+
isActive: boolean;
|
|
150
|
+
displayName: string;
|
|
151
|
+
slug: string;
|
|
149
152
|
features: {
|
|
150
153
|
id: string;
|
|
151
154
|
description: string;
|
|
152
155
|
tooltipContent: string | null;
|
|
153
156
|
}[];
|
|
154
|
-
sortOrder: number;
|
|
155
|
-
isActive: boolean;
|
|
156
|
-
createdAt: number;
|
|
157
157
|
archivedAt: number | null;
|
|
158
158
|
}>;
|
|
159
159
|
export declare const planSlugEnum: z.ZodEnum<["lancer-unlimited-launch-offer"]>;
|