eventregistry 9.1.1 → 10.0.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.
Files changed (413) hide show
  1. package/CHANGELOG.md +207 -0
  2. package/LICENSE +21 -21
  3. package/MIGRATION.md +177 -0
  4. package/README.md +292 -234
  5. package/dist/{analytics.d.ts → cjs/analytics.d.ts} +2 -1
  6. package/dist/cjs/analytics.js +174 -0
  7. package/dist/cjs/analytics.js.map +1 -0
  8. package/dist/{base.d.ts → cjs/base.d.ts} +9 -9
  9. package/dist/cjs/base.js +189 -0
  10. package/dist/cjs/base.js.map +1 -0
  11. package/dist/cjs/counts.js +120 -0
  12. package/dist/cjs/counts.js.map +1 -0
  13. package/dist/cjs/dailyShares.js +46 -0
  14. package/dist/cjs/dailyShares.js.map +1 -0
  15. package/dist/{data.d.ts → cjs/data.d.ts} +32 -5
  16. package/dist/cjs/data.js.map +1 -0
  17. package/dist/{eventForText.d.ts → cjs/eventForText.d.ts} +1 -1
  18. package/dist/cjs/eventForText.js +61 -0
  19. package/dist/cjs/eventForText.js.map +1 -0
  20. package/dist/{eventRegistry.d.ts → cjs/eventRegistry.d.ts} +127 -28
  21. package/dist/cjs/eventRegistry.js +887 -0
  22. package/dist/cjs/eventRegistry.js.map +1 -0
  23. package/dist/cjs/fluent/analytics.d.ts +24 -0
  24. package/dist/cjs/fluent/analytics.js +47 -0
  25. package/dist/cjs/fluent/analytics.js.map +1 -0
  26. package/dist/cjs/fluent/articles.d.ts +23 -0
  27. package/dist/cjs/fluent/articles.js +34 -0
  28. package/dist/cjs/fluent/articles.js.map +1 -0
  29. package/dist/cjs/fluent/counts.d.ts +8 -0
  30. package/dist/cjs/fluent/counts.js +17 -0
  31. package/dist/cjs/fluent/counts.js.map +1 -0
  32. package/dist/cjs/fluent/eventForText.d.ts +4 -0
  33. package/dist/cjs/fluent/eventForText.js +8 -0
  34. package/dist/cjs/fluent/eventForText.js.map +1 -0
  35. package/dist/cjs/fluent/events.d.ts +23 -0
  36. package/dist/cjs/fluent/events.js +34 -0
  37. package/dist/cjs/fluent/events.js.map +1 -0
  38. package/dist/cjs/fluent/info.d.ts +10 -0
  39. package/dist/cjs/fluent/info.js +23 -0
  40. package/dist/cjs/fluent/info.js.map +1 -0
  41. package/dist/cjs/fluent/mentions.d.ts +18 -0
  42. package/dist/cjs/fluent/mentions.js +31 -0
  43. package/dist/cjs/fluent/mentions.js.map +1 -0
  44. package/dist/cjs/fluent/recent.d.ts +8 -0
  45. package/dist/cjs/fluent/recent.js +17 -0
  46. package/dist/cjs/fluent/recent.js.map +1 -0
  47. package/dist/cjs/fluent/shares.d.ts +8 -0
  48. package/dist/cjs/fluent/shares.js +17 -0
  49. package/dist/cjs/fluent/shares.js.map +1 -0
  50. package/dist/cjs/fluent/stories.d.ts +8 -0
  51. package/dist/cjs/fluent/stories.js +14 -0
  52. package/dist/cjs/fluent/stories.js.map +1 -0
  53. package/dist/cjs/fluent/topicPages.d.ts +10 -0
  54. package/dist/cjs/fluent/topicPages.js +20 -0
  55. package/dist/cjs/fluent/topicPages.js.map +1 -0
  56. package/dist/cjs/fluent/trends.d.ts +11 -0
  57. package/dist/cjs/fluent/trends.js +23 -0
  58. package/dist/cjs/fluent/trends.js.map +1 -0
  59. package/dist/cjs/helpers/analytics.d.ts +68 -0
  60. package/dist/cjs/helpers/analytics.js +100 -0
  61. package/dist/cjs/helpers/analytics.js.map +1 -0
  62. package/dist/cjs/helpers/articles.d.ts +24 -0
  63. package/dist/cjs/helpers/articles.js +31 -0
  64. package/dist/cjs/helpers/articles.js.map +1 -0
  65. package/dist/cjs/helpers/counts.d.ts +4 -0
  66. package/dist/cjs/helpers/counts.js +12 -0
  67. package/dist/cjs/helpers/counts.js.map +1 -0
  68. package/dist/cjs/helpers/eventForText.d.ts +6 -0
  69. package/dist/cjs/helpers/eventForText.js +13 -0
  70. package/dist/cjs/helpers/eventForText.js.map +1 -0
  71. package/dist/cjs/helpers/events.d.ts +18 -0
  72. package/dist/cjs/helpers/events.js +31 -0
  73. package/dist/cjs/helpers/events.js.map +1 -0
  74. package/dist/cjs/helpers/info.d.ts +6 -0
  75. package/dist/cjs/helpers/info.js +20 -0
  76. package/dist/cjs/helpers/info.js.map +1 -0
  77. package/dist/cjs/helpers/mentions.d.ts +10 -0
  78. package/dist/cjs/helpers/mentions.js +21 -0
  79. package/dist/cjs/helpers/mentions.js.map +1 -0
  80. package/dist/cjs/helpers/recent.d.ts +10 -0
  81. package/dist/cjs/helpers/recent.js +18 -0
  82. package/dist/cjs/helpers/recent.js.map +1 -0
  83. package/dist/cjs/helpers/shares.d.ts +4 -0
  84. package/dist/cjs/helpers/shares.js +12 -0
  85. package/dist/cjs/helpers/shares.js.map +1 -0
  86. package/dist/cjs/helpers/stories.d.ts +7 -0
  87. package/dist/cjs/helpers/stories.js +13 -0
  88. package/dist/cjs/helpers/stories.js.map +1 -0
  89. package/dist/cjs/helpers/topicPages.d.ts +16 -0
  90. package/dist/cjs/helpers/topicPages.js +29 -0
  91. package/dist/cjs/helpers/topicPages.js.map +1 -0
  92. package/dist/cjs/helpers/trends.d.ts +7 -0
  93. package/dist/cjs/helpers/trends.js +20 -0
  94. package/dist/cjs/helpers/trends.js.map +1 -0
  95. package/dist/cjs/helpers/uri.d.ts +42 -0
  96. package/dist/cjs/helpers/uri.js +78 -0
  97. package/dist/cjs/helpers/uri.js.map +1 -0
  98. package/dist/cjs/http.d.ts +18 -0
  99. package/dist/cjs/http.js +88 -0
  100. package/dist/cjs/http.js.map +1 -0
  101. package/dist/cjs/index.d.ts +47 -0
  102. package/dist/{index.js → cjs/index.js} +90 -2
  103. package/dist/cjs/index.js.map +1 -0
  104. package/dist/cjs/info.js +115 -0
  105. package/dist/cjs/info.js.map +1 -0
  106. package/dist/{logger.d.ts → cjs/logger.d.ts} +13 -11
  107. package/dist/cjs/logger.js +179 -0
  108. package/dist/cjs/logger.js.map +1 -0
  109. package/dist/cjs/mutex.d.ts +6 -0
  110. package/dist/cjs/mutex.js +27 -0
  111. package/dist/cjs/mutex.js.map +1 -0
  112. package/dist/cjs/package.json +3 -0
  113. package/dist/{query.d.ts → cjs/query.d.ts} +5 -8
  114. package/dist/cjs/query.js +248 -0
  115. package/dist/cjs/query.js.map +1 -0
  116. package/dist/{queryArticle.d.ts → cjs/queryArticle.d.ts} +5 -5
  117. package/dist/cjs/queryArticle.js +120 -0
  118. package/dist/cjs/queryArticle.js.map +1 -0
  119. package/dist/{queryArticles.d.ts → cjs/queryArticles.d.ts} +40 -73
  120. package/dist/cjs/queryArticles.js +456 -0
  121. package/dist/cjs/queryArticles.js.map +1 -0
  122. package/dist/{queryEvent.d.ts → cjs/queryEvent.d.ts} +6 -6
  123. package/dist/cjs/queryEvent.js +417 -0
  124. package/dist/cjs/queryEvent.js.map +1 -0
  125. package/dist/{queryEvents.d.ts → cjs/queryEvents.d.ts} +30 -39
  126. package/dist/cjs/queryEvents.js +567 -0
  127. package/dist/cjs/queryEvents.js.map +1 -0
  128. package/dist/cjs/queryIterator.d.ts +34 -0
  129. package/dist/cjs/queryIterator.js +77 -0
  130. package/dist/cjs/queryIterator.js.map +1 -0
  131. package/dist/{queryMentions.d.ts → cjs/queryMentions.d.ts} +18 -18
  132. package/dist/cjs/queryMentions.js +440 -0
  133. package/dist/cjs/queryMentions.js.map +1 -0
  134. package/dist/{queryStory.d.ts → cjs/queryStory.d.ts} +23 -23
  135. package/dist/cjs/queryStory.js +120 -0
  136. package/dist/cjs/queryStory.js.map +1 -0
  137. package/dist/{recent.d.ts → cjs/recent.d.ts} +8 -8
  138. package/dist/cjs/recent.js +63 -0
  139. package/dist/cjs/recent.js.map +1 -0
  140. package/dist/{returnInfo.d.ts → cjs/returnInfo.d.ts} +21 -23
  141. package/dist/cjs/returnInfo.js +292 -0
  142. package/dist/cjs/returnInfo.js.map +1 -0
  143. package/dist/{topicPage.d.ts → cjs/topicPage.d.ts} +3 -3
  144. package/dist/cjs/topicPage.js +454 -0
  145. package/dist/cjs/topicPage.js.map +1 -0
  146. package/dist/cjs/topicPages.d.ts +13 -0
  147. package/dist/cjs/topicPages.js +22 -0
  148. package/dist/cjs/topicPages.js.map +1 -0
  149. package/dist/{trends.d.ts → cjs/trends.d.ts} +13 -13
  150. package/dist/cjs/trends.js +64 -0
  151. package/dist/cjs/trends.js.map +1 -0
  152. package/dist/{types.d.ts → cjs/types.d.ts} +135 -33
  153. package/dist/cjs/types.js.map +1 -0
  154. package/dist/cjs/version.d.ts +1 -0
  155. package/dist/cjs/version.js +5 -0
  156. package/dist/cjs/version.js.map +1 -0
  157. package/dist/esm/analytics.d.ts +83 -0
  158. package/dist/esm/analytics.js +170 -0
  159. package/dist/esm/analytics.js.map +1 -0
  160. package/dist/esm/base.d.ts +82 -0
  161. package/dist/esm/base.js +182 -0
  162. package/dist/esm/base.js.map +1 -0
  163. package/dist/esm/counts.d.ts +81 -0
  164. package/dist/esm/counts.js +114 -0
  165. package/dist/esm/counts.js.map +1 -0
  166. package/dist/esm/dailyShares.d.ts +10 -0
  167. package/dist/esm/dailyShares.js +41 -0
  168. package/dist/esm/dailyShares.js.map +1 -0
  169. package/dist/esm/data.d.ts +296 -0
  170. package/dist/esm/data.js +3 -0
  171. package/dist/esm/data.js.map +1 -0
  172. package/dist/esm/eventForText.d.ts +48 -0
  173. package/dist/esm/eventForText.js +57 -0
  174. package/dist/esm/eventForText.js.map +1 -0
  175. package/dist/esm/eventRegistry.d.ts +343 -0
  176. package/dist/esm/eventRegistry.js +849 -0
  177. package/dist/esm/eventRegistry.js.map +1 -0
  178. package/dist/esm/fluent/analytics.d.ts +24 -0
  179. package/dist/esm/fluent/analytics.js +43 -0
  180. package/dist/esm/fluent/analytics.js.map +1 -0
  181. package/dist/esm/fluent/articles.d.ts +23 -0
  182. package/dist/esm/fluent/articles.js +30 -0
  183. package/dist/esm/fluent/articles.js.map +1 -0
  184. package/dist/esm/fluent/counts.d.ts +8 -0
  185. package/dist/esm/fluent/counts.js +13 -0
  186. package/dist/esm/fluent/counts.js.map +1 -0
  187. package/dist/esm/fluent/eventForText.d.ts +4 -0
  188. package/dist/esm/fluent/eventForText.js +5 -0
  189. package/dist/esm/fluent/eventForText.js.map +1 -0
  190. package/dist/esm/fluent/events.d.ts +23 -0
  191. package/dist/esm/fluent/events.js +30 -0
  192. package/dist/esm/fluent/events.js.map +1 -0
  193. package/dist/esm/fluent/info.d.ts +10 -0
  194. package/dist/esm/fluent/info.js +19 -0
  195. package/dist/esm/fluent/info.js.map +1 -0
  196. package/dist/esm/fluent/mentions.d.ts +18 -0
  197. package/dist/esm/fluent/mentions.js +27 -0
  198. package/dist/esm/fluent/mentions.js.map +1 -0
  199. package/dist/esm/fluent/recent.d.ts +8 -0
  200. package/dist/esm/fluent/recent.js +13 -0
  201. package/dist/esm/fluent/recent.js.map +1 -0
  202. package/dist/esm/fluent/shares.d.ts +8 -0
  203. package/dist/esm/fluent/shares.js +13 -0
  204. package/dist/esm/fluent/shares.js.map +1 -0
  205. package/dist/esm/fluent/stories.d.ts +8 -0
  206. package/dist/esm/fluent/stories.js +10 -0
  207. package/dist/esm/fluent/stories.js.map +1 -0
  208. package/dist/esm/fluent/topicPages.d.ts +10 -0
  209. package/dist/esm/fluent/topicPages.js +16 -0
  210. package/dist/esm/fluent/topicPages.js.map +1 -0
  211. package/dist/esm/fluent/trends.d.ts +11 -0
  212. package/dist/esm/fluent/trends.js +19 -0
  213. package/dist/esm/fluent/trends.js.map +1 -0
  214. package/dist/esm/helpers/analytics.d.ts +68 -0
  215. package/dist/esm/helpers/analytics.js +86 -0
  216. package/dist/esm/helpers/analytics.js.map +1 -0
  217. package/dist/esm/helpers/articles.d.ts +24 -0
  218. package/dist/esm/helpers/articles.js +26 -0
  219. package/dist/esm/helpers/articles.js.map +1 -0
  220. package/dist/esm/helpers/counts.d.ts +4 -0
  221. package/dist/esm/helpers/counts.js +8 -0
  222. package/dist/esm/helpers/counts.js.map +1 -0
  223. package/dist/esm/helpers/eventForText.d.ts +6 -0
  224. package/dist/esm/helpers/eventForText.js +10 -0
  225. package/dist/esm/helpers/eventForText.js.map +1 -0
  226. package/dist/esm/helpers/events.d.ts +18 -0
  227. package/dist/esm/helpers/events.js +26 -0
  228. package/dist/esm/helpers/events.js.map +1 -0
  229. package/dist/esm/helpers/info.d.ts +6 -0
  230. package/dist/esm/helpers/info.js +14 -0
  231. package/dist/esm/helpers/info.js.map +1 -0
  232. package/dist/esm/helpers/mentions.d.ts +10 -0
  233. package/dist/esm/helpers/mentions.js +17 -0
  234. package/dist/esm/helpers/mentions.js.map +1 -0
  235. package/dist/esm/helpers/recent.d.ts +10 -0
  236. package/dist/esm/helpers/recent.js +14 -0
  237. package/dist/esm/helpers/recent.js.map +1 -0
  238. package/dist/esm/helpers/shares.d.ts +4 -0
  239. package/dist/esm/helpers/shares.js +8 -0
  240. package/dist/esm/helpers/shares.js.map +1 -0
  241. package/dist/esm/helpers/stories.d.ts +7 -0
  242. package/dist/esm/helpers/stories.js +10 -0
  243. package/dist/esm/helpers/stories.js.map +1 -0
  244. package/dist/esm/helpers/topicPages.d.ts +16 -0
  245. package/dist/esm/helpers/topicPages.js +24 -0
  246. package/dist/esm/helpers/topicPages.js.map +1 -0
  247. package/dist/esm/helpers/trends.d.ts +7 -0
  248. package/dist/esm/helpers/trends.js +14 -0
  249. package/dist/esm/helpers/trends.js.map +1 -0
  250. package/dist/esm/helpers/uri.d.ts +42 -0
  251. package/dist/esm/helpers/uri.js +68 -0
  252. package/dist/esm/helpers/uri.js.map +1 -0
  253. package/dist/esm/http.d.ts +18 -0
  254. package/dist/esm/http.js +85 -0
  255. package/dist/esm/http.js.map +1 -0
  256. package/dist/esm/index.d.ts +47 -0
  257. package/dist/esm/index.js +47 -0
  258. package/dist/esm/index.js.map +1 -0
  259. package/dist/esm/info.d.ts +61 -0
  260. package/dist/esm/info.js +108 -0
  261. package/dist/esm/info.js.map +1 -0
  262. package/dist/esm/logger.d.ts +47 -0
  263. package/dist/esm/logger.js +142 -0
  264. package/dist/esm/logger.js.map +1 -0
  265. package/dist/esm/mutex.d.ts +6 -0
  266. package/dist/esm/mutex.js +23 -0
  267. package/dist/esm/mutex.js.map +1 -0
  268. package/dist/esm/package.json +3 -0
  269. package/dist/esm/query.d.ts +50 -0
  270. package/dist/esm/query.js +240 -0
  271. package/dist/esm/query.js.map +1 -0
  272. package/dist/esm/queryArticle.d.ts +61 -0
  273. package/dist/esm/queryArticle.js +111 -0
  274. package/dist/esm/queryArticle.js.map +1 -0
  275. package/dist/esm/queryArticles.d.ts +111 -0
  276. package/dist/esm/queryArticles.js +438 -0
  277. package/dist/esm/queryArticles.js.map +1 -0
  278. package/dist/esm/queryEvent.d.ts +140 -0
  279. package/dist/esm/queryEvent.js +403 -0
  280. package/dist/esm/queryEvent.js.map +1 -0
  281. package/dist/esm/queryEvents.d.ts +201 -0
  282. package/dist/esm/queryEvents.js +545 -0
  283. package/dist/esm/queryEvents.js.map +1 -0
  284. package/dist/esm/queryIterator.d.ts +34 -0
  285. package/dist/esm/queryIterator.js +73 -0
  286. package/dist/esm/queryIterator.js.map +1 -0
  287. package/dist/esm/queryMentions.d.ts +96 -0
  288. package/dist/esm/queryMentions.js +425 -0
  289. package/dist/esm/queryMentions.js.map +1 -0
  290. package/dist/esm/queryStory.d.ts +58 -0
  291. package/dist/esm/queryStory.js +110 -0
  292. package/dist/esm/queryStory.js.map +1 -0
  293. package/dist/esm/recent.d.ts +23 -0
  294. package/dist/esm/recent.js +58 -0
  295. package/dist/esm/recent.js.map +1 -0
  296. package/dist/esm/returnInfo.d.ts +66 -0
  297. package/dist/esm/returnInfo.js +245 -0
  298. package/dist/esm/returnInfo.js.map +1 -0
  299. package/dist/esm/topicPage.d.ts +157 -0
  300. package/dist/esm/topicPage.js +417 -0
  301. package/dist/esm/topicPage.js.map +1 -0
  302. package/dist/esm/topicPages.d.ts +13 -0
  303. package/dist/esm/topicPages.js +18 -0
  304. package/dist/esm/topicPages.js.map +1 -0
  305. package/dist/esm/trends.d.ts +35 -0
  306. package/dist/esm/trends.js +56 -0
  307. package/dist/esm/trends.js.map +1 -0
  308. package/dist/esm/types.d.ts +2555 -0
  309. package/dist/esm/types.js +2 -0
  310. package/dist/esm/types.js.map +1 -0
  311. package/dist/esm/version.d.ts +1 -0
  312. package/dist/esm/version.js +2 -0
  313. package/dist/esm/version.js.map +1 -0
  314. package/package.json +71 -42
  315. package/src/analytics.ts +197 -0
  316. package/src/base.ts +200 -0
  317. package/src/counts.ts +118 -0
  318. package/src/dailyShares.ts +46 -0
  319. package/src/data.ts +310 -0
  320. package/src/eventForText.ts +60 -0
  321. package/src/eventRegistry.ts +1005 -0
  322. package/src/fluent/analytics.ts +84 -0
  323. package/src/fluent/articles.ts +40 -0
  324. package/src/fluent/counts.ts +15 -0
  325. package/src/fluent/eventForText.ts +10 -0
  326. package/src/fluent/events.ts +40 -0
  327. package/src/fluent/info.ts +23 -0
  328. package/src/fluent/mentions.ts +34 -0
  329. package/src/fluent/recent.ts +15 -0
  330. package/src/fluent/shares.ts +15 -0
  331. package/src/fluent/stories.ts +12 -0
  332. package/src/fluent/topicPages.ts +20 -0
  333. package/src/fluent/trends.ts +34 -0
  334. package/src/helpers/analytics.ts +134 -0
  335. package/src/helpers/articles.ts +42 -0
  336. package/src/helpers/counts.ts +19 -0
  337. package/src/helpers/eventForText.ts +16 -0
  338. package/src/helpers/events.ts +43 -0
  339. package/src/helpers/info.ts +31 -0
  340. package/src/helpers/mentions.ts +27 -0
  341. package/src/helpers/recent.ts +22 -0
  342. package/src/helpers/shares.ts +17 -0
  343. package/src/helpers/stories.ts +16 -0
  344. package/src/helpers/topicPages.ts +28 -0
  345. package/src/helpers/trends.ts +36 -0
  346. package/src/helpers/uri.ts +78 -0
  347. package/src/http.ts +110 -0
  348. package/src/index.ts +205 -0
  349. package/src/info.ts +120 -0
  350. package/src/logger.ts +177 -0
  351. package/src/mutex.ts +22 -0
  352. package/src/query.ts +258 -0
  353. package/src/queryArticle.ts +138 -0
  354. package/src/queryArticles.ts +576 -0
  355. package/src/queryEvent.ts +503 -0
  356. package/src/queryEvents.ts +672 -0
  357. package/src/queryIterator.ts +89 -0
  358. package/src/queryMentions.ts +552 -0
  359. package/src/queryStory.ts +152 -0
  360. package/src/recent.ts +73 -0
  361. package/src/returnInfo.ts +372 -0
  362. package/src/topicPage.ts +481 -0
  363. package/src/topicPages.ts +18 -0
  364. package/src/trends.ts +62 -0
  365. package/src/types.ts +2678 -0
  366. package/src/version.ts +1 -0
  367. package/dist/analytics.js +0 -337
  368. package/dist/analytics.js.map +0 -1
  369. package/dist/base.js +0 -262
  370. package/dist/base.js.map +0 -1
  371. package/dist/counts.js +0 -163
  372. package/dist/counts.js.map +0 -1
  373. package/dist/dailyShares.js +0 -91
  374. package/dist/dailyShares.js.map +0 -1
  375. package/dist/data.js.map +0 -1
  376. package/dist/eventForText.js +0 -127
  377. package/dist/eventForText.js.map +0 -1
  378. package/dist/eventRegistry.js +0 -1099
  379. package/dist/eventRegistry.js.map +0 -1
  380. package/dist/index.d.ts +0 -21
  381. package/dist/index.js.map +0 -1
  382. package/dist/info.js +0 -172
  383. package/dist/info.js.map +0 -1
  384. package/dist/logger.js +0 -156
  385. package/dist/logger.js.map +0 -1
  386. package/dist/query.js +0 -334
  387. package/dist/query.js.map +0 -1
  388. package/dist/queryArticle.js +0 -184
  389. package/dist/queryArticle.js.map +0 -1
  390. package/dist/queryArticles.js +0 -730
  391. package/dist/queryArticles.js.map +0 -1
  392. package/dist/queryEvent.js +0 -588
  393. package/dist/queryEvent.js.map +0 -1
  394. package/dist/queryEvents.js +0 -826
  395. package/dist/queryEvents.js.map +0 -1
  396. package/dist/queryMentions.js +0 -638
  397. package/dist/queryMentions.js.map +0 -1
  398. package/dist/queryStory.js +0 -195
  399. package/dist/queryStory.js.map +0 -1
  400. package/dist/recent.js +0 -200
  401. package/dist/recent.js.map +0 -1
  402. package/dist/returnInfo.js +0 -333
  403. package/dist/returnInfo.js.map +0 -1
  404. package/dist/topicPage.js +0 -600
  405. package/dist/topicPage.js.map +0 -1
  406. package/dist/trends.js +0 -116
  407. package/dist/trends.js.map +0 -1
  408. package/dist/types.js.map +0 -1
  409. /package/dist/{counts.d.ts → cjs/counts.d.ts} +0 -0
  410. /package/dist/{dailyShares.d.ts → cjs/dailyShares.d.ts} +0 -0
  411. /package/dist/{data.js → cjs/data.js} +0 -0
  412. /package/dist/{info.d.ts → cjs/info.d.ts} +0 -0
  413. /package/dist/{types.js → cjs/types.js} +0 -0
