lancer-shared 1.2.203 → 1.2.205

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,7 +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
+ GET_BIDDING_PROCESSING_EVENT_FROM_ANOTHER_CAMPAIGNS: 'events/get-bidding-processing-event-from-another-campaign',
6452
6452
  },
6453
6453
  JOBS: {
6454
6454
  BASE: 'jobs',
@@ -12715,6 +12715,7 @@ const leadStatusEnum = z.enum([
12715
12715
  'boostAboveMaxConnects',
12716
12716
  'privateJob',
12717
12717
  'noLongerAvailable',
12718
+ 'rejected',
12718
12719
  'viewed',
12719
12720
  'replied',
12720
12721
  'won',
@@ -13311,6 +13312,7 @@ const updateCampaignAnalyticsSchema = z.object({
13311
13312
  'privateJob',
13312
13313
  'insufficientConnects',
13313
13314
  'noLongerAvailable',
13315
+ 'rejected',
13314
13316
  'won',
13315
13317
  'leadsAnalyzed',
13316
13318
  'leadsFailed',
@@ -13993,6 +13995,14 @@ const bidDtoSchema = z.object({
13993
13995
  campaignId: z.string(),
13994
13996
  leadId: z.string(),
13995
13997
  });
13998
+ const getBiddingProcessingEventFromAnotherCampaignsPayloadSchema = z.object({
13999
+ organizationId: z.string(),
14000
+ campaignId: z.string(),
14001
+ jobUrl: z.string(),
14002
+ });
14003
+ const getBiddingProcessingEventFromAnotherCampaignsResponseSchema = z.object({
14004
+ exists: z.boolean(),
14005
+ });
13996
14006
 
13997
14007
  const bidSuccessSchema = z.object({
13998
14008
  status: z.literal("success"),
@@ -14119,6 +14129,26 @@ function invalidJobUrlException(message) {
14119
14129
  return new InvalidJobUrlException(message);
14120
14130
  }
14121
14131
 
14132
+ class JobAlreadyBiddedOnException extends Error {
14133
+ code = 'JOB_ALREADY_BIDDED_ON_EXCEPTION';
14134
+ constructor(message) {
14135
+ super(message);
14136
+ }
14137
+ }
14138
+ const jobAlreadyBiddedOnException = (message) => {
14139
+ return new JobAlreadyBiddedOnException(message);
14140
+ };
14141
+
14142
+ class JobAlreadyProcessedInAnotherCampaignException extends Error {
14143
+ code = 'JOB_ALREADY_PROCESSED_IN_ANOTHER_CAMPAIGN_EXCEPTION';
14144
+ constructor(message) {
14145
+ super(message);
14146
+ }
14147
+ }
14148
+ function jobAlreadyProcessedInAnotherCampaignException(message) {
14149
+ return new JobAlreadyProcessedInAnotherCampaignException(message);
14150
+ }
14151
+
14122
14152
  class JobNoLongerAvailableException extends Error {
14123
14153
  code = 'JOB_NO_LONGER_AVAILABLE_EXCEPTION';
14124
14154
  constructor(message) {
@@ -23742,6 +23772,8 @@ exports.InvalidCredentialsException = InvalidCredentialsException;
23742
23772
  exports.InvalidGoogleOAuthTokenException = InvalidGoogleOAuthTokenException;
23743
23773
  exports.InvalidJobUrlException = InvalidJobUrlException;
23744
23774
  exports.JOB_FILTER_OPTIONS = JOB_FILTER_OPTIONS;
23775
+ exports.JobAlreadyBiddedOnException = JobAlreadyBiddedOnException;
23776
+ exports.JobAlreadyProcessedInAnotherCampaignException = JobAlreadyProcessedInAnotherCampaignException;
23745
23777
  exports.JobIsPrivateException = JobIsPrivateException;
23746
23778
  exports.JobNoLongerAvailableException = JobNoLongerAvailableException;
23747
23779
  exports.LogEventTypeEnum = LogEventTypeEnum;
@@ -23905,6 +23937,8 @@ exports.freelancerBidPayloadSchema = freelancerBidPayloadSchema;
23905
23937
  exports.freelancerBidProposalDataSchema = freelancerBidProposalDataSchema;
23906
23938
  exports.generateLeadCountsRequestSchema = generateLeadCountsRequestSchema;
23907
23939
  exports.generateSlug = generateSlug;
23940
+ exports.getBiddingProcessingEventFromAnotherCampaignsPayloadSchema = getBiddingProcessingEventFromAnotherCampaignsPayloadSchema;
23941
+ exports.getBiddingProcessingEventFromAnotherCampaignsResponseSchema = getBiddingProcessingEventFromAnotherCampaignsResponseSchema;
23908
23942
  exports.getCampaignLeadsRequestQuerySchema = getCampaignLeadsRequestQuerySchema;
23909
23943
  exports.getCampaignLeadsResponseSchema = getCampaignLeadsResponseSchema;
23910
23944
  exports.getMultiloginBrowserException = getMultiloginBrowserException;
@@ -23939,6 +23973,8 @@ exports.jobActivityScrapeFailedEventMetadata = jobActivityScrapeFailedEventMetad
23939
23973
  exports.jobActivityScrapedEventMetadata = jobActivityScrapedEventMetadata;
23940
23974
  exports.jobActivitySnapshotSchema = jobActivitySnapshotSchema;
23941
23975
  exports.jobActivityUpdateSchema = jobActivityUpdateSchema;
23976
+ exports.jobAlreadyBiddedOnException = jobAlreadyBiddedOnException;
23977
+ exports.jobAlreadyProcessedInAnotherCampaignException = jobAlreadyProcessedInAnotherCampaignException;
23942
23978
  exports.jobDetailsStateSchema = jobDetailsStateSchema;
23943
23979
  exports.jobFiltersSchema = jobFiltersSchema;
23944
23980
  exports.jobIsPrivateException = jobIsPrivateException;
@@ -17,7 +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
+ readonly GET_BIDDING_PROCESSING_EVENT_FROM_ANOTHER_CAMPAIGNS: "events/get-bidding-processing-event-from-another-campaign";
21
21
  };
22
22
  readonly JOBS: {
23
23
  readonly BASE: "jobs";
@@ -419,7 +419,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
419
419
  answer: string;
420
420
  }>, "many">>;
421
421
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
422
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "viewed", "replied", "won"]>>;
422
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "viewed", "replied", "won"]>>;
423
423
  biddingAmount: z.ZodNullable<z.ZodNumber>;
424
424
  boosted: z.ZodNullable<z.ZodBoolean>;
425
425
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -533,14 +533,14 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
533
533
  suitabilityReason: string | null;
534
534
  proposal: string | null;
535
535
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
536
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "viewed" | "replied" | "won" | null;
536
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won" | null;
537
537
  biddingAmount: number | null;
538
538
  boosted: boolean | null;
539
539
  boostingAmount: number | null;
540
540
  biddingTaskScheduled: boolean | null;
541
541
  scheduledBiddingTime: number | null;
542
542
  feedbackCheckTaskId: string | null;
543
- bidDecision: "proceeded" | "rejected" | null;
543
+ bidDecision: "rejected" | "proceeded" | null;
544
544
  rejectedFeedback: string | null;
545
545
  applicationId: string | null;
546
546
  activity?: Partial<Record<"4h" | "24h", {
@@ -668,14 +668,14 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
668
668
  suitabilityReason: string | null;
669
669
  proposal: string | null;
670
670
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
671
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "viewed" | "replied" | "won" | null;
671
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won" | null;
672
672
  biddingAmount: number | null;
673
673
  boosted: boolean | null;
674
674
  boostingAmount: number | null;
675
675
  biddingTaskScheduled: boolean | null;
676
676
  scheduledBiddingTime: number | null;
677
677
  feedbackCheckTaskId: string | null;
678
- bidDecision: "proceeded" | "rejected" | null;
678
+ bidDecision: "rejected" | "proceeded" | null;
679
679
  rejectedFeedback: string | null;
680
680
  applicationId: string | null;
681
681
  activity?: Partial<Record<"4h" | "24h", {
@@ -819,14 +819,14 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
819
819
  suitabilityReason: string | null;
820
820
  proposal: string | null;
821
821
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
822
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "viewed" | "replied" | "won" | null;
822
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won" | null;
823
823
  biddingAmount: number | null;
824
824
  boosted: boolean | null;
825
825
  boostingAmount: number | null;
826
826
  biddingTaskScheduled: boolean | null;
827
827
  scheduledBiddingTime: number | null;
828
828
  feedbackCheckTaskId: string | null;
829
- bidDecision: "proceeded" | "rejected" | null;
829
+ bidDecision: "rejected" | "proceeded" | null;
830
830
  rejectedFeedback: string | null;
831
831
  applicationId: string | null;
832
832
  activity?: Partial<Record<"4h" | "24h", {
@@ -964,14 +964,14 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
964
964
  suitabilityReason: string | null;
965
965
  proposal: string | null;
966
966
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
967
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "viewed" | "replied" | "won" | null;
967
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won" | null;
968
968
  biddingAmount: number | null;
969
969
  boosted: boolean | null;
970
970
  boostingAmount: number | null;
971
971
  biddingTaskScheduled: boolean | null;
972
972
  scheduledBiddingTime: number | null;
973
973
  feedbackCheckTaskId: string | null;
974
- bidDecision: "proceeded" | "rejected" | null;
974
+ bidDecision: "rejected" | "proceeded" | null;
975
975
  rejectedFeedback: string | null;
976
976
  applicationId: string | null;
977
977
  activity?: Partial<Record<"4h" | "24h", {