lancer-shared 1.2.284 → 1.2.286

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.
@@ -6316,100 +6316,47 @@ const proxyCountryEnum = z.enum([
6316
6316
  'CA',
6317
6317
  'GB',
6318
6318
  'AF',
6319
- 'AX',
6320
6319
  'AL',
6321
6320
  'DZ',
6322
- 'AS',
6323
6321
  'AD',
6324
6322
  'AO',
6325
- 'AI',
6326
- 'AQ',
6327
- 'AG',
6328
6323
  'AR',
6329
6324
  'AM',
6330
- 'AW',
6331
6325
  'AU',
6332
6326
  'AT',
6333
6327
  'AZ',
6334
- 'BS',
6335
- 'BH',
6336
6328
  'BD',
6337
- 'BB',
6338
6329
  'BY',
6339
6330
  'BE',
6340
- 'BZ',
6341
- 'BJ',
6342
- 'BM',
6343
- 'BT',
6344
- 'BO',
6345
6331
  'BA',
6346
- 'BW',
6347
- 'BV',
6348
6332
  'BR',
6349
- 'IO',
6350
- 'BN',
6351
6333
  'BG',
6352
- 'BF',
6353
- 'BI',
6354
- 'KH',
6355
6334
  'CM',
6356
- 'CV',
6357
- 'KY',
6358
6335
  'CF',
6359
- 'TD',
6360
6336
  'CL',
6361
6337
  'CN',
6362
- 'CX',
6363
- 'CC',
6364
6338
  'CO',
6365
- 'KM',
6366
- 'CG',
6367
- 'CD',
6368
- 'CK',
6369
6339
  'CR',
6370
- 'CI',
6371
6340
  'HR',
6372
- 'CU',
6373
6341
  'CY',
6374
6342
  'CZ',
6375
6343
  'DK',
6376
- 'DJ',
6377
6344
  'DM',
6378
6345
  'DO',
6379
6346
  'EC',
6380
6347
  'EG',
6381
6348
  'SV',
6382
- 'GQ',
6383
- 'ER',
6384
6349
  'EE',
6385
6350
  'ET',
6386
- 'FK',
6387
- 'FO',
6388
- 'FJ',
6389
6351
  'FI',
6390
6352
  'FR',
6391
- 'GF',
6392
- 'PF',
6393
- 'TF',
6394
- 'GA',
6395
- 'GM',
6396
6353
  'GE',
6397
6354
  'DE',
6398
6355
  'GH',
6399
- 'GI',
6400
6356
  'GR',
6401
6357
  'GL',
6402
6358
  'GD',
6403
- 'GP',
6404
- 'GU',
6405
6359
  'GT',
6406
- 'GG',
6407
- 'GN',
6408
- 'GW',
6409
- 'GY',
6410
- 'HT',
6411
- 'HM',
6412
- 'VA',
6413
6360
  'HN',
6414
6361
  'HK',
6415
6362
  'HU',
@@ -6419,146 +6366,191 @@ const proxyCountryEnum = z.enum([
6419
6366
  'IR',
6420
6367
  'IQ',
6421
6368
  'IE',
6422
- 'IM',
6423
6369
  'IL',
6424
6370
  'IT',
6425
6371
  'JM',
6426
6372
  'JP',
6427
- 'JE',
6428
6373
  'JO',
6429
6374
  'KZ',
6430
- 'KE',
6431
- 'KI',
6432
- 'KP',
6433
6375
  'KR',
6434
- 'KW',
6435
- 'KG',
6436
- 'LA',
6437
6376
  'LV',
6438
6377
  'LB',
6439
- 'LS',
6440
- 'LR',
6441
- 'LY',
6442
- 'LI',
6443
6378
  'LT',
6444
6379
  'LU',
6445
- 'MO',
6446
6380
  'MK',
6447
- 'MG',
6448
6381
  'MW',
6449
6382
  'MY',
6450
- 'MV',
6451
- 'ML',
6452
6383
  'MT',
6453
- 'MH',
6454
- 'MQ',
6455
- 'MR',
6456
- 'MU',
6457
- 'YT',
6458
6384
  'MX',
6459
6385
  'FM',
6460
6386
  'MD',
6461
6387
  'MC',
6462
6388
  'MN',
6463
6389
  'ME',
6464
- 'MS',
6465
6390
  'MA',
6466
- 'MZ',
6467
- 'MM',
6468
- 'NA',
6469
- 'NR',
6470
- 'NP',
6471
6391
  'NL',
6472
- 'AN',
6473
- 'NC',
6474
6392
  'NZ',
6475
6393
  'NI',
6476
- 'NE',
6477
6394
  'NG',
6478
- 'NU',
6479
- 'NF',
6480
- 'MP',
6481
6395
  'NO',
6482
- 'OM',
6483
6396
  'PK',
6484
6397
  'PW',
6485
- 'PS',
6486
- 'PA',
6487
- 'PG',
6488
6398
  'PY',
6489
6399
  'PE',
6490
6400
  'PH',
6491
- 'PN',
6492
6401
  'PL',
6493
6402
  'PT',
6494
6403
  'PR',
6495
6404
  'QA',
6496
- 'RE',
6497
6405
  'RO',
6498
6406
  'RU',
6499
- 'RW',
6500
- 'BL',
6501
- 'SH',
6502
- 'KN',
6503
- 'LC',
6504
- 'MF',
6505
- 'PM',
6506
- 'VC',
6507
- 'WS',
6508
6407
  'SM',
6509
- 'ST',
6510
6408
  'SA',
6511
6409
  'SN',
6512
6410
  'RS',
6513
- 'SC',
6514
- 'SL',
6515
6411
  'SG',
6516
6412
  'SK',
6517
6413
  'SI',
6518
- 'SB',
6519
6414
  'SO',
6520
6415
  'ZA',
6521
- 'GS',
6522
6416
  'ES',
6523
6417
  'LK',
6524
- 'SD',
6525
6418
  'SR',
6526
- 'SJ',
6527
- 'SZ',
6528
6419
  'SE',
6529
6420
  'CH',
6530
- 'SY',
6531
- 'TW',
6532
- 'TJ',
6533
- 'TZ',
6534
6421
  'TH',
6535
- 'TL',
6536
- 'TG',
6537
- 'TK',
6538
- 'TO',
6539
- 'TT',
6540
- 'TN',
6541
6422
  'TR',
6542
- 'TM',
6543
- 'TC',
6544
- 'TV',
6545
6423
  'UG',
6546
6424
  'UA',
6547
6425
  'AE',
6548
- 'UM',
6549
6426
  'UY',
6550
6427
  'UZ',
6551
- 'VU',
6552
6428
  'VE',
6553
6429
  'VN',
6554
- 'VG',
6555
- 'VI',
6556
- 'WF',
6557
- 'EH',
6558
6430
  'YE',
6559
6431
  'ZM',
6560
6432
  'ZW',
6561
6433
  ]);
6434
+ const proxyCountryCodeToName = {
6435
+ AF: 'Afghanistan',
6436
+ AL: 'Albania',
6437
+ DZ: 'Algeria',
6438
+ AD: 'Andorra',
6439
+ AO: 'Angola',
6440
+ AR: 'Argentina',
6441
+ AM: 'Armenia',
6442
+ AU: 'Australia',
6443
+ AT: 'Austria',
6444
+ AZ: 'Azerbaijan',
6445
+ BD: 'Bangladesh',
6446
+ BY: 'Belarus',
6447
+ BE: 'Belgium',
6448
+ BA: 'Bosnia and Herzegovina',
6449
+ BR: 'Brazil',
6450
+ BG: 'Bulgaria',
6451
+ CM: 'Cameroon',
6452
+ CA: 'Canada',
6453
+ CF: 'Central African Republic',
6454
+ CL: 'Chile',
6455
+ CN: 'China',
6456
+ CO: 'Colombia',
6457
+ CR: 'Costa Rica',
6458
+ HR: 'Croatia',
6459
+ CY: 'Cyprus',
6460
+ CZ: 'Czechia',
6461
+ DK: 'Denmark',
6462
+ DM: 'Dominica',
6463
+ DO: 'Dominican Republic',
6464
+ EC: 'Ecuador',
6465
+ EG: 'Egypt',
6466
+ SV: 'El Salvador',
6467
+ EE: 'Estonia',
6468
+ ET: 'Ethiopia',
6469
+ FI: 'Finland',
6470
+ FR: 'France',
6471
+ GE: 'Georgia',
6472
+ DE: 'Germany',
6473
+ GH: 'Ghana',
6474
+ GR: 'Greece',
6475
+ GL: 'Greenland',
6476
+ GD: 'Grenada',
6477
+ GT: 'Guatemala',
6478
+ HN: 'Honduras',
6479
+ HK: 'Hong Kong',
6480
+ HU: 'Hungary',
6481
+ IS: 'Iceland',
6482
+ IN: 'India',
6483
+ ID: 'Indonesia',
6484
+ IR: 'Iran',
6485
+ IQ: 'Iraq',
6486
+ IE: 'Ireland',
6487
+ IL: 'Israel',
6488
+ IT: 'Italy',
6489
+ JM: 'Jamaica',
6490
+ JP: 'Japan',
6491
+ JO: 'Jordan',
6492
+ KZ: 'Kazakhstan',
6493
+ KR: 'South Korea',
6494
+ LV: 'Latvia',
6495
+ LB: 'Lebanon',
6496
+ LT: 'Lithuania',
6497
+ LU: 'Luxembourg',
6498
+ MK: 'Macedonia',
6499
+ MW: 'Malawi',
6500
+ MY: 'Malaysia',
6501
+ MT: 'Malta',
6502
+ MX: 'Mexico',
6503
+ FM: 'Micronesia',
6504
+ MD: 'Moldova',
6505
+ MC: 'Monaco',
6506
+ MN: 'Mongolia',
6507
+ ME: 'Montenegro',
6508
+ MA: 'Morocco',
6509
+ NL: 'Netherlands',
6510
+ NZ: 'New Zealand',
6511
+ NI: 'Nicaragua',
6512
+ NG: 'Nigeria',
6513
+ NO: 'Norway',
6514
+ PK: 'Pakistan',
6515
+ PW: 'Palau',
6516
+ PY: 'Paraguay',
6517
+ PE: 'Peru',
6518
+ PH: 'Philippines',
6519
+ PL: 'Poland',
6520
+ PT: 'Portugal',
6521
+ PR: 'Puerto Rico',
6522
+ QA: 'Qatar',
6523
+ RO: 'Romania',
6524
+ RU: 'Russia',
6525
+ SM: 'San Marino',
6526
+ SA: 'Saudi Arabia',
6527
+ SN: 'Senegal',
6528
+ RS: 'Serbia',
6529
+ SG: 'Singapore',
6530
+ SK: 'Slovakia',
6531
+ SI: 'Slovenia',
6532
+ SO: 'Somalia',
6533
+ ZA: 'South Africa',
6534
+ ES: 'Spain',
6535
+ LK: 'Sri Lanka',
6536
+ SR: 'Suriname',
6537
+ SE: 'Sweden',
6538
+ CH: 'Switzerland',
6539
+ TH: 'Thailand',
6540
+ TR: 'Turkey',
6541
+ UG: 'Uganda',
6542
+ UA: 'Ukraine',
6543
+ AE: 'United Arab Emirates',
6544
+ GB: 'United Kingdom',
6545
+ US: 'United States of America',
6546
+ UY: 'Uruguay',
6547
+ UZ: 'Uzbekistan',
6548
+ VE: 'Venezuela',
6549
+ VN: 'Vietnam',
6550
+ YE: 'Yemen',
6551
+ ZM: 'Zambia',
6552
+ ZW: 'Zimbabwe',
6553
+ };
6562
6554
 
6563
6555
  const proxyStatusSchema = z.enum([
6564
6556
  'invalid',
@@ -7254,7 +7246,7 @@ const subscribePayloadSchema = objectType({
7254
7246
  planId: stringType().min(1, 'Plan id is required.'),
7255
7247
  toltReferral: stringType().optional(),
7256
7248
  promoCode: stringType().optional(),
7257
- billingInterval: billingIntervalEnum,
7249
+ // billingInterval: billingIntervalEnum,
7258
7250
  });
7259
7251
 
7260
7252
  const campaignExpensesSchema = z.object({
@@ -8470,6 +8462,14 @@ class NavigationTimeoutException extends Error {
8470
8462
  }
8471
8463
  const navigationTimeoutException = (url, message) => new NavigationTimeoutException(url, message);
8472
8464
 
8465
+ class NetworkRestrictionsException extends Error {
8466
+ code = 'NETWORK_RESTRICTIONS_EXCEPTION';
8467
+ constructor(message) {
8468
+ super(message);
8469
+ }
8470
+ }
8471
+ const networkRestrictionsException = (message) => new NetworkRestrictionsException(message);
8472
+
8473
8473
  class NewBrowserPageException extends Error {
8474
8474
  code = 'NEW_BROWSER_PAGE_EXCEPTION';
8475
8475
  constructor(profileId, message) {
@@ -8609,6 +8609,16 @@ class SelectorNotFoundError extends Error {
8609
8609
  }
8610
8610
  const selectorNotFoundError = (selector, context) => new SelectorNotFoundError(selector, context);
8611
8611
 
8612
+ class TwoFactorPresentException extends Error {
8613
+ code = 'TWO_FACTOR_PRESENT_EXCEPTION';
8614
+ constructor(message) {
8615
+ super(message);
8616
+ }
8617
+ }
8618
+ function twoFactorPresentException(message) {
8619
+ return new TwoFactorPresentException(message);
8620
+ }
8621
+
8612
8622
  class TypedValueInFieldNotMatchingException extends Error {
8613
8623
  code = 'TYPED_VALUE_IN_FIELD_NOT_MATCHING_EXCEPTION';
8614
8624
  constructor(element, inputValue, correctValue) {
@@ -9192,6 +9202,7 @@ const planSchema = objectType({
9192
9202
  isActive: booleanType(),
9193
9203
  createdAt: numberType(),
9194
9204
  archivedAt: numberType().nullable(),
9205
+ hasFreeTrial: booleanType(),
9195
9206
  pricing: planPricingSchema,
9196
9207
  });
9197
9208
  const planSlugEnum = z.enum(['lancer-unlimited-launch-offer']);
@@ -15314,6 +15325,7 @@ const ROUTES = {
15314
15325
  BY_ID: (id) => `admin/bidder-accounts/${id}`,
15315
15326
  BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
15316
15327
  BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
15328
+ REFRESH_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/refresh-proxy`,
15317
15329
  },
15318
15330
  SCRAPER_ACCOUNTS: {
15319
15331
  BASE: 'admin/scraper-accounts',
@@ -15406,6 +15418,7 @@ const ROUTES = {
15406
15418
  CONNECTION: (id) => `organizations/${id}/bidder-account-connection/status`,
15407
15419
  DISMISS_CONNECTION_ERROR: (id) => `organizations/${id}/bidder-account-connection/dismiss-connection-error`,
15408
15420
  CONNECT_UPWORK_ACCOUNT: (id) => `organizations/${id}/bidder-accounts/connect-upwork-account`,
15421
+ RETRY_CONNECT_UPWORK_ACCOUNT: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}/retry-connect-upwork-account`,
15409
15422
  },
15410
15423
  LEADS_BY_JOB_ID: (organizationId, jobId) => `organizations/${organizationId}/leads/${jobId}`,
15411
15424
  UPDATE_CAMPAIGN_PRIORITY: (organizationId) => `organizations/${organizationId}/update-campaign-priority`,
@@ -24145,6 +24158,7 @@ exports.LogEventTypeEnum = LogEventTypeEnum;
24145
24158
  exports.LoginFailedException = LoginFailedException;
24146
24159
  exports.MultiloginAuthenticationException = MultiloginAuthenticationException;
24147
24160
  exports.NavigationTimeoutException = NavigationTimeoutException;
24161
+ exports.NetworkRestrictionsException = NetworkRestrictionsException;
24148
24162
  exports.NewBrowserPageException = NewBrowserPageException;
24149
24163
  exports.NewPageException = NewPageException;
24150
24164
  exports.NoBidderAccountsAvailableException = NoBidderAccountsAvailableException;
@@ -24169,6 +24183,7 @@ exports.SearchQueryBuilder = SearchQueryBuilder;
24169
24183
  exports.SelectAgencyException = SelectAgencyException;
24170
24184
  exports.SelectContractorException = SelectContractorException;
24171
24185
  exports.SelectorNotFoundError = SelectorNotFoundError;
24186
+ exports.TwoFactorPresentException = TwoFactorPresentException;
24172
24187
  exports.TypedValueInFieldNotMatchingException = TypedValueInFieldNotMatchingException;
24173
24188
  exports.TypingInputFieldException = TypingInputFieldException;
24174
24189
  exports.WaitForFunctionTimeoutError = WaitForFunctionTimeoutError;
@@ -24375,6 +24390,7 @@ exports.loginSchema = loginSchema;
24375
24390
  exports.metadataSchema = metadataSchema;
24376
24391
  exports.multiloginAuthenticationException = multiloginAuthenticationException;
24377
24392
  exports.navigationTimeoutException = navigationTimeoutException;
24393
+ exports.networkRestrictionsException = networkRestrictionsException;
24378
24394
  exports.newBrowserPageException = newBrowserPageException;
24379
24395
  exports.newPageException = newPageException;
24380
24396
  exports.noBidderAccountsAvailableException = noBidderAccountsAvailableException;
@@ -24428,6 +24444,7 @@ exports.proposalSchema = proposalSchema;
24428
24444
  exports.proposalSentActivitySchema = proposalSentActivitySchema;
24429
24445
  exports.proposalSubmitFailedException = proposalSubmitFailedException;
24430
24446
  exports.proxyAvailableReplacementsSchema = proxyAvailableReplacementsSchema;
24447
+ exports.proxyCountryCodeToName = proxyCountryCodeToName;
24431
24448
  exports.proxyCountryEnum = proxyCountryEnum;
24432
24449
  exports.proxyProviderSchema = proxyProviderSchema;
24433
24450
  exports.proxySchema = proxySchema;
@@ -24495,6 +24512,7 @@ exports.transactionStatusEnum = transactionStatusEnum;
24495
24512
  exports.transactionStripeMetadataSchema = transactionStripeMetadataSchema;
24496
24513
  exports.transactionTypeEnum = transactionTypeEnum;
24497
24514
  exports.tryCatch = tryCatch;
24515
+ exports.twoFactorPresentException = twoFactorPresentException;
24498
24516
  exports.typedValueInFieldNotMatchingException = typedValueInFieldNotMatchingException;
24499
24517
  exports.typingInputFieldException = typingInputFieldException;
24500
24518
  exports.updateBidderAccountSchema = updateBidderAccountSchema;