lancer-shared 1.2.294 → 1.2.296
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 +23 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +23 -2
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +1 -0
- package/dist/schemas/account/bidder-account.d.ts +3 -3
- package/dist/schemas/plan/index.d.ts +11 -0
- package/dist/schemas/proxy/proxy-country.d.ts +1 -0
- package/dist/schemas/proxy/proxy.d.ts +6 -0
- package/package.json +1 -1
|
@@ -163,6 +163,7 @@ export declare const ROUTES: {
|
|
|
163
163
|
readonly DISMISS_CONNECTION_ERROR: (id: string) => string;
|
|
164
164
|
readonly CONNECT_UPWORK_ACCOUNT: (id: string) => string;
|
|
165
165
|
readonly RETRY_CONNECT_UPWORK_ACCOUNT: (id: string, bidderId: string) => string;
|
|
166
|
+
readonly AVAILABLE_REGIONS: (id: string) => string;
|
|
166
167
|
};
|
|
167
168
|
readonly LEADS_BY_JOB_ID: (organizationId: string, jobId: string) => string;
|
|
168
169
|
readonly UPDATE_CAMPAIGN_PRIORITY: (organizationId: string) => string;
|
|
@@ -175,16 +175,19 @@ export declare const connectUpworkAccountSchema: z.ZodObject<{
|
|
|
175
175
|
password: z.ZodString;
|
|
176
176
|
securityQuestionAnswer: z.ZodNullable<z.ZodString>;
|
|
177
177
|
targetCountry: z.ZodEnum<["US", "CA", "GB", "AF", "AL", "DZ", "AD", "AO", "AR", "AM", "AU", "AT", "AZ", "BD", "BY", "BE", "BA", "BR", "BG", "CM", "CF", "CL", "CN", "CO", "CR", "HR", "CY", "CZ", "DK", "DM", "DO", "EC", "EG", "SV", "EE", "ET", "FI", "FR", "GE", "DE", "GH", "GR", "GL", "GD", "GT", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IL", "IT", "JM", "JP", "JO", "KZ", "KR", "LV", "LB", "LT", "LU", "MK", "MW", "MY", "MT", "MX", "FM", "MD", "MC", "MN", "ME", "MA", "NL", "NZ", "NI", "NG", "NO", "PK", "PW", "PY", "PE", "PH", "PL", "PT", "PR", "QA", "RO", "RU", "SM", "SA", "SN", "RS", "SG", "SK", "SI", "SO", "ZA", "ES", "LK", "SR", "SE", "CH", "TH", "TR", "UG", "UA", "AE", "UY", "UZ", "VE", "VN", "YE", "ZM", "ZW"]>;
|
|
178
|
+
targetRegion: z.ZodOptional<z.ZodString>;
|
|
178
179
|
}, "strip", z.ZodTypeAny, {
|
|
179
180
|
email: string;
|
|
180
181
|
password: string;
|
|
181
182
|
securityQuestionAnswer: string | null;
|
|
182
183
|
targetCountry: "US" | "CA" | "GB" | "AF" | "AL" | "DZ" | "AD" | "AO" | "AR" | "AM" | "AU" | "AT" | "AZ" | "BD" | "BY" | "BE" | "BA" | "BR" | "BG" | "CM" | "CF" | "CL" | "CN" | "CO" | "CR" | "HR" | "CY" | "CZ" | "DK" | "DM" | "DO" | "EC" | "EG" | "SV" | "EE" | "ET" | "FI" | "FR" | "GE" | "DE" | "GH" | "GR" | "GL" | "GD" | "GT" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KZ" | "KR" | "LV" | "LB" | "LT" | "LU" | "MK" | "MW" | "MY" | "MT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MA" | "NL" | "NZ" | "NI" | "NG" | "NO" | "PK" | "PW" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "SM" | "SA" | "SN" | "RS" | "SG" | "SK" | "SI" | "SO" | "ZA" | "ES" | "LK" | "SR" | "SE" | "CH" | "TH" | "TR" | "UG" | "UA" | "AE" | "UY" | "UZ" | "VE" | "VN" | "YE" | "ZM" | "ZW";
|
|
184
|
+
targetRegion?: string | undefined;
|
|
183
185
|
}, {
|
|
184
186
|
email: string;
|
|
185
187
|
password: string;
|
|
186
188
|
securityQuestionAnswer: string | null;
|
|
187
189
|
targetCountry: "US" | "CA" | "GB" | "AF" | "AL" | "DZ" | "AD" | "AO" | "AR" | "AM" | "AU" | "AT" | "AZ" | "BD" | "BY" | "BE" | "BA" | "BR" | "BG" | "CM" | "CF" | "CL" | "CN" | "CO" | "CR" | "HR" | "CY" | "CZ" | "DK" | "DM" | "DO" | "EC" | "EG" | "SV" | "EE" | "ET" | "FI" | "FR" | "GE" | "DE" | "GH" | "GR" | "GL" | "GD" | "GT" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IL" | "IT" | "JM" | "JP" | "JO" | "KZ" | "KR" | "LV" | "LB" | "LT" | "LU" | "MK" | "MW" | "MY" | "MT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MA" | "NL" | "NZ" | "NI" | "NG" | "NO" | "PK" | "PW" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "RO" | "RU" | "SM" | "SA" | "SN" | "RS" | "SG" | "SK" | "SI" | "SO" | "ZA" | "ES" | "LK" | "SR" | "SE" | "CH" | "TH" | "TR" | "UG" | "UA" | "AE" | "UY" | "UZ" | "VE" | "VN" | "YE" | "ZM" | "ZW";
|
|
190
|
+
targetRegion?: string | undefined;
|
|
188
191
|
}>;
|
|
189
192
|
export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
190
193
|
id: z.ZodString;
|
|
@@ -458,7 +461,6 @@ export declare const verifyBidderAccountCredentialsResponseSchema: z.ZodObject<{
|
|
|
458
461
|
}[];
|
|
459
462
|
agencyId: string | null;
|
|
460
463
|
}>, "many">>;
|
|
461
|
-
specialisedProfiles: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
462
464
|
}, "strip", z.ZodTypeAny, {
|
|
463
465
|
agencies: {
|
|
464
466
|
name: string;
|
|
@@ -470,7 +472,6 @@ export declare const verifyBidderAccountCredentialsResponseSchema: z.ZodObject<{
|
|
|
470
472
|
}[];
|
|
471
473
|
agencyId: string | null;
|
|
472
474
|
}[] | null;
|
|
473
|
-
specialisedProfiles: string[] | null;
|
|
474
475
|
accountName: string | null;
|
|
475
476
|
accountPhotoUrl: string | null;
|
|
476
477
|
}, {
|
|
@@ -484,7 +485,6 @@ export declare const verifyBidderAccountCredentialsResponseSchema: z.ZodObject<{
|
|
|
484
485
|
}[];
|
|
485
486
|
agencyId: string | null;
|
|
486
487
|
}[] | null;
|
|
487
|
-
specialisedProfiles: string[] | null;
|
|
488
488
|
accountName: string | null;
|
|
489
489
|
accountPhotoUrl: string | null;
|
|
490
490
|
}>;
|
|
@@ -41,14 +41,17 @@ export declare const planFeatureSchema: z.ZodObject<{
|
|
|
41
41
|
id: z.ZodString;
|
|
42
42
|
description: z.ZodString;
|
|
43
43
|
tooltipContent: z.ZodNullable<z.ZodString>;
|
|
44
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
44
45
|
}, "strip", z.ZodTypeAny, {
|
|
45
46
|
id: string;
|
|
46
47
|
description: string;
|
|
47
48
|
tooltipContent: string | null;
|
|
49
|
+
icon: string | null;
|
|
48
50
|
}, {
|
|
49
51
|
id: string;
|
|
50
52
|
description: string;
|
|
51
53
|
tooltipContent: string | null;
|
|
54
|
+
icon: string | null;
|
|
52
55
|
}>;
|
|
53
56
|
export declare const planPricingIntervalSchema: z.ZodObject<{
|
|
54
57
|
amount: z.ZodNumber;
|
|
@@ -165,14 +168,17 @@ export declare const planSchema: z.ZodObject<{
|
|
|
165
168
|
id: z.ZodString;
|
|
166
169
|
description: z.ZodString;
|
|
167
170
|
tooltipContent: z.ZodNullable<z.ZodString>;
|
|
171
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
168
172
|
}, "strip", z.ZodTypeAny, {
|
|
169
173
|
id: string;
|
|
170
174
|
description: string;
|
|
171
175
|
tooltipContent: string | null;
|
|
176
|
+
icon: string | null;
|
|
172
177
|
}, {
|
|
173
178
|
id: string;
|
|
174
179
|
description: string;
|
|
175
180
|
tooltipContent: string | null;
|
|
181
|
+
icon: string | null;
|
|
176
182
|
}>, "many">;
|
|
177
183
|
sortOrder: z.ZodNumber;
|
|
178
184
|
isActive: z.ZodBoolean;
|
|
@@ -267,6 +273,7 @@ export declare const planSchema: z.ZodObject<{
|
|
|
267
273
|
lookupKey: string;
|
|
268
274
|
}[] | undefined;
|
|
269
275
|
}>;
|
|
276
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
270
277
|
}, "strip", z.ZodTypeAny, {
|
|
271
278
|
id: string;
|
|
272
279
|
name: string;
|
|
@@ -297,11 +304,13 @@ export declare const planSchema: z.ZodObject<{
|
|
|
297
304
|
createdAt: number;
|
|
298
305
|
isActive: boolean;
|
|
299
306
|
archivedAt: number | null;
|
|
307
|
+
icon: string | null;
|
|
300
308
|
slug: string;
|
|
301
309
|
features: {
|
|
302
310
|
id: string;
|
|
303
311
|
description: string;
|
|
304
312
|
tooltipContent: string | null;
|
|
313
|
+
icon: string | null;
|
|
305
314
|
}[];
|
|
306
315
|
hasFreeTrial: boolean;
|
|
307
316
|
}, {
|
|
@@ -334,11 +343,13 @@ export declare const planSchema: z.ZodObject<{
|
|
|
334
343
|
createdAt: number;
|
|
335
344
|
isActive: boolean;
|
|
336
345
|
archivedAt: number | null;
|
|
346
|
+
icon: string | null;
|
|
337
347
|
slug: string;
|
|
338
348
|
features: {
|
|
339
349
|
id: string;
|
|
340
350
|
description: string;
|
|
341
351
|
tooltipContent: string | null;
|
|
352
|
+
icon: string | null;
|
|
342
353
|
}[];
|
|
343
354
|
hasFreeTrial: boolean;
|
|
344
355
|
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const proxyCountryEnum: z.ZodEnum<["US", "CA", "GB", "AF", "AL", "DZ", "AD", "AO", "AR", "AM", "AU", "AT", "AZ", "BD", "BY", "BE", "BA", "BR", "BG", "CM", "CF", "CL", "CN", "CO", "CR", "HR", "CY", "CZ", "DK", "DM", "DO", "EC", "EG", "SV", "EE", "ET", "FI", "FR", "GE", "DE", "GH", "GR", "GL", "GD", "GT", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IL", "IT", "JM", "JP", "JO", "KZ", "KR", "LV", "LB", "LT", "LU", "MK", "MW", "MY", "MT", "MX", "FM", "MD", "MC", "MN", "ME", "MA", "NL", "NZ", "NI", "NG", "NO", "PK", "PW", "PY", "PE", "PH", "PL", "PT", "PR", "QA", "RO", "RU", "SM", "SA", "SN", "RS", "SG", "SK", "SI", "SO", "ZA", "ES", "LK", "SR", "SE", "CH", "TH", "TR", "UG", "UA", "AE", "UY", "UZ", "VE", "VN", "YE", "ZM", "ZW"]>;
|
|
3
3
|
export declare const proxyCountryCodeToName: Record<(typeof proxyCountryEnum)['_type'], string>;
|
|
4
|
+
export declare const largeCountries: string[];
|
|
@@ -19,6 +19,7 @@ export declare const proxySchema: z.ZodObject<{
|
|
|
19
19
|
city: z.ZodNullable<z.ZodString>;
|
|
20
20
|
status: z.ZodNullable<z.ZodEnum<["invalid", "valid", "pending_validation"]>>;
|
|
21
21
|
country: z.ZodNullable<z.ZodEnum<["US", "CA", "GB", "AF", "AL", "DZ", "AD", "AO", "AR", "AM", "AU", "AT", "AZ", "BD", "BY", "BE", "BA", "BR", "BG", "CM", "CF", "CL", "CN", "CO", "CR", "HR", "CY", "CZ", "DK", "DM", "DO", "EC", "EG", "SV", "EE", "ET", "FI", "FR", "GE", "DE", "GH", "GR", "GL", "GD", "GT", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IL", "IT", "JM", "JP", "JO", "KZ", "KR", "LV", "LB", "LT", "LU", "MK", "MW", "MY", "MT", "MX", "FM", "MD", "MC", "MN", "ME", "MA", "NL", "NZ", "NI", "NG", "NO", "PK", "PW", "PY", "PE", "PH", "PL", "PT", "PR", "QA", "RO", "RU", "SM", "SA", "SN", "RS", "SG", "SK", "SI", "SO", "ZA", "ES", "LK", "SR", "SE", "CH", "TH", "TR", "UG", "UA", "AE", "UY", "UZ", "VE", "VN", "YE", "ZM", "ZW"]>>;
|
|
22
|
+
region: z.ZodNullable<z.ZodString>;
|
|
22
23
|
accountId: z.ZodNullable<z.ZodString>;
|
|
23
24
|
type: z.ZodEnum<["rotating", "static"]>;
|
|
24
25
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -29,6 +30,7 @@ export declare const proxySchema: z.ZodObject<{
|
|
|
29
30
|
username: string;
|
|
30
31
|
host: string;
|
|
31
32
|
status: "invalid" | "valid" | "pending_validation" | null;
|
|
33
|
+
region: string | null;
|
|
32
34
|
ip: string;
|
|
33
35
|
city: string | null;
|
|
34
36
|
externalId: string;
|
|
@@ -45,6 +47,7 @@ export declare const proxySchema: z.ZodObject<{
|
|
|
45
47
|
username: string;
|
|
46
48
|
host: string;
|
|
47
49
|
status: "invalid" | "valid" | "pending_validation" | null;
|
|
50
|
+
region: string | null;
|
|
48
51
|
ip: string;
|
|
49
52
|
city: string | null;
|
|
50
53
|
externalId: string;
|
|
@@ -68,6 +71,7 @@ export declare const externalProxySchema: z.ZodObject<Omit<{
|
|
|
68
71
|
city: z.ZodNullable<z.ZodString>;
|
|
69
72
|
status: z.ZodNullable<z.ZodEnum<["invalid", "valid", "pending_validation"]>>;
|
|
70
73
|
country: z.ZodNullable<z.ZodEnum<["US", "CA", "GB", "AF", "AL", "DZ", "AD", "AO", "AR", "AM", "AU", "AT", "AZ", "BD", "BY", "BE", "BA", "BR", "BG", "CM", "CF", "CL", "CN", "CO", "CR", "HR", "CY", "CZ", "DK", "DM", "DO", "EC", "EG", "SV", "EE", "ET", "FI", "FR", "GE", "DE", "GH", "GR", "GL", "GD", "GT", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IL", "IT", "JM", "JP", "JO", "KZ", "KR", "LV", "LB", "LT", "LU", "MK", "MW", "MY", "MT", "MX", "FM", "MD", "MC", "MN", "ME", "MA", "NL", "NZ", "NI", "NG", "NO", "PK", "PW", "PY", "PE", "PH", "PL", "PT", "PR", "QA", "RO", "RU", "SM", "SA", "SN", "RS", "SG", "SK", "SI", "SO", "ZA", "ES", "LK", "SR", "SE", "CH", "TH", "TR", "UG", "UA", "AE", "UY", "UZ", "VE", "VN", "YE", "ZM", "ZW"]>>;
|
|
74
|
+
region: z.ZodNullable<z.ZodString>;
|
|
71
75
|
accountId: z.ZodNullable<z.ZodString>;
|
|
72
76
|
type: z.ZodEnum<["rotating", "static"]>;
|
|
73
77
|
}, "id" | "country" | "status" | "city" | "accountId">, "strip", z.ZodTypeAny, {
|
|
@@ -75,6 +79,7 @@ export declare const externalProxySchema: z.ZodObject<Omit<{
|
|
|
75
79
|
port: number;
|
|
76
80
|
username: string;
|
|
77
81
|
host: string;
|
|
82
|
+
region: string | null;
|
|
78
83
|
ip: string;
|
|
79
84
|
externalId: string;
|
|
80
85
|
password: string;
|
|
@@ -86,6 +91,7 @@ export declare const externalProxySchema: z.ZodObject<Omit<{
|
|
|
86
91
|
port: number;
|
|
87
92
|
username: string;
|
|
88
93
|
host: string;
|
|
94
|
+
region: string | null;
|
|
89
95
|
ip: string;
|
|
90
96
|
externalId: string;
|
|
91
97
|
password: string;
|