lancer-shared 1.0.24 → 1.0.26
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.
- package/dist/constants/upwork-filters.d.ts +5 -0
- package/dist/constants/upwork-filters.js +75 -0
- package/dist/schemas/ai-config/ai-config.d.ts +39 -0
- package/dist/schemas/ai-config/ai-config.js +12 -0
- package/dist/schemas/ai-config/index.d.ts +1 -0
- package/dist/schemas/ai-config/index.js +17 -0
- package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
- package/dist/schemas/bidding/proposal-dto.js +18 -0
- package/dist/schemas/job/job-pipeline.d.ts +74 -0
- package/dist/schemas/job/job-pipeline.js +29 -0
- package/dist/schemas/job/job-suitability.d.ts +12 -0
- package/dist/schemas/job/job-suitability.js +13 -0
- package/dist/schemas/job/job.d.ts +4 -12
- package/dist/schemas/job/job.js +3 -4
- package/dist/schemas/job/pipeline-job.d.ts +9 -3
- package/dist/schemas/job/pipeline-job.js +1 -0
- package/dist/schemas/knowledge-object/index.d.ts +1 -0
- package/dist/schemas/knowledge-object/index.js +17 -0
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
- package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
- package/dist/schemas/lead/lead.d.ts +17 -1
- package/dist/schemas/lead/lead.js +3 -1
- package/dist/schemas/scraper/scrape-response.d.ts +345 -0
- package/dist/schemas/scraper/scrape-response.js +9 -0
- package/dist/types/ai-config/ai-config.d.ts +6 -0
- package/dist/types/ai-config/ai-config.js +2 -0
- package/dist/types/ai-config/index.d.ts +1 -0
- package/dist/types/ai-config/index.js +17 -0
- package/dist/types/bidding/proposal-dto.d.ts +3 -0
- package/dist/types/bidding/proposal-dto.js +2 -0
- package/dist/types/job/job-pipeline.d.ts +4 -0
- package/dist/types/job/job-pipeline.js +2 -0
- package/dist/types/job/job-suitability.d.ts +3 -0
- package/dist/types/job/job-suitability.js +2 -0
- package/dist/types/knowledge-object/index.d.ts +1 -0
- package/dist/types/knowledge-object/index.js +17 -0
- package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
- package/dist/types/knowledge-object/knowledge-object.js +2 -0
- package/dist/types/scraper/scrape-response.d.ts +4 -0
- package/dist/types/scraper/scrape-response.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emptyKnowledgeObject = exports.CLIENT_HISTORY = exports.EXPERIENCE_LEVELS = exports.CATEGORIES = void 0;
|
|
4
|
+
exports.CATEGORIES = [
|
|
5
|
+
'Accounting',
|
|
6
|
+
'Business Analysis & Strategy',
|
|
7
|
+
'Financial Analysis & Modeling',
|
|
8
|
+
'HR Administration',
|
|
9
|
+
'Management Consulting',
|
|
10
|
+
'Tax Preparation',
|
|
11
|
+
'Data Entry',
|
|
12
|
+
'Personal/Virtual Assistance',
|
|
13
|
+
'Project Management',
|
|
14
|
+
'Research',
|
|
15
|
+
'Customer Service',
|
|
16
|
+
'Technical Support',
|
|
17
|
+
'Data Analytics',
|
|
18
|
+
'Data Processing',
|
|
19
|
+
'Data Engineering',
|
|
20
|
+
'Machine Learning',
|
|
21
|
+
'AI Development',
|
|
22
|
+
'Art & Illustration',
|
|
23
|
+
'Audio Production',
|
|
24
|
+
'Brand Design',
|
|
25
|
+
'Logo Design',
|
|
26
|
+
'Graphics Design',
|
|
27
|
+
'Video Production',
|
|
28
|
+
'Voice Acting',
|
|
29
|
+
'Architecture',
|
|
30
|
+
'Chemical Engineering',
|
|
31
|
+
'Civil Engineering',
|
|
32
|
+
'Electrical Engineering',
|
|
33
|
+
'Interior Design',
|
|
34
|
+
'Mechanical Engineering',
|
|
35
|
+
'Database Administration',
|
|
36
|
+
'Information Security',
|
|
37
|
+
'Network Administration',
|
|
38
|
+
'Systems Administration',
|
|
39
|
+
'DevOps Engineering',
|
|
40
|
+
'Business Law',
|
|
41
|
+
'Immigration Law',
|
|
42
|
+
'Tax Law',
|
|
43
|
+
'Regulatory Law',
|
|
44
|
+
'Paralegal Services',
|
|
45
|
+
'Digital Marketing',
|
|
46
|
+
'Lead Generation',
|
|
47
|
+
'Marketing Strategy',
|
|
48
|
+
'Social Media Marketing',
|
|
49
|
+
'SEO',
|
|
50
|
+
'Language Translation',
|
|
51
|
+
'Legal Translation',
|
|
52
|
+
'Technical Translation',
|
|
53
|
+
'Medical Translation',
|
|
54
|
+
'Desktop Development',
|
|
55
|
+
'Mobile Development',
|
|
56
|
+
'Web Development',
|
|
57
|
+
'Game Development',
|
|
58
|
+
'QA & Testing',
|
|
59
|
+
'Content Writing',
|
|
60
|
+
'Copywriting',
|
|
61
|
+
'Technical Writing',
|
|
62
|
+
'Creative Writing',
|
|
63
|
+
'Editing',
|
|
64
|
+
];
|
|
65
|
+
exports.EXPERIENCE_LEVELS = ['Entry Level', 'Mid Level', 'Senior Level'];
|
|
66
|
+
exports.CLIENT_HISTORY = ['No hires', '1-9 hires', '10+ hires'];
|
|
67
|
+
// Default knowledge object with all null values
|
|
68
|
+
exports.emptyKnowledgeObject = {
|
|
69
|
+
categories: exports.CATEGORIES.reduce((acc, category) => (Object.assign(Object.assign({}, acc), { [category]: null })), {}),
|
|
70
|
+
experienceLevels: exports.EXPERIENCE_LEVELS.reduce((acc, level) => (Object.assign(Object.assign({}, acc), { [level]: null })), {}),
|
|
71
|
+
minHourlyRate: null,
|
|
72
|
+
fixedPriceMin: null,
|
|
73
|
+
clientHistory: exports.CLIENT_HISTORY.reduce((acc, history) => (Object.assign(Object.assign({}, acc), { [history]: null })), {}),
|
|
74
|
+
keywords: [],
|
|
75
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const aiConfigSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
suitabilityPrompt: z.ZodOptional<z.ZodString>;
|
|
5
|
+
proposalPrompt: z.ZodOptional<z.ZodString>;
|
|
6
|
+
questionProposalPrompt: z.ZodOptional<z.ZodString>;
|
|
7
|
+
knowledgeBase: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
id: string;
|
|
10
|
+
suitabilityPrompt?: string | undefined;
|
|
11
|
+
proposalPrompt?: string | undefined;
|
|
12
|
+
questionProposalPrompt?: string | undefined;
|
|
13
|
+
knowledgeBase?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
id: string;
|
|
16
|
+
suitabilityPrompt?: string | undefined;
|
|
17
|
+
proposalPrompt?: string | undefined;
|
|
18
|
+
questionProposalPrompt?: string | undefined;
|
|
19
|
+
knowledgeBase?: string | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const updateAiConfigSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodOptional<z.ZodString>;
|
|
23
|
+
suitabilityPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
proposalPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
questionProposalPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
knowledgeBase: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
id?: string | undefined;
|
|
29
|
+
suitabilityPrompt?: string | undefined;
|
|
30
|
+
proposalPrompt?: string | undefined;
|
|
31
|
+
questionProposalPrompt?: string | undefined;
|
|
32
|
+
knowledgeBase?: string | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
id?: string | undefined;
|
|
35
|
+
suitabilityPrompt?: string | undefined;
|
|
36
|
+
proposalPrompt?: string | undefined;
|
|
37
|
+
questionProposalPrompt?: string | undefined;
|
|
38
|
+
knowledgeBase?: string | undefined;
|
|
39
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateAiConfigSchema = exports.aiConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.aiConfigSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
suitabilityPrompt: zod_1.z.string().optional(),
|
|
8
|
+
proposalPrompt: zod_1.z.string().optional(),
|
|
9
|
+
questionProposalPrompt: zod_1.z.string().optional(),
|
|
10
|
+
knowledgeBase: zod_1.z.string().optional(),
|
|
11
|
+
});
|
|
12
|
+
exports.updateAiConfigSchema = exports.aiConfigSchema.partial();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ai-config';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ai-config"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const proposalDtoSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
3
|
+
status: z.ZodLiteral<"success">;
|
|
4
|
+
biddingAmount: z.ZodNumber;
|
|
5
|
+
boosted: z.ZodBoolean;
|
|
6
|
+
boostingAmount: z.ZodNumber;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
status: "success";
|
|
9
|
+
biddingAmount: number;
|
|
10
|
+
boosted: boolean;
|
|
11
|
+
boostingAmount: number;
|
|
12
|
+
}, {
|
|
13
|
+
status: "success";
|
|
14
|
+
biddingAmount: number;
|
|
15
|
+
boosted: boolean;
|
|
16
|
+
boostingAmount: number;
|
|
17
|
+
}>, z.ZodObject<{
|
|
18
|
+
status: z.ZodLiteral<"failed">;
|
|
19
|
+
errorMessage: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
status: "failed";
|
|
22
|
+
errorMessage: string;
|
|
23
|
+
}, {
|
|
24
|
+
status: "failed";
|
|
25
|
+
errorMessage: string;
|
|
26
|
+
}>]>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.proposalDtoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.proposalDtoSchema = zod_1.z.discriminatedUnion('status', [
|
|
6
|
+
// Success case
|
|
7
|
+
zod_1.z.object({
|
|
8
|
+
status: zod_1.z.literal('success'),
|
|
9
|
+
biddingAmount: zod_1.z.number(),
|
|
10
|
+
boosted: zod_1.z.boolean(),
|
|
11
|
+
boostingAmount: zod_1.z.number(),
|
|
12
|
+
}),
|
|
13
|
+
// Failed case
|
|
14
|
+
zod_1.z.object({
|
|
15
|
+
status: zod_1.z.literal('failed'),
|
|
16
|
+
errorMessage: zod_1.z.string(),
|
|
17
|
+
}),
|
|
18
|
+
]);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const jobPipelineSchema: z.ZodObject<{
|
|
3
|
+
jobId: z.ZodString;
|
|
4
|
+
addedAt: z.ZodString;
|
|
5
|
+
country: z.ZodOptional<z.ZodString>;
|
|
6
|
+
description: z.ZodString;
|
|
7
|
+
fixedPrice: z.ZodOptional<z.ZodString>;
|
|
8
|
+
hourlyRate: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
min: z.ZodOptional<z.ZodString>;
|
|
10
|
+
max: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
max?: string | undefined;
|
|
13
|
+
min?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
max?: string | undefined;
|
|
16
|
+
min?: string | undefined;
|
|
17
|
+
}>>;
|
|
18
|
+
status: z.ZodString;
|
|
19
|
+
suitabilityRating: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
suitabilityReason: z.ZodOptional<z.ZodString>;
|
|
21
|
+
suitabilityStatus: z.ZodOptional<z.ZodString>;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
suitabilityProposal: z.ZodOptional<z.ZodString>;
|
|
24
|
+
suitabilityQuestionAnswerPairs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25
|
+
question: z.ZodString;
|
|
26
|
+
answer: z.ZodString;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
answer: string;
|
|
29
|
+
question: string;
|
|
30
|
+
}, {
|
|
31
|
+
answer: string;
|
|
32
|
+
question: string;
|
|
33
|
+
}>, "many">>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
title: string;
|
|
36
|
+
description: string;
|
|
37
|
+
status: string;
|
|
38
|
+
jobId: string;
|
|
39
|
+
addedAt: string;
|
|
40
|
+
country?: string | undefined;
|
|
41
|
+
fixedPrice?: string | undefined;
|
|
42
|
+
hourlyRate?: {
|
|
43
|
+
max?: string | undefined;
|
|
44
|
+
min?: string | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
suitabilityRating?: number | undefined;
|
|
47
|
+
suitabilityReason?: string | undefined;
|
|
48
|
+
suitabilityStatus?: string | undefined;
|
|
49
|
+
suitabilityProposal?: string | undefined;
|
|
50
|
+
suitabilityQuestionAnswerPairs?: {
|
|
51
|
+
answer: string;
|
|
52
|
+
question: string;
|
|
53
|
+
}[] | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
title: string;
|
|
56
|
+
description: string;
|
|
57
|
+
status: string;
|
|
58
|
+
jobId: string;
|
|
59
|
+
addedAt: string;
|
|
60
|
+
country?: string | undefined;
|
|
61
|
+
fixedPrice?: string | undefined;
|
|
62
|
+
hourlyRate?: {
|
|
63
|
+
max?: string | undefined;
|
|
64
|
+
min?: string | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
suitabilityRating?: number | undefined;
|
|
67
|
+
suitabilityReason?: string | undefined;
|
|
68
|
+
suitabilityStatus?: string | undefined;
|
|
69
|
+
suitabilityProposal?: string | undefined;
|
|
70
|
+
suitabilityQuestionAnswerPairs?: {
|
|
71
|
+
answer: string;
|
|
72
|
+
question: string;
|
|
73
|
+
}[] | undefined;
|
|
74
|
+
}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.jobPipelineSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.jobPipelineSchema = zod_1.z.object({
|
|
6
|
+
jobId: zod_1.z.string(),
|
|
7
|
+
addedAt: zod_1.z.string(),
|
|
8
|
+
country: zod_1.z.string().optional(),
|
|
9
|
+
description: zod_1.z.string(),
|
|
10
|
+
fixedPrice: zod_1.z.string().optional(),
|
|
11
|
+
hourlyRate: zod_1.z
|
|
12
|
+
.object({
|
|
13
|
+
min: zod_1.z.string().optional(),
|
|
14
|
+
max: zod_1.z.string().optional(),
|
|
15
|
+
})
|
|
16
|
+
.optional(),
|
|
17
|
+
status: zod_1.z.string(),
|
|
18
|
+
suitabilityRating: zod_1.z.number().optional(),
|
|
19
|
+
suitabilityReason: zod_1.z.string().optional(),
|
|
20
|
+
suitabilityStatus: zod_1.z.string().optional(),
|
|
21
|
+
title: zod_1.z.string(),
|
|
22
|
+
suitabilityProposal: zod_1.z.string().optional(),
|
|
23
|
+
suitabilityQuestionAnswerPairs: zod_1.z
|
|
24
|
+
.array(zod_1.z.object({
|
|
25
|
+
question: zod_1.z.string(),
|
|
26
|
+
answer: zod_1.z.string(),
|
|
27
|
+
}))
|
|
28
|
+
.optional(),
|
|
29
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const jobSuitabilityStatusSchema: z.ZodEnum<["completed", "pending", "failed"]>;
|
|
3
|
+
export declare const questionAnswerPairSchema: z.ZodObject<{
|
|
4
|
+
question: z.ZodString;
|
|
5
|
+
answer: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
answer: string;
|
|
8
|
+
question: string;
|
|
9
|
+
}, {
|
|
10
|
+
answer: string;
|
|
11
|
+
question: string;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.questionAnswerPairSchema = exports.jobSuitabilityStatusSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.jobSuitabilityStatusSchema = zod_1.z.enum([
|
|
6
|
+
'completed',
|
|
7
|
+
'pending',
|
|
8
|
+
'failed',
|
|
9
|
+
]);
|
|
10
|
+
exports.questionAnswerPairSchema = zod_1.z.object({
|
|
11
|
+
question: zod_1.z.string(),
|
|
12
|
+
answer: zod_1.z.string(),
|
|
13
|
+
});
|
|
@@ -342,7 +342,7 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
342
342
|
} | null;
|
|
343
343
|
processed: boolean | null;
|
|
344
344
|
}>;
|
|
345
|
-
export declare const
|
|
345
|
+
export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
346
346
|
id: z.ZodNullable<z.ZodString>;
|
|
347
347
|
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
348
348
|
title: z.ZodNullable<z.ZodString>;
|
|
@@ -469,7 +469,6 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
469
469
|
}>>;
|
|
470
470
|
processed: z.ZodNullable<z.ZodBoolean>;
|
|
471
471
|
}, {
|
|
472
|
-
jobId: z.ZodString;
|
|
473
472
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
474
473
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
475
474
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -531,7 +530,6 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
531
530
|
description: string | null;
|
|
532
531
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
533
532
|
datetime: number | null;
|
|
534
|
-
jobId: string;
|
|
535
533
|
createdAt: number | null;
|
|
536
534
|
updatedAt: number | null;
|
|
537
535
|
questionAnswerPairs: {
|
|
@@ -606,7 +604,6 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
606
604
|
description: string | null;
|
|
607
605
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
608
606
|
datetime: number | null;
|
|
609
|
-
jobId: string;
|
|
610
607
|
createdAt: number | null;
|
|
611
608
|
updatedAt: number | null;
|
|
612
609
|
questionAnswerPairs: {
|
|
@@ -679,7 +676,7 @@ export declare const jobListItemSchema: z.ZodObject<{
|
|
|
679
676
|
jobUrl: string | null;
|
|
680
677
|
}>;
|
|
681
678
|
export declare const jobResponseSchema: z.ZodObject<{
|
|
682
|
-
|
|
679
|
+
jobs: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
683
680
|
id: z.ZodNullable<z.ZodString>;
|
|
684
681
|
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
685
682
|
title: z.ZodNullable<z.ZodString>;
|
|
@@ -806,7 +803,6 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
806
803
|
}>>;
|
|
807
804
|
processed: z.ZodNullable<z.ZodBoolean>;
|
|
808
805
|
}, {
|
|
809
|
-
jobId: z.ZodString;
|
|
810
806
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
811
807
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
812
808
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -868,7 +864,6 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
868
864
|
description: string | null;
|
|
869
865
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
870
866
|
datetime: number | null;
|
|
871
|
-
jobId: string;
|
|
872
867
|
createdAt: number | null;
|
|
873
868
|
updatedAt: number | null;
|
|
874
869
|
questionAnswerPairs: {
|
|
@@ -943,7 +938,6 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
943
938
|
description: string | null;
|
|
944
939
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
945
940
|
datetime: number | null;
|
|
946
|
-
jobId: string;
|
|
947
941
|
createdAt: number | null;
|
|
948
942
|
updatedAt: number | null;
|
|
949
943
|
questionAnswerPairs: {
|
|
@@ -1006,7 +1000,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1006
1000
|
hasMore: z.ZodBoolean;
|
|
1007
1001
|
jobCounts: z.ZodNullable<z.ZodNumber>;
|
|
1008
1002
|
}, "strip", z.ZodTypeAny, {
|
|
1009
|
-
|
|
1003
|
+
jobs: {
|
|
1010
1004
|
id: string | null;
|
|
1011
1005
|
title: string | null;
|
|
1012
1006
|
metadata: {
|
|
@@ -1023,7 +1017,6 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1023
1017
|
description: string | null;
|
|
1024
1018
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1025
1019
|
datetime: number | null;
|
|
1026
|
-
jobId: string;
|
|
1027
1020
|
createdAt: number | null;
|
|
1028
1021
|
updatedAt: number | null;
|
|
1029
1022
|
questionAnswerPairs: {
|
|
@@ -1086,7 +1079,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1086
1079
|
hasMore: boolean;
|
|
1087
1080
|
jobCounts: number | null;
|
|
1088
1081
|
}, {
|
|
1089
|
-
|
|
1082
|
+
jobs: {
|
|
1090
1083
|
id: string | null;
|
|
1091
1084
|
title: string | null;
|
|
1092
1085
|
metadata: {
|
|
@@ -1103,7 +1096,6 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1103
1096
|
description: string | null;
|
|
1104
1097
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1105
1098
|
datetime: number | null;
|
|
1106
|
-
jobId: string;
|
|
1107
1099
|
createdAt: number | null;
|
|
1108
1100
|
updatedAt: number | null;
|
|
1109
1101
|
questionAnswerPairs: {
|
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.
|
|
3
|
+
exports.jobResponseSchema = exports.jobListItemSchema = exports.jobSchema = 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");
|
|
@@ -64,8 +64,7 @@ exports.upworkJobSchema = zod_1.z.object({
|
|
|
64
64
|
vendorQualifications: exports.vendorQualificationSchema.nullable(),
|
|
65
65
|
processed: (0, zod_1.boolean)().nullable(),
|
|
66
66
|
});
|
|
67
|
-
exports.
|
|
68
|
-
jobId: zod_1.z.string(),
|
|
67
|
+
exports.jobSchema = exports.upworkJobSchema.extend({
|
|
69
68
|
updatedAt: zod_1.z.number().nullable(),
|
|
70
69
|
suitabilityRating: zod_1.z.number().nullable(),
|
|
71
70
|
suitabilityReason: zod_1.z.string().nullable(),
|
|
@@ -84,7 +83,7 @@ exports.jobListItemSchema = zod_1.z.object({
|
|
|
84
83
|
datetime: zod_1.z.string().nullable(),
|
|
85
84
|
});
|
|
86
85
|
exports.jobResponseSchema = zod_1.z.object({
|
|
87
|
-
|
|
86
|
+
jobs: zod_1.z.array(exports.jobSchema),
|
|
88
87
|
nextCursor: zod_1.z.string().nullable(),
|
|
89
88
|
hasMore: zod_1.z.boolean(),
|
|
90
89
|
jobCounts: zod_1.z.number().nullable(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
3
|
id: z.ZodNullable<z.ZodString>;
|
|
4
4
|
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -222,7 +222,7 @@ export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.ext
|
|
|
222
222
|
biddingAmount: z.ZodOptional<z.ZodNumber>;
|
|
223
223
|
boosted: z.ZodOptional<z.ZodBoolean>;
|
|
224
224
|
boostingAmount: z.ZodOptional<z.ZodNumber>;
|
|
225
|
-
}>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "clientInfo" | "addedAt" | "suitabilityRating" | "suitabilityReason" | "suitabilityStatus" | "biddingAmount" | "boosted" | "boostingAmount">, "strip", z.ZodTypeAny, {
|
|
225
|
+
}>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "questions" | "clientInfo" | "addedAt" | "suitabilityRating" | "suitabilityReason" | "suitabilityStatus" | "biddingAmount" | "boosted" | "boostingAmount">, "strip", z.ZodTypeAny, {
|
|
226
226
|
title: string | null;
|
|
227
227
|
metadata: {
|
|
228
228
|
hourlyRate: {
|
|
@@ -233,6 +233,7 @@ export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.ext
|
|
|
233
233
|
};
|
|
234
234
|
description: string | null;
|
|
235
235
|
jobId: string;
|
|
236
|
+
questions: string[] | null;
|
|
236
237
|
clientInfo: {
|
|
237
238
|
country: string | null;
|
|
238
239
|
};
|
|
@@ -256,6 +257,7 @@ export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.ext
|
|
|
256
257
|
};
|
|
257
258
|
description: string | null;
|
|
258
259
|
jobId: string;
|
|
260
|
+
questions: string[] | null;
|
|
259
261
|
clientInfo: {
|
|
260
262
|
country: string | null;
|
|
261
263
|
};
|
|
@@ -493,7 +495,7 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
493
495
|
biddingAmount: z.ZodOptional<z.ZodNumber>;
|
|
494
496
|
boosted: z.ZodOptional<z.ZodBoolean>;
|
|
495
497
|
boostingAmount: z.ZodOptional<z.ZodNumber>;
|
|
496
|
-
}>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "clientInfo" | "addedAt" | "suitabilityRating" | "suitabilityReason" | "suitabilityStatus" | "biddingAmount" | "boosted" | "boostingAmount">, "strip", z.ZodTypeAny, {
|
|
498
|
+
}>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "questions" | "clientInfo" | "addedAt" | "suitabilityRating" | "suitabilityReason" | "suitabilityStatus" | "biddingAmount" | "boosted" | "boostingAmount">, "strip", z.ZodTypeAny, {
|
|
497
499
|
title: string | null;
|
|
498
500
|
metadata: {
|
|
499
501
|
hourlyRate: {
|
|
@@ -504,6 +506,7 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
504
506
|
};
|
|
505
507
|
description: string | null;
|
|
506
508
|
jobId: string;
|
|
509
|
+
questions: string[] | null;
|
|
507
510
|
clientInfo: {
|
|
508
511
|
country: string | null;
|
|
509
512
|
};
|
|
@@ -527,6 +530,7 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
527
530
|
};
|
|
528
531
|
description: string | null;
|
|
529
532
|
jobId: string;
|
|
533
|
+
questions: string[] | null;
|
|
530
534
|
clientInfo: {
|
|
531
535
|
country: string | null;
|
|
532
536
|
};
|
|
@@ -555,6 +559,7 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
555
559
|
};
|
|
556
560
|
description: string | null;
|
|
557
561
|
jobId: string;
|
|
562
|
+
questions: string[] | null;
|
|
558
563
|
clientInfo: {
|
|
559
564
|
country: string | null;
|
|
560
565
|
};
|
|
@@ -583,6 +588,7 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
583
588
|
};
|
|
584
589
|
description: string | null;
|
|
585
590
|
jobId: string;
|
|
591
|
+
questions: string[] | null;
|
|
586
592
|
clientInfo: {
|
|
587
593
|
country: string | null;
|
|
588
594
|
};
|
|
@@ -33,6 +33,7 @@ exports.jobPipelineDetailsSchema = job_details_1.jobDetailsSchema
|
|
|
33
33
|
biddingAmount: true,
|
|
34
34
|
boostingAmount: true,
|
|
35
35
|
boosted: true,
|
|
36
|
+
questions: true,
|
|
36
37
|
});
|
|
37
38
|
exports.jobPipelineResponseSchema = zod_1.z.object({
|
|
38
39
|
jobs: zod_1.z.array(exports.jobPipelineDetailsSchema),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './knowledge-object';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./knowledge-object"), exports);
|