lancer-shared 1.0.120 → 1.0.122
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/routes.d.ts +2 -2
- package/dist/constants/routes.js +29 -29
- package/dist/schemas/bid/bid.d.ts +12 -3
- package/dist/schemas/bid/bid.js +2 -1
- package/dist/schemas/job/job.d.ts +16 -16
- package/dist/schemas/job/pipeline-job.d.ts +3 -9
- package/dist/schemas/job/pipeline-job.js +0 -1
- 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-scraping-account.d.ts +23 -23
- package/dist/schemas/upwork-account/upwork-scraping-account.js +3 -4
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +2 -2
- package/package.json +1 -1
- package/dist/constants/upwork-filters.d.ts +0 -5
- package/dist/constants/upwork-filters.js +0 -75
- package/dist/schemas/ai-config/ai-config.d.ts +0 -39
- package/dist/schemas/ai-config/ai-config.js +0 -12
- package/dist/schemas/ai-config/index.d.ts +0 -1
- package/dist/schemas/ai-config/index.js +0 -17
- package/dist/schemas/bid/bid-status.d.ts +0 -30
- package/dist/schemas/bid/bid-status.js +0 -15
- package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
- package/dist/schemas/bidding/proposal-dto.js +0 -18
- package/dist/schemas/job/job-pipeline.d.ts +0 -74
- package/dist/schemas/job/job-pipeline.js +0 -29
- package/dist/schemas/job/job-suitability.d.ts +0 -12
- package/dist/schemas/job/job-suitability.js +0 -13
- package/dist/schemas/knowledge-object/index.d.ts +0 -1
- package/dist/schemas/knowledge-object/index.js +0 -17
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
- package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
- package/dist/schemas/scraper/scrape-response.d.ts +0 -345
- package/dist/schemas/scraper/scrape-response.js +0 -9
- package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
- package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
- package/dist/types/ai-config/ai-config.d.ts +0 -6
- package/dist/types/ai-config/ai-config.js +0 -2
- package/dist/types/ai-config/index.d.ts +0 -1
- package/dist/types/ai-config/index.js +0 -17
- package/dist/types/bid/bid-status.d.ts +0 -5
- package/dist/types/bid/bid-status.js +0 -2
- package/dist/types/bidding/proposal-dto.d.ts +0 -3
- package/dist/types/bidding/proposal-dto.js +0 -2
- package/dist/types/job/job-pipeline.d.ts +0 -4
- package/dist/types/job/job-pipeline.js +0 -2
- package/dist/types/job/job-suitability.d.ts +0 -3
- package/dist/types/job/job-suitability.js +0 -2
- package/dist/types/knowledge-object/index.d.ts +0 -1
- package/dist/types/knowledge-object/index.js +0 -17
- package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
- package/dist/types/knowledge-object/knowledge-object.js +0 -2
- package/dist/types/scraper/scrape-response.d.ts +0 -4
- package/dist/types/scraper/scrape-response.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TimeFilter } from
|
|
1
|
+
import { LeadStatus, TimeFilter } from "../types";
|
|
2
2
|
export declare const ROUTES: {
|
|
3
3
|
readonly AUTH: {
|
|
4
4
|
readonly BASE: "auth";
|
|
@@ -21,7 +21,7 @@ export declare const ROUTES: {
|
|
|
21
21
|
readonly INSIGHTS: (campaignId: string) => string;
|
|
22
22
|
readonly CONNECT_SAVED: (campaignId: string) => string;
|
|
23
23
|
readonly ANALYTICS: (campaignId: string, timeFilter: TimeFilter) => string;
|
|
24
|
-
readonly ACTIVITY: (campaignId: string) => string;
|
|
24
|
+
readonly ACTIVITY: (campaignId: string, status: LeadStatus) => string;
|
|
25
25
|
readonly INTEGRATIONS: {
|
|
26
26
|
readonly BASE: (campaignId: string) => string;
|
|
27
27
|
readonly TEST_SUITABILITY_WEBHOOK: (campaignId: string, integrationId: string) => string;
|
package/dist/constants/routes.js
CHANGED
|
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.buildRoute = exports.ROUTES = void 0;
|
|
4
4
|
exports.ROUTES = {
|
|
5
5
|
AUTH: {
|
|
6
|
-
BASE:
|
|
7
|
-
REGISTER:
|
|
6
|
+
BASE: "auth",
|
|
7
|
+
REGISTER: "auth/register",
|
|
8
8
|
},
|
|
9
9
|
EVENTS: {
|
|
10
|
-
BASE:
|
|
10
|
+
BASE: "events",
|
|
11
11
|
BY_ID: (id) => `events/${id}`,
|
|
12
12
|
},
|
|
13
13
|
CAMPAIGNS: {
|
|
14
|
-
BASE:
|
|
14
|
+
BASE: "campaigns",
|
|
15
15
|
BY_ID: (id) => `campaigns/${id}`,
|
|
16
16
|
LEADS: {
|
|
17
17
|
BASE: (campaignId) => `campaigns/${campaignId}/leads`,
|
|
@@ -23,7 +23,7 @@ exports.ROUTES = {
|
|
|
23
23
|
INSIGHTS: (campaignId) => `campaigns/${campaignId}/insights`,
|
|
24
24
|
CONNECT_SAVED: (campaignId) => `campaigns/${campaignId}/get-connects-saved`,
|
|
25
25
|
ANALYTICS: (campaignId, timeFilter) => `campaigns/${campaignId}/analytics?createdAt=${timeFilter}`,
|
|
26
|
-
ACTIVITY: (campaignId) => `campaigns/${campaignId}/activity`,
|
|
26
|
+
ACTIVITY: (campaignId, status) => `campaigns/${campaignId}/activity?status=${status}`,
|
|
27
27
|
INTEGRATIONS: {
|
|
28
28
|
BASE: (campaignId) => `campaigns/${campaignId}/integrations`,
|
|
29
29
|
TEST_SUITABILITY_WEBHOOK: (campaignId, integrationId) => `campaigns/${campaignId}/integrations/${integrationId}/suitability/test-webhook`,
|
|
@@ -43,55 +43,55 @@ exports.ROUTES = {
|
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
45
|
JOBS: {
|
|
46
|
-
BASE:
|
|
46
|
+
BASE: "jobs",
|
|
47
47
|
BY_ID: (id) => `jobs/${id}`,
|
|
48
|
-
IMPORT:
|
|
49
|
-
FILTER_OPTIONS:
|
|
50
|
-
TOTAL_JOBS:
|
|
48
|
+
IMPORT: "jobs/import",
|
|
49
|
+
FILTER_OPTIONS: "jobs/filter-options",
|
|
50
|
+
TOTAL_JOBS: "jobs/total-jobs",
|
|
51
51
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
52
|
-
SEARCH:
|
|
52
|
+
SEARCH: "jobs/search",
|
|
53
53
|
},
|
|
54
54
|
USERS: {
|
|
55
|
-
BASE:
|
|
55
|
+
BASE: "users",
|
|
56
56
|
BY_ID: (id) => `users/${id}`,
|
|
57
57
|
},
|
|
58
58
|
AI_CONFIG: {
|
|
59
|
-
BASE:
|
|
59
|
+
BASE: "ai-config",
|
|
60
60
|
},
|
|
61
61
|
COOKIES: {
|
|
62
|
-
BASE:
|
|
63
|
-
SCRAPE:
|
|
62
|
+
BASE: "cookies",
|
|
63
|
+
SCRAPE: "cookies/scrape-cookies",
|
|
64
64
|
},
|
|
65
65
|
SCRAPING: {
|
|
66
|
-
BASE:
|
|
67
|
-
START_SCRAPING:
|
|
68
|
-
START_WORLDWIDE_SCRAPING:
|
|
69
|
-
START_US_SCRAPING:
|
|
70
|
-
START_UK_SCRAPING:
|
|
71
|
-
UPDATE_ACTIVITY_4H_WORLDWIDE:
|
|
72
|
-
UPDATE_ACTIVITY_4H_UK:
|
|
73
|
-
UPDATE_ACTIVITY_4H_US:
|
|
74
|
-
UPDATE_ACTIVITY_24H_WORLDWIDE:
|
|
75
|
-
UPDATE_ACTIVITY_24H_UK:
|
|
76
|
-
UPDATE_ACTIVITY_24H_US:
|
|
66
|
+
BASE: "scraping",
|
|
67
|
+
START_SCRAPING: "scraping/start",
|
|
68
|
+
START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
|
|
69
|
+
START_US_SCRAPING: "scraping/start-us",
|
|
70
|
+
START_UK_SCRAPING: "scraping/start-uk",
|
|
71
|
+
UPDATE_ACTIVITY_4H_WORLDWIDE: "scraping/update-activity/4h",
|
|
72
|
+
UPDATE_ACTIVITY_4H_UK: "scraping/update-activity/4h/uk",
|
|
73
|
+
UPDATE_ACTIVITY_4H_US: "scraping/update-activity/4h/us",
|
|
74
|
+
UPDATE_ACTIVITY_24H_WORLDWIDE: "scraping/update-activity/24h",
|
|
75
|
+
UPDATE_ACTIVITY_24H_UK: "scraping/update-activity/24h/uk",
|
|
76
|
+
UPDATE_ACTIVITY_24H_US: "scraping/update-activity/24h/us",
|
|
77
77
|
},
|
|
78
78
|
ADMIN: {
|
|
79
|
-
BASE:
|
|
79
|
+
BASE: "admin",
|
|
80
80
|
MANAGER_ACCOUNTS: {
|
|
81
|
-
BASE:
|
|
81
|
+
BASE: "admin/manager-accounts",
|
|
82
82
|
BY_ID: (id) => `admin/manager-accounts/${id}`,
|
|
83
83
|
BY_PROVIDER: (provider) => `admin/manager-accounts/${provider}`,
|
|
84
84
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/manager-accounts/${provider}/${id}`,
|
|
85
85
|
},
|
|
86
86
|
SCRAPER_ACCOUNTS: {
|
|
87
|
-
BASE:
|
|
87
|
+
BASE: "admin/scraper-accounts",
|
|
88
88
|
BY_ID: (id) => `admin/scraper-accounts/${id}`,
|
|
89
89
|
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
90
90
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
93
|
BID: {
|
|
94
|
-
BASE:
|
|
94
|
+
BASE: "bid",
|
|
95
95
|
BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
|
|
96
96
|
},
|
|
97
97
|
};
|
|
@@ -114,11 +114,12 @@ export declare const agencyBidFormDataSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
114
114
|
export declare const bidSchema: z.ZodObject<{
|
|
115
115
|
userId: z.ZodString;
|
|
116
116
|
jobUrl: z.ZodString;
|
|
117
|
-
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
118
117
|
jobId: z.ZodString;
|
|
119
118
|
campaignId: z.ZodString;
|
|
120
119
|
username: z.ZodString;
|
|
121
120
|
password: z.ZodString;
|
|
121
|
+
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
122
|
+
proxyUrl: z.ZodNullable<z.ZodString>;
|
|
122
123
|
}, "strip", z.ZodTypeAny, {
|
|
123
124
|
username: string;
|
|
124
125
|
jobId: string;
|
|
@@ -127,6 +128,7 @@ export declare const bidSchema: z.ZodObject<{
|
|
|
127
128
|
jobUrl: string;
|
|
128
129
|
userId: string;
|
|
129
130
|
campaignId: string;
|
|
131
|
+
proxyUrl: string | null;
|
|
130
132
|
}, {
|
|
131
133
|
username: string;
|
|
132
134
|
jobId: string;
|
|
@@ -135,15 +137,17 @@ export declare const bidSchema: z.ZodObject<{
|
|
|
135
137
|
jobUrl: string;
|
|
136
138
|
userId: string;
|
|
137
139
|
campaignId: string;
|
|
140
|
+
proxyUrl: string | null;
|
|
138
141
|
}>;
|
|
139
142
|
export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
140
143
|
userId: z.ZodString;
|
|
141
144
|
jobUrl: z.ZodString;
|
|
142
|
-
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
143
145
|
jobId: z.ZodString;
|
|
144
146
|
campaignId: z.ZodString;
|
|
145
147
|
username: z.ZodString;
|
|
146
148
|
password: z.ZodString;
|
|
149
|
+
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
150
|
+
proxyUrl: z.ZodNullable<z.ZodString>;
|
|
147
151
|
}, {
|
|
148
152
|
formData: z.ZodObject<z.objectUtil.extendShape<{
|
|
149
153
|
coverLetter: z.ZodString;
|
|
@@ -210,6 +214,7 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
210
214
|
jobUrl: string;
|
|
211
215
|
userId: string;
|
|
212
216
|
campaignId: string;
|
|
217
|
+
proxyUrl: string | null;
|
|
213
218
|
}, {
|
|
214
219
|
formData: {
|
|
215
220
|
coverLetter: string;
|
|
@@ -231,15 +236,17 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
231
236
|
jobUrl: string;
|
|
232
237
|
userId: string;
|
|
233
238
|
campaignId: string;
|
|
239
|
+
proxyUrl: string | null;
|
|
234
240
|
}>;
|
|
235
241
|
export declare const freelancerBidSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
236
242
|
userId: z.ZodString;
|
|
237
243
|
jobUrl: z.ZodString;
|
|
238
|
-
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
239
244
|
jobId: z.ZodString;
|
|
240
245
|
campaignId: z.ZodString;
|
|
241
246
|
username: z.ZodString;
|
|
242
247
|
password: z.ZodString;
|
|
248
|
+
cookies: z.ZodArray<z.ZodAny, "many">;
|
|
249
|
+
proxyUrl: z.ZodNullable<z.ZodString>;
|
|
243
250
|
}, {
|
|
244
251
|
formData: z.ZodObject<{
|
|
245
252
|
coverLetter: z.ZodString;
|
|
@@ -293,6 +300,7 @@ export declare const freelancerBidSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
293
300
|
jobUrl: string;
|
|
294
301
|
userId: string;
|
|
295
302
|
campaignId: string;
|
|
303
|
+
proxyUrl: string | null;
|
|
296
304
|
}, {
|
|
297
305
|
formData: {
|
|
298
306
|
coverLetter: string;
|
|
@@ -311,4 +319,5 @@ export declare const freelancerBidSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
311
319
|
jobUrl: string;
|
|
312
320
|
userId: string;
|
|
313
321
|
campaignId: string;
|
|
322
|
+
proxyUrl: string | null;
|
|
314
323
|
}>;
|
package/dist/schemas/bid/bid.js
CHANGED
|
@@ -19,11 +19,12 @@ exports.agencyBidFormDataSchema = exports.bidFormDataSchema.extend({
|
|
|
19
19
|
exports.bidSchema = zod_1.z.object({
|
|
20
20
|
userId: zod_1.z.string(),
|
|
21
21
|
jobUrl: zod_1.z.string(),
|
|
22
|
-
cookies: zod_1.z.array(zod_1.z.any()),
|
|
23
22
|
jobId: zod_1.z.string(),
|
|
24
23
|
campaignId: zod_1.z.string(),
|
|
25
24
|
username: zod_1.z.string(),
|
|
26
25
|
password: zod_1.z.string(),
|
|
26
|
+
cookies: zod_1.z.array(zod_1.z.any()),
|
|
27
|
+
proxyUrl: zod_1.z.string().nullable().describe('user:pass@host:port'),
|
|
27
28
|
});
|
|
28
29
|
exports.agencyBidSchema = exports.bidSchema.extend({
|
|
29
30
|
formData: exports.agencyBidFormDataSchema,
|
|
@@ -44,9 +44,9 @@ export declare const clientInfoSchema: z.ZodObject<{
|
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
45
|
country: string | null;
|
|
46
46
|
region: string | null;
|
|
47
|
+
rating: number | null;
|
|
47
48
|
isPaymentVerified: boolean | null;
|
|
48
49
|
numberOfReviews: number | null;
|
|
49
|
-
rating: number | null;
|
|
50
50
|
jobsPosted: number | null;
|
|
51
51
|
totalSpent: number | null;
|
|
52
52
|
numberOfHires: number | null;
|
|
@@ -60,9 +60,9 @@ export declare const clientInfoSchema: z.ZodObject<{
|
|
|
60
60
|
}, {
|
|
61
61
|
country: string | null;
|
|
62
62
|
region: string | null;
|
|
63
|
+
rating: number | null;
|
|
63
64
|
isPaymentVerified: boolean | null;
|
|
64
65
|
numberOfReviews: number | null;
|
|
65
|
-
rating: number | null;
|
|
66
66
|
jobsPosted: number | null;
|
|
67
67
|
totalSpent: number | null;
|
|
68
68
|
numberOfHires: number | null;
|
|
@@ -187,9 +187,9 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
188
|
country: string | null;
|
|
189
189
|
region: string | null;
|
|
190
|
+
rating: number | null;
|
|
190
191
|
isPaymentVerified: boolean | null;
|
|
191
192
|
numberOfReviews: number | null;
|
|
192
|
-
rating: number | null;
|
|
193
193
|
jobsPosted: number | null;
|
|
194
194
|
totalSpent: number | null;
|
|
195
195
|
numberOfHires: number | null;
|
|
@@ -203,9 +203,9 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
203
203
|
}, {
|
|
204
204
|
country: string | null;
|
|
205
205
|
region: string | null;
|
|
206
|
+
rating: number | null;
|
|
206
207
|
isPaymentVerified: boolean | null;
|
|
207
208
|
numberOfReviews: number | null;
|
|
208
|
-
rating: number | null;
|
|
209
209
|
jobsPosted: number | null;
|
|
210
210
|
totalSpent: number | null;
|
|
211
211
|
numberOfHires: number | null;
|
|
@@ -267,9 +267,9 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
267
267
|
clientInfo: {
|
|
268
268
|
country: string | null;
|
|
269
269
|
region: string | null;
|
|
270
|
+
rating: number | null;
|
|
270
271
|
isPaymentVerified: boolean | null;
|
|
271
272
|
numberOfReviews: number | null;
|
|
272
|
-
rating: number | null;
|
|
273
273
|
jobsPosted: number | null;
|
|
274
274
|
totalSpent: number | null;
|
|
275
275
|
numberOfHires: number | null;
|
|
@@ -319,9 +319,9 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
319
319
|
clientInfo: {
|
|
320
320
|
country: string | null;
|
|
321
321
|
region: string | null;
|
|
322
|
+
rating: number | null;
|
|
322
323
|
isPaymentVerified: boolean | null;
|
|
323
324
|
numberOfReviews: number | null;
|
|
324
|
-
rating: number | null;
|
|
325
325
|
jobsPosted: number | null;
|
|
326
326
|
totalSpent: number | null;
|
|
327
327
|
numberOfHires: number | null;
|
|
@@ -418,9 +418,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
418
418
|
}, "strip", z.ZodTypeAny, {
|
|
419
419
|
country: string | null;
|
|
420
420
|
region: string | null;
|
|
421
|
+
rating: number | null;
|
|
421
422
|
isPaymentVerified: boolean | null;
|
|
422
423
|
numberOfReviews: number | null;
|
|
423
|
-
rating: number | null;
|
|
424
424
|
jobsPosted: number | null;
|
|
425
425
|
totalSpent: number | null;
|
|
426
426
|
numberOfHires: number | null;
|
|
@@ -434,9 +434,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
434
434
|
}, {
|
|
435
435
|
country: string | null;
|
|
436
436
|
region: string | null;
|
|
437
|
+
rating: number | null;
|
|
437
438
|
isPaymentVerified: boolean | null;
|
|
438
439
|
numberOfReviews: number | null;
|
|
439
|
-
rating: number | null;
|
|
440
440
|
jobsPosted: number | null;
|
|
441
441
|
totalSpent: number | null;
|
|
442
442
|
numberOfHires: number | null;
|
|
@@ -550,9 +550,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
550
550
|
clientInfo: {
|
|
551
551
|
country: string | null;
|
|
552
552
|
region: string | null;
|
|
553
|
+
rating: number | null;
|
|
553
554
|
isPaymentVerified: boolean | null;
|
|
554
555
|
numberOfReviews: number | null;
|
|
555
|
-
rating: number | null;
|
|
556
556
|
jobsPosted: number | null;
|
|
557
557
|
totalSpent: number | null;
|
|
558
558
|
numberOfHires: number | null;
|
|
@@ -624,9 +624,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
624
624
|
clientInfo: {
|
|
625
625
|
country: string | null;
|
|
626
626
|
region: string | null;
|
|
627
|
+
rating: number | null;
|
|
627
628
|
isPaymentVerified: boolean | null;
|
|
628
629
|
numberOfReviews: number | null;
|
|
629
|
-
rating: number | null;
|
|
630
630
|
jobsPosted: number | null;
|
|
631
631
|
totalSpent: number | null;
|
|
632
632
|
numberOfHires: number | null;
|
|
@@ -752,9 +752,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
752
752
|
}, "strip", z.ZodTypeAny, {
|
|
753
753
|
country: string | null;
|
|
754
754
|
region: string | null;
|
|
755
|
+
rating: number | null;
|
|
755
756
|
isPaymentVerified: boolean | null;
|
|
756
757
|
numberOfReviews: number | null;
|
|
757
|
-
rating: number | null;
|
|
758
758
|
jobsPosted: number | null;
|
|
759
759
|
totalSpent: number | null;
|
|
760
760
|
numberOfHires: number | null;
|
|
@@ -768,9 +768,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
768
768
|
}, {
|
|
769
769
|
country: string | null;
|
|
770
770
|
region: string | null;
|
|
771
|
+
rating: number | null;
|
|
771
772
|
isPaymentVerified: boolean | null;
|
|
772
773
|
numberOfReviews: number | null;
|
|
773
|
-
rating: number | null;
|
|
774
774
|
jobsPosted: number | null;
|
|
775
775
|
totalSpent: number | null;
|
|
776
776
|
numberOfHires: number | null;
|
|
@@ -884,9 +884,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
884
884
|
clientInfo: {
|
|
885
885
|
country: string | null;
|
|
886
886
|
region: string | null;
|
|
887
|
+
rating: number | null;
|
|
887
888
|
isPaymentVerified: boolean | null;
|
|
888
889
|
numberOfReviews: number | null;
|
|
889
|
-
rating: number | null;
|
|
890
890
|
jobsPosted: number | null;
|
|
891
891
|
totalSpent: number | null;
|
|
892
892
|
numberOfHires: number | null;
|
|
@@ -958,9 +958,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
958
958
|
clientInfo: {
|
|
959
959
|
country: string | null;
|
|
960
960
|
region: string | null;
|
|
961
|
+
rating: number | null;
|
|
961
962
|
isPaymentVerified: boolean | null;
|
|
962
963
|
numberOfReviews: number | null;
|
|
963
|
-
rating: number | null;
|
|
964
964
|
jobsPosted: number | null;
|
|
965
965
|
totalSpent: number | null;
|
|
966
966
|
numberOfHires: number | null;
|
|
@@ -1037,9 +1037,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1037
1037
|
clientInfo: {
|
|
1038
1038
|
country: string | null;
|
|
1039
1039
|
region: string | null;
|
|
1040
|
+
rating: number | null;
|
|
1040
1041
|
isPaymentVerified: boolean | null;
|
|
1041
1042
|
numberOfReviews: number | null;
|
|
1042
|
-
rating: number | null;
|
|
1043
1043
|
jobsPosted: number | null;
|
|
1044
1044
|
totalSpent: number | null;
|
|
1045
1045
|
numberOfHires: number | null;
|
|
@@ -1116,9 +1116,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1116
1116
|
clientInfo: {
|
|
1117
1117
|
country: string | null;
|
|
1118
1118
|
region: string | null;
|
|
1119
|
+
rating: number | null;
|
|
1119
1120
|
isPaymentVerified: boolean | null;
|
|
1120
1121
|
numberOfReviews: number | null;
|
|
1121
|
-
rating: number | null;
|
|
1122
1122
|
jobsPosted: number | null;
|
|
1123
1123
|
totalSpent: number | null;
|
|
1124
1124
|
numberOfHires: number | null;
|
|
@@ -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" | "
|
|
225
|
+
}>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "clientInfo" | "addedAt" | "suitabilityRating" | "suitabilityReason" | "suitabilityStatus" | "biddingAmount" | "boosted" | "boostingAmount">, "strip", z.ZodTypeAny, {
|
|
226
226
|
title: string | null;
|
|
227
227
|
metadata: {
|
|
228
228
|
hourlyRate: {
|
|
@@ -233,7 +233,6 @@ 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;
|
|
237
236
|
clientInfo: {
|
|
238
237
|
country: string | null;
|
|
239
238
|
};
|
|
@@ -257,7 +256,6 @@ export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.ext
|
|
|
257
256
|
};
|
|
258
257
|
description: string | null;
|
|
259
258
|
jobId: string;
|
|
260
|
-
questions: string[] | null;
|
|
261
259
|
clientInfo: {
|
|
262
260
|
country: string | null;
|
|
263
261
|
};
|
|
@@ -495,7 +493,7 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
495
493
|
biddingAmount: z.ZodOptional<z.ZodNumber>;
|
|
496
494
|
boosted: z.ZodOptional<z.ZodBoolean>;
|
|
497
495
|
boostingAmount: z.ZodOptional<z.ZodNumber>;
|
|
498
|
-
}>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "
|
|
496
|
+
}>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "clientInfo" | "addedAt" | "suitabilityRating" | "suitabilityReason" | "suitabilityStatus" | "biddingAmount" | "boosted" | "boostingAmount">, "strip", z.ZodTypeAny, {
|
|
499
497
|
title: string | null;
|
|
500
498
|
metadata: {
|
|
501
499
|
hourlyRate: {
|
|
@@ -506,7 +504,6 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
506
504
|
};
|
|
507
505
|
description: string | null;
|
|
508
506
|
jobId: string;
|
|
509
|
-
questions: string[] | null;
|
|
510
507
|
clientInfo: {
|
|
511
508
|
country: string | null;
|
|
512
509
|
};
|
|
@@ -530,7 +527,6 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
530
527
|
};
|
|
531
528
|
description: string | null;
|
|
532
529
|
jobId: string;
|
|
533
|
-
questions: string[] | null;
|
|
534
530
|
clientInfo: {
|
|
535
531
|
country: string | null;
|
|
536
532
|
};
|
|
@@ -559,7 +555,6 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
559
555
|
};
|
|
560
556
|
description: string | null;
|
|
561
557
|
jobId: string;
|
|
562
|
-
questions: string[] | null;
|
|
563
558
|
clientInfo: {
|
|
564
559
|
country: string | null;
|
|
565
560
|
};
|
|
@@ -588,7 +583,6 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
|
|
|
588
583
|
};
|
|
589
584
|
description: string | null;
|
|
590
585
|
jobId: string;
|
|
591
|
-
questions: string[] | null;
|
|
592
586
|
clientInfo: {
|
|
593
587
|
country: string | null;
|
|
594
588
|
};
|
|
@@ -33,7 +33,6 @@ exports.jobPipelineDetailsSchema = job_details_1.jobDetailsSchema
|
|
|
33
33
|
biddingAmount: true,
|
|
34
34
|
boostingAmount: true,
|
|
35
35
|
boosted: true,
|
|
36
|
-
questions: true,
|
|
37
36
|
});
|
|
38
37
|
exports.jobPipelineResponseSchema = zod_1.z.object({
|
|
39
38
|
jobs: zod_1.z.array(exports.jobPipelineDetailsSchema),
|
|
@@ -16,4 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./upwork-account-status"), exports);
|
|
18
18
|
__exportStar(require("./upwork-business-manager-account"), exports);
|
|
19
|
-
__exportStar(require("./upwork-
|
|
19
|
+
__exportStar(require("./upwork-scraping-account"), exports);
|
|
@@ -9,33 +9,33 @@ export declare const upworkBusinessManagerAccountSchema: z.ZodObject<{
|
|
|
9
9
|
proxy: z.ZodString;
|
|
10
10
|
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
11
11
|
verified: z.ZodBoolean;
|
|
12
|
-
|
|
12
|
+
is_active: z.ZodBoolean;
|
|
13
13
|
assignedOrganizations: z.ZodArray<z.ZodString, "many">;
|
|
14
|
-
|
|
14
|
+
last_used: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
id: string;
|
|
17
17
|
email: string;
|
|
18
18
|
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
19
19
|
cookies: any[] | null;
|
|
20
20
|
password: string;
|
|
21
|
-
isActive: boolean;
|
|
22
21
|
provider: "user_provided" | "lancer_provided";
|
|
23
22
|
proxy: string;
|
|
24
23
|
verified: boolean;
|
|
24
|
+
is_active: boolean;
|
|
25
25
|
assignedOrganizations: string[];
|
|
26
|
-
|
|
26
|
+
last_used: number | null;
|
|
27
27
|
}, {
|
|
28
28
|
id: string;
|
|
29
29
|
email: string;
|
|
30
30
|
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
31
31
|
cookies: any[] | null;
|
|
32
32
|
password: string;
|
|
33
|
-
isActive: boolean;
|
|
34
33
|
provider: "user_provided" | "lancer_provided";
|
|
35
34
|
proxy: string;
|
|
36
35
|
verified: boolean;
|
|
36
|
+
is_active: boolean;
|
|
37
37
|
assignedOrganizations: string[];
|
|
38
|
-
|
|
38
|
+
last_used: number | null;
|
|
39
39
|
}>;
|
|
40
40
|
export declare const createUpworkBusinessManagerAccountSchema: z.ZodObject<Pick<{
|
|
41
41
|
id: z.ZodString;
|
|
@@ -46,9 +46,9 @@ export declare const createUpworkBusinessManagerAccountSchema: z.ZodObject<Pick<
|
|
|
46
46
|
proxy: z.ZodString;
|
|
47
47
|
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
48
48
|
verified: z.ZodBoolean;
|
|
49
|
-
|
|
49
|
+
is_active: z.ZodBoolean;
|
|
50
50
|
assignedOrganizations: z.ZodArray<z.ZodString, "many">;
|
|
51
|
-
|
|
51
|
+
last_used: z.ZodNullable<z.ZodNumber>;
|
|
52
52
|
}, "email" | "password" | "provider" | "proxy" | "assignedOrganizations">, "strip", z.ZodTypeAny, {
|
|
53
53
|
email: string;
|
|
54
54
|
password: string;
|
|
@@ -67,29 +67,29 @@ export declare const updateUpworkBusinessManagerAccountSchema: z.ZodObject<{
|
|
|
67
67
|
status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
|
|
68
68
|
cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
|
|
69
69
|
password: z.ZodOptional<z.ZodString>;
|
|
70
|
-
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
71
70
|
proxy: z.ZodOptional<z.ZodString>;
|
|
72
71
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
73
73
|
assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
74
|
-
|
|
74
|
+
last_used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
76
|
email?: string | undefined;
|
|
77
77
|
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
78
78
|
cookies?: any[] | null | undefined;
|
|
79
79
|
password?: string | undefined;
|
|
80
|
-
isActive?: boolean | undefined;
|
|
81
80
|
proxy?: string | undefined;
|
|
82
81
|
verified?: boolean | undefined;
|
|
82
|
+
is_active?: boolean | undefined;
|
|
83
83
|
assignedOrganizations?: string[] | undefined;
|
|
84
|
-
|
|
84
|
+
last_used?: number | null | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
email?: string | undefined;
|
|
87
87
|
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
88
88
|
cookies?: any[] | null | undefined;
|
|
89
89
|
password?: string | undefined;
|
|
90
|
-
isActive?: boolean | undefined;
|
|
91
90
|
proxy?: string | undefined;
|
|
92
91
|
verified?: boolean | undefined;
|
|
92
|
+
is_active?: boolean | undefined;
|
|
93
93
|
assignedOrganizations?: string[] | undefined;
|
|
94
|
-
|
|
94
|
+
last_used?: number | null | undefined;
|
|
95
95
|
}>;
|
|
@@ -16,9 +16,9 @@ exports.upworkBusinessManagerAccountSchema = zod_1.z.object({
|
|
|
16
16
|
proxy: zod_1.z.string(),
|
|
17
17
|
status: upwork_account_status_1.upworkAccountStatusSchema,
|
|
18
18
|
verified: zod_1.z.boolean(),
|
|
19
|
-
|
|
19
|
+
is_active: zod_1.z.boolean(),
|
|
20
20
|
assignedOrganizations: zod_1.z.array(zod_1.z.string()),
|
|
21
|
-
|
|
21
|
+
last_used: zod_1.z.number().nullable(),
|
|
22
22
|
});
|
|
23
23
|
exports.createUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema.pick({
|
|
24
24
|
email: true,
|