lancer-shared 1.0.7 → 1.0.8
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>;
|
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(),
|
|
@@ -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;
|