lancer-shared 1.2.45 → 1.2.47
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/bundle.cjs.js +0 -3
- package/dist/constants/organization.d.ts +2 -2
- package/dist/constants/proxies.d.ts +4 -0
- package/dist/constants/routes.js +6 -0
- package/dist/constants/upwork-filters.d.ts +5 -0
- package/dist/constants/upwork-filters.js +75 -0
- package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +5 -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/bid/bid-status.d.ts +30 -0
- package/dist/schemas/bid/bid-status.js +15 -0
- package/dist/schemas/bid/bid.d.ts +1 -20
- package/dist/schemas/bid/exceptions/base-exception.d.ts +4 -0
- package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +5 -0
- package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
- package/dist/schemas/bidding/proposal-dto.js +18 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +0 -8
- package/dist/schemas/campaign/campaign-integrations.d.ts +0 -5
- 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 +16 -16
- 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/organization/index.d.ts +1 -7
- package/dist/schemas/proxy/proxy.js +3 -1
- package/dist/schemas/scraper/scrape-response.d.ts +345 -0
- package/dist/schemas/scraper/scrape-response.js +9 -0
- package/dist/schemas/upwork-account/index.d.ts +1 -1
- package/dist/schemas/upwork-account/index.js +1 -1
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +14 -14
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +2 -2
- package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +92 -0
- package/dist/schemas/upwork-account/upwork-scraper-account.js +31 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +23 -23
- package/dist/schemas/upwork-account/upwork-scraping-account.js +4 -3
- 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/bid/bid-status.d.ts +5 -0
- package/dist/types/bid/bid-status.js +2 -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/dist/types/upwork-account/upwork-scraping-account.d.ts +2 -2
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -12324,7 +12324,6 @@ const organizationSchema = objectType({
|
|
|
12324
12324
|
name: stringType(),
|
|
12325
12325
|
type: organizationTypeSchema,
|
|
12326
12326
|
associatedBidders: z.array(stringType()).nullable(),
|
|
12327
|
-
tierId: organizationTierEnum,
|
|
12328
12327
|
subscription: subscriptionSchema.nullable(),
|
|
12329
12328
|
active: booleanType(),
|
|
12330
12329
|
limits: limitsSchema,
|
|
@@ -12357,7 +12356,6 @@ z.object({
|
|
|
12357
12356
|
const createOrganizationSchema = organizationSchema.pick({
|
|
12358
12357
|
name: true,
|
|
12359
12358
|
type: true,
|
|
12360
|
-
tierId: true,
|
|
12361
12359
|
});
|
|
12362
12360
|
const trackUsageEventTypeEnum = LogEventTypeEnum.extract([
|
|
12363
12361
|
"suitabilityComplete",
|
|
@@ -12455,7 +12453,6 @@ const bidPayloadProposalDataSchema = z.object({
|
|
|
12455
12453
|
coverLetter: z.string(),
|
|
12456
12454
|
questionAnswerPairs: questionAnswerPairSchema.array().nullable(),
|
|
12457
12455
|
boostingEnabled: z.boolean(),
|
|
12458
|
-
minimumBoost: z.number().nullable(),
|
|
12459
12456
|
maximumBoost: z.number().nullable(),
|
|
12460
12457
|
});
|
|
12461
12458
|
const freelancerBidProposalDataSchema = bidPayloadProposalDataSchema;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const creditDeductionAmountMap: Record<
|
|
1
|
+
import { CreditDeductionEventType } from "../schemas";
|
|
2
|
+
export declare const creditDeductionAmountMap: Record<CreditDeductionEventType, number>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ProxyCountry } from '../schemas';
|
|
2
|
+
export declare const countryToWebshareCountryCode: (country: ProxyCountry) => string;
|
|
3
|
+
export declare const webshareCountryCodeToCountry: (countryCode: string) => ProxyCountry;
|
|
4
|
+
export declare const IPQualityScoreCountryCodeToCountry: (countryCode: string) => ProxyCountry;
|
package/dist/constants/routes.js
CHANGED
|
@@ -91,6 +91,12 @@ exports.ROUTES = {
|
|
|
91
91
|
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
92
92
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
93
93
|
},
|
|
94
|
+
PROXIES: {
|
|
95
|
+
BASE: 'admin/proxies',
|
|
96
|
+
BY_ID: (id) => `admin/proxies/${id}`,
|
|
97
|
+
REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
|
|
98
|
+
SYNC: 'admin/proxies/sync',
|
|
99
|
+
},
|
|
94
100
|
},
|
|
95
101
|
BID: {
|
|
96
102
|
BASE: 'bid',
|
|
@@ -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,5 @@
|
|
|
1
|
+
export declare class NoBidderAccountsAvailableException extends Error {
|
|
2
|
+
readonly code = "NO_BIDDER_ACCOUNTS_AVAILABLE";
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const noBidderAccountsAvailableException: (message: string) => NoBidderAccountsAvailableException;
|
|
@@ -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,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const bidSuccessSchema: z.ZodObject<{
|
|
3
|
+
status: z.ZodLiteral<"success">;
|
|
4
|
+
biddingAmount: z.ZodNumber;
|
|
5
|
+
boosted: z.ZodBoolean;
|
|
6
|
+
boostingAmount: z.ZodNumber;
|
|
7
|
+
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
status: "success";
|
|
10
|
+
cookies: any[];
|
|
11
|
+
biddingAmount: number;
|
|
12
|
+
boosted: boolean;
|
|
13
|
+
boostingAmount: number;
|
|
14
|
+
}, {
|
|
15
|
+
status: "success";
|
|
16
|
+
cookies: any[];
|
|
17
|
+
biddingAmount: number;
|
|
18
|
+
boosted: boolean;
|
|
19
|
+
boostingAmount: number;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const bidFailedSchema: z.ZodObject<{
|
|
22
|
+
status: z.ZodLiteral<"failed">;
|
|
23
|
+
errorMessage: z.ZodString;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
status: "failed";
|
|
26
|
+
errorMessage: string;
|
|
27
|
+
}, {
|
|
28
|
+
status: "failed";
|
|
29
|
+
errorMessage: string;
|
|
30
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bidFailedSchema = exports.bidSuccessSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.bidSuccessSchema = zod_1.z.object({
|
|
6
|
+
status: zod_1.z.literal('success'),
|
|
7
|
+
biddingAmount: zod_1.z.number(),
|
|
8
|
+
boosted: zod_1.z.boolean(),
|
|
9
|
+
boostingAmount: zod_1.z.number(),
|
|
10
|
+
cookies: zod_1.z.array(zod_1.z.any()),
|
|
11
|
+
});
|
|
12
|
+
exports.bidFailedSchema = zod_1.z.object({
|
|
13
|
+
status: zod_1.z.literal('failed'),
|
|
14
|
+
errorMessage: zod_1.z.string(),
|
|
15
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
3
3
|
coverLetter: z.ZodString;
|
|
4
4
|
questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -12,7 +12,6 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
12
12
|
answer: string;
|
|
13
13
|
}>, "many">>;
|
|
14
14
|
boostingEnabled: z.ZodBoolean;
|
|
15
|
-
minimumBoost: z.ZodNullable<z.ZodNumber>;
|
|
16
15
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
17
16
|
}, "strip", z.ZodTypeAny, {
|
|
18
17
|
coverLetter: string;
|
|
@@ -21,7 +20,6 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
21
20
|
answer: string;
|
|
22
21
|
}[] | null;
|
|
23
22
|
boostingEnabled: boolean;
|
|
24
|
-
minimumBoost: number | null;
|
|
25
23
|
maximumBoost: number | null;
|
|
26
24
|
}, {
|
|
27
25
|
coverLetter: string;
|
|
@@ -30,7 +28,6 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
30
28
|
answer: string;
|
|
31
29
|
}[] | null;
|
|
32
30
|
boostingEnabled: boolean;
|
|
33
|
-
minimumBoost: number | null;
|
|
34
31
|
maximumBoost: number | null;
|
|
35
32
|
}>;
|
|
36
33
|
export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
@@ -46,7 +43,6 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
46
43
|
answer: string;
|
|
47
44
|
}>, "many">>;
|
|
48
45
|
boostingEnabled: z.ZodBoolean;
|
|
49
|
-
minimumBoost: z.ZodNullable<z.ZodNumber>;
|
|
50
46
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
51
47
|
}, "strip", z.ZodTypeAny, {
|
|
52
48
|
coverLetter: string;
|
|
@@ -55,7 +51,6 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
55
51
|
answer: string;
|
|
56
52
|
}[] | null;
|
|
57
53
|
boostingEnabled: boolean;
|
|
58
|
-
minimumBoost: number | null;
|
|
59
54
|
maximumBoost: number | null;
|
|
60
55
|
}, {
|
|
61
56
|
coverLetter: string;
|
|
@@ -64,7 +59,6 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
64
59
|
answer: string;
|
|
65
60
|
}[] | null;
|
|
66
61
|
boostingEnabled: boolean;
|
|
67
|
-
minimumBoost: number | null;
|
|
68
62
|
maximumBoost: number | null;
|
|
69
63
|
}>;
|
|
70
64
|
export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -80,7 +74,6 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
80
74
|
answer: string;
|
|
81
75
|
}>, "many">>;
|
|
82
76
|
boostingEnabled: z.ZodBoolean;
|
|
83
|
-
minimumBoost: z.ZodNullable<z.ZodNumber>;
|
|
84
77
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
85
78
|
}, {
|
|
86
79
|
agencyName: z.ZodString;
|
|
@@ -93,7 +86,6 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
93
86
|
answer: string;
|
|
94
87
|
}[] | null;
|
|
95
88
|
boostingEnabled: boolean;
|
|
96
|
-
minimumBoost: number | null;
|
|
97
89
|
maximumBoost: number | null;
|
|
98
90
|
agencyName: string;
|
|
99
91
|
contractorName: string;
|
|
@@ -105,7 +97,6 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
105
97
|
answer: string;
|
|
106
98
|
}[] | null;
|
|
107
99
|
boostingEnabled: boolean;
|
|
108
|
-
minimumBoost: number | null;
|
|
109
100
|
maximumBoost: number | null;
|
|
110
101
|
agencyName: string;
|
|
111
102
|
contractorName: string;
|
|
@@ -142,7 +133,6 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
142
133
|
answer: string;
|
|
143
134
|
}>, "many">>;
|
|
144
135
|
boostingEnabled: z.ZodBoolean;
|
|
145
|
-
minimumBoost: z.ZodNullable<z.ZodNumber>;
|
|
146
136
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
147
137
|
}, {
|
|
148
138
|
agencyName: z.ZodString;
|
|
@@ -155,7 +145,6 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
155
145
|
answer: string;
|
|
156
146
|
}[] | null;
|
|
157
147
|
boostingEnabled: boolean;
|
|
158
|
-
minimumBoost: number | null;
|
|
159
148
|
maximumBoost: number | null;
|
|
160
149
|
agencyName: string;
|
|
161
150
|
contractorName: string;
|
|
@@ -167,7 +156,6 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
167
156
|
answer: string;
|
|
168
157
|
}[] | null;
|
|
169
158
|
boostingEnabled: boolean;
|
|
170
|
-
minimumBoost: number | null;
|
|
171
159
|
maximumBoost: number | null;
|
|
172
160
|
agencyName: string;
|
|
173
161
|
contractorName: string;
|
|
@@ -184,7 +172,6 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
184
172
|
answer: string;
|
|
185
173
|
}[] | null;
|
|
186
174
|
boostingEnabled: boolean;
|
|
187
|
-
minimumBoost: number | null;
|
|
188
175
|
maximumBoost: number | null;
|
|
189
176
|
agencyName: string;
|
|
190
177
|
contractorName: string;
|
|
@@ -201,7 +188,6 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
201
188
|
answer: string;
|
|
202
189
|
}[] | null;
|
|
203
190
|
boostingEnabled: boolean;
|
|
204
|
-
minimumBoost: number | null;
|
|
205
191
|
maximumBoost: number | null;
|
|
206
192
|
agencyName: string;
|
|
207
193
|
contractorName: string;
|
|
@@ -226,7 +212,6 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
226
212
|
answer: string;
|
|
227
213
|
}>, "many">>;
|
|
228
214
|
boostingEnabled: z.ZodBoolean;
|
|
229
|
-
minimumBoost: z.ZodNullable<z.ZodNumber>;
|
|
230
215
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
231
216
|
}, "strip", z.ZodTypeAny, {
|
|
232
217
|
coverLetter: string;
|
|
@@ -235,7 +220,6 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
235
220
|
answer: string;
|
|
236
221
|
}[] | null;
|
|
237
222
|
boostingEnabled: boolean;
|
|
238
|
-
minimumBoost: number | null;
|
|
239
223
|
maximumBoost: number | null;
|
|
240
224
|
}, {
|
|
241
225
|
coverLetter: string;
|
|
@@ -244,7 +228,6 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
244
228
|
answer: string;
|
|
245
229
|
}[] | null;
|
|
246
230
|
boostingEnabled: boolean;
|
|
247
|
-
minimumBoost: number | null;
|
|
248
231
|
maximumBoost: number | null;
|
|
249
232
|
}>;
|
|
250
233
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -258,7 +241,6 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
258
241
|
answer: string;
|
|
259
242
|
}[] | null;
|
|
260
243
|
boostingEnabled: boolean;
|
|
261
|
-
minimumBoost: number | null;
|
|
262
244
|
maximumBoost: number | null;
|
|
263
245
|
};
|
|
264
246
|
}, {
|
|
@@ -272,7 +254,6 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
272
254
|
answer: string;
|
|
273
255
|
}[] | null;
|
|
274
256
|
boostingEnabled: boolean;
|
|
275
|
-
minimumBoost: number | null;
|
|
276
257
|
maximumBoost: number | null;
|
|
277
258
|
};
|
|
278
259
|
}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class WaitForFunctionTimeoutError extends Error {
|
|
2
|
+
readonly code = "WAIT_FOR_FUNCTION_TIMEOUT_ERROR";
|
|
3
|
+
constructor(fn: Function, timeout: number);
|
|
4
|
+
}
|
|
5
|
+
export declare const waitForFunctionTimeoutError: (fn: Function, timeout: number) => WaitForFunctionTimeoutError;
|
|
@@ -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
|
+
]);
|
|
@@ -160,7 +160,6 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
160
160
|
name: z.ZodString;
|
|
161
161
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
162
162
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
163
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
164
163
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
165
164
|
planId: z.ZodString;
|
|
166
165
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -669,7 +668,6 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
669
668
|
name: z.ZodString;
|
|
670
669
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
671
670
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
672
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
673
671
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
674
672
|
planId: z.ZodString;
|
|
675
673
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -1523,7 +1521,6 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1523
1521
|
name: z.ZodString;
|
|
1524
1522
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
1525
1523
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
1526
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
1527
1524
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
1528
1525
|
planId: z.ZodString;
|
|
1529
1526
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -2377,7 +2374,6 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2377
2374
|
name: z.ZodString;
|
|
2378
2375
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
2379
2376
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
2380
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
2381
2377
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
2382
2378
|
planId: z.ZodString;
|
|
2383
2379
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -3228,7 +3224,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3228
3224
|
name: z.ZodString;
|
|
3229
3225
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
3230
3226
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
3231
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
3232
3227
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
3233
3228
|
planId: z.ZodString;
|
|
3234
3229
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -3736,7 +3731,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3736
3731
|
name: z.ZodString;
|
|
3737
3732
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
3738
3733
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
3739
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
3740
3734
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
3741
3735
|
planId: z.ZodString;
|
|
3742
3736
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -4589,7 +4583,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4589
4583
|
name: z.ZodString;
|
|
4590
4584
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
4591
4585
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
4592
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
4593
4586
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
4594
4587
|
planId: z.ZodString;
|
|
4595
4588
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -5442,7 +5435,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5442
5435
|
name: z.ZodString;
|
|
5443
5436
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
5444
5437
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
5445
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
5446
5438
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
5447
5439
|
planId: z.ZodString;
|
|
5448
5440
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -80,8 +80,3 @@ export declare const updateCampaignIntegrationsSchema: z.ZodObject<{
|
|
|
80
80
|
slack: string | null;
|
|
81
81
|
} | undefined;
|
|
82
82
|
}>;
|
|
83
|
-
export type CampaignIntegration = z.infer<typeof campaignIntegrations>;
|
|
84
|
-
export interface CampaignIntegrations extends z.infer<typeof campaignIntegrationsSchema> {
|
|
85
|
-
}
|
|
86
|
-
export interface UpdateCampaignIntegrations extends z.infer<typeof updateCampaignIntegrationsSchema> {
|
|
87
|
-
}
|
|
@@ -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
|
+
}>;
|