lancer-shared 1.2.62 → 1.2.64
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 +1 -2
- package/dist/constants/organization.d.ts +2 -2
- package/dist/constants/proxies.d.ts +4 -0
- package/dist/constants/routes.d.ts +0 -1
- 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/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-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/proxy/proxy.d.ts +7 -7
- package/dist/schemas/proxy/proxy.js +3 -1
- package/dist/schemas/scraper/scrape-payload.d.ts +2 -2
- 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
|
@@ -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);
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const KnowledgeObjectSchema: z.ZodObject<{
|
|
3
|
+
categories: z.ZodObject<any, "strip", z.ZodTypeAny, {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
}, {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
}>;
|
|
8
|
+
experienceLevels: z.ZodObject<any, "strip", z.ZodTypeAny, {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}, {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
}>;
|
|
13
|
+
minHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
fixedPriceMin: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
clientHistory: z.ZodObject<any, "strip", z.ZodTypeAny, {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
}, {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
}>;
|
|
20
|
+
keywords: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
categories: {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
};
|
|
25
|
+
experienceLevels: {
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
};
|
|
28
|
+
minHourlyRate: number | null;
|
|
29
|
+
fixedPriceMin: number | null;
|
|
30
|
+
clientHistory: {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
};
|
|
33
|
+
keywords: string[] | null;
|
|
34
|
+
}, {
|
|
35
|
+
categories: {
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
};
|
|
38
|
+
experienceLevels: {
|
|
39
|
+
[x: string]: any;
|
|
40
|
+
};
|
|
41
|
+
minHourlyRate: number | null;
|
|
42
|
+
fixedPriceMin: number | null;
|
|
43
|
+
clientHistory: {
|
|
44
|
+
[x: string]: any;
|
|
45
|
+
};
|
|
46
|
+
keywords: string[] | null;
|
|
47
|
+
}>;
|
|
48
|
+
export declare const chatResponseSchema: z.ZodObject<{
|
|
49
|
+
followUpQuestion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
knowledgeObject: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
categories: z.ZodObject<any, "strip", z.ZodTypeAny, {
|
|
52
|
+
[x: string]: any;
|
|
53
|
+
}, {
|
|
54
|
+
[x: string]: any;
|
|
55
|
+
}>;
|
|
56
|
+
experienceLevels: z.ZodObject<any, "strip", z.ZodTypeAny, {
|
|
57
|
+
[x: string]: any;
|
|
58
|
+
}, {
|
|
59
|
+
[x: string]: any;
|
|
60
|
+
}>;
|
|
61
|
+
minHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
fixedPriceMin: z.ZodNullable<z.ZodNumber>;
|
|
63
|
+
clientHistory: z.ZodObject<any, "strip", z.ZodTypeAny, {
|
|
64
|
+
[x: string]: any;
|
|
65
|
+
}, {
|
|
66
|
+
[x: string]: any;
|
|
67
|
+
}>;
|
|
68
|
+
keywords: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
categories: {
|
|
71
|
+
[x: string]: any;
|
|
72
|
+
};
|
|
73
|
+
experienceLevels: {
|
|
74
|
+
[x: string]: any;
|
|
75
|
+
};
|
|
76
|
+
minHourlyRate: number | null;
|
|
77
|
+
fixedPriceMin: number | null;
|
|
78
|
+
clientHistory: {
|
|
79
|
+
[x: string]: any;
|
|
80
|
+
};
|
|
81
|
+
keywords: string[] | null;
|
|
82
|
+
}, {
|
|
83
|
+
categories: {
|
|
84
|
+
[x: string]: any;
|
|
85
|
+
};
|
|
86
|
+
experienceLevels: {
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
};
|
|
89
|
+
minHourlyRate: number | null;
|
|
90
|
+
fixedPriceMin: number | null;
|
|
91
|
+
clientHistory: {
|
|
92
|
+
[x: string]: any;
|
|
93
|
+
};
|
|
94
|
+
keywords: string[] | null;
|
|
95
|
+
}>>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
followUpQuestion?: string | null | undefined;
|
|
98
|
+
knowledgeObject?: {
|
|
99
|
+
categories: {
|
|
100
|
+
[x: string]: any;
|
|
101
|
+
};
|
|
102
|
+
experienceLevels: {
|
|
103
|
+
[x: string]: any;
|
|
104
|
+
};
|
|
105
|
+
minHourlyRate: number | null;
|
|
106
|
+
fixedPriceMin: number | null;
|
|
107
|
+
clientHistory: {
|
|
108
|
+
[x: string]: any;
|
|
109
|
+
};
|
|
110
|
+
keywords: string[] | null;
|
|
111
|
+
} | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
followUpQuestion?: string | null | undefined;
|
|
114
|
+
knowledgeObject?: {
|
|
115
|
+
categories: {
|
|
116
|
+
[x: string]: any;
|
|
117
|
+
};
|
|
118
|
+
experienceLevels: {
|
|
119
|
+
[x: string]: any;
|
|
120
|
+
};
|
|
121
|
+
minHourlyRate: number | null;
|
|
122
|
+
fixedPriceMin: number | null;
|
|
123
|
+
clientHistory: {
|
|
124
|
+
[x: string]: any;
|
|
125
|
+
};
|
|
126
|
+
keywords: string[] | null;
|
|
127
|
+
} | undefined;
|
|
128
|
+
}>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chatResponseSchema = exports.KnowledgeObjectSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const job_filter_options_1 = require("../../constants/job-filter-options");
|
|
6
|
+
exports.KnowledgeObjectSchema = zod_1.z.object({
|
|
7
|
+
categories: zod_1.z
|
|
8
|
+
.object(job_filter_options_1.CATEGORIES.reduce((acc, category) => (Object.assign(Object.assign({}, acc), { [category]: zod_1.z
|
|
9
|
+
.boolean()
|
|
10
|
+
.nullable()
|
|
11
|
+
.describe(`Indicates if ${category} category is suitable based on skills and services`) })), {}))
|
|
12
|
+
.describe('Job categories for the agency'),
|
|
13
|
+
experienceLevels: zod_1.z
|
|
14
|
+
.object(job_filter_options_1.EXPERIENCE_LEVELS.reduce((acc, level) => (Object.assign(Object.assign({}, acc), { [level]: zod_1.z
|
|
15
|
+
.boolean()
|
|
16
|
+
.nullable()
|
|
17
|
+
.describe(`Has ${level} experience level`) })), {}))
|
|
18
|
+
.describe('Experience level of the agency in the services they offer'),
|
|
19
|
+
minHourlyRate: zod_1.z
|
|
20
|
+
.number()
|
|
21
|
+
.min(0)
|
|
22
|
+
.nullable()
|
|
23
|
+
.describe('Minimum hourly rate in USD that the agency is willing to accept for providing their services'),
|
|
24
|
+
fixedPriceMin: zod_1.z
|
|
25
|
+
.number()
|
|
26
|
+
.min(0)
|
|
27
|
+
.nullable()
|
|
28
|
+
.describe('Minimum budget of the project in USD that the agency is willing to accept for providing their services'),
|
|
29
|
+
clientHistory: zod_1.z
|
|
30
|
+
.object(job_filter_options_1.CLIENT_HISTORY.reduce((acc, history) => (Object.assign(Object.assign({}, acc), { [history]: zod_1.z
|
|
31
|
+
.boolean()
|
|
32
|
+
.nullable()
|
|
33
|
+
.describe(`Whether the job poster (client) has made ${history} hires on Upwork. This refers to the client's hiring history, not the agency's experience.`) })), {}))
|
|
34
|
+
.describe("Filters for the job poster's (client's) hiring history on Upwork - indicates how many previous hires the client should have made to be considered suitable"),
|
|
35
|
+
keywords: zod_1.z
|
|
36
|
+
.array(zod_1.z.string())
|
|
37
|
+
.nullable()
|
|
38
|
+
.describe('List of search keywords that best match the agency\'s expertise and services. These keywords will be used when searching for job posts on Upwork to find the most relevant opportunities. Examples might include specific technologies, skills, or service areas like "React.js", "mobile development", or "UI/UX design".'),
|
|
39
|
+
});
|
|
40
|
+
exports.chatResponseSchema = zod_1.z.object({
|
|
41
|
+
followUpQuestion: zod_1.z
|
|
42
|
+
.string()
|
|
43
|
+
.nullable()
|
|
44
|
+
.optional()
|
|
45
|
+
.describe('This is a question that you should ask a user for a field that you left null. This is important. Always ask this if there is a null field.'),
|
|
46
|
+
knowledgeObject: exports.KnowledgeObjectSchema.optional(),
|
|
47
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { proxyCountrySchema } from './proxy-country';
|
|
3
3
|
export declare const proxyStatusSchema: z.ZodEnum<["invalid", "valid", "pending_validation"]>;
|
|
4
|
-
export declare const proxyProviderSchema: z.ZodEnum<["webshare"]>;
|
|
4
|
+
export declare const proxyProviderSchema: z.ZodEnum<["webshare", "decodo"]>;
|
|
5
5
|
export declare const proxySchema: z.ZodObject<{
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
externalId: z.ZodString;
|
|
@@ -9,7 +9,7 @@ export declare const proxySchema: z.ZodObject<{
|
|
|
9
9
|
port: z.ZodNumber;
|
|
10
10
|
username: z.ZodString;
|
|
11
11
|
password: z.ZodString;
|
|
12
|
-
provider: z.ZodEnum<["webshare"]>;
|
|
12
|
+
provider: z.ZodEnum<["webshare", "decodo"]>;
|
|
13
13
|
fraudScore: z.ZodNullable<z.ZodNumber>;
|
|
14
14
|
claimedCountry: z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>;
|
|
15
15
|
status: z.ZodNullable<z.ZodEnum<["invalid", "valid", "pending_validation"]>>;
|
|
@@ -22,7 +22,7 @@ export declare const proxySchema: z.ZodObject<{
|
|
|
22
22
|
port: number;
|
|
23
23
|
username: string;
|
|
24
24
|
password: string;
|
|
25
|
-
provider: "webshare";
|
|
25
|
+
provider: "webshare" | "decodo";
|
|
26
26
|
fraudScore: number | null;
|
|
27
27
|
claimedCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
|
28
28
|
status: "invalid" | "valid" | "pending_validation" | null;
|
|
@@ -35,7 +35,7 @@ export declare const proxySchema: z.ZodObject<{
|
|
|
35
35
|
port: number;
|
|
36
36
|
username: string;
|
|
37
37
|
password: string;
|
|
38
|
-
provider: "webshare";
|
|
38
|
+
provider: "webshare" | "decodo";
|
|
39
39
|
fraudScore: number | null;
|
|
40
40
|
claimedCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
|
41
41
|
status: "invalid" | "valid" | "pending_validation" | null;
|
|
@@ -49,7 +49,7 @@ export declare const externalProxySchema: z.ZodObject<Omit<{
|
|
|
49
49
|
port: z.ZodNumber;
|
|
50
50
|
username: z.ZodString;
|
|
51
51
|
password: z.ZodString;
|
|
52
|
-
provider: z.ZodEnum<["webshare"]>;
|
|
52
|
+
provider: z.ZodEnum<["webshare", "decodo"]>;
|
|
53
53
|
fraudScore: z.ZodNullable<z.ZodNumber>;
|
|
54
54
|
claimedCountry: z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>;
|
|
55
55
|
status: z.ZodNullable<z.ZodEnum<["invalid", "valid", "pending_validation"]>>;
|
|
@@ -61,7 +61,7 @@ export declare const externalProxySchema: z.ZodObject<Omit<{
|
|
|
61
61
|
port: number;
|
|
62
62
|
username: string;
|
|
63
63
|
password: string;
|
|
64
|
-
provider: "webshare";
|
|
64
|
+
provider: "webshare" | "decodo";
|
|
65
65
|
claimedCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
|
66
66
|
}, {
|
|
67
67
|
externalId: string;
|
|
@@ -69,7 +69,7 @@ export declare const externalProxySchema: z.ZodObject<Omit<{
|
|
|
69
69
|
port: number;
|
|
70
70
|
username: string;
|
|
71
71
|
password: string;
|
|
72
|
-
provider: "webshare";
|
|
72
|
+
provider: "webshare" | "decodo";
|
|
73
73
|
claimedCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
|
74
74
|
}>;
|
|
75
75
|
export type ProxyProvider = z.infer<typeof proxyProviderSchema>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.externalProxySchema = exports.proxySchema = exports.proxyCountrySchema = exports.proxyProviderSchema = void 0;
|
|
3
|
+
exports.externalProxySchema = exports.proxySchema = exports.proxyCountrySchema = exports.proxyProviderSchema = exports.proxyStatusSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
exports.proxyStatusSchema = zod_1.z.enum(['ready', 'pending', 'to_replace']);
|
|
5
6
|
exports.proxyProviderSchema = zod_1.z.enum(['webshare']);
|
|
6
7
|
exports.proxyCountrySchema = zod_1.z.enum(['USA']);
|
|
7
8
|
exports.proxySchema = zod_1.z.object({
|
|
@@ -13,6 +14,7 @@ exports.proxySchema = zod_1.z.object({
|
|
|
13
14
|
password: zod_1.z.string(),
|
|
14
15
|
provider: exports.proxyProviderSchema,
|
|
15
16
|
country: exports.proxyCountrySchema,
|
|
17
|
+
status: exports.proxyStatusSchema,
|
|
16
18
|
bidderId: zod_1.z.string().nullable(),
|
|
17
19
|
});
|
|
18
20
|
exports.externalProxySchema = exports.proxySchema.omit({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { infer } from
|
|
2
|
-
import { BidderAccount } from
|
|
1
|
+
import { infer } from 'zod';
|
|
2
|
+
import { BidderAccount } from '../account';
|
|
3
3
|
export declare const scrapePayloadSchema: import("zod").ZodObject<{
|
|
4
4
|
latestJobsUrls: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
5
5
|
}, "strip", import("zod").ZodTypeAny, {
|