lancer-shared 1.0.35 → 1.0.37
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/schemas/campaign/campaign.d.ts +12 -12
- package/dist/schemas/job/job.d.ts +20 -28
- package/dist/schemas/job/job.js +3 -4
- package/dist/schemas/job-filters/job-filters.d.ts +2 -2
- package/dist/schemas/lead/lead.d.ts +107 -96
- package/dist/schemas/lead/lead.js +2 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +2 -2
- package/dist/schemas/scraper/scrape-result.d.ts +51 -36
- package/dist/schemas/scraper/scrape-result.js +9 -1
- package/dist/schemas/user/index.d.ts +4 -4
- package/dist/types/scraper/scrape-result.d.ts +3 -2
- package/package.json +1 -1
|
@@ -94,6 +94,9 @@ export declare const clientReviewSchema: z.ZodObject<{
|
|
|
94
94
|
numHours: z.ZodNullable<z.ZodNumber>;
|
|
95
95
|
totalBilled: z.ZodNullable<z.ZodNumber>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
hourlyRate: number | null;
|
|
98
|
+
paymentType: string | null;
|
|
99
|
+
fixedPrice: number | null;
|
|
97
100
|
jobTitle: string | null;
|
|
98
101
|
freelancerName: string | null;
|
|
99
102
|
freelancerRating: number | null;
|
|
@@ -101,12 +104,12 @@ export declare const clientReviewSchema: z.ZodObject<{
|
|
|
101
104
|
clientFeedback: string | null;
|
|
102
105
|
clientFeedbackRating: number | null;
|
|
103
106
|
dateRange: string | null;
|
|
104
|
-
paymentType: string | null;
|
|
105
|
-
fixedPrice: number | null;
|
|
106
|
-
hourlyRate: number | null;
|
|
107
107
|
numHours: number | null;
|
|
108
108
|
totalBilled: number | null;
|
|
109
109
|
}, {
|
|
110
|
+
hourlyRate: number | null;
|
|
111
|
+
paymentType: string | null;
|
|
112
|
+
fixedPrice: number | null;
|
|
110
113
|
jobTitle: string | null;
|
|
111
114
|
freelancerName: string | null;
|
|
112
115
|
freelancerRating: number | null;
|
|
@@ -114,9 +117,6 @@ export declare const clientReviewSchema: z.ZodObject<{
|
|
|
114
117
|
clientFeedback: string | null;
|
|
115
118
|
clientFeedbackRating: number | null;
|
|
116
119
|
dateRange: string | null;
|
|
117
|
-
paymentType: string | null;
|
|
118
|
-
fixedPrice: number | null;
|
|
119
|
-
hourlyRate: number | null;
|
|
120
120
|
numHours: number | null;
|
|
121
121
|
totalBilled: number | null;
|
|
122
122
|
}>;
|
|
@@ -139,23 +139,23 @@ export declare const metadataSchema: z.ZodObject<{
|
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
140
|
hours: string | null;
|
|
141
141
|
duration: string | null;
|
|
142
|
-
|
|
143
|
-
fixedPrice: number | null;
|
|
142
|
+
experienceLevel: string | null;
|
|
144
143
|
hourlyRate: {
|
|
145
144
|
max: number | null;
|
|
146
145
|
min: number | null;
|
|
147
146
|
} | null;
|
|
148
|
-
|
|
147
|
+
paymentType: string | null;
|
|
148
|
+
fixedPrice: number | null;
|
|
149
149
|
}, {
|
|
150
150
|
hours: string | null;
|
|
151
151
|
duration: string | null;
|
|
152
|
-
|
|
153
|
-
fixedPrice: number | null;
|
|
152
|
+
experienceLevel: string | null;
|
|
154
153
|
hourlyRate: {
|
|
155
154
|
max: number | null;
|
|
156
155
|
min: number | null;
|
|
157
156
|
} | null;
|
|
158
|
-
|
|
157
|
+
paymentType: string | null;
|
|
158
|
+
fixedPrice: number | null;
|
|
159
159
|
}>;
|
|
160
160
|
export declare const upworkJobSchema: z.ZodObject<{
|
|
161
161
|
id: z.ZodNullable<z.ZodString>;
|
|
@@ -196,23 +196,23 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
196
196
|
}, "strip", z.ZodTypeAny, {
|
|
197
197
|
hours: string | null;
|
|
198
198
|
duration: string | null;
|
|
199
|
-
|
|
200
|
-
fixedPrice: number | null;
|
|
199
|
+
experienceLevel: string | null;
|
|
201
200
|
hourlyRate: {
|
|
202
201
|
max: number | null;
|
|
203
202
|
min: number | null;
|
|
204
203
|
} | null;
|
|
205
|
-
|
|
204
|
+
paymentType: string | null;
|
|
205
|
+
fixedPrice: number | null;
|
|
206
206
|
}, {
|
|
207
207
|
hours: string | null;
|
|
208
208
|
duration: string | null;
|
|
209
|
-
|
|
210
|
-
fixedPrice: number | null;
|
|
209
|
+
experienceLevel: string | null;
|
|
211
210
|
hourlyRate: {
|
|
212
211
|
max: number | null;
|
|
213
212
|
min: number | null;
|
|
214
213
|
} | null;
|
|
215
|
-
|
|
214
|
+
paymentType: string | null;
|
|
215
|
+
fixedPrice: number | null;
|
|
216
216
|
}>>;
|
|
217
217
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
218
218
|
isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -304,6 +304,9 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
304
304
|
numHours: z.ZodNullable<z.ZodNumber>;
|
|
305
305
|
totalBilled: z.ZodNullable<z.ZodNumber>;
|
|
306
306
|
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
hourlyRate: number | null;
|
|
308
|
+
paymentType: string | null;
|
|
309
|
+
fixedPrice: number | null;
|
|
307
310
|
jobTitle: string | null;
|
|
308
311
|
freelancerName: string | null;
|
|
309
312
|
freelancerRating: number | null;
|
|
@@ -311,12 +314,12 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
311
314
|
clientFeedback: string | null;
|
|
312
315
|
clientFeedbackRating: number | null;
|
|
313
316
|
dateRange: string | null;
|
|
314
|
-
paymentType: string | null;
|
|
315
|
-
fixedPrice: number | null;
|
|
316
|
-
hourlyRate: number | null;
|
|
317
317
|
numHours: number | null;
|
|
318
318
|
totalBilled: number | null;
|
|
319
319
|
}, {
|
|
320
|
+
hourlyRate: number | null;
|
|
321
|
+
paymentType: string | null;
|
|
322
|
+
fixedPrice: number | null;
|
|
320
323
|
jobTitle: string | null;
|
|
321
324
|
freelancerName: string | null;
|
|
322
325
|
freelancerRating: number | null;
|
|
@@ -324,27 +327,26 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
324
327
|
clientFeedback: string | null;
|
|
325
328
|
clientFeedbackRating: number | null;
|
|
326
329
|
dateRange: string | null;
|
|
327
|
-
paymentType: string | null;
|
|
328
|
-
fixedPrice: number | null;
|
|
329
|
-
hourlyRate: number | null;
|
|
330
330
|
numHours: number | null;
|
|
331
331
|
totalBilled: number | null;
|
|
332
332
|
}>, "many">>;
|
|
333
|
+
region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
|
|
333
334
|
}, "strip", z.ZodTypeAny, {
|
|
334
335
|
id: string | null;
|
|
335
336
|
title: string | null;
|
|
336
337
|
metadata: {
|
|
337
338
|
hours: string | null;
|
|
338
339
|
duration: string | null;
|
|
339
|
-
|
|
340
|
-
fixedPrice: number | null;
|
|
340
|
+
experienceLevel: string | null;
|
|
341
341
|
hourlyRate: {
|
|
342
342
|
max: number | null;
|
|
343
343
|
min: number | null;
|
|
344
344
|
} | null;
|
|
345
|
-
|
|
345
|
+
paymentType: string | null;
|
|
346
|
+
fixedPrice: number | null;
|
|
346
347
|
} | null;
|
|
347
348
|
description: string | null;
|
|
349
|
+
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
348
350
|
datetime: number | null;
|
|
349
351
|
createdAt: number | null;
|
|
350
352
|
category: string | null;
|
|
@@ -386,6 +388,9 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
386
388
|
processed: boolean | null;
|
|
387
389
|
isFeatured: boolean | null;
|
|
388
390
|
clientReviews: {
|
|
391
|
+
hourlyRate: number | null;
|
|
392
|
+
paymentType: string | null;
|
|
393
|
+
fixedPrice: number | null;
|
|
389
394
|
jobTitle: string | null;
|
|
390
395
|
freelancerName: string | null;
|
|
391
396
|
freelancerRating: number | null;
|
|
@@ -393,9 +398,6 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
393
398
|
clientFeedback: string | null;
|
|
394
399
|
clientFeedbackRating: number | null;
|
|
395
400
|
dateRange: string | null;
|
|
396
|
-
paymentType: string | null;
|
|
397
|
-
fixedPrice: number | null;
|
|
398
|
-
hourlyRate: number | null;
|
|
399
401
|
numHours: number | null;
|
|
400
402
|
totalBilled: number | null;
|
|
401
403
|
}[] | null;
|
|
@@ -405,15 +407,16 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
405
407
|
metadata: {
|
|
406
408
|
hours: string | null;
|
|
407
409
|
duration: string | null;
|
|
408
|
-
|
|
409
|
-
fixedPrice: number | null;
|
|
410
|
+
experienceLevel: string | null;
|
|
410
411
|
hourlyRate: {
|
|
411
412
|
max: number | null;
|
|
412
413
|
min: number | null;
|
|
413
414
|
} | null;
|
|
414
|
-
|
|
415
|
+
paymentType: string | null;
|
|
416
|
+
fixedPrice: number | null;
|
|
415
417
|
} | null;
|
|
416
418
|
description: string | null;
|
|
419
|
+
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
417
420
|
datetime: number | null;
|
|
418
421
|
createdAt: number | null;
|
|
419
422
|
category: string | null;
|
|
@@ -455,6 +458,9 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
455
458
|
processed: boolean | null;
|
|
456
459
|
isFeatured: boolean | null;
|
|
457
460
|
clientReviews: {
|
|
461
|
+
hourlyRate: number | null;
|
|
462
|
+
paymentType: string | null;
|
|
463
|
+
fixedPrice: number | null;
|
|
458
464
|
jobTitle: string | null;
|
|
459
465
|
freelancerName: string | null;
|
|
460
466
|
freelancerRating: number | null;
|
|
@@ -462,9 +468,6 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
462
468
|
clientFeedback: string | null;
|
|
463
469
|
clientFeedbackRating: number | null;
|
|
464
470
|
dateRange: string | null;
|
|
465
|
-
paymentType: string | null;
|
|
466
|
-
fixedPrice: number | null;
|
|
467
|
-
hourlyRate: number | null;
|
|
468
471
|
numHours: number | null;
|
|
469
472
|
totalBilled: number | null;
|
|
470
473
|
}[] | null;
|
|
@@ -508,23 +511,23 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
508
511
|
}, "strip", z.ZodTypeAny, {
|
|
509
512
|
hours: string | null;
|
|
510
513
|
duration: string | null;
|
|
511
|
-
|
|
512
|
-
fixedPrice: number | null;
|
|
514
|
+
experienceLevel: string | null;
|
|
513
515
|
hourlyRate: {
|
|
514
516
|
max: number | null;
|
|
515
517
|
min: number | null;
|
|
516
518
|
} | null;
|
|
517
|
-
|
|
519
|
+
paymentType: string | null;
|
|
520
|
+
fixedPrice: number | null;
|
|
518
521
|
}, {
|
|
519
522
|
hours: string | null;
|
|
520
523
|
duration: string | null;
|
|
521
|
-
|
|
522
|
-
fixedPrice: number | null;
|
|
524
|
+
experienceLevel: string | null;
|
|
523
525
|
hourlyRate: {
|
|
524
526
|
max: number | null;
|
|
525
527
|
min: number | null;
|
|
526
528
|
} | null;
|
|
527
|
-
|
|
529
|
+
paymentType: string | null;
|
|
530
|
+
fixedPrice: number | null;
|
|
528
531
|
}>>;
|
|
529
532
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
530
533
|
isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -616,6 +619,9 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
616
619
|
numHours: z.ZodNullable<z.ZodNumber>;
|
|
617
620
|
totalBilled: z.ZodNullable<z.ZodNumber>;
|
|
618
621
|
}, "strip", z.ZodTypeAny, {
|
|
622
|
+
hourlyRate: number | null;
|
|
623
|
+
paymentType: string | null;
|
|
624
|
+
fixedPrice: number | null;
|
|
619
625
|
jobTitle: string | null;
|
|
620
626
|
freelancerName: string | null;
|
|
621
627
|
freelancerRating: number | null;
|
|
@@ -623,12 +629,12 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
623
629
|
clientFeedback: string | null;
|
|
624
630
|
clientFeedbackRating: number | null;
|
|
625
631
|
dateRange: string | null;
|
|
626
|
-
paymentType: string | null;
|
|
627
|
-
fixedPrice: number | null;
|
|
628
|
-
hourlyRate: number | null;
|
|
629
632
|
numHours: number | null;
|
|
630
633
|
totalBilled: number | null;
|
|
631
634
|
}, {
|
|
635
|
+
hourlyRate: number | null;
|
|
636
|
+
paymentType: string | null;
|
|
637
|
+
fixedPrice: number | null;
|
|
632
638
|
jobTitle: string | null;
|
|
633
639
|
freelancerName: string | null;
|
|
634
640
|
freelancerRating: number | null;
|
|
@@ -636,12 +642,10 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
636
642
|
clientFeedback: string | null;
|
|
637
643
|
clientFeedbackRating: number | null;
|
|
638
644
|
dateRange: string | null;
|
|
639
|
-
paymentType: string | null;
|
|
640
|
-
fixedPrice: number | null;
|
|
641
|
-
hourlyRate: number | null;
|
|
642
645
|
numHours: number | null;
|
|
643
646
|
totalBilled: number | null;
|
|
644
647
|
}>, "many">>;
|
|
648
|
+
region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
|
|
645
649
|
}, {
|
|
646
650
|
jobId: z.ZodString;
|
|
647
651
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -696,15 +700,16 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
696
700
|
metadata: {
|
|
697
701
|
hours: string | null;
|
|
698
702
|
duration: string | null;
|
|
699
|
-
|
|
700
|
-
fixedPrice: number | null;
|
|
703
|
+
experienceLevel: string | null;
|
|
701
704
|
hourlyRate: {
|
|
702
705
|
max: number | null;
|
|
703
706
|
min: number | null;
|
|
704
707
|
} | null;
|
|
705
|
-
|
|
708
|
+
paymentType: string | null;
|
|
709
|
+
fixedPrice: number | null;
|
|
706
710
|
} | null;
|
|
707
711
|
description: string | null;
|
|
712
|
+
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
708
713
|
datetime: number | null;
|
|
709
714
|
jobId: string;
|
|
710
715
|
createdAt: number | null;
|
|
@@ -753,6 +758,9 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
753
758
|
processed: boolean | null;
|
|
754
759
|
isFeatured: boolean | null;
|
|
755
760
|
clientReviews: {
|
|
761
|
+
hourlyRate: number | null;
|
|
762
|
+
paymentType: string | null;
|
|
763
|
+
fixedPrice: number | null;
|
|
756
764
|
jobTitle: string | null;
|
|
757
765
|
freelancerName: string | null;
|
|
758
766
|
freelancerRating: number | null;
|
|
@@ -760,9 +768,6 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
760
768
|
clientFeedback: string | null;
|
|
761
769
|
clientFeedbackRating: number | null;
|
|
762
770
|
dateRange: string | null;
|
|
763
|
-
paymentType: string | null;
|
|
764
|
-
fixedPrice: number | null;
|
|
765
|
-
hourlyRate: number | null;
|
|
766
771
|
numHours: number | null;
|
|
767
772
|
totalBilled: number | null;
|
|
768
773
|
}[] | null;
|
|
@@ -790,15 +795,16 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
790
795
|
metadata: {
|
|
791
796
|
hours: string | null;
|
|
792
797
|
duration: string | null;
|
|
793
|
-
|
|
794
|
-
fixedPrice: number | null;
|
|
798
|
+
experienceLevel: string | null;
|
|
795
799
|
hourlyRate: {
|
|
796
800
|
max: number | null;
|
|
797
801
|
min: number | null;
|
|
798
802
|
} | null;
|
|
799
|
-
|
|
803
|
+
paymentType: string | null;
|
|
804
|
+
fixedPrice: number | null;
|
|
800
805
|
} | null;
|
|
801
806
|
description: string | null;
|
|
807
|
+
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
802
808
|
datetime: number | null;
|
|
803
809
|
jobId: string;
|
|
804
810
|
createdAt: number | null;
|
|
@@ -847,6 +853,9 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
847
853
|
processed: boolean | null;
|
|
848
854
|
isFeatured: boolean | null;
|
|
849
855
|
clientReviews: {
|
|
856
|
+
hourlyRate: number | null;
|
|
857
|
+
paymentType: string | null;
|
|
858
|
+
fixedPrice: number | null;
|
|
850
859
|
jobTitle: string | null;
|
|
851
860
|
freelancerName: string | null;
|
|
852
861
|
freelancerRating: number | null;
|
|
@@ -854,9 +863,6 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
854
863
|
clientFeedback: string | null;
|
|
855
864
|
clientFeedbackRating: number | null;
|
|
856
865
|
dateRange: string | null;
|
|
857
|
-
paymentType: string | null;
|
|
858
|
-
fixedPrice: number | null;
|
|
859
|
-
hourlyRate: number | null;
|
|
860
866
|
numHours: number | null;
|
|
861
867
|
totalBilled: number | null;
|
|
862
868
|
}[] | null;
|
|
@@ -935,23 +941,23 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
935
941
|
}, "strip", z.ZodTypeAny, {
|
|
936
942
|
hours: string | null;
|
|
937
943
|
duration: string | null;
|
|
938
|
-
|
|
939
|
-
fixedPrice: number | null;
|
|
944
|
+
experienceLevel: string | null;
|
|
940
945
|
hourlyRate: {
|
|
941
946
|
max: number | null;
|
|
942
947
|
min: number | null;
|
|
943
948
|
} | null;
|
|
944
|
-
|
|
949
|
+
paymentType: string | null;
|
|
950
|
+
fixedPrice: number | null;
|
|
945
951
|
}, {
|
|
946
952
|
hours: string | null;
|
|
947
953
|
duration: string | null;
|
|
948
|
-
|
|
949
|
-
fixedPrice: number | null;
|
|
954
|
+
experienceLevel: string | null;
|
|
950
955
|
hourlyRate: {
|
|
951
956
|
max: number | null;
|
|
952
957
|
min: number | null;
|
|
953
958
|
} | null;
|
|
954
|
-
|
|
959
|
+
paymentType: string | null;
|
|
960
|
+
fixedPrice: number | null;
|
|
955
961
|
}>>;
|
|
956
962
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
957
963
|
isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -1043,6 +1049,9 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1043
1049
|
numHours: z.ZodNullable<z.ZodNumber>;
|
|
1044
1050
|
totalBilled: z.ZodNullable<z.ZodNumber>;
|
|
1045
1051
|
}, "strip", z.ZodTypeAny, {
|
|
1052
|
+
hourlyRate: number | null;
|
|
1053
|
+
paymentType: string | null;
|
|
1054
|
+
fixedPrice: number | null;
|
|
1046
1055
|
jobTitle: string | null;
|
|
1047
1056
|
freelancerName: string | null;
|
|
1048
1057
|
freelancerRating: number | null;
|
|
@@ -1050,12 +1059,12 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1050
1059
|
clientFeedback: string | null;
|
|
1051
1060
|
clientFeedbackRating: number | null;
|
|
1052
1061
|
dateRange: string | null;
|
|
1053
|
-
paymentType: string | null;
|
|
1054
|
-
fixedPrice: number | null;
|
|
1055
|
-
hourlyRate: number | null;
|
|
1056
1062
|
numHours: number | null;
|
|
1057
1063
|
totalBilled: number | null;
|
|
1058
1064
|
}, {
|
|
1065
|
+
hourlyRate: number | null;
|
|
1066
|
+
paymentType: string | null;
|
|
1067
|
+
fixedPrice: number | null;
|
|
1059
1068
|
jobTitle: string | null;
|
|
1060
1069
|
freelancerName: string | null;
|
|
1061
1070
|
freelancerRating: number | null;
|
|
@@ -1063,12 +1072,10 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1063
1072
|
clientFeedback: string | null;
|
|
1064
1073
|
clientFeedbackRating: number | null;
|
|
1065
1074
|
dateRange: string | null;
|
|
1066
|
-
paymentType: string | null;
|
|
1067
|
-
fixedPrice: number | null;
|
|
1068
|
-
hourlyRate: number | null;
|
|
1069
1075
|
numHours: number | null;
|
|
1070
1076
|
totalBilled: number | null;
|
|
1071
1077
|
}>, "many">>;
|
|
1078
|
+
region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
|
|
1072
1079
|
}, {
|
|
1073
1080
|
jobId: z.ZodString;
|
|
1074
1081
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1123,15 +1130,16 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1123
1130
|
metadata: {
|
|
1124
1131
|
hours: string | null;
|
|
1125
1132
|
duration: string | null;
|
|
1126
|
-
|
|
1127
|
-
fixedPrice: number | null;
|
|
1133
|
+
experienceLevel: string | null;
|
|
1128
1134
|
hourlyRate: {
|
|
1129
1135
|
max: number | null;
|
|
1130
1136
|
min: number | null;
|
|
1131
1137
|
} | null;
|
|
1132
|
-
|
|
1138
|
+
paymentType: string | null;
|
|
1139
|
+
fixedPrice: number | null;
|
|
1133
1140
|
} | null;
|
|
1134
1141
|
description: string | null;
|
|
1142
|
+
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
1135
1143
|
datetime: number | null;
|
|
1136
1144
|
jobId: string;
|
|
1137
1145
|
createdAt: number | null;
|
|
@@ -1180,6 +1188,9 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1180
1188
|
processed: boolean | null;
|
|
1181
1189
|
isFeatured: boolean | null;
|
|
1182
1190
|
clientReviews: {
|
|
1191
|
+
hourlyRate: number | null;
|
|
1192
|
+
paymentType: string | null;
|
|
1193
|
+
fixedPrice: number | null;
|
|
1183
1194
|
jobTitle: string | null;
|
|
1184
1195
|
freelancerName: string | null;
|
|
1185
1196
|
freelancerRating: number | null;
|
|
@@ -1187,9 +1198,6 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1187
1198
|
clientFeedback: string | null;
|
|
1188
1199
|
clientFeedbackRating: number | null;
|
|
1189
1200
|
dateRange: string | null;
|
|
1190
|
-
paymentType: string | null;
|
|
1191
|
-
fixedPrice: number | null;
|
|
1192
|
-
hourlyRate: number | null;
|
|
1193
1201
|
numHours: number | null;
|
|
1194
1202
|
totalBilled: number | null;
|
|
1195
1203
|
}[] | null;
|
|
@@ -1217,15 +1225,16 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1217
1225
|
metadata: {
|
|
1218
1226
|
hours: string | null;
|
|
1219
1227
|
duration: string | null;
|
|
1220
|
-
|
|
1221
|
-
fixedPrice: number | null;
|
|
1228
|
+
experienceLevel: string | null;
|
|
1222
1229
|
hourlyRate: {
|
|
1223
1230
|
max: number | null;
|
|
1224
1231
|
min: number | null;
|
|
1225
1232
|
} | null;
|
|
1226
|
-
|
|
1233
|
+
paymentType: string | null;
|
|
1234
|
+
fixedPrice: number | null;
|
|
1227
1235
|
} | null;
|
|
1228
1236
|
description: string | null;
|
|
1237
|
+
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
1229
1238
|
datetime: number | null;
|
|
1230
1239
|
jobId: string;
|
|
1231
1240
|
createdAt: number | null;
|
|
@@ -1274,6 +1283,9 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1274
1283
|
processed: boolean | null;
|
|
1275
1284
|
isFeatured: boolean | null;
|
|
1276
1285
|
clientReviews: {
|
|
1286
|
+
hourlyRate: number | null;
|
|
1287
|
+
paymentType: string | null;
|
|
1288
|
+
fixedPrice: number | null;
|
|
1277
1289
|
jobTitle: string | null;
|
|
1278
1290
|
freelancerName: string | null;
|
|
1279
1291
|
freelancerRating: number | null;
|
|
@@ -1281,9 +1293,6 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1281
1293
|
clientFeedback: string | null;
|
|
1282
1294
|
clientFeedbackRating: number | null;
|
|
1283
1295
|
dateRange: string | null;
|
|
1284
|
-
paymentType: string | null;
|
|
1285
|
-
fixedPrice: number | null;
|
|
1286
|
-
hourlyRate: number | null;
|
|
1287
1296
|
numHours: number | null;
|
|
1288
1297
|
totalBilled: number | null;
|
|
1289
1298
|
}[] | null;
|
|
@@ -1316,15 +1325,16 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1316
1325
|
metadata: {
|
|
1317
1326
|
hours: string | null;
|
|
1318
1327
|
duration: string | null;
|
|
1319
|
-
|
|
1320
|
-
fixedPrice: number | null;
|
|
1328
|
+
experienceLevel: string | null;
|
|
1321
1329
|
hourlyRate: {
|
|
1322
1330
|
max: number | null;
|
|
1323
1331
|
min: number | null;
|
|
1324
1332
|
} | null;
|
|
1325
|
-
|
|
1333
|
+
paymentType: string | null;
|
|
1334
|
+
fixedPrice: number | null;
|
|
1326
1335
|
} | null;
|
|
1327
1336
|
description: string | null;
|
|
1337
|
+
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
1328
1338
|
datetime: number | null;
|
|
1329
1339
|
jobId: string;
|
|
1330
1340
|
createdAt: number | null;
|
|
@@ -1373,6 +1383,9 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1373
1383
|
processed: boolean | null;
|
|
1374
1384
|
isFeatured: boolean | null;
|
|
1375
1385
|
clientReviews: {
|
|
1386
|
+
hourlyRate: number | null;
|
|
1387
|
+
paymentType: string | null;
|
|
1388
|
+
fixedPrice: number | null;
|
|
1376
1389
|
jobTitle: string | null;
|
|
1377
1390
|
freelancerName: string | null;
|
|
1378
1391
|
freelancerRating: number | null;
|
|
@@ -1380,9 +1393,6 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1380
1393
|
clientFeedback: string | null;
|
|
1381
1394
|
clientFeedbackRating: number | null;
|
|
1382
1395
|
dateRange: string | null;
|
|
1383
|
-
paymentType: string | null;
|
|
1384
|
-
fixedPrice: number | null;
|
|
1385
|
-
hourlyRate: number | null;
|
|
1386
1396
|
numHours: number | null;
|
|
1387
1397
|
totalBilled: number | null;
|
|
1388
1398
|
}[] | null;
|
|
@@ -1415,15 +1425,16 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1415
1425
|
metadata: {
|
|
1416
1426
|
hours: string | null;
|
|
1417
1427
|
duration: string | null;
|
|
1418
|
-
|
|
1419
|
-
fixedPrice: number | null;
|
|
1428
|
+
experienceLevel: string | null;
|
|
1420
1429
|
hourlyRate: {
|
|
1421
1430
|
max: number | null;
|
|
1422
1431
|
min: number | null;
|
|
1423
1432
|
} | null;
|
|
1424
|
-
|
|
1433
|
+
paymentType: string | null;
|
|
1434
|
+
fixedPrice: number | null;
|
|
1425
1435
|
} | null;
|
|
1426
1436
|
description: string | null;
|
|
1437
|
+
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
1427
1438
|
datetime: number | null;
|
|
1428
1439
|
jobId: string;
|
|
1429
1440
|
createdAt: number | null;
|
|
@@ -1472,6 +1483,9 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1472
1483
|
processed: boolean | null;
|
|
1473
1484
|
isFeatured: boolean | null;
|
|
1474
1485
|
clientReviews: {
|
|
1486
|
+
hourlyRate: number | null;
|
|
1487
|
+
paymentType: string | null;
|
|
1488
|
+
fixedPrice: number | null;
|
|
1475
1489
|
jobTitle: string | null;
|
|
1476
1490
|
freelancerName: string | null;
|
|
1477
1491
|
freelancerRating: number | null;
|
|
@@ -1479,9 +1493,6 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1479
1493
|
clientFeedback: string | null;
|
|
1480
1494
|
clientFeedbackRating: number | null;
|
|
1481
1495
|
dateRange: string | null;
|
|
1482
|
-
paymentType: string | null;
|
|
1483
|
-
fixedPrice: number | null;
|
|
1484
|
-
hourlyRate: number | null;
|
|
1485
1496
|
numHours: number | null;
|
|
1486
1497
|
totalBilled: number | null;
|
|
1487
1498
|
}[] | null;
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const lead_note_1 = require("./lead-note");
|
|
6
6
|
const lead_status_1 = require("./lead-status");
|
|
7
7
|
const proposal_1 = require("../ai/proposal");
|
|
8
|
+
const scraper_1 = require("../scraper");
|
|
8
9
|
exports.jobSkillsSchema = zod_1.z.object({
|
|
9
10
|
name: zod_1.z.string(),
|
|
10
11
|
});
|
|
@@ -81,6 +82,7 @@ exports.upworkJobSchema = zod_1.z.object({
|
|
|
81
82
|
processed: (0, zod_1.boolean)().nullable(),
|
|
82
83
|
isFeatured: (0, zod_1.boolean)().nullable(),
|
|
83
84
|
clientReviews: zod_1.z.array(exports.clientReviewSchema).nullable(),
|
|
85
|
+
region: scraper_1.regionSchema.nullable(),
|
|
84
86
|
});
|
|
85
87
|
exports.leadSchema = exports.upworkJobSchema.extend({
|
|
86
88
|
jobId: zod_1.z.string(),
|
|
@@ -6,12 +6,12 @@ export declare const scrapePayloadSchema: z.ZodObject<{
|
|
|
6
6
|
password: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
username: string;
|
|
9
|
-
password: string;
|
|
10
9
|
latestJobsUrls: string[];
|
|
11
10
|
cookies: any[];
|
|
11
|
+
password: string;
|
|
12
12
|
}, {
|
|
13
13
|
username: string;
|
|
14
|
-
password: string;
|
|
15
14
|
latestJobsUrls: string[];
|
|
16
15
|
cookies: any[];
|
|
16
|
+
password: string;
|
|
17
17
|
}>;
|