eventregistry 8.10.1 → 8.10.2

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/{src → dist}/types.d.ts +199 -255
  3. package/dist/types.js +3 -0
  4. package/dist/types.js.map +1 -0
  5. package/package.json +6 -5
  6. package/dist/correlations.d.ts +0 -50
  7. package/dist/correlations.js +0 -397
  8. package/dist/correlations.js.map +0 -1
  9. package/examples/autoSuggestionsExamples.ts +0 -46
  10. package/examples/countsExamples.ts +0 -34
  11. package/examples/dailySharesExamples.ts +0 -54
  12. package/examples/eventForTextExamples.ts +0 -32
  13. package/examples/feedOfNewArticlesExamples.ts +0 -82
  14. package/examples/feedOfNewEventsExamples.ts +0 -70
  15. package/examples/queryArticleExamples.ts +0 -42
  16. package/examples/queryArticlesExamples.ts +0 -248
  17. package/examples/queryEventExamples.ts +0 -99
  18. package/examples/queryEventsExamples.ts +0 -232
  19. package/examples/queryMentionsExamples.ts +0 -20
  20. package/examples/topicPageExamples.ts +0 -99
  21. package/examples/trendsExamples.ts +0 -34
  22. package/src/analytics.ts +0 -181
  23. package/src/base.ts +0 -198
  24. package/src/counts.ts +0 -119
  25. package/src/dailyShares.ts +0 -48
  26. package/src/eventForText.ts +0 -61
  27. package/src/eventRegistry.ts +0 -733
  28. package/src/index.ts +0 -125
  29. package/src/info.ts +0 -121
  30. package/src/query.ts +0 -257
  31. package/src/queryArticle.ts +0 -139
  32. package/src/queryArticles.ts +0 -608
  33. package/src/queryEvent.ts +0 -473
  34. package/src/queryEvents.ts +0 -689
  35. package/src/queryMentions.ts +0 -516
  36. package/src/queryStory.ts +0 -152
  37. package/src/recent.ts +0 -63
  38. package/src/returnInfo.ts +0 -363
  39. package/src/topicPage.ts +0 -479
  40. package/src/trends.ts +0 -63
  41. package/test/index.d.ts +0 -18
  42. package/test/jasmine.json +0 -10
  43. package/test/spec/analytics.spec.ts +0 -150
  44. package/test/spec/autoSuggestions.spec.ts +0 -54
  45. package/test/spec/info.spec.ts +0 -84
  46. package/test/spec/invalidQueries.spec.ts +0 -147
  47. package/test/spec/queryArticle.spec.ts +0 -62
  48. package/test/spec/queryArticles.spec.ts +0 -541
  49. package/test/spec/queryArticlesComplex.spec.ts +0 -298
  50. package/test/spec/queryEvent.spec.ts +0 -194
  51. package/test/spec/queryEvents.spec.ts +0 -491
  52. package/test/spec/queryEventsComplex.spec.ts +0 -188
  53. package/test/spec/queryPaging.spec.ts +0 -318
  54. package/test/spec/returnInfo.spec.ts +0 -34
  55. package/test/spec/topicPage.spec.ts +0 -83
  56. package/test/spec/utils.ts +0 -436
  57. package/test/tsconfig.json +0 -31
  58. package/tsconfig.json +0 -32
  59. package/tslint.json +0 -25
@@ -1,25 +1,21 @@
1
1
  import { QueryItems } from "./base";
2
- import { BaseQuery, CombinedQuery} from "./query";
2
+ import { BaseQuery, CombinedQuery } from "./query";
3
3
  import { QueryArticles, RequestArticles } from "./queryArticles";
4
4
  import { RequestEvents } from "./queryEvents";
5
5
  import { RequestMentions } from "./queryMentions";
6
6
  import { ReturnInfo } from "./returnInfo";
7
-
8
7
  /**
9
8
  * Type definitions for different classes and functions from the Event Registry Node JS SDK.
10
9
  */
