lancer-shared 1.2.202 → 1.2.204

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 JobAlreadyProcessedInAnotherCampaignException extends Error {
14133
+ code = 'JOB_ALREADY_PROCESSED_IN_ANOTHER_CAMPAIGN_EXCEPTION';
14134
+ constructor(message) {
14135
+ super(message);
14136
+ }
14137
+ }
14138
+ function jobAlreadyProcessedInAnotherCampaignException(message) {
14139
+ return new JobAlreadyProcessedInAnotherCampaignException(message);
14140
+ }
14141
+
14142
+ class JobNoLongerAvailableException extends Error {
14143
+ code = 'JOB_NO_LONGER_AVAILABLE_EXCEPTION';
14144
+ constructor(message) {
14145
+ super(message);
14146
+ }
14147
+ }
14148
+ function jobNoLongerAvailableException(message) {
14149
+ return new JobNoLongerAvailableException(message);
14150
+ }
14151
+
14122
14152
  class LoginFailedException extends Error {
14123
14153
  code = 'LOGIN_FAILED_EXCEPTION';
14124
14154
  constructor(message) {
@@ -23732,7 +23762,9 @@ exports.InvalidCredentialsException = InvalidCredentialsException;
23732
23762
  exports.InvalidGoogleOAuthTokenException = InvalidGoogleOAuthTokenException;
23733
23763
  exports.InvalidJobUrlException = InvalidJobUrlException;
23734
23764
  exports.JOB_FILTER_OPTIONS = JOB_FILTER_OPTIONS;
23765
+ exports.JobAlreadyProcessedInAnotherCampaignException = JobAlreadyProcessedInAnotherCampaignException;
23735
23766
  exports.JobIsPrivateException = JobIsPrivateException;
23767
+ exports.JobNoLongerAvailableException = JobNoLongerAvailableException;
23736
23768
  exports.LogEventTypeEnum = LogEventTypeEnum;
23737
23769
  exports.LoginFailedException = LoginFailedException;
23738
23770
  exports.MultiloginAuthenticationException = MultiloginAuthenticationException;
@@ -23894,6 +23926,8 @@ exports.freelancerBidPayloadSchema = freelancerBidPayloadSchema;
23894
23926
  exports.freelancerBidProposalDataSchema = freelancerBidProposalDataSchema;
23895
23927
  exports.generateLeadCountsRequestSchema = generateLeadCountsRequestSchema;
23896
23928
  exports.generateSlug = generateSlug;
23929
+ exports.getBiddingProcessingEventFromAnotherCampaignsPayloadSchema = getBiddingProcessingEventFromAnotherCampaignsPayloadSchema;
23930
+ exports.getBiddingProcessingEventFromAnotherCampaignsResponseSchema = getBiddingProcessingEventFromAnotherCampaignsResponseSchema;
23897
23931
  exports.getCampaignLeadsRequestQuerySchema = getCampaignLeadsRequestQuerySchema;
23898
23932
  exports.getCampaignLeadsResponseSchema = getCampaignLeadsResponseSchema;
23899
23933
  exports.getMultiloginBrowserException = getMultiloginBrowserException;
@@ -23928,10 +23962,12 @@ exports.jobActivityScrapeFailedEventMetadata = jobActivityScrapeFailedEventMetad
23928
23962
  exports.jobActivityScrapedEventMetadata = jobActivityScrapedEventMetadata;
23929
23963
  exports.jobActivitySnapshotSchema = jobActivitySnapshotSchema;
23930
23964
  exports.jobActivityUpdateSchema = jobActivityUpdateSchema;
23965
+ exports.jobAlreadyProcessedInAnotherCampaignException = jobAlreadyProcessedInAnotherCampaignException;
23931
23966
  exports.jobDetailsStateSchema = jobDetailsStateSchema;
23932
23967
  exports.jobFiltersSchema = jobFiltersSchema;
23933
23968
  exports.jobIsPrivateException = jobIsPrivateException;
23934
23969
  exports.jobListingSchema = jobListingSchema;
23970
+ exports.jobNoLongerAvailableException = jobNoLongerAvailableException;
23935
23971
  exports.jobQualityScoreSchema = jobQualityScoreSchema;
23936
23972
  exports.jobSkillsSchema = jobSkillsSchema;
23937
23973
  exports.jobStatusOrder = jobStatusOrder;
@@ -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", "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" | "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" | "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" | "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" | "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", {