package/src/types.ts ADDED
@@ -0,0 +1,2678 @@
1
+ /* eslint-disable @typescript-eslint/no-shadow, @typescript-eslint/no-unused-vars */
2
+ import { QueryItems } from "./base";
3
+ import { BaseQuery, CombinedQuery} from "./query";
4
+ import { QueryArticles, RequestArticles } from "./queryArticles";
5
+ import { RequestEvents } from "./queryEvents";
6
+ import { RequestMentions } from "./queryMentions";
7
+ import { ReturnInfo } from "./returnInfo";
8
+
9
+ /**
10
+ * Type definitions for different classes and functions from the Event Registry Node JS SDK.
11
+ */
12
+ export namespace ER {
13
+
14
+ export type Response<T = SuccessfulResponse<unknown>, E = string> = T & ErrorResponse<E>;
15
+
16
+ export interface SuccessfulResponse<T = unknown> {
17
+ [name: string]: Results<T> | Record<string, Results<T>>;
18
+ }
19
+
20
+ export interface ErrorResponseObject {
21
+ message?: string;
22
+ response?: Record<string, string>;
23
+ }
24
+
25
+ export interface ErrorResponse<E = string> {
26
+ error?: E;
27
+ }
28
+
29
+ export interface Results<T = unknown> {
30
+ count?: number;
31
+ page?: number;
32
+ pages?: number;
33
+ warning?: string;
34
+ results: T[];
35
+ totalResults?: number;
36
+ usedResults?: number;
37
+ }
38
+
39
+ export interface UsageInfo {
40
+ availableTokens: number;
41
+ usedTokens: number;
42
+ }
43
+
44
+ export interface ServiceStatus {
45
+ [name: string]: any;
46
+ }
47
+
48
+ export interface Config {
49
+ /**
50
+ * API key that should be used to make the requests to the Event Registry.
51
+ * API key is assigned to each user account and can be obtained on this page:
52
+ * http://eventregistry.org/me?tab=settings
53
+ */
54
+ apiKey?: string;
55
+ /**
56
+ * Host to use to access the Event Registry backend.
57
+ * @default "https://eventregistry.org"
58
+ */
59
+ host?: string;
60
+ /**
61
+ * Host address to use to perform the analytics api calls.
62
+ * @default "https://analytics.eventregistry.org"
63
+ */
64
+ hostAnalytics?: string;
65
+ /**
66
+ * Log all requests.
67
+ */
68
+ logging?: boolean;
69
+ /**
70
+ * The minimum number of seconds between individual api calls.
71
+ * @default 0.5
72
+ */
73
+ minDelayBetweenRequests?: number;
74
+ /**
75
+ * If a request fails (for example, because ER is down),
76
+ * what is the max number of times the request should be repeated.
77
+ * @default -1
78
+ */
79
+ repeatFailedRequestCount?: number;
80
+ /**
81
+ * If true, additional info about errors etc. will be printed to console.
82
+ */
83
+ verboseOutput?: boolean;
84
+ settingsFName?: string;
85
+ allowUseOfArchive?: boolean;
86
+ }
87
+
88
+ export type BaseConceptType = "person" | "loc" | "org" | "wiki";
89
+
90
+ export type ConceptType = "person" | "loc" | "org" | "wiki" | "entities" | "concepts" | "conceptClass" | "conceptFolder";
91
+
92
+ export type SourceType = "place" | "country";
93
+
94
+ export type ConceptClassType = "dbpedia" | "custom";
95
+
96
+ export type DataType = "news" | "pr" | "blog";
97
+
98
+ /**
99
+ * Options:
100
+ * * id (internal id),
101
+ * * date (publishing date),
102
+ * * cosSim (closeness to the event centroid),
103
+ * * rel (relevance to the query),
104
+ * * sourceImportance (manually curated score of source importance - high value, high importance),
105
+ * * sourceImportanceRank (reverse of sourceImportance),
106
+ * * sourceAlexaGlobalRank (global rank of the news source),
107
+ * * sourceAlexaCountryRank (country rank of the news source),
108
+ * * socialScore (total shares on social media),
109
+ * * facebookShares (shares on Facebook only)
110
+ */
111
+ export type SortBy = "id" | "date" | "cosSim" | "rel" | "sourceImportance" | "sourceImportanceRank" | "sourceAlexaGlobalRank" | "sourceAlexaCountryRank" | "socialScore" | "facebookShares";
112
+
113
+ export interface SuggestConceptsArguments {
114
+ /**
115
+ * What types of concepts should be returned
116
+ */
117
+ sources?: ER.ConceptType[];
118
+ /**
119
+ * Language in which the prefix is specified
120
+ */
121
+ lang?: string | string[];
122
+ /**
123
+ * Languages in which the label(s) for the concepts are to be returned
124
+ */
125
+ conceptLang?: string | string[];
126
+ /**
127
+ * Page of the results (1, 2, ...)
128
+ */
129
+ page?: number;
130
+ /**
131
+ * Number of returned suggestions per page
132
+ */
133
+ count?: number;
134
+ /**
135
+ * What details about concepts should be included in the returned information
136
+ */
137
+ returnInfo?: ReturnInfo;
138
+ }
139
+
140
+ export interface SuggestCategoriesArguments {
141
+ /**
142
+ * page of the results (1, 2, ...)
143
+ */
144
+ page?: number;
145
+ /**
146
+ * number of returned suggestions
147
+ */
148
+ count?: number;
149
+ /**
150
+ * what details about categories should be included in the returned information
151
+ */
152
+ returnInfo?: ReturnInfo;
153
+ }
154
+
155
+ export interface SuggestNewsSourcesArguments {
156
+ /**
157
+ * page of the results (1, 2, ...)
158
+ */
159
+ page?: number;
160
+ /**
161
+ * number of returned suggestions
162
+ */
163
+ count?: number;
164
+ /**
165
+ * Suggest sources that provide content in these data types
166
+ */
167
+ dataType?: ER.DataType[] | ER.DataType;
168
+ }
169
+
170
+ export interface SuggestSourceGroupsArguments {
171
+ /**
172
+ * page of the results (1, 2, ...)
173
+ */
174
+ page?: number;
175
+ /**
176
+ * number of returned suggestions
177
+ */
178
+ count?: number;
179
+ }
180
+
181
+ export interface SuggestLocationsArguments {
182
+ /**
183
+ * What types of locations are we interested in.
184
+ */
185
+ sources?: ER.SourceType[];
186
+ /**
187
+ * Language in which the prefix is specified
188
+ */
189
+ lang?: string;
190
+ /**
191
+ * Number of returned suggestions
192
+ */
193
+ count?: number;
194
+ /**
195
+ * If provided, then return only those locations that are inside the specified country
196
+ */
197
+ countryUri?: string;
198
+ /**
199
+ * If provided, then return the locations sorted by the distance to the (lat, long) provided in the tuple
200
+ */
201
+ sortByDistanceTo?: number[];
202
+ /**
203
+ * What details about locations should be included in the returned information
204
+ */
205
+ returnInfo?: ReturnInfo;
206
+ }
207
+
208
+ export interface SuggestLocationsAtCoordinateArguments {
209
+ /**
210
+ * Limit the set of results only to cities (true) or also to general places (false)
211
+ */
212
+ limitToCities?: boolean;
213
+ /**
214
+ * Language in which the location label should be returned
215
+ */
216
+ lang?: string;
217
+ /**
218
+ * Number of returned suggestions
219
+ */
220
+ count?: number;
221
+ /**
222
+ * Ignore locations that don't have a wiki page and can not be used for concept search
223
+ */
224
+ ignoreNonWiki?: boolean;
225
+ /**
226
+ * What details about locations should be included in the returned information
227
+ */
228
+ returnInfo?: ReturnInfo;
229
+ }
230
+
231
+ export interface SuggestSourcesAtPlaceArguments {
232
+ /**
233
+ * page of the results (1, 2, ...)
234
+ */
235
+ page?: number;
236
+ /**
237
+ * number of returned sources
238
+ */
239
+ count?: number;
240
+ /**
241
+ * type of the news source ("news", "pr", "blog" or a list of any of those)
242
+ */
243
+ dataType?: DataType;
244
+ }
245
+
246
+ export interface SuggestConceptClassesArguments {
247
+ /**
248
+ * language in which the prefix is specified
249
+ */
250
+ lang?: string;
251
+ /**
252
+ * languages in which the label(s) for the concepts are to be returned
253
+ */
254
+ conceptLang?: string;
255
+ /**
256
+ * what types of concepts classes should be returned.
257
+ */
258
+ source?: ER.ConceptClassType[];
259
+ /**
260
+ * page of the results (1, 2, ...)
261
+ */
262
+ page?: number;
263
+ /**
264
+ * number of returned suggestions
265
+ */
266
+ count?: number;
267
+ /**
268
+ * what details about categories should be included in the returned information
269
+ */
270
+ returnInfo?: ReturnInfo;
271
+ }
272
+
273
+ export interface SuggestCustomConceptsArguments {
274
+ /**
275
+ * language in which the prefix is specified
276
+ */
277
+ lang?: string;
278
+ /**
279
+ * languages in which the label(s) for the concepts are to be returned
280
+ */
281
+ conceptLang?: string;
282
+ /**
283
+ * page of the results (1, 2, ...)
284
+ */
285
+ page?: number;
286
+ /**
287
+ * number of returned suggestions
288
+ */
289
+ count?: number;
290
+ /**
291
+ * what details about categories should be included in the returned information
292
+ */
293
+ returnInfo?: ReturnInfo;
294
+ }
295
+
296
+ export interface GetConceptUriArguments {
297
+ /**
298
+ * language in which the prefix is specified
299
+ */
300
+ lang?: string;
301
+ /**
302
+ * what types of concepts should be returned.
303
+ */
304
+ sources?: ER.ConceptType[];
305
+ }
306
+
307
+ export interface GetLocationUriArguments {
308
+ /**
309
+ * language in which the prefix is specified
310
+ */
311
+ lang?: string;
312
+ /**
313
+ * what types of locations are we interested in.
314
+ */
315
+ sources?: ER.SourceType | ER.SourceType[];
316
+ /**
317
+ * if set, then filter the possible locations to the locations from that country
318
+ */
319
+ countryUri?: string;
320
+ /**
321
+ * sort candidates by distance to the given (lat, long) pair
322
+ */
323
+ sortByDistanceTo?: number[];
324
+ }
325
+
326
+ export interface GetStatsArguments {
327
+ addDailyArticles?: boolean;
328
+ addDailyAnnArticles?: boolean;
329
+ addDailyDuplArticles?: boolean;
330
+ addDailyEvents?: boolean;
331
+ }
332
+
333
+ interface Country {
334
+ type: string;
335
+ label: Label;
336
+ }
337
+
338
+ interface Label {
339
+ [name: string]: string;
340
+ }
341
+
342
+ export interface Location {
343
+ type: string;
344
+ wikiUri?: string;
345
+ label: Label;
346
+ country: Country;
347
+ lat?: number;
348
+ long?: number;
349
+ }
350
+
351
+ export interface Author {
352
+ uri: string;
353
+ name: string;
354
+ type: string;
355
+ isAgency: boolean;
356
+ isDisabled?: boolean;
357
+ articleCount?: number;
358
+ }
359
+
360
+ interface Shares {
361
+ [name: string]: number;
362
+ }
363
+
364
+ export interface Source {
365
+ uri: string;
366
+ dataType: string;
367
+ title: string;
368
+ location: Location;
369
+ private?: boolean;
370
+ disabled?: boolean;
371
+ locationValidated?: boolean;
372
+ articleCount?: string;
373
+ articles?: number;
374
+ importance?: string;
375
+ expected?: boolean;
376
+ actual?: number;
377
+ ranking?: {
378
+ alexaGlobalRank: string;
379
+ alexaCountryRank: string;
380
+ importanceRank: string;
381
+ };
382
+ }
383
+
384
+ interface BaseWeight {
385
+ wgt: number;
386
+ excluded?: boolean;
387
+ }
388
+
389
+ interface ConceptWeight extends BaseWeight {
390
+ label: string;
391
+ uri: string;
392
+ type: string;
393
+ required?: boolean;
394
+ }
395
+
396
+ interface KeywordWeight extends BaseWeight {
397
+ keyword: string;
398
+ keywordLoc?: string;
399
+ required?: boolean;
400
+ }
401
+
402
+ interface SourceWeight extends BaseWeight {
403
+ uri: string;
404
+ title: string;
405
+ }
406
+
407
+ interface CategoryWeight extends BaseWeight {
408
+ label: string;
409
+ uri: string;
410
+ required?: boolean;
411
+ }
412
+
413
+ interface LocationWeight extends BaseWeight {
414
+ label: string;
415
+ uri: string;
416
+ required?: boolean;
417
+ }
418
+
419
+ type Weight<T = any> =
420
+ T extends ConceptWeight ? ConceptWeight :
421
+ T extends KeywordWeight ? KeywordWeight :
422
+ T extends SourceWeight ? SourceWeight :
423
+ T extends CategoryWeight ? CategoryWeight :
424
+ T extends LocationWeight ? LocationWeight :
425
+ T;
426
+
427
+
428
+ export interface Concept< T = Record<string, string> | string> {
429
+ id?: string;
430
+ label?: T;
431
+ title?: string;
432
+ score?: number;
433
+ frequency?: number;
434
+ type?: "person" | "loc" | "org" | "concepts" | "conceptClass" | "topicPage" | "collection";
435
+ uri?: string;
436
+ wgt?: number;
437
+ image?: string;
438
+ description?: string;
439
+ disabled?: boolean;
440
+ currentType?: Record<string, string>;
441
+ lang?: string;
442
+ location?: {
443
+ country: {
444
+ label: {
445
+ [lang: string]: string;
446
+ };
447
+ };
448
+ };
449
+ lastUriPart?: string;
450
+ hierarchy?: {
451
+ [lang: string]: string;
452
+ };
453
+ conceptFolder?: {
454
+ owner: {
455
+ name: string;
456
+ };
457
+ };
458
+ conceptClass?: {
459
+ parentLabels: {
460
+ [lang: string]: string[];
461
+ };
462
+ };
463
+ topicPage?: {
464
+ visibility: number;
465
+ autoAddArticles?: boolean;
466
+ articleTreshWgt?: number | string;
467
+ eventTreshWgt?: number | string;
468
+ articleIsDuplicate?: string;
469
+ articleHasDuplicate?: string;
470
+ articleHasEvent?: string;
471
+ startSourceRankPercentile?: number;
472
+ endSourceRankPercentile?: number;
473
+ minSocialScore?: number;
474
+ minSentiment?: number;
475
+ maxSentiment?: number;
476
+ restrictToSetSources?: boolean;
477
+ restrictToSetLocations?: boolean;
478
+ restrictToSetCategories?: boolean;
479
+ restrictToSetConcepts?: boolean;
480
+ minArticlesInEvent?: number;
481
+ maxDaysBack?: number;
482
+ concepts?: Weight<ConceptWeight>[];
483
+ keywords?: Weight<KeywordWeight>[];
484
+ sources?: Weight<SourceWeight>[];
485
+ authors?: Weight<SourceWeight>[];
486
+ sourceLocations?: Weight<SourceWeight>[];
487
+ sourceGroups?: Weight<SourceWeight>[];
488
+ categories?: Weight<CategoryWeight>[];
489
+ locations?: Weight<LocationWeight>[];
490
+ langs?: string[];
491
+ dataType?: ("news" | "pr" | "blog")[];
492
+ owner?: { uri: string };
493
+ };
494
+ collection?: {
495
+ visibility: number;
496
+ };
497
+ fq?: number;
498
+ }
499
+
500
+ export interface Keyword {
501
+ keyword: string;
502
+ weight: number;
503
+ }
504
+
505
+ export interface Category {
506
+ count: number;
507
+ label: string;
508
+ uri: string;
509
+ }
510
+
511
+ export interface ArticleCounts {
512
+ [lang: string]: number;
513
+ }
514
+
515
+ export interface InfoArticle {
516
+ [lang: string]: string;
517
+ }
518
+
519
+ export interface Title {
520
+ [lang: string]: string;
521
+ }
522
+
523
+ export interface Summary {
524
+ [lang: string]: string;
525
+ }
526
+
527
+
528
+ export interface Event {
529
+ id?: string;
530
+ uri: string;
531
+ concepts: Concept[];
532
+ langs?: number;
533
+ eventDate: string;
534
+ eventDateEnd?: string;
535
+ totalArticleCount: number;
536
+ title: Title;
537
+ summary: Summary;
538
+ rtl: boolean;
539
+ infoArticle: InfoArticle;
540
+ location: Location;
541
+ locationStr: string;
542
+ categories: Category[];
543
+ stories?: unknown[];
544
+ removed?: boolean;
545
+ images: string[];
546
+ articleCounts: ArticleCounts;
547
+ socialScore: number;
548
+ sentiment: null | number;
549
+ wgt: number;
550
+ keywords?: unknown[];
551
+ entities?: unknown[];
552
+ circleSize?: number;
553
+ }
554
+
555
+ export interface Article {
556
+ id?: string;
557
+ uri?: string;
558
+ lang?: string;
559
+ isDuplicate?: boolean;
560
+ date?: string;
561
+ time?: string;
562
+ removed?: boolean;
563
+ assigned?: boolean;
564
+ dateTime?: string;
565
+ dataType?: string;
566
+ sim?: number;
567
+ url?: string;
568
+ title?: string;
569
+ fullTitle?: string;
570
+ body?: string;
571
+ source?: Source;
572
+ authors?: Author[];
573
+ concepts?: Concept[];
574
+ image?: string;
575
+ eventUri?: null | string;
576
+ sentiment?: null | number;
577
+ shares?: Shares;
578
+ wgt?: number;
579
+ rtl?: boolean;
580
+ userHasPermissions?: boolean;
581
+ categories?: Category[];
582
+ sourceName?: string;
583
+ disabled?: boolean;
584
+ }
585
+
586
+ export interface TopicPage {
587
+ autoAddArticles: boolean;
588
+ articleHasDuplicate: "skipHasDuplicates" | "keepOnlyHasDuplicates" | "keepAll";
589
+ articleHasEvent: "skipArticlesWithoutEvent" | "keepOnlyArticlesWithoutEvent" | "keepAll";
590
+ articleIsDuplicate: "skipDuplicates" | "keepOnlyDuplicates" | "keepAll";
591
+ maxDaysBack: number;
592
+ articleTreshWgt: number;
593
+ eventTreshWgt: number;
594
+ concepts: Record<string, string | number | boolean>[];
595
+ keywords: Record<string, string | number | boolean>[];
596
+ categories: Record<string, string | number | boolean>[];
597
+ sources: Record<string, string | number | boolean>[];
598
+ sourceGroups: Record<string, string | number | boolean>[];
599
+ sourceLocations: Record<string, string | number | boolean>[];
600
+ locations: Record<string, string | number | boolean>[];
601
+ langs: string[];
602
+ startSourceRankPercentile?: number;
603
+ endSourceRankPercentile?: number;
604
+ restrictToSetConcepts: boolean;
605
+ restrictToSetCategories: boolean;
606
+ restrictToSetSources: boolean;
607
+ restrictToSetLocations: boolean;
608
+ dataType: ER.DataType | ER.DataType[];
609
+ }
610
+
611
+ export interface TopicPageAddConceptArguments {
612
+ label?: string;
613
+ conceptType?: string;
614
+ required?: boolean;
615
+ excluded?: boolean;
616
+ }
617
+
618
+ export interface TopicPageAddKeywordArguments {
619
+ required?: boolean;
620
+ excluded?: boolean;
621
+ }
622
+
623
+ export interface TopicPageAddCategoryArguments {
624
+ required?: boolean;
625
+ excluded?: boolean;
626
+ }
627
+
628
+ export interface TopicPageAddSourceArguments {
629
+ excluded?: boolean;
630
+ }
631
+
632
+ export interface TopicPageAddSourceLocationArguments {
633
+ excluded?: boolean;
634
+ }
635
+
636
+ export interface TopicPageAddSourceGroupArguments {
637
+ excluded?: boolean;
638
+ }
639
+
640
+ export interface TopicPageArticles {
641
+ /**
642
+ * Which page of the results to return (default: 1).
643
+ */
644
+ page?: number;
645
+ /**
646
+ * Number of articles to return (default: 100)
647
+ */
648
+ count?: number;
649
+ /**
650
+ * How are articles sorted
651
+ */
652
+ sortBy?: SortBy;
653
+ /**
654
+ * Should the results be sorted in ascending order (true) or descending (false)
655
+ */
656
+ sortByAsc?: boolean;
657
+ dataType?: ER.DataType | ER.DataType[];
658
+ /**
659
+ * What details should be included in the returned information
660
+ */
661
+ returnInfo?: ReturnInfo;
662
+ [name: string]: (string | number | boolean | ReturnInfo) | (string | number | boolean)[] | undefined;
663
+ }
664
+
665
+ export interface TopicPageEvents {
666
+ /**
667
+ * Which page of the results to return (default: 1).
668
+ */
669
+ page?: number;
670
+ /**
671
+ * Number of events to return (default: 50)
672
+ */
673
+ count?: number;
674
+ /**
675
+ * How are events sorted
676
+ */
677
+ sortBy?: SortBy;
678
+ /**
679
+ * Should the results be sorted in ascending order (true) or descending (false)
680
+ */
681
+ sortByAsc?: boolean;
682
+ /**
683
+ * What details should be included in the returned information
684
+ */
685
+ returnInfo?: ReturnInfo;
686
+ [name: string]: (string | number | boolean | ReturnInfo) | (string | number | boolean)[] | undefined;
687
+ }
688
+
689
+ export namespace Correlations {
690
+ export interface TopConceptArguments {
691
+ /**
692
+ * An instance of QueryArticles that can be used to limit the space of concept candidates
693
+ */
694
+ candidateConceptsQuery?: QueryArticles;
695
+ /**
696
+ * If candidateConceptsQuery is provided, then this number of concepts for each valid type will be return as candidates
697
+ */
698
+ candidatesPerType?: number;
699
+ /**
700
+ * A string or an array containing the concept types that are valid candidates on which to compute top correlations
701
+ * valid values are "person", "org", "loc" and/or "wiki"
702
+ */
703
+ conceptType?: string | string[];
704
+ /**
705
+ * the number of returned concepts for which the exact value of the correlation is computed
706
+ */
707
+ exactCount?: number;
708
+ /**
709
+ * the number of returned concepts for which only an approximate value of the correlation is computed
710
+ */
711
+ approxCount?: number;
712
+ /**
713
+ * specifies the details about the concepts that should be returned in the output result
714
+ */
715
+ returnInfo?: ReturnInfo;
716
+ }
717
+
718
+ export interface TopCategoryArguments {
719
+ /**
720
+ * the number of returned categories for which the exact value of the correlation is computed
721
+ */
722
+ exactCount?: number;
723
+ /**
724
+ * the number of returned categories for which only an approximate value of the correlation is computed
725
+ */
726
+ approxCount?: number;
727
+ /**
728
+ * specifies the details about the categories that should be returned in the output result
729
+ */
730
+ returnInfo?: ReturnInfo;
731
+ }
732
+ }
733
+
734
+ export namespace Counts {
735
+ export interface Arguments {
736
+ /**
737
+ * input source information from which to compute top trends.
738
+ */
739
+ source?: "news" | "social" | "custom" | "geo" | "sentiment";
740
+ /**
741
+ * What do the uris represent?
742
+ */
743
+ type?: "concept" | "category";
744
+ /**
745
+ * Starting date from which to provide counts onwards (format: YYYY-MM-DD).
746
+ */
747
+ dateStart?: string | Date;
748
+ /**
749
+ * Ending date until which to provide counts (format: YYYY-MM-DD).
750
+ */
751
+ dateEnd?: string | Date;
752
+ /**
753
+ * What details should be included in the returned information.
754
+ */
755
+ returnInfo?: ReturnInfo;
756
+ }
757
+ }
758
+
759
+ export namespace DailyShares {
760
+ export interface Arguments {
761
+ /**
762
+ * Specify the date for which to return top shared articles. If undefined then today is used.
763
+ */
764
+ date?: string;
765
+ /**
766
+ * Number of top shared articles to return
767
+ */
768
+ count?: number;
769
+ /**
770
+ * Specifies the details that should be returned in the output result
771
+ */
772
+ returnInfo?: ReturnInfo;
773
+ }
774
+ }
775
+
776
+ export namespace Analytics {
777
+ export type Response = ER.Response<Record<string, unknown>, ER.ErrorResponseObject>;
778
+ export interface TrainTopicOnTweetsArguments {
779
+ /**
780
+ * Do you want to analyze the content of the tweets and extract the concepts mentioned in them?
781
+ * If false, only content shared in the articles in the user's tweets will be analyzed.
782
+ */
783
+ useTweetText?: boolean;
784
+ /**
785
+ * Normalize identified concepts by their IDF in the news (punish very common concepts)
786
+ */
787
+ useIdfNormalization?: boolean;
788
+ /**
789
+ * Way to normalize the concept weights ("none", "linear")
790
+ */
791
+ normalization?: "none" | "linear";
792
+ /**
793
+ * The number of concepts to save in the final topic.
794
+ */
795
+ maxConcepts?: number;
796
+ /**
797
+ * The number of categories to save in the final topic.
798
+ */
799
+ maxCategories?: number;
800
+ /**
801
+ * The maximum number of tweets to collect for the user to analyze.
802
+ */
803
+ maxTweets?: number;
804
+ /**
805
+ * maximum number of article links in the tweets to analyze (default 500, max 2000)
806
+ */
807
+ maxUsedLinks?: number;
808
+ /**
809
+ * what types of concepts you would like to ignore in the profile. options: person, org, loc, wiki or an array with those
810
+ */
811
+ ignoreConceptTypes?: BaseConceptType | BaseConceptType[];
812
+ /**
813
+ * When finished, should we send a notification email to this address?
814
+ */
815
+ notifyEmailAddress?: string;
816
+ }
817
+ export interface TrainTopicGetTrainedTopicArguments {
818
+ maxConcepts?: number;
819
+ maxCategories?: number;
820
+ idfNormalization?: boolean;
821
+ }
822
+ export interface Language {
823
+ code: string;
824
+ name: string;
825
+ percent: number;
826
+ }
827
+ export namespace Response {
828
+ export interface Annotate {
829
+ [name: string]: unknown;
830
+ }
831
+ export interface Categorize {
832
+ categories: ER.Category[];
833
+ }
834
+ export interface Sentiment {
835
+ avgSent: unknown;
836
+ sentimentPerSent: unknown;
837
+ }
838
+ export interface SentimentSimilarity {
839
+ similarity: unknown;
840
+ }
841
+ export interface DetectLanguage {
842
+ languages: ER.Analytics.Language[];
843
+ }
844
+ export interface ExtractArticleInfo {
845
+ title?: string;
846
+ body?: string;
847
+ date?: string;
848
+ datetime?: string;
849
+ image?: string;
850
+ }
851
+ }
852
+ }
853
+
854
+ export namespace Info {
855
+ export interface GetSourceInfoArguments {
856
+ /**
857
+ * single source uri or a list of source uris for which to return information
858
+ */
859
+ uriOrUriList?: string | string[];
860
+ /**
861
+ * what details about the source should be included in the returned information
862
+ */
863
+ returnInfo?: ReturnInfo;
864
+ }
865
+
866
+ export interface GetConceptInfoArguments {
867
+ /**
868
+ * single concept uri or a list of concept uris for which to return information
869
+ */
870
+ uriOrUriList?: string | string[];
871
+ /**
872
+ * what details about the source should be included in the returned information
873
+ */
874
+ returnInfo?: ReturnInfo;
875
+ }
876
+
877
+ export interface GetCategoryInfoArguments {
878
+ /**
879
+ * single category uri or a list of category uris for which to return information
880
+ */
881
+ uriOrUriList?: string | string[];
882
+ /**
883
+ * what details about the source should be included in the returned information
884
+ */
885
+ returnInfo?: ReturnInfo;
886
+ }
887
+ }
888
+
889
+ export namespace Query {
890
+ export interface BaseQueryArguments {
891
+ /**
892
+ * Keyword(s) to query. Either undefined, string or QueryItems.
893
+ */
894
+ keyword?: string | QueryItems;
895
+ /**
896
+ * Concept(s) to query. Either undefined, string or QueryItems.
897
+ */
898
+ conceptUri?: string | QueryItems;
899
+ /**
900
+ * Source(s) to query. Either undefined, string or QueryItems.
901
+ */
902
+ sourceUri?: string | QueryItems;
903
+ /**
904
+ * Location(s) to query. Either undefined, string or QueryItems.
905
+ */
906
+ locationUri?: string | QueryItems;
907
+ /**
908
+ * CategoryUri categories to query. Either undefined, string or QueryItems.
909
+ */
910
+ categoryUri?: string | QueryItems;
911
+ /**
912
+ * Language(s) to query. Either undefined, string or QueryItems.
913
+ */
914
+ lang?: string | QueryItems;
915
+ /**
916
+ * Starting date. Either undefined, string or date.
917
+ */
918
+ dateStart?: string | Date;
919
+ /**
920
+ * Ending date. Either undefined, string or date.
921
+ */
922
+ dateEnd?: string | Date;
923
+ /**
924
+ * Search by mentioned dates - Either undefined, string or date or a list of these types.
925
+ */
926
+ dateMention?: string | string[];
927
+ /**
928
+ * Find content generated by news sources at the specified geographic location - can be a city URI or a country URI. Multiple items can be provided using a list.
929
+ */
930
+ sourceLocationUri?: string | string[];
931
+ /**
932
+ * A single or multiple source group URIs. A source group is a group of news sources, commonly defined based on common topic or importance.
933
+ */
934
+ sourceGroupUri?: string | string[];
935
+ /**
936
+ * Author(s) to query. Either undefined, string or QueryItems.
937
+ */
938
+ authorUri?: string | string[];
939
+ /**
940
+ * Should we include the subcategories of the searched categories?
941
+ */
942
+ categoryIncludeSub?: boolean;
943
+ /**
944
+ * Where should we look when searching using the keywords provided by "keyword" parameter. "body" (default), "title", or "body,title".
945
+ */
946
+ keywordLoc?: "body" | "title" | "body,title";
947
+ /**
948
+ * A tuple containing the minimum and maximum number of articles that should be in the resulting events. Parameter relevant only if querying events.
949
+ */
950
+ minMaxArticlesInEvent?: [number, number];
951
+ /**
952
+ * A instance of BaseQuery, CombinedQuery or undefined. Used to filter out results matching the other criteria specified in this query.
953
+ */
954
+ exclude?: BaseQuery | CombinedQuery;
955
+ }
956
+
957
+ export interface ComplexArticleQueryArguments {
958
+ /**
959
+ * Some articles can be duplicates of other articles. What should be done with them.
960
+ * Possible values are:
961
+ * - "skipDuplicates" (skip the resulting articles that are duplicates of other articles)
962
+ * - "keepOnlyDuplicates" (return only the duplicate articles)
963
+ * - "keepAll" (no filtering, default)
964
+ */
965
+ isDuplicateFilter?: "skipDuplicates" | "keepOnlyDuplicates" | "keepAll";
966
+ /**
967
+ * some articles are later copied by others. What should be done with such articles.
968
+ * Possible values are:
969
+ * - "skipHasDuplicates" (skip the resulting articles that have been later copied by others)
970
+ * - "keepOnlyHasDuplicates" (return only the articles that have been later copied by others)
971
+ * - "keepAll" (no filtering, default)
972
+ */
973
+ hasDuplicateFilter?: "skipDuplicates" | "keepOnlyDuplicates" | "keepAll";
974
+ /**
975
+ * Some articles describe a known event and some don't. This filter allows you to filter the resulting articles based on this criteria.
976
+ * Possible values are:
977
+ * - "skipArticlesWithoutEvent" (skip articles that are not describing any known event in ER)
978
+ * - "keepOnlyArticlesWithoutEvent" (return only the articles that are not describing any known event in ER)
979
+ * - "keepAll" (no filtering, default)
980
+ */
981
+ eventFilter?: "skipArticlesWithoutEvent" | "keepOnlyArticlesWithoutEvent" | "keepAll";
982
+ /**
983
+ * Data type to search for. Possible values are "news" (news content), "pr" (PR content) or "blogs".
984
+ * If you want to use multiple data types, put them in an array (e.g. ["news", "pr"])
985
+ */
986
+ dataType?: ER.DataType[] | ER.DataType;
987
+ minSentiment?: number;
988
+ maxSentiment?: number;
989
+ minSocialScore?: number;
990
+ minFacebookShares?: number;
991
+ startSourceRankPercentile?: number;
992
+ endSourceRankPercentile?: number;
993
+ }
994
+
995
+ export interface ComplexEventQueryArguments {
996
+ minSentiment?: number;
997
+ maxSentiment?: number;
998
+ }
999
+ }
1000
+
1001
+ export namespace QueryArticle {
1002
+ export interface RequestArticleSimilarArticlesArguments {
1003
+ /**
1004
+ * page of the articles
1005
+ */
1006
+ page?: number;
1007
+ /**
1008
+ * number of articles to return (at most 200)
1009
+ */
1010
+ count?: number;
1011
+ /**
1012
+ * in which language(s) should be the similar articles
1013
+ */
1014
+ lang?: string[];
1015
+ /**
1016
+ * max number of articles per language to return (-1 for no limit)
1017
+ */
1018
+ limitPerLang?: number;
1019
+ /**
1020
+ * what details should be included in the returned information
1021
+ */
1022
+ returnInfo?: ReturnInfo;
1023
+ }
1024
+
1025
+ export interface RequestArticleDuplicatedArticlesArguments {
1026
+ /**
1027
+ * page of the articles
1028
+ */
1029
+ page?: number;
1030
+ /**
1031
+ * number of articles to return (at most 200)
1032
+ */
1033
+ count?: number;
1034
+ /**
1035
+ * how are the articles sorted.
1036
+ */
1037
+ sortBy?: "id" | "date" | "cosSim" | "fq" | "socialScore" | "facebookShares" | "twitterShares";
1038
+ /**
1039
+ * should the results be sorted in ascending order (true) or descending (false)
1040
+ */
1041
+ sortByAsc?: boolean;
1042
+ /**
1043
+ * what details should be included in the returned information
1044
+ */
1045
+ returnInfo?: ReturnInfo;
1046
+ }
1047
+ }
1048
+
1049
+ export interface RequestArticlesInfoParameters {
1050
+ page?: number;
1051
+ count?: number;
1052
+ sortBy?: string;
1053
+ sortByAsc?: boolean;
1054
+ returnInfo?: ReturnInfo;
1055
+ }
1056
+
1057
+ export interface RequestArticlesUriWgtListParameters {
1058
+ page?: number;
1059
+ count?: number;
1060
+ sortBy?: string;
1061
+ sortByAsc?: boolean;
1062
+ }
1063
+
1064
+ export interface RequestArticlesConceptTrendsParameters {
1065
+ conceptUris?: string[];
1066
+ conceptCount?: number;
1067
+ articlesSampleSize?: number;
1068
+ returnInfo?: ReturnInfo;
1069
+ }
1070
+
1071
+ export interface RequestArticlesRecentActivityParameters {
1072
+ maxArticleCount?: number;
1073
+ updatesAfterNewsUri?: string;
1074
+ updatesafterBlogUri?: string;
1075
+ updatesAfterPrUri?: string;
1076
+ updatesAfterTm?: string | Date;
1077
+ updatesAfterMinsAgo?: number;
1078
+ updatesUntilTm?: string | Date;
1079
+ updatesUntilMinsAgo?: number;
1080
+ mandatorySourceLocation?: boolean;
1081
+ returnInfo?: ReturnInfo;
1082
+ }
1083
+ export namespace Aggr {
1084
+ export namespace Source {
1085
+ export interface CountsPerSource {
1086
+ source: ER.Source;
1087
+ counts: {
1088
+ frequency: number;
1089
+ total: number;
1090
+ }
1091
+ }
1092
+ export interface CountsPerCountry {
1093
+ uri: string;
1094
+ type: string;
1095
+ frequency: number;
1096
+ }
1097
+ }
1098
+ }
1099
+
1100
+ // tslint:disable-next-line:no-shadowed-variable
1101
+ export namespace QueryArticles {
1102
+ export interface Arguments {
1103
+ /**
1104
+ * Find articles that mention the specified keywords.
1105
+ * A single keyword/phrase can be provided as a string, multiple keywords/phrases can be provided as a list of strings.
1106
+ * Use QueryItems.AND() if *all* provided keywords/phrases should be mentioned, or QueryItems.OR() if *any* of the keywords/phrases should be mentioned.
1107
+ * or QueryItems.OR() to specify a list of keywords where any of the keywords have to appear
1108
+ */
1109
+ keywords?: string | string[] | QueryItems;
1110
+ /**
1111
+ * Find articles where the concept with concept uri is mentioned.
1112
+ * A single concept uri can be provided as a string, multiple concept uris can be provided as a list of strings.
1113
+ * Use QueryItems.AND() if *all* provided concepts should be mentioned, or QueryItems.OR() if *any* of the concepts should be mentioned.
1114
+ * To obtain a concept uri using a concept label use EventRegistry.getConceptUri().
1115
+ */
1116
+ conceptUri?: string | string[] | QueryItems;
1117
+ /**
1118
+ * Find articles that are assigned into a particular category.
1119
+ * A single category can be provided as a string, while multiple categories can be provided as a list in QueryItems.AND() or QueryItems.OR().
1120
+ * A category uri can be obtained from a category name using EventRegistry.getCategoryUri().
1121
+ */
1122
+ categoryUri?: string | string[] | QueryItems;
1123
+ /**
1124
+ * find articles that were written by a news source sourceUri.
1125
+ * If multiple sources should be considered use QueryItems.OR() to provide the list of sources.
1126
+ * Source uri for a given news source name can be obtained using EventRegistry.getNewsSourceUri().
1127
+ */
1128
+ sourceUri?: string | string[] | QueryItems;
1129
+ /**
1130
+ * Find articles that were written by news sources located in the given geographic location.
1131
+ * If multiple source locations are provided, then put them into a list inside QueryItems.OR()
1132
+ * Location uri can either be a city or a country. Location uri for a given name can be obtained using EventRegistry.getLocationUri().
1133
+ */
1134
+ sourceLocationUri?: string | string[] | QueryItems;
1135
+ /**
1136
+ * Find articles that were written by news sources that are assigned to the specified source group.
1137
+ * If multiple source groups are provided, then put them into a list inside QueryItems.OR()
1138
+ * Source group uri for a given name can be obtained using EventRegistry.getSourceGroupUri().
1139
+ */
1140
+ sourceGroupUri?: string | string[] | QueryItems;
1141
+ /**
1142
+ * Find articles that were written by a specific author.
1143
+ * If multiple authors should be considered use QueryItems.OR() to provide the list of authors.
1144
+ * Author uri for a given author name can be obtained using EventRegistry.getAuthorUri().
1145
+ */
1146
+ authorUri?: string | string[] | QueryItems;
1147
+ /**
1148
+ * Find articles that describe something that occurred at a particular location.
1149
+ * If value can be a string or a list of strings provided in QueryItems.OR().
1150
+ * Location uri can either be a city or a country. Location uri for a given name can be obtained using EventRegistry.getLocationUri().
1151
+ */
1152
+ locationUri?: string | string[] | QueryItems;
1153
+ /**
1154
+ * find articles that are written in the specified language.
1155
+ * If more than one language is specified, resulting articles has to be written in *any* of the languages.
1156
+ */
1157
+ lang?: string | string[];
1158
+ /**
1159
+ * Find articles that were written on or after dateStart. Date should be provided in YYYY-MM-DD format.
1160
+ */
1161
+ dateStart?: string | Date;
1162
+ /**
1163
+ * Find articles that occurred before or on dateEnd. Date should be provided in YYYY-MM-DD format.
1164
+ */
1165
+ dateEnd?: string | Date;
1166
+ /**
1167
+ * Find articles that explicitly mention a date that is equal or greater than dateMentionStart.
1168
+ */
1169
+ dateMentionStart?: string | Date;
1170
+ /**
1171
+ * Find articles that explicitly mention a date that is lower or equal to dateMentionEnd.
1172
+ */
1173
+ dateMentionEnd?: string | Date;
1174
+ /**
1175
+ * Ignore articles that mention all provided keywords.
1176
+ */
1177
+ ignoreKeywords?: string | string[] | QueryItems;
1178
+ /**
1179
+ * Ignore articles that mention all provided concepts.
1180
+ */
1181
+ ignoreConceptUri?: string | string[] | QueryItems;
1182
+ /**
1183
+ * Ignore articles that are assigned to a particular category.
1184
+ */
1185
+ ignoreCategoryUri?: string | string[] | QueryItems;
1186
+ /**
1187
+ * Ignore articles that have been written by *any* of the specified news sources.
1188
+ */
1189
+ ignoreSourceUri?: string | string[] | QueryItems;
1190
+ /**
1191
+ * Ignore articles that have been written by sources located at *any* of the specified locations.
1192
+ */
1193
+ ignoreSourceLocationUri?: string | string[] | QueryItems;
1194
+ /**
1195
+ * Ignore articles that have been written by sources in *any* of the specified source groups.
1196
+ */
1197
+ ignoreSourceGroupUri?: string | string[] | QueryItems;
1198
+ /**
1199
+ * Ignore articles that were written by *any* of the specified authors.
1200
+ */
1201
+ ignoreAuthorUri?: string | string[] | QueryItems;
1202
+ /**
1203
+ * Ignore articles that occurred in any of the provided locations. A location can be a city or a place.
1204
+ */
1205
+ ignoreLocationUri?: string | string[] | QueryItems;
1206
+ /**
1207
+ * Ignore articles that are written in *any* of the provided languages.
1208
+ */
1209
+ ignoreLang?: string | string[] | QueryItems;
1210
+ /**
1211
+ * Where should we look when searching using the keywords provided by "keywords" parameter. "body" (default), "title", or "body,title".
1212
+ */
1213
+ keywordsLoc?: "body" | "title" | "body,title";
1214
+ keywordSearchMode?: "simple" | "exact" | "phrase";
1215
+ /**
1216
+ * Where should we look when data should be used when searching using the keywords provided by "ignoreKeywords" parameter. "body" (default), "title", or "body,title".
1217
+ */
1218
+ ignoreKeywordsLoc?: "body" | "title" | "body,title";
1219
+ ignoreKeywordSearchMode?: "simple" | "exact" | "phrase";
1220
+ /**
1221
+ * Some articles can be duplicates of other articles. What should be done with them. Possible values are:
1222
+ * "skipDuplicates" (skip the resulting articles that are duplicates of other articles)
1223
+ * "keepOnlyDuplicates" (return only the duplicate articles)
1224
+ * "keepAll" (no filtering, default)
1225
+ */
1226
+ isDuplicateFilter?: "skipDuplicates" | "keepOnlyDuplicates" | "keepAll";
1227
+ /**
1228
+ * Some articles are later copied by others. What should be done with such articles. Possible values are:
1229
+ * "skipHasDuplicates" (skip the resulting articles that have been later copied by others)
1230
+ * "keepOnlyHasDuplicates" (return only the articles that have been later copied by others)
1231
+ * "keepAll" (no filtering, default)
1232
+ */
1233
+ hasDuplicateFilter?: "skipHasDuplicates" | "keepOnlyHasDuplicates" | "keepAll";
1234
+ /**
1235
+ * Some articles describe a known event and some don't. This filter allows you to filter the resulting articles based on this criteria.
1236
+ * Possible values are:
1237
+ * "skipArticlesWithoutEvent" (skip articles that are not describing any known event in ER)
1238
+ * "keepOnlyArticlesWithoutEvent" (return only the articles that are not describing any known event in ER)
1239
+ * "keepAll" (no filtering, default)
1240
+ */
1241
+ eventFilter?: "skipArticlesWithoutEvent" | "keepOnlyArticlesWithoutEvent" | "keepAll";
1242
+ /**
1243
+ * Some articles have an extracted author and some don't. What should be done with them. Possible values are:
1244
+ * "skipIfHasAuthors" (skip articles for which we have identified the author)
1245
+ * "keepOnlyIfHasAuthors" (return only articles for which we have extracted the author)
1246
+ * "keepAll" (no filtering, default)
1247
+ */
1248
+ authorsFilter?: "skipIfHasAuthors" | "keepOnlyIfHasAuthors" | "keepAll";
1249
+ /**
1250
+ * Some articles contain a link to a video and some don't. What should be done with them. Possible values are:
1251
+ * "skipIfHasVideos" (skip articles that contain a link to a video)
1252
+ * "keepOnlyIfHasVideos" (return only articles that contain a link to a video)
1253
+ * "keepAll" (no filtering, default)
1254
+ */
1255
+ videosFilter?: "skipIfHasVideos" | "keepOnlyIfHasVideos" | "keepAll";
1256
+ /**
1257
+ * Some articles contain links to other URLs and some don't. What should be done with them. Possible values are:
1258
+ * "skipIfHasLinks" (skip articles that contain one or more links)
1259
+ * "keepOnlyIfHasLinks" (return only articles that contain a link to other URLs)
1260
+ * "keepAll" (no filtering, default)
1261
+ */
1262
+ linksFilter?: "skipIfHasLinks" | "keepOnlyIfHasLinks" | "keepAll";
1263
+ /**
1264
+ * Starting percentile of the sources to consider in the results (default: 0). Value should be in range 0-90 and divisible by 10.
1265
+ */
1266
+ startSourceRankPercentile?: number;
1267
+ /**
1268
+ * Ending percentile of the sources to consider in the results (default: 100). Value should be in range 10-100 and divisible by 10.
1269
+ */
1270
+ endSourceRankPercentile?: number;
1271
+ /**
1272
+ * minimum value of the sentiment, that the returned articles should have. Range [-1, 1]. Note: setting the value will remove all articles that don't have a computed value for the sentiment (all non-English articles)
1273
+ */
1274
+ minSentiment?: number;
1275
+ /**
1276
+ * maximum value of the sentiment, that the returned articles should have. Range [-1, 1]. Note: setting the value will remove all articles that don't have a computed value for the sentiment (all non-English articles)
1277
+ */
1278
+ maxSentiment?: number;
1279
+ /**
1280
+ * what data types should we search? "news" (news content, default), "pr" (press releases), or "blogs".
1281
+ * If you want to use multiple data types, put them in an array (e.g. ["news", "pr"])
1282
+ */
1283
+ dataType?: ER.DataType[] | ER.DataType;
1284
+ /**
1285
+ * The information to return as the result of the query. By default return the list of matching articles.
1286
+ */
1287
+ requestedResult?: RequestArticles;
1288
+ }
1289
+ export interface IteratorArguments extends Arguments {
1290
+ /**
1291
+ * how should the resulting articles be sorted. Options: "rel" (relevance), "date" (published date), "sourceImportance", "sourceImportanceRank", "sourceAlexaGlobalRank", "sourceAlexaCountryRank", "socialScore", "facebookShares"
1292
+ */
1293
+ sortBy?: string;
1294
+ /**
1295
+ * should the results be sorted in ascending order (true) or descending (false)
1296
+ */
1297
+ sortByAsc?: boolean;
1298
+ /**
1299
+ * what details should be included in the returned information
1300
+ */
1301
+ returnInfo?: ReturnInfo;
1302
+ /**
1303
+ * maximum number of items to be returned. Used to stop iteration sooner than results run out
1304
+ */
1305
+ maxItems?: number;
1306
+ }
1307
+ }
1308
+
1309
+ export namespace QueryEvent {
1310
+
1311
+ /**
1312
+ * Sorting options:
1313
+ * - undefined (no specific sorting),
1314
+ * - id (internal id), date (published date),
1315
+ * - cosSim (closeness to event centroid),
1316
+ * - sourceImportance (manually curated score of source importance - high value,
1317
+ * - high importance), sourceImportanceRank (reverse of sourceImportance),
1318
+ * - sourceAlexaGlobalRank (global rank of the news source),
1319
+ * - sourceAlexaCountryRank (country rank of the news source),
1320
+ * - socialScore (total shares on social media),
1321
+ * - facebookShares (shares on Facebook only)
1322
+ */
1323
+ export type SortByOptions = "id" | "date" | "cosSim" | "sourceImportance" | "sourceImportanceRank" | "sourceAlexaGlobalRank" | "sourceAlexaCountryRank" | "socialScore" | "facebookShares";
1324
+
1325
+ export type RequestEvent = Record<string, never>;
1326
+ export interface IteratorArguments {
1327
+ /**
1328
+ * Array or a single language in which to return the list of matching articles
1329
+ */
1330
+ lang?: string | string[];
1331
+ /**
1332
+ * Order in which event articles are sorted.
1333
+ */
1334
+ sortBy?: SortByOptions;
1335
+ /**
1336
+ * Should the results be sorted in ascending order (True) or descending (False)
1337
+ */
1338
+ sortByAsc?: boolean;
1339
+ /**
1340
+ * What details should be included in the returned information
1341
+ */
1342
+ returnInfo?: ReturnInfo;
1343
+ /**
1344
+ * Number of articles to download at once (we are not downloading article by article) (at most 100)
1345
+ */
1346
+ articleBatchSize?: number;
1347
+ /**
1348
+ * Maximum number of items to be returned. Used to stop iteration sooner than results run out
1349
+ */
1350
+ maxItems?: number;
1351
+ keywords?: string | string[] | QueryItems;
1352
+ conceptUri?: string | string[] | QueryItems;
1353
+ categoryUri?: string | string[] | QueryItems;
1354
+ sourceUri?: string | string[] | QueryItems;
1355
+ sourceLocationUri?: string | string[] | QueryItems;
1356
+ sourceGroupUri?: string | string[] | QueryItems;
1357
+ authorUri?: string | string[] | QueryItems;
1358
+ locationUri?: string | string[] | QueryItems;
1359
+ dateStart?: string | Date;
1360
+ dateEnd?: string | Date;
1361
+ dateMentionStart?: string | Date;
1362
+ dateMentionEnd?: string | Date;
1363
+ keywordsLoc?: "body" | "title" | "body,title";
1364
+ keywordSearchMode?: "simple" | "exact" | "phrase";
1365
+ startSourceRankPercentile?: number;
1366
+ endSourceRankPercentile?: number;
1367
+ /**
1368
+ * minimum value of the sentiment, that the returned articles should have. Range [-1, 1]. Note: setting the value will remove all articles that don't have a computed value for the sentiment (all articles that are not reported in English language)
1369
+ */
1370
+ minSentiment?: number;
1371
+ /**
1372
+ * maximum value of the sentiment, that the returned articles should have. Range [-1, 1]. Note: setting the value will remove all articles that don't have a computed value for the sentiment (all articles that are not reported in English language)
1373
+ */
1374
+ maxSentiment?: number;
1375
+ }
1376
+
1377
+ export interface RequestEventArticlesArguments {
1378
+ /**
1379
+ * page of the articles to return (1, 2, ...)
1380
+ */
1381
+ page?: number;
1382
+ /**
1383
+ * number of articles to return per page (at most 200)
1384
+ */
1385
+ count?: number;
1386
+ /**
1387
+ * a single language or an array of languages in which to return the articles
1388
+ */
1389
+ lang?: string | string[];
1390
+ /**
1391
+ * order in which event articles are sorted.
1392
+ */
1393
+ sortBy?: SortByOptions;
1394
+ /**
1395
+ * should the articles be sorted in ascending order (True) or descending (False) based on sortBy value
1396
+ */
1397
+ sortByAsc?: boolean;
1398
+ /**
1399
+ * what details should be included in the returned information
1400
+ */
1401
+ returnInfo?: ReturnInfo;
1402
+ keywords?: string | string[] | QueryItems;
1403
+ conceptUri?: string | string[] | QueryItems;
1404
+ categoryUri?: string | string[] | QueryItems;
1405
+ sourceUri?: string | string[] | QueryItems;
1406
+ sourceLocationUri?: string | string[] | QueryItems;
1407
+ sourceGroupUri?: string | string[] | QueryItems;
1408
+ authorUri?: string | string[] | QueryItems;
1409
+ locationUri?: string | string[] | QueryItems;
1410
+ dateStart?: string | Date;
1411
+ dateEnd?: string | Date;
1412
+ dateMentionStart?: string | Date;
1413
+ dateMentionEnd?: string | Date;
1414
+ keywordsLoc?: "body" | "title" | "body,title";
1415
+ startSourceRankPercentile?: number;
1416
+ endSourceRankPercentile?: number;
1417
+ }
1418
+
1419
+ export interface RequestEventArticleUriWgtsArguments {
1420
+ /**
1421
+ * a single language or an array of languages in which to return the articles
1422
+ */
1423
+ lang?: string | string[];
1424
+ /**
1425
+ * order in which event articles are sorted.
1426
+ */
1427
+ sortBy?: SortByOptions;
1428
+ /**
1429
+ * should the articles be sorted in ascending order (True) or descending (False) based on sortBy value
1430
+ */
1431
+ sortByAsc?: boolean;
1432
+ }
1433
+
1434
+ export interface RequestEventArticleTrendArguments {
1435
+ /**
1436
+ * languages for which to compute the trends
1437
+ */
1438
+ lang?: string | string[];
1439
+ /**
1440
+ * page of the articles for which to return information (1, 2, ...)
1441
+ */
1442
+ page?: number;
1443
+ /**
1444
+ * number of articles returned per page (at most 200)
1445
+ */
1446
+ count?: number;
1447
+ /**
1448
+ * ignore articles that have cos similarity to centroid lower than the specified value (-1 for no limit)
1449
+ */
1450
+ minArticleCosSim?: number;
1451
+ /**
1452
+ * what details should be included in the returned information
1453
+ */
1454
+ returnInfo?: ReturnInfo;
1455
+ }
1456
+
1457
+ export interface RequestEventSimilarEventsArguments {
1458
+ /**
1459
+ * array of concepts and their importance, e.g. [{ "uri": "http://en.wikipedia.org/wiki/Barack_Obama", "wgt": 100 }, ...]
1460
+ */
1461
+ conceptInfoList?: {uri: string, wgt: number}[];
1462
+ /**
1463
+ * number of similar events to return (at most 50)
1464
+ */
1465
+ count?: number;
1466
+ dateStart?: string;
1467
+ dateEnd?: string;
1468
+ /**
1469
+ * for the returned events compute how they were trending (intensity of reporting) in different time periods
1470
+ */
1471
+ addArticleTrendInfo?: boolean;
1472
+ /**
1473
+ * time span that is used as a unit when computing the trending info
1474
+ */
1475
+ aggrHours?: number;
1476
+ /**
1477
+ * include also the tested event in the results (True or False)
1478
+ */
1479
+ includeSelf?: boolean;
1480
+ /**
1481
+ * what details should be included in the returned information
1482
+ */
1483
+ returnInfo?: ReturnInfo;
1484
+ }
1485
+ export interface RequestEventSimilarStoriesArguments {
1486
+ /**
1487
+ * array of concepts and their importance, e.g. [{ "uri": "http://en.wikipedia.org/wiki/Barack_Obama", "wgt": 100 }, ...]
1488
+ */
1489
+ conceptInfoList?: {uri: string, wgt: number}[];
1490
+ /**
1491
+ * number of similar stories to return (at most 5')
1492
+ */
1493
+ count?: number;
1494
+ /**
1495
+ * in what language(s) should be the returned stories
1496
+ */
1497
+ lang?: string | string[];
1498
+ /**
1499
+ * maximum difference in days between the returned stories and the tested event
1500
+ */
1501
+ maxDayDiff?: number;
1502
+ /**
1503
+ * what details should be included in the returned information
1504
+ */
1505
+ returnInfo?: ReturnInfo;
1506
+ }
1507
+ }
1508
+ export namespace QueryMentions {
1509
+ export interface Arguments {
1510
+ eventTypeUri?: string | string[] | QueryItems;
1511
+ keywords?: string | string[] | QueryItems;
1512
+ conceptUri?: string | string[] | QueryItems;
1513
+ categoryUri?: string | string[] | QueryItems;
1514
+ sourceUri?: string | string[] | QueryItems;
1515
+ sourceLocationUri?: string | string[] | QueryItems;
1516
+ sourceGroupUri?: string | string[] | QueryItems;
1517
+ industryUri?: string | string[] | QueryItems;
1518
+ sdgUri?: string | string[] | QueryItems;
1519
+ sasbUri?: string | string[] | QueryItems;
1520
+ esgUri?: string | string[] | QueryItems;
1521
+ locationUri?: string | string[] | QueryItems;
1522
+ lang?: string | string[];
1523
+ dateStart?: string | Date;
1524
+ dateEnd?: string | Date;
1525
+ ignoreEventTypeUri?: string | string[] | QueryItems;
1526
+ ignoreKeywords?: string | string[] | QueryItems;
1527
+ ignoreConceptUri?: string | string[] | QueryItems;
1528
+ ignoreCategoryUri?: string | string[] | QueryItems;
1529
+ ignoreSourceUri?: string | string[] | QueryItems;
1530
+ ignoreSourceLocationUri?: string | string[] | QueryItems;
1531
+ ignoreSourceGroupUri?: string | string[] | QueryItems;
1532
+ ignoreIndustryUri?: string | string[] | QueryItems;
1533
+ ignoreSdgUri?: string | string[] | QueryItems;
1534
+ ignoreSasbUri?: string | string[] | QueryItems;
1535
+ ignoreEsgUri?: string | string[] | QueryItems;
1536
+ ignoreLocationUri?: string | string[] | QueryItems;
1537
+ ignoreLang?: string | string[];
1538
+ showDuplicates?: boolean;
1539
+ startSourceRankPercentile?: number;
1540
+ endSourceRankPercentile?: number;
1541
+ minSentiment?: number;
1542
+ maxSentiment?: number;
1543
+ minSentenceIndex?: number;
1544
+ maxSentenceIndex?: number;
1545
+ requestedResult?: RequestMentions;
1546
+ }
1547
+ export interface IteratorArguments extends Arguments {
1548
+ /**
1549
+ * how should the resulting mentions be sorted. Options: "none", "rel" (relevance), "date" (published date), "size", "socialScore"
1550
+ */
1551
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1552
+ /**
1553
+ * should the results be sorted in ascending order (true) or descending (false)
1554
+ */
1555
+ sortByAsc?: boolean;
1556
+ /**
1557
+ * what details should be included in the returned information
1558
+ */
1559
+ returnInfo?: ReturnInfo;
1560
+ /**
1561
+ * maximum number of items to be returned. Used to stop iteration sooner than results run out
1562
+ */
1563
+ maxItems?: number;
1564
+ }
1565
+
1566
+ export interface RequestMentionsInfoArguments {
1567
+ /**
1568
+ * page of the results to return (1, 2, ...)
1569
+ */
1570
+ page?: number;
1571
+ /**
1572
+ * number of results to return per page
1573
+ */
1574
+ count?: number;
1575
+ /**
1576
+ * how mentions should be sorted
1577
+ */
1578
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1579
+ /**
1580
+ * should the results be sorted in ascending order (true) or descending (false)
1581
+ */
1582
+ sortByAsc?: boolean;
1583
+ /**
1584
+ * what details should be included in the returned information
1585
+ */
1586
+ returnInfo?: ReturnInfo;
1587
+ }
1588
+
1589
+ export interface RequestMentionsUriWgtListArguments {
1590
+ /**
1591
+ * page of the results to return (1, 2, ...)
1592
+ */
1593
+ page?: number;
1594
+ /**
1595
+ * number of results to return per page
1596
+ */
1597
+ count?: number;
1598
+ /**
1599
+ * how should the resulting events be sorted. Options:
1600
+ * - none (no specific sorting),
1601
+ * - date (by event date),
1602
+ * - rel (relevance to the query),
1603
+ * - size (number of articles),
1604
+ * - socialScore (amount of shares in social media)
1605
+ */
1606
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1607
+ /**
1608
+ * should the results be sorted in ascending order (true) or descending (false)
1609
+ */
1610
+ sortByAsc?: boolean;
1611
+ }
1612
+
1613
+ export interface RequestMentionsConceptAggrArguments {
1614
+ /**
1615
+ * number of top concepts to return
1616
+ */
1617
+ conceptCount?: number;
1618
+ /**
1619
+ * on what sample of results should the aggregate be computed
1620
+ */
1621
+ mentionsSampleSize?: number;
1622
+ /**
1623
+ * what details about the concepts should be included in the returned information
1624
+ */
1625
+ returnInfo?: ReturnInfo;
1626
+ /**
1627
+ * how should the top concepts be computed. Possible values are
1628
+ * "importance" (takes into account how frequently a concept is mentioned and how relevant it is in an mention),
1629
+ * "frequency" (ranks the concepts simply by how frequently the concept is mentioned in the results) and
1630
+ * "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)
1631
+ */
1632
+ conceptScoring?: "importance" | "frequency" | "uniqueness"
1633
+ /**
1634
+ * if you wish to limit the number of top concepts per type (person, org, loc, wiki) then set this to some number.
1635
+ * If you want to get equal number of concepts for each type then set conceptCountPerType to conceptCount/4 (since there are 4 concept types)
1636
+ */
1637
+ conceptCountPerType?: number;
1638
+ }
1639
+
1640
+ export interface RequestMentionsCategoryAggrArguments {
1641
+ mentionsSampleSize?: number;
1642
+ returnInfo?: ReturnInfo;
1643
+ }
1644
+
1645
+ export interface RequestMentionsSourceAggrArguments {
1646
+ sourceCount?: number;
1647
+ normalizeBySourceArts?: boolean;
1648
+ returnInfo?: ReturnInfo;
1649
+ }
1650
+
1651
+ export interface RequestMentionsKeywordAggrArguments {
1652
+ mentionsSampleSize?: number;
1653
+ }
1654
+
1655
+ export interface RequestMentionsConceptGraphArguments {
1656
+ /**
1657
+ * number of top sources to return
1658
+ */
1659
+ conceptCount?: number;
1660
+ linkCount?: number;
1661
+ /**
1662
+ * on what sample of results should the aggregate be computed
1663
+ */
1664
+ mentionsSampleSize?: number;
1665
+ /**
1666
+ * what details about the concepts should be included in the returned information
1667
+ */
1668
+ returnInfo?: ReturnInfo;
1669
+ skipQueryConcepts?: boolean;
1670
+ }
1671
+
1672
+ export interface RequestMentionsRecentActivityArguments {
1673
+ /**
1674
+ * max mentions to return
1675
+ */
1676
+ maxMentionCount?: number;
1677
+ updatesAfterUri?: string;
1678
+ /**
1679
+ * the time after which the events were added/updated (returned by previous call to the same method)
1680
+ */
1681
+ updatesAfterTm?: string | Date;
1682
+ /**
1683
+ * how many minutes into the past should we check (set either this or updatesAfterTm property, but not both)
1684
+ */
1685
+ updatesAfterMinsAgo?: number;
1686
+ updatesUntilTm?: string | Date;
1687
+ updatesUntilMinsAgo?: number;
1688
+ /**
1689
+ * return only events that have a geographic location assigned to them
1690
+ */
1691
+ mandatorySourceLocation?: boolean;
1692
+ /**
1693
+ * what details should be included in the returned information
1694
+ */
1695
+ returnInfo?: ReturnInfo;
1696
+ }
1697
+ }
1698
+
1699
+ export namespace QueryEvents {
1700
+ export interface Arguments {
1701
+ /**
1702
+ * find events where articles mention all the specified keywords.
1703
+ * A single keyword/phrase can be provided as a string,
1704
+ * multiple keywords/phrases can be provided as a list of strings.
1705
+ * Use QueryItems.AND() if *all* provided keywords/phrases should be mentioned,
1706
+ * or QueryItems.OR() if *any* of the keywords/phrases should be mentioned.
1707
+ */
1708
+ keywords?: string | string[] | QueryItems;
1709
+ /**
1710
+ * find events where the concept with concept uri is important.
1711
+ * A single concept uri can be provided as a string, multiple concept uris
1712
+ * can be provided as a list of strings.
1713
+ * Use QueryItems.AND() if *all* provided concepts should be mentioned, or QueryItems.OR()
1714
+ * if *any* of the concepts should be mentioned.
1715
+ * To obtain a concept uri using a concept label use EventRegistry.getConceptUri().
1716
+ */
1717
+ conceptUri?: string | string[] | QueryItems;
1718
+ /**
1719
+ * find events that are assigned into a particular category.
1720
+ * A single category uri can be provided as a string, multiple category uris
1721
+ * can be provided as a list of strings.
1722
+ * Use QueryItems.AND() if *all* provided categories should be mentioned, or QueryItems.OR()
1723
+ * if *any* of the categories should be mentioned.
1724
+ * A category uri can be obtained from a category name using EventRegistry.getCategoryUri().
1725
+ */
1726
+ categoryUri?: string | string[] | QueryItems;
1727
+ /**
1728
+ * find events that contain one or more articles that have been written by a news source sourceUri.
1729
+ * If multiple sources should be considered use QueryItems.OR() to provide the list of sources.
1730
+ * Source uri for a given news source name can be obtained using EventRegistry.getNewsSourceUri().
1731
+ */
1732
+ sourceUri?: string | string[] | QueryItems;
1733
+ /**
1734
+ * find events that contain one or more articles that were written
1735
+ * by news sources located in the given geographic location.
1736
+ * If multiple source locations are provided, then put them into a list inside QueryItems.OR()
1737
+ * Location uri can either be a city or a country.
1738
+ * Location uri for a given name can be obtained using EventRegistry.getLocationUri().
1739
+ */
1740
+ sourceLocationUri?: string | string[] | QueryItems;
1741
+ /**
1742
+ * find events that contain one or more articles that were written
1743
+ * by news sources that are assigned to the specified source group.
1744
+ * If multiple source groups are provided, then put them into a list inside QueryItems.OR()
1745
+ * Source group uri for a given name can be obtained using EventRegistry.getSourceGroupUri().
1746
+ */
1747
+ sourceGroupUri?: string | string[] | QueryItems;
1748
+ /**
1749
+ * find events that contain one or more articles that have been written by a specific author.
1750
+ * If multiple authors should be considered use QueryItems.OR() or QueryItems.AND() to provide the list of authors.
1751
+ * Author uri for a given author name can be obtained using EventRegistry.getAuthorUri().
1752
+ */
1753
+ authorUri?: string | string[] | QueryItems;
1754
+ /**
1755
+ * find events that occurred at a particular location.
1756
+ * If value can be a string or a list of strings provided in QueryItems.OR().
1757
+ * Location uri can either be a city or a country.
1758
+ * Location uri for a given name can be obtained using EventRegistry.getLocationUri().
1759
+ */
1760
+ locationUri?: string | string[] | QueryItems;
1761
+ /**
1762
+ * find events for which we found articles in the specified language.
1763
+ * If more than one language is specified, resulting events has to be reported in *any* of the languages.
1764
+ */
1765
+ lang?: string | string[];
1766
+ /**
1767
+ * find events that occurred on or after dateStart. Date should be provided in YYYY-MM-DD format.
1768
+ */
1769
+ dateStart?: string | Date;
1770
+ /**
1771
+ * find events that occurred before or on dateEnd. Date should be provided in YYYY-MM-DD format.
1772
+ */
1773
+ dateEnd?: string | Date;
1774
+ /**
1775
+ * find events where the average date of the articles about this event is on or after this date. Date should be provided in YYYY-MM-DD format, datetime.time or datetime.datetime.
1776
+ */
1777
+ reportingDateStart?: string | Date;
1778
+ /**
1779
+ * find events where the average date of the articles about this event is on or before this date. Date should be provided in YYYY-MM-DD format, datetime.time or datetime.datetime.
1780
+ */
1781
+ reportingDateEnd?: string | Date;
1782
+ /**
1783
+ * minimum value of the sentiment, that the returned events should have. Range [-1, 1]. Note: setting the value will remove all events that don't have a computed value for the sentiment (all events that are not reported in English language)
1784
+ */
1785
+ minSentiment?: number;
1786
+ /**
1787
+ * maximum value of the sentiment, that the returned events should have. Range [-1, 1]. Note: setting the value will remove all events that don't have a computed value for the sentiment (all events that are not reported in English language)
1788
+ */
1789
+ maxSentiment?: number;
1790
+ /**
1791
+ * find events that have been reported in at least minArticlesInEvent articles (regardless of language)
1792
+ */
1793
+ minArticlesInEvent?: number;
1794
+ /**
1795
+ * find events that have not been reported in more than maxArticlesInEvent articles (regardless of language)
1796
+ */
1797
+ maxArticlesInEvent?: number;
1798
+ /**
1799
+ * find events where articles explicitly mention a date that is equal or greater than dateMentionStart.
1800
+ */
1801
+ dateMentionStart?: string | Date;
1802
+ /**
1803
+ * find events where articles explicitly mention a date that is lower or equal to dateMentionEnd.
1804
+ */
1805
+ dateMentionEnd?: string | Date;
1806
+ /**
1807
+ * ignore events where articles about the event mention any of the provided keywords
1808
+ */
1809
+ ignoreKeywords?: string | string[] | QueryItems;
1810
+ /**
1811
+ * ignore events that are about any of the provided concepts
1812
+ */
1813
+ ignoreConceptUri?: string | string[] | QueryItems;
1814
+ /**
1815
+ * ignore events that are about any of the provided categories
1816
+ */
1817
+ ignoreCategoryUri?: string | string[] | QueryItems;
1818
+ /**
1819
+ * ignore events that have have articles which have been written by any of the specified news sources
1820
+ */
1821
+ ignoreSourceUri?: string | string[] | QueryItems;
1822
+ /**
1823
+ * ignore events that have articles which been written by sources located at *any* of the specified locations
1824
+ */
1825
+ ignoreSourceLocationUri?: string | string[] | QueryItems;
1826
+ /**
1827
+ * ignore events that have articles which have been written by sources in *any* of the specified source groups
1828
+ */
1829
+ ignoreSourceGroupUri?: string | string[] | QueryItems;
1830
+ /**
1831
+ * ignore articles that were written by *any* of the specified authors
1832
+ */
1833
+ ignoreAuthorUri?: string | string[] | QueryItems;
1834
+ /**
1835
+ * ignore events that occurred in any of the provided locations. A location can be a city or a place
1836
+ */
1837
+ ignoreLocationUri?: string | string[] | QueryItems;
1838
+ /**
1839
+ * ignore events that are reported in any of the provided languages
1840
+ */
1841
+ ignoreLang?: string | string[];
1842
+ /**
1843
+ * what data should be used when searching using the keywords provided by "keywords" parameter.
1844
+ */
1845
+ keywordsLoc?: "body" | "title" | "body,title";
1846
+ /**
1847
+ * what data should be used when searching using the keywords provided by "ignoreKeywords" parameter.
1848
+ */
1849
+ ignoreKeywordsLoc?: "body" | "title" | "body,title";
1850
+ keywordSearchMode?: "simple" | "exact" | "phrase";
1851
+ ignoreKeywordSearchMode?: "simple" | "exact" | "phrase";
1852
+ /**
1853
+ * when a category is specified using categoryUri, should also all subcategories be included?
1854
+ */
1855
+ categoryIncludeSub?: boolean;
1856
+ /**
1857
+ * when a category is specified using ignoreCategoryUri, should also all subcategories be included?
1858
+ */
1859
+ ignoreCategoryIncludeSub?: boolean;
1860
+ /**
1861
+ * the information to return as the result of the query. By default return the list of matching events
1862
+ */
1863
+ requestedResult?: RequestEvents;
1864
+ }
1865
+ export interface IteratorArguments extends Arguments {
1866
+ /**
1867
+ * how should the resulting events be sorted. Options:
1868
+ * - none (no specific sorting),
1869
+ * - date (by event date),
1870
+ * - rel (relevance to the query),
1871
+ * - size (number of articles),
1872
+ * - socialScore (amount of shares in social media)
1873
+ */
1874
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1875
+ /**
1876
+ * should the results be sorted in ascending order (true) or descending (false)
1877
+ */
1878
+ sortByAsc?: boolean;
1879
+ /**
1880
+ * number of events to download at once (we are not downloading event by event)
1881
+ */
1882
+ eventBatchSize?: number;
1883
+ /**
1884
+ * maximum number of items to be returned. Used to stop iteration sooner than results run out
1885
+ */
1886
+ maxItems?: number;
1887
+ returnInfo?: ReturnInfo;
1888
+ }
1889
+ export interface RequestEventsInfoArguments {
1890
+ /**
1891
+ * page of the results to return (1, 2, ...)
1892
+ */
1893
+ page?: number;
1894
+ /**
1895
+ * number of results to return per page
1896
+ */
1897
+ count?: number;
1898
+ /**
1899
+ * how should the resulting events be sorted. Options:
1900
+ * - none (no specific sorting),
1901
+ * - date (by event date),
1902
+ * - rel (relevance to the query),
1903
+ * - size (number of articles),
1904
+ * - socialScore (amount of shares in social media)
1905
+ */
1906
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1907
+ /**
1908
+ * should the results be sorted in ascending order (true) or descending (false)
1909
+ */
1910
+ sortByAsc?: boolean;
1911
+ /**
1912
+ * what details should be included in the returned information
1913
+ */
1914
+ returnInfo?: ReturnInfo;
1915
+ }
1916
+ export interface RequestEventsUriListArguments {
1917
+ /**
1918
+ * page of the results to return (1, 2, ...)
1919
+ */
1920
+ page?: number;
1921
+ /**
1922
+ * number of results to return per page
1923
+ */
1924
+ count?: number;
1925
+ /**
1926
+ * how should the resulting events be sorted. Options:
1927
+ * - none (no specific sorting),
1928
+ * - date (by event date),
1929
+ * - rel (relevance to the query),
1930
+ * - size (number of articles),
1931
+ * - socialScore (amount of shares in social media)
1932
+ */
1933
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1934
+ /**
1935
+ * should the results be sorted in ascending order (true) or descending (false)
1936
+ */
1937
+ sortByAsc?: boolean;
1938
+ }
1939
+
1940
+ export interface RequestEventsUriWgtListArguments {
1941
+ /**
1942
+ * page of the results to return (1, 2, ...)
1943
+ */
1944
+ page?: number;
1945
+ /**
1946
+ * number of results to return per page
1947
+ */
1948
+ count?: number;
1949
+ /**
1950
+ * how should the resulting events be sorted. Options:
1951
+ * - none (no specific sorting),
1952
+ * - date (by event date),
1953
+ * - rel (relevance to the query),
1954
+ * - size (number of articles),
1955
+ * - socialScore (amount of shares in social media)
1956
+ */
1957
+ sortBy?: "none" | "rel" | "date" | "size" | "socialScore";
1958
+ /**
1959
+ * should the results be sorted in ascending order (true) or descending (false)
1960
+ */
1961
+ sortByAsc?: boolean;
1962
+ }
1963
+
1964
+ export interface RequestEventsLocAggrArguments {
1965
+ /**
1966
+ * sample of events to use to compute the location aggregate
1967
+ */
1968
+ eventsSampleSize?: number;
1969
+ /**
1970
+ * what details (about locations) should be included in the returned information
1971
+ */
1972
+ returnInfo?: ReturnInfo;
1973
+ }
1974
+
1975
+ export interface RequestEventsLocTimeAggrArguments {
1976
+ /**
1977
+ * sample of events to use to compute the location aggregate
1978
+ */
1979
+ eventsSampleSize?: number;
1980
+ /**
1981
+ * what details (about locations) should be included in the returned information
1982
+ */
1983
+ returnInfo?: ReturnInfo;
1984
+ }
1985
+
1986
+ export interface RequestEventsConceptAggrArguments {
1987
+ /**
1988
+ * number of top concepts to return
1989
+ */
1990
+ conceptCount?: number;
1991
+ /**
1992
+ * on what sample of results should the aggregate be computed
1993
+ */
1994
+ eventsSampleSize?: number;
1995
+ /**
1996
+ * what details about the concepts should be included in the returned information
1997
+ */
1998
+ returnInfo?: ReturnInfo;
1999
+ }
2000
+ export interface RequestEventsConceptGraphArguments {
2001
+ /**
2002
+ * number of top concepts to return
2003
+ */
2004
+ conceptCount?: number;
2005
+ /**
2006
+ * number of links between the concepts to return
2007
+ */
2008
+ linkCount?: number;
2009
+ /**
2010
+ * on what sample of results should the aggregate be computed
2011
+ */
2012
+ eventsSampleSize?: number;
2013
+ /**
2014
+ * what details about the concepts should be included in the returned information
2015
+ */
2016
+ returnInfo?: ReturnInfo;
2017
+ }
2018
+
2019
+ export interface RequestEventsConceptMatrixArguments {
2020
+ /**
2021
+ * number of top concepts to return
2022
+ */
2023
+ conceptCount?: number;
2024
+ /**
2025
+ * how should the interestingness between the selected pairs of concepts be computed. Options: pmi (pointwise mutual information), pairTfIdf (pair frequence * IDF of individual concepts), chiSquare
2026
+ */
2027
+ measure?: "pmi" | "pairTfIdf" | "chiSquare";
2028
+ /**
2029
+ * on what sample of results should the aggregate be computed
2030
+ */
2031
+ eventsSampleSize?: number;
2032
+ /**
2033
+ * what details about the concepts should be included in the returned information
2034
+ */
2035
+ returnInfo?: ReturnInfo;
2036
+ }
2037
+
2038
+ export interface RequestEventsConceptTrendsArguments {
2039
+ /**
2040
+ * number of top concepts to return
2041
+ */
2042
+ conceptCount?: number;
2043
+ /**
2044
+ * what details about the concepts should be included in the returned information
2045
+ */
2046
+ returnInfo?: ReturnInfo;
2047
+ /**
2048
+ * list of concept URIs for which to return trending information. If empty, then top concepts will be automatically computed.
2049
+ */
2050
+ conceptUris?: string[];
2051
+ }
2052
+
2053
+ export interface RequestEventsSourceAggrArguments {
2054
+ /**
2055
+ * number of top sources to return
2056
+ */
2057
+ sourceCount?: number;
2058
+ /**
2059
+ * on what sample of results should the aggregate be computed
2060
+ */
2061
+ eventsSampleSize?: number;
2062
+ /**
2063
+ * what details about the concepts should be included in the returned information
2064
+ */
2065
+ returnInfo?: ReturnInfo;
2066
+ }
2067
+
2068
+ export interface RequestEventsDateMentionAggrArguments {
2069
+ /**
2070
+ * ignore events that don't have a date that is more than this number of days apart from the tested event
2071
+ */
2072
+ minDaysApart?: number;
2073
+ /**
2074
+ * report only dates that are mentioned at least this number of times
2075
+ */
2076
+ minDateMentionCount?: number;
2077
+ /**
2078
+ * on what sample of results should the aggregate be computed
2079
+ */
2080
+ eventsSampleSize?: number;
2081
+ /**
2082
+ * what details about the concepts should be included in the returned information
2083
+ */
2084
+ returnInfo?: ReturnInfo;
2085
+ }
2086
+
2087
+ export interface RequestEventsEventClustersArguments {
2088
+ /**
2089
+ * number of keywords to report in each of the clusters
2090
+ */
2091
+ keywordCount?: number;
2092
+ /**
2093
+ * try to cluster at most this number of events
2094
+ */
2095
+ maxEventsToCluster?: number;
2096
+ /**
2097
+ * what details about the concepts should be included in the returned information
2098
+ */
2099
+ returnInfo?: ReturnInfo;
2100
+ }
2101
+
2102
+ export interface RequestEventsRecentActivityArguments {
2103
+ /**
2104
+ * max events to return
2105
+ */
2106
+ maxEventCount?: number;
2107
+ /**
2108
+ * the time after which the events were added/updated (returned by previous call to the same method)
2109
+ */
2110
+ updatesAfterTm?: string | Date;
2111
+ /**
2112
+ * how many minutes into the past should we check (set either this or updatesAfterTm property, but not both)
2113
+ */
2114
+ updatesAfterMinsAgo?: number;
2115
+ /**
2116
+ * return only events that have a geographic location assigned to them
2117
+ */
2118
+ mandatoryLocation?: boolean;
2119
+ /**
2120
+ * the minimum avg cos sim of the events to be returned (events with lower quality should not be included)
2121
+ */
2122
+ minAvgCosSim?: number;
2123
+ /**
2124
+ * what details should be included in the returned information
2125
+ */
2126
+ returnInfo?: ReturnInfo;
2127
+ }
2128
+
2129
+ export interface RequestEventsBreakingEventsArguments {
2130
+ /**
2131
+ * page of the results to return (1, 2, ...)
2132
+ */
2133
+ page?: number;
2134
+ /**
2135
+ * max events to return (at most 50)
2136
+ */
2137
+ count?: number;
2138
+ /**
2139
+ * the minimum score of "breakingness" of the events to be returned
2140
+ */
2141
+ minBreakingScore?: number;
2142
+ /**
2143
+ * what details should be included in the returned information
2144
+ */
2145
+ returnInfo?: ReturnInfo;
2146
+ }
2147
+ }
2148
+ // tslint:disable-next-line:no-shadowed-variable
2149
+ export namespace ReturnInfo {
2150
+ /**
2151
+ * What information about an article should be returned by the API call
2152
+ */
2153
+ export interface ArticleInfo {
2154
+ /**
2155
+ * max length of the article body (use -1 for full body, 0 for empty)
2156
+ */
2157
+ bodyLen?: number;
2158
+ /**
2159
+ * core article information -
2160
+ */
2161
+ basicInfo?: boolean;
2162
+ /**
2163
+ * article title
2164
+ */
2165
+ title?: boolean;
2166
+ /**
2167
+ * article body
2168
+ */
2169
+ body?: boolean;
2170
+ /**
2171
+ * article url
2172
+ */
2173
+ url?: boolean;
2174
+ /**
2175
+ * uri of the event to which the article belongs
2176
+ */
2177
+ eventUri?: boolean;
2178
+ /**
2179
+ * the list of authors of the news article
2180
+ */
2181
+ authors?: boolean;
2182
+ /**
2183
+ * the list of concepts mentioned in the article
2184
+ */
2185
+ concepts?: boolean;
2186
+ /**
2187
+ * the list of categories assigned to the article
2188
+ */
2189
+ categories?: boolean;
2190
+ /**
2191
+ * the list of urls of links identified in the article body
2192
+ */
2193
+ links?: boolean;
2194
+ /**
2195
+ * the list of videos assigned to the article
2196
+ */
2197
+ videos?: boolean;
2198
+ /**
2199
+ * url to the image associated with the article
2200
+ */
2201
+ image?: boolean;
2202
+ /**
2203
+ * information about the number of times the article was shared on facebook and linkedin, instagram, ...
2204
+ */
2205
+ socialScore?: boolean;
2206
+ /**
2207
+ * sentiment about the article
2208
+ */
2209
+ sentiment?: boolean;
2210
+ /**
2211
+ * the geographic location that the event mentioned in the article is about
2212
+ */
2213
+ location?: boolean;
2214
+ /**
2215
+ * the dates when the articles was crawled and the date when it was published (based on the rss feed date)
2216
+ */
2217
+ dates?: boolean;
2218
+ /**
2219
+ * the list of dates found mentioned in the article
2220
+ */
2221
+ extractedDates?: boolean;
2222
+ /**
2223
+ * if the article is a duplicate, this will provide information about the original article
2224
+ */
2225
+ originalArticle?: boolean;
2226
+ /**
2227
+ * uri of the story (cluster) to which the article belongs
2228
+ */
2229
+ storyUri?: boolean;
2230
+ [name: string]: boolean | string | number | undefined;
2231
+ }
2232
+
2233
+ /**
2234
+ * What information about an article should be returned by the API call
2235
+ */
2236
+ export interface ArticleInfoFlags {
2237
+ /**
2238
+ * max length of the article body (use -1 for full body, 0 for empty)
2239
+ */
2240
+ ArticleBodyLen?: number;
2241
+ /**
2242
+ * core article information -
2243
+ */
2244
+ IncludeArticleBasicInfo?: boolean;
2245
+ /**
2246
+ * article title
2247
+ */
2248
+ IncludeArticleTitle?: boolean;
2249
+ /**
2250
+ * article body
2251
+ */
2252
+ IncludeArticleBody?: boolean;
2253
+ /**
2254
+ * article url
2255
+ */
2256
+ IncludeArticleUrl?: boolean;
2257
+ /**
2258
+ * uri of the event to which the article belongs
2259
+ */
2260
+ IncludeArticleEventUri?: boolean;
2261
+ /**
2262
+ * the list of concepts mentioned in the article
2263
+ */
2264
+ IncludeArticleConcepts?: boolean;
2265
+ /**
2266
+ * the list of categories assigned to the article
2267
+ */
2268
+ IncludeArticleCategories?: boolean;
2269
+ /**
2270
+ * the list of urls of links identified in the article body
2271
+ */
2272
+ IncludeArticleLinks?: boolean;
2273
+ /**
2274
+ * the list of videos assigned to the article
2275
+ */
2276
+ IncludeArticleVideos?: boolean;
2277
+ /**
2278
+ * url to the image associated with the article
2279
+ */
2280
+ IncludeArticleImage?: boolean;
2281
+ /**
2282
+ * information about the number of times the article was shared on facebook and linkedin, instagram, ...
2283
+ */
2284
+ IncludeArticleSocialScore?: boolean;
2285
+ /**
2286
+ * sentiment about the article
2287
+ */
2288
+ IncludeArticleSentiment?: boolean;
2289
+ /**
2290
+ * the geographic location that the event mentioned in the article is about
2291
+ */
2292
+ IncludeArticleLocation?: boolean;
2293
+ /**
2294
+ * the dates when the articles was crawled and the date when it was published (based on the rss feed date)
2295
+ */
2296
+ IncludeArticleDates?: boolean;
2297
+ /**
2298
+ * the list of dates found mentioned in the article
2299
+ */
2300
+ IncludeArticleExtractedDates?: boolean;
2301
+ /**
2302
+ * the list of articles that are a copy of this article
2303
+ */
2304
+ IncludeArticleDuplicateList?: boolean;
2305
+ /**
2306
+ * if the article is a duplicate, this will provide information about the original article
2307
+ */
2308
+ IncludeArticleOriginalArticle?: boolean;
2309
+ /**
2310
+ * uri of the story (cluster) to which the article belongs
2311
+ */
2312
+ IncludeArticleStoryUri?: boolean;
2313
+ }
2314
+
2315
+ /**
2316
+ * What information about a story (cluster of articles) should be returned by the API call
2317
+ */
2318
+ export interface StoryInfoFlags {
2319
+ /**
2320
+ * core stats about the story
2321
+ */
2322
+ IncludeStoryBasicStats?: boolean;
2323
+ /**
2324
+ * geographic location that the story is about
2325
+ */
2326
+ IncludeStoryLocation?: boolean;
2327
+ /**
2328
+ * date of the story
2329
+ */
2330
+ IncludeStoryDate?: boolean;
2331
+ /**
2332
+ * title of the story
2333
+ */
2334
+ IncludeStoryTitle?: boolean;
2335
+ /**
2336
+ * summary of the story
2337
+ */
2338
+ IncludeStorySummary?: boolean;
2339
+ /**
2340
+ * set of concepts associated with the story
2341
+ */
2342
+ IncludeStoryConcepts?: boolean;
2343
+ /**
2344
+ * categories associated with the story
2345
+ */
2346
+ IncludeStoryCategories?: boolean;
2347
+ /**
2348
+ * the article that is closest to the center of the cluster of articles assigned to the story
2349
+ */
2350
+ IncludeStoryMedoidArticle?: boolean;
2351
+ /**
2352
+ * dates that were frequently identified in the articles belonging to the story
2353
+ */
2354
+ IncludeStoryCommonDates?: boolean;
2355
+ /**
2356
+ * score computed based on how frequently the articles in the story were shared on social media
2357
+ */
2358
+ IncludeStorySocialScore?: boolean;
2359
+ /**
2360
+ * number of images to be returned for a story
2361
+ */
2362
+ StoryImageCount?: number;
2363
+ }
2364
+
2365
+ /**
2366
+ * What information about a story (cluster of articles) should be returned by the API call
2367
+ */
2368
+ export interface StoryInfo {
2369
+ /**
2370
+ * core stats about the story
2371
+ */
2372
+ basicStats?: boolean;
2373
+ /**
2374
+ * geographic location that the story is about
2375
+ */
2376
+ location?: boolean;
2377
+ /**
2378
+ * date of the story
2379
+ */
2380
+ date?: boolean;
2381
+ /**
2382
+ * title of the story
2383
+ */
2384
+ title?: boolean;
2385
+ /**
2386
+ * summary of the story
2387
+ */
2388
+ summary?: boolean;
2389
+ /**
2390
+ * set of concepts associated with the story
2391
+ */
2392
+ concepts?: boolean;
2393
+ /**
2394
+ * categories associated with the story
2395
+ */
2396
+ categories?: boolean;
2397
+ /**
2398
+ * the article that is closest to the center of the cluster of articles assigned to the story
2399
+ */
2400
+ medoidArticle?: boolean;
2401
+ /**
2402
+ * the article from which we have extracted the title and summary for the story
2403
+ */
2404
+ infoArticle?: boolean;
2405
+ /**
2406
+ * dates that were frequently identified in the articles belonging to the story
2407
+ */
2408
+ commonDates?: boolean;
2409
+ /**
2410
+ * score computed based on how frequently the articles in the story were shared on social media
2411
+ */
2412
+ socialScore?: boolean;
2413
+ /**
2414
+ * number of images to be returned for a story
2415
+ */
2416
+ imageCount?: number;
2417
+ [name: string]: boolean | string | number | undefined;
2418
+ }
2419
+
2420
+ /**
2421
+ * What information about an event should be returned by the API call
2422
+ */
2423
+ export interface EventInfoFlags {
2424
+ /**
2425
+ * return the title of the event
2426
+ */
2427
+ IncludeEventTitle?: boolean;
2428
+ /**
2429
+ * return the summary of the event
2430
+ */
2431
+ IncludeEventSummary?: boolean;
2432
+ /**
2433
+ * return the number of articles that are assigned to the event
2434
+ */
2435
+ IncludeEventArticleCounts?: boolean;
2436
+ /**
2437
+ * return information about the main concepts related to the event
2438
+ */
2439
+ IncludeEventConcepts?: boolean;
2440
+ /**
2441
+ * return information about the categories related to the event
2442
+ */
2443
+ IncludeEventCategories?: boolean;
2444
+ /**
2445
+ * return the location where the event occurred
2446
+ */
2447
+ IncludeEventLocation?: boolean;
2448
+ /**
2449
+ * return information about the date of the event
2450
+ */
2451
+ IncludeEventDate?: boolean;
2452
+ /**
2453
+ * return the dates that were commonly found in the articles about the event
2454
+ */
2455
+ IncludeEventCommonDates?: boolean;
2456
+ /**
2457
+ * return the list of stories (clusters) that are about the event
2458
+ */
2459
+ IncludeEventStories?: boolean;
2460
+ /**
2461
+ * score computed based on how frequently the articles in the event were shared on social media
2462
+ */
2463
+ IncludeEventSocialScore?: boolean;
2464
+ /**
2465
+ * number of images to be returned for an event
2466
+ */
2467
+ EventImageCount?: number;
2468
+ }
2469
+
2470
+ /**
2471
+ * What information about an event should be returned by the API call
2472
+ */
2473
+ export interface EventInfo {
2474
+ /**
2475
+ * return the title of the event
2476
+ */
2477
+ title?: boolean;
2478
+ /**
2479
+ * return the summary of the event
2480
+ */
2481
+ summary?: boolean;
2482
+ /**
2483
+ * return the number of articles that are assigned to the event
2484
+ */
2485
+ articleCounts?: boolean;
2486
+ /**
2487
+ * return information about the main concepts related to the event
2488
+ */
2489
+ concepts?: boolean;
2490
+ /**
2491
+ * return information about the categories related to the event
2492
+ */
2493
+ categories?: boolean;
2494
+ /**
2495
+ * return information about the date of the event
2496
+ */
2497
+ date?: boolean;
2498
+ /**
2499
+ * return the dates that were commonly found in the articles about the event
2500
+ */
2501
+ commonDates?: boolean;
2502
+ /**
2503
+ * return for each language the article from which we have extracted the summary and title for event for that language
2504
+ */
2505
+ articleInfo?: boolean;
2506
+ /**
2507
+ * return the list of stories (clusters) that are about the event
2508
+ */
2509
+ stories?: boolean;
2510
+ /**
2511
+ * score computed based on how frequently the articles in the event were shared on social media
2512
+ */
2513
+ socialScore?: boolean;
2514
+ /**
2515
+ * number of images to be returned for an event
2516
+ */
2517
+ imageCount?: number;
2518
+ [name: string]: boolean | string | number | undefined;
2519
+ }
2520
+
2521
+ /**
2522
+ * What information about a news source should be returned by the API call
2523
+ */
2524
+ export interface SourceInfoFlags {
2525
+ /**
2526
+ * title of the news source
2527
+ */
2528
+ IncludeSourceTitle?: boolean;
2529
+ /**
2530
+ * description of the news source
2531
+ */
2532
+ IncludeSourceDescription?: boolean;
2533
+ /**
2534
+ * geographic location of the news source
2535
+ */
2536
+ IncludeSourceLocation?: boolean;
2537
+ /**
2538
+ * a set of rankings for the news source
2539
+ */
2540
+ IncludeSourceRanking?: boolean;
2541
+ /**
2542
+ * different images associated with the news source
2543
+ */
2544
+ IncludeSourceImage?: boolean;
2545
+ /**
2546
+ * different social media accounts used by the news source
2547
+ */
2548
+ IncludeSourceSocialMedia?: boolean;
2549
+ }
2550
+
2551
+ /**
2552
+ * What information about a news source should be returned by the API call
2553
+ */
2554
+ export interface SourceInfo {
2555
+ /**
2556
+ * title of the news source
2557
+ */
2558
+ title?: boolean;
2559
+ /**
2560
+ * description of the news source
2561
+ */
2562
+ description?: boolean;
2563
+ /**
2564
+ * geographic location of the news source
2565
+ */
2566
+ location?: boolean;
2567
+ /**
2568
+ * a set of rankings for the news source
2569
+ */
2570
+ ranking?: boolean;
2571
+ /**
2572
+ * different images associated with the news source
2573
+ */
2574
+ image?: boolean;
2575
+ /**
2576
+ * the number of articles from this news source that are stored in Event Registry
2577
+ */
2578
+ articleCount?: boolean;
2579
+ /**
2580
+ * different social media accounts used by the news source
2581
+ */
2582
+ socialMedia?: boolean;
2583
+ /**
2584
+ * info about the names of the source groups to which the source belongs to
2585
+ */
2586
+ sourceGroups?: boolean;
2587
+ [name: string]: boolean | string | number | undefined;
2588
+ }
2589
+
2590
+ /**
2591
+ * What information about a category should be returned by the API call
2592
+ */
2593
+ export interface CategoryInfoFlags {
2594
+ IncludeCategoryTrendingScore?: boolean;
2595
+ }
2596
+
2597
+ /**
2598
+ * What information about a category should be returned by the API call
2599
+ */
2600
+ export interface CategoryInfo {
2601
+ trendingScore?: boolean;
2602
+ [name: string]: boolean | string | number | undefined;
2603
+ }
2604
+
2605
+ export interface ConceptInfoFlags {
2606
+ ConceptType?: ConceptType;
2607
+ lang?: string | string[];
2608
+ IncludeConceptLabel?: boolean;
2609
+ IncludeConceptSynonyms?: boolean;
2610
+ IncludeConceptImage?: boolean;
2611
+ IncludeConceptDescription?: boolean;
2612
+ IncludeConceptTrendingScore?: boolean;
2613
+ MaxConceptsPerType?: number;
2614
+ }
2615
+
2616
+ export interface ConceptInfo {
2617
+ type?: ConceptType | ConceptType[];
2618
+ lang?: string | string[];
2619
+ label?: boolean;
2620
+ synonyms?: boolean;
2621
+ image?: boolean;
2622
+ description?: boolean;
2623
+ trendingScore?: boolean;
2624
+ maxConceptsPerType?: number;
2625
+ [name: string]: boolean | string | number | (boolean | string | number)[] | undefined;
2626
+ }
2627
+
2628
+ export interface LocationInfoFlags {
2629
+ label?: boolean;
2630
+ wikiUri?: boolean;
2631
+ geoNamesId?: boolean;
2632
+ population?: boolean;
2633
+ geoLocation?: boolean;
2634
+ countryArea?: boolean;
2635
+ countryDetails?: boolean;
2636
+ countryContinent?: boolean;
2637
+ placeFeatureCode?: boolean;
2638
+ placeCountry?: boolean;
2639
+ }
2640
+
2641
+ export interface LocationInfo {
2642
+ label?: boolean;
2643
+ wikiUri?: boolean;
2644
+ geoNamesId?: boolean;
2645
+ population?: boolean;
2646
+ geoLocation?: boolean;
2647
+ countryArea?: boolean;
2648
+ countryDetails?: boolean;
2649
+ countryContinent?: boolean;
2650
+ placeFeatureCode?: boolean;
2651
+ placeCountry?: boolean;
2652
+ [name: string]: boolean | string | number | undefined;
2653
+ }
2654
+
2655
+ export interface ConceptClassInfoFlags {
2656
+ IncludeConceptClassParentLabels?: boolean;
2657
+ IncludeConceptClassConcepts?: boolean;
2658
+ }
2659
+
2660
+ export interface ConceptClassInfo {
2661
+ parentLabels?: boolean;
2662
+ concepts?: boolean;
2663
+ [name: string]: boolean | string | number | undefined;
2664
+ }
2665
+
2666
+ export interface ConceptFolderInfoFlags {
2667
+ IncludeConceptFolderDefinition?: boolean;
2668
+ IncludeConceptFolderOwner?: boolean;
2669
+ }
2670
+
2671
+ export interface ConceptFolderInfo {
2672
+ definition?: boolean;
2673
+ owner?: boolean;
2674
+ [name: string]: boolean | string | number | undefined;
2675
+ }
2676
+ }
2677
+
2678
+ }