lancer-shared 1.2.240 → 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 +23749 -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 +10 -8
|
@@ -12,16 +12,16 @@ declare const campaignStatsSchema: z.ZodObject<{
|
|
|
12
12
|
viewed: number;
|
|
13
13
|
replied: number;
|
|
14
14
|
won: number;
|
|
15
|
-
proposalsGenerated: number;
|
|
16
15
|
leadsAnalyzed: number;
|
|
16
|
+
proposalsGenerated: number;
|
|
17
17
|
leadsFailed: number;
|
|
18
18
|
}, {
|
|
19
19
|
contacted: number;
|
|
20
20
|
viewed: number;
|
|
21
21
|
replied: number;
|
|
22
22
|
won: number;
|
|
23
|
-
proposalsGenerated: number;
|
|
24
23
|
leadsAnalyzed: number;
|
|
24
|
+
proposalsGenerated: number;
|
|
25
25
|
leadsFailed: number;
|
|
26
26
|
}>;
|
|
27
27
|
declare const suitabilityBreakdownSchema: z.ZodObject<{
|
|
@@ -65,16 +65,16 @@ declare const campaignDetailsSchema: z.ZodObject<{
|
|
|
65
65
|
viewed: number;
|
|
66
66
|
replied: number;
|
|
67
67
|
won: number;
|
|
68
|
-
proposalsGenerated: number;
|
|
69
68
|
leadsAnalyzed: number;
|
|
69
|
+
proposalsGenerated: number;
|
|
70
70
|
leadsFailed: number;
|
|
71
71
|
}, {
|
|
72
72
|
contacted: number;
|
|
73
73
|
viewed: number;
|
|
74
74
|
replied: number;
|
|
75
75
|
won: number;
|
|
76
|
-
proposalsGenerated: number;
|
|
77
76
|
leadsAnalyzed: number;
|
|
77
|
+
proposalsGenerated: number;
|
|
78
78
|
leadsFailed: number;
|
|
79
79
|
}>;
|
|
80
80
|
suitabilityBreakdown: z.ZodObject<{
|
|
@@ -100,9 +100,9 @@ declare const campaignDetailsSchema: z.ZodObject<{
|
|
|
100
100
|
above90: number;
|
|
101
101
|
}>;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
status: "active" | "draft" | "paused" | "error";
|
|
104
103
|
id: string;
|
|
105
104
|
name: string;
|
|
105
|
+
status: "error" | "active" | "paused" | "draft";
|
|
106
106
|
createdAt: number;
|
|
107
107
|
updatedAt: number;
|
|
108
108
|
stats: {
|
|
@@ -110,8 +110,8 @@ declare const campaignDetailsSchema: z.ZodObject<{
|
|
|
110
110
|
viewed: number;
|
|
111
111
|
replied: number;
|
|
112
112
|
won: number;
|
|
113
|
-
proposalsGenerated: number;
|
|
114
113
|
leadsAnalyzed: number;
|
|
114
|
+
proposalsGenerated: number;
|
|
115
115
|
leadsFailed: number;
|
|
116
116
|
};
|
|
117
117
|
suitabilityBreakdown: {
|
|
@@ -123,9 +123,9 @@ declare const campaignDetailsSchema: z.ZodObject<{
|
|
|
123
123
|
above90: number;
|
|
124
124
|
};
|
|
125
125
|
}, {
|
|
126
|
-
status: "active" | "draft" | "paused" | "error";
|
|
127
126
|
id: string;
|
|
128
127
|
name: string;
|
|
128
|
+
status: "error" | "active" | "paused" | "draft";
|
|
129
129
|
createdAt: number;
|
|
130
130
|
updatedAt: number;
|
|
131
131
|
stats: {
|
|
@@ -133,8 +133,8 @@ declare const campaignDetailsSchema: z.ZodObject<{
|
|
|
133
133
|
viewed: number;
|
|
134
134
|
replied: number;
|
|
135
135
|
won: number;
|
|
136
|
-
proposalsGenerated: number;
|
|
137
136
|
leadsAnalyzed: number;
|
|
137
|
+
proposalsGenerated: number;
|
|
138
138
|
leadsFailed: number;
|
|
139
139
|
};
|
|
140
140
|
suitabilityBreakdown: {
|
|
@@ -168,16 +168,16 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
168
168
|
viewed: number;
|
|
169
169
|
replied: number;
|
|
170
170
|
won: number;
|
|
171
|
-
proposalsGenerated: number;
|
|
172
171
|
leadsAnalyzed: number;
|
|
172
|
+
proposalsGenerated: number;
|
|
173
173
|
leadsFailed: number;
|
|
174
174
|
}, {
|
|
175
175
|
contacted: number;
|
|
176
176
|
viewed: number;
|
|
177
177
|
replied: number;
|
|
178
178
|
won: number;
|
|
179
|
-
proposalsGenerated: number;
|
|
180
179
|
leadsAnalyzed: number;
|
|
180
|
+
proposalsGenerated: number;
|
|
181
181
|
leadsFailed: number;
|
|
182
182
|
}>;
|
|
183
183
|
campaigns: z.ZodArray<z.ZodObject<{
|
|
@@ -199,16 +199,16 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
199
199
|
viewed: number;
|
|
200
200
|
replied: number;
|
|
201
201
|
won: number;
|
|
202
|
-
proposalsGenerated: number;
|
|
203
202
|
leadsAnalyzed: number;
|
|
203
|
+
proposalsGenerated: number;
|
|
204
204
|
leadsFailed: number;
|
|
205
205
|
}, {
|
|
206
206
|
contacted: number;
|
|
207
207
|
viewed: number;
|
|
208
208
|
replied: number;
|
|
209
209
|
won: number;
|
|
210
|
-
proposalsGenerated: number;
|
|
211
210
|
leadsAnalyzed: number;
|
|
211
|
+
proposalsGenerated: number;
|
|
212
212
|
leadsFailed: number;
|
|
213
213
|
}>;
|
|
214
214
|
suitabilityBreakdown: z.ZodObject<{
|
|
@@ -234,9 +234,9 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
234
234
|
above90: number;
|
|
235
235
|
}>;
|
|
236
236
|
}, "strip", z.ZodTypeAny, {
|
|
237
|
-
status: "active" | "draft" | "paused" | "error";
|
|
238
237
|
id: string;
|
|
239
238
|
name: string;
|
|
239
|
+
status: "error" | "active" | "paused" | "draft";
|
|
240
240
|
createdAt: number;
|
|
241
241
|
updatedAt: number;
|
|
242
242
|
stats: {
|
|
@@ -244,8 +244,8 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
244
244
|
viewed: number;
|
|
245
245
|
replied: number;
|
|
246
246
|
won: number;
|
|
247
|
-
proposalsGenerated: number;
|
|
248
247
|
leadsAnalyzed: number;
|
|
248
|
+
proposalsGenerated: number;
|
|
249
249
|
leadsFailed: number;
|
|
250
250
|
};
|
|
251
251
|
suitabilityBreakdown: {
|
|
@@ -257,9 +257,9 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
257
257
|
above90: number;
|
|
258
258
|
};
|
|
259
259
|
}, {
|
|
260
|
-
status: "active" | "draft" | "paused" | "error";
|
|
261
260
|
id: string;
|
|
262
261
|
name: string;
|
|
262
|
+
status: "error" | "active" | "paused" | "draft";
|
|
263
263
|
createdAt: number;
|
|
264
264
|
updatedAt: number;
|
|
265
265
|
stats: {
|
|
@@ -267,8 +267,8 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
267
267
|
viewed: number;
|
|
268
268
|
replied: number;
|
|
269
269
|
won: number;
|
|
270
|
-
proposalsGenerated: number;
|
|
271
270
|
leadsAnalyzed: number;
|
|
271
|
+
proposalsGenerated: number;
|
|
272
272
|
leadsFailed: number;
|
|
273
273
|
};
|
|
274
274
|
suitabilityBreakdown: {
|
|
@@ -282,26 +282,26 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
282
282
|
}>, "many">;
|
|
283
283
|
}, "strip", z.ZodTypeAny, {
|
|
284
284
|
active: boolean;
|
|
285
|
-
createdAt: number;
|
|
286
285
|
organizationId: string;
|
|
287
|
-
|
|
288
|
-
organizationType: string;
|
|
289
|
-
tierId: string;
|
|
290
|
-
campaignCount: number;
|
|
291
|
-
activeCampaignCount: number;
|
|
286
|
+
createdAt: number;
|
|
292
287
|
totalStats: {
|
|
293
288
|
contacted: number;
|
|
294
289
|
viewed: number;
|
|
295
290
|
replied: number;
|
|
296
291
|
won: number;
|
|
297
|
-
proposalsGenerated: number;
|
|
298
292
|
leadsAnalyzed: number;
|
|
293
|
+
proposalsGenerated: number;
|
|
299
294
|
leadsFailed: number;
|
|
300
295
|
};
|
|
296
|
+
organizationName: string;
|
|
297
|
+
organizationType: string;
|
|
298
|
+
tierId: string;
|
|
299
|
+
campaignCount: number;
|
|
300
|
+
activeCampaignCount: number;
|
|
301
301
|
campaigns: {
|
|
302
|
-
status: "active" | "draft" | "paused" | "error";
|
|
303
302
|
id: string;
|
|
304
303
|
name: string;
|
|
304
|
+
status: "error" | "active" | "paused" | "draft";
|
|
305
305
|
createdAt: number;
|
|
306
306
|
updatedAt: number;
|
|
307
307
|
stats: {
|
|
@@ -309,8 +309,8 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
309
309
|
viewed: number;
|
|
310
310
|
replied: number;
|
|
311
311
|
won: number;
|
|
312
|
-
proposalsGenerated: number;
|
|
313
312
|
leadsAnalyzed: number;
|
|
313
|
+
proposalsGenerated: number;
|
|
314
314
|
leadsFailed: number;
|
|
315
315
|
};
|
|
316
316
|
suitabilityBreakdown: {
|
|
@@ -324,26 +324,26 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
324
324
|
}[];
|
|
325
325
|
}, {
|
|
326
326
|
active: boolean;
|
|
327
|
-
createdAt: number;
|
|
328
327
|
organizationId: string;
|
|
329
|
-
|
|
330
|
-
organizationType: string;
|
|
331
|
-
tierId: string;
|
|
332
|
-
campaignCount: number;
|
|
333
|
-
activeCampaignCount: number;
|
|
328
|
+
createdAt: number;
|
|
334
329
|
totalStats: {
|
|
335
330
|
contacted: number;
|
|
336
331
|
viewed: number;
|
|
337
332
|
replied: number;
|
|
338
333
|
won: number;
|
|
339
|
-
proposalsGenerated: number;
|
|
340
334
|
leadsAnalyzed: number;
|
|
335
|
+
proposalsGenerated: number;
|
|
341
336
|
leadsFailed: number;
|
|
342
337
|
};
|
|
338
|
+
organizationName: string;
|
|
339
|
+
organizationType: string;
|
|
340
|
+
tierId: string;
|
|
341
|
+
campaignCount: number;
|
|
342
|
+
activeCampaignCount: number;
|
|
343
343
|
campaigns: {
|
|
344
|
-
status: "active" | "draft" | "paused" | "error";
|
|
345
344
|
id: string;
|
|
346
345
|
name: string;
|
|
346
|
+
status: "error" | "active" | "paused" | "draft";
|
|
347
347
|
createdAt: number;
|
|
348
348
|
updatedAt: number;
|
|
349
349
|
stats: {
|
|
@@ -351,8 +351,8 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
351
351
|
viewed: number;
|
|
352
352
|
replied: number;
|
|
353
353
|
won: number;
|
|
354
|
-
proposalsGenerated: number;
|
|
355
354
|
leadsAnalyzed: number;
|
|
355
|
+
proposalsGenerated: number;
|
|
356
356
|
leadsFailed: number;
|
|
357
357
|
};
|
|
358
358
|
suitabilityBreakdown: {
|
|
@@ -11,15 +11,15 @@ export declare const bidderInstanceSchema: z.ZodObject<{
|
|
|
11
11
|
zone: z.ZodString;
|
|
12
12
|
region: z.ZodString;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
region: string;
|
|
14
15
|
instanceName: string;
|
|
15
16
|
machineType: string;
|
|
16
17
|
zone: string;
|
|
17
|
-
region: string;
|
|
18
18
|
}, {
|
|
19
|
+
region: string;
|
|
19
20
|
instanceName: string;
|
|
20
21
|
machineType: string;
|
|
21
22
|
zone: string;
|
|
22
|
-
region: string;
|
|
23
23
|
}>;
|
|
24
24
|
hetzner: z.ZodObject<{
|
|
25
25
|
id: z.ZodString;
|
|
@@ -44,17 +44,18 @@ export declare const bidderInstanceSchema: z.ZodObject<{
|
|
|
44
44
|
createdAt: z.ZodNumber;
|
|
45
45
|
updatedAt: z.ZodNumber;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
status: "available" | "unavailable";
|
|
48
47
|
id: string;
|
|
48
|
+
status: "available" | "unavailable";
|
|
49
49
|
createdAt: number;
|
|
50
|
+
updatedAt: number;
|
|
50
51
|
ipAddress: string;
|
|
51
52
|
domain: string | null;
|
|
52
53
|
bidderAccounts: string[];
|
|
53
54
|
gcp: {
|
|
55
|
+
region: string;
|
|
54
56
|
instanceName: string;
|
|
55
57
|
machineType: string;
|
|
56
58
|
zone: string;
|
|
57
|
-
region: string;
|
|
58
59
|
};
|
|
59
60
|
hetzner: {
|
|
60
61
|
type: string;
|
|
@@ -63,19 +64,19 @@ export declare const bidderInstanceSchema: z.ZodObject<{
|
|
|
63
64
|
image: string;
|
|
64
65
|
createdAt: number;
|
|
65
66
|
};
|
|
66
|
-
updatedAt: number;
|
|
67
67
|
}, {
|
|
68
|
-
status: "available" | "unavailable";
|
|
69
68
|
id: string;
|
|
69
|
+
status: "available" | "unavailable";
|
|
70
70
|
createdAt: number;
|
|
71
|
+
updatedAt: number;
|
|
71
72
|
ipAddress: string;
|
|
72
73
|
domain: string | null;
|
|
73
74
|
bidderAccounts: string[];
|
|
74
75
|
gcp: {
|
|
76
|
+
region: string;
|
|
75
77
|
instanceName: string;
|
|
76
78
|
machineType: string;
|
|
77
79
|
zone: string;
|
|
78
|
-
region: string;
|
|
79
80
|
};
|
|
80
81
|
hetzner: {
|
|
81
82
|
type: string;
|
|
@@ -84,7 +85,6 @@ export declare const bidderInstanceSchema: z.ZodObject<{
|
|
|
84
85
|
image: string;
|
|
85
86
|
createdAt: number;
|
|
86
87
|
};
|
|
87
|
-
updatedAt: number;
|
|
88
88
|
}>;
|
|
89
89
|
export interface BidderInstance extends infer<typeof bidderInstanceSchema> {
|
|
90
90
|
}
|
|
@@ -7,15 +7,15 @@ export declare const invoiceStripeMetadataLineSchema: z.ZodObject<{
|
|
|
7
7
|
subscription_item_id: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
description: string;
|
|
10
|
+
currency: string;
|
|
10
11
|
amount: number;
|
|
11
12
|
quantity: number;
|
|
12
|
-
currency: string;
|
|
13
13
|
subscription_item_id: string;
|
|
14
14
|
}, {
|
|
15
15
|
description: string;
|
|
16
|
+
currency: string;
|
|
16
17
|
amount: number;
|
|
17
18
|
quantity: number;
|
|
18
|
-
currency: string;
|
|
19
19
|
subscription_item_id: string;
|
|
20
20
|
}>;
|
|
21
21
|
export declare const invoiceStripeMetadataSchema: z.ZodObject<{
|
|
@@ -31,15 +31,15 @@ export declare const invoiceStripeMetadataSchema: z.ZodObject<{
|
|
|
31
31
|
subscription_item_id: z.ZodString;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
description: string;
|
|
34
|
+
currency: string;
|
|
34
35
|
amount: number;
|
|
35
36
|
quantity: number;
|
|
36
|
-
currency: string;
|
|
37
37
|
subscription_item_id: string;
|
|
38
38
|
}, {
|
|
39
39
|
description: string;
|
|
40
|
+
currency: string;
|
|
40
41
|
amount: number;
|
|
41
42
|
quantity: number;
|
|
42
|
-
currency: string;
|
|
43
43
|
subscription_item_id: string;
|
|
44
44
|
}>, "many">;
|
|
45
45
|
amount_paid: z.ZodNumber;
|
|
@@ -47,15 +47,15 @@ export declare const invoiceStripeMetadataSchema: z.ZodObject<{
|
|
|
47
47
|
amount_remaining: z.ZodNumber;
|
|
48
48
|
attempt_count: z.ZodNumber;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
status: "void" | "draft" | "open" | "paid" | "uncollectible";
|
|
51
50
|
id: string;
|
|
52
|
-
|
|
51
|
+
status: "open" | "void" | "draft" | "paid" | "uncollectible";
|
|
53
52
|
hosted_invoice_url: string;
|
|
53
|
+
subscription_id: string;
|
|
54
54
|
lines: {
|
|
55
55
|
description: string;
|
|
56
|
+
currency: string;
|
|
56
57
|
amount: number;
|
|
57
58
|
quantity: number;
|
|
58
|
-
currency: string;
|
|
59
59
|
subscription_item_id: string;
|
|
60
60
|
}[];
|
|
61
61
|
amount_paid: number;
|
|
@@ -63,15 +63,15 @@ export declare const invoiceStripeMetadataSchema: z.ZodObject<{
|
|
|
63
63
|
amount_remaining: number;
|
|
64
64
|
attempt_count: number;
|
|
65
65
|
}, {
|
|
66
|
-
status: "void" | "draft" | "open" | "paid" | "uncollectible";
|
|
67
66
|
id: string;
|
|
68
|
-
|
|
67
|
+
status: "open" | "void" | "draft" | "paid" | "uncollectible";
|
|
69
68
|
hosted_invoice_url: string;
|
|
69
|
+
subscription_id: string;
|
|
70
70
|
lines: {
|
|
71
71
|
description: string;
|
|
72
|
+
currency: string;
|
|
72
73
|
amount: number;
|
|
73
74
|
quantity: number;
|
|
74
|
-
currency: string;
|
|
75
75
|
subscription_item_id: string;
|
|
76
76
|
}[];
|
|
77
77
|
amount_paid: number;
|
|
@@ -85,15 +85,15 @@ export declare const invoiceLineItemSchema: z.ZodObject<{
|
|
|
85
85
|
quantity: z.ZodNumber;
|
|
86
86
|
currency: z.ZodString;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
total: number;
|
|
88
89
|
description: string;
|
|
89
|
-
quantity: number;
|
|
90
90
|
currency: string;
|
|
91
|
-
|
|
91
|
+
quantity: number;
|
|
92
92
|
}, {
|
|
93
|
+
total: number;
|
|
93
94
|
description: string;
|
|
94
|
-
quantity: number;
|
|
95
95
|
currency: string;
|
|
96
|
-
|
|
96
|
+
quantity: number;
|
|
97
97
|
}>;
|
|
98
98
|
export declare const invoiceStatusEnum: z.ZodEnum<["open", "paid", "past_due", "payment_failed"]>;
|
|
99
99
|
export declare const invoiceSchema: z.ZodObject<{
|
|
@@ -111,15 +111,15 @@ export declare const invoiceSchema: z.ZodObject<{
|
|
|
111
111
|
quantity: z.ZodNumber;
|
|
112
112
|
currency: z.ZodString;
|
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
total: number;
|
|
114
115
|
description: string;
|
|
115
|
-
quantity: number;
|
|
116
116
|
currency: string;
|
|
117
|
-
|
|
117
|
+
quantity: number;
|
|
118
118
|
}, {
|
|
119
|
+
total: number;
|
|
119
120
|
description: string;
|
|
120
|
-
quantity: number;
|
|
121
121
|
currency: string;
|
|
122
|
-
|
|
122
|
+
quantity: number;
|
|
123
123
|
}>, "many">;
|
|
124
124
|
stripe: z.ZodObject<{
|
|
125
125
|
id: z.ZodString;
|
|
@@ -134,15 +134,15 @@ export declare const invoiceSchema: z.ZodObject<{
|
|
|
134
134
|
subscription_item_id: z.ZodString;
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
136
|
description: string;
|
|
137
|
+
currency: string;
|
|
137
138
|
amount: number;
|
|
138
139
|
quantity: number;
|
|
139
|
-
currency: string;
|
|
140
140
|
subscription_item_id: string;
|
|
141
141
|
}, {
|
|
142
142
|
description: string;
|
|
143
|
+
currency: string;
|
|
143
144
|
amount: number;
|
|
144
145
|
quantity: number;
|
|
145
|
-
currency: string;
|
|
146
146
|
subscription_item_id: string;
|
|
147
147
|
}>, "many">;
|
|
148
148
|
amount_paid: z.ZodNumber;
|
|
@@ -150,15 +150,15 @@ export declare const invoiceSchema: z.ZodObject<{
|
|
|
150
150
|
amount_remaining: z.ZodNumber;
|
|
151
151
|
attempt_count: z.ZodNumber;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
status: "void" | "draft" | "open" | "paid" | "uncollectible";
|
|
154
153
|
id: string;
|
|
155
|
-
|
|
154
|
+
status: "open" | "void" | "draft" | "paid" | "uncollectible";
|
|
156
155
|
hosted_invoice_url: string;
|
|
156
|
+
subscription_id: string;
|
|
157
157
|
lines: {
|
|
158
158
|
description: string;
|
|
159
|
+
currency: string;
|
|
159
160
|
amount: number;
|
|
160
161
|
quantity: number;
|
|
161
|
-
currency: string;
|
|
162
162
|
subscription_item_id: string;
|
|
163
163
|
}[];
|
|
164
164
|
amount_paid: number;
|
|
@@ -166,15 +166,15 @@ export declare const invoiceSchema: z.ZodObject<{
|
|
|
166
166
|
amount_remaining: number;
|
|
167
167
|
attempt_count: number;
|
|
168
168
|
}, {
|
|
169
|
-
status: "void" | "draft" | "open" | "paid" | "uncollectible";
|
|
170
169
|
id: string;
|
|
171
|
-
|
|
170
|
+
status: "open" | "void" | "draft" | "paid" | "uncollectible";
|
|
172
171
|
hosted_invoice_url: string;
|
|
172
|
+
subscription_id: string;
|
|
173
173
|
lines: {
|
|
174
174
|
description: string;
|
|
175
|
+
currency: string;
|
|
175
176
|
amount: number;
|
|
176
177
|
quantity: number;
|
|
177
|
-
currency: string;
|
|
178
178
|
subscription_item_id: string;
|
|
179
179
|
}[];
|
|
180
180
|
amount_paid: number;
|
|
@@ -185,30 +185,20 @@ export declare const invoiceSchema: z.ZodObject<{
|
|
|
185
185
|
createdAt: z.ZodNumber;
|
|
186
186
|
updatedAt: z.ZodNumber;
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
|
-
currency: string;
|
|
189
|
-
status: "open" | "paid" | "past_due" | "payment_failed";
|
|
190
188
|
id: string;
|
|
191
189
|
total: number;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
amountDue: number;
|
|
195
|
-
amountRemaining: number;
|
|
196
|
-
lineItems: {
|
|
197
|
-
description: string;
|
|
198
|
-
quantity: number;
|
|
199
|
-
currency: string;
|
|
200
|
-
total: number;
|
|
201
|
-
}[];
|
|
190
|
+
status: "open" | "payment_failed" | "paid" | "past_due";
|
|
191
|
+
currency: string;
|
|
202
192
|
stripe: {
|
|
203
|
-
status: "void" | "draft" | "open" | "paid" | "uncollectible";
|
|
204
193
|
id: string;
|
|
205
|
-
|
|
194
|
+
status: "open" | "void" | "draft" | "paid" | "uncollectible";
|
|
206
195
|
hosted_invoice_url: string;
|
|
196
|
+
subscription_id: string;
|
|
207
197
|
lines: {
|
|
208
198
|
description: string;
|
|
199
|
+
currency: string;
|
|
209
200
|
amount: number;
|
|
210
201
|
quantity: number;
|
|
211
|
-
currency: string;
|
|
212
202
|
subscription_item_id: string;
|
|
213
203
|
}[];
|
|
214
204
|
amount_paid: number;
|
|
@@ -218,31 +208,31 @@ export declare const invoiceSchema: z.ZodObject<{
|
|
|
218
208
|
};
|
|
219
209
|
createdAt: number;
|
|
220
210
|
updatedAt: number;
|
|
221
|
-
}, {
|
|
222
|
-
currency: string;
|
|
223
|
-
status: "open" | "paid" | "past_due" | "payment_failed";
|
|
224
|
-
id: string;
|
|
225
|
-
total: number;
|
|
226
211
|
subtotal: number;
|
|
227
212
|
amountPaid: number;
|
|
228
213
|
amountDue: number;
|
|
229
214
|
amountRemaining: number;
|
|
230
215
|
lineItems: {
|
|
216
|
+
total: number;
|
|
231
217
|
description: string;
|
|
232
|
-
quantity: number;
|
|
233
218
|
currency: string;
|
|
234
|
-
|
|
219
|
+
quantity: number;
|
|
235
220
|
}[];
|
|
221
|
+
}, {
|
|
222
|
+
id: string;
|
|
223
|
+
total: number;
|
|
224
|
+
status: "open" | "payment_failed" | "paid" | "past_due";
|
|
225
|
+
currency: string;
|
|
236
226
|
stripe: {
|
|
237
|
-
status: "void" | "draft" | "open" | "paid" | "uncollectible";
|
|
238
227
|
id: string;
|
|
239
|
-
|
|
228
|
+
status: "open" | "void" | "draft" | "paid" | "uncollectible";
|
|
240
229
|
hosted_invoice_url: string;
|
|
230
|
+
subscription_id: string;
|
|
241
231
|
lines: {
|
|
242
232
|
description: string;
|
|
233
|
+
currency: string;
|
|
243
234
|
amount: number;
|
|
244
235
|
quantity: number;
|
|
245
|
-
currency: string;
|
|
246
236
|
subscription_item_id: string;
|
|
247
237
|
}[];
|
|
248
238
|
amount_paid: number;
|
|
@@ -252,6 +242,16 @@ export declare const invoiceSchema: z.ZodObject<{
|
|
|
252
242
|
};
|
|
253
243
|
createdAt: number;
|
|
254
244
|
updatedAt: number;
|
|
245
|
+
subtotal: number;
|
|
246
|
+
amountPaid: number;
|
|
247
|
+
amountDue: number;
|
|
248
|
+
amountRemaining: number;
|
|
249
|
+
lineItems: {
|
|
250
|
+
total: number;
|
|
251
|
+
description: string;
|
|
252
|
+
currency: string;
|
|
253
|
+
quantity: number;
|
|
254
|
+
}[];
|
|
255
255
|
}>;
|
|
256
256
|
export type InvoiceStatus = z.infer<typeof invoiceStatusEnum>;
|
|
257
257
|
export interface InvoiceStripeMetadataLine extends infer<typeof invoiceStripeMetadataLineSchema> {
|