lancer-shared 1.0.29 → 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.
@@ -77,6 +77,46 @@ export declare const clientInfoSchema: z.ZodObject<{
77
77
  companySize: string | null;
78
78
  enterpriseClient: boolean | null;
79
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
+ }>;
80
120
  export declare const metadataSchema: z.ZodObject<{
81
121
  hours: z.ZodNullable<z.ZodString>;
82
122
  duration: z.ZodNullable<z.ZodString>;
@@ -96,23 +136,23 @@ export declare const metadataSchema: z.ZodObject<{
96
136
  }, "strip", z.ZodTypeAny, {
97
137
  hours: string | null;
98
138
  duration: string | null;
99
- experienceLevel: string | null;
139
+ paymentType: string | null;
140
+ fixedPrice: number | null;
100
141
  hourlyRate: {
101
142
  max: number | null;
102
143
  min: number | null;
103
144
  } | null;
104
- paymentType: string | null;
105
- fixedPrice: number | null;
145
+ experienceLevel: string | null;
106
146
  }, {
107
147
  hours: string | null;
108
148
  duration: string | null;
109
- experienceLevel: string | null;
149
+ paymentType: string | null;
150
+ fixedPrice: number | null;
110
151
  hourlyRate: {
111
152
  max: number | null;
112
153
  min: number | null;
113
154
  } | null;
114
- paymentType: string | null;
115
- fixedPrice: number | null;
155
+ experienceLevel: string | null;
116
156
  }>;
117
157
  export declare const upworkJobSchema: z.ZodObject<{
118
158
  id: z.ZodNullable<z.ZodString>;
@@ -153,23 +193,23 @@ export declare const upworkJobSchema: z.ZodObject<{
153
193
  }, "strip", z.ZodTypeAny, {
154
194
  hours: string | null;
155
195
  duration: string | null;
156
- experienceLevel: string | null;
196
+ paymentType: string | null;
197
+ fixedPrice: number | null;
157
198
  hourlyRate: {
158
199
  max: number | null;
159
200
  min: number | null;
160
201
  } | null;
161
- paymentType: string | null;
162
- fixedPrice: number | null;
202
+ experienceLevel: string | null;
163
203
  }, {
164
204
  hours: string | null;
165
205
  duration: string | null;
166
- experienceLevel: string | null;
206
+ paymentType: string | null;
207
+ fixedPrice: number | null;
167
208
  hourlyRate: {
168
209
  max: number | null;
169
210
  min: number | null;
170
211
  } | null;
171
- paymentType: string | null;
172
- fixedPrice: number | null;
212
+ experienceLevel: string | null;
173
213
  }>>;
174
214
  clientInfo: z.ZodNullable<z.ZodObject<{
175
215
  isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
@@ -244,19 +284,59 @@ export declare const upworkJobSchema: z.ZodObject<{
244
284
  }>>;
245
285
  processed: z.ZodNullable<z.ZodBoolean>;
246
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">>;
247
327
  }, "strip", z.ZodTypeAny, {
248
328
  id: string | null;
249
329
  title: string | null;
250
330
  metadata: {
251
331
  hours: string | null;
252
332
  duration: string | null;
253
- experienceLevel: string | null;
333
+ paymentType: string | null;
334
+ fixedPrice: number | null;
254
335
  hourlyRate: {
255
336
  max: number | null;
256
337
  min: number | null;
257
338
  } | null;
258
- paymentType: string | null;
259
- fixedPrice: number | null;
339
+ experienceLevel: string | null;
260
340
  } | null;
261
341
  description: string | null;
262
342
  datetime: number | null;
@@ -298,19 +378,33 @@ export declare const upworkJobSchema: z.ZodObject<{
298
378
  } | null;
299
379
  processed: boolean | null;
300
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;
301
395
  }, {
302
396
  id: string | null;
303
397
  title: string | null;
304
398
  metadata: {
305
399
  hours: string | null;
306
400
  duration: string | null;
307
- experienceLevel: string | null;
401
+ paymentType: string | null;
402
+ fixedPrice: number | null;
308
403
  hourlyRate: {
309
404
  max: number | null;
310
405
  min: number | null;
311
406
  } | null;
312
- paymentType: string | null;
313
- fixedPrice: number | null;
407
+ experienceLevel: string | null;
314
408
  } | null;
315
409
  description: string | null;
316
410
  datetime: number | null;
@@ -352,6 +446,20 @@ export declare const upworkJobSchema: z.ZodObject<{
352
446
  } | null;
353
447
  processed: boolean | null;
354
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;
355
463
  }>;
356
464
  export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
357
465
  id: z.ZodNullable<z.ZodString>;
@@ -392,23 +500,23 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
392
500
  }, "strip", z.ZodTypeAny, {
393
501
  hours: string | null;
394
502
  duration: string | null;
395
- experienceLevel: string | null;
503
+ paymentType: string | null;
504
+ fixedPrice: number | null;
396
505
  hourlyRate: {
397
506
  max: number | null;
398
507
  min: number | null;
399
508
  } | null;
400
- paymentType: string | null;
401
- fixedPrice: number | null;
509
+ experienceLevel: string | null;
402
510
  }, {
403
511
  hours: string | null;
404
512
  duration: string | null;
405
- experienceLevel: string | null;
513
+ paymentType: string | null;
514
+ fixedPrice: number | null;
406
515
  hourlyRate: {
407
516
  max: number | null;
408
517
  min: number | null;
409
518
  } | null;
410
- paymentType: string | null;
411
- fixedPrice: number | null;
519
+ experienceLevel: string | null;
412
520
  }>>;
413
521
  clientInfo: z.ZodNullable<z.ZodObject<{
414
522
  isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
@@ -483,6 +591,46 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
483
591
  }>>;
484
592
  processed: z.ZodNullable<z.ZodBoolean>;
485
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">>;
486
634
  }, {
487
635
  jobId: z.ZodString;
488
636
  updatedAt: z.ZodNullable<z.ZodNumber>;
@@ -537,13 +685,13 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
537
685
  metadata: {
538
686
  hours: string | null;
539
687
  duration: string | null;
540
- experienceLevel: string | null;
688
+ paymentType: string | null;
689
+ fixedPrice: number | null;
541
690
  hourlyRate: {
542
691
  max: number | null;
543
692
  min: number | null;
544
693
  } | null;
545
- paymentType: string | null;
546
- fixedPrice: number | null;
694
+ experienceLevel: string | null;
547
695
  } | null;
548
696
  description: string | null;
549
697
  datetime: number | null;
@@ -592,6 +740,20 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
592
740
  } | null;
