lancer-shared 1.2.325 → 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 +107 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +96 -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 +24 -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> {
|
|
@@ -29,6 +29,8 @@ export declare const upworkTalentSchema: z.ZodObject<{
|
|
|
29
29
|
totalJobsWorkedRecent: z.ZodNumber;
|
|
30
30
|
totalFixedJobs: z.ZodNumber;
|
|
31
31
|
totalHourlyJobs: z.ZodNumber;
|
|
32
|
+
totalFixedJobsRecent: z.ZodNumber;
|
|
33
|
+
totalHourlyJobsRecent: z.ZodNumber;
|
|
32
34
|
activeJobs: z.ZodNullable<z.ZodNumber>;
|
|
33
35
|
hideEarnings: z.ZodBoolean;
|
|
34
36
|
contractorEarnings: z.ZodNumber;
|
|
@@ -87,6 +89,7 @@ export declare const upworkTalentSchema: z.ZodObject<{
|
|
|
87
89
|
rating: number;
|
|
88
90
|
memberSince: string | null;
|
|
89
91
|
jobSuccessScore: number | null;
|
|
92
|
+
videoUrl: string | null;
|
|
90
93
|
totalFeedback: number;
|
|
91
94
|
vanityUrl: string | null;
|
|
92
95
|
countryCode: string | null;
|
|
@@ -96,6 +99,8 @@ export declare const upworkTalentSchema: z.ZodObject<{
|
|
|
96
99
|
totalJobsWorkedRecent: number;
|
|
97
100
|
totalFixedJobs: number;
|
|
98
101
|
totalHourlyJobs: number;
|
|
102
|
+
totalFixedJobsRecent: number;
|
|
103
|
+
totalHourlyJobsRecent: number;
|
|
99
104
|
activeJobs: number | null;
|
|
100
105
|
hideEarnings: boolean;
|
|
101
106
|
contractorEarnings: number;
|
|
@@ -107,7 +112,6 @@ export declare const upworkTalentSchema: z.ZodObject<{
|
|
|
107
112
|
badge: "top_rated_plus" | "top_rated" | "rising_talent" | null;
|
|
108
113
|
ratingRecent: number;
|
|
109
114
|
isVetted: boolean;
|
|
110
|
-
videoUrl: string | null;
|
|
111
115
|
worldTotal: number | null;
|
|
112
116
|
countryTotal: number | null;
|
|
113
117
|
mrrWorldRank: number | null;
|
|
@@ -141,6 +145,7 @@ export declare const upworkTalentSchema: z.ZodObject<{
|
|
|
141
145
|
rating: number;
|
|
142
146
|
memberSince: string | null;
|
|
143
147
|
jobSuccessScore: number | null;
|
|
148
|
+
videoUrl: string | null;
|
|
144
149
|
totalFeedback: number;
|
|
145
150
|
vanityUrl: string | null;
|
|
146
151
|
countryCode: string | null;
|
|
@@ -150,6 +155,8 @@ export declare const upworkTalentSchema: z.ZodObject<{
|
|
|
150
155
|
totalJobsWorkedRecent: number;
|
|
151
156
|
totalFixedJobs: number;
|
|
152
157
|
totalHourlyJobs: number;
|
|
158
|
+
totalFixedJobsRecent: number;
|
|
159
|
+
totalHourlyJobsRecent: number;
|
|
153
160
|
activeJobs: number | null;
|
|
154
161
|
hideEarnings: boolean;
|
|
155
162
|
contractorEarnings: number;
|
|
@@ -161,7 +168,6 @@ export declare const upworkTalentSchema: z.ZodObject<{
|
|
|
161
168
|
badge: "top_rated_plus" | "top_rated" | "rising_talent" | null;
|
|
162
169
|
ratingRecent: number;
|
|
163
170
|
isVetted: boolean;
|
|
164
|
-
videoUrl: string | null;
|
|
165
171
|
worldTotal: number | null;
|
|
166
172
|
countryTotal: number | null;
|
|
167
173
|
mrrWorldRank: number | null;
|
|
@@ -205,10 +211,10 @@ export declare const upworkTalentSearchRequestSchema: z.ZodObject<{
|
|
|
205
211
|
}, "strip", z.ZodTypeAny, {
|
|
206
212
|
page?: number | null | undefined;
|
|
207
213
|
country?: string | null | undefined;
|
|
208
|
-
limit?: number | null | undefined;
|
|
209
214
|
sortOrder?: "desc" | "asc" | null | undefined;
|
|
210
215
|
skill?: string | null | undefined;
|
|
211
216
|
minJobSuccessScore?: number | null | undefined;
|
|
217
|
+
limit?: number | null | undefined;
|
|
212
218
|
searchQuery?: string | null | undefined;
|
|
213
219
|
minHourlyRate?: number | null | undefined;
|
|
214
220
|
maxHourlyRate?: number | null | undefined;
|
|
@@ -223,10 +229,10 @@ export declare const upworkTalentSearchRequestSchema: z.ZodObject<{
|
|
|
223
229
|
}, {
|
|
224
230
|
page?: number | null | undefined;
|
|
225
231
|
country?: string | null | undefined;
|
|
226
|
-
limit?: number | null | undefined;
|
|
227
232
|
sortOrder?: "desc" | "asc" | null | undefined;
|
|
228
233
|
skill?: string | null | undefined;
|
|
229
234
|
minJobSuccessScore?: number | null | undefined;
|
|
235
|
+
limit?: number | null | undefined;
|
|
230
236
|
searchQuery?: string | null | undefined;
|
|
231
237
|
minHourlyRate?: number | null | undefined;
|
|
232
238
|
maxHourlyRate?: number | null | undefined;
|
|
@@ -258,6 +264,8 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
258
264
|
totalJobsWorkedRecent: z.ZodNumber;
|
|
259
265
|
totalFixedJobs: z.ZodNumber;
|
|
260
266
|
totalHourlyJobs: z.ZodNumber;
|
|
267
|
+
totalFixedJobsRecent: z.ZodNumber;
|
|
268
|
+
totalHourlyJobsRecent: z.ZodNumber;
|
|
261
269
|
activeJobs: z.ZodNullable<z.ZodNumber>;
|
|
262
270
|
hideEarnings: z.ZodBoolean;
|
|
263
271
|
contractorEarnings: z.ZodNumber;
|
|
@@ -316,6 +324,7 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
316
324
|
rating: number;
|
|
317
325
|
memberSince: string | null;
|
|
318
326
|
jobSuccessScore: number | null;
|
|
327
|
+
videoUrl: string | null;
|
|
319
328
|
totalFeedback: number;
|
|
320
329
|
vanityUrl: string | null;
|
|
321
330
|
countryCode: string | null;
|
|
@@ -325,6 +334,8 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
325
334
|
totalJobsWorkedRecent: number;
|
|
326
335
|
totalFixedJobs: number;
|
|
327
336
|
totalHourlyJobs: number;
|
|
337
|
+
totalFixedJobsRecent: number;
|
|
338
|
+
totalHourlyJobsRecent: number;
|
|
328
339
|
activeJobs: number | null;
|
|
329
340
|
hideEarnings: boolean;
|
|
330
341
|
contractorEarnings: number;
|
|
@@ -336,7 +347,6 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
336
347
|
badge: "top_rated_plus" | "top_rated" | "rising_talent" | null;
|
|
337
348
|
ratingRecent: number;
|
|
338
349
|
isVetted: boolean;
|
|
339
|
-
videoUrl: string | null;
|
|
340
350
|
worldTotal: number | null;
|
|
341
351
|
countryTotal: number | null;
|
|
342
352
|
mrrWorldRank: number | null;
|
|
@@ -370,6 +380,7 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
370
380
|
rating: number;
|
|
371
381
|
memberSince: string | null;
|
|
372
382
|
jobSuccessScore: number | null;
|
|
383
|
+
videoUrl: string | null;
|
|
373
384
|
totalFeedback: number;
|
|
374
385
|
vanityUrl: string | null;
|
|
375
386
|
countryCode: string | null;
|
|
@@ -379,6 +390,8 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
379
390
|
totalJobsWorkedRecent: number;
|
|
380
391
|
totalFixedJobs: number;
|
|
381
392
|
totalHourlyJobs: number;
|
|
393
|
+
totalFixedJobsRecent: number;
|
|
394
|
+
totalHourlyJobsRecent: number;
|
|
382
395
|
activeJobs: number | null;
|
|
383
396
|
hideEarnings: boolean;
|
|
384
397
|
contractorEarnings: number;
|
|
@@ -390,7 +403,6 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
390
403
|
badge: "top_rated_plus" | "top_rated" | "rising_talent" | null;
|
|
391
404
|
ratingRecent: number;
|
|
392
405
|
isVetted: boolean;
|
|
393
|
-
videoUrl: string | null;
|
|
394
406
|
worldTotal: number | null;
|
|
395
407
|
countryTotal: number | null;
|
|
396
408
|
mrrWorldRank: number | null;
|
|
@@ -442,6 +454,7 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
442
454
|
rating: number;
|
|
443
455
|
memberSince: string | null;
|
|
444
456
|
jobSuccessScore: number | null;
|
|
457
|
+
videoUrl: string | null;
|
|
445
458
|
totalFeedback: number;
|
|
446
459
|
vanityUrl: string | null;
|
|
447
460
|
countryCode: string | null;
|
|
@@ -451,6 +464,8 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
451
464
|
totalJobsWorkedRecent: number;
|
|
452
465
|
totalFixedJobs: number;
|
|
453
466
|
totalHourlyJobs: number;
|
|
467
|
+
totalFixedJobsRecent: number;
|
|
468
|
+
totalHourlyJobsRecent: number;
|
|
454
469
|
activeJobs: number | null;
|
|
455
470
|
hideEarnings: boolean;
|
|
456
471
|
contractorEarnings: number;
|
|
@@ -462,7 +477,6 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
462
477
|
badge: "top_rated_plus" | "top_rated" | "rising_talent" | null;
|
|
463
478
|
ratingRecent: number;
|
|
464
479
|
isVetted: boolean;
|
|
465
|
-
videoUrl: string | null;
|
|
466
480
|
worldTotal: number | null;
|
|
467
481
|
countryTotal: number | null;
|
|
468
482
|
mrrWorldRank: number | null;
|
|
@@ -504,6 +518,7 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
504
518
|
rating: number;
|
|
505
519
|
memberSince: string | null;
|
|
506
520
|
jobSuccessScore: number | null;
|
|
521
|
+
videoUrl: string | null;
|
|
507
522
|
totalFeedback: number;
|
|
508
523
|
vanityUrl: string | null;
|
|
509
524
|
countryCode: string | null;
|
|
@@ -513,6 +528,8 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
513
528
|
totalJobsWorkedRecent: number;
|
|
514
529
|
totalFixedJobs: number;
|
|
515
530
|
totalHourlyJobs: number;
|
|
531
|
+
totalFixedJobsRecent: number;
|
|
532
|
+
totalHourlyJobsRecent: number;
|
|
516
533
|
activeJobs: number | null;
|
|
517
534
|
hideEarnings: boolean;
|
|
518
535
|
contractorEarnings: number;
|
|
@@ -524,7 +541,6 @@ export declare const upworkTalentSearchResponseSchema: z.ZodObject<{
|
|
|
524
541
|
badge: "top_rated_plus" | "top_rated" | "rising_talent" | null;
|
|
525
542
|
ratingRecent: number;
|
|
526
543
|
isVetted: boolean;
|
|
527
|
-
videoUrl: string | null;
|
|
528
544
|
worldTotal: number | null;
|
|
529
545
|
countryTotal: number | null;
|
|
530
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> {
|