11
- export module EventRegistryStatic {
12
-
13
- export interface UsageInfo {
10
+ export declare module EventRegistryStatic {
11
+ interface UsageInfo {
14
12
  availableTokens: number;
15
13
  usedTokens: number;
16
14
  }
17
-
18
- export interface ServiceStatus {
15
+ interface ServiceStatus {
19
16
  [name: string]: any;
20
17
  }
21
-
22
- export interface Config {
18
+ interface Config {
23
19
  /**
24
20
  * API key that should be used to make the requests to the Event Registry.
25
21
  * API key is assigned to each user account and can be obtained on this page:
@@ -58,17 +54,11 @@ export module EventRegistryStatic {
58
54
  settingsFName?: string;
59
55
  allowUseOfArchive?: boolean;
60
56
  }
61
-
62
- export type BaseConceptType = "person" | "loc" | "org" | "wiki";
63
-
64
- export type ConceptType = "person" | "loc" | "org" | "wiki" | "entities" | "concepts" | "conceptClass" | "conceptFolder";
65
-
66
- export type SourceType = "place" | "country";
67
-
68
- export type ConceptClassType = "dbpedia" | "custom";
69
-
70
- export type DataType = "news" | "pr" | "blog";
71
-
57
+ type BaseConceptType = "person" | "loc" | "org" | "wiki";
58
+ type ConceptType = "person" | "loc" | "org" | "wiki" | "entities" | "concepts" | "conceptClass" | "conceptFolder";
59
+ type SourceType = "place" | "country";
60
+ type ConceptClassType = "dbpedia" | "custom";
61
+ type DataType = "news" | "pr" | "blog";
72
62
  /**
73
63
  * Options:
74
64
  * * id (internal id),
@@ -82,9 +72,8 @@ export module EventRegistryStatic {
82
72
  * * socialScore (total shares on social media),
83
73
  * * facebookShares (shares on Facebook only)
84
74
  */
85
- export type SortBy = "id" | "date" | "cosSim" | "rel" | "sourceImportance" | "sourceImportanceRank" | "sourceAlexaGlobalRank" | "sourceAlexaCountryRank" | "socialScore" | "facebookShares";
86
-
87
- export interface SuggestConceptsArguments {
75
+ type SortBy = "id" | "date" | "cosSim" | "rel" | "sourceImportance" | "sourceImportanceRank" | "sourceAlexaGlobalRank" | "sourceAlexaCountryRank" | "socialScore" | "facebookShares";
76
+ interface SuggestConceptsArguments {
88
77
  /**
89
78
  * What types of concepts should be returned
90
79
  */
@@ -110,8 +99,7 @@ export module EventRegistryStatic {
110
99
  */
111
100
  returnInfo?: ReturnInfo;
112
101
  }
113
-
114
- export interface SuggestCategoriesArguments {
102
+ interface SuggestCategoriesArguments {
115
103
  /**
116
104
  * page of the results (1, 2, ...)
117
105
  */
@@ -125,8 +113,7 @@ export module EventRegistryStatic {
125
113
  */
126
114
  returnInfo?: ReturnInfo;
127
115
  }
128
-
129
- export interface SuggestNewsSourcesArguments {
116
+ interface SuggestNewsSourcesArguments {
130
117
  /**
131
118
  * page of the results (1, 2, ...)
132
119
  */
@@ -140,8 +127,7 @@ export module EventRegistryStatic {
140
127
  */
141
128
  dataType?: EventRegistryStatic.DataType[] | EventRegistryStatic.DataType;
142
129
  }
143
-
144
- export interface SuggestSourceGroupsArguments {
130
+ interface SuggestSourceGroupsArguments {
145
131
  /**
146
132
  * page of the results (1, 2, ...)
147
133
  */
@@ -151,8 +137,7 @@ export module EventRegistryStatic {
151
137
  */
152
138
  count?: number;
153
139
  }
154
-
155
- export interface SuggestLocationsArguments {
140
+ interface SuggestLocationsArguments {
156
141
  /**
157
142
  * What types of locations are we interested in.
158
143
  */
@@ -178,8 +163,7 @@ export module EventRegistryStatic {
178
163
  */
179
164
  returnInfo?: ReturnInfo;
180
165
  }
181
-
182
- export interface SuggestLocationsAtCoordinateArguments {
166
+ interface SuggestLocationsAtCoordinateArguments {
183
167
  /**
184
168
  * Limit the set of results only to cities (true) or also to general places (false)
185
169
  */
@@ -201,8 +185,7 @@ export module EventRegistryStatic {
201
185
  */
202
186
  returnInfo?: ReturnInfo;
203
187
  }
204
-
205
- export interface SuggestSourcesAtPlaceArguments {
188
+ interface SuggestSourcesAtPlaceArguments {
206
189
  /**
207
190
  * page of the results (1, 2, ...)
208
191
  */
@@ -216,8 +199,7 @@ export module EventRegistryStatic {
216
199
  */
217
200
  dataType?: DataType;
218
201
  }
219
-
220
- export interface SuggestConceptClassesArguments {
202
+ interface SuggestConceptClassesArguments {
221
203
  /**
222
204
  * language in which the prefix is specified
223
205
  */
@@ -243,8 +225,7 @@ export module EventRegistryStatic {
243
225
  */
244
226
  returnInfo?: ReturnInfo;
245
227
  }
246
-
247
- export interface SuggestCustomConceptsArguments {
228
+ interface SuggestCustomConceptsArguments {
248
229
  /**
249
230
  * language in which the prefix is specified
250
231
  */
@@ -266,8 +247,7 @@ export module EventRegistryStatic {
266
247
  */
267
248
  returnInfo?: ReturnInfo;
268
249
  }
269
-
270
- export interface GetConceptUriArguments {
250
+ interface GetConceptUriArguments {
271
251
  /**
272
252
  * language in which the prefix is specified
273
253
  */
@@ -277,8 +257,7 @@ export module EventRegistryStatic {
277
257
  */
278
258
  sources?: EventRegistryStatic.ConceptType[];
279
259
  }
280
-
281
- export interface GetLocationUriArguments {
260
+ interface GetLocationUriArguments {
282
261
  /**
283
262
  * language in which the prefix is specified
284
263
  */
@@ -296,15 +275,13 @@ export module EventRegistryStatic {
296
275
  */
297
276
  sortByDistanceTo?: number[];
298
277
  }
299
-
300
- export interface GetStatsArguments {
278
+ interface GetStatsArguments {
301
279
  addDailyArticles?: boolean;
302
280
  addDailyAnnArticles?: boolean;
303
281
  addDailyDuplArticles?: boolean;
304
282
  addDailyEvents?: boolean;
305
283
  }
306
-
307
- export interface TopicPage {
284
+ interface TopicPage {
308
285
  autoAddArticles: boolean;
309
286
  articleHasDuplicate: "skipHasDuplicates" | "keepOnlyHasDuplicates" | "keepAll";
310
287
  articleHasEvent: "skipArticlesWithoutEvent" | "keepOnlyArticlesWithoutEvent" | "keepAll";
@@ -312,13 +289,43 @@ export module EventRegistryStatic {
312
289
  maxDaysBack: number;
313
290
  articleTreshWgt: number;
314
291
  eventTreshWgt: number;
315
- concepts: Array<{uri: string, wgt: number, required?: boolean, excluded?: boolean}>;
316
- keywords: Array<{keyword: string, wgt: number, required?: boolean, excluded?: boolean}>;
317
- categories: Array<{uri: string, wgt: number, required?: boolean, excluded?: boolean}>;
318
- sources: Array<{uri: string, wgt: number, excluded?: boolean}>;
319
- sourceGroups: Array<{uri: string, wgt: number, excluded?: boolean}>;
320
- sourceLocations: Array<{uri: string, wgt: number, excluded?: boolean}>;
321
- locations: Array<{uri: string, wgt: number}>;
292
+ concepts: Array<{
293
+ uri: string;
294
+ wgt: number;
295
+ required?: boolean;
296
+ excluded?: boolean;
297
+ }>;
298
+ keywords: Array<{
299
+ keyword: string;
300
+ wgt: number;
301
+ required?: boolean;
302
+ excluded?: boolean;
303
+ }>;
304
+ categories: Array<{
305
+ uri: string;
306
+ wgt: number;
307
+ required?: boolean;
308
+ excluded?: boolean;
309
+ }>;
310
+ sources: Array<{
311
+ uri: string;
312
+ wgt: number;
313
+ excluded?: boolean;
314
+ }>;
315
+ sourceGroups: Array<{
316
+ uri: string;
317
+ wgt: number;
318
+ excluded?: boolean;
319
+ }>;
320
+ sourceLocations: Array<{
321
+ uri: string;
322
+ wgt: number;
323
+ excluded?: boolean;
324
+ }>;
325
+ locations: Array<{
326
+ uri: string;
327
+ wgt: number;
328
+ }>;
322
329
  langs: string[];
323
330
  startSourceRankPercentile?: number;
324
331
  endSourceRankPercentile?: number;
@@ -328,37 +335,30 @@ export module EventRegistryStatic {
328
335
  restrictToSetLocations: boolean;
329
336
  dataType: EventRegistryStatic.DataType | EventRegistryStatic.DataType[];
330
337
  }
331
-
332
- export interface TopicPageAddConceptArguments {
338
+ interface TopicPageAddConceptArguments {
333
339
  label?: string;
334
340
  conceptType?: string;
335
341
  required?: boolean;
336
342
  excluded?: boolean;
337
343
  }
338
-
339
- export interface TopicPageAddKeywordArguments {
344
+ interface TopicPageAddKeywordArguments {
340
345
  required?: boolean;
341
346
  excluded?: boolean;
342
347
  }
343
-
344
- export interface TopicPageAddCategoryArguments {
348
+ interface TopicPageAddCategoryArguments {
345
349
  required?: boolean;
346
350
  excluded?: boolean;
347
351
  }
348
-
349
- export interface TopicPageAddSourceArguments {
352
+ interface TopicPageAddSourceArguments {
350
353
  excluded?: boolean;
351
354
  }
352
-
353
- export interface TopicPageAddSourceLocationArguments {
355
+ interface TopicPageAddSourceLocationArguments {
354
356
  excluded?: boolean;
355
357
  }
356
-
357
- export interface TopicPageAddSourceGroupArguments {
358
+ interface TopicPageAddSourceGroupArguments {
358
359
  excluded?: boolean;
359
360
  }
360
-
361
- export interface TopicPageArticles {
361
+ interface TopicPageArticles {
362
362
  /**
363
363
  * Which page of the results to return (default: 1).
364
364
  */
@@ -382,8 +382,7 @@ export module EventRegistryStatic {
382
382
  returnInfo?: ReturnInfo;
383
383
  [name: string]: (string | number | boolean | ReturnInfo) | (string | number | boolean)[];
384
384
  }
385
-
386
- export interface TopicPageEvents {
385
+ interface TopicPageEvents {
387
386
  /**
388
387
  * Which page of the results to return (default: 1).
389
388
  */
@@ -406,9 +405,8 @@ export module EventRegistryStatic {
406
405
  returnInfo?: ReturnInfo;
407
406
  [name: string]: (string | number | boolean | ReturnInfo) | (string | number | boolean)[];
408
407
  }
409
-
410
- export namespace Correlations {
411
- export interface TopConceptArguments {
408
+ namespace Correlations {
409
+ interface TopConceptArguments {
412
410
  /**
413
411
  * An instance of QueryArticles that can be used to limit the space of concept candidates
414
412
  */
@@ -435,8 +433,7 @@ export module EventRegistryStatic {
435
433
  */
436
434
  returnInfo?: ReturnInfo;
437
435
  }
438
-
439
- export interface TopCategoryArguments {
436
+ interface TopCategoryArguments {
440
437
  /**
441
438
  * the number of returned categories for which the exact value of the correlation is computed
442
439
  */
@@ -451,9 +448,8 @@ export module EventRegistryStatic {
451
448
  returnInfo?: ReturnInfo;
452
449
  }
453
450
  }
454
-
455
- export namespace Counts {
456
- export interface Arguments {
451
+ namespace Counts {
452
+ interface Arguments {
457
453
  /**
458
454
  * input source information from which to compute top trends.
459
455
  */
@@ -476,9 +472,8 @@ export module EventRegistryStatic {
476
472
  returnInfo?: ReturnInfo;
477
473
  }
478
474
  }
479
-
480
- export namespace DailyShares {
481
- export interface Arguments {
475
+ namespace DailyShares {
476
+ interface Arguments {
482
477
  /**
483
478
  * Specify the date for which to return top shared articles. If undefined then today is used.
484
479
  */
@@ -493,9 +488,8 @@ export module EventRegistryStatic {
493
488
  returnInfo?: ReturnInfo;
494
489
  }
495
490
  }
496
-
497
- export namespace Analytics {
498
- export interface TrainTopicOnTweetsArguments {
491
+ namespace Analytics {
492
+ interface TrainTopicOnTweetsArguments {
499
493
  /**
500
494
  * Do you want to analyze the content of the tweets and extract the concepts mentioned in them?
501
495
  * If false, only content shared in the articles in the user's tweets will be analyzed.
@@ -534,15 +528,14 @@ export module EventRegistryStatic {
534
528
  */
535
529
  notifyEmailAddress?: string;
536
530
  }
537
- export interface TrainTopicGetTrainedTopicArguments {
531
+ interface TrainTopicGetTrainedTopicArguments {
538
532
  maxConcepts?: number;
539
533
  maxCategories?: number;
540
534
  idfNormalization?: boolean;
541
535
  }
542
536
  }
543
-
544
- export namespace Info {
545
- export interface GetSourceInfoArguments {
537
+ namespace Info {
538
+ interface GetSourceInfoArguments {
546
539
  /**
547
540
  * single source uri or a list of source uris for which to return information
548
541
  */
@@ -552,8 +545,7 @@ export module EventRegistryStatic {
552
545
  */
553
546
  returnInfo?: ReturnInfo;
554
547
  }
555
-
556
- export interface GetConceptInfoArguments {
548
+ interface GetConceptInfoArguments {
557
549
  /**
558
550
  * single concept uri or a list of concept uris for which to return information
559
551
  */
@@ -563,8 +555,7 @@ export module EventRegistryStatic {
563
555
  */
564
556
  returnInfo?: ReturnInfo;
565
557
  }
566
-
567
- export interface GetCategoryInfoArguments {
558
+ interface GetCategoryInfoArguments {
568
559
  /**
569
560
  * single category uri or a list of category uris for which to return information
570
561
  */
@@ -575,9 +566,8 @@ export module EventRegistryStatic {
575
566
  returnInfo?: ReturnInfo;
576
567
  }
577
568
  }
578
-
579
- export namespace Query {
580
- export interface BaseQueryArguments {
569
+ namespace Query {
570
+ interface BaseQueryArguments {
581
571
  /**
582
572
  * Keyword(s) to query. Either undefined, string or QueryItems.
583
573
  */
@@ -643,8 +633,7 @@ export module EventRegistryStatic {
643
633
  */
644
634
  exclude?: BaseQuery | CombinedQuery;
645
635
  }
646
-
647
- export interface ComplexArticleQueryArguments {
636
+ interface ComplexArticleQueryArguments {
648
637
  /**
649
638
  * Some articles can be duplicates of other articles. What should be done with them.
650
639
  * Possible values are:
@@ -681,15 +670,13 @@ export module EventRegistryStatic {
681
670
  startSourceRankPercentile?: number;
682
671
  endSourceRankPercentile?: number;
683
672
  }
684
-
685
- export interface ComplexEventQueryArguments {
673
+ interface ComplexEventQueryArguments {
686
674
  minSentiment?: number;
687
675
  maxSentiment?: number;
688
676
  }
689
677
  }
690
-
691
- export namespace QueryArticle {
692
- export interface RequestArticleSimilarArticlesArguments {
678
+ namespace QueryArticle {
679
+ interface RequestArticleSimilarArticlesArguments {
693
680
  /**
694
681
  * page of the articles
695
682
  */
@@ -711,8 +698,7 @@ export module EventRegistryStatic {
711
698
  */
712
699
  returnInfo?: ReturnInfo;
713
700
  }
714
-
715
- export interface RequestArticleDuplicatedArticlesArguments {
701
+ interface RequestArticleDuplicatedArticlesArguments {
716
702
  /**
717
703
  * page of the articles
718
704
  */
@@ -735,10 +721,8 @@ export module EventRegistryStatic {
735
721
  returnInfo?: ReturnInfo;
736
722
  }
737
723
  }
738
-
739
- // tslint:disable-next-line:no-shadowed-variable
740
- export namespace QueryArticles {
741
- export interface Arguments {
724
+ namespace QueryArticles {
725
+ interface Arguments {
742
726
  /**
743
727
  * Find articles that mention the specified keywords.
744
728
  * A single keyword/phrase can be provided as a string, multiple keywords/phrases can be provided as a list of strings.
@@ -903,9 +887,7 @@ export module EventRegistryStatic {
903
887
  requestedResult?: RequestArticles;
904
888
  }
905
889
  }
906
-
907
- export namespace QueryEvent {
908
-
890
+ namespace QueryEvent {
909
891
  /**
910
892
  * Sorting options:
911
893
  * - undefined (no specific sorting),
@@ -918,13 +900,10 @@ export module EventRegistryStatic {
918
900
  * - socialScore (total shares on social media),
919
901
  * - facebookShares (shares on Facebook only)
920
902
  */
921
- export type SortByOptions = "id" | "date" | "cosSim" | "sourceImportance" | "sourceImportanceRank" | "sourceAlexaGlobalRank" | "sourceAlexaCountryRank" | "socialScore" | "facebookShares";
922
-
923
- // tslint:disable-next-line:no-empty-interface
924
- export interface RequestEvent {
925
-
903
+ type SortByOptions = "id" | "date" | "cosSim" | "sourceImportance" | "sourceImportanceRank" | "sourceAlexaGlobalRank" | "sourceAlexaCountryRank" | "socialScore" | "facebookShares";
904
+ interface RequestEvent {
926
905
  }
927
- export interface IteratorArguments {
906
+ interface IteratorArguments {
928
907
  /**
929
908
  * Array or a single language in which to return the list of matching articles
930
909
  */
@@ -973,8 +952,7 @@ export module EventRegistryStatic {
973
952
  */
974
953
  maxSentiment?: number;
975
954
  }
976
-
977
- export interface RequestEventArticlesArguments {
955
+ interface RequestEventArticlesArguments {
978
956
  /**
979
957
  * page of the articles to return (1, 2, ...)
980
958
  */
@@ -1015,8 +993,7 @@ export module EventRegistryStatic {
1015
993
  startSourceRankPercentile?: number;
1016
994
  endSourceRankPercentile?: number;
1017
995
  }
1018
-
1019
- export interface RequestEventArticleUriWgtsArguments {
996
+ interface RequestEventArticleUriWgtsArguments {
1020
997
  /**
1021
998
  * a single language or an array of languages in which to return the articles
1022
999
  */
@@ -1030,8 +1007,7 @@ export module EventRegistryStatic {
1030
1007
  */
1031
1008
  sortByAsc?: boolean;
1032
1009
  }
1033
-
1034
- export interface RequestEventArticleTrendArguments {
1010
+ interface RequestEventArticleTrendArguments {
1035
1011
  /**
1036
1012
  * languages for which to compute the trends
1037
1013
  */
@@ -1053,12 +1029,14 @@ export module EventRegistryStatic {
1053
1029
  */
1054
1030
  returnInfo?: ReturnInfo;
1055
1031
  }
1056
-
1057
- export interface RequestEventSimilarEventsArguments {
1032
+ interface RequestEventSimilarEventsArguments {
1058
1033
  /**
1059
1034
  * array of concepts and their importance, e.g. [{ "uri": "http://en.wikipedia.org/wiki/Barack_Obama", "wgt": 100 }, ...]
1060
1035
  */
1061
- conceptInfoList?: Array<{uri: string, wgt: number}>;
1036
+ conceptInfoList?: Array<{
1037
+ uri: string;
1038
+ wgt: number;
1039
+ }>;
1062
1040
  /**
1063
1041
  * number of similar events to return (at most 50)
1064
1042
  */
@@ -1082,11 +1060,14 @@ export module EventRegistryStatic {
1082
1060
  */
1083
1061
  returnInfo?: ReturnInfo;
1084
1062
  }
1085
- export interface RequestEventSimilarStoriesArguments {
1063
+ interface RequestEventSimilarStoriesArguments {
1086
1064
  /**
1087
1065
  * array of concepts and their importance, e.g. [{ "uri": "http://en.wikipedia.org/wiki/Barack_Obama", "wgt": 100 }, ...]
1088
1066
  */
1089
- conceptInfoList?: Array<{uri: string, wgt: number}>;
1067
+ conceptInfoList?: Array<{
1068
+ uri: string;
1069
+ wgt: number;
1070
+ }>;
1090
1071
  /**
1091
1072
  * number of similar stories to return (at most 5')
1092
1073
  */
@@ -1105,8 +1086,8 @@ export module EventRegistryStatic {
1105
1086
  returnInfo?: ReturnInfo;
1106
1087
  }
1107
1088
  }
1108
- export namespace QueryMentions {
1109
- export interface Arguments {
1089
+ namespace QueryMentions {
1090
+ interface Arguments {
1110
1091
  eventTypeUri?: string | string[] | QueryItems;
1111
1092
  keywords?: string | string[] | QueryItems;
1112
1093
  conceptUri?: string | string[] | QueryItems;
@@ -1136,10 +1117,9 @@ export module EventRegistryStatic {
1136
1117
  maxSentiment?: number;
1137
1118
  requestedResult?: RequestMentions;
1138
1119
  }
1139
- export interface IteratorArguments extends Arguments {
1120
+ interface IteratorArguments extends Arguments {
1140
1121
  }
1141
-
1142
- export interface RequestMentionsUriWgtListArguments {
1122
+ interface RequestMentionsUriWgtListArguments {
1143
1123
  /**
1144
1124
  * page of the results to return (1, 2, ...)
1145
1125
  */
@@ -1162,50 +1142,45 @@ export module EventRegistryStatic {
1162
1142
  */
1163
1143
  sortByAsc?: boolean;
1164
1144
  }
1165
-
1166
- export interface RequestMentionsConceptAggrArguments {
1145
+ interface RequestMentionsConceptAggrArguments {
1167
1146
  /**
1168
1147
  * number of top concepts to return
1169
1148
  */
1170
- conceptCount?: number;
1171
- /**
1172
- * on what sample of results should the aggregate be computed
1173
- */
1174
- mentionsSampleSize?: number;
1175
- /**
1176
- * what details about the concepts should be included in the returned information
1177
- */
1178
- returnInfo?: ReturnInfo;
1179
- /**
1180
- * how should the top concepts be computed. Possible values are
1181
- * "importance" (takes into account how frequently a concept is mentioned and how relevant it is in an mention),
1182
- * "frequency" (ranks the concepts simply by how frequently the concept is mentioned in the results) and
1183
- * "uniqueness" (computes what are the top concepts that are frequently mentioned in the results of your search query but less frequently mentioned in the news in general)
1184
- */
1185
- conceptScoring?: "importance" | "frequency" | "uniqueness"
1186
- /**
1187
- * if you wish to limit the number of top concepts per type (person, org, loc, wiki) then set this to some number.
1188
- * If you want to get equal number of concepts for each type then set conceptCountPerType to conceptCount/4 (since there are 4 concept types)
1189
- */
1190
- conceptCountPerType?: number;
1191
- }
1192
-
1193
- export interface RequestMentionsCategoryAggrArguments {
1149
+ conceptCount?: number;
1150
+ /**
1151
+ * on what sample of results should the aggregate be computed
1152
+ */
1153
+ mentionsSampleSize?: number;
1154
+ /**
1155
+ * what details about the concepts should be included in the returned information
1156
+ */
1157
+ returnInfo?: ReturnInfo;
1158
+ /**
1159
+ * how should the top concepts be computed. Possible values are
1160
+ * "importance" (takes into account how frequently a concept is mentioned and how relevant it is in an mention),
1161
+ * "frequency" (ranks the concepts simply by how frequently the concept is mentioned in the results) and
1162
+ * "uniqueness" (computes what are the top concepts that are frequently mentioned in the results of your search query but less frequently mentioned in the news in general)
1163
+ */
1164
+ conceptScoring?: "importance" | "frequency" | "uniqueness";
1165
+ /**
1166
+ * if you wish to limit the number of top concepts per type (person, org, loc, wiki) then set this to some number.
1167
+ * If you want to get equal number of concepts for each type then set conceptCountPerType to conceptCount/4 (since there are 4 concept types)
1168
+ */
1169
+ conceptCountPerType?: number;
1170
+ }
1171
+ interface RequestMentionsCategoryAggrArguments {
1194
1172
  mentionsSampleSize?: number;
1195
1173
  returnInfo?: ReturnInfo;
1196
1174
  }
1197
-
1198
- export interface RequestMentionsSourceAggrArguments {
1175
+ interface RequestMentionsSourceAggrArguments {
1199
1176
  sourceCount?: number;
1200
1177
  normalizeBySourceArts?: boolean;
1201
1178
  returnInfo?: ReturnInfo;
1202
1179
  }
1203
-
1204
- export interface RequestMentionsKeywordAggrArguments {
1180
+ interface RequestMentionsKeywordAggrArguments {
1205
1181
  mentionsSampleSize?: number;
1206
1182
  }
1207
-
1208
- export interface RequestMentionsConceptGraphArguments {
1183
+ interface RequestMentionsConceptGraphArguments {
1209
1184
  /**
1210
1185
  * number of top sources to return
1211
1186
  */
@@ -1214,43 +1189,41 @@ export module EventRegistryStatic {
1214
1189
  /**
1215
1190
  * on what sample of results should the aggregate be computed
1216
1191
  */
1217
- mentionsSampleSize?: number;
1192
+ mentionsSampleSize?: number;
1218
1193
  /**
1219
1194
  * what details about the concepts should be included in the returned information
1220
1195
  */
1221
1196
  returnInfo?: ReturnInfo;
1222
1197
  skipQueryConcepts?: boolean;
1223
1198
  }
1224
-
1225
- export interface RequestMentionsRecentActivityArguments {
1199
+ interface RequestMentionsRecentActivityArguments {
1226
1200
  /**
1227
1201
  * max mentions to return
1228
1202
  */
1229
- maxMentionCount?: number;
1230
- updatesAfterUri?: string;
1231
- /**
1232
- * the time after which the events were added/updated (returned by previous call to the same method)
1233
- */
1234
- updatesAfterTm?: string | Date;
1235
- /**
1236
- * how many minutes into the past should we check (set either this or updatesAfterTm property, but not both)
1237
- */
1238
- updatesAfterMinsAgo?: number;
1239
- updatesUntilTm?: string | Date;
1240
- updatesUntilMinsAgo?: number;
1241
- /**
1242
- * return only events that have a geographic location assigned to them
1243
- */
1244
- mandatorySourceLocation?: boolean;
1245
- /**
1246
- * what details should be included in the returned information
1247
- */
1248
- returnInfo?: ReturnInfo;
1203
+ maxMentionCount?: number;
1204
+ updatesAfterUri?: string;
1205
+ /**
1206
+ * the time after which the events were added/updated (returned by previous call to the same method)
1207
+ */
1208
+ updatesAfterTm?: string | Date;
1209
+ /**
1210
+ * how many minutes into the past should we check (set either this or updatesAfterTm property, but not both)
1211
+ */
1212
+ updatesAfterMinsAgo?: number;
1213
+ updatesUntilTm?: string | Date;
1214
+ updatesUntilMinsAgo?: number;
1215
+ /**
1216
+ * return only events that have a geographic location assigned to them
1217
+ */
1218
+ mandatorySourceLocation?: boolean;
1219
+ /**
1220
+ * what details should be included in the returned information
1221
+ */
1222
+ returnInfo?: ReturnInfo;
1249
1223
  }
1250
1224
  }
1251
-
1252
- export namespace QueryEvents {
1253
- export interface Arguments {
1225
+ namespace QueryEvents {
1226
+ interface Arguments {
1254
1227
  /**
1255
1228
  * find events where articles mention all the specified keywords.
1256
1229
  * A single keyword/phrase can be provided as a string,
@@ -1413,7 +1386,7 @@ export module EventRegistryStatic {
1413
1386
  */
1414
1387
  requestedResult?: RequestEvents;
1415
1388
  }
1416
- export interface IteratorArguments extends Arguments {
1389
+ interface IteratorArguments extends Arguments {
1417
1390
  /**
1418
1391
  * how should the resulting events be sorted. Options:
1419
1392
  * - none (no specific sorting),
@@ -1437,7 +1410,7 @@ export module EventRegistryStatic {
1437
1410
  maxItems?: number;
1438
1411
  returnInfo?: ReturnInfo;
1439
1412
  }
1440
- export interface RequestEventsInfoArguments {
1413
+ interface RequestEventsInfoArguments {
1441
1414
  /**
1442
1415
  * page of the results to return (1, 2, ...)
1443
1416
  */
@@ -1454,7 +1427,7 @@ export module EventRegistryStatic {
1454
1427
  * - size (number of articles),
1455
1428
  * - socialScore (amount of shares in social media)
1456
1429
  */
1457
- sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1430
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1458
1431
  /**
1459
1432
  * should the results be sorted in ascending order (true) or descending (false)
1460
1433
  */
@@ -1464,7 +1437,7 @@ export module EventRegistryStatic {
1464
1437
  */
1465
1438
  returnInfo?: ReturnInfo;
1466
1439
  }
1467
- export interface RequestEventsUriListArguments {
1440
+ interface RequestEventsUriListArguments {
1468
1441
  /**
1469
1442
  * page of the results to return (1, 2, ...)
1470
1443
  */
@@ -1481,14 +1454,13 @@ export module EventRegistryStatic {
1481
1454
  * - size (number of articles),
1482
1455
  * - socialScore (amount of shares in social media)
1483
1456
  */
1484
- sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1457
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1485
1458
  /**
1486
1459
  * should the results be sorted in ascending order (true) or descending (false)
1487
1460
  */
1488
1461
  sortByAsc?: boolean;
1489
1462
  }
1490
-
1491
- export interface RequestEventsUriWgtListArguments {
1463
+ interface RequestEventsUriWgtListArguments {
1492
1464
  /**
1493
1465
  * page of the results to return (1, 2, ...)
1494
1466
  */
@@ -1511,8 +1483,7 @@ export module EventRegistryStatic {
1511
1483
  */
1512
1484
  sortByAsc?: boolean;
1513
1485
  }
1514
-
1515
- export interface RequestEventsLocAggrArguments {
1486
+ interface RequestEventsLocAggrArguments {
1516
1487
  /**
1517
1488
  * sample of events to use to compute the location aggregate
1518
1489
  */
@@ -1522,8 +1493,7 @@ export module EventRegistryStatic {
1522
1493
  */
1523
1494
  returnInfo?: ReturnInfo;
1524
1495
  }
1525
-
1526
- export interface RequestEventsLocTimeAggrArguments {
1496
+ interface RequestEventsLocTimeAggrArguments {
1527
1497
  /**
1528
1498
  * sample of events to use to compute the location aggregate
1529
1499
  */
@@ -1533,8 +1503,7 @@ export module EventRegistryStatic {
1533
1503
  */
1534
1504
  returnInfo?: ReturnInfo;
1535
1505
  }
1536
-
1537
- export interface RequestEventsConceptAggrArguments {
1506
+ interface RequestEventsConceptAggrArguments {
1538
1507
  /**
1539
1508
  * number of top concepts to return
1540
1509
  */
@@ -1548,7 +1517,7 @@ export module EventRegistryStatic {
1548
1517
  */
1549
1518
  returnInfo?: ReturnInfo;
1550
1519
  }
1551
- export interface RequestEventsConceptGraphArguments {
1520
+ interface RequestEventsConceptGraphArguments {
1552
1521
  /**
1553
1522
  * number of top concepts to return
1554
1523
  */
@@ -1566,8 +1535,7 @@ export module EventRegistryStatic {
1566
1535
  */
1567
1536
  returnInfo?: ReturnInfo;
1568
1537
  }
1569
-
1570
- export interface RequestEventsConceptMatrixArguments {
1538
+ interface RequestEventsConceptMatrixArguments {
1571
1539
  /**
1572
1540
  * number of top concepts to return
1573
1541
  */
@@ -1585,8 +1553,7 @@ export module EventRegistryStatic {
1585
1553
  */
1586
1554
  returnInfo?: ReturnInfo;
1587
1555
  }
1588
-
1589
- export interface RequestEventsConceptTrendsArguments {
1556
+ interface RequestEventsConceptTrendsArguments {
1590
1557
  /**
1591
1558
  * number of top concepts to return
1592
1559
  */
@@ -1600,8 +1567,7 @@ export module EventRegistryStatic {
1600
1567
  */
1601
1568
  conceptUris?: string[];
1602
1569
  }
1603
-
1604
- export interface RequestEventsSourceAggrArguments {
1570
+ interface RequestEventsSourceAggrArguments {
1605
1571
  /**
1606
1572
  * number of top sources to return
1607
1573
  */
@@ -1615,8 +1581,7 @@ export module EventRegistryStatic {
1615
1581
  */
1616
1582
  returnInfo?: ReturnInfo;
1617
1583
  }
1618
-
1619
- export interface RequestEventsDateMentionAggrArguments {
1584
+ interface RequestEventsDateMentionAggrArguments {
1620
1585
  /**
1621
1586
  * ignore events that don't have a date that is more than this number of days apart from the tested event
1622
1587
  */
@@ -1634,8 +1599,7 @@ export module EventRegistryStatic {
1634
1599
  */
1635
1600
  returnInfo?: ReturnInfo;
1636
1601
  }
1637
-
1638
- export interface RequestEventsEventClustersArguments {
1602
+ interface RequestEventsEventClustersArguments {
1639
1603
  /**
1640
1604
  * number of keywords to report in each of the clusters
1641
1605
  */
@@ -1649,8 +1613,7 @@ export module EventRegistryStatic {
1649
1613
  */
1650
1614
  returnInfo?: ReturnInfo;
1651
1615
  }
1652
-
1653
- export interface RequestEventsRecentActivityArguments {
1616
+ interface RequestEventsRecentActivityArguments {
1654
1617
  /**
1655
1618
  * max events to return
1656
1619
  */
@@ -1677,12 +1640,11 @@ export module EventRegistryStatic {
1677
1640
  returnInfo?: ReturnInfo;
1678
1641
  }
1679
1642
  }
1680
- // tslint:disable-next-line:no-shadowed-variable
1681
- export namespace ReturnInfo {
1643
+ namespace ReturnInfo {
1682
1644
  /**
1683
1645
  * What information about an article should be returned by the API call
1684
1646
  */
1685
- export interface ArticleInfo {
1647
+ interface ArticleInfo {
1686
1648
  /**
1687
1649
  * max length of the article body (use -1 for full body, 0 for empty)
1688
1650
  */
@@ -1761,11 +1723,10 @@ export module EventRegistryStatic {
1761
1723
  storyUri?: boolean;
1762
1724
  [name: string]: boolean | string | number;
1763
1725
  }
1764
-
1765
1726
  /**
1766
1727
  * What information about an article should be returned by the API call
1767
1728
  */
1768
- export interface ArticleInfoFlags {
1729
+ interface ArticleInfoFlags {
1769
1730
  /**
1770
1731
  * max length of the article body (use -1 for full body, 0 for empty)
1771
1732
  */
@@ -1843,11 +1804,10 @@ export module EventRegistryStatic {
1843
1804
  */
1844
1805
  IncludeArticleStoryUri?: boolean;
1845
1806
  }
1846
-
1847
1807
  /**
1848
1808
  * What information about a story (cluster of articles) should be returned by the API call
1849
1809
  */
1850
- export interface StoryInfoFlags {
1810
+ interface StoryInfoFlags {
1851
1811
  /**
1852
1812
  * core stats about the story
1853
1813
  */
@@ -1893,11 +1853,10 @@ export module EventRegistryStatic {
1893
1853
  */
1894
1854
  StoryImageCount?: number;
1895
1855
  }
1896
-
1897
1856
  /**
1898
1857
  * What information about a story (cluster of articles) should be returned by the API call
1899
1858
  */
1900
- export interface StoryInfo {
1859
+ interface StoryInfo {
1901
1860
  /**
1902
1861
  * core stats about the story
1903
1862
  */
@@ -1948,11 +1907,10 @@ export module EventRegistryStatic {
1948
1907
  imageCount?: number;
1949
1908
  [name: string]: boolean | string | number;
1950
1909
  }
1951
-
1952
1910
  /**
1953
1911
  * What information about an event should be returned by the API call
1954
1912
  */
1955
- export interface EventInfoFlags {
1913
+ interface EventInfoFlags {
1956
1914
  /**
1957
1915
  * return the title of the event
1958
1916
  */
@@ -1998,11 +1956,10 @@ export module EventRegistryStatic {
1998
1956
  */
1999
1957
  EventImageCount?: number;
2000
1958
  }
2001
-
2002
1959
  /**
2003
1960
  * What information about an event should be returned by the API call
2004
1961
  */
2005
- export interface EventInfo {
1962
+ interface EventInfo {
2006
1963
  /**
2007
1964
  * return the title of the event
2008
1965
  */
@@ -2049,11 +2006,10 @@ export module EventRegistryStatic {
2049
2006
  imageCount?: number;
2050
2007
  [name: string]: boolean | string | number;
2051
2008
  }
2052
-
2053
2009
  /**
2054
2010
  * What information about a news source should be returned by the API call
2055
2011
  */
2056
- export interface SourceInfoFlags {
2012
+ interface SourceInfoFlags {
2057
2013
  /**
2058
2014
  * title of the news source
2059
2015
  */
@@ -2079,11 +2035,10 @@ export module EventRegistryStatic {
2079
2035
  */
2080
2036
  IncludeSourceSocialMedia?: boolean;
2081
2037
  }
2082
-
2083
2038
  /**
2084
2039
  * What information about a news source should be returned by the API call
2085
2040
  */
2086
- export interface SourceInfo {
2041
+ interface SourceInfo {
2087
2042
  /**
2088
2043
  * title of the news source
2089
2044
  */
@@ -2118,23 +2073,20 @@ export module EventRegistryStatic {
2118
2073
  sourceGroups?: boolean;
2119
2074
  [name: string]: boolean | string | number;
2120
2075
  }
2121
-
2122
2076
  /**
2123
2077
  * What information about a category should be returned by the API call
2124
2078
  */
2125
- export interface CategoryInfoFlags {
2079
+ interface CategoryInfoFlags {
2126
2080
  IncludeCategoryTrendingScore?: boolean;
2127
2081
  }
2128
-
2129
2082
  /**
2130
2083
  * What information about a category should be returned by the API call
2131
2084
  */
2132
- export interface CategoryInfo {
2085
+ interface CategoryInfo {
2133
2086
  trendingScore?: boolean;
2134
2087
  [name: string]: boolean | string | number;
2135
2088
  }
2136
-
2137
- export interface ConceptInfoFlags {
2089
+ interface ConceptInfoFlags {
2138
2090
  ConceptType?: ConceptType;
2139
2091
  lang?: string | string[];
2140
2092
  IncludeConceptLabel?: boolean;
@@ -2144,8 +2096,7 @@ export module EventRegistryStatic {
2144
2096
  IncludeConceptTrendingScore?: boolean;
2145
2097
  MaxConceptsPerType?: number;
2146
2098
  }
2147
-
2148
- export interface ConceptInfo {
2099
+ interface ConceptInfo {
2149
2100
  type?: ConceptType | ConceptType[];
2150
2101
  lang?: string | string[];
2151
2102
  label?: boolean;
@@ -2156,8 +2107,7 @@ export module EventRegistryStatic {
2156
2107
  maxConceptsPerType?: number;
2157
2108
  [name: string]: boolean | string | number | (boolean | string | number)[];
2158
2109
  }
2159
-
2160
- export interface LocationInfoFlags {
2110
+ interface LocationInfoFlags {
2161
2111
  label?: boolean;
2162
2112
  wikiUri?: boolean;
2163
2113
  geoNamesId?: boolean;
@@ -2169,8 +2119,7 @@ export module EventRegistryStatic {
2169
2119
  placeFeatureCode?: boolean;
2170
2120
  placeCountry?: boolean;
2171
2121
  }
2172
-
2173
- export interface LocationInfo {
2122
+ interface LocationInfo {
2174
2123
  label?: boolean;
2175
2124
  wikiUri?: boolean;
2176
2125
  geoNamesId?: boolean;
@@ -2183,28 +2132,23 @@ export module EventRegistryStatic {
2183
2132
  placeCountry?: boolean;
2184
2133
  [name: string]: boolean | string | number;
2185
2134
  }
2186
-
2187
- export interface ConceptClassInfoFlags {
2135
+ interface ConceptClassInfoFlags {
2188
2136
  IncludeConceptClassParentLabels?: boolean;
2189
2137
  IncludeConceptClassConcepts?: boolean;
2190
2138
  }
2191
-
2192
- export interface ConceptClassInfo {
2139
+ interface ConceptClassInfo {
2193
2140
  parentLabels?: boolean;
2194
2141
  concepts?: boolean;
2195
2142
  [name: string]: boolean | string | number;
2196
2143
  }
2197
-
2198
- export interface ConceptFolderInfoFlags {
2144
+ interface ConceptFolderInfoFlags {
2199
2145
  IncludeConceptFolderDefinition?: boolean;
2200
2146
  IncludeConceptFolderOwner?: boolean;
2201
2147
  }
2202
-
2203
- export interface ConceptFolderInfo {
2148
+ interface ConceptFolderInfo {
2204
2149
  definition?: boolean;
2205
2150
  owner?: boolean;
2206
2151
  [name: string]: boolean | string | number;
2207
2152
  }
2208
2153
  }
2209
-
2210
2154
  }