lancer-shared 1.2.97 → 1.2.99
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 -0
- package/dist/constants/account-status.d.ts +3 -0
- package/dist/constants/account-status.js +17 -0
- package/dist/constants/collections.d.ts +13 -0
- package/dist/constants/collections.js +16 -0
- package/dist/constants/common-questions.js +60 -0
- package/dist/constants/index.js +40 -0
- package/dist/constants/job-filter-options.js +268 -0
- package/dist/constants/job-status.js +26 -0
- package/dist/constants/mappings/countryMapping.js +122 -0
- package/dist/constants/mappings/regionMapping.js +242 -0
- package/dist/constants/organization.d.ts +2 -0
- package/dist/constants/routes.js +108 -0
- package/dist/constants/upwork-accounts.js +21 -0
- package/dist/index.js +20 -0
- package/dist/schemas/account/account-status.js +11 -0
- package/dist/schemas/account/bidder-account.js +37 -0
- package/dist/schemas/account/index.js +19 -0
- package/dist/schemas/account/manager-account.d.ts +116 -0
- package/dist/schemas/account/manager-account.js +38 -0
- package/dist/schemas/account/scraper-account.js +37 -0
- package/dist/schemas/ai/ai-config.d.ts +36 -0
- package/dist/schemas/ai/ai-config.js +12 -0
- package/dist/schemas/ai/index.d.ts +3 -0
- package/dist/schemas/ai/index.js +19 -0
- package/dist/schemas/ai/proposal.d.ts +82 -0
- package/dist/schemas/ai/proposal.js +16 -0
- package/dist/schemas/ai/suitability.d.ts +37 -0
- package/dist/schemas/ai/suitability.js +17 -0
- package/dist/schemas/bid/bid-result.js +15 -0
- package/dist/schemas/bid/bid.js +36 -0
- package/dist/schemas/bid/index.js +18 -0
- package/dist/schemas/bidding/index.d.ts +1 -0
- package/dist/schemas/bidding/index.js +17 -0
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +26 -0
- package/dist/schemas/bidding/proposal-bidding-status.js +18 -0
- package/dist/schemas/campaign/campaign-ai-metrics.js +9 -0
- package/dist/schemas/campaign/campaign-analytics.js +41 -0
- package/dist/schemas/campaign/campaign-expenses.js +9 -0
- package/dist/schemas/campaign/campaign-insights.js +31 -0
- package/dist/schemas/campaign/campaign-integrations.d.ts +87 -0
- package/dist/schemas/campaign/campaign-integrations.js +16 -0
- package/dist/schemas/campaign/campaign-job-count.d.ts +2 -0
- package/dist/schemas/campaign/campaign-job-count.js +6 -0
- package/dist/schemas/campaign/campaign.js +44 -0
- package/dist/schemas/campaign/index.js +23 -0
- package/dist/schemas/chat-message/chat-message.d.ts +31 -0
- package/dist/schemas/chat-message/chat-message.js +13 -0
- package/dist/schemas/chat-message/index.d.ts +1 -0
- package/dist/schemas/chat-message/index.js +17 -0
- package/dist/schemas/config/agency-config.d.ts +17 -0
- package/dist/schemas/config/agency-config.js +10 -0
- package/dist/schemas/config/index.d.ts +1 -0
- package/dist/schemas/config/index.js +17 -0
- package/dist/schemas/index.js +32 -0
- package/dist/schemas/job/index.js +19 -0
- package/dist/schemas/job/job-details.d.ts +335 -0
- package/dist/schemas/job/job-details.js +29 -0
- package/dist/schemas/job/job-note.d.ts +83 -0
- package/dist/schemas/job/job-note.js +30 -0
- package/dist/schemas/job/job-status.d.ts +3 -0
- package/dist/schemas/job/job-status.js +27 -0
- package/dist/schemas/job/job.d.ts +1160 -0
- package/dist/schemas/job/job.js +90 -0
- package/dist/schemas/job/pipeline-job.d.ts +602 -0
- package/dist/schemas/job/pipeline-job.js +42 -0
- package/dist/schemas/job/upwork-job.d.ts +334 -0
- package/dist/schemas/job/upwork-job.js +60 -0
- package/dist/schemas/job-filters/index.d.ts +1 -0
- package/dist/schemas/job-filters/index.js +17 -0
- package/dist/schemas/job-filters/job-filters.d.ts +241 -0
- package/dist/schemas/job-filters/job-filters.js +87 -0
- package/dist/schemas/lead/index.js +19 -0
- package/dist/schemas/lead/lead-note.d.ts +83 -0
- package/dist/schemas/lead/lead-note.js +30 -0
- package/dist/schemas/lead/lead-status.js +26 -0
- package/dist/schemas/lead/lead.d.ts +1897 -0
- package/dist/schemas/lead/lead.js +143 -0
- package/dist/schemas/lead/nuxt.d.ts +1664 -0
- package/dist/schemas/logger/index.js +17 -0
- package/dist/schemas/logger/log-event.js +66 -0
- package/dist/schemas/organization/index.d.ts +4 -0
- package/dist/schemas/organization/index.js +17 -0
- package/dist/schemas/organization/organization.d.ts +70 -0
- package/dist/schemas/organization/organization.js +19 -0
- package/dist/schemas/proxy/index.js +17 -0
- package/dist/schemas/proxy/proxy.js +21 -0
- package/dist/schemas/saved-search/index.js +12 -0
- package/dist/schemas/scraper/index.js +18 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +19 -26
- package/dist/schemas/scraper/scrape-payload.js +16 -0
- package/dist/schemas/scraper/scrape-result.js +23 -0
- package/dist/schemas/shared.js +16 -0
- package/dist/schemas/time-filter/index.js +9 -0
- package/dist/schemas/upwork-account/index.d.ts +3 -0
- package/dist/schemas/upwork-account/index.js +19 -0
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +2 -0
- package/dist/schemas/upwork-account/upwork-account-status.js +11 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +95 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +35 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +90 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.js +29 -0
- package/dist/schemas/user/index.js +55 -0
- package/dist/types/account/account-status.d.ts +3 -0
- package/dist/types/account/account-status.js +2 -0
- package/dist/types/account/bidder-account.d.ts +7 -0
- package/dist/types/account/bidder-account.js +2 -0
- package/dist/types/account/index.d.ts +3 -0
- package/dist/types/account/index.js +19 -0
- package/dist/types/account/manager-account.d.ts +7 -0
- package/dist/types/account/manager-account.js +2 -0
- package/dist/types/account/scraper-account.d.ts +5 -0
- package/dist/types/account/scraper-account.js +2 -0
- package/dist/types/ai/ai-config.d.ts +6 -0
- package/dist/types/ai/ai-config.js +2 -0
- package/dist/types/ai/index.d.ts +3 -0
- package/dist/types/ai/index.js +19 -0
- package/dist/types/ai/proposal.d.ts +10 -0
- package/dist/types/ai/proposal.js +2 -0
- package/dist/types/ai/suitability.d.ts +6 -0
- package/dist/types/ai/suitability.js +2 -0
- package/dist/types/bid/bid-result.d.ts +5 -0
- package/dist/types/bid/bid-result.js +2 -0
- package/dist/types/bid/bid.d.ts +9 -0
- package/dist/types/bid/bid.js +2 -0
- package/dist/types/bid/index.d.ts +2 -0
- package/dist/types/bid/index.js +18 -0
- package/dist/types/bidding/index.d.ts +1 -0
- package/dist/types/bidding/index.js +17 -0
- package/dist/types/bidding/proposal-bidding-status.d.ts +3 -0
- package/dist/types/bidding/proposal-bidding-status.js +2 -0
- package/dist/types/campaign/campaign-analytics.d.ts +7 -0
- package/dist/types/campaign/campaign-analytics.js +2 -0
- package/dist/types/campaign/campaign-expenses.d.ts +3 -0
- package/dist/types/campaign/campaign-expenses.js +2 -0
- package/dist/types/campaign/campaign-insights.js +2 -0
- package/dist/types/campaign/campaign-integrations.d.ts +6 -0
- package/dist/types/campaign/campaign-integrations.js +2 -0
- package/dist/types/campaign/campaign-job-count.d.ts +4 -0
- package/dist/types/campaign/campaign-job-count.js +2 -0
- package/dist/types/campaign/campaign.js +2 -0
- package/dist/types/campaign/index.js +22 -0
- package/dist/types/chat-message/chat-message.d.ts +4 -0
- package/dist/types/chat-message/chat-message.js +2 -0
- package/dist/types/chat-message/index.d.ts +1 -0
- package/dist/types/chat-message/index.js +17 -0
- package/dist/types/config/agency-config.d.ts +4 -0
- package/dist/types/config/agency-config.js +2 -0
- package/dist/types/config/index.d.ts +1 -0
- package/dist/types/config/index.js +17 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/index.js +29 -0
- package/dist/types/job/index.d.ts +48 -0
- package/dist/types/job/index.js +19 -0
- package/dist/types/job/job-details.d.ts +36 -0
- package/dist/types/job/job-details.js +2 -0
- package/dist/types/job/job-note.d.ts +10 -0
- package/dist/types/job/job-note.js +2 -0
- package/dist/types/job/job-status.d.ts +5 -0
- package/dist/types/job/job-status.js +12 -0
- package/dist/types/job/job.d.ts +36 -0
- package/dist/types/job/job.js +2 -0
- package/dist/types/job/nuxt.d.ts +4 -0
- package/dist/types/job-filters/index.d.ts +1 -0
- package/dist/types/job-filters/index.js +17 -0
- package/dist/types/job-filters/job-filters.d.ts +4 -0
- package/dist/types/job-filters/job-filters.js +2 -0
- package/dist/types/logger/index.d.ts +1 -0
- package/dist/types/logger/index.js +17 -0
- package/dist/types/logger/log-event.js +2 -0
- package/dist/types/saved-search/index.d.ts +6 -0
- package/dist/types/saved-search/index.js +2 -0
- package/dist/types/scraper/index.d.ts +2 -0
- package/dist/types/scraper/index.js +18 -0
- package/dist/types/scraper/scrape-payload.d.ts +10 -0
- package/dist/types/scraper/scrape-payload.js +2 -0
- package/dist/types/scraper/scrape-result.d.ts +8 -0
- package/dist/types/scraper/scrape-result.js +2 -0
- package/dist/types/shared.d.ts +8 -0
- package/dist/types/time-filter/index.d.ts +3 -0
- package/dist/types/time-filter/index.js +2 -0
- package/dist/types/transaction/index.d.ts +4 -0
- package/dist/types/upwork-account/index.d.ts +3 -0
- package/dist/types/upwork-account/index.js +19 -0
- package/dist/types/upwork-account/upwork-account-status.d.ts +3 -0
- package/dist/types/upwork-account/upwork-account-status.js +2 -0
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +7 -0
- package/dist/types/upwork-account/upwork-business-manager-account.js +2 -0
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +5 -0
- package/dist/types/upwork-account/upwork-scraping-account.js +2 -0
- package/dist/types/usage/index.d.ts +6 -0
- package/dist/types/user/index.d.ts +15 -0
- package/dist/types/user/index.js +2 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/try-catch.js +25 -0
- package/package.json +1 -1
|
@@ -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("./log-event"), exports);
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.logEventSchema = exports.LogEventTypeEnum = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.LogEventTypeEnum = zod_1.z.enum([
|
|
6
|
+
// Scraper Events
|
|
7
|
+
"scraperStarted",
|
|
8
|
+
"scraperCompleted",
|
|
9
|
+
"jobScraped",
|
|
10
|
+
"jobsIndexed",
|
|
11
|
+
"jobDuplicateSkipped",
|
|
12
|
+
"scraperFailed",
|
|
13
|
+
"userProfileScrapingStarted",
|
|
14
|
+
"userProfileScrapingComplete",
|
|
15
|
+
"userProfileScrapingFailed",
|
|
16
|
+
// Job Sync & Campaign Matching
|
|
17
|
+
"jobSyncPublished",
|
|
18
|
+
"jobSyncReceived",
|
|
19
|
+
"leadsCreatedAndSynced",
|
|
20
|
+
// Suitability Events
|
|
21
|
+
"suitabilityPending",
|
|
22
|
+
"suitabilityProcessing",
|
|
23
|
+
"suitabilityComplete",
|
|
24
|
+
"suitabilityFailed",
|
|
25
|
+
"manualSuitabilityAnalyzed",
|
|
26
|
+
// Proposal Events
|
|
27
|
+
"proposalProcessing",
|
|
28
|
+
"proposalComplete",
|
|
29
|
+
"proposalFailed",
|
|
30
|
+
"manualProposalGenerated",
|
|
31
|
+
// Bidding Events
|
|
32
|
+
"biddingProcessing",
|
|
33
|
+
"biddingComplete",
|
|
34
|
+
"biddingFailed",
|
|
35
|
+
"biddingSkipped",
|
|
36
|
+
"biddingPending",
|
|
37
|
+
// System/Generic Events
|
|
38
|
+
"errorLogged",
|
|
39
|
+
"cloudTaskRetry",
|
|
40
|
+
"manualLeadEdited",
|
|
41
|
+
"leadArchived",
|
|
42
|
+
"auditTrailLogged",
|
|
43
|
+
// Knowledge Base Events
|
|
44
|
+
"knowledgeBaseGenerationComplete",
|
|
45
|
+
"knowledgeBaseGenerationFailed",
|
|
46
|
+
]);
|
|
47
|
+
exports.logEventSchema = zod_1.z.object({
|
|
48
|
+
// The type of event (use a z.enum if possible)
|
|
49
|
+
type: exports.LogEventTypeEnum, // e.g. "suitability-failed", "proposal-generated"
|
|
50
|
+
// The service that triggered the event
|
|
51
|
+
source: zod_1.z.string(), // e.g. "lancer-agents", "lancer-bidding"
|
|
52
|
+
// Optional: Allow logging non-lead events in the future
|
|
53
|
+
resourceType: zod_1.z.string().default("lead"), // e.g. "lead", "campaign", "user"
|
|
54
|
+
// ID of the resource (primary entity affected)
|
|
55
|
+
resourceId: zod_1.z.string().nullable(), // fallback if leadId is not applicable
|
|
56
|
+
// Lead-level metadata
|
|
57
|
+
leadId: zod_1.z.string().nullable(),
|
|
58
|
+
campaignId: zod_1.z.string().nullable(),
|
|
59
|
+
userId: zod_1.z.string().nullable(),
|
|
60
|
+
// Reason or message for the event
|
|
61
|
+
reason: zod_1.z.string().nullable(),
|
|
62
|
+
// Generic metadata (stacktrace, score, raw request, etc.)
|
|
63
|
+
metadata: zod_1.z.record(zod_1.z.unknown()).nullable(),
|
|
64
|
+
// Optional timestamp override
|
|
65
|
+
timestamp: zod_1.z.number(),
|
|
66
|
+
});
|
|
@@ -178,6 +178,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
178
178
|
savedCard: boolean;
|
|
179
179
|
}>>;
|
|
180
180
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
181
|
+
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
181
182
|
createdAt: z.ZodNumber;
|
|
182
183
|
updatedAt: z.ZodNumber;
|
|
183
184
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
@@ -224,6 +225,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
224
225
|
savedCard: boolean;
|
|
225
226
|
} | null;
|
|
226
227
|
lastBidTime: number | null;
|
|
228
|
+
nextScheduledBidTime: number | null;
|
|
227
229
|
createdAt: number;
|
|
228
230
|
updatedAt: number;
|
|
229
231
|
openRouterApiKey: string | null;
|
|
@@ -270,6 +272,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
270
272
|
savedCard: boolean;
|
|
271
273
|
} | null;
|
|
272
274
|
lastBidTime: number | null;
|
|
275
|
+
nextScheduledBidTime: number | null;
|
|
273
276
|
createdAt: number;
|
|
274
277
|
updatedAt: number;
|
|
275
278
|
openRouterApiKey: string | null;
|
|
@@ -521,6 +524,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
521
524
|
savedCard: boolean;
|
|
522
525
|
}>>;
|
|
523
526
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
527
|
+
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
524
528
|
createdAt: z.ZodNumber;
|
|
525
529
|
updatedAt: z.ZodNumber;
|
|
526
530
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
@@ -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("./organization"), exports);
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const bidConfigSchema: z.ZodObject<{
|
|
3
|
+
agencyName: z.ZodNullable<z.ZodString>;
|
|
4
|
+
bidderId: z.ZodNullable<z.ZodString>;
|
|
5
|
+
contractorName: z.ZodNullable<z.ZodString>;
|
|
6
|
+
specialisedProfile: z.ZodNullable<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
agencyName: string | null;
|
|
9
|
+
bidderId: string | null;
|
|
10
|
+
contractorName: string | null;
|
|
11
|
+
specialisedProfile: string | null;
|
|
12
|
+
}, {
|
|
13
|
+
agencyName: string | null;
|
|
14
|
+
bidderId: string | null;
|
|
15
|
+
contractorName: string | null;
|
|
16
|
+
specialisedProfile: string | null;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const organizationTypeSchema: z.ZodEnum<["agency", "freelancer"]>;
|
|
19
|
+
export declare const organizationSchema: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
23
|
+
bidConfig: z.ZodObject<{
|
|
24
|
+
agencyName: z.ZodNullable<z.ZodString>;
|
|
25
|
+
bidderId: z.ZodNullable<z.ZodString>;
|
|
26
|
+
contractorName: z.ZodNullable<z.ZodString>;
|
|
27
|
+
specialisedProfile: z.ZodNullable<z.ZodString>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
agencyName: string | null;
|
|
30
|
+
bidderId: string | null;
|
|
31
|
+
contractorName: string | null;
|
|
32
|
+
specialisedProfile: string | null;
|
|
33
|
+
}, {
|
|
34
|
+
agencyName: string | null;
|
|
35
|
+
bidderId: string | null;
|
|
36
|
+
contractorName: string | null;
|
|
37
|
+
specialisedProfile: string | null;
|
|
38
|
+
}>;
|
|
39
|
+
createdAt: z.ZodDate;
|
|
40
|
+
updatedAt: z.ZodDate;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
type: "agency" | "freelancer";
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
bidConfig: {
|
|
46
|
+
agencyName: string | null;
|
|
47
|
+
bidderId: string | null;
|
|
48
|
+
contractorName: string | null;
|
|
49
|
+
specialisedProfile: string | null;
|
|
50
|
+
};
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
updatedAt: Date;
|
|
53
|
+
}, {
|
|
54
|
+
type: "agency" | "freelancer";
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
bidConfig: {
|
|
58
|
+
agencyName: string | null;
|
|
59
|
+
bidderId: string | null;
|
|
60
|
+
contractorName: string | null;
|
|
61
|
+
specialisedProfile: string | null;
|
|
62
|
+
};
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
updatedAt: Date;
|
|
65
|
+
}>;
|
|
66
|
+
export interface Organization extends z.infer<typeof organizationSchema> {
|
|
67
|
+
}
|
|
68
|
+
export interface BidConfig extends z.infer<typeof bidConfigSchema> {
|
|
69
|
+
}
|
|
70
|
+
export type OrganizationType = z.infer<typeof organizationTypeSchema>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.organizationSchema = exports.organizationTypeSchema = exports.bidConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.bidConfigSchema = zod_1.z.object({
|
|
6
|
+
agencyName: zod_1.z.string().nullable(),
|
|
7
|
+
bidderId: zod_1.z.string().nullable(),
|
|
8
|
+
contractorName: zod_1.z.string().nullable(),
|
|
9
|
+
specialisedProfile: zod_1.z.string().nullable(),
|
|
10
|
+
});
|
|
11
|
+
exports.organizationTypeSchema = zod_1.z.enum(['agency', 'freelancer']);
|
|
12
|
+
exports.organizationSchema = zod_1.z.object({
|
|
13
|
+
id: zod_1.z.string(),
|
|
14
|
+
name: zod_1.z.string(),
|
|
15
|
+
type: exports.organizationTypeSchema,
|
|
16
|
+
bidConfig: exports.bidConfigSchema,
|
|
17
|
+
createdAt: zod_1.z.date(),
|
|
18
|
+
updatedAt: zod_1.z.date(),
|
|
19
|
+
});
|
|
@@ -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("./proxy"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.externalProxySchema = exports.proxySchema = exports.proxyCountrySchema = exports.proxyProviderSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.proxyProviderSchema = zod_1.z.enum(['webshare']);
|
|
6
|
+
exports.proxyCountrySchema = zod_1.z.enum(['USA']);
|
|
7
|
+
exports.proxySchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string(),
|
|
9
|
+
externalId: zod_1.z.string(),
|
|
10
|
+
host: zod_1.z.string(),
|
|
11
|
+
port: zod_1.z.number(),
|
|
12
|
+
username: zod_1.z.string(),
|
|
13
|
+
password: zod_1.z.string(),
|
|
14
|
+
provider: exports.proxyProviderSchema,
|
|
15
|
+
country: exports.proxyCountrySchema,
|
|
16
|
+
bidderId: zod_1.z.string().nullable(),
|
|
17
|
+
});
|
|
18
|
+
exports.externalProxySchema = exports.proxySchema.omit({
|
|
19
|
+
id: true,
|
|
20
|
+
bidderId: true,
|
|
21
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.savedSearchSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../shared");
|
|
6
|
+
exports.savedSearchSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
name: (0, zod_1.string)(),
|
|
9
|
+
url: (0, zod_1.string)(),
|
|
10
|
+
createdAt: (0, zod_1.date)(),
|
|
11
|
+
isActive: shared_1.booleanSchema,
|
|
12
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./scrape-payload"), exports);
|
|
18
|
+
__exportStar(require("./scrape-result"), exports);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { infer } from "zod";
|
|
2
2
|
import { BidderAccount } from "../account";
|
|
3
|
-
import { Campaign } from "../campaign";
|
|
4
3
|
import { Lead } from "../lead";
|
|
5
4
|
export declare const scrapePayloadSchema: import("zod").ZodObject<{
|
|
6
5
|
latestJobsUrls: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
@@ -198,11 +197,11 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
198
197
|
projectDuration: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
|
|
199
198
|
experienceLevel: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
|
|
200
199
|
questions: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
201
|
-
hasQuestions: import("zod").
|
|
200
|
+
hasQuestions: import("zod").ZodDefault<import("zod").ZodEnum<["all", "yes", "no"]>>;
|
|
202
201
|
}, "strip", import("zod").ZodTypeAny, {
|
|
203
|
-
hasQuestions:
|
|
202
|
+
hasQuestions: "all" | "yes" | "no";
|
|
204
203
|
}, {
|
|
205
|
-
hasQuestions
|
|
204
|
+
hasQuestions?: "all" | "yes" | "no" | undefined;
|
|
206
205
|
}>>;
|
|
207
206
|
engagementType: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
|
|
208
207
|
clientInfo: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -300,7 +299,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
300
299
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
301
300
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
302
301
|
questions: {
|
|
303
|
-
hasQuestions:
|
|
302
|
+
hasQuestions: "all" | "yes" | "no";
|
|
304
303
|
} | null;
|
|
305
304
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
306
305
|
clientInfo: {
|
|
@@ -350,7 +349,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
350
349
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
351
350
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
352
351
|
questions: {
|
|
353
|
-
hasQuestions
|
|
352
|
+
hasQuestions?: "all" | "yes" | "no" | undefined;
|
|
354
353
|
} | null;
|
|
355
354
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
356
355
|
clientInfo: {
|
|
@@ -445,7 +444,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
445
444
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
446
445
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
447
446
|
questions: {
|
|
448
|
-
hasQuestions:
|
|
447
|
+
hasQuestions: "all" | "yes" | "no";
|
|
449
448
|
} | null;
|
|
450
449
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
451
450
|
clientInfo: {
|
|
@@ -522,7 +521,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
522
521
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
523
522
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
524
523
|
questions: {
|
|
525
|
-
hasQuestions
|
|
524
|
+
hasQuestions?: "all" | "yes" | "no" | undefined;
|
|
526
525
|
} | null;
|
|
527
526
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
528
527
|
clientInfo: {
|
|
@@ -1160,9 +1159,8 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1160
1159
|
biddingTaskScheduled: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
|
1161
1160
|
scheduledBiddingTime: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1162
1161
|
wonAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
rejectedFeedback: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1162
|
+
biddingTaskId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1163
|
+
doNotApplyReason: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1166
1164
|
}>, "processed">, "strip", import("zod").ZodTypeAny, {
|
|
1167
1165
|
uid: string | null;
|
|
1168
1166
|
title: string | null;
|
|
@@ -1272,9 +1270,8 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1272
1270
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
|
|
1273
1271
|
biddingTaskScheduled: boolean | null;
|
|
1274
1272
|
scheduledBiddingTime: number | null;
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
rejectedFeedback: string | null;
|
|
1273
|
+
biddingTaskId: string | null;
|
|
1274
|
+
doNotApplyReason: string | null;
|
|
1278
1275
|
activity?: Partial<Record<"4h" | "24h", {
|
|
1279
1276
|
updatedAt: number | null;
|
|
1280
1277
|
proposals: {
|
|
@@ -1406,9 +1403,8 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1406
1403
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
|
|
1407
1404
|
biddingTaskScheduled: boolean | null;
|
|
1408
1405
|
scheduledBiddingTime: number | null;
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
rejectedFeedback: string | null;
|
|
1406
|
+
biddingTaskId: string | null;
|
|
1407
|
+
doNotApplyReason: string | null;
|
|
1412
1408
|
activity?: Partial<Record<"4h" | "24h", {
|
|
1413
1409
|
updatedAt: number | null;
|
|
1414
1410
|
proposals: {
|
|
@@ -1533,7 +1529,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1533
1529
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
1534
1530
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
1535
1531
|
questions: {
|
|
1536
|
-
hasQuestions:
|
|
1532
|
+
hasQuestions: "all" | "yes" | "no";
|
|
1537
1533
|
} | null;
|
|
1538
1534
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
1539
1535
|
clientInfo: {
|
|
@@ -1743,9 +1739,8 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1743
1739
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
|
|
1744
1740
|
biddingTaskScheduled: boolean | null;
|
|
1745
1741
|
scheduledBiddingTime: number | null;
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
rejectedFeedback: string | null;
|
|
1742
|
+
biddingTaskId: string | null;
|
|
1743
|
+
doNotApplyReason: string | null;
|
|
1749
1744
|
activity?: Partial<Record<"4h" | "24h", {
|
|
1750
1745
|
updatedAt: number | null;
|
|
1751
1746
|
proposals: {
|
|
@@ -1818,7 +1813,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1818
1813
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
1819
1814
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
1820
1815
|
questions: {
|
|
1821
|
-
hasQuestions
|
|
1816
|
+
hasQuestions?: "all" | "yes" | "no" | undefined;
|
|
1822
1817
|
} | null;
|
|
1823
1818
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
1824
1819
|
clientInfo: {
|
|
@@ -2028,9 +2023,8 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
2028
2023
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
|
|
2029
2024
|
biddingTaskScheduled: boolean | null;
|
|
2030
2025
|
scheduledBiddingTime: number | null;
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
rejectedFeedback: string | null;
|
|
2026
|
+
biddingTaskId: string | null;
|
|
2027
|
+
doNotApplyReason: string | null;
|
|
2034
2028
|
activity?: Partial<Record<"4h" | "24h", {
|
|
2035
2029
|
updatedAt: number | null;
|
|
2036
2030
|
proposals: {
|
|
@@ -2089,7 +2083,6 @@ export interface ProcessFeedPayload extends infer<typeof processFeedPayloadSchem
|
|
|
2089
2083
|
export interface ScrapeJobActivityPayload extends infer<typeof scrapeJobActivityPayloadSchema> {
|
|
2090
2084
|
}
|
|
2091
2085
|
export interface CheckLeadStatusPayload extends infer<typeof checkLeadStatusPayloadSchema> {
|
|
2092
|
-
campaign: Campaign;
|
|
2093
2086
|
bidder: BidderAccount;
|
|
2094
2087
|
lead: Lead;
|
|
2095
2088
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scrapeUserProfilePayloadSchema = exports.scrapePayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.scrapePayloadSchema = zod_1.z.object({
|
|
6
|
+
latestJobsUrls: zod_1.z.array(zod_1.z.string()),
|
|
7
|
+
cookies: zod_1.z.array(zod_1.z.any()),
|
|
8
|
+
username: zod_1.z.string(),
|
|
9
|
+
password: zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
exports.scrapeUserProfilePayloadSchema = zod_1.z.object({
|
|
12
|
+
profileUrl: zod_1.z.string(),
|
|
13
|
+
cookies: zod_1.z.array(zod_1.z.any()),
|
|
14
|
+
username: zod_1.z.string(),
|
|
15
|
+
password: zod_1.z.string(),
|
|
16
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scrapeUserProfileResultSchema = exports.scrapeResultSchema = exports.regionSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const lead_1 = require("../lead");
|
|
6
|
+
const user_1 = require("../user");
|
|
7
|
+
exports.regionSchema = zod_1.z.union([
|
|
8
|
+
zod_1.z.literal("USOnly"),
|
|
9
|
+
zod_1.z.literal("UKOnly"),
|
|
10
|
+
zod_1.z.literal("Worldwide"),
|
|
11
|
+
]);
|
|
12
|
+
exports.scrapeResultSchema = zod_1.z.object({
|
|
13
|
+
jobs: zod_1.z.array(lead_1.upworkJobSchema),
|
|
14
|
+
cookies: zod_1.z.array(zod_1.z.any()),
|
|
15
|
+
region: exports.regionSchema,
|
|
16
|
+
usAccountCookies: zod_1.z.array(zod_1.z.any()).optional(),
|
|
17
|
+
ukAccountCookies: zod_1.z.array(zod_1.z.any()).optional(),
|
|
18
|
+
});
|
|
19
|
+
exports.scrapeUserProfileResultSchema = zod_1.z.object({
|
|
20
|
+
success: zod_1.z.boolean(),
|
|
21
|
+
message: zod_1.z.string(),
|
|
22
|
+
data: user_1.upworkProfileSchema,
|
|
23
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.passwordSchema = exports.dateSchema = exports.booleanSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.booleanSchema = zod_1.z
|
|
6
|
+
.union([zod_1.z.boolean(), zod_1.z.literal("true"), zod_1.z.literal("false")])
|
|
7
|
+
.transform((value) => value === true || value === "true");
|
|
8
|
+
const dateSchema = (params = {}) => zod_1.coerce.date(Object.assign({}, params));
|
|
9
|
+
exports.dateSchema = dateSchema;
|
|
10
|
+
exports.passwordSchema = (0, zod_1.string)()
|
|
11
|
+
.min(8, "Password must be at least 8 characters long.")
|
|
12
|
+
.max(255, "Password must be at most 255 characters long.")
|
|
13
|
+
.refine((password) => /[a-z]/.test(password), "Password must contain at least one lowercase letter.")
|
|
14
|
+
.refine((password) => /[A-Z]/.test(password), "Password must contain at least one uppercase letter.")
|
|
15
|
+
.refine((password) => /\d/.test(password), "Password must contain at least one number.")
|
|
16
|
+
.refine((password) => /[\W_]/.test(password), "Password must contain at least one symbol.");
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.timeFilterSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.timeFilterSchema = zod_1.z.union([
|
|
6
|
+
zod_1.z.literal("last_7_days"),
|
|
7
|
+
zod_1.z.literal("last_30_days"),
|
|
8
|
+
zod_1.z.literal("all_time"),
|
|
9
|
+
]);
|
|
@@ -0,0 +1,19 @@
|
|
|
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);
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
]);
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
}>;
|