lancer-shared 1.2.117 → 1.2.119
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
|
@@ -11931,6 +11931,7 @@ const bidderAccountSchema = z.object({
|
|
|
11931
11931
|
createdAt: z.number(),
|
|
11932
11932
|
updatedAt: z.number(),
|
|
11933
11933
|
region: regionEnum,
|
|
11934
|
+
isProtected: z.boolean().optional(),
|
|
11934
11935
|
});
|
|
11935
11936
|
const createBidderAccountSchema = bidderAccountSchema
|
|
11936
11937
|
.pick({
|
|
@@ -12029,6 +12030,7 @@ const scraperAccountSchema = z.object({
|
|
|
12029
12030
|
type: scraperAccountType,
|
|
12030
12031
|
createdAt: z.number(),
|
|
12031
12032
|
updatedAt: z.number(),
|
|
12033
|
+
isProtected: z.boolean().optional(),
|
|
12032
12034
|
});
|
|
12033
12035
|
const createScraperAccountSchema = scraperAccountSchema
|
|
12034
12036
|
.pick({
|
|
@@ -13405,7 +13407,7 @@ const userSchema = objectType({
|
|
|
13405
13407
|
organizationIds: z.array(stringType()),
|
|
13406
13408
|
createdAt: numberType(),
|
|
13407
13409
|
updatedAt: numberType(),
|
|
13408
|
-
role: z.enum(["admin", "user"]),
|
|
13410
|
+
role: z.enum(["admin", "user"]).optional(),
|
|
13409
13411
|
});
|
|
13410
13412
|
const loginSchema = objectType({
|
|
13411
13413
|
email: stringType().email(),
|
|
@@ -50,6 +50,7 @@ export declare const bidderAccountSchema: z.ZodObject<{
|
|
|
50
50
|
createdAt: z.ZodNumber;
|
|
51
51
|
updatedAt: z.ZodNumber;
|
|
52
52
|
region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
53
|
+
isProtected: z.ZodOptional<z.ZodBoolean>;
|
|
53
54
|
}, "strip", z.ZodTypeAny, {
|
|
54
55
|
name: string | null;
|
|
55
56
|
id: string;
|
|
@@ -73,6 +74,7 @@ export declare const bidderAccountSchema: z.ZodObject<{
|
|
|
73
74
|
updatedAt: number;
|
|
74
75
|
region: "all" | "Worldwide" | "UKOnly" | "USOnly";
|
|
75
76
|
googleOauthTokens?: any;
|
|
77
|
+
isProtected?: boolean | undefined;
|
|
76
78
|
}, {
|
|
77
79
|
name: string | null;
|
|
78
80
|
id: string;
|
|
@@ -96,6 +98,7 @@ export declare const bidderAccountSchema: z.ZodObject<{
|
|
|
96
98
|
updatedAt: number;
|
|
97
99
|
region: "all" | "Worldwide" | "UKOnly" | "USOnly";
|
|
98
100
|
googleOauthTokens?: any;
|
|
101
|
+
isProtected?: boolean | undefined;
|
|
99
102
|
}>;
|
|
100
103
|
export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
101
104
|
id: z.ZodString;
|
|
@@ -130,6 +133,7 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
130
133
|
createdAt: z.ZodNumber;
|
|
131
134
|
updatedAt: z.ZodNumber;
|
|
132
135
|
region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
136
|
+
isProtected: z.ZodOptional<z.ZodBoolean>;
|
|
133
137
|
}, "name" | "provider" | "email" | "password" | "securityQuestionAnswer" | "assignedOrganizations" | "profilePhotoUrl" | "agencies" | "region">, {
|
|
134
138
|
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"]>>;
|
|
135
139
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -197,6 +201,7 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
|
|
|
197
201
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
198
202
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
199
203
|
region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
|
|
204
|
+
isProtected: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
200
205
|
}, "strip", z.ZodTypeAny, {
|
|
201
206
|
name?: string | null | undefined;
|
|
202
207
|
provider?: "user-provided" | "lancer-provided" | undefined;
|
|
@@ -219,6 +224,7 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
|
|
|
219
224
|
createdAt?: number | undefined;
|
|
220
225
|
updatedAt?: number | undefined;
|
|
221
226
|
region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
|
|
227
|
+
isProtected?: boolean | undefined;
|
|
222
228
|
}, {
|
|
223
229
|
name?: string | null | undefined;
|
|
224
230
|
provider?: "user-provided" | "lancer-provided" | undefined;
|
|
@@ -241,6 +247,7 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
|
|
|
241
247
|
createdAt?: number | undefined;
|
|
242
248
|
updatedAt?: number | undefined;
|
|
243
249
|
region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
|
|
250
|
+
isProtected?: boolean | undefined;
|
|
244
251
|
}>;
|
|
245
252
|
export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
|
|
246
253
|
email: z.ZodString;
|
|
@@ -14,6 +14,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
|
|
|
14
14
|
type: z.ZodEnum<["feed", "job", "status", "activity", "profile"]>;
|
|
15
15
|
createdAt: z.ZodNumber;
|
|
16
16
|
updatedAt: z.ZodNumber;
|
|
17
|
+
isProtected: z.ZodOptional<z.ZodBoolean>;
|
|
17
18
|
}, "strip", z.ZodTypeAny, {
|
|
18
19
|
id: string;
|
|
19
20
|
isActive: boolean;
|
|
@@ -27,6 +28,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
|
|
|
27
28
|
type: "feed" | "job" | "status" | "activity" | "profile";
|
|
28
29
|
createdAt: number;
|
|
29
30
|
updatedAt: number;
|
|
31
|
+
isProtected?: boolean | undefined;
|
|
30
32
|
}, {
|
|
31
33
|
id: string;
|
|
32
34
|
isActive: boolean;
|
|
@@ -40,6 +42,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
|
|
|
40
42
|
type: "feed" | "job" | "status" | "activity" | "profile";
|
|
41
43
|
createdAt: number;
|
|
42
44
|
updatedAt: number;
|
|
45
|
+
isProtected?: boolean | undefined;
|
|
43
46
|
}>;
|
|
44
47
|
export declare const createScraperAccountSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
45
48
|
id: z.ZodString;
|
|
@@ -54,6 +57,7 @@ export declare const createScraperAccountSchema: z.ZodObject<z.objectUtil.extend
|
|
|
54
57
|
type: z.ZodEnum<["feed", "job", "status", "activity", "profile"]>;
|
|
55
58
|
createdAt: z.ZodNumber;
|
|
56
59
|
updatedAt: z.ZodNumber;
|
|
60
|
+
isProtected: z.ZodOptional<z.ZodBoolean>;
|
|
57
61
|
}, "isActive" | "region" | "email" | "password" | "securityQuestionAnswer">, {
|
|
58
62
|
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"]>>;
|
|
59
63
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -83,6 +87,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
|
|
|
83
87
|
type: z.ZodOptional<z.ZodEnum<["feed", "job", "status", "activity", "profile"]>>;
|
|
84
88
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
85
89
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
isProtected: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
86
91
|
}, "strip", z.ZodTypeAny, {
|
|
87
92
|
isActive?: boolean | undefined;
|
|
88
93
|
region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
|
|
@@ -95,6 +100,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
|
|
|
95
100
|
type?: "feed" | "job" | "status" | "activity" | "profile" | undefined;
|
|
96
101
|
createdAt?: number | undefined;
|
|
97
102
|
updatedAt?: number | undefined;
|
|
103
|
+
isProtected?: boolean | undefined;
|
|
98
104
|
}, {
|
|
99
105
|
isActive?: boolean | undefined;
|
|
100
106
|
region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
|
|
@@ -107,6 +113,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
|
|
|
107
113
|
type?: "feed" | "job" | "status" | "activity" | "profile" | undefined;
|
|
108
114
|
createdAt?: number | undefined;
|
|
109
115
|
updatedAt?: number | undefined;
|
|
116
|
+
isProtected?: boolean | undefined;
|
|
110
117
|
}>;
|
|
111
118
|
export type ScraperAccountType = z.infer<typeof scraperAccountType>;
|
|
112
119
|
export interface ScraperAccount extends z.infer<typeof scraperAccountSchema> {
|
|
@@ -7,7 +7,7 @@ export declare const userSchema: z.ZodObject<{
|
|
|
7
7
|
organizationIds: z.ZodArray<z.ZodString, "many">;
|
|
8
8
|
createdAt: z.ZodNumber;
|
|
9
9
|
updatedAt: z.ZodNumber;
|
|
10
|
-
role: z.ZodEnum<["admin", "user"]
|
|
10
|
+
role: z.ZodOptional<z.ZodEnum<["admin", "user"]>>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
@@ -15,7 +15,7 @@ export declare const userSchema: z.ZodObject<{
|
|
|
15
15
|
organizationIds: string[];
|
|
16
16
|
createdAt: number;
|
|
17
17
|
updatedAt: number;
|
|
18
|
-
role
|
|
18
|
+
role?: "admin" | "user" | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
@@ -23,7 +23,7 @@ export declare const userSchema: z.ZodObject<{
|
|
|
23
23
|
organizationIds: string[];
|
|
24
24
|
createdAt: number;
|
|
25
25
|
updatedAt: number;
|
|
26
|
-
role
|
|
26
|
+
role?: "admin" | "user" | undefined;
|
|
27
27
|
}>;
|
|
28
28
|
export declare const loginSchema: z.ZodObject<{
|
|
29
29
|
email: z.ZodString;
|