lancer-shared 1.2.64 → 1.2.65
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,96 +6414,97 @@ 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
|
},
|
|
6439
6439
|
USERS: {
|
|
6440
|
-
BASE:
|
|
6440
|
+
BASE: 'users',
|
|
6441
6441
|
BY_ID: (id) => `users/${id}`,
|
|
6442
6442
|
ORGANIZATIONS: (id) => `users/${id}/organizations`,
|
|
6443
6443
|
},
|
|
6444
6444
|
COOKIES: {
|
|
6445
|
-
BASE:
|
|
6446
|
-
SCRAPE:
|
|
6445
|
+
BASE: 'cookies',
|
|
6446
|
+
SCRAPE: 'cookies/scrape-cookies',
|
|
6447
6447
|
},
|
|
6448
6448
|
SCRAPING: {
|
|
6449
|
-
BASE:
|
|
6450
|
-
START_SCRAPING:
|
|
6451
|
-
START_WORLDWIDE_SCRAPING:
|
|
6452
|
-
START_US_SCRAPING:
|
|
6453
|
-
START_UK_SCRAPING:
|
|
6454
|
-
UPDATE_ACTIVITY_4H_WORLDWIDE:
|
|
6455
|
-
UPDATE_ACTIVITY_4H_UK:
|
|
6456
|
-
UPDATE_ACTIVITY_4H_US:
|
|
6457
|
-
UPDATE_ACTIVITY_24H_WORLDWIDE:
|
|
6458
|
-
UPDATE_ACTIVITY_24H_UK:
|
|
6459
|
-
UPDATE_ACTIVITY_24H_US:
|
|
6460
|
-
SCRAPE_FEED_WORLDWIDE:
|
|
6461
|
-
SCRAPE_FEED_UK:
|
|
6462
|
-
SCRAPE_FEED_US:
|
|
6463
|
-
SCRAPE_JOB:
|
|
6464
|
-
SCRAPE_JOB_ACTIVITY:
|
|
6465
|
-
USER_PROFILE:
|
|
6466
|
-
CHECK_LEAD_STATUS:
|
|
6449
|
+
BASE: 'scraping',
|
|
6450
|
+
START_SCRAPING: 'scraping/start',
|
|
6451
|
+
START_WORLDWIDE_SCRAPING: 'scraping/start-worldwide',
|
|
6452
|
+
START_US_SCRAPING: 'scraping/start-us',
|
|
6453
|
+
START_UK_SCRAPING: 'scraping/start-uk',
|
|
6454
|
+
UPDATE_ACTIVITY_4H_WORLDWIDE: 'scraping/update-activity/4h',
|
|
6455
|
+
UPDATE_ACTIVITY_4H_UK: 'scraping/update-activity/4h/uk',
|
|
6456
|
+
UPDATE_ACTIVITY_4H_US: 'scraping/update-activity/4h/us',
|
|
6457
|
+
UPDATE_ACTIVITY_24H_WORLDWIDE: 'scraping/update-activity/24h',
|
|
6458
|
+
UPDATE_ACTIVITY_24H_UK: 'scraping/update-activity/24h/uk',
|
|
6459
|
+
UPDATE_ACTIVITY_24H_US: 'scraping/update-activity/24h/us',
|
|
6460
|
+
SCRAPE_FEED_WORLDWIDE: 'scraping/feed-worldwide',
|
|
6461
|
+
SCRAPE_FEED_UK: 'scraping/feed-uk',
|
|
6462
|
+
SCRAPE_FEED_US: 'scraping/feed-us',
|
|
6463
|
+
SCRAPE_JOB: 'scraping/job',
|
|
6464
|
+
SCRAPE_JOB_ACTIVITY: 'scraping/job-activity',
|
|
6465
|
+
USER_PROFILE: 'scraping/user-profile',
|
|
6466
|
+
CHECK_LEAD_STATUS: 'scraping/check-lead-status',
|
|
6467
6467
|
},
|
|
6468
6468
|
ADMIN: {
|
|
6469
|
-
BASE:
|
|
6469
|
+
BASE: 'admin',
|
|
6470
6470
|
BIDDER_ACCOUNTS: {
|
|
6471
|
-
BASE:
|
|
6471
|
+
BASE: 'admin/bidder-accounts',
|
|
6472
6472
|
BY_ID: (id) => `admin/bidder-accounts/${id}`,
|
|
6473
6473
|
BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
|
|
6474
6474
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
|
|
6475
6475
|
},
|
|
6476
6476
|
SCRAPER_ACCOUNTS: {
|
|
6477
|
-
BASE:
|
|
6477
|
+
BASE: 'admin/scraper-accounts',
|
|
6478
6478
|
BY_ID: (id) => `admin/scraper-accounts/${id}`,
|
|
6479
6479
|
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
6480
6480
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
6481
6481
|
},
|
|
6482
6482
|
PROXIES: {
|
|
6483
|
-
BASE:
|
|
6483
|
+
BASE: 'admin/proxies',
|
|
6484
6484
|
BY_ID: (id) => `admin/proxies/${id}`,
|
|
6485
6485
|
REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
|
|
6486
|
-
SYNC:
|
|
6487
|
-
AVAILABLE_REPLACEMENTS:
|
|
6486
|
+
SYNC: 'admin/proxies/sync',
|
|
6487
|
+
AVAILABLE_REPLACEMENTS: 'admin/proxies/available-replacements',
|
|
6488
|
+
AVAILABLE_COUNTRIES: 'admin/proxies/available-countries',
|
|
6488
6489
|
},
|
|
6489
6490
|
DASHBOARD: {
|
|
6490
|
-
CAMPAIGN_STATS:
|
|
6491
|
+
CAMPAIGN_STATS: 'admin/dashboard/campaign-stats',
|
|
6491
6492
|
},
|
|
6492
6493
|
ALERTS: {
|
|
6493
|
-
BASE:
|
|
6494
|
-
SEND_ALERT:
|
|
6494
|
+
BASE: 'admin/alerts',
|
|
6495
|
+
SEND_ALERT: 'admin/alerts/send',
|
|
6495
6496
|
},
|
|
6496
6497
|
},
|
|
6497
6498
|
BID: {
|
|
6498
|
-
BASE:
|
|
6499
|
+
BASE: 'bid',
|
|
6499
6500
|
BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
|
|
6500
6501
|
},
|
|
6501
6502
|
BIDDER_ACCOUNTS: {
|
|
6502
|
-
BASE:
|
|
6503
|
+
BASE: 'bidder-accounts',
|
|
6503
6504
|
BY_ID: (id) => `bidder-accounts/${id}`,
|
|
6504
6505
|
},
|
|
6505
6506
|
ORGANIZATIONS: {
|
|
6506
|
-
BASE:
|
|
6507
|
+
BASE: 'organizations',
|
|
6507
6508
|
BY_ID: (id) => `organizations/${id}`,
|
|
6508
6509
|
ONBOARDING: (id) => `organizations/${id}/onboarding/progress`,
|
|
6509
6510
|
AI_CONFIG: (id) => `organizations/${id}/settings/ai-config`,
|
|
@@ -6551,26 +6552,26 @@ const ROUTES = {
|
|
|
6551
6552
|
USAGE_SUMMARIES: {
|
|
6552
6553
|
DAILY: {
|
|
6553
6554
|
BASE: (organizationId) => `usage-summaries/${organizationId}/daily`,
|
|
6554
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/daily/${moment(date).format(
|
|
6555
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/daily/${moment(date).format('YYYY-MM-DD')}`,
|
|
6555
6556
|
},
|
|
6556
6557
|
WEEKLY: {
|
|
6557
6558
|
BASE: (organizationId) => `usage-summaries/${organizationId}/weekly`,
|
|
6558
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/weekly/${moment(date).format(
|
|
6559
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/weekly/${moment(date).format('YYYY-WW')}`,
|
|
6559
6560
|
},
|
|
6560
6561
|
MONTHLY: {
|
|
6561
6562
|
BASE: (organizationId) => `usage-summaries/${organizationId}/monthly`,
|
|
6562
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/monthly/${moment(date).format(
|
|
6563
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/monthly/${moment(date).format('YYYY-MM')}`,
|
|
6563
6564
|
},
|
|
6564
6565
|
QUARTERLY: {
|
|
6565
6566
|
BASE: (organizationId) => `usage-summaries/${organizationId}/quarterly`,
|
|
6566
6567
|
BY_DATE: (organizationId, date) => {
|
|
6567
6568
|
const parsed = moment(date);
|
|
6568
|
-
return `usage-summaries/${organizationId}/quarterly/${parsed.format(
|
|
6569
|
+
return `usage-summaries/${organizationId}/quarterly/${parsed.format('YYYY')}-Q${parsed.quarter()}`;
|
|
6569
6570
|
},
|
|
6570
6571
|
},
|
|
6571
6572
|
YEARLY: {
|
|
6572
6573
|
BASE: (organizationId) => `usage-summaries/${organizationId}/yearly`,
|
|
6573
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/yearly/${moment(date).format(
|
|
6574
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/yearly/${moment(date).format('YYYY')}`,
|
|
6574
6575
|
},
|
|
6575
6576
|
},
|
|
6576
6577
|
INVOICES: {
|
|
@@ -6584,30 +6585,30 @@ const ROUTES = {
|
|
|
6584
6585
|
INVOICE_PREVIEW: (id) => `organizations/${id}/invoice-preview`,
|
|
6585
6586
|
},
|
|
6586
6587
|
TRANSACTIONS: {
|
|
6587
|
-
BASE:
|
|
6588
|
+
BASE: 'transactions',
|
|
6588
6589
|
BY_ID: (id) => `transactions/${id}`,
|
|
6589
6590
|
},
|
|
6590
6591
|
AGENT: {
|
|
6591
|
-
BASE:
|
|
6592
|
-
SCRAPE_UPWORK_PROFILE:
|
|
6593
|
-
GENERATE_DEFAULT_AI_CONFIG:
|
|
6594
|
-
TEST_SUITABILITY:
|
|
6595
|
-
TEST_PROPOSAL:
|
|
6596
|
-
TEST_SYSTEM_PROMPTS:
|
|
6597
|
-
ANALYZE_LEAD:
|
|
6598
|
-
GENERATE_PROPOSAL:
|
|
6599
|
-
BID:
|
|
6592
|
+
BASE: 'agent',
|
|
6593
|
+
SCRAPE_UPWORK_PROFILE: 'agent/scrape-upwork-profile',
|
|
6594
|
+
GENERATE_DEFAULT_AI_CONFIG: 'agent/generate-ai-config',
|
|
6595
|
+
TEST_SUITABILITY: 'agent/test-suitability',
|
|
6596
|
+
TEST_PROPOSAL: 'agent/test-proposal',
|
|
6597
|
+
TEST_SYSTEM_PROMPTS: 'agent/test-system-prompts',
|
|
6598
|
+
ANALYZE_LEAD: 'agent/analyze-lead',
|
|
6599
|
+
GENERATE_PROPOSAL: 'agent/generate-proposal',
|
|
6600
|
+
BID: 'agent/bid',
|
|
6600
6601
|
},
|
|
6601
6602
|
PLANS: {
|
|
6602
|
-
BASE:
|
|
6603
|
+
BASE: 'plans',
|
|
6603
6604
|
BY_ID: (id) => `plans/${id}`,
|
|
6604
6605
|
},
|
|
6605
6606
|
NOTIFICATIONS: {
|
|
6606
|
-
BASE:
|
|
6607
|
-
SEND_NOTIFICATION:
|
|
6607
|
+
BASE: 'notifications',
|
|
6608
|
+
SEND_NOTIFICATION: 'notifications/send',
|
|
6608
6609
|
},
|
|
6609
6610
|
USAGE_EVENTS: {
|
|
6610
|
-
BASE:
|
|
6611
|
+
BASE: 'usage-events',
|
|
6611
6612
|
BY_ID: (id) => `usage-events/${id}`,
|
|
6612
6613
|
},
|
|
6613
6614
|
};
|
|
@@ -6621,7 +6622,7 @@ const buildRoute = (route, params = {}) => {
|
|
|
6621
6622
|
};
|
|
6622
6623
|
// Helper function to get route without admin prefix
|
|
6623
6624
|
const getRouteWithoutAdminPrefix = (route) => {
|
|
6624
|
-
return route.replace(
|
|
6625
|
+
return route.replace('admin/', '');
|
|
6625
6626
|
};
|
|
6626
6627
|
|
|
6627
6628
|
const accountStatusOrder = [
|
|
@@ -11046,7 +11047,7 @@ const accountStatusSchema = z.enum([
|
|
|
11046
11047
|
'invalid_credentials',
|
|
11047
11048
|
]);
|
|
11048
11049
|
|
|
11049
|
-
const
|
|
11050
|
+
const proxyCountryEnum = z.enum([
|
|
11050
11051
|
'US',
|
|
11051
11052
|
'CA',
|
|
11052
11053
|
'GB',
|
|
@@ -11310,9 +11311,9 @@ const proxySchema = z.object({
|
|
|
11310
11311
|
password: z.string(),
|
|
11311
11312
|
provider: proxyProviderSchema,
|
|
11312
11313
|
fraudScore: z.number().nullable(),
|
|
11313
|
-
claimedCountry:
|
|
11314
|
+
claimedCountry: proxyCountryEnum,
|
|
11314
11315
|
status: proxyStatusSchema.nullable(),
|
|
11315
|
-
country:
|
|
11316
|
+
country: proxyCountryEnum.nullable(),
|
|
11316
11317
|
accountId: z.string().nullable(),
|
|
11317
11318
|
});
|
|
11318
11319
|
const externalProxySchema = proxySchema.omit({
|
|
@@ -11977,11 +11978,15 @@ const scraperAccountSchema = z.object({
|
|
|
11977
11978
|
createdAt: z.number(),
|
|
11978
11979
|
updatedAt: z.number(),
|
|
11979
11980
|
});
|
|
11980
|
-
const createScraperAccountSchema = scraperAccountSchema
|
|
11981
|
+
const createScraperAccountSchema = scraperAccountSchema
|
|
11982
|
+
.pick({
|
|
11981
11983
|
region: true,
|
|
11982
11984
|
email: true,
|
|
11983
11985
|
password: true,
|
|
11984
11986
|
securityQuestionAnswer: true,
|
|
11987
|
+
})
|
|
11988
|
+
.extend({
|
|
11989
|
+
proxyCountry: proxyCountryEnum.nullable(),
|
|
11985
11990
|
});
|
|
11986
11991
|
const updateScraperAccountSchema = scraperAccountSchema
|
|
11987
11992
|
.omit({
|
|
@@ -13804,7 +13809,7 @@ exports.proposalSchema = proposalSchema;
|
|
|
13804
13809
|
exports.proposalSentActivitySchema = proposalSentActivitySchema;
|
|
13805
13810
|
exports.proposalSubmitFailedException = proposalSubmitFailedException;
|
|
13806
13811
|
exports.proxyAvailableReplacementsSchema = proxyAvailableReplacementsSchema;
|
|
13807
|
-
exports.
|
|
13812
|
+
exports.proxyCountryEnum = proxyCountryEnum;
|
|
13808
13813
|
exports.proxyProviderSchema = proxyProviderSchema;
|
|
13809
13814
|
exports.proxySchema = proxySchema;
|
|
13810
13815
|
exports.proxyStatusSchema = proxyStatusSchema;
|
|
@@ -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";
|
|
@@ -72,6 +72,7 @@ export declare const ROUTES: {
|
|
|
72
72
|
readonly REPLACE_PROXY: (id: string) => string;
|
|
73
73
|
readonly SYNC: "admin/proxies/sync";
|
|
74
74
|
readonly AVAILABLE_REPLACEMENTS: "admin/proxies/available-replacements";
|
|
75
|
+
readonly AVAILABLE_COUNTRIES: "admin/proxies/available-countries";
|
|
75
76
|
};
|
|
76
77
|
readonly DASHBOARD: {
|
|
77
78
|
readonly CAMPAIGN_STATS: "admin/dashboard/campaign-stats";
|
|
@@ -34,7 +34,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
|
|
|
34
34
|
createdAt: number;
|
|
35
35
|
updatedAt: number;
|
|
36
36
|
}>;
|
|
37
|
-
export declare const createScraperAccountSchema: z.ZodObject<Pick<{
|
|
37
|
+
export declare const createScraperAccountSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
38
38
|
id: z.ZodString;
|
|
39
39
|
region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
40
40
|
email: z.ZodString;
|
|
@@ -45,16 +45,20 @@ export declare const createScraperAccountSchema: z.ZodObject<Pick<{
|
|
|
45
45
|
proxyId: z.ZodNullable<z.ZodString>;
|
|
46
46
|
createdAt: z.ZodNumber;
|
|
47
47
|
updatedAt: z.ZodNumber;
|
|
48
|
-
}, "region" | "email" | "password" | "securityQuestionAnswer">,
|
|
48
|
+
}, "region" | "email" | "password" | "securityQuestionAnswer">, {
|
|
49
|
+
proxyCountry: z.ZodNullable<z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>>;
|
|
50
|
+
}>, "strip", z.ZodTypeAny, {
|
|
49
51
|
region: "all" | "Worldwide" | "UKOnly" | "USOnly";
|
|
50
52
|
email: string;
|
|
51
53
|
password: string;
|
|
52
54
|
securityQuestionAnswer: string | null;
|
|
55
|
+
proxyCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW" | null;
|
|
53
56
|
}, {
|
|
54
57
|
region: "all" | "Worldwide" | "UKOnly" | "USOnly";
|
|
55
58
|
email: string;
|
|
56
59
|
password: string;
|
|
57
60
|
securityQuestionAnswer: string | null;
|
|
61
|
+
proxyCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW" | null;
|
|
58
62
|
}>;
|
|
59
63
|
export declare const updateScraperAccountSchema: z.ZodObject<{
|
|
60
64
|
region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const proxyCountryEnum: z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
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<{
|
|
@@ -73,7 +73,7 @@ export declare const externalProxySchema: z.ZodObject<Omit<{
|
|
|
73
73
|
claimedCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
|
74
74
|
}>;
|
|
75
75
|
export type ProxyProvider = z.infer<typeof proxyProviderSchema>;
|
|
76
|
-
export type ProxyCountry = z.infer<typeof
|
|
76
|
+
export type ProxyCountry = z.infer<typeof proxyCountryEnum>;
|
|
77
77
|
export type ProxyStatus = z.infer<typeof proxyStatusSchema>;
|
|
78
78
|
export interface Proxy extends z.infer<typeof proxySchema> {
|
|
79
79
|
}
|