lancer-shared 1.2.148 → 1.2.149
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 +148 -81
- package/dist/schemas/bid/exceptions/open-new-url.exception.d.ts +10 -0
- package/dist/schemas/logger/feed/feed-chunk-enrich.d.ts +93 -0
- package/dist/schemas/logger/feed/feed-enrich.d.ts +87 -0
- package/dist/schemas/logger/feed/feed-job-chunk-enrich.d.ts +75 -0
- package/dist/schemas/logger/feed/feed-job-enrich.d.ts +1624 -0
- package/dist/schemas/logger/feed/feed-scrape.d.ts +72 -0
- package/dist/schemas/logger/feed/index.d.ts +4 -0
- package/dist/schemas/logger/index.d.ts +1 -0
- package/dist/schemas/logger/log-event.d.ts +10 -10
- package/dist/schemas/logger/scraper-events.d.ts +13 -1553
- package/dist/schemas/scraper/scrape-result.d.ts +2 -2
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -13454,6 +13454,20 @@ class GoToUrlException extends Error {
|
|
|
13454
13454
|
}
|
|
13455
13455
|
}
|
|
13456
13456
|
const goToUrlException = (url, message) => new GoToUrlException(url, message);
|
|
13457
|
+
class PageClosedException extends Error {
|
|
13458
|
+
code = 'PAGE_CLOSED_EXCEPTION';
|
|
13459
|
+
constructor() {
|
|
13460
|
+
super(`Page closed.`);
|
|
13461
|
+
}
|
|
13462
|
+
}
|
|
13463
|
+
const pageClosedException = () => new PageClosedException();
|
|
13464
|
+
class PageContentException extends Error {
|
|
13465
|
+
code = 'PAGE_CONTENT_EXCEPTION';
|
|
13466
|
+
constructor(url, message) {
|
|
13467
|
+
super(`Failed to get page content for: [${url}]. \n\n Reason: ${message}`);
|
|
13468
|
+
}
|
|
13469
|
+
}
|
|
13470
|
+
const pageContentException = (url, message) => new PageContentException(url, message);
|
|
13457
13471
|
|
|
13458
13472
|
class ParseConnectsException extends Error {
|
|
13459
13473
|
code = 'PARSE_CONNECTS_EXCEPTION';
|
|
@@ -13673,6 +13687,112 @@ const agentTaskResponseSchema = z.object({
|
|
|
13673
13687
|
completionTokens: z.number(),
|
|
13674
13688
|
});
|
|
13675
13689
|
|
|
13690
|
+
const feedEnrichStartedEventMetadata = objectType({
|
|
13691
|
+
id: stringType(),
|
|
13692
|
+
feedScrapeId: stringType(),
|
|
13693
|
+
region: regionSchema,
|
|
13694
|
+
accountIds: arrayType(stringType()),
|
|
13695
|
+
accountEmails: arrayType(stringType()),
|
|
13696
|
+
jobCount: numberType(),
|
|
13697
|
+
});
|
|
13698
|
+
const feedEnrichCompletedEventMetadata = feedEnrichStartedEventMetadata.extend({
|
|
13699
|
+
duration: stringType(),
|
|
13700
|
+
});
|
|
13701
|
+
const feedEnrichFailedEventMetadata = feedEnrichStartedEventMetadata.extend({
|
|
13702
|
+
errorMessage: stringType(),
|
|
13703
|
+
errorCode: stringType(),
|
|
13704
|
+
errorStack: stringType(),
|
|
13705
|
+
});
|
|
13706
|
+
|
|
13707
|
+
const feedChunkEnrichStartedEventMetadata = objectType({
|
|
13708
|
+
region: regionSchema,
|
|
13709
|
+
accountId: stringType(),
|
|
13710
|
+
accountEmail: stringType(),
|
|
13711
|
+
chunkSize: numberType(),
|
|
13712
|
+
feedEnrichId: stringType(),
|
|
13713
|
+
feedScrapeId: stringType(),
|
|
13714
|
+
});
|
|
13715
|
+
const feedChunkEnrichCompletedEventMetadata = feedChunkEnrichStartedEventMetadata
|
|
13716
|
+
.pick({
|
|
13717
|
+
region: true,
|
|
13718
|
+
accountId: true,
|
|
13719
|
+
accountEmail: true,
|
|
13720
|
+
chunkSize: true,
|
|
13721
|
+
feedEnrichId: true,
|
|
13722
|
+
feedScrapeId: true,
|
|
13723
|
+
})
|
|
13724
|
+
.extend({
|
|
13725
|
+
duration: stringType(),
|
|
13726
|
+
successfulEnrichJobCount: numberType(),
|
|
13727
|
+
failedEnrichJobCount: numberType(),
|
|
13728
|
+
});
|
|
13729
|
+
const feedChunkEnrichFailedEventMetadata = feedChunkEnrichStartedEventMetadata
|
|
13730
|
+
.pick({
|
|
13731
|
+
region: true,
|
|
13732
|
+
accountId: true,
|
|
13733
|
+
accountEmail: true,
|
|
13734
|
+
chunkSize: true,
|
|
13735
|
+
feedEnrichId: true,
|
|
13736
|
+
feedScrapeId: true,
|
|
13737
|
+
})
|
|
13738
|
+
.extend({
|
|
13739
|
+
errorMessage: stringType(),
|
|
13740
|
+
errorCode: stringType(),
|
|
13741
|
+
errorStack: stringType(),
|
|
13742
|
+
});
|
|
13743
|
+
|
|
13744
|
+
const feedJobEnrichStartedEventMetadata = objectType({
|
|
13745
|
+
listing: jobListingSchema,
|
|
13746
|
+
region: regionSchema,
|
|
13747
|
+
accountId: stringType(),
|
|
13748
|
+
accountEmail: stringType(),
|
|
13749
|
+
});
|
|
13750
|
+
const feedJobEnrichCompletedEventMetadata = feedJobEnrichStartedEventMetadata
|
|
13751
|
+
.pick({
|
|
13752
|
+
region: true,
|
|
13753
|
+
accountId: true,
|
|
13754
|
+
accountEmail: true,
|
|
13755
|
+
})
|
|
13756
|
+
.extend({
|
|
13757
|
+
job: upworkJobSchema,
|
|
13758
|
+
duration: stringType(),
|
|
13759
|
+
});
|
|
13760
|
+
const feedJobEnrichFailedEventMetadata = feedJobEnrichStartedEventMetadata.extend({
|
|
13761
|
+
errorMessage: stringType(),
|
|
13762
|
+
errorCode: stringType(),
|
|
13763
|
+
errorStack: stringType(),
|
|
13764
|
+
});
|
|
13765
|
+
|
|
13766
|
+
const feedScrapeStartedEventMetadata = objectType({
|
|
13767
|
+
id: stringType(),
|
|
13768
|
+
region: regionSchema,
|
|
13769
|
+
accountId: stringType(),
|
|
13770
|
+
accountEmail: stringType(),
|
|
13771
|
+
});
|
|
13772
|
+
const feedScrapeCompletedEventMetadata = feedScrapeStartedEventMetadata
|
|
13773
|
+
.pick({
|
|
13774
|
+
id: true,
|
|
13775
|
+
region: true,
|
|
13776
|
+
accountId: true,
|
|
13777
|
+
accountEmail: true,
|
|
13778
|
+
})
|
|
13779
|
+
.extend({
|
|
13780
|
+
feedJobCount: numberType(),
|
|
13781
|
+
duration: stringType(),
|
|
13782
|
+
});
|
|
13783
|
+
const feedScrapeFailedEventMetadata = feedScrapeStartedEventMetadata
|
|
13784
|
+
.pick({
|
|
13785
|
+
id: true,
|
|
13786
|
+
region: true,
|
|
13787
|
+
accountId: true,
|
|
13788
|
+
accountEmail: true,
|
|
13789
|
+
})
|
|
13790
|
+
.extend({
|
|
13791
|
+
errorMessage: stringType(),
|
|
13792
|
+
errorCode: stringType(),
|
|
13793
|
+
errorStack: stringType(),
|
|
13794
|
+
});
|
|
13795
|
+
|
|
13676
13796
|
const LogEventTypeEnum = z.enum([
|
|
13677
13797
|
// Lead Status Events
|
|
13678
13798
|
'leadStatusCheckFailed',
|
|
@@ -13715,15 +13835,18 @@ const LogEventTypeEnum = z.enum([
|
|
|
13715
13835
|
'leadArchived',
|
|
13716
13836
|
'auditTrailLogged',
|
|
13717
13837
|
// Scraper Events
|
|
13718
|
-
'
|
|
13719
|
-
'
|
|
13720
|
-
'
|
|
13838
|
+
'feedScrapeStarted',
|
|
13839
|
+
'feedScrapeCompleted',
|
|
13840
|
+
'feedScrapeFailed',
|
|
13841
|
+
'feedEnrichStarted',
|
|
13842
|
+
'feedEnrichCompleted',
|
|
13843
|
+
'feedEnrichFailed',
|
|
13721
13844
|
'feedJobEnrichStarted',
|
|
13722
|
-
'
|
|
13845
|
+
'feedJobEnrichCompleted',
|
|
13723
13846
|
'feedJobEnrichFailed',
|
|
13724
|
-
'
|
|
13725
|
-
'
|
|
13726
|
-
'
|
|
13847
|
+
'feedChunkEnrichStarted',
|
|
13848
|
+
'feedChunkEnrichCompleted',
|
|
13849
|
+
'feedChunkEnrichFailed',
|
|
13727
13850
|
'scrapeJobsCompleted',
|
|
13728
13851
|
'scraperAccountError',
|
|
13729
13852
|
]);
|
|
@@ -13830,77 +13953,14 @@ const eventLoggerPayloadSchema = unionType([
|
|
|
13830
13953
|
arrayType(logEventSchema),
|
|
13831
13954
|
]);
|
|
13832
13955
|
|
|
13833
|
-
const scrapeFeedStartedEventMetadata = objectType({
|
|
13834
|
-
region: regionSchema,
|
|
13835
|
-
accountId: stringType(),
|
|
13836
|
-
accountEmail: stringType(),
|
|
13837
|
-
});
|
|
13838
|
-
const scrapeFeedCompletedEventMetadata = objectType({
|
|
13839
|
-
region: regionSchema,
|
|
13840
|
-
accountId: stringType(),
|
|
13841
|
-
accountEmail: stringType(),
|
|
13842
|
-
listingsCount: numberType(),
|
|
13843
|
-
duration: stringType(),
|
|
13844
|
-
});
|
|
13845
|
-
const scrapeFeedFailedEventMetadata = objectType({
|
|
13846
|
-
region: regionSchema,
|
|
13847
|
-
accountId: stringType(),
|
|
13848
|
-
accountEmail: stringType(),
|
|
13849
|
-
errorMessage: stringType(),
|
|
13850
|
-
errorCode: stringType(),
|
|
13851
|
-
errorStack: stringType(),
|
|
13852
|
-
});
|
|
13853
|
-
const feedJobEnrichStartedEventMetadata = objectType({
|
|
13854
|
-
listing: jobListingSchema,
|
|
13855
|
-
region: regionSchema,
|
|
13856
|
-
accountId: stringType(),
|
|
13857
|
-
accountEmail: stringType(),
|
|
13858
|
-
});
|
|
13859
|
-
const jobScrapedEventMetadata = objectType({
|
|
13860
|
-
job: upworkJobSchema,
|
|
13861
|
-
region: regionSchema,
|
|
13862
|
-
duration: stringType(),
|
|
13863
|
-
});
|
|
13864
|
-
const feedJobEnrichFailedEventMetadata = objectType({
|
|
13865
|
-
listing: jobListingSchema,
|
|
13866
|
-
region: regionSchema,
|
|
13867
|
-
accountId: stringType(),
|
|
13868
|
-
accountEmail: stringType(),
|
|
13869
|
-
errorMessage: stringType(),
|
|
13870
|
-
errorCode: stringType(),
|
|
13871
|
-
errorStack: stringType(),
|
|
13872
|
-
});
|
|
13873
|
-
const feedJobChunkEnrichStartedEventMetadata = objectType({
|
|
13874
|
-
region: regionSchema,
|
|
13875
|
-
accountIds: arrayType(stringType()),
|
|
13876
|
-
accountEmails: arrayType(stringType()),
|
|
13877
|
-
jobListingsCount: numberType(),
|
|
13878
|
-
});
|
|
13879
|
-
const feedJobChunkEnrichCompletedEventMetadata = objectType({
|
|
13880
|
-
region: regionSchema,
|
|
13881
|
-
feedScraperAccountId: stringType(),
|
|
13882
|
-
feedScraperAccountEmail: stringType(),
|
|
13883
|
-
uniqueJobsFound: numberType(),
|
|
13884
|
-
duration: stringType(),
|
|
13885
|
-
enrichFeedJobSuccessCount: numberType(),
|
|
13886
|
-
enrichFeedJobFailCount: numberType(),
|
|
13887
|
-
});
|
|
13888
|
-
const feedJobChunkEnrichFailedEventMetadata = objectType({
|
|
13889
|
-
region: regionSchema,
|
|
13890
|
-
accountId: stringType(),
|
|
13891
|
-
accountEmail: stringType(),
|
|
13892
|
-
errorMessage: stringType(),
|
|
13893
|
-
errorCode: stringType(),
|
|
13894
|
-
errorStack: stringType(),
|
|
13895
|
-
});
|
|
13896
13956
|
const scrapeJobsCompletedEventMetadata = objectType({
|
|
13897
13957
|
region: regionSchema,
|
|
13898
13958
|
feedScraperAccountId: stringType(),
|
|
13899
13959
|
feedScraperAccountEmail: stringType(),
|
|
13900
13960
|
uniqueJobsFound: numberType(),
|
|
13901
13961
|
duration: stringType(),
|
|
13902
|
-
|
|
13903
|
-
|
|
13962
|
+
successfulEnrichJobCount: numberType(),
|
|
13963
|
+
failedEnrichJobCount: numberType(),
|
|
13904
13964
|
});
|
|
13905
13965
|
const jobActivityScrapedEventMetadata = objectType({
|
|
13906
13966
|
activity: jobActivitySchema,
|
|
@@ -13989,7 +14049,7 @@ const scrapeResultSchema = objectType({
|
|
|
13989
14049
|
usAccountCookies: arrayType(anyType()).optional(),
|
|
13990
14050
|
ukAccountCookies: arrayType(anyType()).optional(),
|
|
13991
14051
|
});
|
|
13992
|
-
const
|
|
14052
|
+
const feedScrapeResultSchema = objectType({
|
|
13993
14053
|
listings: arrayType(feedJobSchema),
|
|
13994
14054
|
region: regionSchema,
|
|
13995
14055
|
usAccountCookies: arrayType(anyType()).optional(),
|
|
@@ -14644,6 +14704,8 @@ exports.NoBidderAccountsAvailableException = NoBidderAccountsAvailableException;
|
|
|
14644
14704
|
exports.NoGoogleOAuthTokensFoundException = NoGoogleOAuthTokensFoundException;
|
|
14645
14705
|
exports.NoScraperAccountAvailableException = NoScraperAccountAvailableException;
|
|
14646
14706
|
exports.OpenPageException = OpenPageException;
|
|
14707
|
+
exports.PageClosedException = PageClosedException;
|
|
14708
|
+
exports.PageContentException = PageContentException;
|
|
14647
14709
|
exports.ParseConnectsException = ParseConnectsException;
|
|
14648
14710
|
exports.ParseJobListingsException = ParseJobListingsException;
|
|
14649
14711
|
exports.ProposalErrorAlertException = ProposalErrorAlertException;
|
|
@@ -14743,14 +14805,22 @@ exports.eventLoggerPayloadSchema = eventLoggerPayloadSchema;
|
|
|
14743
14805
|
exports.experienceLevelEnum = experienceLevelEnum;
|
|
14744
14806
|
exports.externalProxySchema = externalProxySchema;
|
|
14745
14807
|
exports.failedToParseNuxtJobException = failedToParseNuxtJobException;
|
|
14746
|
-
exports.
|
|
14747
|
-
exports.
|
|
14748
|
-
exports.
|
|
14808
|
+
exports.feedChunkEnrichCompletedEventMetadata = feedChunkEnrichCompletedEventMetadata;
|
|
14809
|
+
exports.feedChunkEnrichFailedEventMetadata = feedChunkEnrichFailedEventMetadata;
|
|
14810
|
+
exports.feedChunkEnrichStartedEventMetadata = feedChunkEnrichStartedEventMetadata;
|
|
14811
|
+
exports.feedEnrichCompletedEventMetadata = feedEnrichCompletedEventMetadata;
|
|
14812
|
+
exports.feedEnrichFailedEventMetadata = feedEnrichFailedEventMetadata;
|
|
14813
|
+
exports.feedEnrichStartedEventMetadata = feedEnrichStartedEventMetadata;
|
|
14814
|
+
exports.feedJobEnrichCompletedEventMetadata = feedJobEnrichCompletedEventMetadata;
|
|
14749
14815
|
exports.feedJobEnrichFailedEventMetadata = feedJobEnrichFailedEventMetadata;
|
|
14750
14816
|
exports.feedJobEnrichFailedException = feedJobEnrichFailedException;
|
|
14751
14817
|
exports.feedJobEnrichStartedEventMetadata = feedJobEnrichStartedEventMetadata;
|
|
14752
14818
|
exports.feedJobSchema = feedJobSchema;
|
|
14819
|
+
exports.feedScrapeCompletedEventMetadata = feedScrapeCompletedEventMetadata;
|
|
14753
14820
|
exports.feedScrapeException = feedScrapeException;
|
|
14821
|
+
exports.feedScrapeFailedEventMetadata = feedScrapeFailedEventMetadata;
|
|
14822
|
+
exports.feedScrapeResultSchema = feedScrapeResultSchema;
|
|
14823
|
+
exports.feedScrapeStartedEventMetadata = feedScrapeStartedEventMetadata;
|
|
14754
14824
|
exports.filterOptionItemSchema = filterOptionItemSchema;
|
|
14755
14825
|
exports.filterOptionsResponseSchema = filterOptionsResponseSchema;
|
|
14756
14826
|
exports.findLeadsRequestSchema = findLeadsRequestSchema;
|
|
@@ -14799,7 +14869,6 @@ exports.jobFiltersSchema = jobFiltersSchema;
|
|
|
14799
14869
|
exports.jobIsPrivateException = jobIsPrivateException;
|
|
14800
14870
|
exports.jobListingSchema = jobListingSchema;
|
|
14801
14871
|
exports.jobQualityScoreSchema = jobQualityScoreSchema;
|
|
14802
|
-
exports.jobScrapedEventMetadata = jobScrapedEventMetadata;
|
|
14803
14872
|
exports.jobSkillsSchema = jobSkillsSchema;
|
|
14804
14873
|
exports.jobStatusOrder = jobStatusOrder;
|
|
14805
14874
|
exports.lancerBiddingExceptionEventMetadata = lancerBiddingExceptionEventMetadata;
|
|
@@ -14834,6 +14903,8 @@ exports.organizationSchema = organizationSchema;
|
|
|
14834
14903
|
exports.organizationSettingsSchema = organizationSettingsSchema;
|
|
14835
14904
|
exports.organizationTierEnum = organizationTierEnum;
|
|
14836
14905
|
exports.organizationTypeSchema = organizationTypeSchema;
|
|
14906
|
+
exports.pageClosedException = pageClosedException;
|
|
14907
|
+
exports.pageContentException = pageContentException;
|
|
14837
14908
|
exports.parseConnectsException = parseConnectsException;
|
|
14838
14909
|
exports.parseJobListingsException = parseJobListingsException;
|
|
14839
14910
|
exports.passwordSchema = passwordSchema;
|
|
@@ -14874,10 +14945,6 @@ exports.registerSchema = registerSchema;
|
|
|
14874
14945
|
exports.requiredEarningsEnum = requiredEarningsEnum;
|
|
14875
14946
|
exports.requiredJSSEnum = requiredJSSEnum;
|
|
14876
14947
|
exports.savedSearchSchema = savedSearchSchema;
|
|
14877
|
-
exports.scrapeFeedCompletedEventMetadata = scrapeFeedCompletedEventMetadata;
|
|
14878
|
-
exports.scrapeFeedFailedEventMetadata = scrapeFeedFailedEventMetadata;
|
|
14879
|
-
exports.scrapeFeedResultSchema = scrapeFeedResultSchema;
|
|
14880
|
-
exports.scrapeFeedStartedEventMetadata = scrapeFeedStartedEventMetadata;
|
|
14881
14948
|
exports.scrapeJobActivityPayloadSchema = scrapeJobActivityPayloadSchema;
|
|
14882
14949
|
exports.scrapeJobPayloadSchema = scrapeJobPayloadSchema;
|
|
14883
14950
|
exports.scrapeJobsCompletedEventMetadata = scrapeJobsCompletedEventMetadata;
|
|
@@ -3,3 +3,13 @@ export declare class GoToUrlException extends Error {
|
|
|
3
3
|
constructor(url: string, message: string);
|
|
4
4
|
}
|
|
5
5
|
export declare const goToUrlException: (url: string, message: string) => GoToUrlException;
|
|
6
|
+
export declare class PageClosedException extends Error {
|
|
7
|
+
readonly code = "PAGE_CLOSED_EXCEPTION";
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
export declare const pageClosedException: () => PageClosedException;
|
|
11
|
+
export declare class PageContentException extends Error {
|
|
12
|
+
readonly code = "PAGE_CONTENT_EXCEPTION";
|
|
13
|
+
constructor(url: string, message: string);
|
|
14
|
+
}
|
|
15
|
+
export declare const pageContentException: (url: string, message: string) => PageContentException;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const feedChunkEnrichStartedEventMetadata: z.ZodObject<{
|
|
3
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
4
|
+
accountId: z.ZodString;
|
|
5
|
+
accountEmail: z.ZodString;
|
|
6
|
+
chunkSize: z.ZodNumber;
|
|
7
|
+
feedEnrichId: z.ZodString;
|
|
8
|
+
feedScrapeId: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
11
|
+
accountId: string;
|
|
12
|
+
accountEmail: string;
|
|
13
|
+
chunkSize: number;
|
|
14
|
+
feedEnrichId: string;
|
|
15
|
+
feedScrapeId: string;
|
|
16
|
+
}, {
|
|
17
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
18
|
+
accountId: string;
|
|
19
|
+
accountEmail: string;
|
|
20
|
+
chunkSize: number;
|
|
21
|
+
feedEnrichId: string;
|
|
22
|
+
feedScrapeId: string;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const feedChunkEnrichCompletedEventMetadata: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
25
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
26
|
+
accountId: z.ZodString;
|
|
27
|
+
accountEmail: z.ZodString;
|
|
28
|
+
chunkSize: z.ZodNumber;
|
|
29
|
+
feedEnrichId: z.ZodString;
|
|
30
|
+
feedScrapeId: z.ZodString;
|
|
31
|
+
}, "region" | "accountId" | "accountEmail" | "chunkSize" | "feedEnrichId" | "feedScrapeId">, {
|
|
32
|
+
duration: z.ZodString;
|
|
33
|
+
successfulEnrichJobCount: z.ZodNumber;
|
|
34
|
+
failedEnrichJobCount: z.ZodNumber;
|
|
35
|
+
}>, "strip", z.ZodTypeAny, {
|
|
36
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
37
|
+
accountId: string;
|
|
38
|
+
accountEmail: string;
|
|
39
|
+
chunkSize: number;
|
|
40
|
+
feedEnrichId: string;
|
|
41
|
+
feedScrapeId: string;
|
|
42
|
+
duration: string;
|
|
43
|
+
successfulEnrichJobCount: number;
|
|
44
|
+
failedEnrichJobCount: number;
|
|
45
|
+
}, {
|
|
46
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
47
|
+
accountId: string;
|
|
48
|
+
accountEmail: string;
|
|
49
|
+
chunkSize: number;
|
|
50
|
+
feedEnrichId: string;
|
|
51
|
+
feedScrapeId: string;
|
|
52
|
+
duration: string;
|
|
53
|
+
successfulEnrichJobCount: number;
|
|
54
|
+
failedEnrichJobCount: number;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const feedChunkEnrichFailedEventMetadata: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
57
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
58
|
+
accountId: z.ZodString;
|
|
59
|
+
accountEmail: z.ZodString;
|
|
60
|
+
chunkSize: z.ZodNumber;
|
|
61
|
+
feedEnrichId: z.ZodString;
|
|
62
|
+
feedScrapeId: z.ZodString;
|
|
63
|
+
}, "region" | "accountId" | "accountEmail" | "chunkSize" | "feedEnrichId" | "feedScrapeId">, {
|
|
64
|
+
errorMessage: z.ZodString;
|
|
65
|
+
errorCode: z.ZodString;
|
|
66
|
+
errorStack: z.ZodString;
|
|
67
|
+
}>, "strip", z.ZodTypeAny, {
|
|
68
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
69
|
+
accountId: string;
|
|
70
|
+
accountEmail: string;
|
|
71
|
+
chunkSize: number;
|
|
72
|
+
feedEnrichId: string;
|
|
73
|
+
feedScrapeId: string;
|
|
74
|
+
errorMessage: string;
|
|
75
|
+
errorCode: string;
|
|
76
|
+
errorStack: string;
|
|
77
|
+
}, {
|
|
78
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
79
|
+
accountId: string;
|
|
80
|
+
accountEmail: string;
|
|
81
|
+
chunkSize: number;
|
|
82
|
+
feedEnrichId: string;
|
|
83
|
+
feedScrapeId: string;
|
|
84
|
+
errorMessage: string;
|
|
85
|
+
errorCode: string;
|
|
86
|
+
errorStack: string;
|
|
87
|
+
}>;
|
|
88
|
+
export interface FeedChunkEnrichStartedEventMetadata extends z.infer<typeof feedChunkEnrichStartedEventMetadata> {
|
|
89
|
+
}
|
|
90
|
+
export interface FeedChunkEnrichCompletedEventMetadata extends z.infer<typeof feedChunkEnrichCompletedEventMetadata> {
|
|
91
|
+
}
|
|
92
|
+
export interface FeedChunkEnrichFailedEventMetadata extends z.infer<typeof feedChunkEnrichFailedEventMetadata> {
|
|
93
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const feedEnrichStartedEventMetadata: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
feedScrapeId: z.ZodString;
|
|
5
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
6
|
+
accountIds: z.ZodArray<z.ZodString, "many">;
|
|
7
|
+
accountEmails: z.ZodArray<z.ZodString, "many">;
|
|
8
|
+
jobCount: z.ZodNumber;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
id: string;
|
|
11
|
+
feedScrapeId: string;
|
|
12
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
13
|
+
accountIds: string[];
|
|
14
|
+
accountEmails: string[];
|
|
15
|
+
jobCount: number;
|
|
16
|
+
}, {
|
|
17
|
+
id: string;
|
|
18
|
+
feedScrapeId: string;
|
|
19
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
20
|
+
accountIds: string[];
|
|
21
|
+
accountEmails: string[];
|
|
22
|
+
jobCount: number;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const feedEnrichCompletedEventMetadata: z.ZodObject<z.objectUtil.extendShape<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
feedScrapeId: z.ZodString;
|
|
27
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
28
|
+
accountIds: z.ZodArray<z.ZodString, "many">;
|
|
29
|
+
accountEmails: z.ZodArray<z.ZodString, "many">;
|
|
30
|
+
jobCount: z.ZodNumber;
|
|
31
|
+
}, {
|
|
32
|
+
duration: z.ZodString;
|
|
33
|
+
}>, "strip", z.ZodTypeAny, {
|
|
34
|
+
id: string;
|
|
35
|
+
feedScrapeId: string;
|
|
36
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
37
|
+
accountIds: string[];
|
|
38
|
+
accountEmails: string[];
|
|
39
|
+
jobCount: number;
|
|
40
|
+
duration: string;
|
|
41
|
+
}, {
|
|
42
|
+
id: string;
|
|
43
|
+
feedScrapeId: string;
|
|
44
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
45
|
+
accountIds: string[];
|
|
46
|
+
accountEmails: string[];
|
|
47
|
+
jobCount: number;
|
|
48
|
+
duration: string;
|
|
49
|
+
}>;
|
|
50
|
+
export declare const feedEnrichFailedEventMetadata: z.ZodObject<z.objectUtil.extendShape<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
feedScrapeId: z.ZodString;
|
|
53
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
54
|
+
accountIds: z.ZodArray<z.ZodString, "many">;
|
|
55
|
+
accountEmails: z.ZodArray<z.ZodString, "many">;
|
|
56
|
+
jobCount: z.ZodNumber;
|
|
57
|
+
}, {
|
|
58
|
+
errorMessage: z.ZodString;
|
|
59
|
+
errorCode: z.ZodString;
|
|
60
|
+
errorStack: z.ZodString;
|
|
61
|
+
}>, "strip", z.ZodTypeAny, {
|
|
62
|
+
id: string;
|
|
63
|
+
feedScrapeId: string;
|
|
64
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
65
|
+
accountIds: string[];
|
|
66
|
+
accountEmails: string[];
|
|
67
|
+
jobCount: number;
|
|
68
|
+
errorMessage: string;
|
|
69
|
+
errorCode: string;
|
|
70
|
+
errorStack: string;
|
|
71
|
+
}, {
|
|
72
|
+
id: string;
|
|
73
|
+
feedScrapeId: string;
|
|
74
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
75
|
+
accountIds: string[];
|
|
76
|
+
accountEmails: string[];
|
|
77
|
+
jobCount: number;
|
|
78
|
+
errorMessage: string;
|
|
79
|
+
errorCode: string;
|
|
80
|
+
errorStack: string;
|
|
81
|
+
}>;
|
|
82
|
+
export interface FeedEnrichStartedEventMetadata extends z.infer<typeof feedEnrichStartedEventMetadata> {
|
|
83
|
+
}
|
|
84
|
+
export interface FeedEnrichCompletedEventMetadata extends z.infer<typeof feedEnrichCompletedEventMetadata> {
|
|
85
|
+
}
|
|
86
|
+
export interface FeedEnrichFailedEventMetadata extends z.infer<typeof feedEnrichFailedEventMetadata> {
|
|
87
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const feedChunkEnrichStartedEventMetadata: z.ZodObject<{
|
|
3
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
4
|
+
accountId: z.ZodString;
|
|
5
|
+
accountEmail: z.ZodString;
|
|
6
|
+
chunkSize: z.ZodNumber;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
9
|
+
accountId: string;
|
|
10
|
+
accountEmail: string;
|
|
11
|
+
chunkSize: number;
|
|
12
|
+
}, {
|
|
13
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
14
|
+
accountId: string;
|
|
15
|
+
accountEmail: string;
|
|
16
|
+
chunkSize: number;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const feedChunkEnrichCompletedEventMetadata: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
19
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
20
|
+
accountId: z.ZodString;
|
|
21
|
+
accountEmail: z.ZodString;
|
|
22
|
+
chunkSize: z.ZodNumber;
|
|
23
|
+
}, "region" | "accountId" | "accountEmail" | "chunkSize">, {
|
|
24
|
+
duration: z.ZodString;
|
|
25
|
+
successfulEnrichJobCount: z.ZodNumber;
|
|
26
|
+
failedEnrichJobCount: z.ZodNumber;
|
|
27
|
+
}>, "strip", z.ZodTypeAny, {
|
|
28
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
29
|
+
accountId: string;
|
|
30
|
+
accountEmail: string;
|
|
31
|
+
chunkSize: number;
|
|
32
|
+
duration: string;
|
|
33
|
+
successfulEnrichJobCount: number;
|
|
34
|
+
failedEnrichJobCount: number;
|
|
35
|
+
}, {
|
|
36
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
37
|
+
accountId: string;
|
|
38
|
+
accountEmail: string;
|
|
39
|
+
chunkSize: number;
|
|
40
|
+
duration: string;
|
|
41
|
+
successfulEnrichJobCount: number;
|
|
42
|
+
failedEnrichJobCount: number;
|
|
43
|
+
}>;
|
|
44
|
+
export declare const feedChunkEnrichFailedEventMetadata: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
45
|
+
region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
|
|
46
|
+
accountId: z.ZodString;
|
|
47
|
+
accountEmail: z.ZodString;
|
|
48
|
+
chunkSize: z.ZodNumber;
|
|
49
|
+
}, "region" | "accountId" | "accountEmail" | "chunkSize">, {
|
|
50
|
+
errorMessage: z.ZodString;
|
|
51
|
+
errorCode: z.ZodString;
|
|
52
|
+
errorStack: z.ZodString;
|
|
53
|
+
}>, "strip", z.ZodTypeAny, {
|
|
54
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
55
|
+
accountId: string;
|
|
56
|
+
accountEmail: string;
|
|
57
|
+
chunkSize: number;
|
|
58
|
+
errorMessage: string;
|
|
59
|
+
errorCode: string;
|
|
60
|
+
errorStack: string;
|
|
61
|
+
}, {
|
|
62
|
+
region: "USOnly" | "UKOnly" | "Worldwide";
|
|
63
|
+
accountId: string;
|
|
64
|
+
accountEmail: string;
|
|
65
|
+
chunkSize: number;
|
|
66
|
+
errorMessage: string;
|
|
67
|
+
errorCode: string;
|
|
68
|
+
errorStack: string;
|
|
69
|
+
}>;
|
|
70
|
+
export interface FeedChunkEnrichStartedEventMetadata extends z.infer<typeof feedChunkEnrichStartedEventMetadata> {
|
|
71
|
+
}
|
|
72
|
+
export interface FeedChunkEnrichCompletedEventMetadata extends z.infer<typeof feedChunkEnrichCompletedEventMetadata> {
|
|
73
|
+
}
|
|
74
|
+
export interface FeedChunkEnrichFailedEventMetadata extends z.infer<typeof feedChunkEnrichFailedEventMetadata> {
|
|
75
|
+
}
|