@evergis/api 3.0.175 → 3.0.177
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__/data-contracts.d.ts +180 -180
- package/dist/api.cjs.development.js +54 -11
- 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 +233 -190
- package/dist/api.esm.js.map +1 -1
- package/dist/services/Layers.d.ts +7 -2
- package/package.json +2 -2
|
@@ -36,6 +36,9 @@ function _defineProperties(target, props) {
|
|
|
36
36
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
37
37
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
38
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
40
|
+
writable: false
|
|
41
|
+
});
|
|
39
42
|
return Constructor;
|
|
40
43
|
}
|
|
41
44
|
|
|
@@ -69,6 +72,9 @@ function _inherits(subClass, superClass) {
|
|
|
69
72
|
configurable: true
|
|
70
73
|
}
|
|
71
74
|
});
|
|
75
|
+
Object.defineProperty(subClass, "prototype", {
|
|
76
|
+
writable: false
|
|
77
|
+
});
|
|
72
78
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
73
79
|
}
|
|
74
80
|
|
|
@@ -127,6 +133,8 @@ function _assertThisInitialized(self) {
|
|
|
127
133
|
function _possibleConstructorReturn(self, call) {
|
|
128
134
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
129
135
|
return call;
|
|
136
|
+
} else if (call !== void 0) {
|
|
137
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
130
138
|
}
|
|
131
139
|
|
|
132
140
|
return _assertThisInitialized(self);
|
|
@@ -160,7 +168,7 @@ function _superPropBase(object, property) {
|
|
|
160
168
|
return object;
|
|
161
169
|
}
|
|
162
170
|
|
|
163
|
-
function _get(
|
|
171
|
+
function _get() {
|
|
164
172
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
165
173
|
_get = Reflect.get;
|
|
166
174
|
} else {
|
|
@@ -171,14 +179,14 @@ function _get(target, property, receiver) {
|
|
|
171
179
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
172
180
|
|
|
173
181
|
if (desc.get) {
|
|
174
|
-
return desc.get.call(receiver);
|
|
182
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
175
183
|
}
|
|
176
184
|
|
|
177
185
|
return desc.value;
|
|
178
186
|
};
|
|
179
187
|
}
|
|
180
188
|
|
|
181
|
-
return _get(
|
|
189
|
+
return _get.apply(this, arguments);
|
|
182
190
|
}
|
|
183
191
|
|
|
184
192
|
let HttpClient = /*#__PURE__*/function () {
|
|
@@ -3973,7 +3981,8 @@ function notError(v) {
|
|
|
3973
3981
|
return !isError(v);
|
|
3974
3982
|
}
|
|
3975
3983
|
|
|
3976
|
-
const _excluded$5 = ["remote"]
|
|
3984
|
+
const _excluded$5 = ["remote"],
|
|
3985
|
+
_excluded2$3 = ["remote"];
|
|
3977
3986
|
let Layers = /*#__PURE__*/function (_LayersService) {
|
|
3978
3987
|
_inherits(Layers, _LayersService);
|
|
3979
3988
|
|
|
@@ -4021,6 +4030,20 @@ let Layers = /*#__PURE__*/function (_LayersService) {
|
|
|
4021
4030
|
|
|
4022
4031
|
return this.publishLocalTileService(configuration);
|
|
4023
4032
|
}
|
|
4033
|
+
}, {
|
|
4034
|
+
key: "updateTileLayer",
|
|
4035
|
+
value: function updateTileLayer(_ref2) {
|
|
4036
|
+
let {
|
|
4037
|
+
remote
|
|
4038
|
+
} = _ref2,
|
|
4039
|
+
configuration = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
4040
|
+
|
|
4041
|
+
if (remote) {
|
|
4042
|
+
return this.updateRemoteTileService(configuration.name, configuration);
|
|
4043
|
+
}
|
|
4044
|
+
|
|
4045
|
+
return this.updateLocalTileService(configuration.name, configuration);
|
|
4046
|
+
}
|
|
4024
4047
|
}, {
|
|
4025
4048
|
key: "uploadPreview",
|
|
4026
4049
|
value: function uploadPreview(name, file) {
|
|
@@ -4048,6 +4071,26 @@ let Layers = /*#__PURE__*/function (_LayersService) {
|
|
|
4048
4071
|
value: function update(configuration) {
|
|
4049
4072
|
return this.updatePostgresLayerService(configuration.name, configuration);
|
|
4050
4073
|
}
|
|
4074
|
+
}, {
|
|
4075
|
+
key: "createQueryLayer",
|
|
4076
|
+
value: function createQueryLayer(configuration) {
|
|
4077
|
+
return this.publishQueryLayerService(configuration);
|
|
4078
|
+
}
|
|
4079
|
+
}, {
|
|
4080
|
+
key: "updateQueryLayer",
|
|
4081
|
+
value: function updateQueryLayer(configuration) {
|
|
4082
|
+
return this.updateQueryLayerService(configuration.name, configuration);
|
|
4083
|
+
}
|
|
4084
|
+
}, {
|
|
4085
|
+
key: "createProxyLayer",
|
|
4086
|
+
value: function createProxyLayer(configuration) {
|
|
4087
|
+
return this.publishProxyService(configuration);
|
|
4088
|
+
}
|
|
4089
|
+
}, {
|
|
4090
|
+
key: "updateProxyLayer",
|
|
4091
|
+
value: function updateProxyLayer(configuration) {
|
|
4092
|
+
return this.updateProxyService(configuration.name, configuration);
|
|
4093
|
+
}
|
|
4051
4094
|
}, {
|
|
4052
4095
|
key: "remove",
|
|
4053
4096
|
value: async function remove(name) {
|
|
@@ -4500,8 +4543,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
4500
4543
|
|| event.code === 4002
|
|
4501
4544
|
/* InvalidSession */
|
|
4502
4545
|
) {
|
|
4503
|
-
|
|
4504
|
-
|
|
4546
|
+
_this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
4547
|
+
} else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
|
|
4505
4548
|
_this.connectStatus = exports.ConnectionStatus.Break;
|
|
4506
4549
|
_this.reconnectTries++;
|
|
4507
4550
|
|
|
@@ -5333,12 +5376,12 @@ let Resources = /*#__PURE__*/function () {
|
|
|
5333
5376
|
}, {
|
|
5334
5377
|
key: "getDependentNames",
|
|
5335
5378
|
value: function getDependentNames(deps, depType) {
|
|
5336
|
-
return deps.filter(
|
|
5379
|
+
return deps.filter(_ref => {
|
|
5337
5380
|
let {
|
|
5338
5381
|
type
|
|
5339
5382
|
} = _ref;
|
|
5340
5383
|
return type === depType;
|
|
5341
|
-
}).map(
|
|
5384
|
+
}).map(_ref2 => {
|
|
5342
5385
|
let {
|
|
5343
5386
|
name
|
|
5344
5387
|
} = _ref2;
|
|
@@ -5794,7 +5837,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
|
|
|
5794
5837
|
const taskProgress = await this.getTaskProgress(id);
|
|
5795
5838
|
this.resolveTaskStatus(taskProgress, resolve, reject);
|
|
5796
5839
|
|
|
5797
|
-
const taskResultCallback = async
|
|
5840
|
+
const taskResultCallback = async _ref => {
|
|
5798
5841
|
let {
|
|
5799
5842
|
data
|
|
5800
5843
|
} = _ref;
|
|
@@ -6218,7 +6261,7 @@ let Styles = /*#__PURE__*/function (_StyleService) {
|
|
|
6218
6261
|
}(StyleService);
|
|
6219
6262
|
|
|
6220
6263
|
const _excluded$6 = ["name"],
|
|
6221
|
-
_excluded2$
|
|
6264
|
+
_excluded2$4 = ["name"],
|
|
6222
6265
|
_excluded3$3 = ["name"],
|
|
6223
6266
|
_excluded4$2 = ["name"];
|
|
6224
6267
|
/**
|
|
@@ -6436,7 +6479,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
6436
6479
|
let {
|
|
6437
6480
|
name
|
|
6438
6481
|
} = _ref2,
|
|
6439
|
-
query = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
6482
|
+
query = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
|
|
6440
6483
|
|
|
6441
6484
|
return this.http.patch("/tables/" + name + "/data", data, query).then(() => {});
|
|
6442
6485
|
}
|