lancer-shared 1.2.326 → 1.2.327
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 +105 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +94 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/chat.d.ts +17 -1
- package/dist/constants/routes.d.ts +1 -0
- package/dist/schemas/account/bidder-account.d.ts +33 -33
- package/dist/schemas/account/scraper-account.d.ts +10 -10
- package/dist/schemas/agent/index.d.ts +208 -208
- package/dist/schemas/agent/proposal.d.ts +2 -2
- package/dist/schemas/bidder/bid.d.ts +1744 -1744
- package/dist/schemas/campaign/campaign-analytics.d.ts +250 -250
- package/dist/schemas/campaign/campaign-chat-bot.d.ts +4 -4
- package/dist/schemas/campaign/campaign.d.ts +69 -69
- package/dist/schemas/chat/index.d.ts +563 -68
- package/dist/schemas/dashboard/index.d.ts +18 -18
- package/dist/schemas/golden-dataset/sample.d.ts +4 -4
- package/dist/schemas/job/index.d.ts +70 -70
- package/dist/schemas/job/job-details.d.ts +14 -14
- package/dist/schemas/job/job-listing.d.ts +10 -10
- package/dist/schemas/job/nuxt.d.ts +6 -6
- package/dist/schemas/lead/index.d.ts +683 -683
- package/dist/schemas/lead/lead-status.d.ts +2 -2
- package/dist/schemas/logger/feed/feed-job-enrich.d.ts +98 -98
- package/dist/schemas/logger/log-event.d.ts +40 -40
- package/dist/schemas/logger/scraper-events.d.ts +8 -8
- 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 +34 -34
- package/dist/schemas/organization/onboarding.d.ts +2 -2
- package/dist/schemas/organization/organization-leads.d.ts +2 -2
- package/dist/schemas/organization/subscription.d.ts +6 -6
- package/dist/schemas/plan/index.d.ts +2 -2
- package/dist/schemas/proxy/proxy.d.ts +3 -3
- package/dist/schemas/scraper/scrape-payload.d.ts +262 -262
- package/dist/schemas/scraper/scrape-result.d.ts +86 -86
- package/dist/schemas/transaction/index.d.ts +4 -4
- package/dist/schemas/upwork-talent/index.d.ts +8 -8
- package/dist/schemas/usage/index.d.ts +2 -2
- package/dist/schemas/usage-event/index.d.ts +8 -8
- package/package.json +1 -1
|
@@ -44,9 +44,9 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
44
44
|
max: number | null;
|
|
45
45
|
min: number | null;
|
|
46
46
|
} | null;
|
|
47
|
+
experienceLevel: string | null;
|
|
47
48
|
paymentType: string | null;
|
|
48
49
|
fixedPrice: number | null;
|
|
49
|
-
experienceLevel: string | null;
|
|
50
50
|
}, {
|
|
51
51
|
hours: string | null;
|
|
52
52
|
duration: string | null;
|
|
@@ -54,9 +54,9 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
54
54
|
max: number | null;
|
|
55
55
|
min: number | null;
|
|
56
56
|
} | null;
|
|
57
|
+
experienceLevel: string | null;
|
|
57
58
|
paymentType: string | null;
|
|
58
59
|
fixedPrice: number | null;
|
|
59
|
-
experienceLevel: string | null;
|
|
60
60
|
}>>;
|
|
61
61
|
clientInfo: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
62
62
|
isPaymentVerified: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
|
@@ -154,29 +154,29 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
154
154
|
numHours: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
155
155
|
totalBilled: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
156
156
|
}, "strip", import("zod").ZodTypeAny, {
|
|
157
|
-
freelancerName: string | null;
|
|
158
|
-
jobTitle: string | null;
|
|
159
157
|
hourlyRate: number | null;
|
|
158
|
+
paymentType: string | null;
|
|
159
|
+
fixedPrice: number | null;
|
|
160
|
+
jobTitle: string | null;
|
|
161
|
+
freelancerName: string | null;
|
|
160
162
|
freelancerRating: number | null;
|
|
161
163
|
freelancerFeedback: string | null;
|
|
162
164
|
clientFeedback: string | null;
|
|
163
165
|
clientFeedbackRating: number | null;
|
|
164
166
|
dateRange: string | null;
|
|
165
|
-
paymentType: string | null;
|
|
166
|
-
fixedPrice: number | null;
|
|
167
167
|
numHours: number | null;
|
|
168
168
|
totalBilled: number | null;
|
|
169
169
|
}, {
|
|
170
|
-
freelancerName: string | null;
|
|
171
|
-
jobTitle: string | null;
|
|
172
170
|
hourlyRate: number | null;
|
|
171
|
+
paymentType: string | null;
|
|
172
|
+
fixedPrice: number | null;
|
|
173
|
+
jobTitle: string | null;
|
|
174
|
+
freelancerName: string | null;
|
|
173
175
|
freelancerRating: number | null;
|
|
174
176
|
freelancerFeedback: string | null;
|
|
175
177
|
clientFeedback: string | null;
|
|
176
178
|
clientFeedbackRating: number | null;
|
|
177
179
|
dateRange: string | null;
|
|
178
|
-
paymentType: string | null;
|
|
179
|
-
fixedPrice: number | null;
|
|
180
180
|
numHours: number | null;
|
|
181
181
|
totalBilled: number | null;
|
|
182
182
|
}>, "many">>;
|
|
@@ -213,8 +213,8 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
213
213
|
unansweredInvites: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
214
214
|
updatedAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
215
215
|
}, "strip", import("zod").ZodTypeAny, {
|
|
216
|
-
updatedAt: number | null;
|
|
217
216
|
unansweredInvites: number | null;
|
|
217
|
+
updatedAt: number | null;
|
|
218
218
|
proposals: {
|
|
219
219
|
max: number | null;
|
|
220
220
|
min: number | null;
|
|
@@ -225,8 +225,8 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
225
225
|
interviewing: number | null;
|
|
226
226
|
invitesSent: number | null;
|
|
227
227
|
}, {
|
|
228
|
-
updatedAt: number | null;
|
|
229
228
|
unansweredInvites: number | null;
|
|
229
|
+
updatedAt: number | null;
|
|
230
230
|
proposals: {
|
|
231
231
|
max: number | null;
|
|
232
232
|
min: number | null;
|
|
@@ -258,8 +258,8 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
258
258
|
unansweredInvites: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
259
259
|
updatedAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
260
260
|
}, "strip", import("zod").ZodTypeAny, {
|
|
261
|
-
updatedAt: number | null;
|
|
262
261
|
unansweredInvites: number | null;
|
|
262
|
+
updatedAt: number | null;
|
|
263
263
|
proposals: {
|
|
264
264
|
max: number | null;
|
|
265
265
|
min: number | null;
|
|
@@ -270,8 +270,8 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
270
270
|
interviewing: number | null;
|
|
271
271
|
invitesSent: number | null;
|
|
272
272
|
}, {
|
|
273
|
-
updatedAt: number | null;
|
|
274
273
|
unansweredInvites: number | null;
|
|
274
|
+
updatedAt: number | null;
|
|
275
275
|
proposals: {
|
|
276
276
|
max: number | null;
|
|
277
277
|
min: number | null;
|
|
@@ -311,32 +311,18 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
311
311
|
max: number | null;
|
|
312
312
|
min: number | null;
|
|
313
313
|
} | null;
|
|
314
|
+
experienceLevel: string | null;
|
|
314
315
|
paymentType: string | null;
|
|
315
316
|
fixedPrice: number | null;
|
|
316
|
-
experienceLevel: string | null;
|
|
317
317
|
} | null;
|
|
318
318
|
description: string | null;
|
|
319
319
|
region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
|
|
320
320
|
datetime: number | null;
|
|
321
|
-
createdAt: number | null;
|
|
322
321
|
category: string | null;
|
|
323
322
|
uid: string | null;
|
|
324
323
|
questions: string[] | null;
|
|
325
324
|
occupation: string | null;
|
|
326
|
-
|
|
327
|
-
freelancerName: string | null;
|
|
328
|
-
jobTitle: string | null;
|
|
329
|
-
hourlyRate: number | null;
|
|
330
|
-
freelancerRating: number | null;
|
|
331
|
-
freelancerFeedback: string | null;
|
|
332
|
-
clientFeedback: string | null;
|
|
333
|
-
clientFeedbackRating: number | null;
|
|
334
|
-
dateRange: string | null;
|
|
335
|
-
paymentType: string | null;
|
|
336
|
-
fixedPrice: number | null;
|
|
337
|
-
numHours: number | null;
|
|
338
|
-
totalBilled: number | null;
|
|
339
|
-
}[] | null;
|
|
325
|
+
createdAt: number | null;
|
|
340
326
|
skills: {
|
|
341
327
|
name: string;
|
|
342
328
|
}[] | null;
|
|
@@ -375,14 +361,28 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
375
361
|
} | null;
|
|
376
362
|
processed: boolean | null;
|
|
377
363
|
isFeatured: boolean | null;
|
|
364
|
+
clientReviews: {
|
|
365
|
+
hourlyRate: number | null;
|
|
366
|
+
paymentType: string | null;
|
|
367
|
+
fixedPrice: number | null;
|
|
368
|
+
jobTitle: string | null;
|
|
369
|
+
freelancerName: string | null;
|
|
370
|
+
freelancerRating: number | null;
|
|
371
|
+
freelancerFeedback: string | null;
|
|
372
|
+
clientFeedback: string | null;
|
|
373
|
+
clientFeedbackRating: number | null;
|
|
374
|
+
dateRange: string | null;
|
|
375
|
+
numHours: number | null;
|
|
376
|
+
totalBilled: number | null;
|
|
377
|
+
}[] | null;
|
|
378
378
|
bidRange: {
|
|
379
379
|
high: number | null;
|
|
380
380
|
low: number | null;
|
|
381
381
|
avg: number | null;
|
|
382
382
|
} | null;
|
|
383
383
|
jobActivity: {
|
|
384
|
-
updatedAt: number | null;
|
|
385
384
|
unansweredInvites: number | null;
|
|
385
|
+
updatedAt: number | null;
|
|
386
386
|
proposals: {
|
|
387
387
|
max: number | null;
|
|
388
388
|
min: number | null;
|
|
@@ -395,8 +395,8 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
395
395
|
} | null;
|
|
396
396
|
activityUpdates: 2 | 1 | 3 | null;
|
|
397
397
|
activity?: Partial<Record<"4h" | "24h", {
|
|
398
|
-
updatedAt: number | null;
|
|
399
398
|
unansweredInvites: number | null;
|
|
399
|
+
updatedAt: number | null;
|
|
400
400
|
proposals: {
|
|
401
401
|
max: number | null;
|
|
402
402
|
min: number | null;
|
|
@@ -424,32 +424,18 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
424
424
|
max: number | null;
|
|
425
425
|
min: number | null;
|
|
426
426
|
} | null;
|
|
427
|
+
experienceLevel: string | null;
|
|
427
428
|
paymentType: string | null;
|
|
428
429
|
fixedPrice: number | null;
|
|
429
|
-
experienceLevel: string | null;
|
|
430
430
|
} | null;
|
|
431
431
|
description: string | null;
|
|
432
432
|
region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
|
|
433
433
|
datetime: number | null;
|
|
434
|
-
createdAt: number | null;
|
|
435
434
|
category: string | null;
|
|
436
435
|
uid: string | null;
|
|
437
436
|
questions: string[] | null;
|
|
438
437
|
occupation: string | null;
|
|
439
|
-
|
|
440
|
-
freelancerName: string | null;
|
|
441
|
-
jobTitle: string | null;
|
|
442
|
-
hourlyRate: number | null;
|
|
443
|
-
freelancerRating: number | null;
|
|
444
|
-
freelancerFeedback: string | null;
|
|
445
|
-
clientFeedback: string | null;
|
|
446
|
-
clientFeedbackRating: number | null;
|
|
447
|
-
dateRange: string | null;
|
|
448
|
-
paymentType: string | null;
|
|
449
|
-
fixedPrice: number | null;
|
|
450
|
-
numHours: number | null;
|
|
451
|
-
totalBilled: number | null;
|
|
452
|
-
}[] | null;
|
|
438
|
+
createdAt: number | null;
|
|
453
439
|
skills: {
|
|
454
440
|
name: string;
|
|
455
441
|
}[] | null;
|
|
@@ -488,14 +474,28 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
488
474
|
} | null;
|
|
489
475
|
processed: boolean | null;
|
|
490
476
|
isFeatured: boolean | null;
|
|
477
|
+
clientReviews: {
|
|
478
|
+
hourlyRate: number | null;
|
|
479
|
+
paymentType: string | null;
|
|
480
|
+
fixedPrice: number | null;
|
|
481
|
+
jobTitle: string | null;
|
|
482
|
+
freelancerName: string | null;
|
|
483
|
+
freelancerRating: number | null;
|
|
484
|
+
freelancerFeedback: string | null;
|
|
485
|
+
clientFeedback: string | null;
|
|
486
|
+
clientFeedbackRating: number | null;
|
|
487
|
+
dateRange: string | null;
|
|
488
|
+
numHours: number | null;
|
|
489
|
+
totalBilled: number | null;
|
|
490
|
+
}[] | null;
|
|
491
491
|
bidRange: {
|
|
492
492
|
high: number | null;
|
|
493
493
|
low: number | null;
|
|
494
494
|
avg: number | null;
|
|
495
495
|
} | null;
|
|
496
496
|
jobActivity: {
|
|
497
|
-
updatedAt: number | null;
|
|
498
497
|
unansweredInvites: number | null;
|
|
498
|
+
updatedAt: number | null;
|
|
499
499
|
proposals: {
|
|
500
500
|
max: number | null;
|
|
501
501
|
min: number | null;
|
|
@@ -508,8 +508,8 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
508
508
|
} | null;
|
|
509
509
|
activityUpdates: 2 | 1 | 3 | null;
|
|
510
510
|
activity?: Partial<Record<"4h" | "24h", {
|
|
511
|
-
updatedAt: number | null;
|
|
512
511
|
unansweredInvites: number | null;
|
|
512
|
+
updatedAt: number | null;
|
|
513
513
|
proposals: {
|
|
514
514
|
max: number | null;
|
|
515
515
|
min: number | null;
|
|
@@ -543,32 +543,18 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
543
543
|
max: number | null;
|
|
544
544
|
min: number | null;
|
|
545
545
|
} | null;
|
|
546
|
+
experienceLevel: string | null;
|
|
546
547
|
paymentType: string | null;
|
|
547
548
|
fixedPrice: number | null;
|
|
548
|
-
experienceLevel: string | null;
|
|
549
549
|
} | null;
|
|
550
550
|
description: string | null;
|
|
551
551
|
region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
|
|
552
552
|
datetime: number | null;
|
|
553
|
-
createdAt: number | null;
|
|
554
553
|
category: string | null;
|
|
555
554
|
uid: string | null;
|
|
556
555
|
questions: string[] | null;
|
|
557
556
|
occupation: string | null;
|
|
558
|
-
|
|
559
|
-
freelancerName: string | null;
|
|
560
|
-
jobTitle: string | null;
|
|
561
|
-
hourlyRate: number | null;
|
|
562
|
-
freelancerRating: number | null;
|
|
563
|
-
freelancerFeedback: string | null;
|
|
564
|
-
clientFeedback: string | null;
|
|
565
|
-
clientFeedbackRating: number | null;
|
|
566
|
-
dateRange: string | null;
|
|
567
|
-
paymentType: string | null;
|
|
568
|
-
fixedPrice: number | null;
|
|
569
|
-
numHours: number | null;
|
|
570
|
-
totalBilled: number | null;
|
|
571
|
-
}[] | null;
|
|
557
|
+
createdAt: number | null;
|
|
572
558
|
skills: {
|
|
573
559
|
name: string;
|
|
574
560
|
}[] | null;
|
|
@@ -607,14 +593,28 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
607
593
|
} | null;
|
|
608
594
|
processed: boolean | null;
|
|
609
595
|
isFeatured: boolean | null;
|
|
596
|
+
clientReviews: {
|
|
597
|
+
hourlyRate: number | null;
|
|
598
|
+
paymentType: string | null;
|
|
599
|
+
fixedPrice: number | null;
|
|
600
|
+
jobTitle: string | null;
|
|
601
|
+
freelancerName: string | null;
|
|
602
|
+
freelancerRating: number | null;
|
|
603
|
+
freelancerFeedback: string | null;
|
|
604
|
+
clientFeedback: string | null;
|
|
605
|
+
clientFeedbackRating: number | null;
|
|
606
|
+
dateRange: string | null;
|
|
607
|
+
numHours: number | null;
|
|
608
|
+
totalBilled: number | null;
|
|
609
|
+
}[] | null;
|
|
610
610
|
bidRange: {
|
|
611
611
|
high: number | null;
|
|
612
612
|
low: number | null;
|
|
613
613
|
avg: number | null;
|
|
614
614
|
} | null;
|
|
615
615
|
jobActivity: {
|
|
616
|
-
updatedAt: number | null;
|
|
617
616
|
unansweredInvites: number | null;
|
|
617
|
+
updatedAt: number | null;
|
|
618
618
|
proposals: {
|
|
619
619
|
max: number | null;
|
|
620
620
|
min: number | null;
|
|
@@ -627,8 +627,8 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
627
627
|
} | null;
|
|
628
628
|
activityUpdates: 2 | 1 | 3 | null;
|
|
629
629
|
activity?: Partial<Record<"4h" | "24h", {
|
|
630
|
-
updatedAt: number | null;
|
|
631
630
|
unansweredInvites: number | null;
|
|
631
|
+
updatedAt: number | null;
|
|
632
632
|
proposals: {
|
|
633
633
|
max: number | null;
|
|
634
634
|
min: number | null;
|
|
@@ -661,32 +661,18 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
661
661
|
max: number | null;
|
|
662
662
|
min: number | null;
|
|
663
663
|
} | null;
|
|
664
|
+
experienceLevel: string | null;
|
|
664
665
|
paymentType: string | null;
|
|
665
666
|
fixedPrice: number | null;
|
|
666
|
-
experienceLevel: string | null;
|
|
667
667
|
} | null;
|
|
668
668
|
description: string | null;
|
|
669
669
|
region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
|
|
670
670
|
datetime: number | null;
|
|
671
|
-
createdAt: number | null;
|
|
672
671
|
category: string | null;
|
|
673
672
|
uid: string | null;
|
|
674
673
|
questions: string[] | null;
|
|
675
674
|
occupation: string | null;
|
|
676
|
-
|
|
677
|
-
freelancerName: string | null;
|
|
678
|
-
jobTitle: string | null;
|
|
679
|
-
hourlyRate: number | null;
|
|
680
|
-
freelancerRating: number | null;
|
|
681
|
-
freelancerFeedback: string | null;
|
|
682
|
-
clientFeedback: string | null;
|
|
683
|
-
clientFeedbackRating: number | null;
|
|
684
|
-
dateRange: string | null;
|
|
685
|
-
paymentType: string | null;
|
|
686
|
-
fixedPrice: number | null;
|
|
687
|
-
numHours: number | null;
|
|
688
|
-
totalBilled: number | null;
|
|
689
|
-
}[] | null;
|
|
675
|
+
createdAt: number | null;
|
|
690
676
|
skills: {
|
|
691
677
|
name: string;
|
|
692
678
|
}[] | null;
|
|
@@ -725,14 +711,28 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
725
711
|
} | null;
|
|
726
712
|
processed: boolean | null;
|
|
727
713
|
isFeatured: boolean | null;
|
|
714
|
+
clientReviews: {
|
|
715
|
+
hourlyRate: number | null;
|
|
716
|
+
paymentType: string | null;
|
|
717
|
+
fixedPrice: number | null;
|
|
718
|
+
jobTitle: string | null;
|
|
719
|
+
freelancerName: string | null;
|
|
720
|
+
freelancerRating: number | null;
|
|
721
|
+
freelancerFeedback: string | null;
|
|
722
|
+
clientFeedback: string | null;
|
|
723
|
+
clientFeedbackRating: number | null;
|
|
724
|
+
dateRange: string | null;
|
|
725
|
+
numHours: number | null;
|
|
726
|
+
totalBilled: number | null;
|
|
727
|
+
}[] | null;
|
|
728
728
|
bidRange: {
|
|
729
729
|
high: number | null;
|
|
730
730
|
low: number | null;
|
|
731
731
|
avg: number | null;
|
|
732
732
|
} | null;
|
|
733
733
|
jobActivity: {
|
|
734
|
-
updatedAt: number | null;
|
|
735
734
|
unansweredInvites: number | null;
|
|
735
|
+
updatedAt: number | null;
|
|
736
736
|
proposals: {
|
|
737
737
|
max: number | null;
|
|
738
738
|
min: number | null;
|
|
@@ -745,8 +745,8 @@ export declare const scrapeResultSchema: import("zod").ZodObject<{
|
|
|
745
745
|
} | null;
|
|
746
746
|
activityUpdates: 2 | 1 | 3 | null;
|
|
747
747
|
activity?: Partial<Record<"4h" | "24h", {
|
|
748
|
-
updatedAt: number | null;
|
|
749
748
|
unansweredInvites: number | null;
|
|
749
|
+
updatedAt: number | null;
|
|
750
750
|
proposals: {
|
|
751
751
|
max: number | null;
|
|
752
752
|
min: number | null;
|
|
@@ -70,7 +70,7 @@ export declare const transactionSchema: z.ZodObject<{
|
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
71
|
type: "subscription" | "add-on" | "refund";
|
|
72
72
|
status: "failed" | "succeeded" | "refunded";
|
|
73
|
-
|
|
73
|
+
timestamp: number;
|
|
74
74
|
stripe: {
|
|
75
75
|
invoice: {
|
|
76
76
|
id: string | null;
|
|
@@ -79,12 +79,12 @@ export declare const transactionSchema: z.ZodObject<{
|
|
|
79
79
|
id: string | null;
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
orgId: string;
|
|
83
83
|
amountUsd: number;
|
|
84
84
|
}, {
|
|
85
85
|
type: "subscription" | "add-on" | "refund";
|
|
86
86
|
status: "failed" | "succeeded" | "refunded";
|
|
87
|
-
|
|
87
|
+
timestamp: number;
|
|
88
88
|
stripe: {
|
|
89
89
|
invoice: {
|
|
90
90
|
id: string | null;
|
|
@@ -93,7 +93,7 @@ export declare const transactionSchema: z.ZodObject<{
|
|
|
93
93
|
id: string | null;
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
|
-
|
|
96
|
+
orgId: string;
|
|
97
97
|
amountUsd: number;
|
|
98
98
|
}>;
|
|
99
99
|
export interface StripeTransactionMetadata extends z.infer<typeof transactionStripeMetadataSchema> {
|
|
@@ -89,6 +89,7 @@ export declare const upworkTalentSchema: z.ZodObject<{
|
|
|
89
89
|
rating: number;
|
|
90
90
|
memberSince: string | null;
|
|
91
91
|
jobSuccessScore: number | null;
|
|
92
|
+
videoUrl: string | null;
|
|
92
93
|
totalFeedback: number;
|
|
93
94
|
vanityUrl: string | null;
|
|
94
95
|
countryCode: string | null;
|
|
@@ -111,7 +112,6 @@ export declare const upworkTalentSchema: z.ZodObject<{
|
|
|
111
112
|
badge: "top_rated_plus" | "top_rated" | "rising_talent" | null;
|
|
112
113
|
ratingRecent: number;
|
|
113
114
|
isVetted: boolean;
|
|
114
|
-
videoUrl: string | null;
|
|
115
115
|
worldTotal: number | null;
|
|
116
116
|
countryTotal: number | null;
|
|
117
117
|
mrrWorldRank: number | null;
|
|
@@ -145,6 +145,7 @@ export declare const upworkTalentSchema: z.ZodObject<{
|
|
|
145
145
|
rating: number;
|
|
146
146
|
memberSince: string | null;
|
|
147
147
|
jobSuccessScore: number | null;
|
|
148
|
+
videoUrl: string | null;
|
|
148
149
|
totalFeedback: number;
|
|
149
150
|
vanityUrl: string | null;
|
|
150
151
|
countryCode: string | null;
|
|
@@ -167,7 +168,6 @@ export declare const upworkTalentSchema: z.ZodObject<{
|
|
|
167
168
|
badge: "top_rated_plus" | "top_rated" | "rising_talent" | null;
|
|
168
169
|
ratingRecent: number;
|
|
169
170
|
isVetted: boolean;
|
|
170
|
-
videoUrl: string | null;
|
|
171
171
|
worldTotal: number | null;
|
|
172
172
|
countryTotal: number | null;
|
|
173
173
|
mrrWorldRank: number | null;
|
|
@@ -211,10 +211,10 @@ export declare const upworkTalentSearchRequestSchema: z.ZodObject<{
|
|
|
211
211
|
}, "strip", z.ZodTypeAny, {
|
|
212
212
|
page?: number | null | undefined;
|
|
213
213
|
country?: string | null | undefined;
|
|
214
|
-
limit?: number | null | undefined;
|
|
215
214
|
sortOrder?: "desc" | "asc" | null | undefined;
|
|
216
215
|
skill?: string | null | undefined;
|
|
217
216
|
minJobSuccessScore?: number | null | undefined;
|
|
217
|
+
limit?: number | null | undefined;
|
|
218
218
|
searchQuery?: string | null | undefined;
|
|
219
219
|
minHourlyRate?: number | null | undefined;
|
|
220
220
|
maxHourlyRate?: number | null | undefined;
|
|
@@ -229,10 +229,10 @@ export declare const upworkTalentSearchRequestSchema: z.ZodObject<{
|
|
|
229
229
|
}, {
|
|
230
230
|
page?: number | null | undefined;
|
|
231
231
|
country?: string | null | undefined;
|
|
232
|
-
limit?: number | null | undefined;
|
|
233
232
|
sortOrder?: "desc" | "asc" | null | undefined;
|
|
234
233
|
skill?: string | null | undefined;
|
|
235
234
|
minJobSuccessScore?: number | null | undefined;
|
|
235
|
+
limit?: number | null | undefined;
|
|
236
236
|
searchQuery?: string | null | undefined;
|
|
237
237
|
minHourlyRate?: number | null | undefined;
|
|
238
238
|
maxHourlyRate?: number | null | undefined;
|
|
@@ -324,6 +324,7 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
324
324
|
rating: number;
|
|
325
325
|
memberSince: string | null;
|
|
326
326
|
jobSuccessScore: number | null;
|
|
327
|
+
videoUrl: string | null;
|
|
327
328
|
totalFeedback: number;
|
|
328
329
|
vanityUrl: string | null;
|
|
329
330
|
countryCode: string | null;
|
|
@@ -346,7 +347,6 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
346
347
|
badge: "top_rated_plus" | "top_rated" | "rising_talent" | null;
|
|
347
348
|
ratingRecent: number;
|
|
348
349
|
isVetted: boolean;
|
|
349
|
-
videoUrl: string | null;
|
|
350
350
|
worldTotal: number | null;
|
|
351
351
|
countryTotal: number | null;
|
|
352
352
|
mrrWorldRank: number | null;
|
|
@@ -380,6 +380,7 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
380
380
|
rating: number;
|
|
381
381
|
memberSince: string | null;
|
|
382
382
|
jobSuccessScore: number | null;
|
|
383
|
+
videoUrl: string | null;
|
|
383
384
|
totalFeedback: number;
|
|
384
385
|
vanityUrl: string | null;
|
|
385
386
|
countryCode: string | null;
|
|
@@ -402,7 +403,6 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
402
403
|
badge: "top_rated_plus" | "top_rated" | "rising_talent" | null;
|
|
403
404
|
ratingRecent: number;
|
|
404
405
|
isVetted: boolean;
|
|
405
|
-
videoUrl: string | null;
|
|
406
406
|
worldTotal: number | null;
|
|
407
407
|
countryTotal: number | null;
|
|
408
408
|
mrrWorldRank: number | null;
|
|
@@ -454,6 +454,7 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
454
454
|
rating: number;
|
|
455
455
|
memberSince: string | null;
|
|
456
456
|
jobSuccessScore: number | null;
|
|
457
|
+
videoUrl: string | null;
|
|
457
458
|
totalFeedback: number;
|
|
458
459
|
vanityUrl: string | null;
|
|
459
460
|
countryCode: string | null;
|
|
@@ -476,7 +477,6 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
476
477
|
badge: "top_rated_plus" | "top_rated" | "rising_talent" | null;
|
|
477
478
|
ratingRecent: number;
|
|
478
479
|
isVetted: boolean;
|
|
479
|
-
videoUrl: string | null;
|
|
480
480
|
worldTotal: number | null;
|
|
481
481
|
countryTotal: number | null;
|
|
482
482
|
mrrWorldRank: number | null;
|
|
@@ -518,6 +518,7 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
518
518
|
rating: number;
|
|
519
519
|
memberSince: string | null;
|
|
520
520
|
jobSuccessScore: number | null;
|
|
521
|
+
videoUrl: string | null;
|
|
521
522
|
totalFeedback: number;
|
|
522
523
|
vanityUrl: string | null;
|
|
523
524
|
countryCode: string | null;
|
|
@@ -540,7 +541,6 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
540
541
|
badge: "top_rated_plus" | "top_rated" | "rising_talent" | null;
|
|
541
542
|
ratingRecent: number;
|
|
542
543
|
isVetted: boolean;
|
|
543
|
-
videoUrl: string | null;
|
|
544
544
|
worldTotal: number | null;
|
|
545
545
|
countryTotal: number | null;
|
|
546
546
|
mrrWorldRank: number | null;
|
|
@@ -55,21 +55,21 @@ export declare const periodUsageSchema: z.ZodObject<{
|
|
|
55
55
|
}>;
|
|
56
56
|
lastUpdated: z.ZodNumber;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
lastUpdated: number;
|
|
59
58
|
usedCredits: number;
|
|
60
59
|
breakdown: {
|
|
61
60
|
proposal: number;
|
|
62
61
|
suitability: number;
|
|
63
62
|
bidding: number;
|
|
64
63
|
};
|
|
65
|
-
}, {
|
|
66
64
|
lastUpdated: number;
|
|
65
|
+
}, {
|
|
67
66
|
usedCredits: number;
|
|
68
67
|
breakdown: {
|
|
69
68
|
proposal: number;
|
|
70
69
|
suitability: number;
|
|
71
70
|
bidding: number;
|
|
72
71
|
};
|
|
72
|
+
lastUpdated: number;
|
|
73
73
|
}>;
|
|
74
74
|
export interface DailyUsage extends z.infer<typeof dailyUsageSchema> {
|
|
75
75
|
}
|
|
@@ -8,13 +8,13 @@ export declare const usageEventMetadataSchema: z.ZodObject<{
|
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
userId: string | null;
|
|
10
10
|
campaignId: string | null;
|
|
11
|
-
planId: string | null;
|
|
12
11
|
stripeSubscriptionId: string | null;
|
|
12
|
+
planId: string | null;
|
|
13
13
|
}, {
|
|
14
14
|
userId: string | null;
|
|
15
15
|
campaignId: string | null;
|
|
16
|
-
planId: string | null;
|
|
17
16
|
stripeSubscriptionId: string | null;
|
|
17
|
+
planId: string | null;
|
|
18
18
|
}>;
|
|
19
19
|
export declare const usageEventSchema: z.ZodObject<{
|
|
20
20
|
organizationId: z.ZodString;
|
|
@@ -28,34 +28,34 @@ export declare const usageEventSchema: z.ZodObject<{
|
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
userId: string | null;
|
|
30
30
|
campaignId: string | null;
|
|
31
|
-
planId: string | null;
|
|
32
31
|
stripeSubscriptionId: string | null;
|
|
32
|
+
planId: string | null;
|
|
33
33
|
}, {
|
|
34
34
|
userId: string | null;
|
|
35
35
|
campaignId: string | null;
|
|
36
|
-
planId: string | null;
|
|
37
36
|
stripeSubscriptionId: string | null;
|
|
37
|
+
planId: string | null;
|
|
38
38
|
}>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
40
|
metadata: {
|
|
41
41
|
userId: string | null;
|
|
42
42
|
campaignId: string | null;
|
|
43
|
-
planId: string | null;
|
|
44
43
|
stripeSubscriptionId: string | null;
|
|
44
|
+
planId: string | null;
|
|
45
45
|
};
|
|
46
46
|
organizationId: string;
|
|
47
|
-
timestamp: number;
|
|
48
47
|
typeId: "suitabilityComplete" | "proposalComplete" | "biddingComplete";
|
|
48
|
+
timestamp: number;
|
|
49
49
|
}, {
|
|
50
50
|
metadata: {
|
|
51
51
|
userId: string | null;
|
|
52
52
|
campaignId: string | null;
|
|
53
|
-
planId: string | null;
|
|
54
53
|
stripeSubscriptionId: string | null;
|
|
54
|
+
planId: string | null;
|
|
55
55
|
};
|
|
56
56
|
organizationId: string;
|
|
57
|
-
timestamp: number;
|
|
58
57
|
typeId: "suitabilityComplete" | "proposalComplete" | "biddingComplete";
|
|
58
|
+
timestamp: number;
|
|
59
59
|
}>;
|
|
60
60
|
export type UsageEventType = z.infer<typeof usageEventTypeEnum>;
|
|
61
61
|
export interface UsageEvent extends infer<typeof usageEventSchema> {
|