lancer-shared 1.2.145 → 1.2.147
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.
- package/dist/bundle.cjs.js +29 -29
- package/dist/schemas/campaign/campaign-analytics.d.ts +8 -0
- package/dist/schemas/campaign/campaign.d.ts +3 -2
- package/dist/schemas/logger/log-event.d.ts +10 -10
- package/dist/schemas/logger/scraper-events.d.ts +17 -17
- package/dist/schemas/scraper/exceptions.d.ts +3 -3
- package/dist/schemas/scraper/scrape-payload.d.ts +5 -0
- package/package.json +2 -2
package/dist/bundle.cjs.js
CHANGED
|
@@ -12959,7 +12959,7 @@ const campaignStatusSchema = z.union([
|
|
|
12959
12959
|
z.literal('paused'),
|
|
12960
12960
|
z.literal('error'),
|
|
12961
12961
|
]);
|
|
12962
|
-
const
|
|
12962
|
+
const biddingHourlyRateStrategyEnum = z.enum([
|
|
12963
12963
|
'match_job_budget',
|
|
12964
12964
|
'match_profile_rate',
|
|
12965
12965
|
'fixed_rate',
|
|
@@ -12980,7 +12980,7 @@ const campaignSchema = z.object({
|
|
|
12980
12980
|
// suitabilityThreshold: z.number().min(0).max(100).nullable().default(0),
|
|
12981
12981
|
boostingThreshold: z.number().min(0).max(100).nullable().default(0),
|
|
12982
12982
|
biddingDelayInMinutes: z.number().default(5),
|
|
12983
|
-
biddingHourlyRateStrategy:
|
|
12983
|
+
biddingHourlyRateStrategy: biddingHourlyRateStrategyEnum,
|
|
12984
12984
|
biddingFixedHourlyRate: z.number().nullable(),
|
|
12985
12985
|
bidWithWarning: bidWithWarningEnum,
|
|
12986
12986
|
leadCounts: z.record(leadStatusSchema, z.number()).nullable(),
|
|
@@ -13256,7 +13256,7 @@ const bidPayloadProposalDataSchema = z.object({
|
|
|
13256
13256
|
questionAnswerPairs: questionAnswerPairSchema.array().nullable(),
|
|
13257
13257
|
boostingEnabled: z.boolean(),
|
|
13258
13258
|
maximumBoost: z.number().nullable(),
|
|
13259
|
-
biddingHourlyRateStrategy:
|
|
13259
|
+
biddingHourlyRateStrategy: biddingHourlyRateStrategyEnum,
|
|
13260
13260
|
biddingFixedHourlyRate: z.number().nullable(),
|
|
13261
13261
|
isHourlyRate: z.boolean(),
|
|
13262
13262
|
jobMaxHourlyRate: z.number().nullable(),
|
|
@@ -13718,12 +13718,12 @@ const LogEventTypeEnum = z.enum([
|
|
|
13718
13718
|
'scrapeFeedStarted',
|
|
13719
13719
|
'scrapeFeedCompleted',
|
|
13720
13720
|
'scrapeFeedFailed',
|
|
13721
|
-
'
|
|
13721
|
+
'feedJobRefineStarted',
|
|
13722
13722
|
'jobScraped',
|
|
13723
|
-
'
|
|
13724
|
-
'
|
|
13725
|
-
'
|
|
13726
|
-
'
|
|
13723
|
+
'feedJobRefineFailed',
|
|
13724
|
+
'feedJobChunkRefineStarted',
|
|
13725
|
+
'feedJobChunkRefineCompleted',
|
|
13726
|
+
'feedJobChunkRefineFailed',
|
|
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
|
|
13853
|
+
const feedJobRefineStartedEventMetadata = 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
|
|
13864
|
+
const feedJobRefineFailedEventMetadata = objectType({
|
|
13865
13865
|
listing: jobListingSchema,
|
|
13866
13866
|
region: regionSchema,
|
|
13867
13867
|
accountId: stringType(),
|
|
@@ -13870,22 +13870,22 @@ const scrapeJobDetailsFailedEventMetadata = objectType({
|
|
|
13870
13870
|
errorCode: stringType(),
|
|
13871
13871
|
errorStack: stringType(),
|
|
13872
13872
|
});
|
|
13873
|
-
const
|
|
13873
|
+
const feedJobChunkRefineStartedEventMetadata = objectType({
|
|
13874
13874
|
region: regionSchema,
|
|
13875
13875
|
accountIds: arrayType(stringType()),
|
|
13876
13876
|
accountEmails: arrayType(stringType()),
|
|
13877
13877
|
jobListingsCount: numberType(),
|
|
13878
13878
|
});
|
|
13879
|
-
const
|
|
13879
|
+
const feedJobChunkRefineCompletedEventMetadata = objectType({
|
|
13880
13880
|
region: regionSchema,
|
|
13881
13881
|
feedScraperAccountId: stringType(),
|
|
13882
13882
|
feedScraperAccountEmail: stringType(),
|
|
13883
13883
|
uniqueJobsFound: numberType(),
|
|
13884
13884
|
duration: stringType(),
|
|
13885
|
-
|
|
13886
|
-
|
|
13885
|
+
refineFeedJobSuccessCount: numberType(),
|
|
13886
|
+
refineFeedJobFailCount: numberType(),
|
|
13887
13887
|
});
|
|
13888
|
-
const
|
|
13888
|
+
const feedJobChunkRefineFailedEventMetadata = objectType({
|
|
13889
13889
|
region: regionSchema,
|
|
13890
13890
|
accountId: stringType(),
|
|
13891
13891
|
accountEmail: stringType(),
|
|
@@ -14053,20 +14053,20 @@ class ParseJobListingsException extends Error {
|
|
|
14053
14053
|
const parseJobListingsException = (message) => {
|
|
14054
14054
|
return new ParseJobListingsException(message);
|
|
14055
14055
|
};
|
|
14056
|
-
class
|
|
14057
|
-
code = '
|
|
14056
|
+
class FeedJobRefineException extends Error {
|
|
14057
|
+
code = 'FEED_JOB_REFINE_FAILED';
|
|
14058
14058
|
constructor(jobListing) {
|
|
14059
14059
|
super(`Failed to scrape job details for ${JSON.stringify(jobListing)}.`);
|
|
14060
14060
|
}
|
|
14061
14061
|
}
|
|
14062
|
-
const
|
|
14063
|
-
return new
|
|
14062
|
+
const feedJobRefineFailedException = (jobListing) => {
|
|
14063
|
+
return new FeedJobRefineException(jobListing);
|
|
14064
14064
|
};
|
|
14065
14065
|
class ScraperAccountProxyNotFoundException extends Error {
|
|
14066
14066
|
scraperAccountId;
|
|
14067
14067
|
proxyId;
|
|
14068
|
-
code =
|
|
14069
|
-
constructor(scraperAccountId, proxyId, message =
|
|
14068
|
+
code = 'SCRAPER_ACCOUNT_PROXY_NOT_FOUND';
|
|
14069
|
+
constructor(scraperAccountId, proxyId, message = 'Scraper account proxy not found.') {
|
|
14070
14070
|
super(message);
|
|
14071
14071
|
this.scraperAccountId = scraperAccountId;
|
|
14072
14072
|
this.proxyId = proxyId;
|
|
@@ -14622,6 +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
14626
|
exports.FeedScrapeException = FeedScrapeException;
|
|
14626
14627
|
exports.GetMultiloginBrowserException = GetMultiloginBrowserException;
|
|
14627
14628
|
exports.GoToUrlException = GoToUrlException;
|
|
@@ -14652,7 +14653,6 @@ exports.ProposalSubmitFailedException = ProposalSubmitFailedException;
|
|
|
14652
14653
|
exports.PuppeteerConnectionErrorException = PuppeteerConnectionErrorException;
|
|
14653
14654
|
exports.QuestionPairNotMatchingException = QuestionPairNotMatchingException;
|
|
14654
14655
|
exports.ROUTES = ROUTES;
|
|
14655
|
-
exports.ScrapeJobDetailsException = ScrapeJobDetailsException;
|
|
14656
14656
|
exports.ScraperAccountProxyNotFoundException = ScraperAccountProxyNotFoundException;
|
|
14657
14657
|
exports.SelectAgencyException = SelectAgencyException;
|
|
14658
14658
|
exports.SelectContractorException = SelectContractorException;
|
|
@@ -14690,7 +14690,7 @@ exports.bidderInstanceSchema = bidderInstanceSchema;
|
|
|
14690
14690
|
exports.bidderInstanceStatusEnum = bidderInstanceStatusEnum;
|
|
14691
14691
|
exports.biddingCompletedEventMetadata = biddingCompletedEventMetadata;
|
|
14692
14692
|
exports.biddingFailedEventMetadata = biddingFailedEventMetadata;
|
|
14693
|
-
exports.
|
|
14693
|
+
exports.biddingHourlyRateStrategyEnum = biddingHourlyRateStrategyEnum;
|
|
14694
14694
|
exports.biddingRejectedWithFeedbackEventMetadata = biddingRejectedWithFeedbackEventMetadata;
|
|
14695
14695
|
exports.booleanSchema = booleanSchema;
|
|
14696
14696
|
exports.buildRoute = buildRoute;
|
|
@@ -14743,6 +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
14752
|
exports.feedJobSchema = feedJobSchema;
|
|
14747
14753
|
exports.feedScrapeException = feedScrapeException;
|
|
14748
14754
|
exports.filterOptionItemSchema = filterOptionItemSchema;
|
|
@@ -14873,14 +14879,8 @@ exports.scrapeFeedFailedEventMetadata = scrapeFeedFailedEventMetadata;
|
|
|
14873
14879
|
exports.scrapeFeedResultSchema = scrapeFeedResultSchema;
|
|
14874
14880
|
exports.scrapeFeedStartedEventMetadata = scrapeFeedStartedEventMetadata;
|
|
14875
14881
|
exports.scrapeJobActivityPayloadSchema = scrapeJobActivityPayloadSchema;
|
|
14876
|
-
exports.scrapeJobDetailsException = scrapeJobDetailsException;
|
|
14877
|
-
exports.scrapeJobDetailsFailedEventMetadata = scrapeJobDetailsFailedEventMetadata;
|
|
14878
|
-
exports.scrapeJobDetailsStartedEventMetadata = scrapeJobDetailsStartedEventMetadata;
|
|
14879
14882
|
exports.scrapeJobPayloadSchema = scrapeJobPayloadSchema;
|
|
14880
14883
|
exports.scrapeJobsCompletedEventMetadata = scrapeJobsCompletedEventMetadata;
|
|
14881
|
-
exports.scrapeJobsDetailsCompletedEventMetadata = scrapeJobsDetailsCompletedEventMetadata;
|
|
14882
|
-
exports.scrapeJobsDetailsFailedEventMetadata = scrapeJobsDetailsFailedEventMetadata;
|
|
14883
|
-
exports.scrapeJobsDetailsStartedEventMetadata = scrapeJobsDetailsStartedEventMetadata;
|
|
14884
14884
|
exports.scrapePayloadSchema = scrapePayloadSchema;
|
|
14885
14885
|
exports.scrapeResultSchema = scrapeResultSchema;
|
|
14886
14886
|
exports.scrapeUserProfileRequestSchema = scrapeUserProfileRequestSchema;
|
|
@@ -611,6 +611,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
611
611
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
612
612
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
613
613
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
614
|
+
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
614
615
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
615
616
|
expenses: z.ZodObject<{
|
|
616
617
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1161,6 +1162,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1161
1162
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
1162
1163
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
1163
1164
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
1165
|
+
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
1164
1166
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
1165
1167
|
expenses: z.ZodObject<{
|
|
1166
1168
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2062,6 +2064,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2062
2064
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
2063
2065
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
2064
2066
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
2067
|
+
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
2065
2068
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
2066
2069
|
expenses: z.ZodObject<{
|
|
2067
2070
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2963,6 +2966,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2963
2966
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
2964
2967
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
2965
2968
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
2969
|
+
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
2966
2970
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
2967
2971
|
expenses: z.ZodObject<{
|
|
2968
2972
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3861,6 +3865,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3861
3865
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
3862
3866
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
3863
3867
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
3868
|
+
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
3864
3869
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
3865
3870
|
expenses: z.ZodObject<{
|
|
3866
3871
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -4410,6 +4415,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4410
4415
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
4411
4416
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
4412
4417
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
4418
|
+
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
4413
4419
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
4414
4420
|
expenses: z.ZodObject<{
|
|
4415
4421
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -5310,6 +5316,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5310
5316
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
5311
5317
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
5312
5318
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
5319
|
+
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
5313
5320
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
5314
5321
|
expenses: z.ZodObject<{
|
|
5315
5322
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -6210,6 +6217,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6210
6217
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
6211
6218
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
6212
6219
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
6220
|
+
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
6213
6221
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
6214
6222
|
expenses: z.ZodObject<{
|
|
6215
6223
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -18,7 +18,7 @@ export declare const bidConfigSchema: z.ZodObject<{
|
|
|
18
18
|
specialisedProfile: string | null;
|
|
19
19
|
}>;
|
|
20
20
|
export declare const campaignStatusSchema: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>;
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const biddingHourlyRateStrategyEnum: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
22
22
|
export declare const bidWithWarningEnum: z.ZodEnum<["bid", "skip"]>;
|
|
23
23
|
export declare const campaignSchema: z.ZodObject<{
|
|
24
24
|
id: z.ZodString;
|
|
@@ -1428,7 +1428,9 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1428
1428
|
instructions: string;
|
|
1429
1429
|
} | null | undefined;
|
|
1430
1430
|
}>;
|
|
1431
|
+
export type BiddingHourlyRateStrategy = z.infer<typeof biddingHourlyRateStrategyEnum>;
|
|
1431
1432
|
export interface Campaign extends z.infer<typeof campaignSchema> {
|
|
1433
|
+
biddingHourlyRateStrategy: BiddingHourlyRateStrategy;
|
|
1432
1434
|
}
|
|
1433
1435
|
export type CampaignStatus = z.infer<typeof campaignStatusSchema>;
|
|
1434
1436
|
export interface CreateCampaign extends z.infer<typeof createCampaignSchema> {
|
|
@@ -1441,4 +1443,3 @@ export interface UpdateCampaign extends z.infer<typeof updateCampaignSchema> {
|
|
|
1441
1443
|
}
|
|
1442
1444
|
export interface BidConfig extends infer<typeof bidConfigSchema> {
|
|
1443
1445
|
}
|
|
1444
|
-
export type BiddingHourlyRateStrategy = z.infer<typeof biddingHourlyRateStrategy>;
|
|
@@ -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", "
|
|
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"]>;
|
|
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", "
|
|
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"]>;
|
|
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" | "
|
|
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";
|
|
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" | "
|
|
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";
|
|
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", "
|
|
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"]>;
|
|
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" | "
|
|
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";
|
|
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" | "
|
|
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";
|
|
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", "
|
|
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"]>;
|
|
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" | "
|
|
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";
|
|
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" | "
|
|
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";
|
|
404
404
|
source: string;
|
|
405
405
|
resourceId: string | null;
|
|
406
406
|
organizationId: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const scrapeFeedStartedEventMetadata: z.ZodObject<{
|
|
3
3
|
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
4
4
|
accountId: z.ZodString;
|
|
@@ -53,7 +53,7 @@ export declare const scrapeFeedFailedEventMetadata: z.ZodObject<{
|
|
|
53
53
|
errorCode: string;
|
|
54
54
|
errorStack: string;
|
|
55
55
|
}>;
|
|
56
|
-
export declare const
|
|
56
|
+
export declare const feedJobRefineStartedEventMetadata: 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
|
|
1131
|
+
export declare const feedJobRefineFailedEventMetadata: z.ZodObject<{
|
|
1132
1132
|
listing: z.ZodObject<{
|
|
1133
1133
|
uid: z.ZodString;
|
|
1134
1134
|
ciphertext: z.ZodString;
|
|
@@ -1458,7 +1458,7 @@ export declare const scrapeJobDetailsFailedEventMetadata: z.ZodObject<{
|
|
|
1458
1458
|
clientRelation?: any;
|
|
1459
1459
|
};
|
|
1460
1460
|
}>;
|
|
1461
|
-
export declare const
|
|
1461
|
+
export declare const feedJobChunkRefineStartedEventMetadata: 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 scrapeJobsDetailsStartedEventMetadata: z.ZodObject<{
|
|
|
1474
1474
|
accountEmails: string[];
|
|
1475
1475
|
jobListingsCount: number;
|
|
1476
1476
|
}>;
|
|
1477
|
-
export declare const
|
|
1477
|
+
export declare const feedJobChunkRefineCompletedEventMetadata: 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
|
-
|
|
1484
|
-
|
|
1483
|
+
refineFeedJobSuccessCount: z.ZodNumber;
|
|
1484
|
+
refineFeedJobFailCount: 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
|
-
|
|
1492
|
-
|
|
1491
|
+
refineFeedJobSuccessCount: number;
|
|
1492
|
+
refineFeedJobFailCount: 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
|
-
|
|
1500
|
-
|
|
1499
|
+
refineFeedJobSuccessCount: number;
|
|
1500
|
+
refineFeedJobFailCount: number;
|
|
1501
1501
|
}>;
|
|
1502
|
-
export declare const
|
|
1502
|
+
export declare const feedJobChunkRefineFailedEventMetadata: 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
|
|
1968
|
+
export interface FeedJobRefineStartedEventMetadata extends z.infer<typeof feedJobRefineStartedEventMetadata> {
|
|
1969
1969
|
}
|
|
1970
1970
|
export interface JobScrapedEventMetadata extends z.infer<typeof jobScrapedEventMetadata> {
|
|
1971
1971
|
}
|
|
1972
|
-
export interface
|
|
1972
|
+
export interface FeedJobRefineFailedEventMetadata extends z.infer<typeof feedJobRefineFailedEventMetadata> {
|
|
1973
1973
|
}
|
|
1974
|
-
export interface
|
|
1974
|
+
export interface FeedJobChunkRefineStartedEventMetadata extends z.infer<typeof feedJobChunkRefineStartedEventMetadata> {
|
|
1975
1975
|
}
|
|
1976
|
-
export interface
|
|
1976
|
+
export interface FeedJobChunkRefineCompletedEventMetadata extends z.infer<typeof feedJobChunkRefineCompletedEventMetadata> {
|
|
1977
1977
|
}
|
|
1978
|
-
export interface
|
|
1978
|
+
export interface FeedJobChunkRefineFailedEventMetadata extends z.infer<typeof feedJobChunkRefineFailedEventMetadata> {
|
|
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
|
|
23
|
-
readonly code = "
|
|
22
|
+
export declare class FeedJobRefineException extends Error {
|
|
23
|
+
readonly code = "FEED_JOB_REFINE_FAILED";
|
|
24
24
|
constructor(jobListing: JobListing);
|
|
25
25
|
}
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const feedJobRefineFailedException: (jobListing: JobListing) => FeedJobRefineException;
|
|
27
27
|
export declare class ScraperAccountProxyNotFoundException extends Error {
|
|
28
28
|
readonly scraperAccountId: string;
|
|
29
29
|
readonly proxyId: string;
|
|
@@ -660,6 +660,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
660
660
|
biddingDelayInMinutes: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
661
661
|
biddingHourlyRateStrategy: import("zod").ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
662
662
|
biddingFixedHourlyRate: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
663
|
+
bidWithWarning: import("zod").ZodEnum<["bid", "skip"]>;
|
|
663
664
|
leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, import("zod").ZodNumber>>;
|
|
664
665
|
expenses: import("zod").ZodObject<{
|
|
665
666
|
biddingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
@@ -777,6 +778,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
777
778
|
biddingDelayInMinutes: number;
|
|
778
779
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
779
780
|
biddingFixedHourlyRate: number | null;
|
|
781
|
+
bidWithWarning: "bid" | "skip";
|
|
780
782
|
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
|
|
781
783
|
expenses: {
|
|
782
784
|
biddingAmount: number;
|
|
@@ -860,6 +862,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
860
862
|
monthlyBudget: number | null;
|
|
861
863
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
862
864
|
biddingFixedHourlyRate: number | null;
|
|
865
|
+
bidWithWarning: "bid" | "skip";
|
|
863
866
|
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
|
|
864
867
|
expenses: {
|
|
865
868
|
biddingAmount?: number | undefined;
|
|
@@ -1962,6 +1965,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1962
1965
|
biddingDelayInMinutes: number;
|
|
1963
1966
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1964
1967
|
biddingFixedHourlyRate: number | null;
|
|
1968
|
+
bidWithWarning: "bid" | "skip";
|
|
1965
1969
|
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
|
|
1966
1970
|
expenses: {
|
|
1967
1971
|
biddingAmount: number;
|
|
@@ -2268,6 +2272,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
2268
2272
|
monthlyBudget: number | null;
|
|
2269
2273
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2270
2274
|
biddingFixedHourlyRate: number | null;
|
|
2275
|
+
bidWithWarning: "bid" | "skip";
|
|
2271
2276
|
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
|
|
2272
2277
|
expenses: {
|
|
2273
2278
|
biddingAmount?: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lancer-shared",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.147",
|
|
4
4
|
"description": "This package contains shared stuff.",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "dist/bundle.cjs.js",
|
|
@@ -40,4 +40,4 @@
|
|
|
40
40
|
"rollup-watch": "4.3.1",
|
|
41
41
|
"typescript": "5.4.5"
|
|
42
42
|
}
|
|
43
|
-
}
|
|
43
|
+
}
|