593
741
  processed: boolean | null;
594
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;
595
757
  suitabilityRating: number | null;
596
758
  suitabilityReason: string | null;
597
759
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
@@ -616,13 +778,13 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
616
778
  metadata: {
617
779
  hours: string | null;
618
780
  duration: string | null;
619
- experienceLevel: string | null;
781
+ paymentType: string | null;
782
+ fixedPrice: number | null;
620
783
  hourlyRate: {
621
784
  max: number | null;
622
785
  min: number | null;
623
786
  } | null;
624
- paymentType: string | null;
625
- fixedPrice: number | null;
787
+ experienceLevel: string | null;
626
788
  } | null;
627
789
  description: string | null;
628
790
  datetime: number | null;
@@ -671,6 +833,20 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
671
833
  } | null;
672
834
  processed: boolean | null;
673
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;
674
850
  suitabilityRating: number | null;
675
851
  suitabilityReason: string | null;
676
852
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
@@ -746,23 +922,23 @@ export declare const leadResponseSchema: z.ZodObject<{
746
922
  }, "strip", z.ZodTypeAny, {
747
923
  hours: string | null;
748
924
  duration: string | null;
749
- experienceLevel: string | null;
925
+ paymentType: string | null;
926
+ fixedPrice: number | null;
750
927
  hourlyRate: {
751
928
  max: number | null;
752
929
  min: number | null;
753
930
  } | null;
754
- paymentType: string | null;
755
- fixedPrice: number | null;
931
+ experienceLevel: string | null;
756
932
  }, {
757
933
  hours: string | null;
758
934
  duration: string | null;
759
- experienceLevel: string | null;
935
+ paymentType: string | null;
936
+ fixedPrice: number | null;
760
937
  hourlyRate: {
761
938
  max: number | null;
762
939
  min: number | null;
763
940
  } | null;
764
- paymentType: string | null;
765
- fixedPrice: number | null;
941
+ experienceLevel: string | null;
766
942
  }>>;
