lancer-shared 1.2.114 → 1.2.116
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 +43 -1
- package/dist/schemas/logger/log-event.d.ts +116 -16
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -12452,6 +12452,9 @@ const LogEventTypeEnum = z.enum([
|
|
|
12452
12452
|
'scrapeJobStarted',
|
|
12453
12453
|
'jobScraped',
|
|
12454
12454
|
'jobScrapeFailed',
|
|
12455
|
+
'scrapeJobDetailsStarted',
|
|
12456
|
+
'scrapeJobDetailsCompleted',
|
|
12457
|
+
'scrapeJobDetailsFailed',
|
|
12455
12458
|
'jobsIndexed',
|
|
12456
12459
|
'jobDuplicateSkipped',
|
|
12457
12460
|
'scraperFailed',
|
|
@@ -12498,7 +12501,8 @@ const LogEventTypeEnum = z.enum([
|
|
|
12498
12501
|
'manualLeadEdited',
|
|
12499
12502
|
'leadArchived',
|
|
12500
12503
|
'auditTrailLogged',
|
|
12501
|
-
//
|
|
12504
|
+
// Account Events
|
|
12505
|
+
'scraperAccountError',
|
|
12502
12506
|
]);
|
|
12503
12507
|
const logEventSchema = z.object({
|
|
12504
12508
|
// The type of event (use a z.enum if possible)
|
|
@@ -12525,6 +12529,33 @@ const listingScrapedEventMetadata = objectType({
|
|
|
12525
12529
|
listing: feedJobSchema,
|
|
12526
12530
|
region: regionSchema,
|
|
12527
12531
|
});
|
|
12532
|
+
const scrapeFeedEventMetadata = objectType({
|
|
12533
|
+
region: regionSchema,
|
|
12534
|
+
error: stringType(),
|
|
12535
|
+
});
|
|
12536
|
+
const scrapeFeedJobsDetailsStartedEventMetadata = objectType({
|
|
12537
|
+
region: regionSchema,
|
|
12538
|
+
accounts: z.array(z.object({
|
|
12539
|
+
id: stringType(),
|
|
12540
|
+
email: stringType(),
|
|
12541
|
+
})),
|
|
12542
|
+
feedJobsCount: numberType(),
|
|
12543
|
+
chunksSize: numberType(),
|
|
12544
|
+
});
|
|
12545
|
+
const scrapeFeedJobsDetailsCompletedEventMetadata = objectType({
|
|
12546
|
+
region: regionSchema,
|
|
12547
|
+
accountId: stringType(),
|
|
12548
|
+
accountEmail: stringType(),
|
|
12549
|
+
feedJobsCount: numberType(),
|
|
12550
|
+
duration: stringType(),
|
|
12551
|
+
});
|
|
12552
|
+
const scrapeFeedJobsDetailsFailedEventMetadata = objectType({
|
|
12553
|
+
region: regionSchema,
|
|
12554
|
+
accountId: stringType(),
|
|
12555
|
+
accountEmail: stringType(),
|
|
12556
|
+
error: stringType(),
|
|
12557
|
+
duration: stringType(),
|
|
12558
|
+
});
|
|
12528
12559
|
const scrapeJobStartedEventMetadata = objectType({
|
|
12529
12560
|
listing: feedJobSchema,
|
|
12530
12561
|
region: regionSchema,
|
|
@@ -12593,6 +12624,12 @@ const leadStatusEventMetadata = objectType({
|
|
|
12593
12624
|
.optional(),
|
|
12594
12625
|
reason: z.string().optional(),
|
|
12595
12626
|
});
|
|
12627
|
+
const scraperAccountErrorEventMetadata = objectType({
|
|
12628
|
+
accountId: stringType(),
|
|
12629
|
+
accountEmail: stringType(),
|
|
12630
|
+
errorCode: stringType(),
|
|
12631
|
+
errorMessage: stringType(),
|
|
12632
|
+
});
|
|
12596
12633
|
const biddingRejectedWithFeedbackEventMetadata = objectType({
|
|
12597
12634
|
feedback: z.string(),
|
|
12598
12635
|
});
|
|
@@ -14048,6 +14085,10 @@ exports.registerSchema = registerSchema;
|
|
|
14048
14085
|
exports.requiredEarningsEnum = requiredEarningsEnum;
|
|
14049
14086
|
exports.requiredJSSEnum = requiredJSSEnum;
|
|
14050
14087
|
exports.savedSearchSchema = savedSearchSchema;
|
|
14088
|
+
exports.scrapeFeedEventMetadata = scrapeFeedEventMetadata;
|
|
14089
|
+
exports.scrapeFeedJobsDetailsCompletedEventMetadata = scrapeFeedJobsDetailsCompletedEventMetadata;
|
|
14090
|
+
exports.scrapeFeedJobsDetailsFailedEventMetadata = scrapeFeedJobsDetailsFailedEventMetadata;
|
|
14091
|
+
exports.scrapeFeedJobsDetailsStartedEventMetadata = scrapeFeedJobsDetailsStartedEventMetadata;
|
|
14051
14092
|
exports.scrapeFeedResultSchema = scrapeFeedResultSchema;
|
|
14052
14093
|
exports.scrapeJobActivityPayloadSchema = scrapeJobActivityPayloadSchema;
|
|
14053
14094
|
exports.scrapeJobFailedEventMetadata = scrapeJobFailedEventMetadata;
|
|
@@ -14056,6 +14097,7 @@ exports.scrapeJobStartedEventMetadata = scrapeJobStartedEventMetadata;
|
|
|
14056
14097
|
exports.scrapePayloadSchema = scrapePayloadSchema;
|
|
14057
14098
|
exports.scrapeResultSchema = scrapeResultSchema;
|
|
14058
14099
|
exports.scrapeUserProfileRequestSchema = scrapeUserProfileRequestSchema;
|
|
14100
|
+
exports.scraperAccountErrorEventMetadata = scraperAccountErrorEventMetadata;
|
|
14059
14101
|
exports.scraperAccountSchema = scraperAccountSchema;
|
|
14060
14102
|
exports.scraperAccountType = scraperAccountType;
|
|
14061
14103
|
exports.selectAgencyException = selectAgencyException;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "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"]>;
|
|
2
|
+
export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "scrapeJobDetailsStarted", "scrapeJobDetailsCompleted", "scrapeJobDetailsFailed", "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", "scraperAccountError"]>;
|
|
3
3
|
export declare const logEventSchema: z.ZodObject<{
|
|
4
|
-
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "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"]>;
|
|
4
|
+
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "scrapeJobDetailsStarted", "scrapeJobDetailsCompleted", "scrapeJobDetailsFailed", "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", "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: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "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";
|
|
16
|
+
type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "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: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "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";
|
|
28
|
+
type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scraperAccountError";
|
|
29
29
|
source: string;
|
|
30
30
|
resourceId: string | null;
|
|
31
31
|
organizationId: string | null;
|
|
@@ -82,6 +82,85 @@ export declare const listingScrapedEventMetadata: z.ZodObject<{
|
|
|
82
82
|
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
83
83
|
};
|
|
84
84
|
}>;
|
|
85
|
+
export declare const scrapeFeedEventMetadata: z.ZodObject<{
|
|
86
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
87
|
+
error: z.ZodString;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
90
|
+
error: string;
|
|
91
|
+
}, {
|
|
92
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
93
|
+
error: string;
|
|
94
|
+
}>;
|
|
95
|
+
export declare const scrapeFeedJobsDetailsStartedEventMetadata: z.ZodObject<{
|
|
96
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
97
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
email: z.ZodString;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
id: string;
|
|
102
|
+
email: string;
|
|
103
|
+
}, {
|
|
104
|
+
id: string;
|
|
105
|
+
email: string;
|
|
106
|
+
}>, "many">;
|
|
107
|
+
feedJobsCount: z.ZodNumber;
|
|
108
|
+
chunksSize: z.ZodNumber;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
111
|
+
accounts: {
|
|
112
|
+
id: string;
|
|
113
|
+
email: string;
|
|
114
|
+
}[];
|
|
115
|
+
feedJobsCount: number;
|
|
116
|
+
chunksSize: number;
|
|
117
|
+
}, {
|
|
118
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
119
|
+
accounts: {
|
|
120
|
+
id: string;
|
|
121
|
+
email: string;
|
|
122
|
+
}[];
|
|
123
|
+
feedJobsCount: number;
|
|
124
|
+
chunksSize: number;
|
|
125
|
+
}>;
|
|
126
|
+
export declare const scrapeFeedJobsDetailsCompletedEventMetadata: z.ZodObject<{
|
|
127
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
128
|
+
accountId: z.ZodString;
|
|
129
|
+
accountEmail: z.ZodString;
|
|
130
|
+
feedJobsCount: z.ZodNumber;
|
|
131
|
+
duration: z.ZodString;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
134
|
+
feedJobsCount: number;
|
|
135
|
+
accountId: string;
|
|
136
|
+
accountEmail: string;
|
|
137
|
+
duration: string;
|
|
138
|
+
}, {
|
|
139
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
140
|
+
feedJobsCount: number;
|
|
141
|
+
accountId: string;
|
|
142
|
+
accountEmail: string;
|
|
143
|
+
duration: string;
|
|
144
|
+
}>;
|
|
145
|
+
export declare const scrapeFeedJobsDetailsFailedEventMetadata: z.ZodObject<{
|
|
146
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
147
|
+
accountId: z.ZodString;
|
|
148
|
+
accountEmail: z.ZodString;
|
|
149
|
+
error: z.ZodString;
|
|
150
|
+
duration: z.ZodString;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
153
|
+
error: string;
|
|
154
|
+
accountId: string;
|
|
155
|
+
accountEmail: string;
|
|
156
|
+
duration: string;
|
|
157
|
+
}, {
|
|
158
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
159
|
+
error: string;
|
|
160
|
+
accountId: string;
|
|
161
|
+
accountEmail: string;
|
|
162
|
+
duration: string;
|
|
163
|
+
}>;
|
|
85
164
|
export declare const scrapeJobStartedEventMetadata: z.ZodObject<{
|
|
86
165
|
listing: z.ZodObject<{
|
|
87
166
|
uid: z.ZodNullable<z.ZodString>;
|
|
@@ -170,9 +249,9 @@ export declare const scrapeJobFailedEventMetadata: z.ZodObject<{
|
|
|
170
249
|
isFeatured: boolean | null;
|
|
171
250
|
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
172
251
|
};
|
|
252
|
+
error: string;
|
|
173
253
|
accountId: string;
|
|
174
254
|
accountEmail: string;
|
|
175
|
-
error: string;
|
|
176
255
|
}, {
|
|
177
256
|
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
178
257
|
listing: {
|
|
@@ -183,9 +262,9 @@ export declare const scrapeJobFailedEventMetadata: z.ZodObject<{
|
|
|
183
262
|
isFeatured: boolean | null;
|
|
184
263
|
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
185
264
|
};
|
|
265
|
+
error: string;
|
|
186
266
|
accountId: string;
|
|
187
267
|
accountEmail: string;
|
|
188
|
-
error: string;
|
|
189
268
|
}>;
|
|
190
269
|
export declare const jobActivityScrapedEventMetadata: z.ZodObject<{
|
|
191
270
|
activity: z.ZodObject<{
|
|
@@ -340,19 +419,19 @@ export declare const feedScrapeCompletedEventMetadata: z.ZodObject<{
|
|
|
340
419
|
durationMillis: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
341
420
|
}, "strip", z.ZodTypeAny, {
|
|
342
421
|
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
343
|
-
accountEmail: string;
|
|
344
422
|
id: string;
|
|
423
|
+
accountEmail: string;
|
|
424
|
+
duration: string;
|
|
345
425
|
endTime: number;
|
|
346
426
|
listingCount: number;
|
|
347
|
-
duration: string;
|
|
348
427
|
durationMillis?: number | null | undefined;
|
|
349
428
|
}, {
|
|
350
429
|
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
351
|
-
accountEmail: string;
|
|
352
430
|
id: string;
|
|
431
|
+
accountEmail: string;
|
|
432
|
+
duration: string;
|
|
353
433
|
endTime: number;
|
|
354
434
|
listingCount: number;
|
|
355
|
-
duration: string;
|
|
356
435
|
durationMillis?: number | null | undefined;
|
|
357
436
|
}>;
|
|
358
437
|
export declare const biddingCompletedEventMetadata: z.ZodObject<{
|
|
@@ -435,6 +514,22 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
|
|
|
435
514
|
proposalId: string | null;
|
|
436
515
|
} | undefined;
|
|
437
516
|
}>;
|
|
517
|
+
export declare const scraperAccountErrorEventMetadata: z.ZodObject<{
|
|
518
|
+
accountId: z.ZodString;
|
|
519
|
+
accountEmail: z.ZodString;
|
|
520
|
+
errorCode: z.ZodString;
|
|
521
|
+
errorMessage: z.ZodString;
|
|
522
|
+
}, "strip", z.ZodTypeAny, {
|
|
523
|
+
accountId: string;
|
|
524
|
+
accountEmail: string;
|
|
525
|
+
errorMessage: string;
|
|
526
|
+
errorCode: string;
|
|
527
|
+
}, {
|
|
528
|
+
accountId: string;
|
|
529
|
+
accountEmail: string;
|
|
530
|
+
errorMessage: string;
|
|
531
|
+
errorCode: string;
|
|
532
|
+
}>;
|
|
438
533
|
export declare const biddingRejectedWithFeedbackEventMetadata: z.ZodObject<{
|
|
439
534
|
feedback: z.ZodString;
|
|
440
535
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -445,16 +540,21 @@ export declare const biddingRejectedWithFeedbackEventMetadata: z.ZodObject<{
|
|
|
445
540
|
export type LogEventType = z.infer<typeof LogEventTypeEnum>;
|
|
446
541
|
export type LogEvent = z.infer<typeof logEventSchema>;
|
|
447
542
|
export type ListingScrapedEventMetadata = z.infer<typeof listingScrapedEventMetadata>;
|
|
543
|
+
export type ScrapeFeedEventMetadata = z.infer<typeof scrapeFeedEventMetadata>;
|
|
448
544
|
export type ScrapeJobStartedEventMetadata = z.infer<typeof scrapeJobStartedEventMetadata>;
|
|
449
545
|
export type ScrapeJobFailedEventMetadata = z.infer<typeof scrapeJobFailedEventMetadata>;
|
|
450
546
|
export type JobActivityScrapedEventMetadata = z.infer<typeof jobActivityScrapedEventMetadata>;
|
|
451
547
|
export type JobActivityScrapeFailedEventMetadata = z.infer<typeof jobActivityScrapeFailedEventMetadata>;
|
|
452
548
|
export type FeedScrapeStartedEventMetadata = z.infer<typeof feedScrapeStartedEventMetadata>;
|
|
453
549
|
export type FeedScrapeCompletedEventMetadata = z.infer<typeof feedScrapeCompletedEventMetadata>;
|
|
550
|
+
export type ScrapeFeedJobsDetailsStartedEventMetadata = z.infer<typeof scrapeFeedJobsDetailsStartedEventMetadata>;
|
|
551
|
+
export type ScrapeFeedJobsDetailsCompletedEventMetadata = z.infer<typeof scrapeFeedJobsDetailsCompletedEventMetadata>;
|
|
552
|
+
export type ScrapeFeedJobsDetailsFailedEventMetadata = z.infer<typeof scrapeFeedJobsDetailsFailedEventMetadata>;
|
|
454
553
|
export type BiddingCompletedEventMetadata = z.infer<typeof biddingCompletedEventMetadata>;
|
|
455
554
|
export type BiddingFailedEventMetadata = z.infer<typeof biddingFailedEventMetadata>;
|
|
456
555
|
export type BiddingRejectedWithFeedbackEventMetadata = z.infer<typeof biddingRejectedWithFeedbackEventMetadata>;
|
|
457
556
|
export type LeadStatusEventMetadata = z.infer<typeof leadStatusEventMetadata>;
|
|
557
|
+
export type ScraperAccountErrorEventMetadata = z.infer<typeof scraperAccountErrorEventMetadata>;
|
|
458
558
|
export declare const suitabilityPendingEventMetadataSchema: z.ZodObject<{
|
|
459
559
|
jobId: z.ZodString;
|
|
460
560
|
jobUrl: z.ZodString;
|
|
@@ -665,7 +765,7 @@ export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
|
|
|
665
765
|
}>;
|
|
666
766
|
export type ProposalCompleteEventMetadata = z.infer<typeof proposalCompleteEventMetadataSchema>;
|
|
667
767
|
export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
668
|
-
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "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"]>;
|
|
768
|
+
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "scrapeJobDetailsStarted", "scrapeJobDetailsCompleted", "scrapeJobDetailsFailed", "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", "scraperAccountError"]>;
|
|
669
769
|
source: z.ZodString;
|
|
670
770
|
resourceType: z.ZodDefault<z.ZodString>;
|
|
671
771
|
resourceId: z.ZodNullable<z.ZodString>;
|
|
@@ -677,7 +777,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
677
777
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
678
778
|
timestamp: z.ZodNumber;
|
|
679
779
|
}, "strip", z.ZodTypeAny, {
|
|
680
|
-
type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "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";
|
|
780
|
+
type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scraperAccountError";
|
|
681
781
|
source: string;
|
|
682
782
|
resourceType: string;
|
|
683
783
|
resourceId: string | null;
|
|
@@ -689,7 +789,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
689
789
|
metadata: Record<string, unknown> | null;
|
|
690
790
|
timestamp: number;
|
|
691
791
|
}, {
|
|
692
|
-
type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "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";
|
|
792
|
+
type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scraperAccountError";
|
|
693
793
|
source: string;
|
|
694
794
|
resourceId: string | null;
|
|
695
795
|
organizationId: string | null;
|
|
@@ -701,7 +801,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
701
801
|
timestamp: number;
|
|
702
802
|
resourceType?: string | undefined;
|
|
703
803
|
}>, z.ZodArray<z.ZodObject<{
|
|
704
|
-
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "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"]>;
|
|
804
|
+
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "scrapeJobDetailsStarted", "scrapeJobDetailsCompleted", "scrapeJobDetailsFailed", "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", "scraperAccountError"]>;
|
|
705
805
|
source: z.ZodString;
|
|
706
806
|
resourceType: z.ZodDefault<z.ZodString>;
|
|
707
807
|
resourceId: z.ZodNullable<z.ZodString>;
|
|
@@ -713,7 +813,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
713
813
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
714
814
|
timestamp: z.ZodNumber;
|
|
715
815
|
}, "strip", z.ZodTypeAny, {
|
|
716
|
-
type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "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";
|
|
816
|
+
type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scraperAccountError";
|
|
717
817
|
source: string;
|
|
718
818
|
resourceType: string;
|
|
719
819
|
resourceId: string | null;
|
|
@@ -725,7 +825,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
725
825
|
metadata: Record<string, unknown> | null;
|
|
726
826
|
timestamp: number;
|
|
727
827
|
}, {
|
|
728
|
-
type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "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";
|
|
828
|
+
type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scraperAccountError";
|
|
729
829
|
source: string;
|
|
730
830
|
resourceId: string | null;
|
|
731
831
|
organizationId: string | null;
|