@evergis/api 4.1.20 → 4.1.21
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/Api.d.ts +6 -6
- package/dist/__generated__/EqlService.d.ts +13 -1
- package/dist/__generated__/data-contracts.d.ts +31 -2
- package/dist/api.esm.js +23 -9
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +23 -9
- package/dist/index.js.map +1 -1
- package/dist/services/External.d.ts +7 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1195,6 +1195,20 @@ class EqlService extends Service {
|
|
|
1195
1195
|
getQueryDescription(data) {
|
|
1196
1196
|
return this.http.post(`/eql/description`, data).json();
|
|
1197
1197
|
}
|
|
1198
|
+
/**
|
|
1199
|
+
* No description
|
|
1200
|
+
*
|
|
1201
|
+
* @tags Eql
|
|
1202
|
+
* @name GetQueryDependencies
|
|
1203
|
+
* @operationId EqlController_GetQueryDependencies
|
|
1204
|
+
* @summary Get EQL result dependencies.
|
|
1205
|
+
* @request POST:/eql/dependencies
|
|
1206
|
+
* @secure
|
|
1207
|
+
* @response `200` OK
|
|
1208
|
+
*/
|
|
1209
|
+
getQueryDependencies(data) {
|
|
1210
|
+
return this.http.post(`/eql/dependencies`, data).json();
|
|
1211
|
+
}
|
|
1198
1212
|
/**
|
|
1199
1213
|
* No description
|
|
1200
1214
|
*
|
|
@@ -2570,9 +2584,6 @@ const SHARED_PORT = "8082";
|
|
|
2570
2584
|
const URL_PATHS = Object.values(exports.UrlPath);
|
|
2571
2585
|
const DEFAULT_URL_PATH = URL_PATHS[0];
|
|
2572
2586
|
class Api extends EventEmitter {
|
|
2573
|
-
http;
|
|
2574
|
-
wsUrl;
|
|
2575
|
-
urlPath;
|
|
2576
2587
|
url;
|
|
2577
2588
|
layers;
|
|
2578
2589
|
tables;
|
|
@@ -2602,6 +2613,9 @@ class Api extends EventEmitter {
|
|
|
2602
2613
|
dataSource;
|
|
2603
2614
|
remoteTaskManager;
|
|
2604
2615
|
cameras;
|
|
2616
|
+
http;
|
|
2617
|
+
wsUrl;
|
|
2618
|
+
urlPath;
|
|
2605
2619
|
constructor({ url, wsUrl, wsKeepAlive, snappingHubUrl, http, urlPath, httpOptions, }) {
|
|
2606
2620
|
super();
|
|
2607
2621
|
const { hooks } = httpOptions || {};
|
|
@@ -2706,6 +2720,12 @@ class Api extends EventEmitter {
|
|
|
2706
2720
|
.build()
|
|
2707
2721
|
: null;
|
|
2708
2722
|
}
|
|
2723
|
+
get isShared() {
|
|
2724
|
+
return this.urlPath === exports.UrlPath.Shared;
|
|
2725
|
+
}
|
|
2726
|
+
get isPresentation() {
|
|
2727
|
+
return this.urlPath === exports.UrlPath.Presentation || window.location.port === SHARED_PORT;
|
|
2728
|
+
}
|
|
2709
2729
|
async init({ authParams, authQueryParams, connectWs, fetchSettings, fetchUser, useJwt, }) {
|
|
2710
2730
|
try {
|
|
2711
2731
|
await this.account.login(authParams, authQueryParams, useJwt);
|
|
@@ -2771,12 +2791,6 @@ class Api extends EventEmitter {
|
|
|
2771
2791
|
const urlPath = firstPath ? `/${firstPath}` : void 0;
|
|
2772
2792
|
return urlPath && URL_PATHS.includes(urlPath) ? urlPath : DEFAULT_URL_PATH;
|
|
2773
2793
|
}
|
|
2774
|
-
get isShared() {
|
|
2775
|
-
return this.urlPath === exports.UrlPath.Shared;
|
|
2776
|
-
}
|
|
2777
|
-
get isPresentation() {
|
|
2778
|
-
return this.urlPath === exports.UrlPath.Presentation || window.location.port === SHARED_PORT;
|
|
2779
|
-
}
|
|
2780
2794
|
}
|
|
2781
2795
|
|
|
2782
2796
|
const addSubDomainToLocation = (subDomain) => `${window.location.protocol}//${subDomain}.${window.location.host}`;
|