lancer-shared 1.2.147 → 1.2.148

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.
@@ -11187,22 +11187,22 @@ const jobFiltersSchema = z.object({
11187
11187
  });
11188
11188
 
11189
11189
  const booleanSchema = z
11190
- .union([z.boolean(), z.literal("true"), z.literal("false")])
11191
- .transform((value) => value === true || value === "true");
11190
+ .union([z.boolean(), z.literal('true'), z.literal('false')])
11191
+ .transform((value) => value === true || value === 'true');
11192
11192
  const dateSchema = (params = {}) => coerce.date({
11193
11193
  ...params,
11194
11194
  });
11195
11195
  const passwordSchema = stringType()
11196
- .min(8, "Password must be at least 8 characters long.")
11197
- .max(255, "Password must be at most 255 characters long.")
11198
- .refine((password) => /[a-z]/.test(password), "Password must contain at least one lowercase letter.")
11199
- .refine((password) => /[A-Z]/.test(password), "Password must contain at least one uppercase letter.")
11200
- .refine((password) => /\d/.test(password), "Password must contain at least one number.")
11201
- .refine((password) => /[\W_]/.test(password), "Password must contain at least one symbol.");
11196
+ .min(8, 'Password must be at least 8 characters long.')
11197
+ .max(255, 'Password must be at most 255 characters long.')
11198
+ .refine((password) => /[a-z]/.test(password), 'Password must contain at least one lowercase letter.')
11199
+ .refine((password) => /[A-Z]/.test(password), 'Password must contain at least one uppercase letter.')
11200
+ .refine((password) => /\d/.test(password), 'Password must contain at least one number.')
11201
+ .refine((password) => /[\W_]/.test(password), 'Password must contain at least one symbol.');
11202
11202
  const regionSchema = z.union([
11203
- z.literal("USOnly"),
11204
- z.literal("UKOnly"),
11205
- z.literal("Worldwide"),
11203
+ z.literal('USOnly'),
11204
+ z.literal('UKOnly'),
11205
+ z.literal('Worldwide'),
11206
11206
  ]);
11207
11207
 