767
943
  clientInfo: z.ZodNullable<z.ZodObject<{
768
944
  isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
@@ -837,6 +1013,46 @@ export declare const leadResponseSchema: z.ZodObject<{
837
1013
  }>>;
838
1014
  processed: z.ZodNullable<z.ZodBoolean>;
839
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">>;
840
1056
  }, {
841
1057
  jobId: z.ZodString;
842
1058
  updatedAt: z.ZodNullable<z.ZodNumber>;
@@ -891,13 +1107,13 @@ export declare const leadResponseSchema: z.ZodObject<{
891
1107
  metadata: {
892
1108
  hours: string | null;
893
1109
  duration: string | null;
894
- experienceLevel: string | null;
1110
+ paymentType: string | null;
1111
+ fixedPrice: number | null;
895
1112
  hourlyRate: {
896
1113
  max: number | null;
897
1114
  min: number | null;
898
1115
  } | null;
899
- paymentType: string | null;
900
- fixedPrice: number | null;
1116
+ experienceLevel: string | null;
901
1117
  } | null;
902
1118
  description: string | null;
903
1119
  datetime: number | null;
@@ -946,6 +1162,20 @@ export declare const leadResponseSchema: z.ZodObject<{
946
1162
  } | null;
947
1163
  processed: boolean | null;
948
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;
949
1179
  suitabilityRating: number | null;
950
1180
  suitabilityReason: string | null;
951
1181
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
@@ -970,13 +1200,13 @@ export declare const leadResponseSchema: z.ZodObject<{
970
1200
  metadata: {
971
1201
  hours: string | null;
972
1202
  duration: string | null;
973
- experienceLevel: string | null;
1203
+ paymentType: string | null;
1204
+ fixedPrice: number | null;
974
1205
  hourlyRate: {
975
1206
  max: number | null;
976
1207
  min: number | null;
977
1208
  } | null;
978
- paymentType: string | null;
979
- fixedPrice: number | null;
1209
+ experienceLevel: string | null;
980
1210
  } | null;
981
1211
  description: string | null;
982
1212
  datetime: number | null;
@@ -1025,6 +1255,20 @@ export declare const leadResponseSchema: z.ZodObject<{
1025
1255
  } | null;
1026
1256
  processed: boolean | null;
1027
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;
1028
1272
  suitabilityRating: number | null;
1029
1273
  suitabilityReason: string | null;
1030
1274
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
@@ -1054,13 +1298,13 @@ export declare const leadResponseSchema: z.ZodObject<{
1054
1298
  metadata: {
1055
1299
  hours: string | null;
1056
1300
  duration: string | null;
1057
- experienceLevel: string | null;
1301
+ paymentType: string | null;
1302
+ fixedPrice: number | null;
1058
1303
  hourlyRate: {
1059
1304
  max: number | null;
1060
1305
  min: number | null;
1061
1306
  } | null;
1062
- paymentType: string | null;
1063
- fixedPrice: number | null;
1307
+ experienceLevel: string | null;
1064
1308
  } | null;
1065
1309
  description: string | null;
1066
1310
  datetime: number | null;
@@ -1109,6 +1353,20 @@ export declare const leadResponseSchema: z.ZodObject<{
1109
1353
  } | null;
1110
1354
  processed: boolean | null;
1111
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;
1112
1370
  suitabilityRating: number | null;
1113
1371
  suitabilityReason: string | null;
1114
1372
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
@@ -1138,13 +1396,13 @@ export declare const leadResponseSchema: z.ZodObject<{
1138
1396
  metadata: {
1139
1397
  hours: string | null;
1140
1398
  duration: string | null;
1141
- experienceLevel: string | null;
1399
+ paymentType: string | null;
1400
+ fixedPrice: number | null;
1142
1401
  hourlyRate: {
1143
1402
  max: number | null;
1144
1403
  min: number | null;
1145
1404
  } | null;
1146
- paymentType: string | null;
1147
- fixedPrice: number | null;
1405
+ experienceLevel: string | null;
1148
1406
  } | null;
1149
1407
  description: string | null;
1150
1408
  datetime: number | null;
@@ -1193,6 +1451,20 @@ export declare const leadResponseSchema: z.ZodObject<{
1193
1451
  } | null;
1194
1452
  processed: boolean | null;
1195
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;
1196
1468
  suitabilityRating: number | null;
1197
1469
  suitabilityReason: string | null;
1198
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");
@@ -33,6 +33,20 @@ exports.clientInfoSchema = zod_1.z.object({
33
33
  companySize: zod_1.z.string().nullable(),
34
34
  enterpriseClient: zod_1.z.boolean().nullable(),
35
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
+ });
36
50
  exports.metadataSchema = zod_1.z.object({
37
51
  hours: zod_1.z.string().nullable(),
38
52
  duration: zod_1.z.string().nullable(),
@@ -65,6 +79,7 @@ exports.upworkJobSchema = zod_1.z.object({
65
79
  vendorQualifications: exports.vendorQualificationSchema.nullable(),
66
80
  processed: (0, zod_1.boolean)().nullable(),
67
81
  isFeatured: (0, zod_1.boolean)().nullable(),
82
+ clientReviews: zod_1.z.array(exports.clientReviewSchema).nullable(),
68
83
  });
69
84
  exports.leadSchema = exports.upworkJobSchema.extend({
70
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>;
@@ -130,19 +130,59 @@ export declare const scrapeResultSchema: z.ZodObject<{
130
130
  }>>;
131
131
  processed: z.ZodNullable<z.ZodBoolean>;
132
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">>;
133
173
  }, "strip", z.ZodTypeAny, {
134
174
  id: string | null;
135
175
  title: string | null;
136
176
  metadata: {
137
177
  hours: string | null;
138
178
  duration: string | null;
139
- experienceLevel: string | null;
179
+ paymentType: string | null;
180
+ fixedPrice: number | null;
140
181
  hourlyRate: {
141
182
  max: number | null;
142
183
  min: number | null;
143
184
  } | null;
144
- paymentType: string | null;
145
- fixedPrice: number | null;
185
+ experienceLevel: string | null;
146
186
  } | null;
147
187
  description: string | null;
148
188
  datetime: number | null;
@@ -184,19 +224,33 @@ export declare const scrapeResultSchema: z.ZodObject<{
184
224
  } | null;
185
225
  processed: boolean | null;
186
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;
187
241
  }, {
188
242
  id: string | null;
189
243
  title: string | null;
190
244
  metadata: {
191
245
  hours: string | null;
192
246
  duration: string | null;
193
- experienceLevel: string | null;
247
+ paymentType: string | null;
248
+ fixedPrice: number | null;
194
249
  hourlyRate: {
195
250
  max: number | null;
196
251
  min: number | null;
197
252
  } | null;
198
- paymentType: string | null;
199
- fixedPrice: number | null;
253
+ experienceLevel: string | null;
200
254
  } | null;
201
255
  description: string | null;
202
256
  datetime: number | null;
@@ -238,6 +292,20 @@ export declare const scrapeResultSchema: z.ZodObject<{
238
292
  } | null;
239
293
  processed: boolean | null;
240
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;
241
309
  }>, "many">;
242
310
  cookies: z.ZodArray<z.ZodAny, "many">;
243
311
  }, "strip", z.ZodTypeAny, {
@@ -248,13 +316,13 @@ export declare const scrapeResultSchema: z.ZodObject<{
248
316
  metadata: {
249
317
  hours: string | null;
250
318
  duration: string | null;
251
- experienceLevel: string | null;
319
+ paymentType: string | null;
320
+ fixedPrice: number | null;
252
321
  hourlyRate: {
253
322
  max: number | null;
254
323
  min: number | null;
255
324
  } | null;
256
- paymentType: string | null;
257
- fixedPrice: number | null;
325
+ experienceLevel: string | null;
258
326
  } | null;
259
327
  description: string | null;
260
328
  datetime: number | null;
@@ -296,6 +364,20 @@ export declare const scrapeResultSchema: z.ZodObject<{
296
364
  } | null;
297
365
  processed: boolean | null;
298
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;
299
381
  }[];
300
382
  }, {
301
383
  cookies: any[];
@@ -305,13 +387,13 @@ export declare const scrapeResultSchema: z.ZodObject<{
305
387
  metadata: {
306
388
  hours: string | null;
307
389
  duration: string | null;
308
- experienceLevel: string | null;
390
+ paymentType: string | null;
391
+ fixedPrice: number | null;
309
392
  hourlyRate: {
310
393
  max: number | null;
311
394
  min: number | null;
312
395
  } | null;
313
- paymentType: string | null;
314
- fixedPrice: number | null;
396
+ experienceLevel: string | null;
315
397
  } | null;
316
398
  description: string | null;
317
399
  datetime: number | null;
@@ -353,5 +435,19 @@ export declare const scrapeResultSchema: z.ZodObject<{
353
435
  } | null;
354
436
  processed: boolean | null;
355
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;
356
452
  }[];
357
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.29",
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",