lancer-shared 1.2.26 → 1.2.27
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 +19212 -11684
- package/dist/constants/account-status.d.ts +3 -0
- package/dist/constants/account-status.js +17 -0
- package/dist/constants/campaign-notifications.d.ts +2 -0
- package/dist/constants/collections.js +13 -11
- package/dist/constants/common-questions.js +4 -1
- package/dist/constants/index.js +32 -10
- package/dist/constants/job-filter-options.js +4 -1
- package/dist/constants/job-status.js +12 -7
- package/dist/constants/mappings/countryMapping.js +3 -1
- package/dist/constants/mappings/regionMapping.js +3 -1
- package/dist/constants/organization.d.ts +2 -2
- package/dist/constants/proxies.d.ts +4 -0
- package/dist/constants/routes.d.ts +12 -8
- package/dist/constants/routes.js +37 -39
- package/dist/constants/upwork-accounts.d.ts +1 -1
- package/dist/constants/upwork-accounts.js +6 -3
- package/dist/constants/upwork-filters.d.ts +5 -0
- package/dist/constants/upwork-filters.js +75 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +20 -4
- package/dist/schemas/account/account-status.d.ts +2 -2
- package/dist/schemas/account/account-status.js +5 -2
- package/dist/schemas/account/bidder-account.d.ts +286 -36
- package/dist/schemas/account/bidder-account.js +24 -22
- package/dist/schemas/account/exceptions/index.d.ts +3 -0
- package/dist/schemas/account/exceptions/invalid-google-oauth-token.exception.d.ts +5 -0
- package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +5 -0
- package/dist/schemas/account/exceptions/no-bidder-accounts-available.exception.d.ts +5 -0
- package/dist/schemas/account/exceptions/no-google-oauth-tokens-found.exception.d.ts +5 -0
- package/dist/schemas/account/index.d.ts +4 -3
- package/dist/schemas/account/index.js +19 -3
- 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.d.ts +7 -7
- package/dist/schemas/account/scraper-account.js +24 -21
- package/dist/schemas/ai/ai-config.js +11 -8
- package/dist/schemas/ai/index.js +19 -3
- package/dist/schemas/ai/proposal.js +13 -10
- package/dist/schemas/ai/suitability.js +11 -8
- package/dist/schemas/ai-config/ai-config.d.ts +39 -0
- package/dist/schemas/ai-config/ai-config.js +12 -0
- package/dist/schemas/ai-config/index.d.ts +1 -0
- package/dist/schemas/ai-config/index.js +17 -0
- package/dist/schemas/bid/bid-result.js +13 -9
- package/dist/schemas/bid/bid-status.d.ts +30 -0
- package/dist/schemas/bid/bid-status.js +15 -0
- package/dist/schemas/bid/bid.js +30 -29
- package/dist/schemas/bid/exceptions/base-exception.d.ts +4 -0
- package/dist/schemas/bid/exceptions/cloudflare-challenge-failed.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/delete-multilogin-profile.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/dropdown-option-not-present.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/element-not-clickable.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/evalaute-element.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/evaluate-function.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/get-multilogin-browser.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/incorrect-security-question-answer.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/index.d.ts +61 -0
- package/dist/schemas/bid/exceptions/init-browser.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/insufficient-connects.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/invalid-credentials.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/invalid-job-url.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/login-failed.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/multilogin-authentication.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/navigation-timeout.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/new-browser-page.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/new-page.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/open-new-url.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/parse-connects.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/proposal-error-alert.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/proposal-form-warning-alert.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/proposal-submit-failed.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/pupeteer-conection-error.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/question-pair-not-matching.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/select-agency.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/select-contractor.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/selector-not-found.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/typed-value-not-matching.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/typing-input-field.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +5 -0
- package/dist/schemas/bid/exceptions/wait-for-function-timeout.exception.d.ts +5 -0
- package/dist/schemas/bid/index.d.ts +1 -0
- package/dist/schemas/bid/index.js +18 -2
- 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/bidding/proposal-dto.d.ts +26 -0
- package/dist/schemas/bidding/proposal-dto.js +18 -0
- package/dist/schemas/campaign/campaign-ai-metrics.js +8 -5
- package/dist/schemas/campaign/campaign-analytics.js +31 -32
- package/dist/schemas/campaign/campaign-expenses.js +8 -5
- package/dist/schemas/campaign/campaign-insights.js +30 -30
- package/dist/schemas/campaign/campaign-integrations.d.ts +0 -5
- package/dist/schemas/campaign/campaign-integrations.js +13 -10
- package/dist/schemas/campaign/campaign-job-count.js +6 -3
- package/dist/schemas/campaign/campaign-notifications.d.ts +9 -0
- package/dist/schemas/campaign/campaign.d.ts +171 -238
- package/dist/schemas/campaign/campaign.js +35 -32
- package/dist/schemas/campaign/index.d.ts +6 -6
- package/dist/schemas/campaign/index.js +23 -7
- package/dist/schemas/chat-message/chat-message.js +10 -7
- package/dist/schemas/chat-message/index.js +17 -1
- package/dist/schemas/config/agency-config.js +9 -6
- package/dist/schemas/config/index.js +17 -1
- package/dist/schemas/index.js +32 -17
- 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-pipeline.d.ts +74 -0
- package/dist/schemas/job/job-pipeline.js +29 -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-suitability.d.ts +12 -0
- package/dist/schemas/job/job-suitability.js +13 -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 +608 -0
- package/dist/schemas/job/pipeline-job.js +43 -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.js +17 -1
- package/dist/schemas/job-filters/job-filters.js +65 -62
- package/dist/schemas/knowledge-object/index.d.ts +1 -0
- package/dist/schemas/knowledge-object/index.js +17 -0
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
- package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
- package/dist/schemas/lead/index.js +19 -173
- package/dist/schemas/lead/lead-note.js +16 -13
- package/dist/schemas/lead/lead-status.js +6 -3
- package/dist/schemas/lead/lead.d.ts +1897 -0
- package/dist/schemas/lead/lead.js +143 -0
- package/dist/schemas/logger/index.js +17 -1
- package/dist/schemas/logger/log-event.d.ts +18 -17
- package/dist/schemas/logger/log-event.js +49 -100
- package/dist/schemas/organization/index.d.ts +9 -66
- package/dist/schemas/organization/index.js +17 -70
- package/dist/schemas/organization/organization.d.ts +7 -177
- package/dist/schemas/organization/organization.js +17 -14
- package/dist/schemas/proxy/index.js +17 -3
- package/dist/schemas/proxy/proxy.js +19 -25
- package/dist/schemas/saved-search/index.js +11 -8
- package/dist/schemas/scraper/index.js +18 -2
- package/dist/schemas/scraper/scrape-payload.d.ts +65 -60
- package/dist/schemas/scraper/scrape-payload.js +14 -19
- package/dist/schemas/scraper/scrape-response.d.ts +345 -0
- package/dist/schemas/scraper/scrape-response.js +9 -0
- package/dist/schemas/scraper/scrape-result.js +21 -21
- package/dist/schemas/shared.js +9 -12
- package/dist/schemas/time-filter/index.js +8 -5
- 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-scraper-account.d.ts +92 -0
- package/dist/schemas/upwork-account/upwork-scraper-account.js +31 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +90 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.js +30 -0
- package/dist/schemas/user/index.js +41 -38
- package/dist/types/account/account-status.js +2 -1
- package/dist/types/account/bidder-account.js +2 -1
- package/dist/types/account/index.js +19 -3
- 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.js +2 -1
- package/dist/types/ai/ai-config.js +2 -1
- package/dist/types/ai/index.js +19 -3
- package/dist/types/ai/proposal.js +2 -1
- package/dist/types/ai/suitability.js +2 -1
- package/dist/types/ai-config/ai-config.d.ts +6 -0
- package/dist/types/ai-config/ai-config.js +2 -0
- package/dist/types/ai-config/index.d.ts +1 -0
- package/dist/types/ai-config/index.js +17 -0
- package/dist/types/bid/bid-result.js +2 -1
- package/dist/types/bid/bid-status.d.ts +5 -0
- package/dist/types/bid/bid-status.js +2 -0
- package/dist/types/bid/bid.js +2 -1
- package/dist/types/bid/index.js +18 -2
- 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/bidding/proposal-dto.d.ts +3 -0
- package/dist/types/bidding/proposal-dto.js +2 -0
- package/dist/types/campaign/campaign-analytics.js +2 -1
- package/dist/types/campaign/campaign-expenses.js +2 -1
- package/dist/types/campaign/campaign-insights.d.ts +1 -2
- package/dist/types/campaign/campaign-insights.js +2 -1
- package/dist/types/campaign/campaign-integrations.js +2 -1
- package/dist/types/campaign/campaign-job-count.js +2 -1
- package/dist/types/campaign/campaign-notifications.d.ts +7 -0
- package/dist/types/campaign/campaign.d.ts +5 -6
- package/dist/types/campaign/campaign.js +2 -1
- package/dist/types/campaign/index.d.ts +3 -6
- package/dist/types/campaign/index.js +22 -6
- package/dist/types/chat-message/chat-message.js +2 -1
- package/dist/types/chat-message/index.js +17 -1
- package/dist/types/config/agency-config.js +2 -1
- package/dist/types/config/index.js +17 -1
- package/dist/types/index.js +29 -15
- package/dist/types/job/index.js +19 -3
- 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.js +2 -1
- package/dist/types/job/job-pipeline.d.ts +4 -0
- package/dist/types/job/job-pipeline.js +2 -0
- package/dist/types/job/job-status.js +4 -1
- package/dist/types/job/job-suitability.d.ts +3 -0
- package/dist/types/job/job-suitability.js +2 -0
- package/dist/types/job/job.d.ts +36 -0
- package/dist/types/job/job.js +2 -0
- package/dist/types/job-filters/index.js +17 -1
- package/dist/types/job-filters/job-filters.js +2 -1
- package/dist/types/knowledge-object/index.d.ts +1 -0
- package/dist/types/knowledge-object/index.js +17 -0
- package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
- package/dist/types/knowledge-object/knowledge-object.js +2 -0
- package/dist/types/logger/index.js +17 -1
- package/dist/types/logger/log-event.d.ts +5 -4
- package/dist/types/logger/log-event.js +2 -1
- package/dist/types/saved-search/index.js +2 -1
- package/dist/types/scraper/index.js +18 -2
- package/dist/types/scraper/scrape-payload.js +2 -1
- package/dist/types/scraper/scrape-response.d.ts +4 -0
- package/dist/types/scraper/scrape-response.js +2 -0
- package/dist/types/scraper/scrape-result.js +2 -1
- package/dist/types/time-filter/index.js +2 -1
- 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/user/index.js +2 -1
- package/dist/utils/index.js +17 -1
- package/dist/utils/try-catch.js +23 -8
- package/package.json +1 -1
- package/dist/schemas/event/index.d.ts +0 -58
- package/dist/schemas/lead/nuxt.js +0 -287
- package/dist/schemas/meter-event/index.d.ts +0 -12
- package/dist/schemas/organization/member.js +0 -7
- package/dist/schemas/organization/subscription.js +0 -17
- package/dist/schemas/proxy/proxy-available-replacements.js +0 -3
- package/dist/schemas/proxy/proxy-country.js +0 -249
- package/dist/schemas/tier/index.d.ts +0 -119
- package/dist/schemas/transaction/index.js +0 -17
- package/dist/schemas/usage/index.js +0 -18
- package/dist/types/job/nuxt.js +0 -1
- package/dist/types/shared.js +0 -1
- package/dist/types/transaction/index.js +0 -1
- package/dist/types/usage/index.js +0 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const upworkScraperAccountSchema: 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.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
9
|
+
isActive: z.ZodBoolean;
|
|
10
|
+
lastUsed: 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: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
18
|
+
cookies: Record<string, string>;
|
|
19
|
+
password: string;
|
|
20
|
+
isActive: boolean;
|
|
21
|
+
verified: boolean;
|
|
22
|
+
lastUsed: number;
|
|
23
|
+
proxy_credentials: string;
|
|
24
|
+
}, {
|
|
25
|
+
id: string;
|
|
26
|
+
email: string;
|
|
27
|
+
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
28
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
29
|
+
cookies: Record<string, string>;
|
|
30
|
+
password: string;
|
|
31
|
+
isActive: boolean;
|
|
32
|
+
verified: boolean;
|
|
33
|
+
lastUsed: 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.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
43
|
+
isActive: z.ZodBoolean;
|
|
44
|
+
lastUsed: z.ZodNumber;
|
|
45
|
+
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
46
|
+
verified: z.ZodBoolean;
|
|
47
|
+
}, "email" | "region" | "password" | "isActive" | "verified" | "proxy_credentials">, "strip", z.ZodTypeAny, {
|
|
48
|
+
email: string;
|
|
49
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
50
|
+
password: string;
|
|
51
|
+
isActive: boolean;
|
|
52
|
+
verified: boolean;
|
|
53
|
+
proxy_credentials: string;
|
|
54
|
+
}, {
|
|
55
|
+
email: string;
|
|
56
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
57
|
+
password: string;
|
|
58
|
+
isActive: boolean;
|
|
59
|
+
verified: boolean;
|
|
60
|
+
proxy_credentials: string;
|
|
61
|
+
}>;
|
|
62
|
+
export declare const updateUpworkScraperAccountSchema: z.ZodObject<{
|
|
63
|
+
email: z.ZodOptional<z.ZodString>;
|
|
64
|
+
status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
|
|
65
|
+
region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
|
|
66
|
+
cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
67
|
+
password: z.ZodOptional<z.ZodString>;
|
|
68
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
verified: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
lastUsed: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
proxy_credentials: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
email?: string | undefined;
|
|
74
|
+
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
75
|
+
region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
|
|
76
|
+
cookies?: Record<string, string> | undefined;
|
|
77
|
+
password?: string | undefined;
|
|
78
|
+
isActive?: boolean | undefined;
|
|
79
|
+
verified?: boolean | undefined;
|
|
80
|
+
lastUsed?: number | undefined;
|
|
81
|
+
proxy_credentials?: string | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
email?: string | undefined;
|
|
84
|
+
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
85
|
+
region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
|
|
86
|
+
cookies?: Record<string, string> | undefined;
|
|
87
|
+
password?: string | undefined;
|
|
88
|
+
isActive?: boolean | undefined;
|
|
89
|
+
verified?: boolean | undefined;
|
|
90
|
+
lastUsed?: number | undefined;
|
|
91
|
+
proxy_credentials?: string | undefined;
|
|
92
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateUpworkScraperAccountSchema = exports.createUpworkScraperAccountSchema = exports.upworkScraperAccountSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const upwork_account_status_1 = require("./upwork-account-status");
|
|
6
|
+
const job_filters_1 = require("../job-filters");
|
|
7
|
+
exports.upworkScraperAccountSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string(),
|
|
9
|
+
email: zod_1.z.string().email(),
|
|
10
|
+
password: zod_1.z.string(),
|
|
11
|
+
cookies: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
12
|
+
proxy_credentials: zod_1.z.string(),
|
|
13
|
+
region: job_filters_1.regionEnum,
|
|
14
|
+
isActive: zod_1.z.boolean(),
|
|
15
|
+
lastUsed: zod_1.z.number(),
|
|
16
|
+
status: upwork_account_status_1.upworkAccountStatusSchema,
|
|
17
|
+
verified: zod_1.z.boolean(),
|
|
18
|
+
});
|
|
19
|
+
exports.createUpworkScraperAccountSchema = exports.upworkScraperAccountSchema.pick({
|
|
20
|
+
email: true,
|
|
21
|
+
password: true,
|
|
22
|
+
proxy_credentials: true,
|
|
23
|
+
region: true,
|
|
24
|
+
verified: true,
|
|
25
|
+
isActive: true,
|
|
26
|
+
});
|
|
27
|
+
exports.updateUpworkScraperAccountSchema = exports.upworkScraperAccountSchema
|
|
28
|
+
.omit({
|
|
29
|
+
id: true,
|
|
30
|
+
})
|
|
31
|
+
.partial();
|
|
@@ -0,0 +1,90 @@
|
|
|
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.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
9
|
+
isActive: z.ZodBoolean;
|
|
10
|
+
lastUsed: 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: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
18
|
+
cookies: Record<string, string>;
|
|
19
|
+
password: string;
|
|
20
|
+
isActive: boolean;
|
|
21
|
+
verified: boolean;
|
|
22
|
+
lastUsed: number;
|
|
23
|
+
proxy_credentials: string;
|
|
24
|
+
}, {
|
|
25
|
+
id: string;
|
|
26
|
+
email: string;
|
|
27
|
+
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
28
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
29
|
+
cookies: Record<string, string>;
|
|
30
|
+
password: string;
|
|
31
|
+
isActive: boolean;
|
|
32
|
+
verified: boolean;
|
|
33
|
+
lastUsed: 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.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
43
|
+
isActive: z.ZodBoolean;
|
|
44
|
+
lastUsed: 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: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
50
|
+
password: string;
|
|
51
|
+
verified: boolean;
|
|
52
|
+
proxy_credentials: string;
|
|
53
|
+
}, {
|
|
54
|
+
email: string;
|
|
55
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
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.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
|
|
64
|
+
cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
65
|
+
password: z.ZodOptional<z.ZodString>;
|
|
66
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
verified: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
lastUsed: 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?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
|
|
74
|
+
cookies?: Record<string, string> | undefined;
|
|
75
|
+
password?: string | undefined;
|
|
76
|
+
isActive?: boolean | undefined;
|
|
77
|
+
verified?: boolean | undefined;
|
|
78
|
+
lastUsed?: number | undefined;
|
|
79
|
+
proxy_credentials?: string | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
email?: string | undefined;
|
|
82
|
+
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
83
|
+
region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
|
|
84
|
+
cookies?: Record<string, string> | undefined;
|
|
85
|
+
password?: string | undefined;
|
|
86
|
+
isActive?: boolean | undefined;
|
|
87
|
+
verified?: boolean | undefined;
|
|
88
|
+
lastUsed?: number | undefined;
|
|
89
|
+
proxy_credentials?: string | undefined;
|
|
90
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
const job_filters_1 = require("../job-filters");
|
|
7
|
+
exports.upworkScrapingAccountSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string(),
|
|
9
|
+
email: zod_1.z.string().email(),
|
|
10
|
+
password: zod_1.z.string(),
|
|
11
|
+
cookies: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
12
|
+
proxy_credentials: zod_1.z.string(),
|
|
13
|
+
region: job_filters_1.regionEnum,
|
|
14
|
+
isActive: zod_1.z.boolean(),
|
|
15
|
+
lastUsed: zod_1.z.number(),
|
|
16
|
+
status: upwork_account_status_1.upworkAccountStatusSchema,
|
|
17
|
+
verified: zod_1.z.boolean(),
|
|
18
|
+
});
|
|
19
|
+
exports.createUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema.pick({
|
|
20
|
+
email: true,
|
|
21
|
+
password: true,
|
|
22
|
+
proxy_credentials: true,
|
|
23
|
+
region: true,
|
|
24
|
+
verified: true,
|
|
25
|
+
});
|
|
26
|
+
exports.updateUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema
|
|
27
|
+
.omit({
|
|
28
|
+
id: true,
|
|
29
|
+
})
|
|
30
|
+
.partial();
|
|
@@ -1,52 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.upworkProfileSchema = exports.registerSchema = exports.loginSchema = exports.userSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../shared");
|
|
6
|
+
exports.userSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.string)(),
|
|
8
|
+
firstName: (0, zod_1.string)(),
|
|
9
|
+
lastName: (0, zod_1.string)(),
|
|
10
|
+
displayName: (0, zod_1.string)(),
|
|
11
|
+
email: (0, zod_1.string)(),
|
|
12
|
+
organizationIds: zod_1.z.array((0, zod_1.string)()),
|
|
13
|
+
createdAt: (0, zod_1.number)(),
|
|
14
|
+
updatedAt: (0, zod_1.number)(),
|
|
12
15
|
});
|
|
13
|
-
|
|
14
|
-
email: string().email(),
|
|
15
|
-
password: passwordSchema,
|
|
16
|
+
exports.loginSchema = (0, zod_1.object)({
|
|
17
|
+
email: (0, zod_1.string)().email(),
|
|
18
|
+
password: shared_1.passwordSchema,
|
|
16
19
|
});
|
|
17
|
-
|
|
18
|
-
firstName: string().min(1, "First name is required").max(255),
|
|
19
|
-
lastName: string().min(1, "Last name is required").max(255),
|
|
20
|
-
email: string()
|
|
20
|
+
exports.registerSchema = (0, zod_1.object)({
|
|
21
|
+
firstName: (0, zod_1.string)().min(1, "First name is required").max(255),
|
|
22
|
+
lastName: (0, zod_1.string)().min(1, "Last name is required").max(255),
|
|
23
|
+
email: (0, zod_1.string)()
|
|
21
24
|
.email("Must be a valid email address")
|
|
22
25
|
.max(255)
|
|
23
26
|
.min(1, "Email address is required"),
|
|
24
|
-
password: passwordSchema,
|
|
25
|
-
confirmPassword: passwordSchema,
|
|
27
|
+
password: shared_1.passwordSchema,
|
|
28
|
+
confirmPassword: shared_1.passwordSchema,
|
|
26
29
|
}).refine(({ password, confirmPassword }) => password === confirmPassword, {
|
|
27
30
|
message: `Passwords don't match.`,
|
|
28
31
|
path: ["confirmPassword"],
|
|
29
32
|
});
|
|
30
|
-
|
|
31
|
-
name: string().nullable(),
|
|
32
|
-
country: string().nullable(),
|
|
33
|
-
bio: string().nullable(),
|
|
34
|
-
skills: z.array(string()).nullable(),
|
|
35
|
-
certifications: z.array(string()).nullable(),
|
|
36
|
-
employmentHistory: z
|
|
37
|
-
.array(z.object({
|
|
38
|
-
jobTitle: string(),
|
|
39
|
-
period: string(),
|
|
40
|
-
description: string(),
|
|
33
|
+
exports.upworkProfileSchema = (0, zod_1.object)({
|
|
34
|
+
name: (0, zod_1.string)().nullable(),
|
|
35
|
+
country: (0, zod_1.string)().nullable(),
|
|
36
|
+
bio: (0, zod_1.string)().nullable(),
|
|
37
|
+
skills: zod_1.z.array((0, zod_1.string)()).nullable(),
|
|
38
|
+
certifications: zod_1.z.array((0, zod_1.string)()).nullable(),
|
|
39
|
+
employmentHistory: zod_1.z
|
|
40
|
+
.array(zod_1.z.object({
|
|
41
|
+
jobTitle: (0, zod_1.string)(),
|
|
42
|
+
period: (0, zod_1.string)(),
|
|
43
|
+
description: (0, zod_1.string)(),
|
|
41
44
|
}))
|
|
42
45
|
.nullable(),
|
|
43
|
-
languages: z.record(string(), string()).nullable(),
|
|
44
|
-
portfolio: z
|
|
45
|
-
.array(z.object({
|
|
46
|
-
title: string(),
|
|
47
|
-
description: string(),
|
|
48
|
-
skills: z.array(string()),
|
|
49
|
-
publishedDate: string(),
|
|
46
|
+
languages: zod_1.z.record((0, zod_1.string)(), (0, zod_1.string)()).nullable(),
|
|
47
|
+
portfolio: zod_1.z
|
|
48
|
+
.array(zod_1.z.object({
|
|
49
|
+
title: (0, zod_1.string)(),
|
|
50
|
+
description: (0, zod_1.string)(),
|
|
51
|
+
skills: zod_1.z.array((0, zod_1.string)()),
|
|
52
|
+
publishedDate: (0, zod_1.string)(),
|
|
50
53
|
}))
|
|
51
54
|
.nullable(),
|
|
52
55
|
});
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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("./account-status"), exports);
|
|
18
|
+
__exportStar(require("./bidder-account"), exports);
|
|
19
|
+
__exportStar(require("./scraper-account"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
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 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/types/ai/index.js
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ai-config"), exports);
|
|
18
|
+
__exportStar(require("./proposal"), exports);
|
|
19
|
+
__exportStar(require("./suitability"), exports);
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ai-config';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ai-config"), exports);
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { bidSuccessSchema, bidFailedSchema } from '../../schemas/bid/bid-status';
|
|
3
|
+
export type BidSuccess = z.infer<typeof bidSuccessSchema>;
|
|
4
|
+
export type BidFailed = z.infer<typeof bidFailedSchema>;
|
|
5
|
+
export type BidStatus = BidSuccess | BidFailed;
|
package/dist/types/bid/bid.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/types/bid/index.js
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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("./bid"), exports);
|
|
18
|
+
__exportStar(require("./bid-result"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './proposal-bidding-status';
|
|
@@ -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("./proposal-bidding-status"), exports);
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { campaignInsightsSchema
|
|
2
|
+
import { campaignInsightsSchema } from '../../schemas';
|
|
3
3
|
import { campaignCountByStatusSchema } from '../../schemas/campaign/campaign-insights';
|
|
4
|
-
export type CampaignIntegration = z.infer<typeof campaignIntegrations>;
|
|
5
4
|
export interface CampaignCountByStatus extends z.infer<typeof campaignCountByStatusSchema> {
|
|
6
5
|
}
|
|
7
6
|
export interface CampaignInsights extends z.infer<typeof campaignInsightsSchema> {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { campaignNotificationType, campaignNotificationWebhooks, updateCampaignNotificationWebhooksSchema } from '../../schemas';
|
|
3
|
+
export type CampaignNotificationType = z.infer<typeof campaignNotificationType>;
|
|
4
|
+
export interface CampaignNotificationWebhooks extends z.infer<typeof campaignNotificationWebhooks> {
|
|
5
|
+
}
|
|
6
|
+
export interface UpdateCampaignNotificationWebhooks extends z.infer<typeof updateCampaignNotificationWebhooksSchema> {
|
|
7
|
+
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { JobFilters } from
|
|
4
|
-
import {
|
|
5
|
-
import { CampaignIntegrations } from "./campaign-integrations";
|
|
1
|
+
import { CampaignExpenses } from 'lancer-shared';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { campaignSchema, campaignStatusSchema, createCampaignSchema, JobFilters, updateCampaignSchema } from '../../schemas';
|
|
4
|
+
import { CampaignNotificationWebhooks } from './campaign-notifications';
|
|
6
5
|
export interface Campaign extends z.infer<typeof campaignSchema> {
|
|
7
6
|
filters: JobFilters;
|
|
8
7
|
expenses: CampaignExpenses;
|
|
9
|
-
|
|
8
|
+
notificationWebhooks: CampaignNotificationWebhooks;
|
|
10
9
|
}
|
|
11
10
|
export type CampaignStatus = z.infer<typeof campaignStatusSchema>;
|
|
12
11
|
export interface CreateCampaign extends z.infer<typeof createCampaignSchema> {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from "./campaign-expenses";
|
|
5
|
-
export * from "./campaign-integrations";
|
|
6
|
-
export * from "./campaign-analytics";
|
|
1
|
+
export * from './campaign';
|
|
2
|
+
export * from './campaign-insights';
|
|
3
|
+
export * from './campaign-notifications';
|