@evergis/api 4.0.17 → 4.0.19
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/LICENSE +20 -20
- package/README.md +21 -21
- package/dist/__generated__/CatalogService.d.ts +0 -12
- package/dist/__generated__/LayersService.d.ts +20 -8
- package/dist/__generated__/StatisticService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +286 -249
- package/dist/api.cjs.development.js +41 -33
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +274 -266
- package/dist/api.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -30,6 +30,9 @@ function _defineProperties(target, props) {
|
|
|
30
30
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
31
31
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
32
32
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
33
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
34
|
+
writable: false
|
|
35
|
+
});
|
|
33
36
|
return Constructor;
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -63,6 +66,9 @@ function _inherits(subClass, superClass) {
|
|
|
63
66
|
configurable: true
|
|
64
67
|
}
|
|
65
68
|
});
|
|
69
|
+
Object.defineProperty(subClass, "prototype", {
|
|
70
|
+
writable: false
|
|
71
|
+
});
|
|
66
72
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
67
73
|
}
|
|
68
74
|
|
|
@@ -121,6 +127,8 @@ function _assertThisInitialized(self) {
|
|
|
121
127
|
function _possibleConstructorReturn(self, call) {
|
|
122
128
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
123
129
|
return call;
|
|
130
|
+
} else if (call !== void 0) {
|
|
131
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
124
132
|
}
|
|
125
133
|
|
|
126
134
|
return _assertThisInitialized(self);
|
|
@@ -154,7 +162,7 @@ function _superPropBase(object, property) {
|
|
|
154
162
|
return object;
|
|
155
163
|
}
|
|
156
164
|
|
|
157
|
-
function _get(
|
|
165
|
+
function _get() {
|
|
158
166
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
159
167
|
_get = Reflect.get;
|
|
160
168
|
} else {
|
|
@@ -165,14 +173,14 @@ function _get(target, property, receiver) {
|
|
|
165
173
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
166
174
|
|
|
167
175
|
if (desc.get) {
|
|
168
|
-
return desc.get.call(receiver);
|
|
176
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
169
177
|
}
|
|
170
178
|
|
|
171
179
|
return desc.value;
|
|
172
180
|
};
|
|
173
181
|
}
|
|
174
182
|
|
|
175
|
-
return _get(
|
|
183
|
+
return _get.apply(this, arguments);
|
|
176
184
|
}
|
|
177
185
|
|
|
178
186
|
const API_USER_INFO_KEY = "@evergis/user-info";
|
|
@@ -1005,23 +1013,6 @@ let CatalogService = /*#__PURE__*/function (_Service) {
|
|
|
1005
1013
|
value: function setPermissions(data) {
|
|
1006
1014
|
return this.http.put("/resources/permissions", data).then(() => {});
|
|
1007
1015
|
}
|
|
1008
|
-
/**
|
|
1009
|
-
* No description
|
|
1010
|
-
*
|
|
1011
|
-
* @tags Catalog
|
|
1012
|
-
* @name DownloadFile
|
|
1013
|
-
* @operationId CatalogController_DownloadFile
|
|
1014
|
-
* @summary Download file.
|
|
1015
|
-
* @request GET:/resources/{resourceId}/download
|
|
1016
|
-
* @secure
|
|
1017
|
-
* @response `200` OK
|
|
1018
|
-
*/
|
|
1019
|
-
|
|
1020
|
-
}, {
|
|
1021
|
-
key: "downloadFile",
|
|
1022
|
-
value: function downloadFile(resourceId) {
|
|
1023
|
-
return this.http.get("/resources/" + resourceId + "/download").blob();
|
|
1024
|
-
}
|
|
1025
1016
|
/**
|
|
1026
1017
|
* No description
|
|
1027
1018
|
*
|
|
@@ -3565,6 +3556,23 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
3565
3556
|
value: function getBulkExtents(query, data) {
|
|
3566
3557
|
return this.http.post("/bulk/layers/extent", data, query).json();
|
|
3567
3558
|
}
|
|
3559
|
+
/**
|
|
3560
|
+
* No description
|
|
3561
|
+
*
|
|
3562
|
+
* @tags Layers
|
|
3563
|
+
* @name GetFilteredFeaturesCount
|
|
3564
|
+
* @operationId LayersController_GetFilteredFeaturesCount
|
|
3565
|
+
* @summary Returns list of features count according layer filter.
|
|
3566
|
+
* @request POST:/bulk/layers/features/count
|
|
3567
|
+
* @secure
|
|
3568
|
+
* @response `200` OK
|
|
3569
|
+
*/
|
|
3570
|
+
|
|
3571
|
+
}, {
|
|
3572
|
+
key: "getFilteredFeaturesCount",
|
|
3573
|
+
value: function getFilteredFeaturesCount(data) {
|
|
3574
|
+
return this.http.post("/bulk/layers/features/count", data).json();
|
|
3575
|
+
}
|
|
3568
3576
|
/**
|
|
3569
3577
|
* No description
|
|
3570
3578
|
*
|
|
@@ -4333,8 +4341,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
4333
4341
|
* No description
|
|
4334
4342
|
*
|
|
4335
4343
|
* @tags Layers
|
|
4336
|
-
* @name
|
|
4337
|
-
* @operationId
|
|
4344
|
+
* @name GetFilteredFeaturesCount1
|
|
4345
|
+
* @operationId LayersController_GetFilteredFeaturesCount_1
|
|
4338
4346
|
* @summary Get features count according layer filter of the given name.
|
|
4339
4347
|
* @request GET:/layers/{name}/features/count
|
|
4340
4348
|
* @secure
|
|
@@ -4342,8 +4350,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
4342
4350
|
*/
|
|
4343
4351
|
|
|
4344
4352
|
}, {
|
|
4345
|
-
key: "
|
|
4346
|
-
value: function
|
|
4353
|
+
key: "getFilteredFeaturesCount1",
|
|
4354
|
+
value: function getFilteredFeaturesCount1(_ref16) {
|
|
4347
4355
|
let {
|
|
4348
4356
|
name
|
|
4349
4357
|
} = _ref16,
|
|
@@ -4355,8 +4363,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
4355
4363
|
* No description
|
|
4356
4364
|
*
|
|
4357
4365
|
* @tags Layers
|
|
4358
|
-
* @name
|
|
4359
|
-
* @operationId
|
|
4366
|
+
* @name GetFilteredFeaturesCount2
|
|
4367
|
+
* @operationId LayersController_GetFilteredFeaturesCount_2
|
|
4360
4368
|
* @summary Get features count according layer filter of the given name.
|
|
4361
4369
|
* @request POST:/layers/{name}/features/count
|
|
4362
4370
|
* @secure
|
|
@@ -4364,8 +4372,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
4364
4372
|
*/
|
|
4365
4373
|
|
|
4366
4374
|
}, {
|
|
4367
|
-
key: "
|
|
4368
|
-
value: function
|
|
4375
|
+
key: "getFilteredFeaturesCount2",
|
|
4376
|
+
value: function getFilteredFeaturesCount2(name, data) {
|
|
4369
4377
|
return this.http.post("/layers/" + name + "/features/count", data).json();
|
|
4370
4378
|
}
|
|
4371
4379
|
/**
|
|
@@ -5006,8 +5014,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
5006
5014
|
|| event.code === 4002
|
|
5007
5015
|
/* InvalidSession */
|
|
5008
5016
|
) {
|
|
5009
|
-
|
|
5010
|
-
|
|
5017
|
+
_this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
5018
|
+
} else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
|
|
5011
5019
|
_this.connectStatus = exports.ConnectionStatus.Break;
|
|
5012
5020
|
_this.reconnectTries++;
|
|
5013
5021
|
|
|
@@ -6052,12 +6060,12 @@ let Resources = /*#__PURE__*/function () {
|
|
|
6052
6060
|
}, {
|
|
6053
6061
|
key: "getDependentNames",
|
|
6054
6062
|
value: function getDependentNames(deps, depType) {
|
|
6055
|
-
return deps.filter(
|
|
6063
|
+
return deps.filter(_ref => {
|
|
6056
6064
|
let {
|
|
6057
6065
|
type
|
|
6058
6066
|
} = _ref;
|
|
6059
6067
|
return type === depType;
|
|
6060
|
-
}).map(
|
|
6068
|
+
}).map(_ref2 => {
|
|
6061
6069
|
let {
|
|
6062
6070
|
name
|
|
6063
6071
|
} = _ref2;
|
|
@@ -7220,7 +7228,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7220
7228
|
(_request$headers = request.headers) == null ? void 0 : _request$headers.set("Authorization", "Bearer " + (token || ""));
|
|
7221
7229
|
}
|
|
7222
7230
|
}, ...((_hooks$beforeRequest = hooks == null ? void 0 : hooks.beforeRequest) != null ? _hooks$beforeRequest : [])],
|
|
7223
|
-
beforeRetry: [async
|
|
7231
|
+
beforeRetry: [async _ref2 => {
|
|
7224
7232
|
let {
|
|
7225
7233
|
request,
|
|
7226
7234
|
error,
|