lancer-shared 1.2.302 → 1.2.304
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 +4 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +4 -0
- package/dist/bundle.esm.js.map +1 -1
- package/dist/schemas/account/bidder-account.d.ts +47 -40
- package/dist/schemas/account/scraper-account.d.ts +27 -27
- package/dist/schemas/agent/index.d.ts +273 -273
- package/dist/schemas/agent/proposal.d.ts +4 -4
- package/dist/schemas/bidder/bid.d.ts +2377 -2358
- package/dist/schemas/campaign/campaign-analytics.d.ts +1404 -1404
- package/dist/schemas/campaign/campaign-chat-bot.d.ts +24 -24
- 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 +575 -566
- 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 +46 -46
- package/dist/schemas/golden-dataset/sample.d.ts +12 -12
- package/dist/schemas/infrastructure/index.d.ts +8 -8
- package/dist/schemas/invoice/index.d.ts +55 -55
- package/dist/schemas/job/index.d.ts +189 -189
- package/dist/schemas/job/job-api.d.ts +4 -4
- package/dist/schemas/job/job-details.d.ts +726 -726
- package/dist/schemas/job/job-filters.d.ts +55 -55
- package/dist/schemas/job/job-listing.d.ts +96 -96
- package/dist/schemas/job/nuxt.d.ts +130 -130
- package/dist/schemas/lead/index.d.ts +1040 -1040
- package/dist/schemas/lead/lead-status.d.ts +4 -4
- package/dist/schemas/logger/feed/feed-chunk-enrich.d.ts +16 -16
- package/dist/schemas/logger/feed/feed-enrich.d.ts +12 -12
- package/dist/schemas/logger/feed/feed-job-enrich.d.ts +272 -272
- package/dist/schemas/logger/feed/feed-scrape.d.ts +6 -6
- package/dist/schemas/logger/log-event.d.ts +103 -103
- package/dist/schemas/logger/scraper-events.d.ts +73 -73
- package/dist/schemas/notifications/index.d.ts +4 -4
- package/dist/schemas/organization/billing.d.ts +2 -2
- package/dist/schemas/organization/cover-letter.d.ts +4 -4
- package/dist/schemas/organization/index.d.ts +112 -112
- package/dist/schemas/organization/onboarding.d.ts +6 -6
- package/dist/schemas/organization/organization-leads.d.ts +4 -4
- package/dist/schemas/organization/subscription.d.ts +12 -12
- package/dist/schemas/plan/index.d.ts +55 -55
- package/dist/schemas/proxy/proxy.d.ts +29 -29
- package/dist/schemas/saved-search/index.d.ts +4 -4
- package/dist/schemas/scraper/scrape-payload.d.ts +876 -876
- package/dist/schemas/scraper/scrape-result.d.ts +174 -174
- 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 +750 -750
- package/dist/schemas/transaction/index.d.ts +20 -20
- package/dist/schemas/upwork-analytics/index.d.ts +22 -22
- package/dist/schemas/usage/index.d.ts +16 -16
- package/dist/schemas/usage-event/index.d.ts +11 -11
- package/dist/schemas/user/index.d.ts +4 -4
- package/package.json +2 -2
|
@@ -12,16 +12,16 @@ declare const campaignStatsSchema: z.ZodObject<{
|
|
|
12
12
|
viewed: number;
|
|
13
13
|
replied: number;
|
|
14
14
|
won: number;
|
|
15
|
-
leadsAnalyzed: number;
|
|
16
15
|
proposalsGenerated: number;
|
|
16
|
+
leadsAnalyzed: number;
|
|
17
17
|
leadsFailed: number;
|
|
18
18
|
}, {
|
|
19
19
|
contacted: number;
|
|
20
20
|
viewed: number;
|
|
21
21
|
replied: number;
|
|
22
22
|
won: number;
|
|
23
|
-
leadsAnalyzed: number;
|
|
24
23
|
proposalsGenerated: number;
|
|
24
|
+
leadsAnalyzed: 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
|
-
leadsAnalyzed: number;
|
|
69
68
|
proposalsGenerated: number;
|
|
69
|
+
leadsAnalyzed: number;
|
|
70
70
|
leadsFailed: number;
|
|
71
71
|
}, {
|
|
72
72
|
contacted: number;
|
|
73
73
|
viewed: number;
|
|
74
74
|
replied: number;
|
|
75
75
|
won: number;
|
|
76
|
-
leadsAnalyzed: number;
|
|
77
76
|
proposalsGenerated: number;
|
|
77
|
+
leadsAnalyzed: number;
|
|
78
78
|
leadsFailed: number;
|
|
79
79
|
}>;
|
|
80
80
|
suitabilityBreakdown: z.ZodObject<{
|
|
@@ -100,20 +100,20 @@ declare const campaignDetailsSchema: z.ZodObject<{
|
|
|
100
100
|
above90: number;
|
|
101
101
|
}>;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
status: "active" | "draft" | "paused" | "error" | "archived";
|
|
103
104
|
id: string;
|
|
104
105
|
name: string;
|
|
105
|
-
|
|
106
|
+
createdAt: number;
|
|
107
|
+
updatedAt: number;
|
|
106
108
|
stats: {
|
|
107
109
|
contacted: number;
|
|
108
110
|
viewed: number;
|
|
109
111
|
replied: number;
|
|
110
112
|
won: number;
|
|
111
|
-
leadsAnalyzed: number;
|
|
112
113
|
proposalsGenerated: number;
|
|
114
|
+
leadsAnalyzed: number;
|
|
113
115
|
leadsFailed: number;
|
|
114
116
|
};
|
|
115
|
-
createdAt: number;
|
|
116
|
-
updatedAt: number;
|
|
117
117
|
suitabilityBreakdown: {
|
|
118
118
|
lessThan50: number;
|
|
119
119
|
between50And60: number;
|
|
@@ -123,20 +123,20 @@ declare const campaignDetailsSchema: z.ZodObject<{
|
|
|
123
123
|
above90: number;
|
|
124
124
|
};
|
|
125
125
|
}, {
|
|
126
|
+
status: "active" | "draft" | "paused" | "error" | "archived";
|
|
126
127
|
id: string;
|
|
127
128
|
name: string;
|
|
128
|
-
|
|
129
|
+
createdAt: number;
|
|
130
|
+
updatedAt: number;
|
|
129
131
|
stats: {
|
|
130
132
|
contacted: number;
|
|
131
133
|
viewed: number;
|
|
132
134
|
replied: number;
|
|
133
135
|
won: number;
|
|
134
|
-
leadsAnalyzed: number;
|
|
135
136
|
proposalsGenerated: number;
|
|
137
|
+
leadsAnalyzed: number;
|
|
136
138
|
leadsFailed: number;
|
|
137
139
|
};
|
|
138
|
-
createdAt: number;
|
|
139
|
-
updatedAt: number;
|
|
140
140
|
suitabilityBreakdown: {
|
|
141
141
|
lessThan50: number;
|
|
142
142
|
between50And60: number;
|
|
@@ -168,16 +168,16 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
168
168
|
viewed: number;
|
|
169
169
|
replied: number;
|
|
170
170
|
won: number;
|
|
171
|
-
leadsAnalyzed: number;
|
|
172
171
|
proposalsGenerated: number;
|
|
172
|
+
leadsAnalyzed: number;
|
|
173
173
|
leadsFailed: number;
|
|
174
174
|
}, {
|
|
175
175
|
contacted: number;
|
|
176
176
|
viewed: number;
|
|
177
177
|
replied: number;
|
|
178
178
|
won: number;
|
|
179
|
-
leadsAnalyzed: number;
|
|
180
179
|
proposalsGenerated: number;
|
|
180
|
+
leadsAnalyzed: 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
|
-
leadsAnalyzed: number;
|
|
203
202
|
proposalsGenerated: number;
|
|
203
|
+
leadsAnalyzed: number;
|
|
204
204
|
leadsFailed: number;
|
|
205
205
|
}, {
|
|
206
206
|
contacted: number;
|
|
207
207
|
viewed: number;
|
|
208
208
|
replied: number;
|
|
209
209
|
won: number;
|
|
210
|
-
leadsAnalyzed: number;
|
|
211
210
|
proposalsGenerated: number;
|
|
211
|
+
leadsAnalyzed: number;
|
|
212
212
|
leadsFailed: number;
|
|
213
213
|
}>;
|
|
214
214
|
suitabilityBreakdown: z.ZodObject<{
|
|
@@ -234,20 +234,20 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
234
234
|
above90: number;
|
|
235
235
|
}>;
|
|
236
236
|
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
status: "active" | "draft" | "paused" | "error" | "archived";
|
|
237
238
|
id: string;
|
|
238
239
|
name: string;
|
|
239
|
-
|
|
240
|
+
createdAt: number;
|
|
241
|
+
updatedAt: number;
|
|
240
242
|
stats: {
|
|
241
243
|
contacted: number;
|
|
242
244
|
viewed: number;
|
|
243
245
|
replied: number;
|
|
244
246
|
won: number;
|
|
245
|
-
leadsAnalyzed: number;
|
|
246
247
|
proposalsGenerated: number;
|
|
248
|
+
leadsAnalyzed: number;
|
|
247
249
|
leadsFailed: number;
|
|
248
250
|
};
|
|
249
|
-
createdAt: number;
|
|
250
|
-
updatedAt: number;
|
|
251
251
|
suitabilityBreakdown: {
|
|
252
252
|
lessThan50: number;
|
|
253
253
|
between50And60: number;
|
|
@@ -257,20 +257,20 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
257
257
|
above90: number;
|
|
258
258
|
};
|
|
259
259
|
}, {
|
|
260
|
+
status: "active" | "draft" | "paused" | "error" | "archived";
|
|
260
261
|
id: string;
|
|
261
262
|
name: string;
|
|
262
|
-
|
|
263
|
+
createdAt: number;
|
|
264
|
+
updatedAt: number;
|
|
263
265
|
stats: {
|
|
264
266
|
contacted: number;
|
|
265
267
|
viewed: number;
|
|
266
268
|
replied: number;
|
|
267
269
|
won: number;
|
|
268
|
-
leadsAnalyzed: number;
|
|
269
270
|
proposalsGenerated: number;
|
|
271
|
+
leadsAnalyzed: number;
|
|
270
272
|
leadsFailed: number;
|
|
271
273
|
};
|
|
272
|
-
createdAt: number;
|
|
273
|
-
updatedAt: number;
|
|
274
274
|
suitabilityBreakdown: {
|
|
275
275
|
lessThan50: number;
|
|
276
276
|
between50And60: number;
|
|
@@ -282,37 +282,37 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
282
282
|
}>, "many">;
|
|
283
283
|
}, "strip", z.ZodTypeAny, {
|
|
284
284
|
active: boolean;
|
|
285
|
-
organizationId: string;
|
|
286
285
|
createdAt: number;
|
|
286
|
+
organizationId: string;
|
|
287
|
+
organizationName: string;
|
|
288
|
+
organizationType: string;
|
|
289
|
+
tierId: string;
|
|
290
|
+
campaignCount: number;
|
|
291
|
+
activeCampaignCount: number;
|
|
287
292
|
totalStats: {
|
|
288
293
|
contacted: number;
|
|
289
294
|
viewed: number;
|
|
290
295
|
replied: number;
|
|
291
296
|
won: number;
|
|
292
|
-
leadsAnalyzed: number;
|
|
293
297
|
proposalsGenerated: number;
|
|
298
|
+
leadsAnalyzed: number;
|
|
294
299
|
leadsFailed: number;
|
|
295
300
|
};
|
|
296
|
-
organizationName: string;
|
|
297
|
-
organizationType: string;
|
|
298
|
-
tierId: string;
|
|
299
|
-
campaignCount: number;
|
|
300
|
-
activeCampaignCount: number;
|
|
301
301
|
campaigns: {
|
|
302
|
+
status: "active" | "draft" | "paused" | "error" | "archived";
|
|
302
303
|
id: string;
|
|
303
304
|
name: string;
|
|
304
|
-
|
|
305
|
+
createdAt: number;
|
|
306
|
+
updatedAt: number;
|
|
305
307
|
stats: {
|
|
306
308
|
contacted: number;
|
|
307
309
|
viewed: number;
|
|
308
310
|
replied: number;
|
|
309
311
|
won: number;
|
|
310
|
-
leadsAnalyzed: number;
|
|
311
312
|
proposalsGenerated: number;
|
|
313
|
+
leadsAnalyzed: number;
|
|
312
314
|
leadsFailed: number;
|
|
313
315
|
};
|
|
314
|
-
createdAt: number;
|
|
315
|
-
updatedAt: number;
|
|
316
316
|
suitabilityBreakdown: {
|
|
317
317
|
lessThan50: number;
|
|
318
318
|
between50And60: number;
|
|
@@ -324,37 +324,37 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
|
|
|
324
324
|
}[];
|
|
325
325
|
}, {
|
|
326
326
|
active: boolean;
|
|
327
|
-
organizationId: string;
|
|
328
327
|
createdAt: number;
|
|
328
|
+
organizationId: string;
|
|
329
|
+
organizationName: string;
|
|
330
|
+
organizationType: string;
|
|
331
|
+
tierId: string;
|
|
332
|
+
campaignCount: number;
|
|
333
|
+
activeCampaignCount: number;
|
|
329
334
|
totalStats: {
|
|
330
335
|
contacted: number;
|
|
331
336
|
viewed: number;
|
|
332
337
|
replied: number;
|
|
333
338
|
won: number;
|
|
334
|
-
leadsAnalyzed: number;
|
|
335
339
|
proposalsGenerated: number;
|
|
340
|
+
leadsAnalyzed: number;
|
|
336
341
|
leadsFailed: number;
|
|
337
342
|
};
|
|
338
|
-
organizationName: string;
|
|
339
|
-
organizationType: string;
|
|
340
|
-
tierId: string;
|
|
341
|
-
campaignCount: number;
|
|
342
|
-
activeCampaignCount: number;
|
|
343
343
|
campaigns: {
|
|
344
|
+
status: "active" | "draft" | "paused" | "error" | "archived";
|
|
344
345
|
id: string;
|
|
345
346
|
name: string;
|
|
346
|
-
|
|
347
|
+
createdAt: number;
|
|
348
|
+
updatedAt: number;
|
|
347
349
|
stats: {
|
|
348
350
|
contacted: number;
|
|
349
351
|
viewed: number;
|
|
350
352
|
replied: number;
|
|
351
353
|
won: number;
|
|
352
|
-
leadsAnalyzed: number;
|
|
353
354
|
proposalsGenerated: number;
|
|
355
|
+
leadsAnalyzed: number;
|
|
354
356
|
leadsFailed: number;
|
|
355
357
|
};
|
|
356
|
-
createdAt: number;
|
|
357
|
-
updatedAt: number;
|
|
358
358
|
suitabilityBreakdown: {
|
|
359
359
|
lessThan50: number;
|
|
360
360
|
between50And60: number;
|
|
@@ -12,24 +12,24 @@ export declare const sampleSchema: z.ZodObject<{
|
|
|
12
12
|
createdAt: z.ZodNumber;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
id: string;
|
|
15
|
-
label: "suitable" | "unsuitable";
|
|
16
|
-
leadId: string;
|
|
17
15
|
organizationId: string;
|
|
18
16
|
campaignId: string;
|
|
19
|
-
|
|
20
|
-
updatedAt: number;
|
|
17
|
+
leadId: string;
|
|
21
18
|
systemPromptSnapshot: string;
|
|
22
19
|
jobDetailsSnapshot: string;
|
|
20
|
+
label: "suitable" | "unsuitable";
|
|
21
|
+
updatedAt: number;
|
|
22
|
+
createdAt: number;
|
|
23
23
|
}, {
|
|
24
24
|
id: string;
|
|
25
|
-
label: "suitable" | "unsuitable";
|
|
26
|
-
leadId: string;
|
|
27
25
|
organizationId: string;
|
|
28
26
|
campaignId: string;
|
|
29
|
-
|
|
30
|
-
updatedAt: number;
|
|
27
|
+
leadId: string;
|
|
31
28
|
systemPromptSnapshot: string;
|
|
32
29
|
jobDetailsSnapshot: string;
|
|
30
|
+
label: "suitable" | "unsuitable";
|
|
31
|
+
updatedAt: number;
|
|
32
|
+
createdAt: number;
|
|
33
33
|
}>;
|
|
34
34
|
export declare const createSampleSchema: z.ZodObject<{
|
|
35
35
|
organizationId: z.ZodString;
|
|
@@ -39,19 +39,19 @@ export declare const createSampleSchema: z.ZodObject<{
|
|
|
39
39
|
leadId: z.ZodString;
|
|
40
40
|
label: z.ZodEnum<["suitable", "unsuitable"]>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
label: "suitable" | "unsuitable";
|
|
43
|
-
leadId: string;
|
|
44
42
|
organizationId: string;
|
|
45
43
|
campaignId: string;
|
|
44
|
+
leadId: string;
|
|
46
45
|
systemPromptSnapshot: string;
|
|
47
46
|
jobDetailsSnapshot: string;
|
|
48
|
-
}, {
|
|
49
47
|
label: "suitable" | "unsuitable";
|
|
50
|
-
|
|
48
|
+
}, {
|
|
51
49
|
organizationId: string;
|
|
52
50
|
campaignId: string;
|
|
51
|
+
leadId: string;
|
|
53
52
|
systemPromptSnapshot: string;
|
|
54
53
|
jobDetailsSnapshot: string;
|
|
54
|
+
label: "suitable" | "unsuitable";
|
|
55
55
|
}>;
|
|
56
56
|
export declare const getSamplesRequestSchema: z.ZodObject<{
|
|
57
57
|
organizationId: z.ZodString;
|
|
@@ -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;
|
|
15
14
|
instanceName: string;
|
|
16
15
|
machineType: string;
|
|
17
16
|
zone: string;
|
|
18
|
-
}, {
|
|
19
17
|
region: string;
|
|
18
|
+
}, {
|
|
20
19
|
instanceName: string;
|
|
21
20
|
machineType: string;
|
|
22
21
|
zone: string;
|
|
22
|
+
region: string;
|
|
23
23
|
}>;
|
|
24
24
|
hetzner: z.ZodObject<{
|
|
25
25
|
id: z.ZodString;
|
|
@@ -44,18 +44,17 @@ export declare const bidderInstanceSchema: z.ZodObject<{
|
|
|
44
44
|
createdAt: z.ZodNumber;
|
|
45
45
|
updatedAt: z.ZodNumber;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
id: string;
|
|
48
47
|
status: "available" | "unavailable";
|
|
48
|
+
id: string;
|
|
49
49
|
createdAt: number;
|
|
50
|
-
updatedAt: number;
|
|
51
50
|
ipAddress: string;
|
|
52
51
|
domain: string | null;
|
|
53
52
|
bidderAccounts: string[];
|
|
54
53
|
gcp: {
|
|
55
|
-
region: string;
|
|
56
54
|
instanceName: string;
|
|
57
55
|
machineType: string;
|
|
58
56
|
zone: string;
|
|
57
|
+
region: string;
|
|
59
58
|
};
|
|
60
59
|
hetzner: {
|
|
61
60
|
type: string;
|
|
@@ -64,19 +63,19 @@ export declare const bidderInstanceSchema: z.ZodObject<{
|
|
|
64
63
|
image: string;
|
|
65
64
|
createdAt: number;
|
|
66
65
|
};
|
|
66
|
+
updatedAt: number;
|
|
67
67
|
}, {
|
|
68
|
-
id: string;
|
|
69
68
|
status: "available" | "unavailable";
|
|
69
|
+
id: string;
|
|
70
70
|
createdAt: number;
|
|
71
|
-
updatedAt: number;
|
|
72
71
|
ipAddress: string;
|
|
73
72
|
domain: string | null;
|
|
74
73
|
bidderAccounts: string[];
|
|
75
74
|
gcp: {
|
|
76
|
-
region: string;
|
|
77
75
|
instanceName: string;
|
|
78
76
|
machineType: string;
|
|
79
77
|
zone: string;
|
|
78
|
+
region: string;
|
|
80
79
|
};
|
|
81
80
|
hetzner: {
|
|
82
81
|
type: string;
|
|
@@ -85,6 +84,7 @@ export declare const bidderInstanceSchema: z.ZodObject<{
|
|
|
85
84
|
image: string;
|
|
86
85
|
createdAt: number;
|
|
87
86
|
};
|
|
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;
|
|
11
10
|
amount: number;
|
|
12
11
|
quantity: number;
|
|
12
|
+
currency: string;
|
|
13
13
|
subscription_item_id: string;
|
|
14
14
|
}, {
|
|
15
15
|
description: string;
|
|
16
|
-
currency: string;
|
|
17
16
|
amount: number;
|
|
18
17
|
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;
|
|
35
34
|
amount: number;
|
|
36
35
|
quantity: number;
|
|
36
|
+
currency: string;
|
|
37
37
|
subscription_item_id: string;
|
|
38
38
|
}, {
|
|
39
39
|
description: string;
|
|
40
|
-
currency: string;
|
|
41
40
|
amount: number;
|
|
42
41
|
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";
|
|
50
51
|
id: string;
|
|
51
|
-
status: "open" | "void" | "draft" | "paid" | "uncollectible";
|
|
52
|
-
hosted_invoice_url: string;
|
|
53
52
|
subscription_id: string;
|
|
53
|
+
hosted_invoice_url: string;
|
|
54
54
|
lines: {
|
|
55
55
|
description: string;
|
|
56
|
-
currency: string;
|
|
57
56
|
amount: number;
|
|
58
57
|
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";
|
|
66
67
|
id: string;
|
|
67
|
-
status: "open" | "void" | "draft" | "paid" | "uncollectible";
|
|
68
|
-
hosted_invoice_url: string;
|
|
69
68
|
subscription_id: string;
|
|
69
|
+
hosted_invoice_url: string;
|
|
70
70
|
lines: {
|
|
71
71
|
description: string;
|
|
72
|
-
currency: string;
|
|
73
72
|
amount: number;
|
|
74
73
|
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;
|
|
89
88
|
description: string;
|
|
90
|
-
currency: string;
|
|
91
89
|
quantity: number;
|
|
92
|
-
|
|
90
|
+
currency: string;
|
|
93
91
|
total: number;
|
|
92
|
+
}, {
|
|
94
93
|
description: string;
|
|
95
|
-
currency: string;
|
|
96
94
|
quantity: number;
|
|
95
|
+
currency: string;
|
|
96
|
+
total: 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;
|
|
115
114
|
description: string;
|
|
116
|
-
currency: string;
|
|
117
115
|
quantity: number;
|
|
118
|
-
|
|
116
|
+
currency: string;
|
|
119
117
|
total: number;
|
|
118
|
+
}, {
|
|
120
119
|
description: string;
|
|
121
|
-
currency: string;
|
|
122
120
|
quantity: number;
|
|
121
|
+
currency: string;
|
|
122
|
+
total: 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;
|
|
138
137
|
amount: number;
|
|
139
138
|
quantity: number;
|
|
139
|
+
currency: string;
|
|
140
140
|
subscription_item_id: string;
|
|
141
141
|
}, {
|
|
142
142
|
description: string;
|
|
143
|
-
currency: string;
|
|
144
143
|
amount: number;
|
|
145
144
|
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";
|
|
153
154
|
id: string;
|
|
154
|
-
status: "open" | "void" | "draft" | "paid" | "uncollectible";
|
|
155
|
-
hosted_invoice_url: string;
|
|
156
155
|
subscription_id: string;
|
|
156
|
+
hosted_invoice_url: string;
|
|
157
157
|
lines: {
|
|
158
158
|
description: string;
|
|
159
|
-
currency: string;
|
|
160
159
|
amount: number;
|
|
161
160
|
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";
|
|
169
170
|
id: string;
|
|
170
|
-
status: "open" | "void" | "draft" | "paid" | "uncollectible";
|
|
171
|
-
hosted_invoice_url: string;
|
|
172
171
|
subscription_id: string;
|
|
172
|
+
hosted_invoice_url: string;
|
|
173
173
|
lines: {
|
|
174
174
|
description: string;
|
|
175
|
-
currency: string;
|
|
176
175
|
amount: number;
|
|
177
176
|
quantity: number;
|
|
177
|
+
currency: string;
|
|
178
178
|
subscription_item_id: string;
|
|
179
179
|
}[];
|
|
180
180
|
amount_paid: number;
|
|
@@ -185,22 +185,30 @@ 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";
|
|
188
190
|
id: string;
|
|
189
191
|
total: number;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
subtotal: number;
|
|
193
|
+
amountPaid: number;
|
|
194
|
+
amountDue: number;
|
|
195
|
+
amountRemaining: number;
|
|
196
|
+
lineItems: {
|
|
197
|
+
description: string;
|
|
198
|
+
quantity: number;
|
|
199
|
+
currency: string;
|
|
200
|
+
total: number;
|
|
201
|
+
}[];
|
|
194
202
|
stripe: {
|
|
203
|
+
status: "void" | "draft" | "open" | "paid" | "uncollectible";
|
|
195
204
|
id: string;
|
|
196
|
-
status: "open" | "void" | "draft" | "paid" | "uncollectible";
|
|
197
|
-
hosted_invoice_url: string;
|
|
198
205
|
subscription_id: string;
|
|
206
|
+
hosted_invoice_url: string;
|
|
199
207
|
lines: {
|
|
200
208
|
description: string;
|
|
201
|
-
currency: string;
|
|
202
209
|
amount: number;
|
|
203
210
|
quantity: number;
|
|
211
|
+
currency: string;
|
|
204
212
|
subscription_item_id: string;
|
|
205
213
|
}[];
|
|
206
214
|
amount_paid: number;
|
|
@@ -208,33 +216,33 @@ export declare const invoiceSchema: z.ZodObject<{
|
|
|
208
216
|
amount_remaining: number;
|
|
209
217
|
attempt_count: number;
|
|
210
218
|
};
|
|
219
|
+
createdAt: number;
|
|
220
|
+
updatedAt: number;
|
|
221
|
+
}, {
|
|
222
|
+
currency: string;
|
|
223
|
+
status: "open" | "paid" | "past_due" | "payment_failed";
|
|
224
|
+
id: string;
|
|
225
|
+
total: number;
|
|
211
226
|
subtotal: number;
|
|
212
227
|
amountPaid: number;
|
|
213
228
|
amountDue: number;
|
|
214
229
|
amountRemaining: number;
|
|
215
230
|
lineItems: {
|
|
216
|
-
total: number;
|
|
217
231
|
description: string;
|
|
218
|
-
currency: string;
|
|
219
232
|
quantity: number;
|
|
233
|
+
currency: string;
|
|
234
|
+
total: number;
|
|
220
235
|
}[];
|
|
221
|
-
}, {
|
|
222
|
-
id: string;
|
|
223
|
-
total: number;
|
|
224
|
-
status: "open" | "payment_failed" | "paid" | "past_due";
|
|
225
|
-
currency: string;
|
|
226
|
-
createdAt: number;
|
|
227
|
-
updatedAt: number;
|
|
228
236
|
stripe: {
|
|
237
|
+
status: "void" | "draft" | "open" | "paid" | "uncollectible";
|
|
229
238
|
id: string;
|
|
230
|
-
status: "open" | "void" | "draft" | "paid" | "uncollectible";
|
|
231
|
-
hosted_invoice_url: string;
|
|
232
239
|
subscription_id: string;
|
|
240
|
+
hosted_invoice_url: string;
|
|
233
241
|
lines: {
|
|
234
242
|
description: string;
|
|
235
|
-
currency: string;
|
|
236
243
|
amount: number;
|
|
237
244
|
quantity: number;
|
|
245
|
+
currency: string;
|
|
238
246
|
subscription_item_id: string;
|
|
239
247
|
}[];
|
|
240
248
|
amount_paid: number;
|
|
@@ -242,16 +250,8 @@ export declare const invoiceSchema: z.ZodObject<{
|
|
|
242
250
|
amount_remaining: number;
|
|
243
251
|
attempt_count: number;
|
|
244
252
|
};
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
amountDue: number;
|
|
248
|
-
amountRemaining: number;
|
|
249
|
-
lineItems: {
|
|
250
|
-
total: number;
|
|
251
|
-
description: string;
|
|
252
|
-
currency: string;
|
|
253
|
-
quantity: number;
|
|
254
|
-
}[];
|
|
253
|
+
createdAt: number;
|
|
254
|
+
updatedAt: number;
|
|
255
255
|
}>;
|
|
256
256
|
export type InvoiceStatus = z.infer<typeof invoiceStatusEnum>;
|
|
257
257
|
export interface InvoiceStripeMetadataLine extends infer<typeof invoiceStripeMetadataLineSchema> {
|