lancer-shared 1.2.190 → 1.2.191

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.
@@ -13093,6 +13093,10 @@ const workTimeSchema = z.object({
13093
13093
  timeBlocks: z.array(timeBlockSchema),
13094
13094
  timezone: z.string().nullable(),
13095
13095
  });
13096
+ const insufficeintBoostConnectsActionEnum = z.enum([
13097
+ 'skip',
13098
+ 'bid_without_boost',
13099
+ ]);
13096
13100
  const campaignSchema = z.object({
13097
13101
  id: z.string(),
13098
13102
  name: z.string(),
@@ -13103,6 +13107,9 @@ const campaignSchema = z.object({
13103
13107
  // automatedSuitability: z.boolean().nullable(),
13104
13108
  boostingEnabled: z.boolean().nullable().default(false),
13105
13109
  maximumBoost: z.number().nullable().default(30),
13110
+ boostDownToNthPlace: z.number().min(1).max(4).nullable(),
13111
+ connectsAbovePrevious: z.number().min(1).nullable(),
13112
+ insufficeintBoostConnectsAction: insufficeintBoostConnectsActionEnum,
13106
13113
  // minimumBoost: z.number().nullable().default(0),
13107
13114
  monthlyBudget: z.number().nullable(),
13108
13115
  // suitabilityThreshold: z.number().min(0).max(100).nullable().default(0),
@@ -13300,6 +13307,7 @@ const campaignNotificationType = z.enum([
13300
13307
  'noConnects',
13301
13308
  'accountDisconnected',
13302
13309
  'biddingWarning',
13310
+ 'boostAboveMaxConnects',
13303
13311
  ]);
13304
13312
  const chatbotChannelSchema = z.object({
13305
13313
  id: z.string(),
@@ -13355,6 +13363,7 @@ const CAMPAIGN_NOTIFICATION_TYPES = {
13355
13363
  noConnects: 'No Connects',
13356
13364
  accountDisconnected: 'Account Disconnected',
13357
13365
  biddingWarning: 'Bidding Warning',
13366
+ boostAboveMaxConnects: 'Boost Above Max Connects',
13358
13367
  };
13359
13368
  const CAMPAIGN_NOTIFICATION_SETTINGS = {
13360
13369
  suitableLead: 'When Lancer determines a job is suitable for your company',
@@ -13364,6 +13373,7 @@ const CAMPAIGN_NOTIFICATION_SETTINGS = {
13364
13373
  noConnects: 'When your Agency profile has run out of Upwork connects',
13365
13374
  accountDisconnected: 'When there is an issue with your Upwork Bidder account',
13366
13375
  biddingWarning: 'When there is a bidding warning',
13376
+ boostAboveMaxConnects: 'When there is a boost above max connects',
13367
13377
  };
13368
13378
 
13369
13379
  const campaignCountByStatusSchema = z.object({
@@ -13406,14 +13416,144 @@ const boostFormSchema = z.object({
13406
13416
  const nodeEnums = z.enum([
13407
13417
  'clientAvgHourlyRateNode',
13408
13418
  'bidNode',
13409
- 'suitabilityNode',
13410
13419
  'clientHireRateNode',
13411
13420
  'clientSizeNode',
13412
13421
  'boostNode',
13413
13422
  'clientSpentNode',
13414
13423
  'clientRatingNode',
13424
+ 'startNode',
13425
+ 'budgetNode',
13426
+ 'paymentTypeNode',
13415
13427
  ]);
13416
13428
 
13429
+ const rangesOverlap$5 = (range1, range2) => {
13430
+ return range1.min < range2.max && range2.min < range1.max;
13431
+ };
13432
+ // Payment type options (excluding 'Unspecified')
13433
+ const budgetPaymentTypeEnum = z.enum(['Hourly', 'Fixed-price']);
13434
+ const createBudgetFormSchema = (existingHourlyRateRanges, existingFixedBudgetRanges) => z
13435
+ .object({
13436
+ paymentTypes: z
13437
+ .array(budgetPaymentTypeEnum)
13438
+ .min(1, 'Please select at least one payment type'),
13439
+ hourlyRateMin: z
13440
+ .number()
13441
+ .min(0, 'Minimum hourly rate must be non-negative')
13442
+ .optional(),
13443
+ hourlyRateMax: z
13444
+ .number()
13445
+ .min(0, 'Maximum hourly rate must be non-negative')
13446
+ .optional(),
13447
+ fixedBudgetMin: z
13448
+ .number()
13449
+ .min(0, 'Minimum fixed budget must be non-negative')
13450
+ .optional(),
13451
+ fixedBudgetMax: z
13452
+ .number()
13453
+ .min(0, 'Maximum fixed budget must be non-negative')
13454
+ .optional(),
13455
+ action: nodeEnums,
13456
+ })
13457
+ // Validate hourly rate fields are provided when Hourly is selected
13458
+ .refine((data) => {
13459
+ if (data.paymentTypes.includes('Hourly')) {
13460
+ return (data.hourlyRateMin !== undefined && data.hourlyRateMax !== undefined);
13461
+ }
13462
+ return true;
13463
+ }, {
13464
+ message: 'Hourly rate min and max are required when Hourly payment type is selected',
13465
+ path: ['hourlyRateMin'],
13466
+ })
13467
+ // Validate fixed budget fields are provided when Fixed-price is selected
13468
+ .refine((data) => {
13469
+ if (data.paymentTypes.includes('Fixed-price')) {
13470
+ return (data.fixedBudgetMin !== undefined &&
13471
+ data.fixedBudgetMax !== undefined);
13472
+ }
13473
+ return true;
13474
+ }, {
13475
+ message: 'Fixed budget min and max are required when Fixed-price payment type is selected',
13476
+ path: ['fixedBudgetMin'],
13477
+ })
13478
+ // Validate hourly rate range when provided AND hourly payment type is selected
13479
+ .refine((data) => {
13480
+ if (data.paymentTypes.includes('Hourly') &&
13481
+ data.hourlyRateMin !== undefined &&
13482
+ data.hourlyRateMax !== undefined) {
13483
+ return data.hourlyRateMin < data.hourlyRateMax;
13484
+ }
13485
+ return true;
13486
+ }, {
13487
+ message: 'Minimum hourly rate must be less than maximum',
13488
+ path: ['hourlyRateMin'],
13489
+ })
13490
+ .refine((data) => {
13491
+ if (data.paymentTypes.includes('Hourly') &&
13492
+ data.hourlyRateMin !== undefined &&
13493
+ data.hourlyRateMax !== undefined) {
13494
+ return data.hourlyRateMax > data.hourlyRateMin;
13495
+ }
13496
+ return true;
13497
+ }, {
13498
+ message: 'Maximum hourly rate must be greater than minimum',
13499
+ path: ['hourlyRateMax'],
13500
+ })
13501
+ // Validate fixed budget range when provided AND fixed payment type is selected
13502
+ .refine((data) => {
13503
+ if (data.paymentTypes.includes('Fixed-price') &&
13504
+ data.fixedBudgetMin !== undefined &&
13505
+ data.fixedBudgetMax !== undefined) {
13506
+ return data.fixedBudgetMin < data.fixedBudgetMax;
13507
+ }
13508
+ return true;
13509
+ }, {
13510
+ message: 'Minimum fixed budget must be less than maximum',
13511
+ path: ['fixedBudgetMin'],
13512
+ })
13513
+ .refine((data) => {
13514
+ if (data.paymentTypes.includes('Fixed-price') &&
13515
+ data.fixedBudgetMin !== undefined &&
13516
+ data.fixedBudgetMax !== undefined) {
13517
+ return data.fixedBudgetMax > data.fixedBudgetMin;
13518
+ }
13519
+ return true;
13520
+ }, {
13521
+ message: 'Maximum fixed budget must be greater than minimum',
13522
+ path: ['fixedBudgetMax'],
13523
+ })
13524
+ // Check for hourly rate range overlaps when provided
13525
+ .refine((data) => {
13526
+ if (data.hourlyRateMin !== undefined &&
13527
+ data.hourlyRateMax !== undefined) {
13528
+ const newHourlyRateRange = {
13529
+ min: data.hourlyRateMin,
13530
+ max: data.hourlyRateMax,
13531
+ };
13532
+ return !existingHourlyRateRanges.some((existingRange) => rangesOverlap$5(newHourlyRateRange, existingRange));
13533
+ }
13534
+ return true;
13535
+ }, {
13536
+ message: 'Hourly rate range overlaps with existing hourly rate range',
13537
+ path: ['hourlyRateMin'],
13538
+ })
13539
+ // Check for fixed budget range overlaps when provided
13540
+ .refine((data) => {
13541
+ if (data.fixedBudgetMin !== undefined &&
13542
+ data.fixedBudgetMax !== undefined) {
13543
+ const newFixedBudgetRange = {
13544
+ min: data.fixedBudgetMin,
13545
+ max: data.fixedBudgetMax,
13546
+ };
13547
+ return !existingFixedBudgetRanges.some((existingRange) => rangesOverlap$5(newFixedBudgetRange, existingRange));
13548
+ }
13549
+ return true;
13550
+ }, {
13551
+ message: 'Fixed budget range overlaps with existing fixed budget range',
13552
+ path: ['fixedBudgetMin'],
13553
+ });
13554
+ // Default schema for backwards compatibility
13555
+ const addBudgetNodeFormSchema = createBudgetFormSchema([], []);
13556
+
13417
13557
  const sizeOverlap = (size1, size2) => {
13418
13558
  if (size1 === size2) {
13419
13559
  return true;
@@ -13514,6 +13654,27 @@ const createHourlyRateFormSchema = (existingRanges) => z
13514
13654
  // Keep the original schema for backwards compatibility if needed
13515
13655
  const addFromHourlyRateNodeFormSchema = createHourlyRateFormSchema([]);
13516
13656
 
13657
+ const limitedPaymentTypeEnum = paymentTypeEnum.exclude(['Unspecified']);
13658
+ const paymentTypeOverlap = (paymentType1, paymentType2) => {
13659
+ if (paymentType1 === paymentType2) {
13660
+ return true;
13661
+ }
13662
+ return false;
13663
+ };
13664
+ const createPaymentTypeFormSchema = (existingPaymentTypes) => z
13665
+ .object({
13666
+ paymentTypes: z.array(limitedPaymentTypeEnum).min(1),
13667
+ action: nodeEnums,
13668
+ })
13669
+ .refine((data) => {
13670
+ const newPaymentTypes = data.paymentTypes;
13671
+ return !existingPaymentTypes.some((existingPaymentType) => newPaymentTypes.some((newPaymentType) => paymentTypeOverlap(newPaymentType, existingPaymentType)));
13672
+ }, {
13673
+ message: 'Payment type overlaps with existing payment type',
13674
+ path: ['paymentTypes'],
13675
+ });
13676
+ const addFromPaymentTypeNodeFormSchema = createPaymentTypeFormSchema([]);
13677
+
13517
13678
  const rangesOverlap$1 = (range1, range2) => {
13518
13679
  return range1.from < range2.to && range2.from < range1.to;
13519
13680
  };
@@ -13540,6 +13701,10 @@ const createClientRatingFormSchema = (existingRanges) => z
13540
13701
  });
13541
13702
  const addFromClientRatingNodeFormSchema = createClientRatingFormSchema([]);
13542
13703
 
13704
+ const addFromStartNodeFormSchema = z.object({
13705
+ action: nodeEnums,
13706
+ });
13707
+
13543
13708
  const rangesOverlap = (range1, range2) => {
13544
13709
  return range1.from < range2.to && range2.from < range1.to;
13545
13710
  };
@@ -13575,6 +13740,9 @@ const bidPayloadProposalDataSchema = z.object({
13575
13740
  boostingEnabled: z.boolean(),
13576
13741
  specialisedProfileOptions: z.array(z.string()),
13577
13742
  maximumBoost: z.number().nullable(),
13743
+ boostDownToNthPlace: z.number().min(1).max(4).nullable(),
13744
+ connectsAbovePrevious: z.number().min(1).nullable(),
13745
+ insufficeintBoostConnectsAction: insufficeintBoostConnectsActionEnum,
13578
13746
  biddingHourlyRateStrategy: biddingHourlyRateStrategyEnum,
13579
13747
  biddingHourlyRatePercentage: z.number().min(0).max(100).nullable(),
13580
13748
  biddingFixedHourlyRate: z.number().nullable(),
@@ -13620,6 +13788,14 @@ const bidFailedSchema = z.object({
13620
13788
  errorMessage: z.string(),
13621
13789
  });
13622
13790
 
13791
+ class BoostAboveMaxConnectsException extends Error {
13792
+ code = 'BOOST_ABOVE_MAX_CONNECTS_EXCEPTION';
13793
+ constructor(message) {
13794
+ super(message);
13795
+ }
13796
+ }
13797
+ const boostAboveMaxConnectsException = (message) => new BoostAboveMaxConnectsException(message);
13798
+
13623
13799
  class CloudflareChallengeFailedException extends Error {
13624
13800
  code = 'CLOUDFLARE_CHALLENGE_FAILED_EXCEPTION';
13625
13801
  constructor(url, errorMessage) {
@@ -23303,6 +23479,7 @@ async function tryCatch(promise) {
23303
23479
  }
23304
23480
 
23305
23481
  exports.BidderAccountAlreadyConnectedException = BidderAccountAlreadyConnectedException;
23482
+ exports.BoostAboveMaxConnectsException = BoostAboveMaxConnectsException;
23306
23483
  exports.CAMPAIGN_NOTIFICATION_SETTINGS = CAMPAIGN_NOTIFICATION_SETTINGS;
23307
23484
  exports.CAMPAIGN_NOTIFICATION_TYPES = CAMPAIGN_NOTIFICATION_TYPES;
23308
23485
  exports.CloudflareChallengeFailedException = CloudflareChallengeFailedException;
@@ -23360,11 +23537,14 @@ exports.acceptUpworkInvitationSchema = acceptUpworkInvitationSchema;
23360
23537
  exports.accountStatusDisplayMap = accountStatusDisplayMap;
23361
23538
  exports.accountStatusOrder = accountStatusOrder;
23362
23539
  exports.accountStatusSchema = accountStatusSchema;
23540
+ exports.addBudgetNodeFormSchema = addBudgetNodeFormSchema;
23363
23541
  exports.addFromClientHireRateNodeFormSchema = addFromClientHireRateNodeFormSchema;
23364
23542
  exports.addFromClientRatingNodeFormSchema = addFromClientRatingNodeFormSchema;
23365
23543
  exports.addFromClientSizeNodeFormSchema = addFromClientSizeNodeFormSchema;
23366
23544
  exports.addFromClientSpentNodeFormSchema = addFromClientSpentNodeFormSchema;
23367
23545
  exports.addFromHourlyRateNodeFormSchema = addFromHourlyRateNodeFormSchema;
23546
+ exports.addFromPaymentTypeNodeFormSchema = addFromPaymentTypeNodeFormSchema;
23547
+ exports.addFromStartNodeFormSchema = addFromStartNodeFormSchema;
23368
23548
  exports.addFromSuitabilityNodeFormSchema = addFromSuitabilityNodeFormSchema;
23369
23549
  exports.agencyBidPayloadSchema = agencyBidPayloadSchema;
23370
23550
  exports.agencyBidProposalDataSchema = agencyBidProposalDataSchema;
@@ -23397,7 +23577,9 @@ exports.biddingFailedEventMetadata = biddingFailedEventMetadata;
23397
23577
  exports.biddingHourlyRateStrategyEnum = biddingHourlyRateStrategyEnum;
23398
23578
  exports.biddingRejectedWithFeedbackEventMetadata = biddingRejectedWithFeedbackEventMetadata;
23399
23579
  exports.booleanSchema = booleanSchema;
23580
+ exports.boostAboveMaxConnectsException = boostAboveMaxConnectsException;
23400
23581
  exports.boostFormSchema = boostFormSchema;
23582
+ exports.budgetPaymentTypeEnum = budgetPaymentTypeEnum;
23401
23583
  exports.buildRoute = buildRoute;
23402
23584
  exports.campaignAIMetricsSchema = campaignAIMetricsSchema;
23403
23585
  exports.campaignActivityCreateSchema = campaignActivityCreateSchema;
@@ -23430,6 +23612,7 @@ exports.convertToUtc = convertToUtc;
23430
23612
  exports.countryMapping = countryMapping;
23431
23613
  exports.coverLetterTemplateSchema = coverLetterTemplateSchema;
23432
23614
  exports.createBidderAccountSchema = createBidderAccountSchema;
23615
+ exports.createBudgetFormSchema = createBudgetFormSchema;
23433
23616
  exports.createCampaignSchema = createCampaignSchema;
23434
23617
  exports.createChatbotSchema = createChatbotSchema;
23435
23618
  exports.createClientHireRateFormSchema = createClientHireRateFormSchema;
@@ -23440,6 +23623,7 @@ exports.createCoverLetterTemplateSchema = createCoverLetterTemplateSchema;
23440
23623
  exports.createHourlyRateFormSchema = createHourlyRateFormSchema;
23441
23624
  exports.createOrganizationProfileSchema = createOrganizationProfileSchema;
23442
23625
  exports.createOrganizationSchema = createOrganizationSchema;
23626
+ exports.createPaymentTypeFormSchema = createPaymentTypeFormSchema;
23443
23627
  exports.createScraperAccountSchema = createScraperAccountSchema;
23444
23628
  exports.createSuitabilityFormSchema = createSuitabilityFormSchema;
23445
23629
  exports.dailyUsageSchema = dailyUsageSchema;
@@ -23493,6 +23677,7 @@ exports.goToUrlException = goToUrlException;
23493
23677
  exports.hasQuestionsEnum = hasQuestionsEnum;
23494
23678
  exports.incorrectSecurityQuestionAnswerException = incorrectSecurityQuestionAnswerException;
23495
23679
  exports.initBrowserException = initBrowserException;
23680
+ exports.insufficeintBoostConnectsActionEnum = insufficeintBoostConnectsActionEnum;
23496
23681
  exports.insufficientConnectsException = insufficientConnectsException;
23497
23682
  exports.invalidCredentialsException = invalidCredentialsException;
23498
23683
  exports.invalidGoogleOAuthTokenSchema = invalidGoogleOAuthTokenSchema;
@@ -23530,6 +23715,7 @@ exports.leadSchema = leadSchema;
23530
23715
  exports.leadStatusActivitySchema = leadStatusActivitySchema;
23531
23716
  exports.leadStatusEnum = leadStatusEnum;
23532
23717
  exports.leadStatusEventMetadata = leadStatusEventMetadata;
23718
+ exports.limitedPaymentTypeEnum = limitedPaymentTypeEnum;
23533
23719
  exports.limitsSchema = limitsSchema;
23534
23720
  exports.logEventSchema = logEventSchema;
23535
23721
  exports.loginFailedException = loginFailedException;
@@ -617,6 +617,9 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
617
617
  boostingEnabled: z.ZodBoolean;
618
618
  specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
619
619
  maximumBoost: z.ZodNullable<z.ZodNumber>;
620
+ boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
621
+ connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
622
+ insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
620
623
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
621
624
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
622
625
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
@@ -771,13 +774,16 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
771
774
  boostingEnabled: boolean;
772
775
  specialisedProfileOptions: string[];
773
776
  maximumBoost: number | null;
777
+ boostDownToNthPlace: number | null;
778
+ connectsAbovePrevious: number | null;
779
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
774
780
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
775
781
  biddingHourlyRatePercentage: number | null;
776
782
  biddingFixedHourlyRate: number | null;
777
783
  isHourlyRate: boolean;
778
784
  jobMinHourlyRate: number | null;
779
785
  jobMaxHourlyRate: number | null;
780
- bidWithWarning: "bid" | "skip";
786
+ bidWithWarning: "skip" | "bid";
781
787
  }, {
782
788
  organizationId: string;
783
789
  campaignId: string;
@@ -925,13 +931,16 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
925
931
  boostingEnabled: boolean;
926
932
  specialisedProfileOptions: string[];
927
933
  maximumBoost: number | null;
934
+ boostDownToNthPlace: number | null;
935
+ connectsAbovePrevious: number | null;
936
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
928
937
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
929
938
  biddingHourlyRatePercentage: number | null;
930
939
  biddingFixedHourlyRate: number | null;
931
940
  isHourlyRate: boolean;
932
941
  jobMinHourlyRate: number | null;
933
942
  jobMaxHourlyRate: number | null;
934
- bidWithWarning: "bid" | "skip";
943
+ bidWithWarning: "skip" | "bid";
935
944
  }>;
936
945
  export declare const freelancerBidProposalDataSchema: z.ZodObject<{
937
946
  organizationId: z.ZodString;
@@ -1550,6 +1559,9 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
1550
1559
  boostingEnabled: z.ZodBoolean;
1551
1560
  specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
1552
1561
  maximumBoost: z.ZodNullable<z.ZodNumber>;
1562
+ boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
1563
+ connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
1564
+ insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
1553
1565
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
1554
1566
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
1555
1567
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
@@ -1704,13 +1716,16 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
1704
1716
  boostingEnabled: boolean;
1705
1717
  specialisedProfileOptions: string[];
1706
1718
  maximumBoost: number | null;
1719
+ boostDownToNthPlace: number | null;
1720
+ connectsAbovePrevious: number | null;
1721
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
1707
1722
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
1708
1723
  biddingHourlyRatePercentage: number | null;
1709
1724
  biddingFixedHourlyRate: number | null;
1710
1725
  isHourlyRate: boolean;
1711
1726
  jobMinHourlyRate: number | null;
1712
1727
  jobMaxHourlyRate: number | null;
1713
- bidWithWarning: "bid" | "skip";
1728
+ bidWithWarning: "skip" | "bid";
1714
1729
  }, {
1715
1730
  organizationId: string;
1716
1731
  campaignId: string;
@@ -1858,13 +1873,16 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
1858
1873
  boostingEnabled: boolean;
1859
1874
  specialisedProfileOptions: string[];
1860
1875
  maximumBoost: number | null;
1876
+ boostDownToNthPlace: number | null;
1877
+ connectsAbovePrevious: number | null;
1878
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
1861
1879
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
1862
1880
  biddingHourlyRatePercentage: number | null;
1863
1881
  biddingFixedHourlyRate: number | null;
1864
1882
  isHourlyRate: boolean;
1865
1883
  jobMinHourlyRate: number | null;
1866
1884
  jobMaxHourlyRate: number | null;
1867
- bidWithWarning: "bid" | "skip";
1885
+ bidWithWarning: "skip" | "bid";
1868
1886
  }>;
1869
1887
  export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.extendShape<{
1870
1888
  organizationId: z.ZodString;
@@ -2483,6 +2501,9 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
2483
2501
  boostingEnabled: z.ZodBoolean;
2484
2502
  specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
2485
2503
  maximumBoost: z.ZodNullable<z.ZodNumber>;
2504
+ boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
2505
+ connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
2506
+ insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
2486
2507
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
2487
2508
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
2488
2509
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
@@ -2641,13 +2662,16 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
2641
2662
  boostingEnabled: boolean;
2642
2663
  specialisedProfileOptions: string[];
2643
2664
  maximumBoost: number | null;
2665
+ boostDownToNthPlace: number | null;
2666
+ connectsAbovePrevious: number | null;
2667
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
2644
2668
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
2645
2669
  biddingHourlyRatePercentage: number | null;
2646
2670
  biddingFixedHourlyRate: number | null;
2647
2671
  isHourlyRate: boolean;
2648
2672
  jobMinHourlyRate: number | null;
2649
2673
  jobMaxHourlyRate: number | null;
2650
- bidWithWarning: "bid" | "skip";
2674
+ bidWithWarning: "skip" | "bid";
2651
2675
  agencyName: string;
2652
2676
  contractorName: string;
2653
2677
  specializedProfile: string | null;
@@ -2798,13 +2822,16 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
2798
2822
  boostingEnabled: boolean;
2799
2823
  specialisedProfileOptions: string[];
2800
2824
  maximumBoost: number | null;
2825
+ boostDownToNthPlace: number | null;
2826
+ connectsAbovePrevious: number | null;
2827
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
2801
2828
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
2802
2829
  biddingHourlyRatePercentage: number | null;
2803
2830
  biddingFixedHourlyRate: number | null;
2804
2831
  isHourlyRate: boolean;
2805
2832
  jobMinHourlyRate: number | null;
2806
2833
  jobMaxHourlyRate: number | null;
2807
- bidWithWarning: "bid" | "skip";
2834
+ bidWithWarning: "skip" | "bid";
2808
2835
  agencyName: string;
2809
2836
  contractorName: string;
2810
2837
  specializedProfile: string | null;
@@ -4924,6 +4951,9 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
4924
4951
  boostingEnabled: z.ZodBoolean;
4925
4952
  specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
4926
4953
  maximumBoost: z.ZodNullable<z.ZodNumber>;
4954
+ boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
4955
+ connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
4956
+ insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
4927
4957
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
4928
4958
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
4929
4959
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
@@ -5082,13 +5112,16 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
5082
5112
  boostingEnabled: boolean;
5083
5113
  specialisedProfileOptions: string[];
5084
5114
  maximumBoost: number | null;
5115
+ boostDownToNthPlace: number | null;
5116
+ connectsAbovePrevious: number | null;
5117
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
5085
5118
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
5086
5119
  biddingHourlyRatePercentage: number | null;
5087
5120
  biddingFixedHourlyRate: number | null;
5088
5121
  isHourlyRate: boolean;
5089
5122
  jobMinHourlyRate: number | null;
5090
5123
  jobMaxHourlyRate: number | null;
5091
- bidWithWarning: "bid" | "skip";
5124
+ bidWithWarning: "skip" | "bid";
5092
5125
  agencyName: string;
5093
5126
  contractorName: string;
5094
5127
  specializedProfile: string | null;
@@ -5239,13 +5272,16 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
5239
5272
  boostingEnabled: boolean;
5240
5273
  specialisedProfileOptions: string[];
5241
5274
  maximumBoost: number | null;
5275
+ boostDownToNthPlace: number | null;
5276
+ connectsAbovePrevious: number | null;
5277
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
5242
5278
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
5243
5279
  biddingHourlyRatePercentage: number | null;
5244
5280
  biddingFixedHourlyRate: number | null;
5245
5281
  isHourlyRate: boolean;
5246
5282
  jobMinHourlyRate: number | null;
5247
5283
  jobMaxHourlyRate: number | null;
5248
- bidWithWarning: "bid" | "skip";
5284
+ bidWithWarning: "skip" | "bid";
5249
5285
  agencyName: string;
5250
5286
  contractorName: string;
5251
5287
  specializedProfile: string | null;
@@ -5539,13 +5575,16 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
5539
5575
  boostingEnabled: boolean;
5540
5576
  specialisedProfileOptions: string[];
5541
5577
  maximumBoost: number | null;
5578
+ boostDownToNthPlace: number | null;
5579
+ connectsAbovePrevious: number | null;
5580
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
5542
5581
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
5543
5582
  biddingHourlyRatePercentage: number | null;
5544
5583
  biddingFixedHourlyRate: number | null;
5545
5584
  isHourlyRate: boolean;
5546
5585
  jobMinHourlyRate: number | null;
5547
5586
  jobMaxHourlyRate: number | null;
5548
- bidWithWarning: "bid" | "skip";
5587
+ bidWithWarning: "skip" | "bid";
5549
5588
  agencyName: string;
5550
5589
  contractorName: string;
5551
5590
  specializedProfile: string | null;
@@ -5839,13 +5878,16 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
5839
5878
  boostingEnabled: boolean;
5840
5879
  specialisedProfileOptions: string[];
5841
5880
  maximumBoost: number | null;
5881
+ boostDownToNthPlace: number | null;
5882
+ connectsAbovePrevious: number | null;
5883
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
5842
5884
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
5843
5885
  biddingHourlyRatePercentage: number | null;
5844
5886
  biddingFixedHourlyRate: number | null;
5845
5887
  isHourlyRate: boolean;
5846
5888
  jobMinHourlyRate: number | null;
5847
5889
  jobMaxHourlyRate: number | null;
5848
- bidWithWarning: "bid" | "skip";
5890
+ bidWithWarning: "skip" | "bid";
5849
5891
  agencyName: string;
5850
5892
  contractorName: string;
5851
5893
  specializedProfile: string | null;
@@ -7075,6 +7117,9 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
7075
7117
  boostingEnabled: z.ZodBoolean;
7076
7118
  specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
7077
7119
  maximumBoost: z.ZodNullable<z.ZodNumber>;
7120
+ boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
7121
+ connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
7122
+ insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
7078
7123
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
7079
7124
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
7080
7125
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
@@ -7229,13 +7274,16 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
7229
7274
  boostingEnabled: boolean;
7230
7275
  specialisedProfileOptions: string[];
7231
7276
  maximumBoost: number | null;
7277
+ boostDownToNthPlace: number | null;
7278
+ connectsAbovePrevious: number | null;
7279
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
7232
7280
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
7233
7281
  biddingHourlyRatePercentage: number | null;
7234
7282
  biddingFixedHourlyRate: number | null;
7235
7283
  isHourlyRate: boolean;
7236
7284
  jobMinHourlyRate: number | null;
7237
7285
  jobMaxHourlyRate: number | null;
7238
- bidWithWarning: "bid" | "skip";
7286
+ bidWithWarning: "skip" | "bid";
7239
7287
  }, {
7240
7288
  organizationId: string;
7241
7289
  campaignId: string;
@@ -7383,13 +7431,16 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
7383
7431
  boostingEnabled: boolean;
7384
7432
  specialisedProfileOptions: string[];
7385
7433
  maximumBoost: number | null;
7434
+ boostDownToNthPlace: number | null;
7435
+ connectsAbovePrevious: number | null;
7436
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
7386
7437
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
7387
7438
  biddingHourlyRatePercentage: number | null;
7388
7439
  biddingFixedHourlyRate: number | null;
7389
7440
  isHourlyRate: boolean;
7390
7441
  jobMinHourlyRate: number | null;
7391
7442
  jobMaxHourlyRate: number | null;
7392
- bidWithWarning: "bid" | "skip";
7443
+ bidWithWarning: "skip" | "bid";
7393
7444
  }>;
7394
7445
  }>, "strip", z.ZodTypeAny, {
7395
7446
  organizationId: string;
@@ -7680,13 +7731,16 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
7680
7731
  boostingEnabled: boolean;
7681
7732
  specialisedProfileOptions: string[];
7682
7733
  maximumBoost: number | null;
7734
+ boostDownToNthPlace: number | null;
7735
+ connectsAbovePrevious: number | null;
7736
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
7683
7737
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
7684
7738
  biddingHourlyRatePercentage: number | null;
7685
7739
  biddingFixedHourlyRate: number | null;
7686
7740
  isHourlyRate: boolean;
7687
7741
  jobMinHourlyRate: number | null;
7688
7742
  jobMaxHourlyRate: number | null;
7689
- bidWithWarning: "bid" | "skip";
7743
+ bidWithWarning: "skip" | "bid";
7690
7744
  };
7691
7745
  }, {
7692
7746
  organizationId: string;
@@ -7977,13 +8031,16 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
7977
8031
  boostingEnabled: boolean;
7978
8032
  specialisedProfileOptions: string[];
7979
8033
  maximumBoost: number | null;
8034
+ boostDownToNthPlace: number | null;
8035
+ connectsAbovePrevious: number | null;
8036
+ insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
7980
8037
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
7981
8038
  biddingHourlyRatePercentage: number | null;
7982
8039
  biddingFixedHourlyRate: number | null;
7983
8040
  isHourlyRate: boolean;
7984
8041
  jobMinHourlyRate: number | null;
7985
8042
  jobMaxHourlyRate: number | null;
7986
- bidWithWarning: "bid" | "skip";
8043
+ bidWithWarning: "skip" | "bid";
7987
8044
  };
7988
8045
  }>;
7989
8046
  export declare const bidDtoSchema: z.ZodObject<{
@@ -0,0 +1,5 @@
1
+ export declare class BoostAboveMaxConnectsException extends Error {
2
+ readonly code = "BOOST_ABOVE_MAX_CONNECTS_EXCEPTION";
3
+ constructor(message: string);
4
+ }
5
+ export declare const boostAboveMaxConnectsException: (message: string) => BoostAboveMaxConnectsException;
@@ -1,3 +1,4 @@
1
+ import { BoostAboveMaxConnectsException } from './boost-above-max-connects.exception';
1
2
  import { CloudflareChallengeFailedException } from './cloudflare-challenge-failed.exception';
2
3
  import { DeleteMultiloginProfileException } from './delete-multilogin-profile.exception';
3
4
  import { DropdownOptionNotPresentException } from './dropdown-option-not-present.exception';
@@ -29,6 +30,7 @@ import { SelectorNotFoundError } from './selector-not-found.exception';
29
30
  import { TypedValueInFieldNotMatchingException } from './typed-value-not-matching.exception';
30
31
  import { TypingInputFieldException } from './typing-input-field.exception';
31
32
  import { WaitForFunctionTimeoutError } from './wait-for-function-timeout.exception';
33
+ export * from './boost-above-max-connects.exception';
32
34
  export * from './cloudflare-challenge-failed.exception';
33
35
  export * from './delete-multilogin-profile.exception';
34
36
  export * from './dropdown-option-not-present.exception';
@@ -60,4 +62,4 @@ export * from './selector-not-found.exception';
60
62
  export * from './typed-value-not-matching.exception';
61
63
  export * from './typing-input-field.exception';
62
64
  export * from './wait-for-function-timeout.exception';
63
- export type BiddingError = CloudflareChallengeFailedException | DeleteMultiloginProfileException | DropdownOptionNotPresentException | ElementNotClickableException | EvaluateFunctionException | GetMultiloginBrowserException | InitBrowserException | InsufficientConnectsException | InvalidJobUrlException | LoginFailedException | NavigationTimeoutException | NewBrowserPageException | NewPageException | GoToUrlException | ParseConnectsException | ProposalErrorAlertException | ProposalFormWarningAlertException | ProposalSubmitFailedException | PuppeteerConnectionErrorException | QuestionPairNotMatchingException | SelectAgencyException | SelectContractorException | SelectorNotFoundError | TypedValueInFieldNotMatchingException | TypingInputFieldException | WaitForFunctionTimeoutError | IncorrectSecurityQuestionAnswerException | EvaluateElementException | MultiloginAuthenticationException | InvalidCredentialsException | ProposalGenerationFailedException;
65
+ export type BiddingError = CloudflareChallengeFailedException | DeleteMultiloginProfileException | DropdownOptionNotPresentException | ElementNotClickableException | EvaluateFunctionException | GetMultiloginBrowserException | InitBrowserException | InsufficientConnectsException | InvalidJobUrlException | LoginFailedException | NavigationTimeoutException | NewBrowserPageException | NewPageException | GoToUrlException | ParseConnectsException | ProposalErrorAlertException | ProposalFormWarningAlertException | ProposalSubmitFailedException | PuppeteerConnectionErrorException | QuestionPairNotMatchingException | SelectAgencyException | SelectContractorException | SelectorNotFoundError | TypedValueInFieldNotMatchingException | TypingInputFieldException | WaitForFunctionTimeoutError | IncorrectSecurityQuestionAnswerException | EvaluateElementException | MultiloginAuthenticationException | InvalidCredentialsException | ProposalGenerationFailedException | BoostAboveMaxConnectsException;