lancer-shared 1.2.69 → 1.2.71
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
CHANGED
|
@@ -6414,98 +6414,98 @@ var moment = /*@__PURE__*/getDefaultExportFromCjs(momentExports);
|
|
|
6414
6414
|
|
|
6415
6415
|
const ROUTES = {
|
|
6416
6416
|
AUTH: {
|
|
6417
|
-
BASE:
|
|
6418
|
-
REGISTER:
|
|
6417
|
+
BASE: "auth",
|
|
6418
|
+
REGISTER: "auth/register",
|
|
6419
6419
|
},
|
|
6420
6420
|
SYSTEM: {
|
|
6421
|
-
BASE:
|
|
6421
|
+
BASE: "system",
|
|
6422
6422
|
PROMPTS: {
|
|
6423
|
-
BASE:
|
|
6423
|
+
BASE: "system/prompts",
|
|
6424
6424
|
},
|
|
6425
6425
|
},
|
|
6426
6426
|
EVENTS: {
|
|
6427
|
-
BASE:
|
|
6427
|
+
BASE: "events",
|
|
6428
6428
|
BY_ID: (id) => `events/${id}`,
|
|
6429
6429
|
},
|
|
6430
6430
|
JOBS: {
|
|
6431
|
-
BASE:
|
|
6431
|
+
BASE: "jobs",
|
|
6432
6432
|
BY_ID: (id) => `jobs/${id}`,
|
|
6433
6433
|
UPDATE_ACTIVITY: `jobs/update-activity`,
|
|
6434
|
-
IMPORT:
|
|
6435
|
-
FILTER_OPTIONS:
|
|
6436
|
-
TOTAL_JOBS:
|
|
6434
|
+
IMPORT: "jobs/import",
|
|
6435
|
+
FILTER_OPTIONS: "jobs/filter-options",
|
|
6436
|
+
TOTAL_JOBS: "jobs/total-jobs",
|
|
6437
6437
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
6438
6438
|
GET_JOBS_COUNT: "jobs/get-jobs-count",
|
|
6439
6439
|
},
|
|
6440
6440
|
USERS: {
|
|
6441
|
-
BASE:
|
|
6441
|
+
BASE: "users",
|
|
6442
6442
|
BY_ID: (id) => `users/${id}`,
|
|
6443
6443
|
ORGANIZATIONS: (id) => `users/${id}/organizations`,
|
|
6444
6444
|
},
|
|
6445
6445
|
COOKIES: {
|
|
6446
|
-
BASE:
|
|
6447
|
-
SCRAPE:
|
|
6446
|
+
BASE: "cookies",
|
|
6447
|
+
SCRAPE: "cookies/scrape-cookies",
|
|
6448
6448
|
},
|
|
6449
6449
|
SCRAPING: {
|
|
6450
|
-
BASE:
|
|
6451
|
-
START_SCRAPING:
|
|
6452
|
-
START_WORLDWIDE_SCRAPING:
|
|
6453
|
-
START_US_SCRAPING:
|
|
6454
|
-
START_UK_SCRAPING:
|
|
6455
|
-
UPDATE_ACTIVITY_4H_WORLDWIDE:
|
|
6456
|
-
UPDATE_ACTIVITY_4H_UK:
|
|
6457
|
-
UPDATE_ACTIVITY_4H_US:
|
|
6458
|
-
UPDATE_ACTIVITY_24H_WORLDWIDE:
|
|
6459
|
-
UPDATE_ACTIVITY_24H_UK:
|
|
6460
|
-
UPDATE_ACTIVITY_24H_US:
|
|
6461
|
-
SCRAPE_FEED_WORLDWIDE:
|
|
6462
|
-
SCRAPE_FEED_UK:
|
|
6463
|
-
SCRAPE_FEED_US:
|
|
6464
|
-
SCRAPE_JOB:
|
|
6465
|
-
SCRAPE_JOB_ACTIVITY:
|
|
6466
|
-
USER_PROFILE:
|
|
6467
|
-
CHECK_LEAD_STATUS:
|
|
6450
|
+
BASE: "scraping",
|
|
6451
|
+
START_SCRAPING: "scraping/start",
|
|
6452
|
+
START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
|
|
6453
|
+
START_US_SCRAPING: "scraping/start-us",
|
|
6454
|
+
START_UK_SCRAPING: "scraping/start-uk",
|
|
6455
|
+
UPDATE_ACTIVITY_4H_WORLDWIDE: "scraping/update-activity/4h",
|
|
6456
|
+
UPDATE_ACTIVITY_4H_UK: "scraping/update-activity/4h/uk",
|
|
6457
|
+
UPDATE_ACTIVITY_4H_US: "scraping/update-activity/4h/us",
|
|
6458
|
+
UPDATE_ACTIVITY_24H_WORLDWIDE: "scraping/update-activity/24h",
|
|
6459
|
+
UPDATE_ACTIVITY_24H_UK: "scraping/update-activity/24h/uk",
|
|
6460
|
+
UPDATE_ACTIVITY_24H_US: "scraping/update-activity/24h/us",
|
|
6461
|
+
SCRAPE_FEED_WORLDWIDE: "scraping/feed-worldwide",
|
|
6462
|
+
SCRAPE_FEED_UK: "scraping/feed-uk",
|
|
6463
|
+
SCRAPE_FEED_US: "scraping/feed-us",
|
|
6464
|
+
SCRAPE_JOB: "scraping/job",
|
|
6465
|
+
SCRAPE_JOB_ACTIVITY: "scraping/job-activity",
|
|
6466
|
+
USER_PROFILE: "scraping/user-profile",
|
|
6467
|
+
CHECK_LEAD_STATUS: "scraping/check-lead-status",
|
|
6468
6468
|
},
|
|
6469
6469
|
ADMIN: {
|
|
6470
|
-
BASE:
|
|
6470
|
+
BASE: "admin",
|
|
6471
6471
|
BIDDER_ACCOUNTS: {
|
|
6472
|
-
BASE:
|
|
6472
|
+
BASE: "admin/bidder-accounts",
|
|
6473
6473
|
BY_ID: (id) => `admin/bidder-accounts/${id}`,
|
|
6474
6474
|
BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
|
|
6475
6475
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
|
|
6476
6476
|
},
|
|
6477
6477
|
SCRAPER_ACCOUNTS: {
|
|
6478
|
-
BASE:
|
|
6478
|
+
BASE: "admin/scraper-accounts",
|
|
6479
6479
|
BY_ID: (id) => `admin/scraper-accounts/${id}`,
|
|
6480
6480
|
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
6481
6481
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
6482
6482
|
},
|
|
6483
6483
|
PROXIES: {
|
|
6484
|
-
BASE:
|
|
6484
|
+
BASE: "admin/proxies",
|
|
6485
6485
|
BY_ID: (id) => `admin/proxies/${id}`,
|
|
6486
6486
|
REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
|
|
6487
|
-
SYNC:
|
|
6488
|
-
AVAILABLE_REPLACEMENTS:
|
|
6489
|
-
AVAILABLE_COUNTRIES:
|
|
6487
|
+
SYNC: "admin/proxies/sync",
|
|
6488
|
+
AVAILABLE_REPLACEMENTS: "admin/proxies/available-replacements",
|
|
6489
|
+
AVAILABLE_COUNTRIES: "admin/proxies/available-countries",
|
|
6490
6490
|
},
|
|
6491
6491
|
DASHBOARD: {
|
|
6492
|
-
CAMPAIGN_STATS:
|
|
6492
|
+
CAMPAIGN_STATS: "admin/dashboard/campaign-stats",
|
|
6493
6493
|
},
|
|
6494
6494
|
ALERTS: {
|
|
6495
|
-
BASE:
|
|
6496
|
-
SEND_ALERT:
|
|
6495
|
+
BASE: "admin/alerts",
|
|
6496
|
+
SEND_ALERT: "admin/alerts/send",
|
|
6497
6497
|
},
|
|
6498
6498
|
},
|
|
6499
6499
|
BID: {
|
|
6500
|
-
BASE:
|
|
6500
|
+
BASE: "bid",
|
|
6501
6501
|
BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
|
|
6502
6502
|
},
|
|
6503
6503
|
BIDDER_ACCOUNTS: {
|
|
6504
|
-
BASE:
|
|
6504
|
+
BASE: "bidder-accounts",
|
|
6505
6505
|
BY_ID: (id) => `bidder-accounts/${id}`,
|
|
6506
6506
|
},
|
|
6507
6507
|
ORGANIZATIONS: {
|
|
6508
|
-
BASE:
|
|
6508
|
+
BASE: "organizations",
|
|
6509
6509
|
BY_ID: (id) => `organizations/${id}`,
|
|
6510
6510
|
ONBOARDING: (id) => `organizations/${id}/onboarding/progress`,
|
|
6511
6511
|
AI_CONFIG: (id) => `organizations/${id}/settings/ai-config`,
|
|
@@ -6513,7 +6513,10 @@ const ROUTES = {
|
|
|
6513
6513
|
BASE: (id) => `organizations/${id}/cover-letter`,
|
|
6514
6514
|
BY_ID: (id, coverLetterId) => `organizations/${id}/cover-letter/${coverLetterId}`,
|
|
6515
6515
|
},
|
|
6516
|
-
PROFILE:
|
|
6516
|
+
PROFILE: {
|
|
6517
|
+
BASE: (id) => `organizations/${id}/profile`,
|
|
6518
|
+
DATA: (id) => `organizations/${id}/profile/data`,
|
|
6519
|
+
},
|
|
6517
6520
|
MEMBERS: {
|
|
6518
6521
|
BASE: (id) => `organizations/${id}/members`,
|
|
6519
6522
|
BY_ID: (id, memberId) => `organizations/${id}/members/${memberId}`,
|
|
@@ -6553,26 +6556,26 @@ const ROUTES = {
|
|
|
6553
6556
|
USAGE_SUMMARIES: {
|
|
6554
6557
|
DAILY: {
|
|
6555
6558
|
BASE: (organizationId) => `usage-summaries/${organizationId}/daily`,
|
|
6556
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/daily/${moment(date).format(
|
|
6559
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/daily/${moment(date).format("YYYY-MM-DD")}`,
|
|
6557
6560
|
},
|
|
6558
6561
|
WEEKLY: {
|
|
6559
6562
|
BASE: (organizationId) => `usage-summaries/${organizationId}/weekly`,
|
|
6560
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/weekly/${moment(date).format(
|
|
6563
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/weekly/${moment(date).format("YYYY-WW")}`,
|
|
6561
6564
|
},
|
|
6562
6565
|
MONTHLY: {
|
|
6563
6566
|
BASE: (organizationId) => `usage-summaries/${organizationId}/monthly`,
|
|
6564
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/monthly/${moment(date).format(
|
|
6567
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/monthly/${moment(date).format("YYYY-MM")}`,
|
|
6565
6568
|
},
|
|
6566
6569
|
QUARTERLY: {
|
|
6567
6570
|
BASE: (organizationId) => `usage-summaries/${organizationId}/quarterly`,
|
|
6568
6571
|
BY_DATE: (organizationId, date) => {
|
|
6569
6572
|
const parsed = moment(date);
|
|
6570
|
-
return `usage-summaries/${organizationId}/quarterly/${parsed.format(
|
|
6573
|
+
return `usage-summaries/${organizationId}/quarterly/${parsed.format("YYYY")}-Q${parsed.quarter()}`;
|
|
6571
6574
|
},
|
|
6572
6575
|
},
|
|
6573
6576
|
YEARLY: {
|
|
6574
6577
|
BASE: (organizationId) => `usage-summaries/${organizationId}/yearly`,
|
|
6575
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/yearly/${moment(date).format(
|
|
6578
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/yearly/${moment(date).format("YYYY")}`,
|
|
6576
6579
|
},
|
|
6577
6580
|
},
|
|
6578
6581
|
INVOICES: {
|
|
@@ -6586,30 +6589,30 @@ const ROUTES = {
|
|
|
6586
6589
|
INVOICE_PREVIEW: (id) => `organizations/${id}/invoice-preview`,
|
|
6587
6590
|
},
|
|
6588
6591
|
TRANSACTIONS: {
|
|
6589
|
-
BASE:
|
|
6592
|
+
BASE: "transactions",
|
|
6590
6593
|
BY_ID: (id) => `transactions/${id}`,
|
|
6591
6594
|
},
|
|
6592
6595
|
AGENT: {
|
|
6593
|
-
BASE:
|
|
6594
|
-
SCRAPE_UPWORK_PROFILE:
|
|
6595
|
-
GENERATE_DEFAULT_AI_CONFIG:
|
|
6596
|
-
TEST_SUITABILITY:
|
|
6597
|
-
TEST_PROPOSAL:
|
|
6598
|
-
TEST_SYSTEM_PROMPTS:
|
|
6599
|
-
ANALYZE_LEAD:
|
|
6600
|
-
GENERATE_PROPOSAL:
|
|
6601
|
-
BID:
|
|
6596
|
+
BASE: "agent",
|
|
6597
|
+
SCRAPE_UPWORK_PROFILE: "agent/scrape-upwork-profile",
|
|
6598
|
+
GENERATE_DEFAULT_AI_CONFIG: "agent/generate-ai-config",
|
|
6599
|
+
TEST_SUITABILITY: "agent/test-suitability",
|
|
6600
|
+
TEST_PROPOSAL: "agent/test-proposal",
|
|
6601
|
+
TEST_SYSTEM_PROMPTS: "agent/test-system-prompts",
|
|
6602
|
+
ANALYZE_LEAD: "agent/analyze-lead",
|
|
6603
|
+
GENERATE_PROPOSAL: "agent/generate-proposal",
|
|
6604
|
+
BID: "agent/bid",
|
|
6602
6605
|
},
|
|
6603
6606
|
PLANS: {
|
|
6604
|
-
BASE:
|
|
6607
|
+
BASE: "plans",
|
|
6605
6608
|
BY_ID: (id) => `plans/${id}`,
|
|
6606
6609
|
},
|
|
6607
6610
|
NOTIFICATIONS: {
|
|
6608
|
-
BASE:
|
|
6609
|
-
SEND_NOTIFICATION:
|
|
6611
|
+
BASE: "notifications",
|
|
6612
|
+
SEND_NOTIFICATION: "notifications/send",
|
|
6610
6613
|
},
|
|
6611
6614
|
USAGE_EVENTS: {
|
|
6612
|
-
BASE:
|
|
6615
|
+
BASE: "usage-events",
|
|
6613
6616
|
BY_ID: (id) => `usage-events/${id}`,
|
|
6614
6617
|
},
|
|
6615
6618
|
};
|
|
@@ -6623,7 +6626,7 @@ const buildRoute = (route, params = {}) => {
|
|
|
6623
6626
|
};
|
|
6624
6627
|
// Helper function to get route without admin prefix
|
|
6625
6628
|
const getRouteWithoutAdminPrefix = (route) => {
|
|
6626
|
-
return route.replace(
|
|
6629
|
+
return route.replace("admin/", "");
|
|
6627
6630
|
};
|
|
6628
6631
|
|
|
6629
6632
|
const accountStatusOrder = [
|
|
@@ -11298,11 +11301,11 @@ const proxyCountryEnum = z.enum([
|
|
|
11298
11301
|
]);
|
|
11299
11302
|
|
|
11300
11303
|
const proxyStatusSchema = z.enum([
|
|
11301
|
-
|
|
11302
|
-
|
|
11303
|
-
|
|
11304
|
+
"invalid",
|
|
11305
|
+
"valid",
|
|
11306
|
+
"pending_validation",
|
|
11304
11307
|
]);
|
|
11305
|
-
const proxyProviderSchema = z.enum([
|
|
11308
|
+
const proxyProviderSchema = z.enum(["webshare", "decodo"]);
|
|
11306
11309
|
const proxySchema = z.object({
|
|
11307
11310
|
id: z.string(),
|
|
11308
11311
|
externalId: z.string(),
|
|
@@ -11967,6 +11970,13 @@ const jobListingSchema = objectType({
|
|
|
11967
11970
|
region: regionSchema.nullable(),
|
|
11968
11971
|
});
|
|
11969
11972
|
|
|
11973
|
+
const scraperAccountType = z.enum([
|
|
11974
|
+
"feed",
|
|
11975
|
+
"job",
|
|
11976
|
+
"status",
|
|
11977
|
+
"activity",
|
|
11978
|
+
"profile",
|
|
11979
|
+
]);
|
|
11970
11980
|
const scraperAccountSchema = z.object({
|
|
11971
11981
|
id: z.string(),
|
|
11972
11982
|
region: regionEnum,
|
|
@@ -11976,6 +11986,7 @@ const scraperAccountSchema = z.object({
|
|
|
11976
11986
|
lastUsed: z.number().nullable(),
|
|
11977
11987
|
multiloginProfileId: z.string().nullable(),
|
|
11978
11988
|
proxyId: z.string().nullable(),
|
|
11989
|
+
type: scraperAccountType,
|
|
11979
11990
|
createdAt: z.number(),
|
|
11980
11991
|
updatedAt: z.number(),
|
|
11981
11992
|
});
|
|
@@ -13839,6 +13850,7 @@ exports.scrapePayloadSchema = scrapePayloadSchema;
|
|
|
13839
13850
|
exports.scrapeResultSchema = scrapeResultSchema;
|
|
13840
13851
|
exports.scrapeUserProfileRequestSchema = scrapeUserProfileRequestSchema;
|
|
13841
13852
|
exports.scraperAccountSchema = scraperAccountSchema;
|
|
13853
|
+
exports.scraperAccountType = scraperAccountType;
|
|
13842
13854
|
exports.selectAgencyException = selectAgencyException;
|
|
13843
13855
|
exports.selectContractorException = selectContractorException;
|
|
13844
13856
|
exports.selectorNotFoundError = selectorNotFoundError;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Moment } from
|
|
1
|
+
import { Moment } from "moment";
|
|
2
2
|
export declare const ROUTES: {
|
|
3
3
|
readonly AUTH: {
|
|
4
4
|
readonly BASE: "auth";
|
|
@@ -100,7 +100,10 @@ export declare const ROUTES: {
|
|
|
100
100
|
readonly BASE: (id: string) => string;
|
|
101
101
|
readonly BY_ID: (id: string, coverLetterId: string) => string;
|
|
102
102
|
};
|
|
103
|
-
readonly PROFILE:
|
|
103
|
+
readonly PROFILE: {
|
|
104
|
+
readonly BASE: (id: string) => string;
|
|
105
|
+
readonly DATA: (id: string) => string;
|
|
106
|
+
};
|
|
104
107
|
readonly MEMBERS: {
|
|
105
108
|
readonly BASE: (id: string) => string;
|
|
106
109
|
readonly BY_ID: (id: string, memberId: string) => string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { Proxy } from
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Proxy } from "../proxy";
|
|
3
|
+
export declare const scraperAccountType: z.ZodEnum<["feed", "job", "status", "activity", "profile"]>;
|
|
3
4
|
export declare const scraperAccountSchema: z.ZodObject<{
|
|
4
5
|
id: z.ZodString;
|
|
5
6
|
region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
@@ -9,6 +10,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
|
|
|
9
10
|
lastUsed: z.ZodNullable<z.ZodNumber>;
|
|
10
11
|
multiloginProfileId: z.ZodNullable<z.ZodString>;
|
|
11
12
|
proxyId: z.ZodNullable<z.ZodString>;
|
|
13
|
+
type: z.ZodEnum<["feed", "job", "status", "activity", "profile"]>;
|
|
12
14
|
createdAt: z.ZodNumber;
|
|
13
15
|
updatedAt: z.ZodNumber;
|
|
14
16
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -20,6 +22,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
|
|
|
20
22
|
lastUsed: number | null;
|
|
21
23
|
multiloginProfileId: string | null;
|
|
22
24
|
proxyId: string | null;
|
|
25
|
+
type: "feed" | "job" | "status" | "activity" | "profile";
|
|
23
26
|
createdAt: number;
|
|
24
27
|
updatedAt: number;
|
|
25
28
|
}, {
|
|
@@ -31,6 +34,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
|
|
|
31
34
|
lastUsed: number | null;
|
|
32
35
|
multiloginProfileId: string | null;
|
|
33
36
|
proxyId: string | null;
|
|
37
|
+
type: "feed" | "job" | "status" | "activity" | "profile";
|
|
34
38
|
createdAt: number;
|
|
35
39
|
updatedAt: number;
|
|
36
40
|
}>;
|
|
@@ -43,6 +47,7 @@ export declare const createScraperAccountSchema: z.ZodObject<z.objectUtil.extend
|
|
|
43
47
|
lastUsed: z.ZodNullable<z.ZodNumber>;
|
|
44
48
|
multiloginProfileId: z.ZodNullable<z.ZodString>;
|
|
45
49
|
proxyId: z.ZodNullable<z.ZodString>;
|
|
50
|
+
type: z.ZodEnum<["feed", "job", "status", "activity", "profile"]>;
|
|
46
51
|
createdAt: z.ZodNumber;
|
|
47
52
|
updatedAt: z.ZodNumber;
|
|
48
53
|
}, "region" | "email" | "password" | "securityQuestionAnswer">, {
|
|
@@ -68,6 +73,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
|
|
|
68
73
|
lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
69
74
|
multiloginProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
75
|
proxyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
type: z.ZodOptional<z.ZodEnum<["feed", "job", "status", "activity", "profile"]>>;
|
|
71
77
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
72
78
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
73
79
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -78,6 +84,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
|
|
|
78
84
|
lastUsed?: number | null | undefined;
|
|
79
85
|
multiloginProfileId?: string | null | undefined;
|
|
80
86
|
proxyId?: string | null | undefined;
|
|
87
|
+
type?: "feed" | "job" | "status" | "activity" | "profile" | undefined;
|
|
81
88
|
createdAt?: number | undefined;
|
|
82
89
|
updatedAt?: number | undefined;
|
|
83
90
|
}, {
|
|
@@ -88,9 +95,11 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
|
|
|
88
95
|
lastUsed?: number | null | undefined;
|
|
89
96
|
multiloginProfileId?: string | null | undefined;
|
|
90
97
|
proxyId?: string | null | undefined;
|
|
98
|
+
type?: "feed" | "job" | "status" | "activity" | "profile" | undefined;
|
|
91
99
|
createdAt?: number | undefined;
|
|
92
100
|
updatedAt?: number | undefined;
|
|
93
101
|
}>;
|
|
102
|
+
export type ScraperAccountType = z.infer<typeof scraperAccountType>;
|
|
94
103
|
export interface ScraperAccount extends z.infer<typeof scraperAccountSchema> {
|
|
95
104
|
proxy?: Proxy;
|
|
96
105
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { proxyCountryEnum } from
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { proxyCountryEnum } from "./proxy-country";
|
|
3
3
|
export declare const proxyStatusSchema: z.ZodEnum<["invalid", "valid", "pending_validation"]>;
|
|
4
4
|
export declare const proxyProviderSchema: z.ZodEnum<["webshare", "decodo"]>;
|
|
5
5
|
export declare const proxySchema: z.ZodObject<{
|