lancer-shared 1.2.295 → 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.
@@ -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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.295",
3
+ "version": "1.2.296",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",