lancer-shared 1.2.103 → 1.2.105
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 +99 -49
- package/dist/schemas/campaign/campaign-analytics.d.ts +200 -40
- package/dist/schemas/logger/log-event.d.ts +11 -52
- package/dist/schemas/scraper/exceptions.d.ts +15 -0
- package/dist/schemas/scraper/index.d.ts +1 -0
- package/dist/utils/shared.d.ts +2 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -12438,57 +12438,57 @@ const proposalSchema = z.object({
|
|
|
12438
12438
|
|
|
12439
12439
|
const LogEventTypeEnum = z.enum([
|
|
12440
12440
|
// Scraper Events
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
|
|
12451
|
-
|
|
12441
|
+
"scraperStarted",
|
|
12442
|
+
"scraperCompleted",
|
|
12443
|
+
"jobScraped",
|
|
12444
|
+
"jobScrapeFailed",
|
|
12445
|
+
"jobsIndexed",
|
|
12446
|
+
"jobDuplicateSkipped",
|
|
12447
|
+
"scraperFailed",
|
|
12448
|
+
"jobActivityScraped",
|
|
12449
|
+
"jobActivityScrapeFailed",
|
|
12450
|
+
"leadStatusCheckFailed",
|
|
12451
|
+
"leadStatusUpdated",
|
|
12452
12452
|
// Feed Scraper Events
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12453
|
+
"feedScrapeStarted",
|
|
12454
|
+
"feedScrapeCompleted",
|
|
12455
|
+
"feedScrapeFailed",
|
|
12456
|
+
"jobListingScraped",
|
|
12457
12457
|
// Job Sync & Campaign Matching
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
|
|
12458
|
+
"jobSyncPublished",
|
|
12459
|
+
"jobSyncReceived",
|
|
12460
|
+
"leadsCreatedAndSynced",
|
|
12461
12461
|
// Suitability Events
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
|
|
12465
|
-
|
|
12466
|
-
|
|
12462
|
+
"suitabilityPending",
|
|
12463
|
+
"suitabilityProcessing",
|
|
12464
|
+
"suitabilityComplete",
|
|
12465
|
+
"suitabilityFailed",
|
|
12466
|
+
"manualSuitabilityAnalyzed",
|
|
12467
12467
|
// Proposal Events
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12468
|
+
"proposalProcessing",
|
|
12469
|
+
"proposalComplete",
|
|
12470
|
+
"proposalFailed",
|
|
12471
|
+
"manualProposalGenerated",
|
|
12472
12472
|
// Bidding Events
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
'acceptInvitationFailed',
|
|
12473
|
+
"biddingProcessing",
|
|
12474
|
+
"biddingComplete",
|
|
12475
|
+
"biddingFailed",
|
|
12476
|
+
"biddingSkipped",
|
|
12477
|
+
"biddingPending",
|
|
12478
|
+
"biddingRetry",
|
|
12479
|
+
"biddingInsufficientConnects",
|
|
12480
|
+
"biddingWarningAlert",
|
|
12481
|
+
"biddingRejected",
|
|
12482
|
+
"biddingRejectedWithFeedback",
|
|
12483
|
+
"checkSuitableLeadFeedbackStatus",
|
|
12484
|
+
"biddingApproved",
|
|
12486
12485
|
// System/Generic Events
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12486
|
+
"errorLogged",
|
|
12487
|
+
"cloudTaskRetry",
|
|
12488
|
+
"manualLeadEdited",
|
|
12489
|
+
"leadArchived",
|
|
12490
|
+
"auditTrailLogged",
|
|
12491
|
+
// Lead Events
|
|
12492
12492
|
]);
|
|
12493
12493
|
const logEventSchema = z.object({
|
|
12494
12494
|
// The type of event (use a z.enum if possible)
|
|
@@ -12496,7 +12496,7 @@ const logEventSchema = z.object({
|
|
|
12496
12496
|
// The service that triggered the event
|
|
12497
12497
|
source: z.string(), // e.g. "lancer-agents", "lancer-bidding"
|
|
12498
12498
|
// Optional: Allow logging non-lead events in the future
|
|
12499
|
-
resourceType: z.string().default(
|
|
12499
|
+
resourceType: z.string().default("lead"), // e.g. "lead", "campaign", "user"
|
|
12500
12500
|
// ID of the resource (primary entity affected)
|
|
12501
12501
|
resourceId: z.string().nullable(), // fallback if leadId is not applicable
|
|
12502
12502
|
// Lead-level metadata
|
|
@@ -12535,8 +12535,6 @@ const feedScrapeCompletedEventMetadata = objectType({
|
|
|
12535
12535
|
id: stringType(),
|
|
12536
12536
|
endTime: numberType(),
|
|
12537
12537
|
region: regionSchema,
|
|
12538
|
-
accountUsername: stringType(),
|
|
12539
|
-
listings: arrayType(jobListingSchema),
|
|
12540
12538
|
});
|
|
12541
12539
|
const biddingCompletedEventMetadata = objectType({
|
|
12542
12540
|
biddingAmount: numberType(),
|
|
@@ -12547,7 +12545,7 @@ const biddingFailedEventMetadata = objectType({
|
|
|
12547
12545
|
error: z.any(),
|
|
12548
12546
|
});
|
|
12549
12547
|
const userAccountBiddingExceptionEventMetadata = objectType({
|
|
12550
|
-
errorType: z.enum([
|
|
12548
|
+
errorType: z.enum(["insufficientConnects", "proposalFormWarningAlert"]),
|
|
12551
12549
|
context: z.string().optional(),
|
|
12552
12550
|
});
|
|
12553
12551
|
const lancerBiddingExceptionEventMetadata = objectType({
|
|
@@ -13248,6 +13246,34 @@ const upworkProfileSchema = objectType({
|
|
|
13248
13246
|
portfolio: arrayType(portfolioSchema).nullable(),
|
|
13249
13247
|
});
|
|
13250
13248
|
|
|
13249
|
+
class NoScraperAccountAvailableException extends Error {
|
|
13250
|
+
code = "NO_SCRAPER_ACCOUNT_AVAILABLE";
|
|
13251
|
+
constructor(message = "No scraper account available.") {
|
|
13252
|
+
super(message);
|
|
13253
|
+
}
|
|
13254
|
+
}
|
|
13255
|
+
const noScraperAccountAvailableException = (message) => {
|
|
13256
|
+
return new NoScraperAccountAvailableException(message);
|
|
13257
|
+
};
|
|
13258
|
+
class OpenPageException extends Error {
|
|
13259
|
+
code = "OPEN_PAGE_FAILED";
|
|
13260
|
+
constructor(message = "Failed to open page.") {
|
|
13261
|
+
super(message);
|
|
13262
|
+
}
|
|
13263
|
+
}
|
|
13264
|
+
const openPageException = (message) => {
|
|
13265
|
+
return new OpenPageException(message);
|
|
13266
|
+
};
|
|
13267
|
+
class FeedScrapeException extends Error {
|
|
13268
|
+
code = "FEED_SCRAPE_FAILED";
|
|
13269
|
+
constructor(message = "Feed scrape failed.") {
|
|
13270
|
+
super(message);
|
|
13271
|
+
}
|
|
13272
|
+
}
|
|
13273
|
+
const feedScrapeException = (message) => {
|
|
13274
|
+
return new FeedScrapeException(message);
|
|
13275
|
+
};
|
|
13276
|
+
|
|
13251
13277
|
const systemPromptSchema = objectType({
|
|
13252
13278
|
suitability: stringType(),
|
|
13253
13279
|
proposal: stringType(),
|
|
@@ -13721,6 +13747,22 @@ const capitalize = (str) => {
|
|
|
13721
13747
|
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
13722
13748
|
};
|
|
13723
13749
|
const generateSlug = (name) => slugify(name, { lower: true, trim: true, replacement: "-" });
|
|
13750
|
+
const stringify = (object, space = 4) => {
|
|
13751
|
+
const getCircularReplacer = () => {
|
|
13752
|
+
const seen = new WeakSet();
|
|
13753
|
+
return (key, value) => {
|
|
13754
|
+
if (typeof value === "object" && value !== null) {
|
|
13755
|
+
if (seen.has(value)) {
|
|
13756
|
+
return;
|
|
13757
|
+
}
|
|
13758
|
+
seen.add(value);
|
|
13759
|
+
}
|
|
13760
|
+
return value;
|
|
13761
|
+
};
|
|
13762
|
+
};
|
|
13763
|
+
return JSON.stringify(object, getCircularReplacer(), space);
|
|
13764
|
+
};
|
|
13765
|
+
const pluralize = (val, quantity) => `${val}${quantity === 1 ? "" : "s"}`;
|
|
13724
13766
|
|
|
13725
13767
|
exports.BidderAccountAlreadyConnectedException = BidderAccountAlreadyConnectedException;
|
|
13726
13768
|
exports.CAMPAIGN_NOTIFICATION_SETTINGS = CAMPAIGN_NOTIFICATION_SETTINGS;
|
|
@@ -13731,6 +13773,7 @@ exports.DropdownOptionNotPresentException = DropdownOptionNotPresentException;
|
|
|
13731
13773
|
exports.ElementNotClickableException = ElementNotClickableException;
|
|
13732
13774
|
exports.EvaluateElementException = EvaluateElementException;
|
|
13733
13775
|
exports.EvaluateFunctionException = EvaluateFunctionException;
|
|
13776
|
+
exports.FeedScrapeException = FeedScrapeException;
|
|
13734
13777
|
exports.GetMultiloginBrowserException = GetMultiloginBrowserException;
|
|
13735
13778
|
exports.GoToUrlException = GoToUrlException;
|
|
13736
13779
|
exports.IncorrectSecurityQuestionAnswerException = IncorrectSecurityQuestionAnswerException;
|
|
@@ -13748,6 +13791,8 @@ exports.NewBrowserPageException = NewBrowserPageException;
|
|
|
13748
13791
|
exports.NewPageException = NewPageException;
|
|
13749
13792
|
exports.NoBidderAccountsAvailableException = NoBidderAccountsAvailableException;
|
|
13750
13793
|
exports.NoGoogleOAuthTokensFoundException = NoGoogleOAuthTokensFoundException;
|
|
13794
|
+
exports.NoScraperAccountAvailableException = NoScraperAccountAvailableException;
|
|
13795
|
+
exports.OpenPageException = OpenPageException;
|
|
13751
13796
|
exports.ParseConnectsException = ParseConnectsException;
|
|
13752
13797
|
exports.ProposalErrorAlertException = ProposalErrorAlertException;
|
|
13753
13798
|
exports.ProposalFormWarningAlertException = ProposalFormWarningAlertException;
|
|
@@ -13838,6 +13883,7 @@ exports.eventLoggerPayloadSchema = eventLoggerPayloadSchema;
|
|
|
13838
13883
|
exports.experienceLevelEnum = experienceLevelEnum;
|
|
13839
13884
|
exports.externalProxySchema = externalProxySchema;
|
|
13840
13885
|
exports.feedScrapeCompletedEventMetadata = feedScrapeCompletedEventMetadata;
|
|
13886
|
+
exports.feedScrapeException = feedScrapeException;
|
|
13841
13887
|
exports.feedScrapeStartedEventMetadata = feedScrapeStartedEventMetadata;
|
|
13842
13888
|
exports.filterOptionItemSchema = filterOptionItemSchema;
|
|
13843
13889
|
exports.filterOptionsResponseSchema = filterOptionsResponseSchema;
|
|
@@ -13903,9 +13949,11 @@ exports.newBrowserPageException = newBrowserPageException;
|
|
|
13903
13949
|
exports.newPageException = newPageException;
|
|
13904
13950
|
exports.noBidderAccountsAvailableException = noBidderAccountsAvailableException;
|
|
13905
13951
|
exports.noGoogleOAuthTokensFoundException = noGoogleOAuthTokensFoundException;
|
|
13952
|
+
exports.noScraperAccountAvailableException = noScraperAccountAvailableException;
|
|
13906
13953
|
exports.notificationConfigSchema = notificationConfigSchema;
|
|
13907
13954
|
exports.nuxtStateJobSchema = nuxtStateJobSchema;
|
|
13908
13955
|
exports.onboardingProgressSchema = onboardingProgressSchema;
|
|
13956
|
+
exports.openPageException = openPageException;
|
|
13909
13957
|
exports.organizationCampaignStatsSchema = organizationCampaignStatsSchema;
|
|
13910
13958
|
exports.organizationMemberRoleEnum = organizationMemberRoleEnum;
|
|
13911
13959
|
exports.organizationMemberSchema = organizationMemberSchema;
|
|
@@ -13921,6 +13969,7 @@ exports.periodUsageSchema = periodUsageSchema;
|
|
|
13921
13969
|
exports.planFeatureSchema = planFeatureSchema;
|
|
13922
13970
|
exports.planSchema = planSchema;
|
|
13923
13971
|
exports.planStripeMetadataSchema = planStripeMetadataSchema;
|
|
13972
|
+
exports.pluralize = pluralize;
|
|
13924
13973
|
exports.portfolioSchema = portfolioSchema;
|
|
13925
13974
|
exports.processFeedPayloadSchema = processFeedPayloadSchema;
|
|
13926
13975
|
exports.projectDurationEnum = projectDurationEnum;
|
|
@@ -13960,6 +14009,7 @@ exports.selectContractorException = selectContractorException;
|
|
|
13960
14009
|
exports.selectorNotFoundError = selectorNotFoundError;
|
|
13961
14010
|
exports.sendAlertPayloadSchema = sendAlertPayloadSchema;
|
|
13962
14011
|
exports.sendNotificationRequestSchema = sendNotificationRequestSchema;
|
|
14012
|
+
exports.stringify = stringify;
|
|
13963
14013
|
exports.subscribePayloadSchema = subscribePayloadSchema;
|
|
13964
14014
|
exports.subscriptionSchema = subscriptionSchema;
|
|
13965
14015
|
exports.subscriptionSourceEnum = subscriptionSourceEnum;
|
|
@@ -317,6 +317,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
317
317
|
savedCard: boolean;
|
|
318
318
|
}>>;
|
|
319
319
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
320
|
+
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
320
321
|
createdAt: z.ZodNumber;
|
|
321
322
|
updatedAt: z.ZodNumber;
|
|
322
323
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
@@ -376,11 +377,11 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
376
377
|
projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
|
|
377
378
|
experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
|
|
378
379
|
questions: z.ZodNullable<z.ZodObject<{
|
|
379
|
-
hasQuestions: z.
|
|
380
|
+
hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
|
|
380
381
|
}, "strip", z.ZodTypeAny, {
|
|
381
|
-
hasQuestions: "all" | "yes" | "no";
|
|
382
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
382
383
|
}, {
|
|
383
|
-
hasQuestions
|
|
384
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
384
385
|
}>>;
|
|
385
386
|
engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
|
|
386
387
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
@@ -478,7 +479,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
478
479
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
479
480
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
480
481
|
questions: {
|
|
481
|
-
hasQuestions: "all" | "yes" | "no";
|
|
482
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
482
483
|
} | null;
|
|
483
484
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
484
485
|
clientInfo: {
|
|
@@ -528,7 +529,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
528
529
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
529
530
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
530
531
|
questions: {
|
|
531
|
-
hasQuestions
|
|
532
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
532
533
|
} | null;
|
|
533
534
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
534
535
|
clientInfo: {
|
|
@@ -599,6 +600,25 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
599
600
|
}>>;
|
|
600
601
|
coverLetterTemplateId: z.ZodNullable<z.ZodString>;
|
|
601
602
|
priority: z.ZodNullable<z.ZodNumber>;
|
|
603
|
+
coverLetterTemplate: z.ZodNullable<z.ZodObject<{
|
|
604
|
+
id: z.ZodString;
|
|
605
|
+
name: z.ZodString;
|
|
606
|
+
description: z.ZodNullable<z.ZodString>;
|
|
607
|
+
template: z.ZodString;
|
|
608
|
+
instructions: z.ZodString;
|
|
609
|
+
}, "strip", z.ZodTypeAny, {
|
|
610
|
+
id: string;
|
|
611
|
+
name: string;
|
|
612
|
+
description: string | null;
|
|
613
|
+
template: string;
|
|
614
|
+
instructions: string;
|
|
615
|
+
}, {
|
|
616
|
+
id: string;
|
|
617
|
+
name: string;
|
|
618
|
+
description: string | null;
|
|
619
|
+
template: string;
|
|
620
|
+
instructions: string;
|
|
621
|
+
}>>;
|
|
602
622
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
603
623
|
id: string;
|
|
604
624
|
name: string;
|
|
@@ -802,6 +822,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
802
822
|
savedCard: boolean;
|
|
803
823
|
}>>;
|
|
804
824
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
825
|
+
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
805
826
|
createdAt: z.ZodNumber;
|
|
806
827
|
updatedAt: z.ZodNumber;
|
|
807
828
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
@@ -861,11 +882,11 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
861
882
|
projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
|
|
862
883
|
experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
|
|
863
884
|
questions: z.ZodNullable<z.ZodObject<{
|
|
864
|
-
hasQuestions: z.
|
|
885
|
+
hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
|
|
865
886
|
}, "strip", z.ZodTypeAny, {
|
|
866
|
-
hasQuestions: "all" | "yes" | "no";
|
|
887
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
867
888
|
}, {
|
|
868
|
-
hasQuestions
|
|
889
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
869
890
|
}>>;
|
|
870
891
|
engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
|
|
871
892
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
@@ -963,7 +984,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
963
984
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
964
985
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
965
986
|
questions: {
|
|
966
|
-
hasQuestions: "all" | "yes" | "no";
|
|
987
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
967
988
|
} | null;
|
|
968
989
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
969
990
|
clientInfo: {
|
|
@@ -1013,7 +1034,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1013
1034
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
1014
1035
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
1015
1036
|
questions: {
|
|
1016
|
-
hasQuestions
|
|
1037
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
1017
1038
|
} | null;
|
|
1018
1039
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
1019
1040
|
clientInfo: {
|
|
@@ -1084,6 +1105,25 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1084
1105
|
}>>;
|
|
1085
1106
|
coverLetterTemplateId: z.ZodNullable<z.ZodString>;
|
|
1086
1107
|
priority: z.ZodNullable<z.ZodNumber>;
|
|
1108
|
+
coverLetterTemplate: z.ZodNullable<z.ZodObject<{
|
|
1109
|
+
id: z.ZodString;
|
|
1110
|
+
name: z.ZodString;
|
|
1111
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1112
|
+
template: z.ZodString;
|
|
1113
|
+
instructions: z.ZodString;
|
|
1114
|
+
}, "strip", z.ZodTypeAny, {
|
|
1115
|
+
id: string;
|
|
1116
|
+
name: string;
|
|
1117
|
+
description: string | null;
|
|
1118
|
+
template: string;
|
|
1119
|
+
instructions: string;
|
|
1120
|
+
}, {
|
|
1121
|
+
id: string;
|
|
1122
|
+
name: string;
|
|
1123
|
+
description: string | null;
|
|
1124
|
+
template: string;
|
|
1125
|
+
instructions: string;
|
|
1126
|
+
}>>;
|
|
1087
1127
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
1088
1128
|
id: string;
|
|
1089
1129
|
name: string;
|
|
@@ -1638,6 +1678,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1638
1678
|
savedCard: boolean;
|
|
1639
1679
|
}>>;
|
|
1640
1680
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
1681
|
+
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
1641
1682
|
createdAt: z.ZodNumber;
|
|
1642
1683
|
updatedAt: z.ZodNumber;
|
|
1643
1684
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
@@ -1697,11 +1738,11 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1697
1738
|
projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
|
|
1698
1739
|
experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
|
|
1699
1740
|
questions: z.ZodNullable<z.ZodObject<{
|
|
1700
|
-
hasQuestions: z.
|
|
1741
|
+
hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
|
|
1701
1742
|
}, "strip", z.ZodTypeAny, {
|
|
1702
|
-
hasQuestions: "all" | "yes" | "no";
|
|
1743
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
1703
1744
|
}, {
|
|
1704
|
-
hasQuestions
|
|
1745
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
1705
1746
|
}>>;
|
|
1706
1747
|
engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
|
|
1707
1748
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
@@ -1799,7 +1840,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1799
1840
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
1800
1841
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
1801
1842
|
questions: {
|
|
1802
|
-
hasQuestions: "all" | "yes" | "no";
|
|
1843
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
1803
1844
|
} | null;
|
|
1804
1845
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
1805
1846
|
clientInfo: {
|
|
@@ -1849,7 +1890,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1849
1890
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
1850
1891
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
1851
1892
|
questions: {
|
|
1852
|
-
hasQuestions
|
|
1893
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
1853
1894
|
} | null;
|
|
1854
1895
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
1855
1896
|
clientInfo: {
|
|
@@ -1920,6 +1961,25 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1920
1961
|
}>>;
|
|
1921
1962
|
coverLetterTemplateId: z.ZodNullable<z.ZodString>;
|
|
1922
1963
|
priority: z.ZodNullable<z.ZodNumber>;
|
|
1964
|
+
coverLetterTemplate: z.ZodNullable<z.ZodObject<{
|
|
1965
|
+
id: z.ZodString;
|
|
1966
|
+
name: z.ZodString;
|
|
1967
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1968
|
+
template: z.ZodString;
|
|
1969
|
+
instructions: z.ZodString;
|
|
1970
|
+
}, "strip", z.ZodTypeAny, {
|
|
1971
|
+
id: string;
|
|
1972
|
+
name: string;
|
|
1973
|
+
description: string | null;
|
|
1974
|
+
template: string;
|
|
1975
|
+
instructions: string;
|
|
1976
|
+
}, {
|
|
1977
|
+
id: string;
|
|
1978
|
+
name: string;
|
|
1979
|
+
description: string | null;
|
|
1980
|
+
template: string;
|
|
1981
|
+
instructions: string;
|
|
1982
|
+
}>>;
|
|
1923
1983
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
1924
1984
|
id: string;
|
|
1925
1985
|
name: string;
|
|
@@ -2474,6 +2534,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2474
2534
|
savedCard: boolean;
|
|
2475
2535
|
}>>;
|
|
2476
2536
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
2537
|
+
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
2477
2538
|
createdAt: z.ZodNumber;
|
|
2478
2539
|
updatedAt: z.ZodNumber;
|
|
2479
2540
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
@@ -2533,11 +2594,11 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2533
2594
|
projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
|
|
2534
2595
|
experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
|
|
2535
2596
|
questions: z.ZodNullable<z.ZodObject<{
|
|
2536
|
-
hasQuestions: z.
|
|
2597
|
+
hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
|
|
2537
2598
|
}, "strip", z.ZodTypeAny, {
|
|
2538
|
-
hasQuestions: "all" | "yes" | "no";
|
|
2599
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
2539
2600
|
}, {
|
|
2540
|
-
hasQuestions
|
|
2601
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
2541
2602
|
}>>;
|
|
2542
2603
|
engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
|
|
2543
2604
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
@@ -2635,7 +2696,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2635
2696
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
2636
2697
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
2637
2698
|
questions: {
|
|
2638
|
-
hasQuestions: "all" | "yes" | "no";
|
|
2699
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
2639
2700
|
} | null;
|
|
2640
2701
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
2641
2702
|
clientInfo: {
|
|
@@ -2685,7 +2746,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2685
2746
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
2686
2747
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
2687
2748
|
questions: {
|
|
2688
|
-
hasQuestions
|
|
2749
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
2689
2750
|
} | null;
|
|
2690
2751
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
2691
2752
|
clientInfo: {
|
|
@@ -2756,6 +2817,25 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2756
2817
|
}>>;
|
|
2757
2818
|
coverLetterTemplateId: z.ZodNullable<z.ZodString>;
|
|
2758
2819
|
priority: z.ZodNullable<z.ZodNumber>;
|
|
2820
|
+
coverLetterTemplate: z.ZodNullable<z.ZodObject<{
|
|
2821
|
+
id: z.ZodString;
|
|
2822
|
+
name: z.ZodString;
|
|
2823
|
+
description: z.ZodNullable<z.ZodString>;
|
|
2824
|
+
template: z.ZodString;
|
|
2825
|
+
instructions: z.ZodString;
|
|
2826
|
+
}, "strip", z.ZodTypeAny, {
|
|
2827
|
+
id: string;
|
|
2828
|
+
name: string;
|
|
2829
|
+
description: string | null;
|
|
2830
|
+
template: string;
|
|
2831
|
+
instructions: string;
|
|
2832
|
+
}, {
|
|
2833
|
+
id: string;
|
|
2834
|
+
name: string;
|
|
2835
|
+
description: string | null;
|
|
2836
|
+
template: string;
|
|
2837
|
+
instructions: string;
|
|
2838
|
+
}>>;
|
|
2759
2839
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
2760
2840
|
id: string;
|
|
2761
2841
|
name: string;
|
|
@@ -3307,6 +3387,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3307
3387
|
savedCard: boolean;
|
|
3308
3388
|
}>>;
|
|
3309
3389
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
3390
|
+
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
3310
3391
|
createdAt: z.ZodNumber;
|
|
3311
3392
|
updatedAt: z.ZodNumber;
|
|
3312
3393
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
@@ -3366,11 +3447,11 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3366
3447
|
projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
|
|
3367
3448
|
experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
|
|
3368
3449
|
questions: z.ZodNullable<z.ZodObject<{
|
|
3369
|
-
hasQuestions: z.
|
|
3450
|
+
hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
|
|
3370
3451
|
}, "strip", z.ZodTypeAny, {
|
|
3371
|
-
hasQuestions: "all" | "yes" | "no";
|
|
3452
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
3372
3453
|
}, {
|
|
3373
|
-
hasQuestions
|
|
3454
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
3374
3455
|
}>>;
|
|
3375
3456
|
engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
|
|
3376
3457
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
@@ -3468,7 +3549,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3468
3549
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
3469
3550
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
3470
3551
|
questions: {
|
|
3471
|
-
hasQuestions: "all" | "yes" | "no";
|
|
3552
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
3472
3553
|
} | null;
|
|
3473
3554
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
3474
3555
|
clientInfo: {
|
|
@@ -3518,7 +3599,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3518
3599
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
3519
3600
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
3520
3601
|
questions: {
|
|
3521
|
-
hasQuestions
|
|
3602
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
3522
3603
|
} | null;
|
|
3523
3604
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
3524
3605
|
clientInfo: {
|
|
@@ -3589,6 +3670,25 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3589
3670
|
}>>;
|
|
3590
3671
|
coverLetterTemplateId: z.ZodNullable<z.ZodString>;
|
|
3591
3672
|
priority: z.ZodNullable<z.ZodNumber>;
|
|
3673
|
+
coverLetterTemplate: z.ZodNullable<z.ZodObject<{
|
|
3674
|
+
id: z.ZodString;
|
|
3675
|
+
name: z.ZodString;
|
|
3676
|
+
description: z.ZodNullable<z.ZodString>;
|
|
3677
|
+
template: z.ZodString;
|
|
3678
|
+
instructions: z.ZodString;
|
|
3679
|
+
}, "strip", z.ZodTypeAny, {
|
|
3680
|
+
id: string;
|
|
3681
|
+
name: string;
|
|
3682
|
+
description: string | null;
|
|
3683
|
+
template: string;
|
|
3684
|
+
instructions: string;
|
|
3685
|
+
}, {
|
|
3686
|
+
id: string;
|
|
3687
|
+
name: string;
|
|
3688
|
+
description: string | null;
|
|
3689
|
+
template: string;
|
|
3690
|
+
instructions: string;
|
|
3691
|
+
}>>;
|
|
3592
3692
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
3593
3693
|
id: string;
|
|
3594
3694
|
name: string;
|
|
@@ -3791,6 +3891,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3791
3891
|
savedCard: boolean;
|
|
3792
3892
|
}>>;
|
|
3793
3893
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
3894
|
+
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
3794
3895
|
createdAt: z.ZodNumber;
|
|
3795
3896
|
updatedAt: z.ZodNumber;
|
|
3796
3897
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
@@ -3850,11 +3951,11 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3850
3951
|
projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
|
|
3851
3952
|
experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
|
|
3852
3953
|
questions: z.ZodNullable<z.ZodObject<{
|
|
3853
|
-
hasQuestions: z.
|
|
3954
|
+
hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
|
|
3854
3955
|
}, "strip", z.ZodTypeAny, {
|
|
3855
|
-
hasQuestions: "all" | "yes" | "no";
|
|
3956
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
3856
3957
|
}, {
|
|
3857
|
-
hasQuestions
|
|
3958
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
3858
3959
|
}>>;
|
|
3859
3960
|
engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
|
|
3860
3961
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
@@ -3952,7 +4053,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3952
4053
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
3953
4054
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
3954
4055
|
questions: {
|
|
3955
|
-
hasQuestions: "all" | "yes" | "no";
|
|
4056
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
3956
4057
|
} | null;
|
|
3957
4058
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
3958
4059
|
clientInfo: {
|
|
@@ -4002,7 +4103,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4002
4103
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
4003
4104
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
4004
4105
|
questions: {
|
|
4005
|
-
hasQuestions
|
|
4106
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
4006
4107
|
} | null;
|
|
4007
4108
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
4008
4109
|
clientInfo: {
|
|
@@ -4073,6 +4174,25 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4073
4174
|
}>>;
|
|
4074
4175
|
coverLetterTemplateId: z.ZodNullable<z.ZodString>;
|
|
4075
4176
|
priority: z.ZodNullable<z.ZodNumber>;
|
|
4177
|
+
coverLetterTemplate: z.ZodNullable<z.ZodObject<{
|
|
4178
|
+
id: z.ZodString;
|
|
4179
|
+
name: z.ZodString;
|
|
4180
|
+
description: z.ZodNullable<z.ZodString>;
|
|
4181
|
+
template: z.ZodString;
|
|
4182
|
+
instructions: z.ZodString;
|
|
4183
|
+
}, "strip", z.ZodTypeAny, {
|
|
4184
|
+
id: string;
|
|
4185
|
+
name: string;
|
|
4186
|
+
description: string | null;
|
|
4187
|
+
template: string;
|
|
4188
|
+
instructions: string;
|
|
4189
|
+
}, {
|
|
4190
|
+
id: string;
|
|
4191
|
+
name: string;
|
|
4192
|
+
description: string | null;
|
|
4193
|
+
template: string;
|
|
4194
|
+
instructions: string;
|
|
4195
|
+
}>>;
|
|
4076
4196
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
4077
4197
|
id: string;
|
|
4078
4198
|
name: string;
|
|
@@ -4626,6 +4746,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4626
4746
|
savedCard: boolean;
|
|
4627
4747
|
}>>;
|
|
4628
4748
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
4749
|
+
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
4629
4750
|
createdAt: z.ZodNumber;
|
|
4630
4751
|
updatedAt: z.ZodNumber;
|
|
4631
4752
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
@@ -4685,11 +4806,11 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4685
4806
|
projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
|
|
4686
4807
|
experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
|
|
4687
4808
|
questions: z.ZodNullable<z.ZodObject<{
|
|
4688
|
-
hasQuestions: z.
|
|
4809
|
+
hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
|
|
4689
4810
|
}, "strip", z.ZodTypeAny, {
|
|
4690
|
-
hasQuestions: "all" | "yes" | "no";
|
|
4811
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
4691
4812
|
}, {
|
|
4692
|
-
hasQuestions
|
|
4813
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
4693
4814
|
}>>;
|
|
4694
4815
|
engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
|
|
4695
4816
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
@@ -4787,7 +4908,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4787
4908
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
4788
4909
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
4789
4910
|
questions: {
|
|
4790
|
-
hasQuestions: "all" | "yes" | "no";
|
|
4911
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
4791
4912
|
} | null;
|
|
4792
4913
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
4793
4914
|
clientInfo: {
|
|
@@ -4837,7 +4958,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4837
4958
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
4838
4959
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
4839
4960
|
questions: {
|
|
4840
|
-
hasQuestions
|
|
4961
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
4841
4962
|
} | null;
|
|
4842
4963
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
4843
4964
|
clientInfo: {
|
|
@@ -4908,6 +5029,25 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4908
5029
|
}>>;
|
|
4909
5030
|
coverLetterTemplateId: z.ZodNullable<z.ZodString>;
|
|
4910
5031
|
priority: z.ZodNullable<z.ZodNumber>;
|
|
5032
|
+
coverLetterTemplate: z.ZodNullable<z.ZodObject<{
|
|
5033
|
+
id: z.ZodString;
|
|
5034
|
+
name: z.ZodString;
|
|
5035
|
+
description: z.ZodNullable<z.ZodString>;
|
|
5036
|
+
template: z.ZodString;
|
|
5037
|
+
instructions: z.ZodString;
|
|
5038
|
+
}, "strip", z.ZodTypeAny, {
|
|
5039
|
+
id: string;
|
|
5040
|
+
name: string;
|
|
5041
|
+
description: string | null;
|
|
5042
|
+
template: string;
|
|
5043
|
+
instructions: string;
|
|
5044
|
+
}, {
|
|
5045
|
+
id: string;
|
|
5046
|
+
name: string;
|
|
5047
|
+
description: string | null;
|
|
5048
|
+
template: string;
|
|
5049
|
+
instructions: string;
|
|
5050
|
+
}>>;
|
|
4911
5051
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
4912
5052
|
id: string;
|
|
4913
5053
|
name: string;
|
|
@@ -5461,6 +5601,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5461
5601
|
savedCard: boolean;
|
|
5462
5602
|
}>>;
|
|
5463
5603
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
5604
|
+
nextScheduledBidTime: z.ZodNullable<z.ZodNumber>;
|
|
5464
5605
|
createdAt: z.ZodNumber;
|
|
5465
5606
|
updatedAt: z.ZodNumber;
|
|
5466
5607
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
@@ -5520,11 +5661,11 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5520
5661
|
projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
|
|
5521
5662
|
experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
|
|
5522
5663
|
questions: z.ZodNullable<z.ZodObject<{
|
|
5523
|
-
hasQuestions: z.
|
|
5664
|
+
hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
|
|
5524
5665
|
}, "strip", z.ZodTypeAny, {
|
|
5525
|
-
hasQuestions: "all" | "yes" | "no";
|
|
5666
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
5526
5667
|
}, {
|
|
5527
|
-
hasQuestions
|
|
5668
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
5528
5669
|
}>>;
|
|
5529
5670
|
engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
|
|
5530
5671
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
@@ -5622,7 +5763,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5622
5763
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
5623
5764
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
5624
5765
|
questions: {
|
|
5625
|
-
hasQuestions: "all" | "yes" | "no";
|
|
5766
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
5626
5767
|
} | null;
|
|
5627
5768
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
5628
5769
|
clientInfo: {
|
|
@@ -5672,7 +5813,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5672
5813
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
5673
5814
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
5674
5815
|
questions: {
|
|
5675
|
-
hasQuestions
|
|
5816
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
5676
5817
|
} | null;
|
|
5677
5818
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
5678
5819
|
clientInfo: {
|
|
@@ -5743,6 +5884,25 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5743
5884
|
}>>;
|
|
5744
5885
|
coverLetterTemplateId: z.ZodNullable<z.ZodString>;
|
|
5745
5886
|
priority: z.ZodNullable<z.ZodNumber>;
|
|
5887
|
+
coverLetterTemplate: z.ZodNullable<z.ZodObject<{
|
|
5888
|
+
id: z.ZodString;
|
|
5889
|
+
name: z.ZodString;
|
|
5890
|
+
description: z.ZodNullable<z.ZodString>;
|
|
5891
|
+
template: z.ZodString;
|
|
5892
|
+
instructions: z.ZodString;
|
|
5893
|
+
}, "strip", z.ZodTypeAny, {
|
|
5894
|
+
id: string;
|
|
5895
|
+
name: string;
|
|
5896
|
+
description: string | null;
|
|
5897
|
+
template: string;
|
|
5898
|
+
instructions: string;
|
|
5899
|
+
}, {
|
|
5900
|
+
id: string;
|
|
5901
|
+
name: string;
|
|
5902
|
+
description: string | null;
|
|
5903
|
+
template: string;
|
|
5904
|
+
instructions: string;
|
|
5905
|
+
}>>;
|
|
5746
5906
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
5747
5907
|
id: string;
|
|
5748
5908
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
|
|
3
3
|
export declare const logEventSchema: z.ZodObject<{
|
|
4
|
-
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "
|
|
4
|
+
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
|
|
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: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "
|
|
16
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
|
|
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: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "
|
|
28
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
|
|
29
29
|
source: string;
|
|
30
30
|
resourceId: string | null;
|
|
31
31
|
organizationId: string | null;
|
|
@@ -229,55 +229,14 @@ export declare const feedScrapeCompletedEventMetadata: z.ZodObject<{
|
|
|
229
229
|
id: z.ZodString;
|
|
230
230
|
endTime: z.ZodNumber;
|
|
231
231
|
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
232
|
-
accountUsername: z.ZodString;
|
|
233
|
-
listings: z.ZodArray<z.ZodObject<{
|
|
234
|
-
uid: z.ZodNullable<z.ZodString>;
|
|
235
|
-
title: z.ZodNullable<z.ZodString>;
|
|
236
|
-
jobUrl: z.ZodNullable<z.ZodString>;
|
|
237
|
-
datetime: z.ZodNullable<z.ZodString>;
|
|
238
|
-
isFeatured: z.ZodNullable<z.ZodBoolean>;
|
|
239
|
-
region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
|
|
240
|
-
}, "strip", z.ZodTypeAny, {
|
|
241
|
-
uid: string | null;
|
|
242
|
-
title: string | null;
|
|
243
|
-
jobUrl: string | null;
|
|
244
|
-
datetime: string | null;
|
|
245
|
-
isFeatured: boolean | null;
|
|
246
|
-
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
247
|
-
}, {
|
|
248
|
-
uid: string | null;
|
|
249
|
-
title: string | null;
|
|
250
|
-
jobUrl: string | null;
|
|
251
|
-
datetime: string | null;
|
|
252
|
-
isFeatured: boolean | null;
|
|
253
|
-
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
254
|
-
}>, "many">;
|
|
255
232
|
}, "strip", z.ZodTypeAny, {
|
|
256
233
|
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
257
234
|
id: string;
|
|
258
235
|
endTime: number;
|
|
259
|
-
accountUsername: string;
|
|
260
|
-
listings: {
|
|
261
|
-
uid: string | null;
|
|
262
|
-
title: string | null;
|
|
263
|
-
jobUrl: string | null;
|
|
264
|
-
datetime: string | null;
|
|
265
|
-
isFeatured: boolean | null;
|
|
266
|
-
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
267
|
-
}[];
|
|
268
236
|
}, {
|
|
269
237
|
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
270
238
|
id: string;
|
|
271
239
|
endTime: number;
|
|
272
|
-
accountUsername: string;
|
|
273
|
-
listings: {
|
|
274
|
-
uid: string | null;
|
|
275
|
-
title: string | null;
|
|
276
|
-
jobUrl: string | null;
|
|
277
|
-
datetime: string | null;
|
|
278
|
-
isFeatured: boolean | null;
|
|
279
|
-
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
280
|
-
}[];
|
|
281
240
|
}>;
|
|
282
241
|
export declare const biddingCompletedEventMetadata: z.ZodObject<{
|
|
283
242
|
biddingAmount: z.ZodNumber;
|
|
@@ -587,7 +546,7 @@ export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
|
|
|
587
546
|
}>;
|
|
588
547
|
export type ProposalCompleteEventMetadata = z.infer<typeof proposalCompleteEventMetadataSchema>;
|
|
589
548
|
export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
590
|
-
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "
|
|
549
|
+
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
|
|
591
550
|
source: z.ZodString;
|
|
592
551
|
resourceType: z.ZodDefault<z.ZodString>;
|
|
593
552
|
resourceId: z.ZodNullable<z.ZodString>;
|
|
@@ -599,7 +558,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
599
558
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
600
559
|
timestamp: z.ZodNumber;
|
|
601
560
|
}, "strip", z.ZodTypeAny, {
|
|
602
|
-
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "
|
|
561
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
|
|
603
562
|
source: string;
|
|
604
563
|
resourceType: string;
|
|
605
564
|
resourceId: string | null;
|
|
@@ -611,7 +570,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
611
570
|
metadata: Record<string, unknown> | null;
|
|
612
571
|
timestamp: number;
|
|
613
572
|
}, {
|
|
614
|
-
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "
|
|
573
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
|
|
615
574
|
source: string;
|
|
616
575
|
resourceId: string | null;
|
|
617
576
|
organizationId: string | null;
|
|
@@ -623,7 +582,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
623
582
|
timestamp: number;
|
|
624
583
|
resourceType?: string | undefined;
|
|
625
584
|
}>, z.ZodArray<z.ZodObject<{
|
|
626
|
-
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "
|
|
585
|
+
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
|
|
627
586
|
source: z.ZodString;
|
|
628
587
|
resourceType: z.ZodDefault<z.ZodString>;
|
|
629
588
|
resourceId: z.ZodNullable<z.ZodString>;
|
|
@@ -635,7 +594,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
635
594
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
636
595
|
timestamp: z.ZodNumber;
|
|
637
596
|
}, "strip", z.ZodTypeAny, {
|
|
638
|
-
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "
|
|
597
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
|
|
639
598
|
source: string;
|
|
640
599
|
resourceType: string;
|
|
641
600
|
resourceId: string | null;
|
|
@@ -647,7 +606,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
647
606
|
metadata: Record<string, unknown> | null;
|
|
648
607
|
timestamp: number;
|
|
649
608
|
}, {
|
|
650
|
-
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "
|
|
609
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
|
|
651
610
|
source: string;
|
|
652
611
|
resourceId: string | null;
|
|
653
612
|
organizationId: string | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class NoScraperAccountAvailableException extends Error {
|
|
2
|
+
readonly code = "NO_SCRAPER_ACCOUNT_AVAILABLE";
|
|
3
|
+
constructor(message?: string);
|
|
4
|
+
}
|
|
5
|
+
export declare const noScraperAccountAvailableException: (message?: string) => NoScraperAccountAvailableException;
|
|
6
|
+
export declare class OpenPageException extends Error {
|
|
7
|
+
readonly code = "OPEN_PAGE_FAILED";
|
|
8
|
+
constructor(message?: string);
|
|
9
|
+
}
|
|
10
|
+
export declare const openPageException: (message?: string) => OpenPageException;
|
|
11
|
+
export declare class FeedScrapeException extends Error {
|
|
12
|
+
readonly code = "FEED_SCRAPE_FAILED";
|
|
13
|
+
constructor(message?: string);
|
|
14
|
+
}
|
|
15
|
+
export declare const feedScrapeException: (message?: string) => FeedScrapeException;
|
package/dist/utils/shared.d.ts
CHANGED
|
@@ -2,3 +2,5 @@ export declare const isNumeric: (num: any) => boolean;
|
|
|
2
2
|
export declare const formatCurrency: (price: string | number | null | undefined, currencyCode?: string | null | undefined) => string;
|
|
3
3
|
export declare const capitalize: (str: string) => string;
|
|
4
4
|
export declare const generateSlug: (name: string) => string;
|
|
5
|
+
export declare const stringify: (object: any, space?: number) => string;
|
|
6
|
+
export declare const pluralize: (val: string, quantity: number) => string;
|