lancer-shared 1.0.7 → 1.0.9
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.
|
@@ -111,7 +111,7 @@ export declare const metadataSchema: z.ZodObject<{
|
|
|
111
111
|
paymentType: string | null;
|
|
112
112
|
fixedPrice: number | null;
|
|
113
113
|
}>;
|
|
114
|
-
export declare const
|
|
114
|
+
export declare const upworkJobSchema: z.ZodObject<{
|
|
115
115
|
id: z.ZodNullable<z.ZodString>;
|
|
116
116
|
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
117
117
|
title: z.ZodNullable<z.ZodString>;
|
|
@@ -679,7 +679,7 @@ export declare const jobListItemSchema: z.ZodObject<{
|
|
|
679
679
|
jobUrl: string | null;
|
|
680
680
|
}>;
|
|
681
681
|
export declare const jobResponseSchema: z.ZodObject<{
|
|
682
|
-
|
|
682
|
+
leads: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
683
683
|
id: z.ZodNullable<z.ZodString>;
|
|
684
684
|
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
685
685
|
title: z.ZodNullable<z.ZodString>;
|
|
@@ -1006,7 +1006,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1006
1006
|
hasMore: z.ZodBoolean;
|
|
1007
1007
|
jobCounts: z.ZodNullable<z.ZodNumber>;
|
|
1008
1008
|
}, "strip", z.ZodTypeAny, {
|
|
1009
|
-
|
|
1009
|
+
leads: {
|
|
1010
1010
|
id: string | null;
|
|
1011
1011
|
title: string | null;
|
|
1012
1012
|
metadata: {
|
|
@@ -1086,7 +1086,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1086
1086
|
hasMore: boolean;
|
|
1087
1087
|
jobCounts: number | null;
|
|
1088
1088
|
}, {
|
|
1089
|
-
|
|
1089
|
+
leads: {
|
|
1090
1090
|
id: string | null;
|
|
1091
1091
|
title: string | null;
|
|
1092
1092
|
metadata: {
|
package/dist/schemas/job/job.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.jobResponseSchema = exports.jobListItemSchema = exports.leadSchema = exports.
|
|
3
|
+
exports.jobResponseSchema = exports.jobListItemSchema = exports.leadSchema = exports.upworkJobSchema = exports.metadataSchema = exports.clientInfoSchema = exports.vendorQualificationSchema = exports.jobSkillsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const job_note_1 = require("./job-note");
|
|
6
6
|
const job_status_1 = require("./job-status");
|
|
@@ -45,7 +45,7 @@ exports.metadataSchema = zod_1.z.object({
|
|
|
45
45
|
paymentType: zod_1.z.string().nullable(),
|
|
46
46
|
fixedPrice: zod_1.z.number().nullable(),
|
|
47
47
|
});
|
|
48
|
-
exports.
|
|
48
|
+
exports.upworkJobSchema = zod_1.z.object({
|
|
49
49
|
id: zod_1.z.string().nullable(),
|
|
50
50
|
createdAt: zod_1.z.number().nullable(),
|
|
51
51
|
title: zod_1.z.string().nullable(),
|
|
@@ -64,7 +64,7 @@ exports.jobSchema = zod_1.z.object({
|
|
|
64
64
|
vendorQualifications: exports.vendorQualificationSchema.nullable(),
|
|
65
65
|
processed: (0, zod_1.boolean)().nullable(),
|
|
66
66
|
});
|
|
67
|
-
exports.leadSchema = exports.
|
|
67
|
+
exports.leadSchema = exports.upworkJobSchema.extend({
|
|
68
68
|
jobId: zod_1.z.string(),
|
|
69
69
|
updatedAt: zod_1.z.number().nullable(),
|
|
70
70
|
suitabilityRating: zod_1.z.number().nullable(),
|
|
@@ -84,7 +84,7 @@ exports.jobListItemSchema = zod_1.z.object({
|
|
|
84
84
|
datetime: zod_1.z.string().nullable(),
|
|
85
85
|
});
|
|
86
86
|
exports.jobResponseSchema = zod_1.z.object({
|
|
87
|
-
|
|
87
|
+
leads: zod_1.z.array(exports.leadSchema),
|
|
88
88
|
nextCursor: zod_1.z.string().nullable(),
|
|
89
89
|
hasMore: zod_1.z.boolean(),
|
|
90
90
|
jobCounts: zod_1.z.number().nullable(),
|
|
@@ -233,6 +233,7 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
233
233
|
}>, "many">;
|
|
234
234
|
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
235
235
|
}, "strip", z.ZodTypeAny, {
|
|
236
|
+
cookies: any[];
|
|
236
237
|
jobs: {
|
|
237
238
|
id: string | null;
|
|
238
239
|
title: string | null;
|
|
@@ -286,8 +287,8 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
286
287
|
} | null;
|
|
287
288
|
processed: boolean | null;
|
|
288
289
|
}[];
|
|
289
|
-
cookies: any[];
|
|
290
290
|
}, {
|
|
291
|
+
cookies: any[];
|
|
291
292
|
jobs: {
|
|
292
293
|
id: string | null;
|
|
293
294
|
title: string | null;
|
|
@@ -341,5 +342,4 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
341
342
|
} | null;
|
|
342
343
|
processed: boolean | null;
|
|
343
344
|
}[];
|
|
344
|
-
cookies: any[];
|
|
345
345
|
}>;
|
|
@@ -4,6 +4,6 @@ exports.scrapeResultSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const job_1 = require("../job");
|
|
6
6
|
exports.scrapeResultSchema = zod_1.z.object({
|
|
7
|
-
jobs: zod_1.z.array(job_1.
|
|
7
|
+
jobs: zod_1.z.array(job_1.upworkJobSchema),
|
|
8
8
|
cookies: zod_1.z.array(zod_1.z.any()),
|
|
9
9
|
});
|
package/dist/types/job/job.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { SavedSearch } from "../saved-search";
|
|
|
3
3
|
import { JobNote } from "./job-note";
|
|
4
4
|
import { JobStatus } from "./job-status";
|
|
5
5
|
import { QuestionAnswerPair } from "../ai";
|
|
6
|
-
import { clientInfoSchema, jobListItemSchema, jobResponseSchema, leadSchema, jobSkillsSchema, metadataSchema,
|
|
7
|
-
export interface
|
|
6
|
+
import { clientInfoSchema, jobListItemSchema, jobResponseSchema, leadSchema, jobSkillsSchema, metadataSchema, upworkJobSchema, vendorQualificationSchema } from "../../schemas/job/job";
|
|
7
|
+
export interface UpworkJob extends z.infer<typeof upworkJobSchema> {
|
|
8
8
|
clientInfo: ClientInfo | null;
|
|
9
9
|
metadata: JobMetadata | null;
|
|
10
10
|
skills: JobSkill[] | null;
|
|
@@ -20,7 +20,7 @@ export interface Lead extends z.infer<typeof leadSchema> {
|
|
|
20
20
|
status: JobStatus;
|
|
21
21
|
}
|
|
22
22
|
export interface JobResponse extends z.infer<typeof jobResponseSchema> {
|
|
23
|
-
|
|
23
|
+
leads: Lead[];
|
|
24
24
|
}
|
|
25
25
|
export type JobWithSavedSearch = Lead & {
|
|
26
26
|
savedSearch?: SavedSearch | null;
|