lancer-shared 1.0.51 → 1.0.53
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.
|
@@ -120,6 +120,53 @@ export declare const clientReviewSchema: z.ZodObject<{
|
|
|
120
120
|
numHours: number | null;
|
|
121
121
|
totalBilled: number | null;
|
|
122
122
|
}>;
|
|
123
|
+
export declare const bidRangeSchema: z.ZodObject<{
|
|
124
|
+
high: z.ZodNullable<z.ZodNumber>;
|
|
125
|
+
avg: z.ZodNullable<z.ZodNumber>;
|
|
126
|
+
low: z.ZodNullable<z.ZodNumber>;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
high: number | null;
|
|
129
|
+
low: number | null;
|
|
130
|
+
avg: number | null;
|
|
131
|
+
}, {
|
|
132
|
+
high: number | null;
|
|
133
|
+
low: number | null;
|
|
134
|
+
avg: number | null;
|
|
135
|
+
}>;
|
|
136
|
+
export declare const jobActivitySchema: z.ZodObject<{
|
|
137
|
+
proposals: z.ZodObject<{
|
|
138
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
139
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
max: number | null;
|
|
142
|
+
min: number | null;
|
|
143
|
+
}, {
|
|
144
|
+
max: number | null;
|
|
145
|
+
min: number | null;
|
|
146
|
+
}>;
|
|
147
|
+
lastViewedByClient: z.ZodNullable<z.ZodString>;
|
|
148
|
+
interviewing: z.ZodNullable<z.ZodNumber>;
|
|
149
|
+
invitesSent: z.ZodNullable<z.ZodNumber>;
|
|
150
|
+
unansweredInvites: z.ZodNullable<z.ZodNumber>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
proposals: {
|
|
153
|
+
max: number | null;
|
|
154
|
+
min: number | null;
|
|
155
|
+
};
|
|
156
|
+
lastViewedByClient: string | null;
|
|
157
|
+
interviewing: number | null;
|
|
158
|
+
invitesSent: number | null;
|
|
159
|
+
unansweredInvites: number | null;
|
|
160
|
+
}, {
|
|
161
|
+
proposals: {
|
|
162
|
+
max: number | null;
|
|
163
|
+
min: number | null;
|
|
164
|
+
};
|
|
165
|
+
lastViewedByClient: string | null;
|
|
166
|
+
interviewing: number | null;
|
|
167
|
+
invitesSent: number | null;
|
|
168
|
+
unansweredInvites: number | null;
|
|
169
|
+
}>;
|
|
123
170
|
export declare const metadataSchema: z.ZodObject<{
|
|
124
171
|
hours: z.ZodNullable<z.ZodString>;
|
|
125
172
|
duration: z.ZodNullable<z.ZodString>;
|
|
@@ -331,6 +378,53 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
331
378
|
totalBilled: number | null;
|
|
332
379
|
}>, "many">>;
|
|
333
380
|
region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
|
|
381
|
+
bidRange: z.ZodNullable<z.ZodObject<{
|
|
382
|
+
high: z.ZodNullable<z.ZodNumber>;
|
|
383
|
+
avg: z.ZodNullable<z.ZodNumber>;
|
|
384
|
+
low: z.ZodNullable<z.ZodNumber>;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
high: number | null;
|
|
387
|
+
low: number | null;
|
|
388
|
+
avg: number | null;
|
|
389
|
+
}, {
|
|
390
|
+
high: number | null;
|
|
391
|
+
low: number | null;
|
|
392
|
+
avg: number | null;
|
|
393
|
+
}>>;
|
|
394
|
+
jobActivity: z.ZodNullable<z.ZodObject<{
|
|
395
|
+
proposals: z.ZodObject<{
|
|
396
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
397
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
398
|
+
}, "strip", z.ZodTypeAny, {
|
|
399
|
+
max: number | null;
|
|
400
|
+
min: number | null;
|
|
401
|
+
}, {
|
|
402
|
+
max: number | null;
|
|
403
|
+
min: number | null;
|
|
404
|
+
}>;
|
|
405
|
+
lastViewedByClient: z.ZodNullable<z.ZodString>;
|
|
406
|
+
interviewing: z.ZodNullable<z.ZodNumber>;
|
|
407
|
+
invitesSent: z.ZodNullable<z.ZodNumber>;
|
|
408
|
+
unansweredInvites: z.ZodNullable<z.ZodNumber>;
|
|
409
|
+
}, "strip", z.ZodTypeAny, {
|
|
410
|
+
proposals: {
|
|
411
|
+
max: number | null;
|
|
412
|
+
min: number | null;
|
|
413
|
+
};
|
|
414
|
+
lastViewedByClient: string | null;
|
|
415
|
+
interviewing: number | null;
|
|
416
|
+
invitesSent: number | null;
|
|
417
|
+
unansweredInvites: number | null;
|
|
418
|
+
}, {
|
|
419
|
+
proposals: {
|
|
420
|
+
max: number | null;
|
|
421
|
+
min: number | null;
|
|
422
|
+
};
|
|
423
|
+
lastViewedByClient: string | null;
|
|
424
|
+
interviewing: number | null;
|
|
425
|
+
invitesSent: number | null;
|
|
426
|
+
unansweredInvites: number | null;
|
|
427
|
+
}>>;
|
|
334
428
|
}, "strip", z.ZodTypeAny, {
|
|
335
429
|
id: string | null;
|
|
336
430
|
title: string | null;
|
|
@@ -401,6 +495,21 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
401
495
|
numHours: number | null;
|
|
402
496
|
totalBilled: number | null;
|
|
403
497
|
}[] | null;
|
|
498
|
+
bidRange: {
|
|
499
|
+
high: number | null;
|
|
500
|
+
low: number | null;
|
|
501
|
+
avg: number | null;
|
|
502
|
+
} | null;
|
|
503
|
+
jobActivity: {
|
|
504
|
+
proposals: {
|
|
505
|
+
max: number | null;
|
|
506
|
+
min: number | null;
|
|
507
|
+
};
|
|
508
|
+
lastViewedByClient: string | null;
|
|
509
|
+
interviewing: number | null;
|
|
510
|
+
invitesSent: number | null;
|
|
511
|
+
unansweredInvites: number | null;
|
|
512
|
+
} | null;
|
|
404
513
|
}, {
|
|
405
514
|
id: string | null;
|
|
406
515
|
title: string | null;
|
|
@@ -471,6 +580,21 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
471
580
|
numHours: number | null;
|
|
472
581
|
totalBilled: number | null;
|
|
473
582
|
}[] | null;
|
|
583
|
+
bidRange: {
|
|
584
|
+
high: number | null;
|
|
585
|
+
low: number | null;
|
|
586
|
+
avg: number | null;
|
|
587
|
+
} | null;
|
|
588
|
+
jobActivity: {
|
|
589
|
+
proposals: {
|
|
590
|
+
max: number | null;
|
|
591
|
+
min: number | null;
|
|
592
|
+
};
|
|
593
|
+
lastViewedByClient: string | null;
|
|
594
|
+
interviewing: number | null;
|
|
595
|
+
invitesSent: number | null;
|
|
596
|
+
unansweredInvites: number | null;
|
|
597
|
+
} | null;
|
|
474
598
|
}>;
|
|
475
599
|
export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
476
600
|
id: z.ZodNullable<z.ZodString>;
|
|
@@ -646,6 +770,53 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
646
770
|
totalBilled: number | null;
|
|
647
771
|
}>, "many">>;
|
|
648
772
|
region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
|
|
773
|
+
bidRange: z.ZodNullable<z.ZodObject<{
|
|
774
|
+
high: z.ZodNullable<z.ZodNumber>;
|
|
775
|
+
avg: z.ZodNullable<z.ZodNumber>;
|
|
776
|
+
low: z.ZodNullable<z.ZodNumber>;
|
|
777
|
+
}, "strip", z.ZodTypeAny, {
|
|
778
|
+
high: number | null;
|
|
779
|
+
low: number | null;
|
|
780
|
+
avg: number | null;
|
|
781
|
+
}, {
|
|
782
|
+
high: number | null;
|
|
783
|
+
low: number | null;
|
|
784
|
+
avg: number | null;
|
|
785
|
+
}>>;
|
|
786
|
+
jobActivity: z.ZodNullable<z.ZodObject<{
|
|
787
|
+
proposals: z.ZodObject<{
|
|
788
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
789
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
790
|
+
}, "strip", z.ZodTypeAny, {
|
|
791
|
+
max: number | null;
|
|
792
|
+
min: number | null;
|
|
793
|
+
}, {
|
|
794
|
+
max: number | null;
|
|
795
|
+
min: number | null;
|
|
796
|
+
}>;
|
|
797
|
+
lastViewedByClient: z.ZodNullable<z.ZodString>;
|
|
798
|
+
interviewing: z.ZodNullable<z.ZodNumber>;
|
|
799
|
+
invitesSent: z.ZodNullable<z.ZodNumber>;
|
|
800
|
+
unansweredInvites: z.ZodNullable<z.ZodNumber>;
|
|
801
|
+
}, "strip", z.ZodTypeAny, {
|
|
802
|
+
proposals: {
|
|
803
|
+
max: number | null;
|
|
804
|
+
min: number | null;
|
|
805
|
+
};
|
|
806
|
+
lastViewedByClient: string | null;
|
|
807
|
+
interviewing: number | null;
|
|
808
|
+
invitesSent: number | null;
|
|
809
|
+
unansweredInvites: number | null;
|
|
810
|
+
}, {
|
|
811
|
+
proposals: {
|
|
812
|
+
max: number | null;
|
|
813
|
+
min: number | null;
|
|
814
|
+
};
|
|
815
|
+
lastViewedByClient: string | null;
|
|
816
|
+
interviewing: number | null;
|
|
817
|
+
invitesSent: number | null;
|
|
818
|
+
unansweredInvites: number | null;
|
|
819
|
+
}>>;
|
|
649
820
|
}, {
|
|
650
821
|
jobId: z.ZodString;
|
|
651
822
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -770,6 +941,21 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
770
941
|
numHours: number | null;
|
|
771
942
|
totalBilled: number | null;
|
|
772
943
|
}[] | null;
|
|
944
|
+
bidRange: {
|
|
945
|
+
high: number | null;
|
|
946
|
+
low: number | null;
|
|
947
|
+
avg: number | null;
|
|
948
|
+
} | null;
|
|
949
|
+
jobActivity: {
|
|
950
|
+
proposals: {
|
|
951
|
+
max: number | null;
|
|
952
|
+
min: number | null;
|
|
953
|
+
};
|
|
954
|
+
lastViewedByClient: string | null;
|
|
955
|
+
interviewing: number | null;
|
|
956
|
+
invitesSent: number | null;
|
|
957
|
+
unansweredInvites: number | null;
|
|
958
|
+
} | null;
|
|
773
959
|
suitabilityRating: number | null;
|
|
774
960
|
suitabilityReason: string | null;
|
|
775
961
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -864,6 +1050,21 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
864
1050
|
numHours: number | null;
|
|
865
1051
|
totalBilled: number | null;
|
|
866
1052
|
}[] | null;
|
|
1053
|
+
bidRange: {
|
|
1054
|
+
high: number | null;
|
|
1055
|
+
low: number | null;
|
|
1056
|
+
avg: number | null;
|
|
1057
|
+
} | null;
|
|
1058
|
+
jobActivity: {
|
|
1059
|
+
proposals: {
|
|
1060
|
+
max: number | null;
|
|
1061
|
+
min: number | null;
|
|
1062
|
+
};
|
|
1063
|
+
lastViewedByClient: string | null;
|
|
1064
|
+
interviewing: number | null;
|
|
1065
|
+
invitesSent: number | null;
|
|
1066
|
+
unansweredInvites: number | null;
|
|
1067
|
+
} | null;
|
|
867
1068
|
suitabilityRating: number | null;
|
|
868
1069
|
suitabilityReason: string | null;
|
|
869
1070
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -1077,6 +1278,53 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1077
1278
|
totalBilled: number | null;
|
|
1078
1279
|
}>, "many">>;
|
|
1079
1280
|
region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
|
|
1281
|
+
bidRange: z.ZodNullable<z.ZodObject<{
|
|
1282
|
+
high: z.ZodNullable<z.ZodNumber>;
|
|
1283
|
+
avg: z.ZodNullable<z.ZodNumber>;
|
|
1284
|
+
low: z.ZodNullable<z.ZodNumber>;
|
|
1285
|
+
}, "strip", z.ZodTypeAny, {
|
|
1286
|
+
high: number | null;
|
|
1287
|
+
low: number | null;
|
|
1288
|
+
avg: number | null;
|
|
1289
|
+
}, {
|
|
1290
|
+
high: number | null;
|
|
1291
|
+
low: number | null;
|
|
1292
|
+
avg: number | null;
|
|
1293
|
+
}>>;
|
|
1294
|
+
jobActivity: z.ZodNullable<z.ZodObject<{
|
|
1295
|
+
proposals: z.ZodObject<{
|
|
1296
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
1297
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
1298
|
+
}, "strip", z.ZodTypeAny, {
|
|
1299
|
+
max: number | null;
|
|
1300
|
+
min: number | null;
|
|
1301
|
+
}, {
|
|
1302
|
+
max: number | null;
|
|
1303
|
+
min: number | null;
|
|
1304
|
+
}>;
|
|
1305
|
+
lastViewedByClient: z.ZodNullable<z.ZodString>;
|
|
1306
|
+
interviewing: z.ZodNullable<z.ZodNumber>;
|
|
1307
|
+
invitesSent: z.ZodNullable<z.ZodNumber>;
|
|
1308
|
+
unansweredInvites: z.ZodNullable<z.ZodNumber>;
|
|
1309
|
+
}, "strip", z.ZodTypeAny, {
|
|
1310
|
+
proposals: {
|
|
1311
|
+
max: number | null;
|
|
1312
|
+
min: number | null;
|
|
1313
|
+
};
|
|
1314
|
+
lastViewedByClient: string | null;
|
|
1315
|
+
interviewing: number | null;
|
|
1316
|
+
invitesSent: number | null;
|
|
1317
|
+
unansweredInvites: number | null;
|
|
1318
|
+
}, {
|
|
1319
|
+
proposals: {
|
|
1320
|
+
max: number | null;
|
|
1321
|
+
min: number | null;
|
|
1322
|
+
};
|
|
1323
|
+
lastViewedByClient: string | null;
|
|
1324
|
+
interviewing: number | null;
|
|
1325
|
+
invitesSent: number | null;
|
|
1326
|
+
unansweredInvites: number | null;
|
|
1327
|
+
}>>;
|
|
1080
1328
|
}, {
|
|
1081
1329
|
jobId: z.ZodString;
|
|
1082
1330
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1201,6 +1449,21 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1201
1449
|
numHours: number | null;
|
|
1202
1450
|
totalBilled: number | null;
|
|
1203
1451
|
}[] | null;
|
|
1452
|
+
bidRange: {
|
|
1453
|
+
high: number | null;
|
|
1454
|
+
low: number | null;
|
|
1455
|
+
avg: number | null;
|
|
1456
|
+
} | null;
|
|
1457
|
+
jobActivity: {
|
|
1458
|
+
proposals: {
|
|
1459
|
+
max: number | null;
|
|
1460
|
+
min: number | null;
|
|
1461
|
+
};
|
|
1462
|
+
lastViewedByClient: string | null;
|
|
1463
|
+
interviewing: number | null;
|
|
1464
|
+
invitesSent: number | null;
|
|
1465
|
+
unansweredInvites: number | null;
|
|
1466
|
+
} | null;
|
|
1204
1467
|
suitabilityRating: number | null;
|
|
1205
1468
|
suitabilityReason: string | null;
|
|
1206
1469
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -1295,6 +1558,21 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1295
1558
|
numHours: number | null;
|
|
1296
1559
|
totalBilled: number | null;
|
|
1297
1560
|
}[] | null;
|
|
1561
|
+
bidRange: {
|
|
1562
|
+
high: number | null;
|
|
1563
|
+
low: number | null;
|
|
1564
|
+
avg: number | null;
|
|
1565
|
+
} | null;
|
|
1566
|
+
jobActivity: {
|
|
1567
|
+
proposals: {
|
|
1568
|
+
max: number | null;
|
|
1569
|
+
min: number | null;
|
|
1570
|
+
};
|
|
1571
|
+
lastViewedByClient: string | null;
|
|
1572
|
+
interviewing: number | null;
|
|
1573
|
+
invitesSent: number | null;
|
|
1574
|
+
unansweredInvites: number | null;
|
|
1575
|
+
} | null;
|
|
1298
1576
|
suitabilityRating: number | null;
|
|
1299
1577
|
suitabilityReason: string | null;
|
|
1300
1578
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -1394,6 +1672,21 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1394
1672
|
numHours: number | null;
|
|
1395
1673
|
totalBilled: number | null;
|
|
1396
1674
|
}[] | null;
|
|
1675
|
+
bidRange: {
|
|
1676
|
+
high: number | null;
|
|
1677
|
+
low: number | null;
|
|
1678
|
+
avg: number | null;
|
|
1679
|
+
} | null;
|
|
1680
|
+
jobActivity: {
|
|
1681
|
+
proposals: {
|
|
1682
|
+
max: number | null;
|
|
1683
|
+
min: number | null;
|
|
1684
|
+
};
|
|
1685
|
+
lastViewedByClient: string | null;
|
|
1686
|
+
interviewing: number | null;
|
|
1687
|
+
invitesSent: number | null;
|
|
1688
|
+
unansweredInvites: number | null;
|
|
1689
|
+
} | null;
|
|
1397
1690
|
suitabilityRating: number | null;
|
|
1398
1691
|
suitabilityReason: string | null;
|
|
1399
1692
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -1493,6 +1786,21 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1493
1786
|
numHours: number | null;
|
|
1494
1787
|
totalBilled: number | null;
|
|
1495
1788
|
}[] | null;
|
|
1789
|
+
bidRange: {
|
|
1790
|
+
high: number | null;
|
|
1791
|
+
low: number | null;
|
|
1792
|
+
avg: number | null;
|
|
1793
|
+
} | null;
|
|
1794
|
+
jobActivity: {
|
|
1795
|
+
proposals: {
|
|
1796
|
+
max: number | null;
|
|
1797
|
+
min: number | null;
|
|
1798
|
+
};
|
|
1799
|
+
lastViewedByClient: string | null;
|
|
1800
|
+
interviewing: number | null;
|
|
1801
|
+
invitesSent: number | null;
|
|
1802
|
+
unansweredInvites: number | null;
|
|
1803
|
+
} | null;
|
|
1496
1804
|
suitabilityRating: number | null;
|
|
1497
1805
|
suitabilityReason: string | null;
|
|
1498
1806
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "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.clientReviewSchema = exports.clientInfoSchema = exports.vendorQualificationSchema = exports.jobSkillsSchema = void 0;
|
|
3
|
+
exports.leadResponseSchema = exports.jobListItemSchema = exports.leadSchema = exports.upworkJobSchema = exports.metadataSchema = exports.jobActivitySchema = exports.bidRangeSchema = 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");
|
|
@@ -49,6 +49,21 @@ exports.clientReviewSchema = zod_1.z.object({
|
|
|
49
49
|
numHours: zod_1.z.number().nullable(),
|
|
50
50
|
totalBilled: zod_1.z.number().nullable(),
|
|
51
51
|
});
|
|
52
|
+
exports.bidRangeSchema = zod_1.z.object({
|
|
53
|
+
high: zod_1.z.number().nullable(),
|
|
54
|
+
avg: zod_1.z.number().nullable(),
|
|
55
|
+
low: zod_1.z.number().nullable(),
|
|
56
|
+
});
|
|
57
|
+
exports.jobActivitySchema = zod_1.z.object({
|
|
58
|
+
proposals: zod_1.z.object({
|
|
59
|
+
min: zod_1.z.number().nullable(),
|
|
60
|
+
max: zod_1.z.number().nullable(),
|
|
61
|
+
}),
|
|
62
|
+
lastViewedByClient: zod_1.z.string().nullable(),
|
|
63
|
+
interviewing: zod_1.z.number().nullable(),
|
|
64
|
+
invitesSent: zod_1.z.number().nullable(),
|
|
65
|
+
unansweredInvites: zod_1.z.number().nullable(),
|
|
66
|
+
});
|
|
52
67
|
exports.metadataSchema = zod_1.z.object({
|
|
53
68
|
hours: zod_1.z.string().nullable(),
|
|
54
69
|
duration: zod_1.z.string().nullable(),
|
|
@@ -83,6 +98,8 @@ exports.upworkJobSchema = zod_1.z.object({
|
|
|
83
98
|
isFeatured: (0, zod_1.boolean)().nullable(),
|
|
84
99
|
clientReviews: zod_1.z.array(exports.clientReviewSchema).nullable(),
|
|
85
100
|
region: scraper_1.regionSchema.nullable(),
|
|
101
|
+
bidRange: exports.bidRangeSchema.nullable(),
|
|
102
|
+
jobActivity: exports.jobActivitySchema.nullable(),
|
|
86
103
|
});
|
|
87
104
|
exports.leadSchema = exports.upworkJobSchema
|
|
88
105
|
.extend({
|
|
@@ -175,6 +175,53 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
175
175
|
totalBilled: number | null;
|
|
176
176
|
}>, "many">>;
|
|
177
177
|
region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
|
|
178
|
+
bidRange: z.ZodNullable<z.ZodObject<{
|
|
179
|
+
high: z.ZodNullable<z.ZodNumber>;
|
|
180
|
+
avg: z.ZodNullable<z.ZodNumber>;
|
|
181
|
+
low: z.ZodNullable<z.ZodNumber>;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
high: number | null;
|
|
184
|
+
low: number | null;
|
|
185
|
+
avg: number | null;
|
|
186
|
+
}, {
|
|
187
|
+
high: number | null;
|
|
188
|
+
low: number | null;
|
|
189
|
+
avg: number | null;
|
|
190
|
+
}>>;
|
|
191
|
+
jobActivity: z.ZodNullable<z.ZodObject<{
|
|
192
|
+
proposals: z.ZodObject<{
|
|
193
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
194
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
max: number | null;
|
|
197
|
+
min: number | null;
|
|
198
|
+
}, {
|
|
199
|
+
max: number | null;
|
|
200
|
+
min: number | null;
|
|
201
|
+
}>;
|
|
202
|
+
lastViewedByClient: z.ZodNullable<z.ZodString>;
|
|
203
|
+
interviewing: z.ZodNullable<z.ZodNumber>;
|
|
204
|
+
invitesSent: z.ZodNullable<z.ZodNumber>;
|
|
205
|
+
unansweredInvites: z.ZodNullable<z.ZodNumber>;
|
|
206
|
+
}, "strip", z.ZodTypeAny, {
|
|
207
|
+
proposals: {
|
|
208
|
+
max: number | null;
|
|
209
|
+
min: number | null;
|
|
210
|
+
};
|
|
211
|
+
lastViewedByClient: string | null;
|
|
212
|
+
interviewing: number | null;
|
|
213
|
+
invitesSent: number | null;
|
|
214
|
+
unansweredInvites: number | null;
|
|
215
|
+
}, {
|
|
216
|
+
proposals: {
|
|
217
|
+
max: number | null;
|
|
218
|
+
min: number | null;
|
|
219
|
+
};
|
|
220
|
+
lastViewedByClient: string | null;
|
|
221
|
+
interviewing: number | null;
|
|
222
|
+
invitesSent: number | null;
|
|
223
|
+
unansweredInvites: number | null;
|
|
224
|
+
}>>;
|
|
178
225
|
}, "strip", z.ZodTypeAny, {
|
|
179
226
|
id: string | null;
|
|
180
227
|
title: string | null;
|
|
@@ -245,6 +292,21 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
245
292
|
numHours: number | null;
|
|
246
293
|
totalBilled: number | null;
|
|
247
294
|
}[] | null;
|
|
295
|
+
bidRange: {
|
|
296
|
+
high: number | null;
|
|
297
|
+
low: number | null;
|
|
298
|
+
avg: number | null;
|
|
299
|
+
} | null;
|
|
300
|
+
jobActivity: {
|
|
301
|
+
proposals: {
|
|
302
|
+
max: number | null;
|
|
303
|
+
min: number | null;
|
|
304
|
+
};
|
|
305
|
+
lastViewedByClient: string | null;
|
|
306
|
+
interviewing: number | null;
|
|
307
|
+
invitesSent: number | null;
|
|
308
|
+
unansweredInvites: number | null;
|
|
309
|
+
} | null;
|
|
248
310
|
}, {
|
|
249
311
|
id: string | null;
|
|
250
312
|
title: string | null;
|
|
@@ -315,6 +377,21 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
315
377
|
numHours: number | null;
|
|
316
378
|
totalBilled: number | null;
|
|
317
379
|
}[] | null;
|
|
380
|
+
bidRange: {
|
|
381
|
+
high: number | null;
|
|
382
|
+
low: number | null;
|
|
383
|
+
avg: number | null;
|
|
384
|
+
} | null;
|
|
385
|
+
jobActivity: {
|
|
386
|
+
proposals: {
|
|
387
|
+
max: number | null;
|
|
388
|
+
min: number | null;
|
|
389
|
+
};
|
|
390
|
+
lastViewedByClient: string | null;
|
|
391
|
+
interviewing: number | null;
|
|
392
|
+
invitesSent: number | null;
|
|
393
|
+
unansweredInvites: number | null;
|
|
394
|
+
} | null;
|
|
318
395
|
}>, "many">;
|
|
319
396
|
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
320
397
|
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
@@ -393,6 +470,21 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
393
470
|
numHours: number | null;
|
|
394
471
|
totalBilled: number | null;
|
|
395
472
|
}[] | null;
|
|
473
|
+
bidRange: {
|
|
474
|
+
high: number | null;
|
|
475
|
+
low: number | null;
|
|
476
|
+
avg: number | null;
|
|
477
|
+
} | null;
|
|
478
|
+
jobActivity: {
|
|
479
|
+
proposals: {
|
|
480
|
+
max: number | null;
|
|
481
|
+
min: number | null;
|
|
482
|
+
};
|
|
483
|
+
lastViewedByClient: string | null;
|
|
484
|
+
interviewing: number | null;
|
|
485
|
+
invitesSent: number | null;
|
|
486
|
+
unansweredInvites: number | null;
|
|
487
|
+
} | null;
|
|
396
488
|
}[];
|
|
397
489
|
usAccountCookies?: any[] | undefined;
|
|
398
490
|
ukAccountCookies?: any[] | undefined;
|
|
@@ -469,6 +561,21 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
469
561
|
numHours: number | null;
|
|
470
562
|
totalBilled: number | null;
|
|
471
563
|
}[] | null;
|
|
564
|
+
bidRange: {
|
|
565
|
+
high: number | null;
|
|
566
|
+
low: number | null;
|
|
567
|
+
avg: number | null;
|
|
568
|
+
} | null;
|
|
569
|
+
jobActivity: {
|
|
570
|
+
proposals: {
|
|
571
|
+
max: number | null;
|
|
572
|
+
min: number | null;
|
|
573
|
+
};
|
|
574
|
+
lastViewedByClient: string | null;
|
|
575
|
+
interviewing: number | null;
|
|
576
|
+
invitesSent: number | null;
|
|
577
|
+
unansweredInvites: number | null;
|
|
578
|
+
} | null;
|
|
472
579
|
}[];
|
|
473
580
|
usAccountCookies?: any[] | undefined;
|
|
474
581
|
ukAccountCookies?: any[] | undefined;
|
package/dist/types/job/job.d.ts
CHANGED
|
@@ -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, clientReviewSchema } from "../../schemas/lead/lead";
|
|
6
|
+
import { clientInfoSchema, jobListItemSchema, leadResponseSchema, leadSchema, jobSkillsSchema, metadataSchema, upworkJobSchema, vendorQualificationSchema, clientReviewSchema, bidRangeSchema, jobActivitySchema } from "../../schemas/lead/lead";
|
|
7
7
|
export interface Job extends z.infer<typeof upworkJobSchema> {
|
|
8
8
|
clientInfo: ClientInfo | null;
|
|
9
9
|
metadata: JobMetadata | null;
|
|
@@ -32,3 +32,5 @@ 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
34
|
export type ClientReview = z.infer<typeof clientReviewSchema>;
|
|
35
|
+
export type JobBidRange = z.infer<typeof bidRangeSchema>;
|
|
36
|
+
export type JobActivity = z.infer<typeof jobActivitySchema>;
|