eventregistry 8.11.2 → 9.1.0
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/analytics.d.ts +82 -82
- package/dist/analytics.js +336 -330
- package/dist/analytics.js.map +1 -1
- package/dist/base.d.ts +82 -81
- package/dist/base.js +261 -219
- package/dist/base.js.map +1 -1
- package/dist/counts.d.ts +81 -81
- package/dist/counts.js +162 -149
- package/dist/counts.js.map +1 -1
- package/dist/dailyShares.d.ts +10 -10
- package/dist/dailyShares.js +90 -77
- package/dist/dailyShares.js.map +1 -1
- package/dist/data.d.ts +269 -268
- package/dist/data.js +3 -3
- package/dist/eventForText.d.ts +48 -48
- package/dist/eventForText.js +126 -123
- package/dist/eventForText.js.map +1 -1
- package/dist/eventRegistry.d.ts +244 -224
- package/dist/eventRegistry.js +1098 -1018
- package/dist/eventRegistry.js.map +1 -1
- package/dist/index.d.ts +21 -20
- package/dist/index.js +128 -122
- package/dist/index.js.map +1 -1
- package/dist/info.d.ts +61 -61
- package/dist/info.js +171 -158
- package/dist/info.js.map +1 -1
- package/dist/logger.d.ts +44 -0
- package/dist/logger.js +144 -0
- package/dist/logger.js.map +1 -0
- package/dist/query.d.ts +53 -53
- package/dist/query.js +333 -290
- package/dist/query.js.map +1 -1
- package/dist/queryArticle.d.ts +61 -61
- package/dist/queryArticle.js +183 -168
- package/dist/queryArticle.js.map +1 -1
- package/dist/queryArticles.d.ts +144 -160
- package/dist/queryArticles.js +729 -701
- package/dist/queryArticles.js.map +1 -1
- package/dist/queryEvent.d.ts +140 -140
- package/dist/queryEvent.js +587 -569
- package/dist/queryEvent.js.map +1 -1
- package/dist/queryEvents.d.ts +210 -210
- package/dist/queryEvents.js +825 -798
- package/dist/queryEvents.js.map +1 -1
- package/dist/queryMentions.d.ts +96 -96
- package/dist/queryMentions.js +637 -600
- package/dist/queryMentions.js.map +1 -1
- package/dist/queryStory.d.ts +58 -58
- package/dist/queryStory.js +194 -174
- package/dist/queryStory.js.map +1 -1
- package/dist/recent.d.ts +23 -23
- package/dist/recent.js +199 -179
- package/dist/recent.js.map +1 -1
- package/dist/returnInfo.d.ts +68 -66
- package/dist/returnInfo.js +332 -304
- package/dist/returnInfo.js.map +1 -1
- package/dist/topicPage.d.ts +157 -157
- package/dist/topicPage.js +599 -604
- package/dist/topicPage.js.map +1 -1
- package/dist/trends.d.ts +35 -35
- package/dist/trends.js +115 -102
- package/dist/trends.js.map +1 -1
- package/dist/types.d.ts +2453 -2155
- package/dist/types.js +2 -2
- package/package.json +13 -13
package/dist/queryArticles.d.ts
CHANGED
|
@@ -1,160 +1,144 @@
|
|
|
1
|
-
import { Query } from "./base";
|
|
2
|
-
import { EventRegistry } from "./eventRegistry";
|
|
3
|
-
import { ReturnInfo } from "./returnInfo";
|
|
4
|
-
import {
|
|
5
|
-
import { Data } from "./data";
|
|
6
|
-
export declare class QueryArticles extends Query<RequestArticles> {
|
|
7
|
-
constructor(args?:
|
|
8
|
-
|
|
9
|
-
setRequestedResult(requestArticles: any): void;
|
|
10
|
-
static initWithArticleUriList(...args: any[]): any;
|
|
11
|
-
static initWithArticleUriWgtList(...args: any[]): any;
|
|
12
|
-
static initWithComplexQuery(...args: any[]): any;
|
|
13
|
-
}
|
|
14
|
-
export declare class QueryArticlesIter extends QueryArticles implements AsyncIterable<Data.Article> {
|
|
15
|
-
private readonly er;
|
|
16
|
-
private readonly sortBy;
|
|
17
|
-
private readonly sortByAsc;
|
|
18
|
-
private readonly returnInfo;
|
|
19
|
-
private readonly maxItems;
|
|
20
|
-
private page;
|
|
21
|
-
private pages;
|
|
22
|
-
private items;
|
|
23
|
-
private returnedSoFar;
|
|
24
|
-
private index;
|
|
25
|
-
private callback;
|
|
26
|
-
private doneCallback;
|
|
27
|
-
private errorMessage;
|
|
28
|
-
constructor(er: EventRegistry, args?: {
|
|
29
|
-
[name: string]: any;
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* Async Iterator function that returns the next item in the list of articles
|
|
33
|
-
*/
|
|
34
|
-
[Symbol.asyncIterator](): AsyncIterator<Data.Article>;
|
|
35
|
-
count(): Promise<number>;
|
|
36
|
-
execQuery(callback: (item: Data.Article) => void, doneCallback?: (error?: string) => void): void;
|
|
37
|
-
static initWithComplexQuery(er: EventRegistry, complexQuery: any, params?: {
|
|
38
|
-
[name: string]: any;
|
|
39
|
-
}): QueryArticlesIter;
|
|
40
|
-
private iterate;
|
|
41
|
-
/**
|
|
42
|
-
* Extract the results according to maxItems
|
|
43
|
-
* @param response response from the backend
|
|
44
|
-
*/
|
|
45
|
-
private extractResults;
|
|
46
|
-
private
|
|
47
|
-
private getNextBatch;
|
|
48
|
-
}
|
|
49
|
-
export declare class RequestArticles {
|
|
50
|
-
}
|
|
51
|
-
export declare class RequestArticlesInfo extends RequestArticles {
|
|
52
|
-
resultType: string;
|
|
53
|
-
params: any;
|
|
54
|
-
constructor(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
export declare class
|
|
63
|
-
resultType: string;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
export declare class
|
|
77
|
-
resultType: string;
|
|
78
|
-
params: any;
|
|
79
|
-
constructor({
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
export declare class
|
|
112
|
-
resultType: string;
|
|
113
|
-
params: any;
|
|
114
|
-
constructor({ conceptCount,
|
|
115
|
-
conceptCount?: number;
|
|
116
|
-
|
|
117
|
-
articlesSampleSize?: number;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
export declare class RequestArticlesRecentActivity extends RequestArticles {
|
|
146
|
-
resultType: string;
|
|
147
|
-
params: any;
|
|
148
|
-
constructor({ maxArticleCount, updatesAfterNewsUri, updatesafterBlogUri, updatesAfterPrUri, updatesAfterTm, updatesAfterMinsAgo, updatesUntilTm, updatesUntilMinsAgo, mandatorySourceLocation, returnInfo, ...unsupported }?: {
|
|
149
|
-
maxArticleCount?: number;
|
|
150
|
-
updatesAfterNewsUri?: any;
|
|
151
|
-
updatesafterBlogUri?: any;
|
|
152
|
-
updatesAfterPrUri?: any;
|
|
153
|
-
updatesAfterTm?: any;
|
|
154
|
-
updatesAfterMinsAgo?: any;
|
|
155
|
-
updatesUntilTm?: any;
|
|
156
|
-
updatesUntilMinsAgo?: any;
|
|
157
|
-
mandatorySourceLocation?: boolean;
|
|
158
|
-
returnInfo?: any;
|
|
159
|
-
});
|
|
160
|
-
}
|
|
1
|
+
import { Query } from "./base";
|
|
2
|
+
import { EventRegistry } from "./eventRegistry";
|
|
3
|
+
import { ReturnInfo } from "./returnInfo";
|
|
4
|
+
import { ER } from "./types";
|
|
5
|
+
import { Data } from "./data";
|
|
6
|
+
export declare class QueryArticles extends Query<RequestArticles> {
|
|
7
|
+
constructor(args?: ER.QueryArticles.Arguments);
|
|
8
|
+
get path(): string;
|
|
9
|
+
setRequestedResult(requestArticles: any): void;
|
|
10
|
+
static initWithArticleUriList(...args: any[]): any;
|
|
11
|
+
static initWithArticleUriWgtList(...args: any[]): any;
|
|
12
|
+
static initWithComplexQuery(...args: any[]): any;
|
|
13
|
+
}
|
|
14
|
+
export declare class QueryArticlesIter extends QueryArticles implements AsyncIterable<Data.Article> {
|
|
15
|
+
private readonly er;
|
|
16
|
+
private readonly sortBy;
|
|
17
|
+
private readonly sortByAsc;
|
|
18
|
+
private readonly returnInfo;
|
|
19
|
+
private readonly maxItems;
|
|
20
|
+
private page;
|
|
21
|
+
private pages;
|
|
22
|
+
private items;
|
|
23
|
+
private returnedSoFar;
|
|
24
|
+
private index;
|
|
25
|
+
private callback;
|
|
26
|
+
private doneCallback;
|
|
27
|
+
private errorMessage;
|
|
28
|
+
constructor(er: EventRegistry, args?: {
|
|
29
|
+
[name: string]: any;
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* Async Iterator function that returns the next item in the list of articles
|
|
33
|
+
*/
|
|
34
|
+
[Symbol.asyncIterator](): AsyncIterator<Data.Article>;
|
|
35
|
+
count(): Promise<number>;
|
|
36
|
+
execQuery(callback: (item: Data.Article) => void, doneCallback?: (error?: string) => void): void;
|
|
37
|
+
static initWithComplexQuery(er: EventRegistry, complexQuery: any, params?: {
|
|
38
|
+
[name: string]: any;
|
|
39
|
+
}): QueryArticlesIter;
|
|
40
|
+
private iterate;
|
|
41
|
+
/**
|
|
42
|
+
* Extract the results according to maxItems
|
|
43
|
+
* @param response response from the backend
|
|
44
|
+
*/
|
|
45
|
+
private extractResults;
|
|
46
|
+
private get current();
|
|
47
|
+
private getNextBatch;
|
|
48
|
+
}
|
|
49
|
+
export declare class RequestArticles {
|
|
50
|
+
}
|
|
51
|
+
export declare class RequestArticlesInfo extends RequestArticles {
|
|
52
|
+
resultType: string;
|
|
53
|
+
params: any;
|
|
54
|
+
constructor(parameters?: ER.RequestArticlesInfoParameters);
|
|
55
|
+
}
|
|
56
|
+
export declare class RequestArticlesUriWgtList extends RequestArticles {
|
|
57
|
+
resultType: string;
|
|
58
|
+
params: any;
|
|
59
|
+
constructor(parameters?: ER.RequestArticlesUriWgtListParameters);
|
|
60
|
+
setPage(page: any): void;
|
|
61
|
+
}
|
|
62
|
+
export declare class RequestArticlesTimeAggr extends RequestArticles {
|
|
63
|
+
resultType: string;
|
|
64
|
+
}
|
|
65
|
+
export declare class RequestArticlesConceptAggr extends RequestArticles {
|
|
66
|
+
resultType: string;
|
|
67
|
+
params: any;
|
|
68
|
+
constructor({ conceptCount, conceptCountPerType, conceptScoring, articlesSampleSize, returnInfo, ...unsupported }?: {
|
|
69
|
+
conceptCount?: number;
|
|
70
|
+
conceptCountPerType?: any;
|
|
71
|
+
conceptScoring?: string;
|
|
72
|
+
articlesSampleSize?: number;
|
|
73
|
+
returnInfo?: ReturnInfo;
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
export declare class RequestArticlesCategoryAggr extends RequestArticles {
|
|
77
|
+
resultType: string;
|
|
78
|
+
params: any;
|
|
79
|
+
constructor({ articlesSampleSize, returnInfo, ...unsupported }?: {
|
|
80
|
+
articlesSampleSize?: number;
|
|
81
|
+
returnInfo?: ReturnInfo;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
export declare class RequestArticlesSourceAggr extends RequestArticles {
|
|
85
|
+
resultType: string;
|
|
86
|
+
params: any;
|
|
87
|
+
constructor({ sourceCount, normalizeBySourceArts, returnInfo, ...unsupported }?: {
|
|
88
|
+
sourceCount?: number;
|
|
89
|
+
normalizeBySourceArts?: boolean;
|
|
90
|
+
returnInfo?: ReturnInfo;
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
export declare class RequestArticlesKeywordAggr extends RequestArticles {
|
|
94
|
+
resultType: string;
|
|
95
|
+
params: any;
|
|
96
|
+
constructor({ articlesSampleSize, ...unsupported }?: {
|
|
97
|
+
articlesSampleSize?: number;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
export declare class RequestArticlesConceptGraph extends RequestArticles {
|
|
101
|
+
resultType: string;
|
|
102
|
+
params: any;
|
|
103
|
+
constructor({ conceptCount, linkCount, articlesSampleSize, skipQueryConcepts, returnInfo, ...unsupported }?: {
|
|
104
|
+
conceptCount?: number;
|
|
105
|
+
linkCount?: number;
|
|
106
|
+
articlesSampleSize?: number;
|
|
107
|
+
skipQueryConcepts?: boolean;
|
|
108
|
+
returnInfo?: ReturnInfo;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
export declare class RequestArticlesConceptMatrix extends RequestArticles {
|
|
112
|
+
resultType: string;
|
|
113
|
+
params: any;
|
|
114
|
+
constructor({ conceptCount, measure, articlesSampleSize, returnInfo, ...unsupported }?: {
|
|
115
|
+
conceptCount?: number;
|
|
116
|
+
measure?: string;
|
|
117
|
+
articlesSampleSize?: number;
|
|
118
|
+
returnInfo?: ReturnInfo;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
export declare class RequestArticlesConceptTrends extends RequestArticles {
|
|
122
|
+
resultType: string;
|
|
123
|
+
params: any;
|
|
124
|
+
constructor(parameters?: ER.RequestArticlesConceptTrendsParameters);
|
|
125
|
+
}
|
|
126
|
+
export declare class RequestArticlesDateMentionAggr extends RequestArticles {
|
|
127
|
+
resultType: string;
|
|
128
|
+
}
|
|
129
|
+
export declare class RequestArticlesRecentActivity extends RequestArticles {
|
|
130
|
+
resultType: string;
|
|
131
|
+
params: any;
|
|
132
|
+
constructor({ maxArticleCount, updatesAfterNewsUri, updatesafterBlogUri, updatesAfterPrUri, updatesAfterTm, updatesAfterMinsAgo, updatesUntilTm, updatesUntilMinsAgo, mandatorySourceLocation, returnInfo, ...unsupported }?: {
|
|
133
|
+
maxArticleCount?: number;
|
|
134
|
+
updatesAfterNewsUri?: any;
|
|
135
|
+
updatesafterBlogUri?: any;
|
|
136
|
+
updatesAfterPrUri?: any;
|
|
137
|
+
updatesAfterTm?: any;
|
|
138
|
+
updatesAfterMinsAgo?: any;
|
|
139
|
+
updatesUntilTm?: any;
|
|
140
|
+
updatesUntilMinsAgo?: any;
|
|
141
|
+
mandatorySourceLocation?: boolean;
|
|
142
|
+
returnInfo?: any;
|
|
143
|
+
});
|
|
144
|
+
}
|