11208
11208
  const segmentationDataSchema$1 = objectType({
@@ -13718,12 +13718,12 @@ const LogEventTypeEnum = z.enum([
13718
13718
  'scrapeFeedStarted',
13719
13719
  'scrapeFeedCompleted',
13720
13720
  'scrapeFeedFailed',
13721
- 'feedJobRefineStarted',
13721
+ 'feedJobEnrichStarted',
13722
13722
  'jobScraped',
13723
- 'feedJobRefineFailed',
13724
- 'feedJobChunkRefineStarted',
13725
- 'feedJobChunkRefineCompleted',
13726
- 'feedJobChunkRefineFailed',
13723
+ 'feedJobEnrichFailed',
13724
+ 'feedJobChunkEnrichStarted',
13725
+ 'feedJobChunkEnrichCompleted',
13726
+ 'feedJobChunkEnrichFailed',
13727
13727
  'scrapeJobsCompleted',
13728
13728
  'scraperAccountError',
13729
13729
  ]);
@@ -13850,7 +13850,7 @@ const scrapeFeedFailedEventMetadata = objectType({
13850
13850
  errorCode: stringType(),
13851
13851
  errorStack: stringType(),
13852
13852
  });
13853
- const feedJobRefineStartedEventMetadata = objectType({
13853
+ const feedJobEnrichStartedEventMetadata = objectType({
13854
13854
  listing: jobListingSchema,
13855
13855
  region: regionSchema,
13856
13856
  accountId: stringType(),
@@ -13861,7 +13861,7 @@ const jobScrapedEventMetadata = objectType({
13861
13861
  region: regionSchema,
13862
13862
  duration: stringType(),
13863
13863
  });
13864
- const feedJobRefineFailedEventMetadata = objectType({
13864
+ const feedJobEnrichFailedEventMetadata = objectType({
13865
13865
  listing: jobListingSchema,
13866
13866
  region: regionSchema,
13867
13867
  accountId: stringType(),
@@ -13870,22 +13870,22 @@ const feedJobRefineFailedEventMetadata = objectType({
13870
13870
  errorCode: stringType(),
13871
13871
  errorStack: stringType(),
13872
13872
  });
13873
- const feedJobChunkRefineStartedEventMetadata = objectType({
13873
+ const feedJobChunkEnrichStartedEventMetadata = objectType({
13874
13874
  region: regionSchema,
13875
13875
  accountIds: arrayType(stringType()),
13876
13876
  accountEmails: arrayType(stringType()),
13877
13877
  jobListingsCount: numberType(),
13878
13878
  });
13879
- const feedJobChunkRefineCompletedEventMetadata = objectType({
13879
+ const feedJobChunkEnrichCompletedEventMetadata = objectType({
13880
13880
  region: regionSchema,
13881
13881
  feedScraperAccountId: stringType(),
13882
13882
  feedScraperAccountEmail: stringType(),
13883
13883
  uniqueJobsFound: numberType(),
13884
13884
  duration: stringType(),
13885
- refineFeedJobSuccessCount: numberType(),
13886
- refineFeedJobFailCount: numberType(),
13885
+ enrichFeedJobSuccessCount: numberType(),
13886
+ enrichFeedJobFailCount: numberType(),
13887
13887
  });
13888
- const feedJobChunkRefineFailedEventMetadata = objectType({
13888
+ const feedJobChunkEnrichFailedEventMetadata = objectType({
13889
13889
  region: regionSchema,
13890
13890
  accountId: stringType(),
13891
13891
  accountEmail: stringType(),
@@ -14053,14 +14053,14 @@ class ParseJobListingsException extends Error {
14053
14053
  const parseJobListingsException = (message) => {
14054
14054
  return new ParseJobListingsException(message);
14055
14055
  };
14056
- class FeedJobRefineException extends Error {
14057
- code = 'FEED_JOB_REFINE_FAILED';
14056
+ class FeedJobEnrichException extends Error {
14057
+ code = 'FEED_JOB_ENRICH_FAILED';
14058
14058
  constructor(jobListing) {
14059
14059
  super(`Failed to scrape job details for ${JSON.stringify(jobListing)}.`);
14060
14060
  }
14061
14061
  }
14062
- const feedJobRefineFailedException = (jobListing) => {
14063
- return new FeedJobRefineException(jobListing);
14062
+ const feedJobEnrichFailedException = (jobListing) => {
14063
+ return new FeedJobEnrichException(jobListing);
14064
14064
  };
14065
14065
  class ScraperAccountProxyNotFoundException extends Error {
14066
14066
  scraperAccountId;
@@ -14138,24 +14138,24 @@ const userSchema = objectType({
14138
14138
  organizationIds: z.array(stringType()),
14139
14139
  createdAt: numberType(),
14140
14140
  updatedAt: numberType(),
14141
- role: z.enum(["admin", "user"]).optional(),
14141
+ role: z.enum(['admin', 'user']).optional(),
14142
14142
  });
14143
14143
  const loginSchema = objectType({
14144
14144
  email: stringType().email(),
14145
14145
  password: passwordSchema,
14146
14146
  });
14147
14147
  const registerSchema = objectType({
14148
- name: stringType().min(1, "First name is required").max(255),
14148
+ name: stringType().min(1, 'First name is required').max(255),
14149
14149
  email: stringType()
14150
- .email("Must be a valid email address")
14150
+ .email('Must be a valid email address')
14151
14151
  .max(255)
14152
- .min(1, "Email address is required"),
14153
- teamName: stringType().min(1, "Team name is required").max(255),
14152
+ .min(1, 'Email address is required'),
14153
+ teamName: stringType().min(1, 'Team name is required').max(255),
14154
14154
  password: passwordSchema,
14155
14155
  confirmPassword: passwordSchema,
14156
14156
  }).refine(({ password, confirmPassword }) => password === confirmPassword, {
14157
14157
  message: `Passwords don't match.`,
14158
- path: ["confirmPassword"],
14158
+ path: ['confirmPassword'],
14159
14159
  });
14160
14160
  const forgotPasswordSchema = objectType({
14161
14161
  email: stringType().email(),
@@ -14622,7 +14622,7 @@ exports.EvaluateElementException = EvaluateElementException;
14622
14622
  exports.EvaluateFunctionException = EvaluateFunctionException;
14623
14623
  exports.FEED_JOB_TO_JOB_DETAILS_FIELD_MAPPING = FEED_JOB_TO_JOB_DETAILS_FIELD_MAPPING;
14624
14624
  exports.FailedToParseNuxtJobException = FailedToParseNuxtJobException;
14625
- exports.FeedJobRefineException = FeedJobRefineException;
14625
+ exports.FeedJobEnrichException = FeedJobEnrichException;
14626
14626
  exports.FeedScrapeException = FeedScrapeException;
14627
14627
  exports.GetMultiloginBrowserException = GetMultiloginBrowserException;
14628
14628
  exports.GoToUrlException = GoToUrlException;
@@ -14743,12 +14743,12 @@ exports.eventLoggerPayloadSchema = eventLoggerPayloadSchema;
14743
14743
  exports.experienceLevelEnum = experienceLevelEnum;
14744
14744
  exports.externalProxySchema = externalProxySchema;
14745
14745
  exports.failedToParseNuxtJobException = failedToParseNuxtJobException;
14746
- exports.feedJobChunkRefineCompletedEventMetadata = feedJobChunkRefineCompletedEventMetadata;
14747
- exports.feedJobChunkRefineFailedEventMetadata = feedJobChunkRefineFailedEventMetadata;
14748
- exports.feedJobChunkRefineStartedEventMetadata = feedJobChunkRefineStartedEventMetadata;
14749
- exports.feedJobRefineFailedEventMetadata = feedJobRefineFailedEventMetadata;
14750
- exports.feedJobRefineFailedException = feedJobRefineFailedException;
14751
- exports.feedJobRefineStartedEventMetadata = feedJobRefineStartedEventMetadata;
14746
+ exports.feedJobChunkEnrichCompletedEventMetadata = feedJobChunkEnrichCompletedEventMetadata;
14747
+ exports.feedJobChunkEnrichFailedEventMetadata = feedJobChunkEnrichFailedEventMetadata;
14748
+ exports.feedJobChunkEnrichStartedEventMetadata = feedJobChunkEnrichStartedEventMetadata;
14749
+ exports.feedJobEnrichFailedEventMetadata = feedJobEnrichFailedEventMetadata;
14750
+ exports.feedJobEnrichFailedException = feedJobEnrichFailedException;
14751
+ exports.feedJobEnrichStartedEventMetadata = feedJobEnrichStartedEventMetadata;
14752
14752
  exports.feedJobSchema = feedJobSchema;
14753
14753
  exports.feedScrapeException = feedScrapeException;
14754
14754
  exports.filterOptionItemSchema = filterOptionItemSchema;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
- export declare const LogEventTypeEnum: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "scrapeFeedStarted", "scrapeFeedCompleted", "scrapeFeedFailed", "feedJobRefineStarted", "jobScraped", "feedJobRefineFailed", "feedJobChunkRefineStarted", "feedJobChunkRefineCompleted", "feedJobChunkRefineFailed", "scrapeJobsCompleted", "scraperAccountError"]>;
2
+ export declare const LogEventTypeEnum: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "scrapeFeedStarted", "scrapeFeedCompleted", "scrapeFeedFailed", "feedJobEnrichStarted", "jobScraped", "feedJobEnrichFailed", "feedJobChunkEnrichStarted", "feedJobChunkEnrichCompleted", "feedJobChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError"]>;
3
3
  export declare const logEventSchema: z.ZodObject<{
4
- type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "scrapeFeedStarted", "scrapeFeedCompleted", "scrapeFeedFailed", "feedJobRefineStarted", "jobScraped", "feedJobRefineFailed", "feedJobChunkRefineStarted", "feedJobChunkRefineCompleted", "feedJobChunkRefineFailed", "scrapeJobsCompleted", "scraperAccountError"]>;
4
+ type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "scrapeFeedStarted", "scrapeFeedCompleted", "scrapeFeedFailed", "feedJobEnrichStarted", "jobScraped", "feedJobEnrichFailed", "feedJobChunkEnrichStarted", "feedJobChunkEnrichCompleted", "feedJobChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError"]>;
5
5
  source: z.ZodString;
6
6
  resourceType: z.ZodDefault<z.ZodString>;
7
7
  resourceId: z.ZodNullable<z.ZodString>;
@@ -13,7 +13,7 @@ export declare const logEventSchema: z.ZodObject<{
13
13
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
14
  timestamp: z.ZodNumber;
15
15
  }, "strip", z.ZodTypeAny, {
16
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "scrapeFeedStarted" | "scrapeFeedCompleted" | "scrapeFeedFailed" | "feedJobRefineStarted" | "jobScraped" | "feedJobRefineFailed" | "feedJobChunkRefineStarted" | "feedJobChunkRefineCompleted" | "feedJobChunkRefineFailed" | "scrapeJobsCompleted" | "scraperAccountError";
16
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "scrapeFeedStarted" | "scrapeFeedCompleted" | "scrapeFeedFailed" | "feedJobEnrichStarted" | "jobScraped" | "feedJobEnrichFailed" | "feedJobChunkEnrichStarted" | "feedJobChunkEnrichCompleted" | "feedJobChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError";
17
17
  source: string;
18
18
  resourceType: string;
19
19
  resourceId: string | null;
@@ -25,7 +25,7 @@ export declare const logEventSchema: z.ZodObject<{
25
25
  metadata: Record<string, unknown> | null;
26
26
  timestamp: number;
27
27
  }, {
28
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "scrapeFeedStarted" | "scrapeFeedCompleted" | "scrapeFeedFailed" | "feedJobRefineStarted" | "jobScraped" | "feedJobRefineFailed" | "feedJobChunkRefineStarted" | "feedJobChunkRefineCompleted" | "feedJobChunkRefineFailed" | "scrapeJobsCompleted" | "scraperAccountError";
28
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "scrapeFeedStarted" | "scrapeFeedCompleted" | "scrapeFeedFailed" | "feedJobEnrichStarted" | "jobScraped" | "feedJobEnrichFailed" | "feedJobChunkEnrichStarted" | "feedJobChunkEnrichCompleted" | "feedJobChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError";
29
29
  source: string;
30
30
  resourceId: string | null;
31
31
  organizationId: string | null;
@@ -340,7 +340,7 @@ export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
340
340
  }>;
341
341
  export type ProposalCompleteEventMetadata = z.infer<typeof proposalCompleteEventMetadataSchema>;
342
342
  export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
343
- type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "scrapeFeedStarted", "scrapeFeedCompleted", "scrapeFeedFailed", "feedJobRefineStarted", "jobScraped", "feedJobRefineFailed", "feedJobChunkRefineStarted", "feedJobChunkRefineCompleted", "feedJobChunkRefineFailed", "scrapeJobsCompleted", "scraperAccountError"]>;
343
+ type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "scrapeFeedStarted", "scrapeFeedCompleted", "scrapeFeedFailed", "feedJobEnrichStarted", "jobScraped", "feedJobEnrichFailed", "feedJobChunkEnrichStarted", "feedJobChunkEnrichCompleted", "feedJobChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError"]>;
344
344
  source: z.ZodString;
345
345
  resourceType: z.ZodDefault<z.ZodString>;
346
346
  resourceId: z.ZodNullable<z.ZodString>;
@@ -352,7 +352,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
352
352
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
353
353
  timestamp: z.ZodNumber;
354
354
  }, "strip", z.ZodTypeAny, {
355
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "scrapeFeedStarted" | "scrapeFeedCompleted" | "scrapeFeedFailed" | "feedJobRefineStarted" | "jobScraped" | "feedJobRefineFailed" | "feedJobChunkRefineStarted" | "feedJobChunkRefineCompleted" | "feedJobChunkRefineFailed" | "scrapeJobsCompleted" | "scraperAccountError";
355
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "scrapeFeedStarted" | "scrapeFeedCompleted" | "scrapeFeedFailed" | "feedJobEnrichStarted" | "jobScraped" | "feedJobEnrichFailed" | "feedJobChunkEnrichStarted" | "feedJobChunkEnrichCompleted" | "feedJobChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError";
356
356
  source: string;
357
357
  resourceType: string;
358
358
  resourceId: string | null;
@@ -364,7 +364,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
364
364
  metadata: Record<string, unknown> | null;
365
365
  timestamp: number;
366
366
  }, {
367
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "scrapeFeedStarted" | "scrapeFeedCompleted" | "scrapeFeedFailed" | "feedJobRefineStarted" | "jobScraped" | "feedJobRefineFailed" | "feedJobChunkRefineStarted" | "feedJobChunkRefineCompleted" | "feedJobChunkRefineFailed" | "scrapeJobsCompleted" | "scraperAccountError";
367
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "scrapeFeedStarted" | "scrapeFeedCompleted" | "scrapeFeedFailed" | "feedJobEnrichStarted" | "jobScraped" | "feedJobEnrichFailed" | "feedJobChunkEnrichStarted" | "feedJobChunkEnrichCompleted" | "feedJobChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError";
368
368
  source: string;
369
369
  resourceId: string | null;
370
370
  organizationId: string | null;
@@ -376,7 +376,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
376
376
  timestamp: number;
377
377
  resourceType?: string | undefined;
378
378
  }>, z.ZodArray<z.ZodObject<{
379
- type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "scrapeFeedStarted", "scrapeFeedCompleted", "scrapeFeedFailed", "feedJobRefineStarted", "jobScraped", "feedJobRefineFailed", "feedJobChunkRefineStarted", "feedJobChunkRefineCompleted", "feedJobChunkRefineFailed", "scrapeJobsCompleted", "scraperAccountError"]>;
379
+ type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "scrapeFeedStarted", "scrapeFeedCompleted", "scrapeFeedFailed", "feedJobEnrichStarted", "jobScraped", "feedJobEnrichFailed", "feedJobChunkEnrichStarted", "feedJobChunkEnrichCompleted", "feedJobChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError"]>;
380
380
  source: z.ZodString;
381
381
  resourceType: z.ZodDefault<z.ZodString>;
382
382
  resourceId: z.ZodNullable<z.ZodString>;
@@ -388,7 +388,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
388
388
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
389
389
  timestamp: z.ZodNumber;
390
390
  }, "strip", z.ZodTypeAny, {
391
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "scrapeFeedStarted" | "scrapeFeedCompleted" | "scrapeFeedFailed" | "feedJobRefineStarted" | "jobScraped" | "feedJobRefineFailed" | "feedJobChunkRefineStarted" | "feedJobChunkRefineCompleted" | "feedJobChunkRefineFailed" | "scrapeJobsCompleted" | "scraperAccountError";
391
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "scrapeFeedStarted" | "scrapeFeedCompleted" | "scrapeFeedFailed" | "feedJobEnrichStarted" | "jobScraped" | "feedJobEnrichFailed" | "feedJobChunkEnrichStarted" | "feedJobChunkEnrichCompleted" | "feedJobChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError";
392
392
  source: string;
393
393
  resourceType: string;
394
394
  resourceId: string | null;
@@ -400,7 +400,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
400
400
  metadata: Record<string, unknown> | null;
401
401
  timestamp: number;
402
402
  }, {
403
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "scrapeFeedStarted" | "scrapeFeedCompleted" | "scrapeFeedFailed" | "feedJobRefineStarted" | "jobScraped" | "feedJobRefineFailed" | "feedJobChunkRefineStarted" | "feedJobChunkRefineCompleted" | "feedJobChunkRefineFailed" | "scrapeJobsCompleted" | "scraperAccountError";
403
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "scrapeFeedStarted" | "scrapeFeedCompleted" | "scrapeFeedFailed" | "feedJobEnrichStarted" | "jobScraped" | "feedJobEnrichFailed" | "feedJobChunkEnrichStarted" | "feedJobChunkEnrichCompleted" | "feedJobChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError";
404
404
  source: string;
405
405
  resourceId: string | null;
406
406
  organizationId: string | null;
@@ -53,7 +53,7 @@ export declare const scrapeFeedFailedEventMetadata: z.ZodObject<{
53
53
  errorCode: string;
54
54
  errorStack: string;
55
55
  }>;
56
- export declare const feedJobRefineStartedEventMetadata: z.ZodObject<{
56
+ export declare const feedJobEnrichStartedEventMetadata: z.ZodObject<{
57
57
  listing: z.ZodObject<{
58
58
  uid: z.ZodString;
59
59
  ciphertext: z.ZodString;
@@ -1128,7 +1128,7 @@ export declare const jobScrapedEventMetadata: z.ZodObject<{
1128
1128
  } | null | undefined;
1129
1129
  };
1130
1130
  }>;
1131
- export declare const feedJobRefineFailedEventMetadata: z.ZodObject<{
1131
+ export declare const feedJobEnrichFailedEventMetadata: z.ZodObject<{
1132
1132
  listing: z.ZodObject<{
1133
1133
  uid: z.ZodString;
1134
1134
  ciphertext: z.ZodString;
@@ -1458,7 +1458,7 @@ export declare const feedJobRefineFailedEventMetadata: z.ZodObject<{
1458
1458
  clientRelation?: any;
1459
1459
  };
1460
1460
  }>;
1461
- export declare const feedJobChunkRefineStartedEventMetadata: z.ZodObject<{
1461
+ export declare const feedJobChunkEnrichStartedEventMetadata: z.ZodObject<{
1462
1462
  region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
1463
1463
  accountIds: z.ZodArray<z.ZodString, "many">;
1464
1464
  accountEmails: z.ZodArray<z.ZodString, "many">;
@@ -1474,32 +1474,32 @@ export declare const feedJobChunkRefineStartedEventMetadata: z.ZodObject<{
1474
1474
  accountEmails: string[];
1475
1475
  jobListingsCount: number;
1476
1476
  }>;
1477
- export declare const feedJobChunkRefineCompletedEventMetadata: z.ZodObject<{
1477
+ export declare const feedJobChunkEnrichCompletedEventMetadata: z.ZodObject<{
1478
1478
  region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
1479
1479
  feedScraperAccountId: z.ZodString;
1480
1480
  feedScraperAccountEmail: z.ZodString;
1481
1481
  uniqueJobsFound: z.ZodNumber;
1482
1482
  duration: z.ZodString;
1483
- refineFeedJobSuccessCount: z.ZodNumber;
1484
- refineFeedJobFailCount: z.ZodNumber;
1483
+ enrichFeedJobSuccessCount: z.ZodNumber;
1484
+ enrichFeedJobFailCount: z.ZodNumber;
1485
1485
  }, "strip", z.ZodTypeAny, {
1486
1486
  region: "USOnly" | "UKOnly" | "Worldwide";
1487
1487
  duration: string;
1488
1488
  feedScraperAccountId: string;
1489
1489
  feedScraperAccountEmail: string;
1490
1490
  uniqueJobsFound: number;
1491
- refineFeedJobSuccessCount: number;
1492
- refineFeedJobFailCount: number;
1491
+ enrichFeedJobSuccessCount: number;
1492
+ enrichFeedJobFailCount: number;
1493
1493
  }, {
1494
1494
  region: "USOnly" | "UKOnly" | "Worldwide";
1495
1495
  duration: string;
1496
1496
  feedScraperAccountId: string;
1497
1497
  feedScraperAccountEmail: string;
1498
1498
  uniqueJobsFound: number;
1499
- refineFeedJobSuccessCount: number;
1500
- refineFeedJobFailCount: number;
1499
+ enrichFeedJobSuccessCount: number;
1500
+ enrichFeedJobFailCount: number;
1501
1501
  }>;
1502
- export declare const feedJobChunkRefineFailedEventMetadata: z.ZodObject<{
1502
+ export declare const feedJobChunkEnrichFailedEventMetadata: z.ZodObject<{
1503
1503
  region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
1504
1504
  accountId: z.ZodString;
1505
1505
  accountEmail: z.ZodString;
@@ -1965,17 +1965,17 @@ export interface ScrapeFeedCompletedEventMetadata extends z.infer<typeof scrapeF
1965
1965
  }
1966
1966
  export interface ScrapeFeedFailedEventMetadata extends z.infer<typeof scrapeFeedFailedEventMetadata> {
1967
1967
  }
1968
- export interface FeedJobRefineStartedEventMetadata extends z.infer<typeof feedJobRefineStartedEventMetadata> {
1968
+ export interface FeedJobEnrichStartedEventMetadata extends z.infer<typeof feedJobEnrichStartedEventMetadata> {
1969
1969
  }
1970
1970
  export interface JobScrapedEventMetadata extends z.infer<typeof jobScrapedEventMetadata> {
1971
1971
  }
1972
- export interface FeedJobRefineFailedEventMetadata extends z.infer<typeof feedJobRefineFailedEventMetadata> {
1972
+ export interface FeedJobEnrichFailedEventMetadata extends z.infer<typeof feedJobEnrichFailedEventMetadata> {
1973
1973
  }
1974
- export interface FeedJobChunkRefineStartedEventMetadata extends z.infer<typeof feedJobChunkRefineStartedEventMetadata> {
1974
+ export interface FeedJobChunkEnrichStartedEventMetadata extends z.infer<typeof feedJobChunkEnrichStartedEventMetadata> {
1975
1975
  }
1976
- export interface FeedJobChunkRefineCompletedEventMetadata extends z.infer<typeof feedJobChunkRefineCompletedEventMetadata> {
1976
+ export interface FeedJobChunkEnrichCompletedEventMetadata extends z.infer<typeof feedJobChunkEnrichCompletedEventMetadata> {
1977
1977
  }
1978
- export interface FeedJobChunkRefineFailedEventMetadata extends z.infer<typeof feedJobChunkRefineFailedEventMetadata> {
1978
+ export interface FeedJobChunkEnrichFailedEventMetadata extends z.infer<typeof feedJobChunkEnrichFailedEventMetadata> {
1979
1979
  }
1980
1980
  export interface ScrapeJobsCompletedEventMetadata extends z.infer<typeof scrapeJobsCompletedEventMetadata> {
1981
1981
  }
@@ -19,11 +19,11 @@ export declare class ParseJobListingsException extends Error {
19
19
  constructor(message?: string);
20
20
  }
21
21
  export declare const parseJobListingsException: (message?: string) => ParseJobListingsException;
22
- export declare class FeedJobRefineException extends Error {
23
- readonly code = "FEED_JOB_REFINE_FAILED";
22
+ export declare class FeedJobEnrichException extends Error {
23
+ readonly code = "FEED_JOB_ENRICH_FAILED";
24
24
  constructor(jobListing: JobListing);
25
25
  }
26
- export declare const feedJobRefineFailedException: (jobListing: JobListing) => FeedJobRefineException;
26
+ export declare const feedJobEnrichFailedException: (jobListing: JobListing) => FeedJobEnrichException;
27
27
  export declare class ScraperAccountProxyNotFoundException extends Error {
28
28
  readonly scraperAccountId: string;
29
29
  readonly proxyId: string;
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from 'zod';
2
2
  export declare const booleanSchema: z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"true">, z.ZodLiteral<"false">]>, boolean, boolean | "true" | "false">;
3
3
  export declare const dateSchema: (params?: {
4
4
  invalid_type_error?: string;
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
- import { Organization } from "../organization";
1
+ import { z } from 'zod';
2
+ import { Organization } from '../organization';
3
3
  export declare const userSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  name: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.147",
3
+ "version": "1.2.148",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",