lancer-shared 1.0.28 → 1.0.30

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.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from "zod";
2
2
  export declare const jobSkillsSchema: z.ZodObject<{
3
3
  name: z.ZodString;
4
4
  }, "strip", z.ZodTypeAny, {
@@ -12,18 +12,21 @@ export declare const vendorQualificationSchema: z.ZodObject<{
12
12
  englishLevel: z.ZodNullable<z.ZodString>;
13
13
  minimumEarnings: z.ZodNullable<z.ZodNumber>;
14
14
  jobSuccessScore: z.ZodNullable<z.ZodString>;
15
+ includeRisingTalent: z.ZodNullable<z.ZodString>;
15
16
  }, "strip", z.ZodTypeAny, {
16
17
  location: string | null;
17
18
  talentType: "unspecified" | "Agency" | "Independent" | null;
18
19
  englishLevel: string | null;
19
20
  minimumEarnings: number | null;
20
21
  jobSuccessScore: string | null;
22
+ includeRisingTalent: string | null;
21
23
  }, {
22
24
  location: string | null;
23
25
  talentType: "unspecified" | "Agency" | "Independent" | null;
24
26
  englishLevel: string | null;
25
27
  minimumEarnings: number | null;
26
28
  jobSuccessScore: string | null;
29
+ includeRisingTalent: string | null;
27
30
  }>;
28
31
  export declare const clientInfoSchema: z.ZodObject<{
29
32
  isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
@@ -74,6 +77,46 @@ export declare const clientInfoSchema: z.ZodObject<{
74
77
  companySize: string | null;
75
78
  enterpriseClient: boolean | null;
76
79
  }>;
80
+ export declare const clientReviewSchema: z.ZodObject<{
81
+ jobTitle: z.ZodNullable<z.ZodString>;
82
+ freelancerName: z.ZodNullable<z.ZodString>;
83
+ freelancerRating: z.ZodNullable<z.ZodNumber>;
84
+ freelancerFeedback: z.ZodNullable<z.ZodString>;
85
+ clientFeedback: z.ZodNullable<z.ZodString>;
86
+ clientFeedbackRating: z.ZodNullable<z.ZodNumber>;
87
+ dateRange: z.ZodNullable<z.ZodString>;
88
+ paymentType: z.ZodNullable<z.ZodString>;
89
+ fixedPrice: z.ZodNullable<z.ZodNumber>;
90
+ hourlyRate: z.ZodNullable<z.ZodNumber>;
91
+ numHours: z.ZodNullable<z.ZodNumber>;
92
+ totalBilled: z.ZodNullable<z.ZodNumber>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ jobTitle: string | null;
95
+ freelancerName: string | null;
96
+ freelancerRating: number | null;
97
+ freelancerFeedback: string | null;
98
+ clientFeedback: string | null;
99
+ clientFeedbackRating: number | null;
100
+ dateRange: string | null;
101
+ paymentType: string | null;
102
+ fixedPrice: number | null;
103
+ hourlyRate: number | null;
104
+ numHours: number | null;
105
+ totalBilled: number | null;
106
+ }, {
107
+ jobTitle: string | null;
108
+ freelancerName: string | null;
109
+ freelancerRating: number | null;
110
+ freelancerFeedback: string | null;
111
+ clientFeedback: string | null;
112
+ clientFeedbackRating: number | null;
113
+ dateRange: string | null;
114
+ paymentType: string | null;
115
+ fixedPrice: number | null;
116
+ hourlyRate: number | null;
117
+ numHours: number | null;
118
+ totalBilled: number | null;
119
+ }>;
77
120
  export declare const metadataSchema: z.ZodObject<{
78
121
  hours: z.ZodNullable<z.ZodString>;
79
122
  duration: z.ZodNullable<z.ZodString>;
@@ -93,23 +136,23 @@ export declare const metadataSchema: z.ZodObject<{
93
136
  }, "strip", z.ZodTypeAny, {
94
137
  hours: string | null;
95
138
  duration: string | null;
96
- experienceLevel: string | null;
139
+ paymentType: string | null;
140
+ fixedPrice: number | null;
97
141
  hourlyRate: {
98
142
  max: number | null;
99
143
  min: number | null;
100
144
  } | null;
101
- paymentType: string | null;
102
- fixedPrice: number | null;
145
+ experienceLevel: string | null;
103
146
  }, {
104
147
  hours: string | null;
105
148
  duration: string | null;
106
- experienceLevel: string | null;
149
+ paymentType: string | null;
150
+ fixedPrice: number | null;
107
151
  hourlyRate: {
108
152
  max: number | null;
109
153
  min: number | null;
110
154
  } | null;
111
- paymentType: string | null;
112
- fixedPrice: number | null;
155
+ experienceLevel: string | null;
113
156
  }>;
114
157
  export declare const upworkJobSchema: z.ZodObject<{
115
158
  id: z.ZodNullable<z.ZodString>;
@@ -150,23 +193,23 @@ export declare const upworkJobSchema: z.ZodObject<{
150
193
  }, "strip", z.ZodTypeAny, {
151
194
  hours: string | null;
152
195
  duration: string | null;
153
- experienceLevel: string | null;
196
+ paymentType: string | null;
197
+ fixedPrice: number | null;
154
198
  hourlyRate: {
155
199
  max: number | null;
156
200
  min: number | null;
157
201
  } | null;
158
- paymentType: string | null;
159
- fixedPrice: number | null;
202
+ experienceLevel: string | null;
160
203
  }, {
161
204
  hours: string | null;
162
205
  duration: string | null;
163
- experienceLevel: string | null;
206
+ paymentType: string | null;
207
+ fixedPrice: number | null;
164
208
  hourlyRate: {
165
209
  max: number | null;
166
210
  min: number | null;
167
211
  } | null;
168
- paymentType: string | null;
169
- fixedPrice: number | null;
212
+ experienceLevel: string | null;
170
213
  }>>;
171
214
  clientInfo: z.ZodNullable<z.ZodObject<{
172
215
  isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
@@ -223,34 +266,77 @@ export declare const upworkJobSchema: z.ZodObject<{
223
266
  englishLevel: z.ZodNullable<z.ZodString>;
224
267
  minimumEarnings: z.ZodNullable<z.ZodNumber>;
225
268
  jobSuccessScore: z.ZodNullable<z.ZodString>;
269
+ includeRisingTalent: z.ZodNullable<z.ZodString>;
226
270
  }, "strip", z.ZodTypeAny, {
227
271
  location: string | null;
228
272
  talentType: "unspecified" | "Agency" | "Independent" | null;
229
273
  englishLevel: string | null;
230
274
  minimumEarnings: number | null;
231
275
  jobSuccessScore: string | null;
276
+ includeRisingTalent: string | null;
232
277
  }, {
233
278
  location: string | null;
234
279
  talentType: "unspecified" | "Agency" | "Independent" | null;
235
280
  englishLevel: string | null;
236
281
  minimumEarnings: number | null;
237
282
  jobSuccessScore: string | null;
283
+ includeRisingTalent: string | null;
238
284
  }>>;
239
285
  processed: z.ZodNullable<z.ZodBoolean>;
240
286
  isFeatured: z.ZodNullable<z.ZodBoolean>;
287
+ clientReviews: z.ZodNullable<z.ZodArray<z.ZodObject<{
288
+ jobTitle: z.ZodNullable<z.ZodString>;
289
+ freelancerName: z.ZodNullable<z.ZodString>;
290
+ freelancerRating: z.ZodNullable<z.ZodNumber>;
291
+ freelancerFeedback: z.ZodNullable<z.ZodString>;
292
+ clientFeedback: z.ZodNullable<z.ZodString>;
293
+ clientFeedbackRating: z.ZodNullable<z.ZodNumber>;
294
+ dateRange: z.ZodNullable<z.ZodString>;
295
+ paymentType: z.ZodNullable<z.ZodString>;
296
+ fixedPrice: z.ZodNullable<z.ZodNumber>;
297
+ hourlyRate: z.ZodNullable<z.ZodNumber>;
298
+ numHours: z.ZodNullable<z.ZodNumber>;
299
+ totalBilled: z.ZodNullable<z.ZodNumber>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ jobTitle: string | null;
302
+ freelancerName: string | null;
303
+ freelancerRating: number | null;
304
+ freelancerFeedback: string | null;
305
+ clientFeedback: string | null;
306
+ clientFeedbackRating: number | null;
307
+ dateRange: string | null;
308
+ paymentType: string | null;
309
+ fixedPrice: number | null;
310
+ hourlyRate: number | null;
311
+ numHours: number | null;
312
+ totalBilled: number | null;
313
+ }, {
314
+ jobTitle: string | null;
315
+ freelancerName: string | null;
316
+ freelancerRating: number | null;
317
+ freelancerFeedback: string | null;
318
+ clientFeedback: string | null;
319
+ clientFeedbackRating: number | null;
320
+ dateRange: string | null;
321
+ paymentType: string | null;
322
+ fixedPrice: number | null;
323
+ hourlyRate: number | null;
324
+ numHours: number | null;
325
+ totalBilled: number | null;
326
+ }>, "many">>;
241
327
  }, "strip", z.ZodTypeAny, {
242
328
  id: string | null;
243
329
  title: string | null;
244
330
  metadata: {
245
331
  hours: string | null;
246
332
  duration: string | null;
247
- experienceLevel: string | null;
333
+ paymentType: string | null;
334
+ fixedPrice: number | null;
248
335
  hourlyRate: {
249
336
  max: number | null;
250
337
  min: number | null;
251
338
  } | null;
252
- paymentType: string | null;
253
- fixedPrice: number | null;
339
+ experienceLevel: string | null;
254
340
  } | null;
255
341
  description: string | null;
256
342
  datetime: number | null;
@@ -288,22 +374,37 @@ export declare const upworkJobSchema: z.ZodObject<{
288
374
  englishLevel: string | null;
289
375
  minimumEarnings: number | null;
290
376
  jobSuccessScore: string | null;
377
+ includeRisingTalent: string | null;
291
378
  } | null;
292
379
  processed: boolean | null;
293
380
  isFeatured: boolean | null;
381
+ clientReviews: {
382
+ jobTitle: string | null;
383
+ freelancerName: string | null;
384
+ freelancerRating: number | null;
385
+ freelancerFeedback: string | null;
386
+ clientFeedback: string | null;
387
+ clientFeedbackRating: number | null;
388
+ dateRange: string | null;
389
+ paymentType: string | null;
390
+ fixedPrice: number | null;
391
+ hourlyRate: number | null;
392
+ numHours: number | null;
393
+ totalBilled: number | null;
394
+ }[] | null;
294
395
  }, {
295
396
  id: string | null;
296
397
  title: string | null;
297
398
  metadata: {
298
399
  hours: string | null;
299
400
  duration: string | null;
300
- experienceLevel: string | null;
401
+ paymentType: string | null;
402
+ fixedPrice: number | null;
301
403
  hourlyRate: {
302
404
  max: number | null;
303
405
  min: number | null;
304
406
  } | null;
305
- paymentType: string | null;
306
- fixedPrice: number | null;
407
+ experienceLevel: string | null;
307
408
  } | null;
308
409
  description: string | null;
309
410
  datetime: number | null;
@@ -341,9 +442,24 @@ export declare const upworkJobSchema: z.ZodObject<{
341
442
  englishLevel: string | null;
342
443
  minimumEarnings: number | null;
343
444
  jobSuccessScore: string | null;
445
+ includeRisingTalent: string | null;
344
446
  } | null;
345
447
  processed: boolean | null;
346
448
  isFeatured: boolean | null;
449
+ clientReviews: {
450
+ jobTitle: string | null;
451
+ freelancerName: string | null;
452
+ freelancerRating: number | null;
453
+ freelancerFeedback: string | null;
454
+ clientFeedback: string | null;
455
+ clientFeedbackRating: number | null;
456
+ dateRange: string | null;
457
+ paymentType: string | null;
458
+ fixedPrice: number | null;
459
+ hourlyRate: number | null;
460
+ numHours: number | null;
461
+ totalBilled: number | null;
462
+ }[] | null;
347
463
  }>;
348
464
  export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
349
465
  id: z.ZodNullable<z.ZodString>;
@@ -384,23 +500,23 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
384
500
  }, "strip", z.ZodTypeAny, {
385
501
  hours: string | null;
386
502
  duration: string | null;
387
- experienceLevel: string | null;
503
+ paymentType: string | null;
504
+ fixedPrice: number | null;
388
505
  hourlyRate: {
389
506
  max: number | null;
390
507
  min: number | null;
391
508
  } | null;
392
- paymentType: string | null;
393
- fixedPrice: number | null;
509
+ experienceLevel: string | null;
394
510
  }, {
395
511
  hours: string | null;
396
512
  duration: string | null;
397
- experienceLevel: string | null;
513
+ paymentType: string | null;
514
+ fixedPrice: number | null;
398
515
  hourlyRate: {
399
516
  max: number | null;
400
517
  min: number | null;
401
518
  } | null;
402
- paymentType: string | null;
403
- fixedPrice: number | null;
519
+ experienceLevel: string | null;
404
520
  }>>;
405
521
  clientInfo: z.ZodNullable<z.ZodObject<{
406
522
  isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
@@ -457,21 +573,64 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
457
573
  englishLevel: z.ZodNullable<z.ZodString>;
458
574
  minimumEarnings: z.ZodNullable<z.ZodNumber>;
459
575
  jobSuccessScore: z.ZodNullable<z.ZodString>;
576
+ includeRisingTalent: z.ZodNullable<z.ZodString>;
460
577
  }, "strip", z.ZodTypeAny, {
461
578
  location: string | null;
462
579
  talentType: "unspecified" | "Agency" | "Independent" | null;
463
580
  englishLevel: string | null;
464
581
  minimumEarnings: number | null;
465
582
  jobSuccessScore: string | null;
583
+ includeRisingTalent: string | null;
466
584
  }, {
467
585
  location: string | null;
468
586
  talentType: "unspecified" | "Agency" | "Independent" | null;
469
587
  englishLevel: string | null;
470
588
  minimumEarnings: number | null;
471
589
  jobSuccessScore: string | null;
590
+ includeRisingTalent: string | null;
472
591
  }>>;
473
592
  processed: z.ZodNullable<z.ZodBoolean>;
474
593
  isFeatured: z.ZodNullable<z.ZodBoolean>;
594
+ clientReviews: z.ZodNullable<z.ZodArray<z.ZodObject<{
595
+ jobTitle: z.ZodNullable<z.ZodString>;
596
+ freelancerName: z.ZodNullable<z.ZodString>;
597
+ freelancerRating: z.ZodNullable<z.ZodNumber>;
598
+ freelancerFeedback: z.ZodNullable<z.ZodString>;
599
+ clientFeedback: z.ZodNullable<z.ZodString>;
600
+ clientFeedbackRating: z.ZodNullable<z.ZodNumber>;
601
+ dateRange: z.ZodNullable<z.ZodString>;
602
+ paymentType: z.ZodNullable<z.ZodString>;
603
+ fixedPrice: z.ZodNullable<z.ZodNumber>;
604
+ hourlyRate: z.ZodNullable<z.ZodNumber>;
605
+ numHours: z.ZodNullable<z.ZodNumber>;
606
+ totalBilled: z.ZodNullable<z.ZodNumber>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ jobTitle: string | null;
609
+ freelancerName: string | null;
610
+ freelancerRating: number | null;
611
+ freelancerFeedback: string | null;
612
+ clientFeedback: string | null;
613
+ clientFeedbackRating: number | null;
614
+ dateRange: string | null;
615
+ paymentType: string | null;
616
+ fixedPrice: number | null;
617
+ hourlyRate: number | null;
618
+ numHours: number | null;
619
+ totalBilled: number | null;
620
+ }, {
621
+ jobTitle: string | null;
622
+ freelancerName: string | null;
623
+ freelancerRating: number | null;
624
+ freelancerFeedback: string | null;
625
+ clientFeedback: string | null;
626
+ clientFeedbackRating: number | null;
627
+ dateRange: string | null;
628
+ paymentType: string | null;
629
+ fixedPrice: number | null;
630
+ hourlyRate: number | null;
631
+ numHours: number | null;
632
+ totalBilled: number | null;
633
+ }>, "many">>;
475
634
  }, {
476
635
  jobId: z.ZodString;
477
636
  updatedAt: z.ZodNullable<z.ZodNumber>;
@@ -526,13 +685,13 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
526
685
  metadata: {
527
686
  hours: string | null;
528
687
  duration: string | null;
529
- experienceLevel: string | null;
688
+ paymentType: string | null;
689
+ fixedPrice: number | null;
530
690
  hourlyRate: {
531
691
  max: number | null;
532
692
  min: number | null;
533
693
  } | null;
534
- paymentType: string | null;
535
- fixedPrice: number | null;
694
+ experienceLevel: string | null;
536
695
  } | null;
537
696
  description: string | null;
538
697
  datetime: number | null;
@@ -577,9 +736,24 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
577
736
  englishLevel: string | null;
578
737
  minimumEarnings: number | null;
579
738
  jobSuccessScore: string | null;
739
+ includeRisingTalent: string | null;
580
740
  } | null;
581
741
  processed: boolean | null;
582
742
  isFeatured: boolean | null;
743
+ clientReviews: {
744
+ jobTitle: string | null;
745
+ freelancerName: string | null;
746
+ freelancerRating: number | null;
747
+ freelancerFeedback: string | null;
748
+ clientFeedback: string | null;
749
+ clientFeedbackRating: number | null;
750
+ dateRange: string | null;
751
+ paymentType: string | null;
752
+ fixedPrice: number | null;
753
+ hourlyRate: number | null;
754
+ numHours: number | null;
755
+ totalBilled: number | null;
756
+ }[] | null;
583
757
  suitabilityRating: number | null;
584
758
  suitabilityReason: string | null;
585
759
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
@@ -604,13 +778,13 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
604
778
  metadata: {
605
779
  hours: string | null;
606
780
  duration: string | null;
607
- experienceLevel: string | null;
781
+ paymentType: string | null;
782
+ fixedPrice: number | null;
608
783
  hourlyRate: {
609
784
  max: number | null;
610
785
  min: number | null;
611
786
  } | null;
612
- paymentType: string | null;
613
- fixedPrice: number | null;
787
+ experienceLevel: string | null;
614
788
  } | null;
615
789
  description: string | null;
616
790
  datetime: number | null;
@@ -655,9 +829,24 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
655
829
  englishLevel: string | null;
656
830
  minimumEarnings: number | null;
657
831
  jobSuccessScore: string | null;
832
+ includeRisingTalent: string | null;
658
833
  } | null;
659
834
  processed: boolean | null;
660
835
  isFeatured: boolean | null;
836
+ clientReviews: {
837
+ jobTitle: string | null;
838
+ freelancerName: string | null;
839
+ freelancerRating: number | null;
840
+ freelancerFeedback: string | null;
841
+ clientFeedback: string | null;
842
+ clientFeedbackRating: number | null;
843
+ dateRange: string | null;
844
+ paymentType: string | null;
845
+ fixedPrice: number | null;
846
+ hourlyRate: number | null;
847
+ numHours: number | null;
848
+ totalBilled: number | null;
849
+ }[] | null;
661
850
  suitabilityRating: number | null;
662
851
  suitabilityReason: string | null;
663
852
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
@@ -733,23 +922,23 @@ export declare const leadResponseSchema: z.ZodObject<{
733
922
  }, "strip", z.ZodTypeAny, {
734
923
  hours: string | null;
735
924
  duration: string | null;
736
- experienceLevel: string | null;
925
+ paymentType: string | null;
926
+ fixedPrice: number | null;
737
927
  hourlyRate: {
738
928
  max: number | null;
739
929
  min: number | null;
740
930
  } | null;
741
- paymentType: string | null;
742
- fixedPrice: number | null;
931
+ experienceLevel: string | null;
743
932
  }, {
744
933
  hours: string | null;
745
934
  duration: string | null;
746
- experienceLevel: string | null;
935
+ paymentType: string | null;
936
+ fixedPrice: number | null;
747
937
  hourlyRate: {
748
938
  max: number | null;
749
939
  min: number | null;
750
940
  } | null;
751
- paymentType: string | null;
752
- fixedPrice: number | null;
941
+ experienceLevel: string | null;
753
942
  }>>;
754
943
  clientInfo: z.ZodNullable<z.ZodObject<{
755
944
  isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
@@ -806,21 +995,64 @@ export declare const leadResponseSchema: z.ZodObject<{
806
995
  englishLevel: z.ZodNullable<z.ZodString>;
807
996
  minimumEarnings: z.ZodNullable<z.ZodNumber>;
808
997
  jobSuccessScore: z.ZodNullable<z.ZodString>;
998
+ includeRisingTalent: z.ZodNullable<z.ZodString>;
809
999
  }, "strip", z.ZodTypeAny, {
810
1000
  location: string | null;
811
1001
  talentType: "unspecified" | "Agency" | "Independent" | null;
812
1002
  englishLevel: string | null;
813
1003
  minimumEarnings: number | null;
814
1004
  jobSuccessScore: string | null;
1005
+ includeRisingTalent: string | null;
815
1006
  }, {
816
1007
  location: string | null;
817
1008
  talentType: "unspecified" | "Agency" | "Independent" | null;
818
1009
  englishLevel: string | null;
819
1010
  minimumEarnings: number | null;
820
1011
  jobSuccessScore: string | null;
1012
+ includeRisingTalent: string | null;
821
1013
  }>>;
822
1014
  processed: z.ZodNullable<z.ZodBoolean>;
823
1015
  isFeatured: z.ZodNullable<z.ZodBoolean>;
1016
+ clientReviews: z.ZodNullable<z.ZodArray<z.ZodObject<{
1017
+ jobTitle: z.ZodNullable<z.ZodString>;
1018
+ freelancerName: z.ZodNullable<z.ZodString>;
1019
+ freelancerRating: z.ZodNullable<z.ZodNumber>;
1020
+ freelancerFeedback: z.ZodNullable<z.ZodString>;
1021
+ clientFeedback: z.ZodNullable<z.ZodString>;
1022
+ clientFeedbackRating: z.ZodNullable<z.ZodNumber>;
1023
+ dateRange: z.ZodNullable<z.ZodString>;
1024
+ paymentType: z.ZodNullable<z.ZodString>;
1025
+ fixedPrice: z.ZodNullable<z.ZodNumber>;
1026
+ hourlyRate: z.ZodNullable<z.ZodNumber>;
1027
+ numHours: z.ZodNullable<z.ZodNumber>;
1028
+ totalBilled: z.ZodNullable<z.ZodNumber>;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ jobTitle: string | null;
1031
+ freelancerName: string | null;
1032
+ freelancerRating: number | null;
1033
+ freelancerFeedback: string | null;
1034
+ clientFeedback: string | null;
1035
+ clientFeedbackRating: number | null;
1036
+ dateRange: string | null;
1037
+ paymentType: string | null;
1038
+ fixedPrice: number | null;
1039
+ hourlyRate: number | null;
1040
+ numHours: number | null;
1041
+ totalBilled: number | null;
1042
+ }, {
1043
+ jobTitle: string | null;
1044
+ freelancerName: string | null;
1045
+ freelancerRating: number | null;
1046
+ freelancerFeedback: string | null;
1047
+ clientFeedback: string | null;
1048
+ clientFeedbackRating: number | null;
1049
+ dateRange: string | null;
1050
+ paymentType: string | null;
1051
+ fixedPrice: number | null;
1052
+ hourlyRate: number | null;
1053
+ numHours: number | null;
1054
+ totalBilled: number | null;
1055
+ }>, "many">>;
824
1056
  }, {
825
1057
  jobId: z.ZodString;
826
1058
  updatedAt: z.ZodNullable<z.ZodNumber>;
@@ -875,13 +1107,13 @@ export declare const leadResponseSchema: z.ZodObject<{
875
1107
  metadata: {
876
1108
  hours: string | null;
877
1109
  duration: string | null;
878
- experienceLevel: string | null;
1110
+ paymentType: string | null;
1111
+ fixedPrice: number | null;
879
1112
  hourlyRate: {
880
1113
  max: number | null;
881
1114
  min: number | null;
882
1115
  } | null;
883
- paymentType: string | null;
884
- fixedPrice: number | null;
1116
+ experienceLevel: string | null;
885
1117
  } | null;
886
1118
  description: string | null;
887
1119
  datetime: number | null;
@@ -926,9 +1158,24 @@ export declare const leadResponseSchema: z.ZodObject<{
926
1158
  englishLevel: string | null;
927
1159
  minimumEarnings: number | null;
928
1160
  jobSuccessScore: string | null;
1161
+ includeRisingTalent: string | null;
929
1162
  } | null;
930
1163
  processed: boolean | null;
931
1164
  isFeatured: boolean | null;
1165
+ clientReviews: {
1166
+ jobTitle: string | null;
1167
+ freelancerName: string | null;
1168
+ freelancerRating: number | null;
1169
+ freelancerFeedback: string | null;
1170
+ clientFeedback: string | null;
1171
+ clientFeedbackRating: number | null;
1172
+ dateRange: string | null;
1173
+ paymentType: string | null;
1174
+ fixedPrice: number | null;
1175
+ hourlyRate: number | null;
1176
+ numHours: number | null;
1177
+ totalBilled: number | null;
1178
+ }[] | null;
932
1179
  suitabilityRating: number | null;
933
1180
  suitabilityReason: string | null;
934
1181
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
@@ -953,13 +1200,13 @@ export declare const leadResponseSchema: z.ZodObject<{
953
1200
  metadata: {
954
1201
  hours: string | null;
955
1202
  duration: string | null;
956
- experienceLevel: string | null;
1203
+ paymentType: string | null;
1204
+ fixedPrice: number | null;
957
1205
  hourlyRate: {
958
1206
  max: number | null;
959
1207
  min: number | null;
960
1208
  } | null;
961
- paymentType: string | null;
962
- fixedPrice: number | null;
1209
+ experienceLevel: string | null;
963
1210
  } | null;
964
1211
  description: string | null;
965
1212
  datetime: number | null;
@@ -1004,9 +1251,24 @@ export declare const leadResponseSchema: z.ZodObject<{
1004
1251
  englishLevel: string | null;
1005
1252
  minimumEarnings: number | null;
1006
1253
  jobSuccessScore: string | null;
1254
+ includeRisingTalent: string | null;
1007
1255
  } | null;
1008
1256
  processed: boolean | null;
1009
1257
  isFeatured: boolean | null;
1258
+ clientReviews: {
1259
+ jobTitle: string | null;
1260
+ freelancerName: string | null;
1261
+ freelancerRating: number | null;
1262
+ freelancerFeedback: string | null;
1263
+ clientFeedback: string | null;
1264
+ clientFeedbackRating: number | null;
1265
+ dateRange: string | null;
1266
+ paymentType: string | null;
1267
+ fixedPrice: number | null;
1268
+ hourlyRate: number | null;
1269
+ numHours: number | null;
1270
+ totalBilled: number | null;
1271
+ }[] | null;
1010
1272
  suitabilityRating: number | null;
1011
1273
  suitabilityReason: string | null;
1012
1274
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
@@ -1036,13 +1298,13 @@ export declare const leadResponseSchema: z.ZodObject<{
1036
1298
  metadata: {
1037
1299
  hours: string | null;
1038
1300
  duration: string | null;
1039
- experienceLevel: string | null;
1301
+ paymentType: string | null;
1302
+ fixedPrice: number | null;
1040
1303
  hourlyRate: {
1041
1304
  max: number | null;
1042
1305
  min: number | null;
1043
1306
  } | null;
1044
- paymentType: string | null;
1045
- fixedPrice: number | null;
1307
+ experienceLevel: string | null;
1046
1308
  } | null;
1047
1309
  description: string | null;
1048
1310
  datetime: number | null;
@@ -1087,9 +1349,24 @@ export declare const leadResponseSchema: z.ZodObject<{
1087
1349
  englishLevel: string | null;
1088
1350
  minimumEarnings: number | null;
1089
1351
  jobSuccessScore: string | null;
1352
+ includeRisingTalent: string | null;
1090
1353
  } | null;
1091
1354
  processed: boolean | null;
1092
1355
  isFeatured: boolean | null;
1356
+ clientReviews: {
1357
+ jobTitle: string | null;
1358
+ freelancerName: string | null;
1359
+ freelancerRating: number | null;
1360
+ freelancerFeedback: string | null;
1361
+ clientFeedback: string | null;
1362
+ clientFeedbackRating: number | null;
1363
+ dateRange: string | null;
1364
+ paymentType: string | null;
1365
+ fixedPrice: number | null;
1366
+ hourlyRate: number | null;
1367
+ numHours: number | null;
1368
+ totalBilled: number | null;
1369
+ }[] | null;
1093
1370
  suitabilityRating: number | null;
1094
1371
  suitabilityReason: string | null;
1095
1372
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
@@ -1119,13 +1396,13 @@ export declare const leadResponseSchema: z.ZodObject<{
1119
1396
  metadata: {
1120
1397
  hours: string | null;
1121
1398
  duration: string | null;
1122
- experienceLevel: string | null;
1399
+ paymentType: string | null;
1400
+ fixedPrice: number | null;
1123
1401
  hourlyRate: {
1124
1402
  max: number | null;
1125
1403
  min: number | null;
1126
1404
  } | null;
1127
- paymentType: string | null;
1128
- fixedPrice: number | null;
1405
+ experienceLevel: string | null;
1129
1406
  } | null;
1130
1407
  description: string | null;
1131
1408
  datetime: number | null;
@@ -1170,9 +1447,24 @@ export declare const leadResponseSchema: z.ZodObject<{
1170
1447
  englishLevel: string | null;
1171
1448
  minimumEarnings: number | null;
1172
1449
  jobSuccessScore: string | null;
1450
+ includeRisingTalent: string | null;
1173
1451
  } | null;
1174
1452
  processed: boolean | null;
1175
1453
  isFeatured: boolean | null;
1454
+ clientReviews: {
1455
+ jobTitle: string | null;
1456
+ freelancerName: string | null;
1457
+ freelancerRating: number | null;
1458
+ freelancerFeedback: string | null;
1459
+ clientFeedback: string | null;
1460
+ clientFeedbackRating: number | null;
1461
+ dateRange: string | null;
1462
+ paymentType: string | null;
1463
+ fixedPrice: number | null;
1464
+ hourlyRate: number | null;
1465
+ numHours: number | null;
1466
+ totalBilled: number | null;
1467
+ }[] | null;
1176
1468
  suitabilityRating: number | null;
1177
1469
  suitabilityReason: string | null;
1178
1470
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.leadResponseSchema = exports.jobListItemSchema = exports.leadSchema = exports.upworkJobSchema = exports.metadataSchema = exports.clientInfoSchema = exports.vendorQualificationSchema = exports.jobSkillsSchema = void 0;
3
+ exports.leadResponseSchema = exports.jobListItemSchema = exports.leadSchema = exports.upworkJobSchema = exports.metadataSchema = exports.clientReviewSchema = exports.clientInfoSchema = exports.vendorQualificationSchema = exports.jobSkillsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const lead_note_1 = require("./lead-note");
6
6
  const lead_status_1 = require("./lead-status");
@@ -10,10 +10,11 @@ exports.jobSkillsSchema = zod_1.z.object({
10
10
  });
11
11
  exports.vendorQualificationSchema = zod_1.z.object({
12
12
  location: zod_1.z.string().nullable(),
13
- talentType: zod_1.z.enum(['Agency', 'Independent', 'unspecified']).nullable(),
13
+ talentType: zod_1.z.enum(["Agency", "Independent", "unspecified"]).nullable(),
14
14
  englishLevel: zod_1.z.string().nullable(),
15
15
  minimumEarnings: zod_1.z.number().nullable(),
16
16
  jobSuccessScore: zod_1.z.string().nullable(),
17
+ includeRisingTalent: zod_1.z.string().nullable(),
17
18
  });
18
19
  exports.clientInfoSchema = zod_1.z.object({
19
20
  isPaymentVerified: zod_1.z.boolean().nullable(),
@@ -32,6 +33,20 @@ exports.clientInfoSchema = zod_1.z.object({
32
33
  companySize: zod_1.z.string().nullable(),
33
34
  enterpriseClient: zod_1.z.boolean().nullable(),
34
35
  });
36
+ exports.clientReviewSchema = zod_1.z.object({
37
+ jobTitle: zod_1.z.string().nullable(),
38
+ freelancerName: zod_1.z.string().nullable(),
39
+ freelancerRating: zod_1.z.number().nullable(),
40
+ freelancerFeedback: zod_1.z.string().nullable(),
41
+ clientFeedback: zod_1.z.string().nullable(),
42
+ clientFeedbackRating: zod_1.z.number().nullable(),
43
+ dateRange: zod_1.z.string().nullable(),
44
+ paymentType: zod_1.z.string().nullable(),
45
+ fixedPrice: zod_1.z.number().nullable(),
46
+ hourlyRate: zod_1.z.number().nullable(),
47
+ numHours: zod_1.z.number().nullable(),
48
+ totalBilled: zod_1.z.number().nullable(),
49
+ });
35
50
  exports.metadataSchema = zod_1.z.object({
36
51
  hours: zod_1.z.string().nullable(),
37
52
  duration: zod_1.z.string().nullable(),
@@ -64,6 +79,7 @@ exports.upworkJobSchema = zod_1.z.object({
64
79
  vendorQualifications: exports.vendorQualificationSchema.nullable(),
65
80
  processed: (0, zod_1.boolean)().nullable(),
66
81
  isFeatured: (0, zod_1.boolean)().nullable(),
82
+ clientReviews: zod_1.z.array(exports.clientReviewSchema).nullable(),
67
83
  });
68
84
  exports.leadSchema = exports.upworkJobSchema.extend({
69
85
  jobId: zod_1.z.string(),
@@ -39,23 +39,23 @@ export declare const scrapeResultSchema: z.ZodObject<{
39
39
  }, "strip", z.ZodTypeAny, {
40
40
  hours: string | null;
41
41
  duration: string | null;
42
- experienceLevel: string | null;
42
+ paymentType: string | null;
43
+ fixedPrice: number | null;
43
44
  hourlyRate: {
44
45
  max: number | null;
45
46
  min: number | null;
46
47
  } | null;
47
- paymentType: string | null;
48
- fixedPrice: number | null;
48
+ experienceLevel: string | null;
49
49
  }, {
50
50
  hours: string | null;
51
51
  duration: string | null;
52
- experienceLevel: string | null;
52
+ paymentType: string | null;
53
+ fixedPrice: number | null;
53
54
  hourlyRate: {
54
55
  max: number | null;
55
56
  min: number | null;
56
57
  } | null;
57
- paymentType: string | null;
58
- fixedPrice: number | null;
58
+ experienceLevel: string | null;
59
59
  }>>;
60
60
  clientInfo: z.ZodNullable<z.ZodObject<{
61
61
  isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
@@ -112,34 +112,77 @@ export declare const scrapeResultSchema: z.ZodObject<{
112
112
  englishLevel: z.ZodNullable<z.ZodString>;
113
113
  minimumEarnings: z.ZodNullable<z.ZodNumber>;
114
114
  jobSuccessScore: z.ZodNullable<z.ZodString>;
115
+ includeRisingTalent: z.ZodNullable<z.ZodString>;
115
116
  }, "strip", z.ZodTypeAny, {
116
117
  location: string | null;
117
118
  talentType: "unspecified" | "Agency" | "Independent" | null;
118
119
  englishLevel: string | null;
119
120
  minimumEarnings: number | null;
120
121
  jobSuccessScore: string | null;
122
+ includeRisingTalent: string | null;
121
123
  }, {
122
124
  location: string | null;
123
125
  talentType: "unspecified" | "Agency" | "Independent" | null;
124
126
  englishLevel: string | null;
125
127
  minimumEarnings: number | null;
126
128
  jobSuccessScore: string | null;
129
+ includeRisingTalent: string | null;
127
130
  }>>;
128
131
  processed: z.ZodNullable<z.ZodBoolean>;
129
132
  isFeatured: z.ZodNullable<z.ZodBoolean>;
133
+ clientReviews: z.ZodNullable<z.ZodArray<z.ZodObject<{
134
+ jobTitle: z.ZodNullable<z.ZodString>;
135
+ freelancerName: z.ZodNullable<z.ZodString>;
136
+ freelancerRating: z.ZodNullable<z.ZodNumber>;
137
+ freelancerFeedback: z.ZodNullable<z.ZodString>;
138
+ clientFeedback: z.ZodNullable<z.ZodString>;
139
+ clientFeedbackRating: z.ZodNullable<z.ZodNumber>;
140
+ dateRange: z.ZodNullable<z.ZodString>;
141
+ paymentType: z.ZodNullable<z.ZodString>;
142
+ fixedPrice: z.ZodNullable<z.ZodNumber>;
143
+ hourlyRate: z.ZodNullable<z.ZodNumber>;
144
+ numHours: z.ZodNullable<z.ZodNumber>;
145
+ totalBilled: z.ZodNullable<z.ZodNumber>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ jobTitle: string | null;
148
+ freelancerName: string | null;
149
+ freelancerRating: number | null;
150
+ freelancerFeedback: string | null;
151
+ clientFeedback: string | null;
152
+ clientFeedbackRating: number | null;
153
+ dateRange: string | null;
154
+ paymentType: string | null;
155
+ fixedPrice: number | null;
156
+ hourlyRate: number | null;
157
+ numHours: number | null;
158
+ totalBilled: number | null;
159
+ }, {
160
+ jobTitle: string | null;
161
+ freelancerName: string | null;
162
+ freelancerRating: number | null;
163
+ freelancerFeedback: string | null;
164
+ clientFeedback: string | null;
165
+ clientFeedbackRating: number | null;
166
+ dateRange: string | null;
167
+ paymentType: string | null;
168
+ fixedPrice: number | null;
169
+ hourlyRate: number | null;
170
+ numHours: number | null;
171
+ totalBilled: number | null;
172
+ }>, "many">>;
130
173
  }, "strip", z.ZodTypeAny, {
131
174
  id: string | null;
132
175
  title: string | null;
133
176
  metadata: {
134
177
  hours: string | null;
135
178
  duration: string | null;
136
- experienceLevel: string | null;
179
+ paymentType: string | null;
180
+ fixedPrice: number | null;
137
181
  hourlyRate: {
138
182
  max: number | null;
139
183
  min: number | null;
140
184
  } | null;
141
- paymentType: string | null;
142
- fixedPrice: number | null;
185
+ experienceLevel: string | null;
143
186
  } | null;
144
187
  description: string | null;
145
188
  datetime: number | null;
@@ -177,22 +220,37 @@ export declare const scrapeResultSchema: z.ZodObject<{
177
220
  englishLevel: string | null;
178
221
  minimumEarnings: number | null;
179
222
  jobSuccessScore: string | null;
223
+ includeRisingTalent: string | null;
180
224
  } | null;
181
225
  processed: boolean | null;
182
226
  isFeatured: boolean | null;
227
+ clientReviews: {
228
+ jobTitle: string | null;
229
+ freelancerName: string | null;
230
+ freelancerRating: number | null;
231
+ freelancerFeedback: string | null;
232
+ clientFeedback: string | null;
233
+ clientFeedbackRating: number | null;
234
+ dateRange: string | null;
235
+ paymentType: string | null;
236
+ fixedPrice: number | null;
237
+ hourlyRate: number | null;
238
+ numHours: number | null;
239
+ totalBilled: number | null;
240
+ }[] | null;
183
241
  }, {
184
242
  id: string | null;
185
243
  title: string | null;
186
244
  metadata: {
187
245
  hours: string | null;
188
246
  duration: string | null;
189
- experienceLevel: string | null;
247
+ paymentType: string | null;
248
+ fixedPrice: number | null;
190
249
  hourlyRate: {
191
250
  max: number | null;
192
251
  min: number | null;
193
252
  } | null;
194
- paymentType: string | null;
195
- fixedPrice: number | null;
253
+ experienceLevel: string | null;
196
254
  } | null;
197
255
  description: string | null;
198
256
  datetime: number | null;
@@ -230,9 +288,24 @@ export declare const scrapeResultSchema: z.ZodObject<{
230
288
  englishLevel: string | null;
231
289
  minimumEarnings: number | null;
232
290
  jobSuccessScore: string | null;
291
+ includeRisingTalent: string | null;
233
292
  } | null;
234
293
  processed: boolean | null;
235
294
  isFeatured: boolean | null;
295
+ clientReviews: {
296
+ jobTitle: string | null;
297
+ freelancerName: string | null;
298
+ freelancerRating: number | null;
299
+ freelancerFeedback: string | null;
300
+ clientFeedback: string | null;
301
+ clientFeedbackRating: number | null;
302
+ dateRange: string | null;
303
+ paymentType: string | null;
304
+ fixedPrice: number | null;
305
+ hourlyRate: number | null;
306
+ numHours: number | null;
307
+ totalBilled: number | null;
308
+ }[] | null;
236
309
  }>, "many">;
237
310
  cookies: z.ZodArray<z.ZodAny, "many">;
238
311
  }, "strip", z.ZodTypeAny, {
@@ -243,13 +316,13 @@ export declare const scrapeResultSchema: z.ZodObject<{
243
316
  metadata: {
244
317
  hours: string | null;
245
318
  duration: string | null;
246
- experienceLevel: string | null;
319
+ paymentType: string | null;
320
+ fixedPrice: number | null;
247
321
  hourlyRate: {
248
322
  max: number | null;
249
323
  min: number | null;
250
324
  } | null;
251
- paymentType: string | null;
252
- fixedPrice: number | null;
325
+ experienceLevel: string | null;
253
326
  } | null;
254
327
  description: string | null;
255
328
  datetime: number | null;
@@ -287,9 +360,24 @@ export declare const scrapeResultSchema: z.ZodObject<{
287
360
  englishLevel: string | null;
288
361
  minimumEarnings: number | null;
289
362
  jobSuccessScore: string | null;
363
+ includeRisingTalent: string | null;
290
364
  } | null;
291
365
  processed: boolean | null;
292
366
  isFeatured: boolean | null;
367
+ clientReviews: {
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
+ paymentType: string | null;
376
+ fixedPrice: number | null;
377
+ hourlyRate: number | null;
378
+ numHours: number | null;
379
+ totalBilled: number | null;
380
+ }[] | null;
293
381
  }[];
294
382
  }, {
295
383
  cookies: any[];
@@ -299,13 +387,13 @@ export declare const scrapeResultSchema: z.ZodObject<{
299
387
  metadata: {
300
388
  hours: string | null;
301
389
  duration: string | null;
302
- experienceLevel: string | null;
390
+ paymentType: string | null;
391
+ fixedPrice: number | null;
303
392
  hourlyRate: {
304
393
  max: number | null;
305
394
  min: number | null;
306
395
  } | null;
307
- paymentType: string | null;
308
- fixedPrice: number | null;
396
+ experienceLevel: string | null;
309
397
  } | null;
310
398
  description: string | null;
311
399
  datetime: number | null;
@@ -343,8 +431,23 @@ export declare const scrapeResultSchema: z.ZodObject<{
343
431
  englishLevel: string | null;
344
432
  minimumEarnings: number | null;
345
433
  jobSuccessScore: string | null;
434
+ includeRisingTalent: string | null;
346
435
  } | null;
347
436
  processed: boolean | null;
348
437
  isFeatured: boolean | null;
438
+ clientReviews: {
439
+ jobTitle: string | null;
440
+ freelancerName: string | null;
441
+ freelancerRating: number | null;
442
+ freelancerFeedback: string | null;
443
+ clientFeedback: string | null;
444
+ clientFeedbackRating: number | null;
445
+ dateRange: string | null;
446
+ paymentType: string | null;
447
+ fixedPrice: number | null;
448
+ hourlyRate: number | null;
449
+ numHours: number | null;
450
+ totalBilled: number | null;
451
+ }[] | null;
349
452
  }[];
350
453
  }>;
@@ -3,7 +3,7 @@ import { SavedSearch } from "../saved-search";
3
3
  import { LeadNote } from "./job-note";
4
4
  import { LeadAgentStatus, LeadStatus } from "./job-status";
5
5
  import { QuestionAnswerPair } from "../ai";
6
- import { clientInfoSchema, jobListItemSchema, leadResponseSchema, leadSchema, jobSkillsSchema, metadataSchema, upworkJobSchema, vendorQualificationSchema } from "../../schemas/lead/lead";
6
+ import { clientInfoSchema, jobListItemSchema, leadResponseSchema, leadSchema, jobSkillsSchema, metadataSchema, upworkJobSchema, vendorQualificationSchema, clientReviewSchema } from "../../schemas/lead/lead";
7
7
  export interface Job extends z.infer<typeof upworkJobSchema> {
8
8
  clientInfo: ClientInfo | null;
9
9
  metadata: JobMetadata | null;
@@ -31,3 +31,4 @@ export type JobSkill = z.infer<typeof jobSkillsSchema>;
31
31
  export type VendorQualifications = z.infer<typeof vendorQualificationSchema>;
32
32
  export type ClientInfo = z.infer<typeof clientInfoSchema>;
33
33
  export type JobMetadata = z.infer<typeof metadataSchema>;
34
+ export type ClientReview = z.infer<typeof clientReviewSchema>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.28",
4
+ "version": "1.0.30",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",