lancer-shared 1.2.121 → 1.2.123
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 +84 -71
- package/dist/schemas/account/scraper-account.d.ts +20 -11
- package/dist/schemas/job/feed-job.d.ts +36 -12
- package/dist/schemas/logger/log-event.d.ts +1057 -237
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -11561,6 +11561,83 @@ class NoGoogleOAuthTokensFoundException extends Error {
|
|
|
11561
11561
|
}
|
|
11562
11562
|
const noGoogleOAuthTokensFoundException = (message) => new NoGoogleOAuthTokensFoundException(message);
|
|
11563
11563
|
|
|
11564
|
+
const scraperAccountType = z.enum([
|
|
11565
|
+
'feed',
|
|
11566
|
+
'job',
|
|
11567
|
+
'status',
|
|
11568
|
+
'activity',
|
|
11569
|
+
'profile',
|
|
11570
|
+
'unauthenticated',
|
|
11571
|
+
]);
|
|
11572
|
+
const scraperAccountRegionEnum = z.enum([
|
|
11573
|
+
'Worldwide',
|
|
11574
|
+
'UKOnly',
|
|
11575
|
+
'USOnly',
|
|
11576
|
+
]);
|
|
11577
|
+
const scraperAccountSchema = z.object({
|
|
11578
|
+
id: z.string(),
|
|
11579
|
+
isActive: z.boolean(),
|
|
11580
|
+
region: scraperAccountRegionEnum,
|
|
11581
|
+
email: z.string().email(),
|
|
11582
|
+
password: z.string(),
|
|
11583
|
+
securityQuestionAnswer: z.string().nullable(),
|
|
11584
|
+
lastUsed: z.number().nullable(),
|
|
11585
|
+
multiloginProfileId: z.string().nullable(),
|
|
11586
|
+
proxyId: z.string().nullable(),
|
|
11587
|
+
type: scraperAccountType,
|
|
11588
|
+
createdAt: z.number(),
|
|
11589
|
+
updatedAt: z.number(),
|
|
11590
|
+
isProtected: z.boolean().optional(),
|
|
11591
|
+
});
|
|
11592
|
+
const createScraperAccountSchema = scraperAccountSchema
|
|
11593
|
+
.pick({
|
|
11594
|
+
region: true,
|
|
11595
|
+
email: true,
|
|
11596
|
+
password: true,
|
|
11597
|
+
securityQuestionAnswer: true,
|
|
11598
|
+
isActive: true,
|
|
11599
|
+
type: true,
|
|
11600
|
+
})
|
|
11601
|
+
.extend({
|
|
11602
|
+
proxyCountry: proxyCountryEnum.optional(),
|
|
11603
|
+
rotatingProxy: z.boolean().optional(),
|
|
11604
|
+
});
|
|
11605
|
+
const updateScraperAccountSchema = scraperAccountSchema
|
|
11606
|
+
.omit({
|
|
11607
|
+
id: true,
|
|
11608
|
+
})
|
|
11609
|
+
.partial();
|
|
11610
|
+
|
|
11611
|
+
const agentStatusSchema = z.enum([
|
|
11612
|
+
"suitabilityPending",
|
|
11613
|
+
"suitabilityProcessing",
|
|
11614
|
+
"suitabilityComplete",
|
|
11615
|
+
"suitabilityFailed",
|
|
11616
|
+
"proposalProcessing",
|
|
11617
|
+
"proposalComplete",
|
|
11618
|
+
"proposalFailed",
|
|
11619
|
+
"biddingProcessing",
|
|
11620
|
+
"biddingComplete",
|
|
11621
|
+
"biddingFailed",
|
|
11622
|
+
"jobArchived",
|
|
11623
|
+
]);
|
|
11624
|
+
const leadStatusSchema = z.enum([
|
|
11625
|
+
"leads",
|
|
11626
|
+
"contacted",
|
|
11627
|
+
"viewed",
|
|
11628
|
+
"replied",
|
|
11629
|
+
"won",
|
|
11630
|
+
]);
|
|
11631
|
+
const updateLeadStatusSchema = z.object({
|
|
11632
|
+
leadId: z.string(),
|
|
11633
|
+
organizationId: z.string(),
|
|
11634
|
+
campaignId: z.string(),
|
|
11635
|
+
status: leadStatusSchema,
|
|
11636
|
+
proposalId: z.string().optional(),
|
|
11637
|
+
userId: z.string().optional(),
|
|
11638
|
+
wonAmount: z.number().optional(),
|
|
11639
|
+
});
|
|
11640
|
+
|
|
11564
11641
|
const booleanSchema = z
|
|
11565
11642
|
.union([z.boolean(), z.literal("true"), z.literal("false")])
|
|
11566
11643
|
.transform((value) => value === true || value === "true");
|
|
@@ -11909,6 +11986,8 @@ const feedJobSchemaV2 = objectType({
|
|
|
11909
11986
|
uid: stringType(),
|
|
11910
11987
|
ciphertext: stringType(),
|
|
11911
11988
|
title: stringType(),
|
|
11989
|
+
category: stringType().optional(),
|
|
11990
|
+
jobUrl: stringType().optional(),
|
|
11912
11991
|
description: stringType(),
|
|
11913
11992
|
createdOn: stringType(),
|
|
11914
11993
|
publishedOn: stringType(),
|
|
@@ -11923,7 +12002,7 @@ const feedJobSchemaV2 = objectType({
|
|
|
11923
12002
|
freelancersToHire: numberType(),
|
|
11924
12003
|
relevanceEncoded: stringType(),
|
|
11925
12004
|
enterpriseJob: booleanType(),
|
|
11926
|
-
tierText: stringType(),
|
|
12005
|
+
tierText: stringType().nullable(),
|
|
11927
12006
|
isApplied: booleanType(),
|
|
11928
12007
|
proposalsTier: stringType().nullable(),
|
|
11929
12008
|
premium: booleanType(),
|
|
@@ -12667,73 +12746,6 @@ const feedJobSchema = objectType({
|
|
|
12667
12746
|
region: regionSchema.nullable(),
|
|
12668
12747
|
});
|
|
12669
12748
|
|
|
12670
|
-
const scraperAccountType = z.enum([
|
|
12671
|
-
'feed',
|
|
12672
|
-
'job',
|
|
12673
|
-
'status',
|
|
12674
|
-
'activity',
|
|
12675
|
-
'profile',
|
|
12676
|
-
'unauthenticated',
|
|
12677
|
-
]);
|
|
12678
|
-
const scraperAccountSchema = z.object({
|
|
12679
|
-
id: z.string(),
|
|
12680
|
-
isActive: z.boolean(),
|
|
12681
|
-
region: regionEnum,
|
|
12682
|
-
email: z.string().email(),
|
|
12683
|
-
password: z.string(),
|
|
12684
|
-
securityQuestionAnswer: z.string().nullable(),
|
|
12685
|
-
lastUsed: z.number().nullable(),
|
|
12686
|
-
multiloginProfileId: z.string().nullable(),
|
|
12687
|
-
proxyId: z.string().nullable(),
|
|
12688
|
-
type: scraperAccountType,
|
|
12689
|
-
createdAt: z.number(),
|
|
12690
|
-
updatedAt: z.number(),
|
|
12691
|
-
isProtected: z.boolean().optional(),
|
|
12692
|
-
});
|
|
12693
|
-
const createScraperAccountSchema = scraperAccountSchema.pick({
|
|
12694
|
-
region: true,
|
|
12695
|
-
email: true,
|
|
12696
|
-
password: true,
|
|
12697
|
-
securityQuestionAnswer: true,
|
|
12698
|
-
isActive: true,
|
|
12699
|
-
type: true,
|
|
12700
|
-
});
|
|
12701
|
-
const updateScraperAccountSchema = scraperAccountSchema
|
|
12702
|
-
.omit({
|
|
12703
|
-
id: true,
|
|
12704
|
-
})
|
|
12705
|
-
.partial();
|
|
12706
|
-
|
|
12707
|
-
const agentStatusSchema = z.enum([
|
|
12708
|
-
"suitabilityPending",
|
|
12709
|
-
"suitabilityProcessing",
|
|
12710
|
-
"suitabilityComplete",
|
|
12711
|
-
"suitabilityFailed",
|
|
12712
|
-
"proposalProcessing",
|
|
12713
|
-
"proposalComplete",
|
|
12714
|
-
"proposalFailed",
|
|
12715
|
-
"biddingProcessing",
|
|
12716
|
-
"biddingComplete",
|
|
12717
|
-
"biddingFailed",
|
|
12718
|
-
"jobArchived",
|
|
12719
|
-
]);
|
|
12720
|
-
const leadStatusSchema = z.enum([
|
|
12721
|
-
"leads",
|
|
12722
|
-
"contacted",
|
|
12723
|
-
"viewed",
|
|
12724
|
-
"replied",
|
|
12725
|
-
"won",
|
|
12726
|
-
]);
|
|
12727
|
-
const updateLeadStatusSchema = z.object({
|
|
12728
|
-
leadId: z.string(),
|
|
12729
|
-
organizationId: z.string(),
|
|
12730
|
-
campaignId: z.string(),
|
|
12731
|
-
status: leadStatusSchema,
|
|
12732
|
-
proposalId: z.string().optional(),
|
|
12733
|
-
userId: z.string().optional(),
|
|
12734
|
-
wonAmount: z.number().optional(),
|
|
12735
|
-
});
|
|
12736
|
-
|
|
12737
12749
|
const questionAnswerPairSchema = z.object({
|
|
12738
12750
|
question: z.string(),
|
|
12739
12751
|
answer: z.string(),
|
|
@@ -13183,7 +13195,7 @@ const logEventSchema = z.object({
|
|
|
13183
13195
|
timestamp: z.number(),
|
|
13184
13196
|
});
|
|
13185
13197
|
const listingScrapedEventMetadata = objectType({
|
|
13186
|
-
listing:
|
|
13198
|
+
listing: feedJobSchemaV2,
|
|
13187
13199
|
region: regionSchema,
|
|
13188
13200
|
});
|
|
13189
13201
|
const scrapeFeedEventMetadata = objectType({
|
|
@@ -13214,7 +13226,7 @@ const scrapeFeedJobsDetailsFailedEventMetadata = objectType({
|
|
|
13214
13226
|
duration: stringType(),
|
|
13215
13227
|
});
|
|
13216
13228
|
const scrapeJobStartedEventMetadata = objectType({
|
|
13217
|
-
listing:
|
|
13229
|
+
listing: feedJobSchemaV2,
|
|
13218
13230
|
region: regionSchema,
|
|
13219
13231
|
accountId: stringType(),
|
|
13220
13232
|
accountEmail: stringType(),
|
|
@@ -13231,7 +13243,7 @@ const jobActivityScrapedEventMetadata = objectType({
|
|
|
13231
13243
|
scrapedAt: numberType(),
|
|
13232
13244
|
});
|
|
13233
13245
|
const jobActivityScrapeFailedEventMetadata = objectType({
|
|
13234
|
-
listing:
|
|
13246
|
+
listing: feedJobSchemaV2,
|
|
13235
13247
|
region: regionSchema,
|
|
13236
13248
|
offsetHour: jobActivityOffsetHourSchema,
|
|
13237
13249
|
});
|
|
@@ -14764,6 +14776,7 @@ exports.scrapePayloadSchema = scrapePayloadSchema;
|
|
|
14764
14776
|
exports.scrapeResultSchema = scrapeResultSchema;
|
|
14765
14777
|
exports.scrapeUserProfileRequestSchema = scrapeUserProfileRequestSchema;
|
|
14766
14778
|
exports.scraperAccountErrorEventMetadata = scraperAccountErrorEventMetadata;
|
|
14779
|
+
exports.scraperAccountRegionEnum = scraperAccountRegionEnum;
|
|
14767
14780
|
exports.scraperAccountSchema = scraperAccountSchema;
|
|
14768
14781
|
exports.scraperAccountType = scraperAccountType;
|
|
14769
14782
|
exports.selectAgencyException = selectAgencyException;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Proxy } from '../proxy';
|
|
3
3
|
export declare const scraperAccountType: z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>;
|
|
4
|
+
export declare const scraperAccountRegionEnum: z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>;
|
|
4
5
|
export declare const scraperAccountSchema: z.ZodObject<{
|
|
5
6
|
id: z.ZodString;
|
|
6
7
|
isActive: z.ZodBoolean;
|
|
7
|
-
region: z.ZodEnum<["
|
|
8
|
+
region: z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>;
|
|
8
9
|
email: z.ZodString;
|
|
9
10
|
password: z.ZodString;
|
|
10
11
|
securityQuestionAnswer: z.ZodNullable<z.ZodString>;
|
|
@@ -18,7 +19,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
|
|
|
18
19
|
}, "strip", z.ZodTypeAny, {
|
|
19
20
|
id: string;
|
|
20
21
|
isActive: boolean;
|
|
21
|
-
region: "
|
|
22
|
+
region: "Worldwide" | "UKOnly" | "USOnly";
|
|
22
23
|
email: string;
|
|
23
24
|
password: string;
|
|
24
25
|
securityQuestionAnswer: string | null;
|
|
@@ -32,7 +33,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
|
|
|
32
33
|
}, {
|
|
33
34
|
id: string;
|
|
34
35
|
isActive: boolean;
|
|
35
|
-
region: "
|
|
36
|
+
region: "Worldwide" | "UKOnly" | "USOnly";
|
|
36
37
|
email: string;
|
|
37
38
|
password: string;
|
|
38
39
|
securityQuestionAnswer: string | null;
|
|
@@ -44,10 +45,10 @@ export declare const scraperAccountSchema: z.ZodObject<{
|
|
|
44
45
|
updatedAt: number;
|
|
45
46
|
isProtected?: boolean | undefined;
|
|
46
47
|
}>;
|
|
47
|
-
export declare const createScraperAccountSchema: z.ZodObject<Pick<{
|
|
48
|
+
export declare const createScraperAccountSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
48
49
|
id: z.ZodString;
|
|
49
50
|
isActive: z.ZodBoolean;
|
|
50
|
-
region: z.ZodEnum<["
|
|
51
|
+
region: z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>;
|
|
51
52
|
email: z.ZodString;
|
|
52
53
|
password: z.ZodString;
|
|
53
54
|
securityQuestionAnswer: z.ZodNullable<z.ZodString>;
|
|
@@ -58,24 +59,31 @@ export declare const createScraperAccountSchema: z.ZodObject<Pick<{
|
|
|
58
59
|
createdAt: z.ZodNumber;
|
|
59
60
|
updatedAt: z.ZodNumber;
|
|
60
61
|
isProtected: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
-
}, "isActive" | "region" | "email" | "password" | "securityQuestionAnswer" | "type">,
|
|
62
|
+
}, "isActive" | "region" | "email" | "password" | "securityQuestionAnswer" | "type">, {
|
|
63
|
+
proxyCountry: z.ZodOptional<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"]>>;
|
|
64
|
+
rotatingProxy: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
}>, "strip", z.ZodTypeAny, {
|
|
62
66
|
isActive: boolean;
|
|
63
|
-
region: "
|
|
67
|
+
region: "Worldwide" | "UKOnly" | "USOnly";
|
|
64
68
|
email: string;
|
|
65
69
|
password: string;
|
|
66
70
|
securityQuestionAnswer: string | null;
|
|
67
71
|
type: "feed" | "job" | "status" | "activity" | "profile" | "unauthenticated";
|
|
72
|
+
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" | undefined;
|
|
73
|
+
rotatingProxy?: boolean | undefined;
|
|
68
74
|
}, {
|
|
69
75
|
isActive: boolean;
|
|
70
|
-
region: "
|
|
76
|
+
region: "Worldwide" | "UKOnly" | "USOnly";
|
|
71
77
|
email: string;
|
|
72
78
|
password: string;
|
|
73
79
|
securityQuestionAnswer: string | null;
|
|
74
80
|
type: "feed" | "job" | "status" | "activity" | "profile" | "unauthenticated";
|
|
81
|
+
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" | undefined;
|
|
82
|
+
rotatingProxy?: boolean | undefined;
|
|
75
83
|
}>;
|
|
76
84
|
export declare const updateScraperAccountSchema: z.ZodObject<{
|
|
77
85
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
-
region: z.ZodOptional<z.ZodEnum<["
|
|
86
|
+
region: z.ZodOptional<z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>>;
|
|
79
87
|
email: z.ZodOptional<z.ZodString>;
|
|
80
88
|
password: z.ZodOptional<z.ZodString>;
|
|
81
89
|
securityQuestionAnswer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -88,7 +96,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
|
|
|
88
96
|
isProtected: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
89
97
|
}, "strip", z.ZodTypeAny, {
|
|
90
98
|
isActive?: boolean | undefined;
|
|
91
|
-
region?: "
|
|
99
|
+
region?: "Worldwide" | "UKOnly" | "USOnly" | undefined;
|
|
92
100
|
email?: string | undefined;
|
|
93
101
|
password?: string | undefined;
|
|
94
102
|
securityQuestionAnswer?: string | null | undefined;
|
|
@@ -101,7 +109,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
|
|
|
101
109
|
isProtected?: boolean | undefined;
|
|
102
110
|
}, {
|
|
103
111
|
isActive?: boolean | undefined;
|
|
104
|
-
region?: "
|
|
112
|
+
region?: "Worldwide" | "UKOnly" | "USOnly" | undefined;
|
|
105
113
|
email?: string | undefined;
|
|
106
114
|
password?: string | undefined;
|
|
107
115
|
securityQuestionAnswer?: string | null | undefined;
|
|
@@ -119,3 +127,4 @@ export interface ScraperAccount extends z.infer<typeof scraperAccountSchema> {
|
|
|
119
127
|
}
|
|
120
128
|
export type CreateScraperAccount = z.infer<typeof createScraperAccountSchema>;
|
|
121
129
|
export type UpdateScraperAccount = z.infer<typeof updateScraperAccountSchema>;
|
|
130
|
+
export type ScraperAccountRegion = z.infer<typeof scraperAccountRegionEnum>;
|
|
@@ -4,6 +4,8 @@ export declare const feedJobSchemaV2: z.ZodObject<{
|
|
|
4
4
|
uid: z.ZodString;
|
|
5
5
|
ciphertext: z.ZodString;
|
|
6
6
|
title: z.ZodString;
|
|
7
|
+
category: z.ZodOptional<z.ZodString>;
|
|
8
|
+
jobUrl: z.ZodOptional<z.ZodString>;
|
|
7
9
|
description: z.ZodString;
|
|
8
10
|
createdOn: z.ZodString;
|
|
9
11
|
publishedOn: z.ZodString;
|
|
@@ -55,7 +57,7 @@ export declare const feedJobSchemaV2: z.ZodObject<{
|
|
|
55
57
|
freelancersToHire: z.ZodNumber;
|
|
56
58
|
relevanceEncoded: z.ZodString;
|
|
57
59
|
enterpriseJob: z.ZodBoolean;
|
|
58
|
-
tierText: z.ZodString
|
|
60
|
+
tierText: z.ZodNullable<z.ZodString>;
|
|
59
61
|
isApplied: z.ZodBoolean;
|
|
60
62
|
proposalsTier: z.ZodNullable<z.ZodString>;
|
|
61
63
|
premium: z.ZodBoolean;
|
|
@@ -127,7 +129,7 @@ export declare const feedJobSchemaV2: z.ZodObject<{
|
|
|
127
129
|
freelancersToHire: number;
|
|
128
130
|
relevanceEncoded: string;
|
|
129
131
|
enterpriseJob: boolean;
|
|
130
|
-
tierText: string;
|
|
132
|
+
tierText: string | null;
|
|
131
133
|
isApplied: boolean;
|
|
132
134
|
proposalsTier: string | null;
|
|
133
135
|
premium: boolean;
|
|
@@ -147,6 +149,8 @@ export declare const feedJobSchemaV2: z.ZodObject<{
|
|
|
147
149
|
amount: number;
|
|
148
150
|
};
|
|
149
151
|
isSTSVectorSearchResult: boolean;
|
|
152
|
+
category?: string | undefined;
|
|
153
|
+
jobUrl?: string | undefined;
|
|
150
154
|
clientRelation?: any;
|
|
151
155
|
}, {
|
|
152
156
|
type: number;
|
|
@@ -176,7 +180,7 @@ export declare const feedJobSchemaV2: z.ZodObject<{
|
|
|
176
180
|
freelancersToHire: number;
|
|
177
181
|
relevanceEncoded: string;
|
|
178
182
|
enterpriseJob: boolean;
|
|
179
|
-
tierText: string;
|
|
183
|
+
tierText: string | null;
|
|
180
184
|
isApplied: boolean;
|
|
181
185
|
proposalsTier: string | null;
|
|
182
186
|
premium: boolean;
|
|
@@ -196,6 +200,8 @@ export declare const feedJobSchemaV2: z.ZodObject<{
|
|
|
196
200
|
amount: number;
|
|
197
201
|
};
|
|
198
202
|
isSTSVectorSearchResult: boolean;
|
|
203
|
+
category?: string | undefined;
|
|
204
|
+
jobUrl?: string | undefined;
|
|
199
205
|
clientRelation?: any;
|
|
200
206
|
}>;
|
|
201
207
|
export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
@@ -218,6 +224,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
218
224
|
uid: z.ZodString;
|
|
219
225
|
ciphertext: z.ZodString;
|
|
220
226
|
title: z.ZodString;
|
|
227
|
+
category: z.ZodOptional<z.ZodString>;
|
|
228
|
+
jobUrl: z.ZodOptional<z.ZodString>;
|
|
221
229
|
description: z.ZodString;
|
|
222
230
|
createdOn: z.ZodString;
|
|
223
231
|
publishedOn: z.ZodString;
|
|
@@ -269,7 +277,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
269
277
|
freelancersToHire: z.ZodNumber;
|
|
270
278
|
relevanceEncoded: z.ZodString;
|
|
271
279
|
enterpriseJob: z.ZodBoolean;
|
|
272
|
-
tierText: z.ZodString
|
|
280
|
+
tierText: z.ZodNullable<z.ZodString>;
|
|
273
281
|
isApplied: z.ZodBoolean;
|
|
274
282
|
proposalsTier: z.ZodNullable<z.ZodString>;
|
|
275
283
|
premium: z.ZodBoolean;
|
|
@@ -341,7 +349,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
341
349
|
freelancersToHire: number;
|
|
342
350
|
relevanceEncoded: string;
|
|
343
351
|
enterpriseJob: boolean;
|
|
344
|
-
tierText: string;
|
|
352
|
+
tierText: string | null;
|
|
345
353
|
isApplied: boolean;
|
|
346
354
|
proposalsTier: string | null;
|
|
347
355
|
premium: boolean;
|
|
@@ -361,6 +369,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
361
369
|
amount: number;
|
|
362
370
|
};
|
|
363
371
|
isSTSVectorSearchResult: boolean;
|
|
372
|
+
category?: string | undefined;
|
|
373
|
+
jobUrl?: string | undefined;
|
|
364
374
|
clientRelation?: any;
|
|
365
375
|
}, {
|
|
366
376
|
type: number;
|
|
@@ -390,7 +400,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
390
400
|
freelancersToHire: number;
|
|
391
401
|
relevanceEncoded: string;
|
|
392
402
|
enterpriseJob: boolean;
|
|
393
|
-
tierText: string;
|
|
403
|
+
tierText: string | null;
|
|
394
404
|
isApplied: boolean;
|
|
395
405
|
proposalsTier: string | null;
|
|
396
406
|
premium: boolean;
|
|
@@ -410,6 +420,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
410
420
|
amount: number;
|
|
411
421
|
};
|
|
412
422
|
isSTSVectorSearchResult: boolean;
|
|
423
|
+
category?: string | undefined;
|
|
424
|
+
jobUrl?: string | undefined;
|
|
413
425
|
clientRelation?: any;
|
|
414
426
|
}>, "many">;
|
|
415
427
|
paging: z.ZodObject<{
|
|
@@ -463,7 +475,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
463
475
|
freelancersToHire: number;
|
|
464
476
|
relevanceEncoded: string;
|
|
465
477
|
enterpriseJob: boolean;
|
|
466
|
-
tierText: string;
|
|
478
|
+
tierText: string | null;
|
|
467
479
|
isApplied: boolean;
|
|
468
480
|
proposalsTier: string | null;
|
|
469
481
|
premium: boolean;
|
|
@@ -483,6 +495,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
483
495
|
amount: number;
|
|
484
496
|
};
|
|
485
497
|
isSTSVectorSearchResult: boolean;
|
|
498
|
+
category?: string | undefined;
|
|
499
|
+
jobUrl?: string | undefined;
|
|
486
500
|
clientRelation?: any;
|
|
487
501
|
}[];
|
|
488
502
|
paging: {
|
|
@@ -528,7 +542,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
528
542
|
freelancersToHire: number;
|
|
529
543
|
relevanceEncoded: string;
|
|
530
544
|
enterpriseJob: boolean;
|
|
531
|
-
tierText: string;
|
|
545
|
+
tierText: string | null;
|
|
532
546
|
isApplied: boolean;
|
|
533
547
|
proposalsTier: string | null;
|
|
534
548
|
premium: boolean;
|
|
@@ -548,6 +562,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
548
562
|
amount: number;
|
|
549
563
|
};
|
|
550
564
|
isSTSVectorSearchResult: boolean;
|
|
565
|
+
category?: string | undefined;
|
|
566
|
+
jobUrl?: string | undefined;
|
|
551
567
|
clientRelation?: any;
|
|
552
568
|
}[];
|
|
553
569
|
paging: {
|
|
@@ -595,7 +611,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
595
611
|
freelancersToHire: number;
|
|
596
612
|
relevanceEncoded: string;
|
|
597
613
|
enterpriseJob: boolean;
|
|
598
|
-
tierText: string;
|
|
614
|
+
tierText: string | null;
|
|
599
615
|
isApplied: boolean;
|
|
600
616
|
proposalsTier: string | null;
|
|
601
617
|
premium: boolean;
|
|
@@ -615,6 +631,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
615
631
|
amount: number;
|
|
616
632
|
};
|
|
617
633
|
isSTSVectorSearchResult: boolean;
|
|
634
|
+
category?: string | undefined;
|
|
635
|
+
jobUrl?: string | undefined;
|
|
618
636
|
clientRelation?: any;
|
|
619
637
|
}[];
|
|
620
638
|
paging: {
|
|
@@ -662,7 +680,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
662
680
|
freelancersToHire: number;
|
|
663
681
|
relevanceEncoded: string;
|
|
664
682
|
enterpriseJob: boolean;
|
|
665
|
-
tierText: string;
|
|
683
|
+
tierText: string | null;
|
|
666
684
|
isApplied: boolean;
|
|
667
685
|
proposalsTier: string | null;
|
|
668
686
|
premium: boolean;
|
|
@@ -682,6 +700,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
682
700
|
amount: number;
|
|
683
701
|
};
|
|
684
702
|
isSTSVectorSearchResult: boolean;
|
|
703
|
+
category?: string | undefined;
|
|
704
|
+
jobUrl?: string | undefined;
|
|
685
705
|
clientRelation?: any;
|
|
686
706
|
}[];
|
|
687
707
|
paging: {
|
|
@@ -731,7 +751,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
731
751
|
freelancersToHire: number;
|
|
732
752
|
relevanceEncoded: string;
|
|
733
753
|
enterpriseJob: boolean;
|
|
734
|
-
tierText: string;
|
|
754
|
+
tierText: string | null;
|
|
735
755
|
isApplied: boolean;
|
|
736
756
|
proposalsTier: string | null;
|
|
737
757
|
premium: boolean;
|
|
@@ -751,6 +771,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
751
771
|
amount: number;
|
|
752
772
|
};
|
|
753
773
|
isSTSVectorSearchResult: boolean;
|
|
774
|
+
category?: string | undefined;
|
|
775
|
+
jobUrl?: string | undefined;
|
|
754
776
|
clientRelation?: any;
|
|
755
777
|
}[];
|
|
756
778
|
paging: {
|
|
@@ -800,7 +822,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
800
822
|
freelancersToHire: number;
|
|
801
823
|
relevanceEncoded: string;
|
|
802
824
|
enterpriseJob: boolean;
|
|
803
|
-
tierText: string;
|
|
825
|
+
tierText: string | null;
|
|
804
826
|
isApplied: boolean;
|
|
805
827
|
proposalsTier: string | null;
|
|
806
828
|
premium: boolean;
|
|
@@ -820,6 +842,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
|
|
|
820
842
|
amount: number;
|
|
821
843
|
};
|
|
822
844
|
isSTSVectorSearchResult: boolean;
|
|
845
|
+
category?: string | undefined;
|
|
846
|
+
jobUrl?: string | undefined;
|
|
823
847
|
clientRelation?: any;
|
|
824
848
|
}[];
|
|
825
849
|
paging: {
|