eventregistry 8.11.2 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics.d.ts +82 -82
- package/dist/analytics.js +336 -330
- package/dist/analytics.js.map +1 -1
- package/dist/base.d.ts +82 -81
- package/dist/base.js +261 -219
- package/dist/base.js.map +1 -1
- package/dist/counts.d.ts +81 -81
- package/dist/counts.js +162 -149
- package/dist/counts.js.map +1 -1
- package/dist/dailyShares.d.ts +10 -10
- package/dist/dailyShares.js +90 -77
- package/dist/dailyShares.js.map +1 -1
- package/dist/data.d.ts +269 -268
- package/dist/data.js +3 -3
- package/dist/eventForText.d.ts +48 -48
- package/dist/eventForText.js +126 -123
- package/dist/eventForText.js.map +1 -1
- package/dist/eventRegistry.d.ts +244 -224
- package/dist/eventRegistry.js +1098 -1018
- package/dist/eventRegistry.js.map +1 -1
- package/dist/index.d.ts +21 -20
- package/dist/index.js +128 -122
- package/dist/index.js.map +1 -1
- package/dist/info.d.ts +61 -61
- package/dist/info.js +171 -158
- package/dist/info.js.map +1 -1
- package/dist/logger.d.ts +44 -0
- package/dist/logger.js +144 -0
- package/dist/logger.js.map +1 -0
- package/dist/query.d.ts +53 -53
- package/dist/query.js +333 -290
- package/dist/query.js.map +1 -1
- package/dist/queryArticle.d.ts +61 -61
- package/dist/queryArticle.js +183 -168
- package/dist/queryArticle.js.map +1 -1
- package/dist/queryArticles.d.ts +144 -160
- package/dist/queryArticles.js +729 -701
- package/dist/queryArticles.js.map +1 -1
- package/dist/queryEvent.d.ts +140 -140
- package/dist/queryEvent.js +587 -569
- package/dist/queryEvent.js.map +1 -1
- package/dist/queryEvents.d.ts +210 -210
- package/dist/queryEvents.js +825 -798
- package/dist/queryEvents.js.map +1 -1
- package/dist/queryMentions.d.ts +96 -96
- package/dist/queryMentions.js +637 -600
- package/dist/queryMentions.js.map +1 -1
- package/dist/queryStory.d.ts +58 -58
- package/dist/queryStory.js +194 -174
- package/dist/queryStory.js.map +1 -1
- package/dist/recent.d.ts +23 -23
- package/dist/recent.js +199 -179
- package/dist/recent.js.map +1 -1
- package/dist/returnInfo.d.ts +68 -66
- package/dist/returnInfo.js +332 -304
- package/dist/returnInfo.js.map +1 -1
- package/dist/topicPage.d.ts +157 -157
- package/dist/topicPage.js +599 -604
- package/dist/topicPage.js.map +1 -1
- package/dist/trends.d.ts +35 -35
- package/dist/trends.js +115 -102
- package/dist/trends.js.map +1 -1
- package/dist/types.d.ts +2453 -2155
- package/dist/types.js +2 -2
- package/package.json +13 -13
package/dist/recent.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { QueryParamsBase } from "./base";
|
|
2
|
-
import { EventRegistry } from "./eventRegistry";
|
|
3
|
-
import { ReturnInfo } from "./returnInfo";
|
|
4
|
-
export declare class GetRecentEvents extends QueryParamsBase {
|
|
5
|
-
private er;
|
|
6
|
-
constructor(er: EventRegistry, { mandatoryLang, mandatoryLocation, returnInfo, }?: {
|
|
7
|
-
mandatoryLang?: any;
|
|
8
|
-
mandatoryLocation?: boolean;
|
|
9
|
-
returnInfo?: ReturnInfo;
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
getUpdates(): Promise<
|
|
13
|
-
}
|
|
14
|
-
export declare class GetRecentArticles extends QueryParamsBase {
|
|
15
|
-
private er;
|
|
16
|
-
constructor(er: EventRegistry, { mandatorySourceLocation, lang, returnInfo, ...kwargs }?: {
|
|
17
|
-
mandatorySourceLocation?: any;
|
|
18
|
-
lang?: any;
|
|
19
|
-
returnInfo?: ReturnInfo;
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
getUpdates(): Promise<
|
|
23
|
-
}
|
|
1
|
+
import { QueryParamsBase } from "./base";
|
|
2
|
+
import { EventRegistry } from "./eventRegistry";
|
|
3
|
+
import { ReturnInfo } from "./returnInfo";
|
|
4
|
+
export declare class GetRecentEvents extends QueryParamsBase {
|
|
5
|
+
private er;
|
|
6
|
+
constructor(er: EventRegistry, { mandatoryLang, mandatoryLocation, returnInfo, }?: {
|
|
7
|
+
mandatoryLang?: any;
|
|
8
|
+
mandatoryLocation?: boolean;
|
|
9
|
+
returnInfo?: ReturnInfo;
|
|
10
|
+
});
|
|
11
|
+
get path(): string;
|
|
12
|
+
getUpdates(): Promise<{}>;
|
|
13
|
+
}
|
|
14
|
+
export declare class GetRecentArticles extends QueryParamsBase {
|
|
15
|
+
private er;
|
|
16
|
+
constructor(er: EventRegistry, { mandatorySourceLocation, lang, returnInfo, ...kwargs }?: {
|
|
17
|
+
mandatorySourceLocation?: any;
|
|
18
|
+
lang?: any;
|
|
19
|
+
returnInfo?: ReturnInfo;
|
|
20
|
+
});
|
|
21
|
+
get path(): string;
|
|
22
|
+
getUpdates(): Promise<unknown[]>;
|
|
23
|
+
}
|
package/dist/recent.js
CHANGED
|
@@ -1,180 +1,200 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
}
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
d
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
op =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
var
|
|
87
|
-
var
|
|
88
|
-
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
38
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
39
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
40
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
41
|
+
function step(op) {
|
|
42
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
43
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
44
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
45
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
46
|
+
switch (op[0]) {
|
|
47
|
+
case 0: case 1: t = op; break;
|
|
48
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
49
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
50
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
51
|
+
default:
|
|
52
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
53
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
54
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
55
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
56
|
+
if (t[2]) _.ops.pop();
|
|
57
|
+
_.trys.pop(); continue;
|
|
58
|
+
}
|
|
59
|
+
op = body.call(thisArg, _);
|
|
60
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
61
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
65
|
+
var t = {};
|
|
66
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
67
|
+
t[p] = s[p];
|
|
68
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
69
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
70
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
71
|
+
t[p[i]] = s[p[i]];
|
|
72
|
+
}
|
|
73
|
+
return t;
|
|
74
|
+
};
|
|
75
|
+
var __values = (this && this.__values) || function(o) {
|
|
76
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
77
|
+
if (m) return m.call(o);
|
|
78
|
+
if (o && typeof o.length === "number") return {
|
|
79
|
+
next: function () {
|
|
80
|
+
if (o && i >= o.length) o = void 0;
|
|
81
|
+
return { value: o && o[i++], done: !o };
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
85
|
+
};
|
|
86
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
87
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
88
|
+
if (!m) return o;
|
|
89
|
+
var i = m.call(o), r, ar = [], e;
|
|
90
|
+
try {
|
|
91
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
92
|
+
}
|
|
93
|
+
catch (error) { e = { error: error }; }
|
|
94
|
+
finally {
|
|
95
|
+
try {
|
|
96
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
97
|
+
}
|
|
98
|
+
finally { if (e) throw e.error; }
|
|
99
|
+
}
|
|
100
|
+
return ar;
|
|
101
|
+
};
|
|
102
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103
|
+
exports.GetRecentArticles = exports.GetRecentEvents = void 0;
|
|
104
|
+
var base_1 = require("./base");
|
|
105
|
+
var returnInfo_1 = require("./returnInfo");
|
|
106
|
+
var GetRecentEvents = /** @class */ (function (_super) {
|
|
107
|
+
__extends(GetRecentEvents, _super);
|
|
108
|
+
function GetRecentEvents(er, _a) {
|
|
109
|
+
var _b = _a === void 0 ? {} : _a, _c = _b.mandatoryLang, mandatoryLang = _c === void 0 ? undefined : _c, _d = _b.mandatoryLocation, mandatoryLocation = _d === void 0 ? true : _d, _e = _b.returnInfo, returnInfo = _e === void 0 ? new returnInfo_1.ReturnInfo() : _e;
|
|
110
|
+
var _this = _super.call(this) || this;
|
|
111
|
+
_this.er = er;
|
|
112
|
+
_this.setVal("recentActivityEventsMandatoryLocation", mandatoryLocation);
|
|
113
|
+
if (mandatoryLang !== undefined) {
|
|
114
|
+
_this.setVal("recentActivityEventsMandatoryLang", mandatoryLang);
|
|
115
|
+
}
|
|
116
|
+
_this.params = __assign(__assign({}, _this.params), returnInfo.getParams("recentActivityEvents"));
|
|
117
|
+
return _this;
|
|
118
|
+
}
|
|
119
|
+
Object.defineProperty(GetRecentEvents.prototype, "path", {
|
|
120
|
+
get: function () {
|
|
121
|
+
return "/api/v1/minuteStreamEvents";
|
|
122
|
+
},
|
|
123
|
+
enumerable: false,
|
|
124
|
+
configurable: true
|
|
125
|
+
});
|
|
126
|
+
GetRecentEvents.prototype.getUpdates = function () {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
+
var response;
|
|
129
|
+
var _a;
|
|
130
|
+
return __generator(this, function (_b) {
|
|
131
|
+
switch (_b.label) {
|
|
132
|
+
case 0: return [4 /*yield*/, this.er.execQuery(this)];
|
|
133
|
+
case 1:
|
|
134
|
+
response = _b.sent();
|
|
135
|
+
return [2 /*return*/, ((_a = response.recentActivityEvents) === null || _a === void 0 ? void 0 : _a.activity) || {}];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
return GetRecentEvents;
|
|
141
|
+
}(base_1.QueryParamsBase));
|
|
142
|
+
exports.GetRecentEvents = GetRecentEvents;
|
|
143
|
+
var GetRecentArticles = /** @class */ (function (_super) {
|
|
144
|
+
__extends(GetRecentArticles, _super);
|
|
145
|
+
function GetRecentArticles(er, _a) {
|
|
146
|
+
if (_a === void 0) { _a = {}; }
|
|
147
|
+
var _this = this;
|
|
148
|
+
var _b = _a.mandatorySourceLocation, mandatorySourceLocation = _b === void 0 ? undefined : _b, _c = _a.lang, lang = _c === void 0 ? undefined : _c, _d = _a.returnInfo, returnInfo = _d === void 0 ? new returnInfo_1.ReturnInfo() : _d, kwargs = __rest(_a, ["mandatorySourceLocation", "lang", "returnInfo"]);
|
|
149
|
+
_this = _super.call(this) || this;
|
|
150
|
+
_this.er = er;
|
|
151
|
+
_this.setVal("recentActivityArticlesMandatorySourceLocation", mandatorySourceLocation);
|
|
152
|
+
if (lang !== undefined) {
|
|
153
|
+
_this.setVal("recentActivityArticlesLang", lang);
|
|
154
|
+
}
|
|
155
|
+
_this.params = __assign(__assign({}, _this.params), kwargs);
|
|
156
|
+
_this.params = __assign(__assign({}, _this.params), returnInfo.getParams("recentActivityArticles"));
|
|
157
|
+
return _this;
|
|
158
|
+
}
|
|
159
|
+
Object.defineProperty(GetRecentArticles.prototype, "path", {
|
|
160
|
+
get: function () {
|
|
161
|
+
return "/api/v1/minuteStreamArticles";
|
|
162
|
+
},
|
|
163
|
+
enumerable: false,
|
|
164
|
+
configurable: true
|
|
165
|
+
});
|
|
166
|
+
GetRecentArticles.prototype.getUpdates = function () {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
168
|
+
var response, _a, _b, _c, key, value, splitKey;
|
|
169
|
+
var e_1, _d;
|
|
170
|
+
return __generator(this, function (_e) {
|
|
171
|
+
switch (_e.label) {
|
|
172
|
+
case 0: return [4 /*yield*/, this.er.execQuery(this)];
|
|
173
|
+
case 1:
|
|
174
|
+
response = _e.sent();
|
|
175
|
+
if (response === null || response === void 0 ? void 0 : response.recentActivityArticles) {
|
|
176
|
+
try {
|
|
177
|
+
for (_a = __values(Object.entries(response.recentActivityArticles.newestUri || {})), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
178
|
+
_c = __read(_b.value, 2), key = _c[0], value = _c[1];
|
|
179
|
+
splitKey = key.split("");
|
|
180
|
+
this.setVal("recentActivityArticles" + splitKey[0].toUpperCase() + splitKey.slice(1).join(""), value);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
184
|
+
finally {
|
|
185
|
+
try {
|
|
186
|
+
if (_b && !_b.done && (_d = _a.return)) _d.call(_a);
|
|
187
|
+
}
|
|
188
|
+
finally { if (e_1) throw e_1.error; }
|
|
189
|
+
}
|
|
190
|
+
return [2 /*return*/, response.recentActivityArticles.activity || []];
|
|
191
|
+
}
|
|
192
|
+
return [2 /*return*/, []];
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
return GetRecentArticles;
|
|
198
|
+
}(base_1.QueryParamsBase));
|
|
199
|
+
exports.GetRecentArticles = GetRecentArticles;
|
|
180
200
|
//# sourceMappingURL=recent.js.map
|
package/dist/recent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recent.js","sourceRoot":"","sources":["../src/recent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"recent.js","sourceRoot":"","sources":["../src/recent.ts"],"names":[],"mappings":"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"}
|
package/dist/returnInfo.d.ts
CHANGED
|
@@ -1,66 +1,68 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
private
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
import { ER } from "./types";
|
|
2
|
+
export declare abstract class ReturnInfoFlagsBase<T extends {}> {
|
|
3
|
+
protected type: string;
|
|
4
|
+
private data;
|
|
5
|
+
setFlag(key: string, value: boolean, defaultValue?: boolean): void;
|
|
6
|
+
setValue(key: string, value: any, defaultValue?: any, skipKeyMod?: boolean): void;
|
|
7
|
+
getProperties(prefix?: string): {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
private camelCase;
|
|
11
|
+
addProperties(properties: object): void;
|
|
12
|
+
private setProperty;
|
|
13
|
+
}
|
|
14
|
+
export declare class ReturnInfo {
|
|
15
|
+
private articleInfo;
|
|
16
|
+
private eventInfo;
|
|
17
|
+
private sourceInfo;
|
|
18
|
+
private categoryInfo;
|
|
19
|
+
private conceptInfo;
|
|
20
|
+
private locationInfo;
|
|
21
|
+
private storyInfo;
|
|
22
|
+
private conceptClassInfo;
|
|
23
|
+
private conceptFolderInfo;
|
|
24
|
+
constructor({ articleInfo, eventInfo, sourceInfo, categoryInfo, conceptInfo, locationInfo, storyInfo, conceptClassInfo, conceptFolderInfo, ...unsupported }?: {
|
|
25
|
+
articleInfo?: ArticleInfoFlags;
|
|
26
|
+
eventInfo?: EventInfoFlags;
|
|
27
|
+
sourceInfo?: SourceInfoFlags;
|
|
28
|
+
categoryInfo?: CategoryInfoFlags;
|
|
29
|
+
conceptInfo?: ConceptInfoFlags;
|
|
30
|
+
locationInfo?: LocationInfoFlags;
|
|
31
|
+
storyInfo?: StoryInfoFlags;
|
|
32
|
+
conceptClassInfo?: ConceptClassInfoFlags;
|
|
33
|
+
conceptFolderInfo?: ConceptFolderInfoFlags;
|
|
34
|
+
});
|
|
35
|
+
getParams(prefix?: string): Record<string, unknown>;
|
|
36
|
+
/**
|
|
37
|
+
* load the configuration for the ReturnInfo from a filename
|
|
38
|
+
* @param filename filename that contains the json configuration to use in the ReturnInfo
|
|
39
|
+
*/
|
|
40
|
+
static loadFromFile(filename: string): ReturnInfo;
|
|
41
|
+
}
|
|
42
|
+
export declare class ArticleInfoFlags extends ReturnInfoFlagsBase<ER.ReturnInfo.ArticleInfoFlags> {
|
|
43
|
+
constructor(params?: ER.ReturnInfo.ArticleInfo);
|
|
44
|
+
}
|
|
45
|
+
export declare class StoryInfoFlags extends ReturnInfoFlagsBase<ER.ReturnInfo.StoryInfoFlags> {
|
|
46
|
+
constructor(params?: ER.ReturnInfo.StoryInfo);
|
|
47
|
+
}
|
|
48
|
+
export declare class EventInfoFlags extends ReturnInfoFlagsBase<ER.ReturnInfo.EventInfoFlags> {
|
|
49
|
+
constructor(params?: ER.ReturnInfo.EventInfo);
|
|
50
|
+
}
|
|
51
|
+
export declare class SourceInfoFlags extends ReturnInfoFlagsBase<ER.ReturnInfo.SourceInfoFlags> {
|
|
52
|
+
constructor(params?: ER.ReturnInfo.SourceInfo);
|
|
53
|
+
}
|
|
54
|
+
export declare class CategoryInfoFlags extends ReturnInfoFlagsBase<ER.ReturnInfo.CategoryInfoFlags> {
|
|
55
|
+
constructor(params?: ER.ReturnInfo.CategoryInfo);
|
|
56
|
+
}
|
|
57
|
+
export declare class ConceptInfoFlags extends ReturnInfoFlagsBase<ER.ReturnInfo.ConceptInfoFlags> {
|
|
58
|
+
constructor(params?: ER.ReturnInfo.ConceptInfo);
|
|
59
|
+
}
|
|
60
|
+
export declare class LocationInfoFlags extends ReturnInfoFlagsBase<ER.ReturnInfo.LocationInfoFlags> {
|
|
61
|
+
constructor(params?: ER.ReturnInfo.LocationInfo);
|
|
62
|
+
}
|
|
63
|
+
export declare class ConceptClassInfoFlags extends ReturnInfoFlagsBase<ER.ReturnInfo.ConceptClassInfoFlags> {
|
|
64
|
+
constructor(params?: ER.ReturnInfo.ConceptClassInfo);
|
|
65
|
+
}
|
|
66
|
+
export declare class ConceptFolderInfoFlags extends ReturnInfoFlagsBase<ER.ReturnInfo.ConceptFolderInfoFlags> {
|
|
67
|
+
constructor(params?: ER.ReturnInfo.ConceptFolderInfo);
|
|
68
|
+
}
|