lancer-shared 1.2.2 → 1.2.3
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/collections.js +11 -13
- package/dist/constants/common-questions.js +1 -4
- package/dist/constants/index.js +10 -32
- package/dist/constants/job-filter-options.js +1 -4
- package/dist/constants/job-status.js +7 -12
- package/dist/constants/mappings/countryMapping.js +1 -3
- package/dist/constants/mappings/regionMapping.js +1 -3
- package/dist/constants/routes.js +43 -35
- package/dist/constants/upwork-accounts.js +3 -6
- package/dist/index.js +4 -20
- package/dist/schemas/account/account-status.js +2 -5
- package/dist/schemas/account/bidder-account.js +22 -24
- package/dist/schemas/account/index.js +3 -19
- package/dist/schemas/account/scraper-account.js +21 -24
- package/dist/schemas/ai/ai-config.js +8 -11
- package/dist/schemas/ai/index.js +3 -19
- package/dist/schemas/ai/proposal.js +10 -13
- package/dist/schemas/ai/suitability.js +8 -11
- package/dist/schemas/bid/bid-result.js +9 -13
- package/dist/schemas/bid/bid.js +29 -30
- package/dist/schemas/bid/index.js +2 -18
- package/dist/schemas/campaign/campaign-ai-metrics.js +5 -8
- package/dist/schemas/campaign/campaign-analytics.js +32 -31
- package/dist/schemas/campaign/campaign-expenses.js +5 -8
- package/dist/schemas/campaign/campaign-insights.js +30 -30
- package/dist/schemas/campaign/campaign-integrations.js +10 -13
- package/dist/schemas/campaign/campaign-job-count.js +3 -6
- package/dist/schemas/campaign/campaign.js +32 -35
- package/dist/schemas/campaign/index.js +7 -23
- package/dist/schemas/chat-message/chat-message.js +7 -10
- package/dist/schemas/chat-message/index.js +1 -17
- package/dist/schemas/config/agency-config.js +6 -9
- package/dist/schemas/config/index.js +1 -17
- package/dist/schemas/event/index.d.ts +58 -0
- package/dist/schemas/index.js +17 -32
- package/dist/schemas/job/index.d.ts +95 -3
- package/dist/schemas/job-filters/index.js +1 -17
- package/dist/schemas/job-filters/job-filters.js +62 -65
- package/dist/schemas/lead/index.js +173 -19
- package/dist/schemas/lead/lead-note.js +13 -16
- package/dist/schemas/lead/lead-status.js +3 -6
- package/dist/schemas/lead/nuxt.js +287 -0
- package/dist/schemas/logger/index.js +1 -17
- package/dist/schemas/logger/log-event.js +100 -49
- package/dist/schemas/organization/index.js +70 -17
- package/dist/schemas/organization/member.js +7 -0
- package/dist/schemas/organization/organization.d.ts +177 -7
- package/dist/schemas/organization/organization.js +14 -17
- package/dist/schemas/organization/subscription.js +17 -0
- package/dist/schemas/proxy/index.js +3 -17
- package/dist/schemas/proxy/proxy-available-replacements.js +3 -0
- package/dist/schemas/proxy/proxy-country.js +249 -0
- package/dist/schemas/proxy/proxy.js +25 -17
- package/dist/schemas/saved-search/index.js +8 -11
- package/dist/schemas/scraper/index.js +2 -18
- package/dist/schemas/scraper/scrape-payload.js +19 -14
- package/dist/schemas/scraper/scrape-result.js +21 -21
- package/dist/schemas/shared.js +12 -9
- package/dist/schemas/time-filter/index.js +5 -8
- package/dist/schemas/transaction/index.js +17 -0
- package/dist/schemas/usage/index.js +18 -0
- package/dist/schemas/user/index.js +38 -41
- package/dist/types/account/account-status.js +1 -2
- package/dist/types/account/bidder-account.js +1 -2
- package/dist/types/account/index.js +3 -19
- package/dist/types/account/scraper-account.js +1 -2
- package/dist/types/ai/ai-config.js +1 -2
- package/dist/types/ai/index.js +3 -19
- package/dist/types/ai/proposal.js +1 -2
- package/dist/types/ai/suitability.js +1 -2
- package/dist/types/bid/bid-result.js +1 -2
- package/dist/types/bid/bid.js +1 -2
- package/dist/types/bid/index.js +2 -18
- package/dist/types/campaign/campaign-analytics.js +1 -2
- package/dist/types/campaign/campaign-expenses.js +1 -2
- package/dist/types/campaign/campaign-insights.js +1 -2
- package/dist/types/campaign/campaign-integrations.js +1 -2
- package/dist/types/campaign/campaign-job-count.js +1 -2
- package/dist/types/campaign/campaign.js +1 -2
- package/dist/types/campaign/index.js +6 -22
- package/dist/types/chat-message/chat-message.js +1 -2
- package/dist/types/chat-message/index.js +1 -17
- package/dist/types/config/agency-config.js +1 -2
- package/dist/types/config/index.js +1 -17
- package/dist/types/index.js +15 -29
- package/dist/types/job/index.js +3 -19
- package/dist/types/job/job-note.js +1 -2
- package/dist/types/job/job-status.js +1 -4
- package/dist/types/job/nuxt.js +1 -0
- package/dist/types/job-filters/index.js +1 -17
- package/dist/types/job-filters/job-filters.js +1 -2
- package/dist/types/logger/index.js +1 -17
- package/dist/types/logger/log-event.js +1 -2
- package/dist/types/saved-search/index.js +1 -2
- package/dist/types/scraper/index.js +2 -18
- package/dist/types/scraper/scrape-payload.js +1 -2
- package/dist/types/scraper/scrape-result.js +1 -2
- package/dist/types/shared.js +1 -0
- package/dist/types/time-filter/index.js +1 -2
- package/dist/types/transaction/index.js +1 -0
- package/dist/types/usage/index.js +1 -0
- package/dist/types/user/index.js +1 -2
- package/dist/utils/index.js +1 -17
- package/dist/utils/try-catch.js +8 -23
- package/package.json +2 -2
- package/dist/constants/account-status.d.ts +0 -3
- package/dist/constants/account-status.js +0 -17
- package/dist/schemas/account/manager-account.d.ts +0 -116
- package/dist/schemas/account/manager-account.js +0 -38
- package/dist/schemas/bidding/index.d.ts +0 -1
- package/dist/schemas/bidding/index.js +0 -17
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
- package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
- package/dist/schemas/job/index.js +0 -19
- package/dist/schemas/job/job-details.d.ts +0 -335
- package/dist/schemas/job/job-details.js +0 -29
- package/dist/schemas/job/job-note.d.ts +0 -83
- package/dist/schemas/job/job-note.js +0 -30
- package/dist/schemas/job/job-status.d.ts +0 -3
- package/dist/schemas/job/job-status.js +0 -27
- package/dist/schemas/job/job.d.ts +0 -1160
- package/dist/schemas/job/job.js +0 -90
- package/dist/schemas/job/pipeline-job.d.ts +0 -602
- package/dist/schemas/job/pipeline-job.js +0 -42
- package/dist/schemas/job/upwork-job.d.ts +0 -334
- package/dist/schemas/job/upwork-job.js +0 -60
- package/dist/schemas/lead/lead.d.ts +0 -1897
- package/dist/schemas/lead/lead.js +0 -143
- package/dist/schemas/upwork-account/index.d.ts +0 -3
- package/dist/schemas/upwork-account/index.js +0 -19
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
- package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
- package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -29
- package/dist/types/account/manager-account.d.ts +0 -7
- package/dist/types/account/manager-account.js +0 -2
- package/dist/types/bidding/index.d.ts +0 -1
- package/dist/types/bidding/index.js +0 -17
- package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
- package/dist/types/bidding/proposal-bidding-status.js +0 -2
- package/dist/types/job/job-details.d.ts +0 -36
- package/dist/types/job/job-details.js +0 -2
- package/dist/types/job/job.d.ts +0 -36
- package/dist/types/job/job.js +0 -2
- package/dist/types/upwork-account/index.d.ts +0 -3
- package/dist/types/upwork-account/index.js +0 -19
- package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
- package/dist/types/upwork-account/upwork-account-status.js +0 -2
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
- package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
- package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.leadResponseSchema = exports.jobListItemSchema = exports.leadSchema = exports.upworkJobSchema = exports.metadataSchema = exports.jobActivitySchema = exports.bidRangeSchema = exports.clientReviewSchema = exports.clientInfoSchema = exports.vendorQualificationSchema = exports.jobSkillsSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const lead_note_1 = require("./lead-note");
|
|
6
|
-
const lead_status_1 = require("./lead-status");
|
|
7
|
-
const proposal_1 = require("../ai/proposal");
|
|
8
|
-
const scraper_1 = require("../scraper");
|
|
9
|
-
exports.jobSkillsSchema = zod_1.z.object({
|
|
10
|
-
name: zod_1.z.string(),
|
|
11
|
-
});
|
|
12
|
-
exports.vendorQualificationSchema = zod_1.z.object({
|
|
13
|
-
location: zod_1.z.string().nullable(),
|
|
14
|
-
talentType: zod_1.z.enum(["Agency", "Independent", "unspecified"]).nullable(),
|
|
15
|
-
englishLevel: zod_1.z.string().nullable(),
|
|
16
|
-
minimumEarnings: zod_1.z.number().nullable(),
|
|
17
|
-
jobSuccessScore: zod_1.z.string().nullable(),
|
|
18
|
-
includeRisingTalent: zod_1.z.string().nullable(),
|
|
19
|
-
});
|
|
20
|
-
exports.clientInfoSchema = zod_1.z.object({
|
|
21
|
-
isPaymentVerified: zod_1.z.boolean().nullable(),
|
|
22
|
-
isPhoneVerified: zod_1.z.boolean().nullable(),
|
|
23
|
-
numberOfReviews: zod_1.z.number().nullable(),
|
|
24
|
-
rating: zod_1.z.number().nullable(),
|
|
25
|
-
country: zod_1.z.string().nullable(),
|
|
26
|
-
region: zod_1.z.string().nullable(),
|
|
27
|
-
jobsPosted: zod_1.z.number().nullable(),
|
|
28
|
-
totalSpent: zod_1.z.number().nullable(),
|
|
29
|
-
numberOfHires: zod_1.z.number().nullable(),
|
|
30
|
-
activeEngagements: zod_1.z.number().nullable(),
|
|
31
|
-
openJobs: zod_1.z.number().nullable(),
|
|
32
|
-
hireRate: zod_1.z.number().nullable(),
|
|
33
|
-
memberSince: zod_1.z.string().nullable(),
|
|
34
|
-
companyIndustry: zod_1.z.string().nullable(),
|
|
35
|
-
companySize: zod_1.z.string().nullable(),
|
|
36
|
-
enterpriseClient: zod_1.z.boolean().nullable(),
|
|
37
|
-
avgHourlyRatePaid: zod_1.z.number().nullable(),
|
|
38
|
-
});
|
|
39
|
-
exports.clientReviewSchema = zod_1.z.object({
|
|
40
|
-
jobTitle: zod_1.z.string().nullable(),
|
|
41
|
-
freelancerName: zod_1.z.string().nullable(),
|
|
42
|
-
freelancerRating: zod_1.z.number().nullable(),
|
|
43
|
-
freelancerFeedback: zod_1.z.string().nullable(),
|
|
44
|
-
clientFeedback: zod_1.z.string().nullable(),
|
|
45
|
-
clientFeedbackRating: zod_1.z.number().nullable(),
|
|
46
|
-
dateRange: zod_1.z.string().nullable(),
|
|
47
|
-
paymentType: zod_1.z.string().nullable(),
|
|
48
|
-
fixedPrice: zod_1.z.number().nullable(),
|
|
49
|
-
hourlyRate: zod_1.z.number().nullable(),
|
|
50
|
-
numHours: zod_1.z.number().nullable(),
|
|
51
|
-
totalBilled: zod_1.z.number().nullable(),
|
|
52
|
-
});
|
|
53
|
-
exports.bidRangeSchema = zod_1.z.object({
|
|
54
|
-
high: zod_1.z.number().nullable(),
|
|
55
|
-
avg: zod_1.z.number().nullable(),
|
|
56
|
-
low: zod_1.z.number().nullable(),
|
|
57
|
-
});
|
|
58
|
-
exports.jobActivitySchema = zod_1.z.object({
|
|
59
|
-
proposals: zod_1.z.object({
|
|
60
|
-
min: zod_1.z.number().nullable(),
|
|
61
|
-
max: zod_1.z.number().nullable(),
|
|
62
|
-
}),
|
|
63
|
-
lastViewedByClient: zod_1.z.string().nullable(),
|
|
64
|
-
hires: zod_1.z.number().nullable(),
|
|
65
|
-
interviewing: zod_1.z.number().nullable(),
|
|
66
|
-
invitesSent: zod_1.z.number().nullable(),
|
|
67
|
-
unansweredInvites: zod_1.z.number().nullable(),
|
|
68
|
-
updatedAt: zod_1.z.number().nullable(),
|
|
69
|
-
});
|
|
70
|
-
exports.metadataSchema = zod_1.z.object({
|
|
71
|
-
hours: zod_1.z.string().nullable(),
|
|
72
|
-
duration: zod_1.z.string().nullable(),
|
|
73
|
-
experienceLevel: zod_1.z.string().nullable(),
|
|
74
|
-
hourlyRate: zod_1.z
|
|
75
|
-
.object({
|
|
76
|
-
min: zod_1.z.number().nullable(),
|
|
77
|
-
max: zod_1.z.number().nullable(),
|
|
78
|
-
})
|
|
79
|
-
.nullable(),
|
|
80
|
-
paymentType: zod_1.z.string().nullable(),
|
|
81
|
-
fixedPrice: zod_1.z.number().nullable(),
|
|
82
|
-
});
|
|
83
|
-
exports.upworkJobSchema = zod_1.z.object({
|
|
84
|
-
id: zod_1.z.string().nullable(),
|
|
85
|
-
createdAt: zod_1.z.number().nullable(),
|
|
86
|
-
title: zod_1.z.string().nullable(),
|
|
87
|
-
category: zod_1.z.string().nullable(),
|
|
88
|
-
skills: zod_1.z.array(exports.jobSkillsSchema).nullable(),
|
|
89
|
-
datetime: zod_1.z.number().nullable(),
|
|
90
|
-
description: zod_1.z.string().nullable(),
|
|
91
|
-
descriptionLength: zod_1.z.number().nullable(),
|
|
92
|
-
connectsRequired: zod_1.z.number().nullable(),
|
|
93
|
-
projectType: zod_1.z.string().nullable(),
|
|
94
|
-
projectDuration: zod_1.z.string().nullable(),
|
|
95
|
-
questions: zod_1.z.array(zod_1.z.string()).nullable(),
|
|
96
|
-
jobUrl: zod_1.z.string().nullable(),
|
|
97
|
-
metadata: exports.metadataSchema.nullable(),
|
|
98
|
-
clientInfo: exports.clientInfoSchema.nullable(),
|
|
99
|
-
vendorQualifications: exports.vendorQualificationSchema.nullable(),
|
|
100
|
-
processed: (0, zod_1.boolean)().nullable(),
|
|
101
|
-
isFeatured: (0, zod_1.boolean)().nullable(),
|
|
102
|
-
clientReviews: zod_1.z.array(exports.clientReviewSchema).nullable(),
|
|
103
|
-
region: scraper_1.regionSchema.nullable(),
|
|
104
|
-
bidRange: exports.bidRangeSchema.nullable(),
|
|
105
|
-
jobActivity: exports.jobActivitySchema.nullable(),
|
|
106
|
-
activityUpdates: zod_1.z
|
|
107
|
-
// 1 = First scraping, 2 = After 4h, 3 = After 24h
|
|
108
|
-
.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)])
|
|
109
|
-
.nullable(),
|
|
110
|
-
});
|
|
111
|
-
exports.leadSchema = exports.upworkJobSchema
|
|
112
|
-
.extend({
|
|
113
|
-
jobId: zod_1.z.string(),
|
|
114
|
-
updatedAt: zod_1.z.number().nullable(),
|
|
115
|
-
suitabilityRating: zod_1.z.number().nullable(),
|
|
116
|
-
suitabilityReason: zod_1.z.string().nullable(),
|
|
117
|
-
proposal: zod_1.z.string().nullable(),
|
|
118
|
-
questionAnswerPairs: zod_1.z.array(proposal_1.questionAnswerPairSchema).nullable(),
|
|
119
|
-
agentStatus: lead_status_1.agentStatusSchema.nullable(),
|
|
120
|
-
leadStatus: lead_status_1.leadStatusSchema.nullable(),
|
|
121
|
-
notes: zod_1.z.array(lead_note_1.leadNoteSchema).nullable(),
|
|
122
|
-
biddingAmount: (0, zod_1.number)().nullable(),
|
|
123
|
-
boosted: (0, zod_1.boolean)().nullable(),
|
|
124
|
-
boostingAmount: (0, zod_1.number)().nullable(),
|
|
125
|
-
biddingTaskScheduled: (0, zod_1.boolean)().nullable(),
|
|
126
|
-
scheduledBiddingTime: (0, zod_1.number)().nullable(),
|
|
127
|
-
})
|
|
128
|
-
.omit({
|
|
129
|
-
processed: true,
|
|
130
|
-
});
|
|
131
|
-
exports.jobListItemSchema = zod_1.z.object({
|
|
132
|
-
title: zod_1.z.string().nullable(),
|
|
133
|
-
jobUrl: zod_1.z.string().nullable(),
|
|
134
|
-
datetime: zod_1.z.string().nullable(),
|
|
135
|
-
isFeatured: zod_1.z.boolean().nullable(),
|
|
136
|
-
region: scraper_1.regionSchema.nullable(),
|
|
137
|
-
});
|
|
138
|
-
exports.leadResponseSchema = zod_1.z.object({
|
|
139
|
-
leads: zod_1.z.array(exports.leadSchema),
|
|
140
|
-
nextCursor: zod_1.z.string().nullable(),
|
|
141
|
-
hasMore: zod_1.z.boolean(),
|
|
142
|
-
leadCounts: zod_1.z.number().nullable(),
|
|
143
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
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("./upwork-account-status"), exports);
|
|
18
|
-
__exportStar(require("./upwork-business-manager-account"), exports);
|
|
19
|
-
__exportStar(require("./upwork-scraping-account"), exports);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.upworkAccountStatusSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.upworkAccountStatusSchema = zod_1.z.enum([
|
|
6
|
-
'verification_required',
|
|
7
|
-
'shadow_banned',
|
|
8
|
-
'healthy',
|
|
9
|
-
'banned',
|
|
10
|
-
'suspended',
|
|
11
|
-
]);
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const upworkBusinessManagerAccountProvider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
3
|
-
export declare const upworkBusinessManagerAccountSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
provider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
6
|
-
email: z.ZodString;
|
|
7
|
-
password: z.ZodString;
|
|
8
|
-
cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
9
|
-
proxy: z.ZodString;
|
|
10
|
-
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
11
|
-
verified: z.ZodBoolean;
|
|
12
|
-
is_active: z.ZodBoolean;
|
|
13
|
-
assignedOrganizations: z.ZodArray<z.ZodString, "many">;
|
|
14
|
-
last_used: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
id: string;
|
|
17
|
-
email: string;
|
|
18
|
-
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
19
|
-
cookies: any[] | null;
|
|
20
|
-
password: string;
|
|
21
|
-
provider: "user_provided" | "lancer_provided";
|
|
22
|
-
proxy: string;
|
|
23
|
-
verified: boolean;
|
|
24
|
-
is_active: boolean;
|
|
25
|
-
assignedOrganizations: string[];
|
|
26
|
-
last_used: number | null;
|
|
27
|
-
}, {
|
|
28
|
-
id: string;
|
|
29
|
-
email: string;
|
|
30
|
-
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
31
|
-
cookies: any[] | null;
|
|
32
|
-
password: string;
|
|
33
|
-
provider: "user_provided" | "lancer_provided";
|
|
34
|
-
proxy: string;
|
|
35
|
-
verified: boolean;
|
|
36
|
-
is_active: boolean;
|
|
37
|
-
assignedOrganizations: string[];
|
|
38
|
-
last_used: number | null;
|
|
39
|
-
}>;
|
|
40
|
-
export declare const createUpworkBusinessManagerAccountSchema: z.ZodObject<Pick<{
|
|
41
|
-
id: z.ZodString;
|
|
42
|
-
provider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
43
|
-
email: z.ZodString;
|
|
44
|
-
password: z.ZodString;
|
|
45
|
-
cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
46
|
-
proxy: z.ZodString;
|
|
47
|
-
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
48
|
-
verified: z.ZodBoolean;
|
|
49
|
-
is_active: z.ZodBoolean;
|
|
50
|
-
assignedOrganizations: z.ZodArray<z.ZodString, "many">;
|
|
51
|
-
last_used: z.ZodNullable<z.ZodNumber>;
|
|
52
|
-
}, "email" | "password" | "provider" | "proxy" | "assignedOrganizations">, "strip", z.ZodTypeAny, {
|
|
53
|
-
email: string;
|
|
54
|
-
password: string;
|
|
55
|
-
provider: "user_provided" | "lancer_provided";
|
|
56
|
-
proxy: string;
|
|
57
|
-
assignedOrganizations: string[];
|
|
58
|
-
}, {
|
|
59
|
-
email: string;
|
|
60
|
-
password: string;
|
|
61
|
-
provider: "user_provided" | "lancer_provided";
|
|
62
|
-
proxy: string;
|
|
63
|
-
assignedOrganizations: string[];
|
|
64
|
-
}>;
|
|
65
|
-
export declare const updateUpworkBusinessManagerAccountSchema: z.ZodObject<{
|
|
66
|
-
email: z.ZodOptional<z.ZodString>;
|
|
67
|
-
status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
|
|
68
|
-
cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
|
|
69
|
-
password: z.ZodOptional<z.ZodString>;
|
|
70
|
-
proxy: z.ZodOptional<z.ZodString>;
|
|
71
|
-
verified: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
-
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
-
assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
74
|
-
last_used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
75
|
-
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
email?: string | undefined;
|
|
77
|
-
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
78
|
-
cookies?: any[] | null | undefined;
|
|
79
|
-
password?: string | undefined;
|
|
80
|
-
proxy?: string | undefined;
|
|
81
|
-
verified?: boolean | undefined;
|
|
82
|
-
is_active?: boolean | undefined;
|
|
83
|
-
assignedOrganizations?: string[] | undefined;
|
|
84
|
-
last_used?: number | null | undefined;
|
|
85
|
-
}, {
|
|
86
|
-
email?: string | undefined;
|
|
87
|
-
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
88
|
-
cookies?: any[] | null | undefined;
|
|
89
|
-
password?: string | undefined;
|
|
90
|
-
proxy?: string | undefined;
|
|
91
|
-
verified?: boolean | undefined;
|
|
92
|
-
is_active?: boolean | undefined;
|
|
93
|
-
assignedOrganizations?: string[] | undefined;
|
|
94
|
-
last_used?: number | null | undefined;
|
|
95
|
-
}>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateUpworkBusinessManagerAccountSchema = exports.createUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountProvider = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const upwork_account_status_1 = require("./upwork-account-status");
|
|
6
|
-
exports.upworkBusinessManagerAccountProvider = zod_1.z.enum([
|
|
7
|
-
'user_provided',
|
|
8
|
-
'lancer_provided',
|
|
9
|
-
]);
|
|
10
|
-
exports.upworkBusinessManagerAccountSchema = zod_1.z.object({
|
|
11
|
-
id: zod_1.z.string(),
|
|
12
|
-
provider: exports.upworkBusinessManagerAccountProvider,
|
|
13
|
-
email: zod_1.z.string().email(),
|
|
14
|
-
password: zod_1.z.string(),
|
|
15
|
-
cookies: zod_1.z.array(zod_1.z.any()).nullable(),
|
|
16
|
-
proxy: zod_1.z.string(),
|
|
17
|
-
status: upwork_account_status_1.upworkAccountStatusSchema,
|
|
18
|
-
verified: zod_1.z.boolean(),
|
|
19
|
-
is_active: zod_1.z.boolean(),
|
|
20
|
-
assignedOrganizations: zod_1.z.array(zod_1.z.string()),
|
|
21
|
-
last_used: zod_1.z.number().nullable(),
|
|
22
|
-
});
|
|
23
|
-
exports.createUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema.pick({
|
|
24
|
-
email: true,
|
|
25
|
-
password: true,
|
|
26
|
-
proxy: true,
|
|
27
|
-
assignedOrganizations: true,
|
|
28
|
-
provider: true,
|
|
29
|
-
});
|
|
30
|
-
exports.updateUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema
|
|
31
|
-
.omit({
|
|
32
|
-
id: true,
|
|
33
|
-
provider: true,
|
|
34
|
-
})
|
|
35
|
-
.partial();
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const upworkScrapingAccountSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
email: z.ZodString;
|
|
5
|
-
password: z.ZodString;
|
|
6
|
-
cookies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
7
|
-
proxy_credentials: z.ZodString;
|
|
8
|
-
region: z.ZodString;
|
|
9
|
-
is_active: z.ZodBoolean;
|
|
10
|
-
last_used: z.ZodNumber;
|
|
11
|
-
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
12
|
-
verified: z.ZodBoolean;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
id: string;
|
|
15
|
-
email: string;
|
|
16
|
-
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
17
|
-
region: string;
|
|
18
|
-
cookies: Record<string, string>;
|
|
19
|
-
password: string;
|
|
20
|
-
verified: boolean;
|
|
21
|
-
is_active: boolean;
|
|
22
|
-
last_used: number;
|
|
23
|
-
proxy_credentials: string;
|
|
24
|
-
}, {
|
|
25
|
-
id: string;
|
|
26
|
-
email: string;
|
|
27
|
-
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
28
|
-
region: string;
|
|
29
|
-
cookies: Record<string, string>;
|
|
30
|
-
password: string;
|
|
31
|
-
verified: boolean;
|
|
32
|
-
is_active: boolean;
|
|
33
|
-
last_used: number;
|
|
34
|
-
proxy_credentials: string;
|
|
35
|
-
}>;
|
|
36
|
-
export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
email: z.ZodString;
|
|
39
|
-
password: z.ZodString;
|
|
40
|
-
cookies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
41
|
-
proxy_credentials: z.ZodString;
|
|
42
|
-
region: z.ZodString;
|
|
43
|
-
is_active: z.ZodBoolean;
|
|
44
|
-
last_used: z.ZodNumber;
|
|
45
|
-
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
46
|
-
verified: z.ZodBoolean;
|
|
47
|
-
}, "email" | "region" | "password" | "verified" | "proxy_credentials">, "strip", z.ZodTypeAny, {
|
|
48
|
-
email: string;
|
|
49
|
-
region: string;
|
|
50
|
-
password: string;
|
|
51
|
-
verified: boolean;
|
|
52
|
-
proxy_credentials: string;
|
|
53
|
-
}, {
|
|
54
|
-
email: string;
|
|
55
|
-
region: string;
|
|
56
|
-
password: string;
|
|
57
|
-
verified: boolean;
|
|
58
|
-
proxy_credentials: string;
|
|
59
|
-
}>;
|
|
60
|
-
export declare const updateUpworkScraperAccountSchema: z.ZodObject<{
|
|
61
|
-
email: z.ZodOptional<z.ZodString>;
|
|
62
|
-
status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
|
|
63
|
-
region: z.ZodOptional<z.ZodString>;
|
|
64
|
-
cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
65
|
-
password: z.ZodOptional<z.ZodString>;
|
|
66
|
-
verified: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
-
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
-
last_used: z.ZodOptional<z.ZodNumber>;
|
|
69
|
-
proxy_credentials: z.ZodOptional<z.ZodString>;
|
|
70
|
-
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
email?: string | undefined;
|
|
72
|
-
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
73
|
-
region?: string | undefined;
|
|
74
|
-
cookies?: Record<string, string> | undefined;
|
|
75
|
-
password?: string | undefined;
|
|
76
|
-
verified?: boolean | undefined;
|
|
77
|
-
is_active?: boolean | undefined;
|
|
78
|
-
last_used?: number | undefined;
|
|
79
|
-
proxy_credentials?: string | undefined;
|
|
80
|
-
}, {
|
|
81
|
-
email?: string | undefined;
|
|
82
|
-
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
83
|
-
region?: string | undefined;
|
|
84
|
-
cookies?: Record<string, string> | undefined;
|
|
85
|
-
password?: string | undefined;
|
|
86
|
-
verified?: boolean | undefined;
|
|
87
|
-
is_active?: boolean | undefined;
|
|
88
|
-
last_used?: number | undefined;
|
|
89
|
-
proxy_credentials?: string | undefined;
|
|
90
|
-
}>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateUpworkScraperAccountSchema = exports.createUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const upwork_account_status_1 = require("./upwork-account-status");
|
|
6
|
-
exports.upworkScrapingAccountSchema = zod_1.z.object({
|
|
7
|
-
id: zod_1.z.string(),
|
|
8
|
-
email: zod_1.z.string().email(),
|
|
9
|
-
password: zod_1.z.string(),
|
|
10
|
-
cookies: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
11
|
-
proxy_credentials: zod_1.z.string(),
|
|
12
|
-
region: zod_1.z.string(),
|
|
13
|
-
is_active: zod_1.z.boolean(),
|
|
14
|
-
last_used: zod_1.z.number(),
|
|
15
|
-
status: upwork_account_status_1.upworkAccountStatusSchema,
|
|
16
|
-
verified: zod_1.z.boolean(),
|
|
17
|
-
});
|
|
18
|
-
exports.createUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema.pick({
|
|
19
|
-
email: true,
|
|
20
|
-
password: true,
|
|
21
|
-
proxy_credentials: true,
|
|
22
|
-
region: true,
|
|
23
|
-
verified: true,
|
|
24
|
-
});
|
|
25
|
-
exports.updateUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema
|
|
26
|
-
.omit({
|
|
27
|
-
id: true,
|
|
28
|
-
})
|
|
29
|
-
.partial();
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { createManagerAccountSchema, updateManagerAccountSchema, managerAccountProvider, managerAccountSchema } from '../../schemas';
|
|
3
|
-
export interface ManagerAccount extends z.infer<typeof managerAccountSchema> {
|
|
4
|
-
}
|
|
5
|
-
export type ManagerAccountProvider = z.infer<typeof managerAccountProvider>;
|
|
6
|
-
export type CreateManagerAccount = z.infer<typeof createManagerAccountSchema>;
|
|
7
|
-
export type UpdateManagerAccount = z.infer<typeof updateManagerAccountSchema>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './proposal-bidding-status';
|
|
@@ -1,17 +0,0 @@
|
|
|
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("./proposal-bidding-status"), exports);
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { SavedSearch } from '../saved-search';
|
|
3
|
-
import { ClientInfoSchema, jobDetailsSchema, JobListItemSchema, JobMetadataSchema, jobPipelineDetailsSchema, jobPipelineResponseSchema, JobSkillsSchema, upworkJobDetailsSchema, VendorQualificationsSchema } from '../../schemas';
|
|
4
|
-
import { JobNote } from './job-note';
|
|
5
|
-
import { JobStatus } from './job-status';
|
|
6
|
-
import { QuestionAnswerPair } from '../ai';
|
|
7
|
-
export interface UpworkJob extends z.infer<typeof upworkJobDetailsSchema> {
|
|
8
|
-
clientInfo: ClientInfo | null;
|
|
9
|
-
metadata: JobMetadata | null;
|
|
10
|
-
skills: JobSkill[] | null;
|
|
11
|
-
vendorQualifications: VendorQualifications | null;
|
|
12
|
-
}
|
|
13
|
-
export interface Job extends z.infer<typeof jobDetailsSchema> {
|
|
14
|
-
clientInfo: ClientInfo | null;
|
|
15
|
-
metadata: JobMetadata | null;
|
|
16
|
-
skills: JobSkill[] | null;
|
|
17
|
-
vendorQualifications: VendorQualifications | null;
|
|
18
|
-
notes?: JobNote[];
|
|
19
|
-
suitabilityQuestionAnswerPairs?: QuestionAnswerPair[];
|
|
20
|
-
status?: JobStatus;
|
|
21
|
-
}
|
|
22
|
-
export interface JobPipeline extends z.infer<typeof jobPipelineDetailsSchema> {
|
|
23
|
-
clientInfo: Pick<ClientInfo, 'country'>;
|
|
24
|
-
metadata: Pick<JobMetadata, 'hourlyRate' | 'fixedPrice'>;
|
|
25
|
-
}
|
|
26
|
-
export interface JobPipelineResponse extends z.infer<typeof jobPipelineResponseSchema> {
|
|
27
|
-
jobs: JobPipeline[];
|
|
28
|
-
}
|
|
29
|
-
export type JobWithSavedSearch = Job & {
|
|
30
|
-
savedSearch?: SavedSearch | null;
|
|
31
|
-
};
|
|
32
|
-
export type JobListItem = z.infer<typeof JobListItemSchema>;
|
|
33
|
-
export type JobSkill = z.infer<typeof JobSkillsSchema>;
|
|
34
|
-
export type VendorQualifications = z.infer<typeof VendorQualificationsSchema>;
|
|
35
|
-
export type ClientInfo = z.infer<typeof ClientInfoSchema>;
|
|
36
|
-
export type JobMetadata = z.infer<typeof JobMetadataSchema>;
|
package/dist/types/job/job.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { SavedSearch } from "../saved-search";
|
|
3
|
-
import { LeadNote } from "./job-note";
|
|
4
|
-
import { LeadAgentStatus, LeadStatus } from "./job-status";
|
|
5
|
-
import { QuestionAnswerPair } from "../ai";
|
|
6
|
-
import { clientInfoSchema, jobListItemSchema, leadResponseSchema, leadSchema, jobSkillsSchema, metadataSchema, upworkJobSchema, vendorQualificationSchema, clientReviewSchema, bidRangeSchema, jobActivitySchema } from "../../schemas/lead/lead";
|
|
7
|
-
export interface Job extends z.infer<typeof upworkJobSchema> {
|
|
8
|
-
clientInfo: ClientInfo | null;
|
|
9
|
-
metadata: JobMetadata | null;
|
|
10
|
-
skills: JobSkill[] | null;
|
|
11
|
-
vendorQualifications: VendorQualifications | null;
|
|
12
|
-
}
|
|
13
|
-
export interface Lead extends z.infer<typeof leadSchema> {
|
|
14
|
-
clientInfo: ClientInfo | null;
|
|
15
|
-
metadata: JobMetadata | null;
|
|
16
|
-
skills: JobSkill[] | null;
|
|
17
|
-
vendorQualifications: VendorQualifications | null;
|
|
18
|
-
notes: LeadNote[] | null;
|
|
19
|
-
questionAnswerPairs: QuestionAnswerPair[] | null;
|
|
20
|
-
agentStatus: LeadAgentStatus;
|
|
21
|
-
leadStatus: LeadStatus;
|
|
22
|
-
}
|
|
23
|
-
export interface LeadResponse extends z.infer<typeof leadResponseSchema> {
|
|
24
|
-
leads: Lead[];
|
|
25
|
-
}
|
|
26
|
-
export type JobWithSavedSearch = Lead & {
|
|
27
|
-
savedSearch?: SavedSearch | null;
|
|
28
|
-
};
|
|
29
|
-
export type JobListItem = z.infer<typeof jobListItemSchema>;
|
|
30
|
-
export type JobSkill = z.infer<typeof jobSkillsSchema>;
|
|
31
|
-
export type VendorQualifications = z.infer<typeof vendorQualificationSchema>;
|
|
32
|
-
export type ClientInfo = z.infer<typeof clientInfoSchema>;
|
|
33
|
-
export type JobMetadata = z.infer<typeof metadataSchema>;
|
|
34
|
-
export type ClientReview = z.infer<typeof clientReviewSchema>;
|
|
35
|
-
export type JobBidRange = z.infer<typeof bidRangeSchema>;
|
|
36
|
-
export type JobActivity = z.infer<typeof jobActivitySchema>;
|
package/dist/types/job/job.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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("./upwork-account-status"), exports);
|
|
18
|
-
__exportStar(require("./upwork-business-manager-account"), exports);
|
|
19
|
-
__exportStar(require("./upwork-scraping-account"), exports);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { createUpworkBusinessManagerAccountSchema, updateUpworkBusinessManagerAccountSchema, upworkBusinessManagerAccountProvider, upworkBusinessManagerAccountSchema } from '../../schemas';
|
|
3
|
-
export interface UpworkBusinessManagerAccount extends z.infer<typeof upworkBusinessManagerAccountSchema> {
|
|
4
|
-
}
|
|
5
|
-
export type UpworkBusinessManagerAccountProvider = z.infer<typeof upworkBusinessManagerAccountProvider>;
|
|
6
|
-
export type CreateUpworkBusinessManagerAccount = z.infer<typeof createUpworkBusinessManagerAccountSchema>;
|
|
7
|
-
export type UpdateUpworkBusinessManagerAccount = z.infer<typeof updateUpworkBusinessManagerAccountSchema>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { createUpworkScraperAccountSchema, updateUpworkScraperAccountSchema, upworkScrapingAccountSchema } from '../../schemas';
|
|
3
|
-
export type UpworkScrapingAccount = z.infer<typeof upworkScrapingAccountSchema>;
|
|
4
|
-
export type CreateUpworkScraperAccount = z.infer<typeof createUpworkScraperAccountSchema>;
|
|
5
|
-
export type UpdateUpworkScraperAccount = z.infer<typeof updateUpworkScraperAccountSchema>;
|