lancer-shared 1.2.256 → 1.2.258

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.
@@ -6809,6 +6809,7 @@ const getCampaignLeadsRequestQuerySchema = z.object({
6809
6809
  cursor: z.string().optional(),
6810
6810
  limit: z.number().default(20).optional(),
6811
6811
  status: getCampaignLeadsStatusEnum.optional(),
6812
+ campaignId: z.string().optional(),
6812
6813
  });
6813
6814
  const getCampaignLeadsResponseSchema = z.object({
6814
6815
  data: z.array(leadSchema),
@@ -7364,6 +7365,10 @@ const campaignNotificationType = z.enum([
7364
7365
  'accountDisconnected',
7365
7366
  'biddingWarning',
7366
7367
  'boostAboveMaxConnects',
7368
+ 'jobNoLongerAvailable',
7369
+ 'privateJob',
7370
+ 'jobAlreadyBiddedOn',
7371
+ 'biddingFailed',
7367
7372
  ]);
7368
7373
  const chatbotChannelSchema = z.object({
7369
7374
  id: z.string(),
@@ -7420,6 +7425,10 @@ const CAMPAIGN_NOTIFICATION_TYPES = {
7420
7425
  accountDisconnected: 'Account Disconnected',
7421
7426
  biddingWarning: 'Bidding Warning',
7422
7427
  boostAboveMaxConnects: 'Boost Above Max Connects',
7428
+ jobNoLongerAvailable: 'Job No Longer Available',
7429
+ privateJob: 'Private Job',
7430
+ jobAlreadyBiddedOn: 'Job Already Bidded On',
7431
+ biddingFailed: 'Bidding Failed',
7423
7432
  };
7424
7433
  const CAMPAIGN_NOTIFICATION_SETTINGS = {
7425
7434
  suitableLead: 'When Lancer determines a job is suitable for your company',
@@ -7430,6 +7439,10 @@ const CAMPAIGN_NOTIFICATION_SETTINGS = {
7430
7439
  accountDisconnected: 'When there is an issue with your Upwork Bidder account',
7431
7440
  biddingWarning: 'When there is a bidding warning',
7432
7441
  boostAboveMaxConnects: 'When there is a boost above max connects',
7442
+ jobNoLongerAvailable: 'When a job is no longer available',
7443
+ privateJob: 'When a job is private',
7444
+ jobAlreadyBiddedOn: 'When a job is already bidded on',
7445
+ biddingFailed: 'When a bidding fails',
7433
7446
  };
7434
7447
 
7435
7448
  const campaignCountByStatusSchema = z.object({
@@ -8448,7 +8461,7 @@ const createSampleSchema = z.object({
8448
8461
  });
8449
8462
  const getSamplesRequestSchema = z.object({
8450
8463
  organizationId: z.string(),
8451
- campaignId: z.string(),
8464
+ campaignId: z.string().optional(),
8452
8465
  leadIds: z.array(z.string()),
8453
8466
  });
8454
8467
  const updateSampleSchema = z.object({