lancer-shared 1.2.198 → 1.2.200

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.
@@ -6448,6 +6448,7 @@ const ROUTES = {
6448
6448
  EVENTS: {
6449
6449
  BASE: 'events',
6450
6450
  BY_ID: (id) => `events/${id}`,
6451
+ GET_BIDDING_PROCESSING_EVENT_FROM_ANOTHER_CAMPAIGNS: (organizationId, campaignId, jobUrl) => `events/organizations/${organizationId}/campaigns/${campaignId}/get-bidding-processing-event-from-another-campaigns/${jobUrl}`,
6451
6452
  },
6452
6453
  JOBS: {
6453
6454
  BASE: 'jobs',
@@ -12711,6 +12712,7 @@ const leadStatusEnum = z.enum([
12711
12712
  'doesNotMeetCriteria',
12712
12713
  'syncedInAnotherCampaign',
12713
12714
  'dailyLimitReached',
12715
+ 'boostAboveMaxConnects',
12714
12716
  'viewed',
12715
12717
  'replied',
12716
12718
  'won',
@@ -13302,6 +13304,7 @@ const updateCampaignAnalyticsSchema = z.object({
13302
13304
  'replied',
13303
13305
  'doesNotMeetCriteria',
13304
13306
  'syncedInAnotherCampaign',
13307
+ 'boostAboveMaxConnects',
13305
13308
  'dailyLimitReached',
13306
13309
  'insufficientConnects',
13307
13310
  'won',
@@ -14605,6 +14608,9 @@ const biddingCompletedEventMetadata = objectType({
14605
14608
  const biddingFailedEventMetadata = objectType({
14606
14609
  error: z.any(),
14607
14610
  });
14611
+ const biddingProcessingEventMetadata = objectType({
14612
+ jobUrl: z.string(),
14613
+ });
14608
14614
  const userAccountBiddingExceptionEventMetadata = objectType({
14609
14615
  errorType: z.enum(['insufficientConnects', 'proposalFormWarningAlert']),
14610
14616
  context: z.string().optional(),
@@ -23785,6 +23791,7 @@ exports.bidderInstanceStatusEnum = bidderInstanceStatusEnum;
23785
23791
  exports.biddingCompletedEventMetadata = biddingCompletedEventMetadata;
23786
23792
  exports.biddingFailedEventMetadata = biddingFailedEventMetadata;
23787
23793
  exports.biddingHourlyRateStrategyEnum = biddingHourlyRateStrategyEnum;
23794
+ exports.biddingProcessingEventMetadata = biddingProcessingEventMetadata;
23788
23795
  exports.biddingRejectedWithFeedbackEventMetadata = biddingRejectedWithFeedbackEventMetadata;
23789
23796
  exports.booleanSchema = booleanSchema;
23790
23797
  exports.boostAboveMaxConnectsException = boostAboveMaxConnectsException;
@@ -17,6 +17,7 @@ export declare const ROUTES: {
17
17
  readonly EVENTS: {
18
18
  readonly BASE: "events";
19
19
  readonly BY_ID: (id: string) => string;
20
+ readonly GET_BIDDING_PROCESSING_EVENT_FROM_ANOTHER_CAMPAIGNS: (organizationId: string, campaignId: string, jobUrl: string) => string;
20
21
  };
21
22
  readonly JOBS: {
22
23
  readonly BASE: "jobs";
@@ -0,0 +1,5 @@
1
+ export declare class JobAlreadyProcessedInAnotherCampaignException extends Error {
2
+ readonly code = "JOB_ALREADY_PROCESSED_IN_ANOTHER_CAMPAIGN_EXCEPTION";
3
+ constructor(message: string);
4
+ }
5
+ export declare function jobAlreadyProcessedInAnotherCampaignException(message: string): JobAlreadyProcessedInAnotherCampaignException;
@@ -646,7 +646,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
646
646
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
647
647
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
648
648
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
649
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>, z.ZodNumber>>;
649
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>, z.ZodNumber>>;
650
650
  expenses: z.ZodObject<{
651
651
  biddingAmount: z.ZodDefault<z.ZodNumber>;
652
652
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -1277,7 +1277,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1277
1277
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
1278
1278
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
1279
1279
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
1280
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>, z.ZodNumber>>;
1280
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>, z.ZodNumber>>;
1281
1281
  expenses: z.ZodObject<{
1282
1282
  biddingAmount: z.ZodDefault<z.ZodNumber>;
1283
1283
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -1704,7 +1704,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1704
1704
  answer: string;
1705
1705
  }>, "many">>;
1706
1706
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
1707
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
1707
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>>;
1708
1708
  biddingAmount: z.ZodNullable<z.ZodNumber>;
1709
1709
  boosted: z.ZodNullable<z.ZodBoolean>;
1710
1710
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -2260,7 +2260,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2260
2260
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
2261
2261
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
2262
2262
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
2263
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>, z.ZodNumber>>;
2263
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>, z.ZodNumber>>;
2264
2264
  expenses: z.ZodObject<{
2265
2265
  biddingAmount: z.ZodDefault<z.ZodNumber>;
2266
2266
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -2369,7 +2369,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2369
2369
  creditBalance: z.ZodNumber;
2370
2370
  }, {
2371
2371
  type: z.ZodLiteral<"lead_status">;
2372
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>;
2372
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>;
2373
2373
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
2374
2374
  id: z.ZodNullable<z.ZodString>;
2375
2375
  uid: z.ZodNullable<z.ZodString>;
@@ -2688,7 +2688,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2688
2688
  answer: string;
2689
2689
  }>, "many">>;
2690
2690
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
2691
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
2691
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>>;
2692
2692
  biddingAmount: z.ZodNullable<z.ZodNumber>;
2693
2693
  boosted: z.ZodNullable<z.ZodBoolean>;
2694
2694
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -2713,7 +2713,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2713
2713
  creditBalance: z.ZodNumber;
2714
2714
  }>, "strip", z.ZodTypeAny, {
2715
2715
  type: "lead_status";
2716
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached";
2716
+ status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects";
2717
2717
  createdAt: number;
2718
2718
  organization: {
2719
2719
  id: string;
@@ -2732,7 +2732,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2732
2732
  };
2733
2733
  }, {
2734
2734
  type: "lead_status";
2735
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached";
2735
+ status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects";
2736
2736
  createdAt: number;
2737
2737
  organization: {
2738
2738
  id: string;
@@ -3243,7 +3243,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3243
3243
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
3244
3244
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
3245
3245
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
3246
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>, z.ZodNumber>>;
3246
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>, z.ZodNumber>>;
3247
3247
  expenses: z.ZodObject<{
3248
3248
  biddingAmount: z.ZodDefault<z.ZodNumber>;
3249
3249
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -3670,7 +3670,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3670
3670
  answer: string;
3671
3671
  }>, "many">>;
3672
3672
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
3673
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
3673
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>>;
3674
3674
  biddingAmount: z.ZodNullable<z.ZodNumber>;
3675
3675
  boosted: z.ZodNullable<z.ZodBoolean>;
3676
3676
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -4223,7 +4223,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4223
4223
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
4224
4224
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
4225
4225
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
4226
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>, z.ZodNumber>>;
4226
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>, z.ZodNumber>>;
4227
4227
  expenses: z.ZodObject<{
4228
4228
  biddingAmount: z.ZodDefault<z.ZodNumber>;
4229
4229
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -4853,7 +4853,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4853
4853
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
4854
4854
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
4855
4855
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
4856
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>, z.ZodNumber>>;
4856
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>, z.ZodNumber>>;
4857
4857
  expenses: z.ZodObject<{
4858
4858
  biddingAmount: z.ZodDefault<z.ZodNumber>;
4859
4859
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -5280,7 +5280,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5280
5280
  answer: string;
5281
5281
  }>, "many">>;
5282
5282
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
5283
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
5283
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>>;
5284
5284
  biddingAmount: z.ZodNullable<z.ZodNumber>;
5285
5285
  boosted: z.ZodNullable<z.ZodBoolean>;
5286
5286
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -5835,7 +5835,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5835
5835
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
5836
5836
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
5837
5837
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
5838
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>, z.ZodNumber>>;
5838
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>, z.ZodNumber>>;
5839
5839
  expenses: z.ZodObject<{
5840
5840
  biddingAmount: z.ZodDefault<z.ZodNumber>;
5841
5841
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -5944,7 +5944,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5944
5944
  creditBalance: z.ZodNumber;
5945
5945
  }, {
5946
5946
  type: z.ZodLiteral<"lead_status">;
5947
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>;
5947
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>;
5948
5948
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
5949
5949
  id: z.ZodNullable<z.ZodString>;
5950
5950
  uid: z.ZodNullable<z.ZodString>;
@@ -6263,7 +6263,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6263
6263
  answer: string;
6264
6264
  }>, "many">>;
6265
6265
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
6266
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
6266
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>>;
6267
6267
  biddingAmount: z.ZodNullable<z.ZodNumber>;
6268
6268
  boosted: z.ZodNullable<z.ZodBoolean>;
6269
6269
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -6288,7 +6288,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6288
6288
  creditBalance: z.ZodNumber;
6289
6289
  }>, "strip", z.ZodTypeAny, {
6290
6290
  type: "lead_status";
6291
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached";
6291
+ status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects";
6292
6292
  createdAt: number;
6293
6293
  organization: {
6294
6294
  id: string;
@@ -6307,7 +6307,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6307
6307
  };
6308
6308
  }, {
6309
6309
  type: "lead_status";
6310
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached";
6310
+ status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects";
6311
6311
  createdAt: number;
6312
6312
  organization: {
6313
6313
  id: string;
@@ -6817,7 +6817,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6817
6817
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
6818
6818
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
6819
6819
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
6820
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>, z.ZodNumber>>;
6820
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>, z.ZodNumber>>;
6821
6821
  expenses: z.ZodObject<{
6822
6822
  biddingAmount: z.ZodDefault<z.ZodNumber>;
6823
6823
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -7244,7 +7244,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
7244
7244
  answer: string;
7245
7245
  }>, "many">>;
7246
7246
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
7247
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
7247
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>>;
7248
7248
  biddingAmount: z.ZodNullable<z.ZodNumber>;
7249
7249
  boosted: z.ZodNullable<z.ZodBoolean>;
7250
7250
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -7636,7 +7636,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7636
7636
  answer: string;
7637
7637
  }>, "many">>;
7638
7638
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
7639
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
7639
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>>;
7640
7640
  biddingAmount: z.ZodNullable<z.ZodNumber>;
7641
7641
  boosted: z.ZodNullable<z.ZodBoolean>;
7642
7642
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -7682,7 +7682,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7682
7682
  };
7683
7683
  }>, z.ZodObject<{
7684
7684
  type: z.ZodLiteral<"lead_status">;
7685
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>;
7685
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>;
7686
7686
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
7687
7687
  id: z.ZodNullable<z.ZodString>;
7688
7688
  uid: z.ZodNullable<z.ZodString>;
@@ -8001,7 +8001,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
8001
8001
  answer: string;
8002
8002
  }>, "many">>;
8003
8003
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
8004
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
8004
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>>;
8005
8005
  biddingAmount: z.ZodNullable<z.ZodNumber>;
8006
8006
  boosted: z.ZodNullable<z.ZodBoolean>;
8007
8007
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -8026,7 +8026,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
8026
8026
  creditBalance: z.ZodNumber;
8027
8027
  }, "strip", z.ZodTypeAny, {
8028
8028
  type: "lead_status";
8029
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached";
8029
+ status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects";
8030
8030
  creditBalance: number;
8031
8031
  lead: {
8032
8032
  id: string | null;
@@ -8036,7 +8036,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
8036
8036
  };
8037
8037
  }, {
8038
8038
  type: "lead_status";
8039
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached";
8039
+ status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects";
8040
8040
  creditBalance: number;
8041
8041
  lead: {
8042
8042
  id: string | null;
@@ -8364,7 +8364,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
8364
8364
  answer: string;
8365
8365
  }>, "many">>;
8366
8366
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
8367
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>>;
8367
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>>;
8368
8368
  biddingAmount: z.ZodNullable<z.ZodNumber>;
8369
8369
  boosted: z.ZodNullable<z.ZodBoolean>;
8370
8370
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -8409,15 +8409,15 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
8409
8409
  export declare const updateCampaignAnalyticsSchema: z.ZodObject<{
8410
8410
  organizationId: z.ZodString;
8411
8411
  campaignId: z.ZodString;
8412
- fields: z.ZodArray<z.ZodEnum<["contacted", "viewed", "replied", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "insufficientConnects", "won", "leadsAnalyzed", "leadsFailed", "proposalsFailed", "suitableJobs", "unsuitableJobs", "wonAmount"]>, "many">;
8412
+ fields: z.ZodArray<z.ZodEnum<["contacted", "viewed", "replied", "doesNotMeetCriteria", "syncedInAnotherCampaign", "boostAboveMaxConnects", "dailyLimitReached", "insufficientConnects", "won", "leadsAnalyzed", "leadsFailed", "proposalsFailed", "suitableJobs", "unsuitableJobs", "wonAmount"]>, "many">;
8413
8413
  }, "strip", z.ZodTypeAny, {
8414
8414
  campaignId: string;
8415
8415
  organizationId: string;
8416
- fields: ("contacted" | "viewed" | "replied" | "won" | "leadsAnalyzed" | "leadsFailed" | "suitableJobs" | "unsuitableJobs" | "wonAmount" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "proposalsFailed")[];
8416
+ fields: ("contacted" | "viewed" | "replied" | "won" | "leadsAnalyzed" | "leadsFailed" | "suitableJobs" | "unsuitableJobs" | "wonAmount" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "proposalsFailed")[];
8417
8417
  }, {
8418
8418
  campaignId: string;
8419
8419
  organizationId: string;
8420
- fields: ("contacted" | "viewed" | "replied" | "won" | "leadsAnalyzed" | "leadsFailed" | "suitableJobs" | "unsuitableJobs" | "wonAmount" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "proposalsFailed")[];
8420
+ fields: ("contacted" | "viewed" | "replied" | "won" | "leadsAnalyzed" | "leadsFailed" | "suitableJobs" | "unsuitableJobs" | "wonAmount" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "proposalsFailed")[];
8421
8421
  }>;
8422
8422
  export type CampaignAnalytics = z.infer<typeof campaignAnalyticsSchema>;
8423
8423
  export type CampaignAnalyticsStats = z.infer<typeof campaignAnalyticsStatsSchema>;
@@ -1868,7 +1868,7 @@ export type BiddingHourlyRateStrategy = z.infer<typeof biddingHourlyRateStrategy
1868
1868
  export interface Campaign extends z.infer<typeof campaignSchema> {
1869
1869
  biddingHourlyRateStrategy: BiddingHourlyRateStrategy;
1870
1870
  filters: JobFilters;
1871
- count: number | null;
1871
+ count?: number;
1872
1872
  }
1873
1873
  export type CampaignStatus = z.infer<typeof campaignStatusSchema>;
1874
1874
  export interface CreateCampaign extends z.infer<typeof createCampaignSchema> {
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
2
  export declare const agentStatusSchema: z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>;
3
- export declare const leadStatusEnum: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>;
3
+ export declare const leadStatusEnum: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>;
4
4
  export declare const updateLeadStatusSchema: z.ZodObject<{
5
5
  leadId: z.ZodString;
6
6
  organizationId: z.ZodString;
7
7
  campaignId: z.ZodString;
8
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>;
8
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>;
9
9
  proposalId: z.ZodOptional<z.ZodString>;
10
10
  userId: z.ZodOptional<z.ZodString>;
11
11
  wonAmount: z.ZodOptional<z.ZodNumber>;
@@ -13,7 +13,7 @@ export declare const updateLeadStatusSchema: z.ZodObject<{
13
13
  leadId: string;
14
14
  organizationId: string;
15
15
  campaignId: string;
16
- status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
16
+ status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "viewed" | "replied" | "won";
17
17
  proposalId?: string | undefined;
18
18
  userId?: string | undefined;
19
19
  wonAmount?: number | undefined;
@@ -21,19 +21,19 @@ export declare const updateLeadStatusSchema: z.ZodObject<{
21
21
  leadId: string;
22
22
  organizationId: string;
23
23
  campaignId: string;
24
- status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
24
+ status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "viewed" | "replied" | "won";
25
25
  proposalId?: string | undefined;
26
26
  userId?: string | undefined;
27
27
  wonAmount?: number | undefined;
28
28
  }>;
29
29
  export declare const updateOrganizationLeadsStatusPayloadSchema: z.ZodArray<z.ZodObject<{
30
30
  applicationUid: z.ZodString;
31
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>;
31
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
33
+ status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "viewed" | "replied" | "won";
34
34
  applicationUid: string;
35
35
  }, {
36
- status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
36
+ status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "viewed" | "replied" | "won";
37
37
  applicationUid: string;
38
38
  }>, "many">;
39
39
  export type LeadStatus = z.infer<typeof leadStatusEnum>;
@@ -60,6 +60,13 @@ export declare const biddingFailedEventMetadata: z.ZodObject<{
60
60
  }, {
61
61
  error?: any;
62
62
  }>;
63
+ export declare const biddingProcessingEventMetadata: z.ZodObject<{
64
+ jobUrl: z.ZodString;
65
+ }, "strip", z.ZodTypeAny, {
66
+ jobUrl: string;
67
+ }, {
68
+ jobUrl: string;
69
+ }>;
63
70
  export declare const userAccountBiddingExceptionEventMetadata: z.ZodObject<{
64
71
  errorType: z.ZodEnum<["insufficientConnects", "proposalFormWarningAlert"]>;
65
72
  context: z.ZodOptional<z.ZodString>;
@@ -89,13 +96,13 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
89
96
  leadId: z.ZodString;
90
97
  userId: z.ZodString;
91
98
  metadata: z.ZodOptional<z.ZodObject<{
92
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "viewed", "replied", "won"]>;
99
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "viewed", "replied", "won"]>;
93
100
  proposalId: z.ZodNullable<z.ZodString>;
94
101
  }, "strip", z.ZodTypeAny, {
95
- status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
102
+ status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "viewed" | "replied" | "won";
96
103
  proposalId: string | null;
97
104
  }, {
98
- status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
105
+ status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "viewed" | "replied" | "won";
99
106
  proposalId: string | null;
100
107
  }>>;
101
108
  reason: z.ZodOptional<z.ZodString>;
@@ -106,7 +113,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
106
113
  leadId: string;
107
114
  reason?: string | undefined;
108
115
  metadata?: {
109
- status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
116
+ status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "viewed" | "replied" | "won";
110
117
  proposalId: string | null;
111
118
  } | undefined;
112
119
  }, {
@@ -116,7 +123,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
116
123
  leadId: string;
117
124
  reason?: string | undefined;
118
125
  metadata?: {
119
- status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "viewed" | "replied" | "won";
126
+ status: "insufficientConnects" | "leads" | "contacted" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "viewed" | "replied" | "won";
120
127
  proposalId: string | null;
121
128
  } | undefined;
122
129
  }>;
@@ -131,6 +138,7 @@ export type LogEventType = z.infer<typeof LogEventTypeEnum>;
131
138
  export type LogEvent = z.infer<typeof logEventSchema>;
132
139
  export type BiddingCompletedEventMetadata = z.infer<typeof biddingCompletedEventMetadata>;
133
140
  export type BiddingFailedEventMetadata = z.infer<typeof biddingFailedEventMetadata>;
141
+ export type BiddingProcessingEventMetadata = z.infer<typeof biddingProcessingEventMetadata>;
134
142
  export type BiddingRejectedWithFeedbackEventMetadata = z.infer<typeof biddingRejectedWithFeedbackEventMetadata>;
135
143
  export type LeadStatusEventMetadata = z.infer<typeof leadStatusEventMetadata>;
136
144
  export declare const suitabilityPendingEventMetadataSchema: z.ZodObject<{
@@ -150,8 +158,8 @@ export declare const suitabilityPendingEventMetadataSchema: z.ZodObject<{
150
158
  }>, "many">;
151
159
  }, "strip", z.ZodTypeAny, {
152
160
  timestamp: number;
153
- jobId: string;
154
161
  jobUrl: string;
162
+ jobId: string;
155
163
  title: string;
156
164
  applyToLeads: {
157
165
  campaignId: string;
@@ -159,8 +167,8 @@ export declare const suitabilityPendingEventMetadataSchema: z.ZodObject<{
159
167
  }[];
160
168
  }, {
161
169
  timestamp: number;
162
- jobId: string;
163
170
  jobUrl: string;
171
+ jobId: string;
164
172
  title: string;
165
173
  applyToLeads: {
166
174
  campaignId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.198",
3
+ "version": "1.2.200",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",