@evergis/api 4.1.19 → 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 +31 -10
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +31 -10
- 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
|
*
|
|
@@ -1761,7 +1775,14 @@ class CatalogService extends Service {
|
|
|
1761
1775
|
|
|
1762
1776
|
class FileUpload extends CatalogService {
|
|
1763
1777
|
upload(file, rewrite, parentId, fileName) {
|
|
1764
|
-
|
|
1778
|
+
const props = { file, rewrite: !!rewrite };
|
|
1779
|
+
if (parentId) {
|
|
1780
|
+
props.parentId = parentId;
|
|
1781
|
+
}
|
|
1782
|
+
if (fileName) {
|
|
1783
|
+
props.fileName = fileName;
|
|
1784
|
+
}
|
|
1785
|
+
return this.createFile1(props);
|
|
1765
1786
|
}
|
|
1766
1787
|
replaceFile(params) {
|
|
1767
1788
|
return this.createFile(params);
|
|
@@ -2563,9 +2584,6 @@ const SHARED_PORT = "8082";
|
|
|
2563
2584
|
const URL_PATHS = Object.values(exports.UrlPath);
|
|
2564
2585
|
const DEFAULT_URL_PATH = URL_PATHS[0];
|
|
2565
2586
|
class Api extends EventEmitter {
|
|
2566
|
-
http;
|
|
2567
|
-
wsUrl;
|
|
2568
|
-
urlPath;
|
|
2569
2587
|
url;
|
|
2570
2588
|
layers;
|
|
2571
2589
|
tables;
|
|
@@ -2595,6 +2613,9 @@ class Api extends EventEmitter {
|
|
|
2595
2613
|
dataSource;
|
|
2596
2614
|
remoteTaskManager;
|
|
2597
2615
|
cameras;
|
|
2616
|
+
http;
|
|
2617
|
+
wsUrl;
|
|
2618
|
+
urlPath;
|
|
2598
2619
|
constructor({ url, wsUrl, wsKeepAlive, snappingHubUrl, http, urlPath, httpOptions, }) {
|
|
2599
2620
|
super();
|
|
2600
2621
|
const { hooks } = httpOptions || {};
|
|
@@ -2699,6 +2720,12 @@ class Api extends EventEmitter {
|
|
|
2699
2720
|
.build()
|
|
2700
2721
|
: null;
|
|
2701
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
|
+
}
|
|
2702
2729
|
async init({ authParams, authQueryParams, connectWs, fetchSettings, fetchUser, useJwt, }) {
|
|
2703
2730
|
try {
|
|
2704
2731
|
await this.account.login(authParams, authQueryParams, useJwt);
|
|
@@ -2764,12 +2791,6 @@ class Api extends EventEmitter {
|
|
|
2764
2791
|
const urlPath = firstPath ? `/${firstPath}` : void 0;
|
|
2765
2792
|
return urlPath && URL_PATHS.includes(urlPath) ? urlPath : DEFAULT_URL_PATH;
|
|
2766
2793
|
}
|
|
2767
|
-
get isShared() {
|
|
2768
|
-
return this.urlPath === exports.UrlPath.Shared;
|
|
2769
|
-
}
|
|
2770
|
-
get isPresentation() {
|
|
2771
|
-
return this.urlPath === exports.UrlPath.Presentation || window.location.port === SHARED_PORT;
|
|
2772
|
-
}
|
|
2773
2794
|
}
|
|
2774
2795
|
|
|
2775
2796
|
const addSubDomainToLocation = (subDomain) => `${window.location.protocol}//${subDomain}.${window.location.host}`;
|