lancer-shared 1.0.51 → 1.0.52
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,19 @@ 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
|
+
}>;
|
|
123
136
|
export declare const metadataSchema: z.ZodObject<{
|
|
124
137
|
hours: z.ZodNullable<z.ZodString>;
|
|
125
138
|
duration: z.ZodNullable<z.ZodString>;
|
|
@@ -331,6 +344,19 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
331
344
|
totalBilled: number | null;
|
|
332
345
|
}>, "many">>;
|
|
333
346
|
region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
|
|
347
|
+
bidRange: z.ZodNullable<z.ZodObject<{
|
|
348
|
+
high: z.ZodNullable<z.ZodNumber>;
|
|
349
|
+
avg: z.ZodNullable<z.ZodNumber>;
|
|
350
|
+
low: z.ZodNullable<z.ZodNumber>;
|
|
351
|
+
}, "strip", z.ZodTypeAny, {
|
|
352
|
+
high: number | null;
|
|
353
|
+
low: number | null;
|
|
354
|
+
avg: number | null;
|
|
355
|
+
}, {
|
|
356
|
+
high: number | null;
|
|
357
|
+
low: number | null;
|
|
358
|
+
avg: number | null;
|
|
359
|
+
}>>;
|
|
334
360
|
}, "strip", z.ZodTypeAny, {
|
|
335
361
|
id: string | null;
|
|
336
362
|
title: string | null;
|
|
@@ -401,6 +427,11 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
401
427
|
numHours: number | null;
|
|
402
428
|
totalBilled: number | null;
|
|
403
429
|
}[] | null;
|
|
430
|
+
bidRange: {
|
|
431
|
+
high: number | null;
|
|
432
|
+
low: number | null;
|
|
433
|
+
avg: number | null;
|
|
434
|
+
} | null;
|
|
404
435
|
}, {
|
|
405
436
|
id: string | null;
|
|
406
437
|
title: string | null;
|
|
@@ -471,6 +502,11 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
471
502
|
numHours: number | null;
|
|
472
503
|
totalBilled: number | null;
|
|
473
504
|
}[] | null;
|
|
505
|
+
bidRange: {
|
|
506
|
+
high: number | null;
|
|
507
|
+
low: number | null;
|
|
508
|
+
avg: number | null;
|
|
509
|
+
} | null;
|
|
474
510
|
}>;
|
|
475
511
|
export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
476
512
|
id: z.ZodNullable<z.ZodString>;
|
|
@@ -646,6 +682,19 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
646
682
|
totalBilled: number | null;
|
|
647
683
|
}>, "many">>;
|
|
648
684
|
region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
|
|
685
|
+
bidRange: z.ZodNullable<z.ZodObject<{
|
|
686
|
+
high: z.ZodNullable<z.ZodNumber>;
|
|
687
|
+
avg: z.ZodNullable<z.ZodNumber>;
|
|
688
|
+
low: z.ZodNullable<z.ZodNumber>;
|
|
689
|
+
}, "strip", z.ZodTypeAny, {
|
|
690
|
+
high: number | null;
|
|
691
|
+
low: number | null;
|
|
692
|
+
avg: number | null;
|
|
693
|
+
}, {
|
|
694
|
+
high: number | null;
|
|
695
|
+
low: number | null;
|
|
696
|
+
avg: number | null;
|
|
697
|
+
}>>;
|
|
649
698
|
}, {
|
|
650
699
|
jobId: z.ZodString;
|
|
651
700
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -770,6 +819,11 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
770
819
|
numHours: number | null;
|
|
771
820
|
totalBilled: number | null;
|
|
772
821
|
}[] | null;
|
|
822
|
+
bidRange: {
|
|
823
|
+
high: number | null;
|
|
824
|
+
low: number | null;
|
|
825
|
+
avg: number | null;
|
|
826
|
+
} | null;
|
|
773
827
|
suitabilityRating: number | null;
|
|
774
828
|
suitabilityReason: string | null;
|
|
775
829
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -864,6 +918,11 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
864
918
|
numHours: number | null;
|
|
865
919
|
totalBilled: number | null;
|
|
866
920
|
}[] | null;
|
|
921
|
+
bidRange: {
|
|
922
|
+
high: number | null;
|
|
923
|
+
low: number | null;
|
|
924
|
+
avg: number | null;
|
|
925
|
+
} | null;
|
|
867
926
|
suitabilityRating: number | null;
|
|
868
927
|
suitabilityReason: string | null;
|
|
869
928
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -1077,6 +1136,19 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1077
1136
|
totalBilled: number | null;
|
|
1078
1137
|
}>, "many">>;
|
|
1079
1138
|
region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
|
|
1139
|
+
bidRange: z.ZodNullable<z.ZodObject<{
|
|
1140
|
+
high: z.ZodNullable<z.ZodNumber>;
|
|
1141
|
+
avg: z.ZodNullable<z.ZodNumber>;
|
|
1142
|
+
low: z.ZodNullable<z.ZodNumber>;
|
|
1143
|
+
}, "strip", z.ZodTypeAny, {
|
|
1144
|
+
high: number | null;
|
|
1145
|
+
low: number | null;
|
|
1146
|
+
avg: number | null;
|
|
1147
|
+
}, {
|
|
1148
|
+
high: number | null;
|
|
1149
|
+
low: number | null;
|
|
1150
|
+
avg: number | null;
|
|
1151
|
+
}>>;
|
|
1080
1152
|
}, {
|
|
1081
1153
|
jobId: z.ZodString;
|
|
1082
1154
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1201,6 +1273,11 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1201
1273
|
numHours: number | null;
|
|
1202
1274
|
totalBilled: number | null;
|
|
1203
1275
|
}[] | null;
|
|
1276
|
+
bidRange: {
|
|
1277
|
+
high: number | null;
|
|
1278
|
+
low: number | null;
|
|
1279
|
+
avg: number | null;
|
|
1280
|
+
} | null;
|
|
1204
1281
|
suitabilityRating: number | null;
|
|
1205
1282
|
suitabilityReason: string | null;
|
|
1206
1283
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -1295,6 +1372,11 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1295
1372
|
numHours: number | null;
|
|
1296
1373
|
totalBilled: number | null;
|
|
1297
1374
|
}[] | null;
|
|
1375
|
+
bidRange: {
|
|
1376
|
+
high: number | null;
|
|
1377
|
+
low: number | null;
|
|
1378
|
+
avg: number | null;
|
|
1379
|
+
} | null;
|
|
1298
1380
|
suitabilityRating: number | null;
|
|
1299
1381
|
suitabilityReason: string | null;
|
|
1300
1382
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -1394,6 +1476,11 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1394
1476
|
numHours: number | null;
|
|
1395
1477
|
totalBilled: number | null;
|
|
1396
1478
|
}[] | null;
|
|
1479
|
+
bidRange: {
|
|
1480
|
+
high: number | null;
|
|
1481
|
+
low: number | null;
|
|
1482
|
+
avg: number | null;
|
|
1483
|
+
} | null;
|
|
1397
1484
|
suitabilityRating: number | null;
|
|
1398
1485
|
suitabilityReason: string | null;
|
|
1399
1486
|
agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
@@ -1493,6 +1580,11 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1493
1580
|
numHours: number | null;
|
|
1494
1581
|
totalBilled: number | null;
|
|
1495
1582
|
}[] | null;
|
|
1583
|
+
bidRange: {
|
|
1584
|
+
high: number | null;
|
|
1585
|
+
low: number | null;
|
|
1586
|
+
avg: number | null;
|
|
1587
|
+
} | null;
|
|
1496
1588
|
suitabilityRating: number | null;
|
|
1497
1589
|
suitabilityReason: string | null;
|
|
1498
1590
|
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.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,11 @@ 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
|
+
});
|
|
52
57
|
exports.metadataSchema = zod_1.z.object({
|
|
53
58
|
hours: zod_1.z.string().nullable(),
|
|
54
59
|
duration: zod_1.z.string().nullable(),
|
|
@@ -83,6 +88,7 @@ exports.upworkJobSchema = zod_1.z.object({
|
|
|
83
88
|
isFeatured: (0, zod_1.boolean)().nullable(),
|
|
84
89
|
clientReviews: zod_1.z.array(exports.clientReviewSchema).nullable(),
|
|
85
90
|
region: scraper_1.regionSchema.nullable(),
|
|
91
|
+
bidRange: exports.bidRangeSchema.nullable(),
|
|
86
92
|
});
|
|
87
93
|
exports.leadSchema = exports.upworkJobSchema
|
|
88
94
|
.extend({
|
|
@@ -175,6 +175,19 @@ 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
|
+
}>>;
|
|
178
191
|
}, "strip", z.ZodTypeAny, {
|
|
179
192
|
id: string | null;
|
|
180
193
|
title: string | null;
|
|
@@ -245,6 +258,11 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
245
258
|
numHours: number | null;
|
|
246
259
|
totalBilled: number | null;
|
|
247
260
|
}[] | null;
|
|
261
|
+
bidRange: {
|
|
262
|
+
high: number | null;
|
|
263
|
+
low: number | null;
|
|
264
|
+
avg: number | null;
|
|
265
|
+
} | null;
|
|
248
266
|
}, {
|
|
249
267
|
id: string | null;
|
|
250
268
|
title: string | null;
|
|
@@ -315,6 +333,11 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
315
333
|
numHours: number | null;
|
|
316
334
|
totalBilled: number | null;
|
|
317
335
|
}[] | null;
|
|
336
|
+
bidRange: {
|
|
337
|
+
high: number | null;
|
|
338
|
+
low: number | null;
|
|
339
|
+
avg: number | null;
|
|
340
|
+
} | null;
|
|
318
341
|
}>, "many">;
|
|
319
342
|
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
320
343
|
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
@@ -393,6 +416,11 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
393
416
|
numHours: number | null;
|
|
394
417
|
totalBilled: number | null;
|
|
395
418
|
}[] | null;
|
|
419
|
+
bidRange: {
|
|
420
|
+
high: number | null;
|
|
421
|
+
low: number | null;
|
|
422
|
+
avg: number | null;
|
|
423
|
+
} | null;
|
|
396
424
|
}[];
|
|
397
425
|
usAccountCookies?: any[] | undefined;
|
|
398
426
|
ukAccountCookies?: any[] | undefined;
|
|
@@ -469,6 +497,11 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
469
497
|
numHours: number | null;
|
|
470
498
|
totalBilled: number | null;
|
|
471
499
|
}[] | null;
|
|
500
|
+
bidRange: {
|
|
501
|
+
high: number | null;
|
|
502
|
+
low: number | null;
|
|
503
|
+
avg: number | null;
|
|
504
|
+
} | null;
|
|
472
505
|
}[];
|
|
473
506
|
usAccountCookies?: any[] | undefined;
|
|
474
507
|
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 } 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,4 @@ 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>;
|