@evergis/api 3.0.78 → 3.0.79
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__/LayersService.d.ts +22 -23
- package/dist/__generated__/ProjectsService.d.ts +13 -35
- package/dist/__generated__/StatisticService.d.ts +2 -2
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +317 -382
- package/dist/api.cjs.development.js +60 -106
- 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 +149 -205
- package/dist/api.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -34,9 +34,6 @@ function _defineProperties(target, props) {
|
|
|
34
34
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
35
35
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
36
36
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
37
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
38
|
-
writable: false
|
|
39
|
-
});
|
|
40
37
|
return Constructor;
|
|
41
38
|
}
|
|
42
39
|
|
|
@@ -70,9 +67,6 @@ function _inherits(subClass, superClass) {
|
|
|
70
67
|
configurable: true
|
|
71
68
|
}
|
|
72
69
|
});
|
|
73
|
-
Object.defineProperty(subClass, "prototype", {
|
|
74
|
-
writable: false
|
|
75
|
-
});
|
|
76
70
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
77
71
|
}
|
|
78
72
|
|
|
@@ -131,8 +125,6 @@ function _assertThisInitialized(self) {
|
|
|
131
125
|
function _possibleConstructorReturn(self, call) {
|
|
132
126
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
133
127
|
return call;
|
|
134
|
-
} else if (call !== void 0) {
|
|
135
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
136
128
|
}
|
|
137
129
|
|
|
138
130
|
return _assertThisInitialized(self);
|
|
@@ -166,7 +158,7 @@ function _superPropBase(object, property) {
|
|
|
166
158
|
return object;
|
|
167
159
|
}
|
|
168
160
|
|
|
169
|
-
function _get() {
|
|
161
|
+
function _get(target, property, receiver) {
|
|
170
162
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
171
163
|
_get = Reflect.get;
|
|
172
164
|
} else {
|
|
@@ -177,14 +169,14 @@ function _get() {
|
|
|
177
169
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
178
170
|
|
|
179
171
|
if (desc.get) {
|
|
180
|
-
return desc.get.call(
|
|
172
|
+
return desc.get.call(receiver);
|
|
181
173
|
}
|
|
182
174
|
|
|
183
175
|
return desc.value;
|
|
184
176
|
};
|
|
185
177
|
}
|
|
186
178
|
|
|
187
|
-
return _get
|
|
179
|
+
return _get(target, property, receiver || target);
|
|
188
180
|
}
|
|
189
181
|
|
|
190
182
|
/* eslint-disable */
|
|
@@ -866,8 +858,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
866
858
|
|| event.code === 4002
|
|
867
859
|
/* InvalidSession */
|
|
868
860
|
) {
|
|
869
|
-
|
|
870
|
-
|
|
861
|
+
_this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
862
|
+
} else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
|
|
871
863
|
_this.connectStatus = exports.ConnectionStatus.Break;
|
|
872
864
|
_this.reconnectTries++;
|
|
873
865
|
|
|
@@ -1373,7 +1365,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
|
|
|
1373
1365
|
const taskProgress = await this.getTaskProgress(id);
|
|
1374
1366
|
this.resolveTaskStatus(taskProgress, resolve, reject);
|
|
1375
1367
|
|
|
1376
|
-
const taskResultCallback = async _ref => {
|
|
1368
|
+
const taskResultCallback = async (_ref) => {
|
|
1377
1369
|
let {
|
|
1378
1370
|
data
|
|
1379
1371
|
} = _ref;
|
|
@@ -1453,38 +1445,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1453
1445
|
}
|
|
1454
1446
|
|
|
1455
1447
|
_createClass(LayersService, [{
|
|
1456
|
-
key: "
|
|
1448
|
+
key: "getLayersList",
|
|
1457
1449
|
value:
|
|
1458
|
-
/**
|
|
1459
|
-
* No description
|
|
1460
|
-
*
|
|
1461
|
-
* @tags Layers
|
|
1462
|
-
* @name GetLayerInfo
|
|
1463
|
-
* @operationId LayersController_GetLayerInfoAsync
|
|
1464
|
-
* @summary Returns the layer information.
|
|
1465
|
-
* @request GET:/layers/{name}
|
|
1466
|
-
* @response `200` Success
|
|
1467
|
-
* @response `default` Error
|
|
1468
|
-
*/
|
|
1469
|
-
function getLayerInfo(name) {
|
|
1470
|
-
return this.http.get("/layers/" + name).json();
|
|
1471
|
-
}
|
|
1472
|
-
/**
|
|
1473
|
-
* No description
|
|
1474
|
-
*
|
|
1475
|
-
* @tags Layers
|
|
1476
|
-
* @name DeleteResource
|
|
1477
|
-
* @operationId LayersController_DeleteResource
|
|
1478
|
-
* @summary Deletes resource.
|
|
1479
|
-
* @request DELETE:/layers/{name}
|
|
1480
|
-
* @response `200` Success
|
|
1481
|
-
*/
|
|
1482
|
-
|
|
1483
|
-
}, {
|
|
1484
|
-
key: "deleteResource",
|
|
1485
|
-
value: function deleteResource(name) {
|
|
1486
|
-
return this.http.delete("/layers/" + name, null).then(() => {});
|
|
1487
|
-
}
|
|
1488
1450
|
/**
|
|
1489
1451
|
* No description
|
|
1490
1452
|
*
|
|
@@ -1495,10 +1457,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1495
1457
|
* @request GET:/layers
|
|
1496
1458
|
* @response `200` Success
|
|
1497
1459
|
*/
|
|
1498
|
-
|
|
1499
|
-
}, {
|
|
1500
|
-
key: "getLayersList",
|
|
1501
|
-
value: function getLayersList(query) {
|
|
1460
|
+
function getLayersList(query) {
|
|
1502
1461
|
return this.http.get("/layers", query).json();
|
|
1503
1462
|
}
|
|
1504
1463
|
/**
|
|
@@ -1533,6 +1492,38 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1533
1492
|
value: function deleteResources(query) {
|
|
1534
1493
|
return this.http.delete("/layers", null, query).json();
|
|
1535
1494
|
}
|
|
1495
|
+
/**
|
|
1496
|
+
* No description
|
|
1497
|
+
*
|
|
1498
|
+
* @tags Layers
|
|
1499
|
+
* @name GetLayerInfo
|
|
1500
|
+
* @operationId LayersController_GetLayerInfoAsync
|
|
1501
|
+
* @summary Returns the layer information.
|
|
1502
|
+
* @request GET:/layers/{name}
|
|
1503
|
+
* @response `200` Success
|
|
1504
|
+
*/
|
|
1505
|
+
|
|
1506
|
+
}, {
|
|
1507
|
+
key: "getLayerInfo",
|
|
1508
|
+
value: function getLayerInfo(name) {
|
|
1509
|
+
return this.http.get("/layers/" + name).json();
|
|
1510
|
+
}
|
|
1511
|
+
/**
|
|
1512
|
+
* No description
|
|
1513
|
+
*
|
|
1514
|
+
* @tags Layers
|
|
1515
|
+
* @name DeleteResource
|
|
1516
|
+
* @operationId LayersController_DeleteResource
|
|
1517
|
+
* @summary Deletes resource.
|
|
1518
|
+
* @request DELETE:/layers/{name}
|
|
1519
|
+
* @response `200` Success
|
|
1520
|
+
*/
|
|
1521
|
+
|
|
1522
|
+
}, {
|
|
1523
|
+
key: "deleteResource",
|
|
1524
|
+
value: function deleteResource(name) {
|
|
1525
|
+
return this.http.delete("/layers/" + name, null).then(() => {});
|
|
1526
|
+
}
|
|
1536
1527
|
/**
|
|
1537
1528
|
* No description
|
|
1538
1529
|
*
|
|
@@ -3028,53 +3019,8 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
3028
3019
|
}
|
|
3029
3020
|
|
|
3030
3021
|
_createClass(ProjectsService, [{
|
|
3031
|
-
key: "
|
|
3022
|
+
key: "getProjectsList",
|
|
3032
3023
|
value:
|
|
3033
|
-
/**
|
|
3034
|
-
* No description
|
|
3035
|
-
*
|
|
3036
|
-
* @tags Projects
|
|
3037
|
-
* @name GetProjectLayersExtendedInfo
|
|
3038
|
-
* @operationId ProjectsController_GetProjectLayersExtendedInfo
|
|
3039
|
-
* @summary Gets extended project info with layers info.
|
|
3040
|
-
* @request GET:/projects/{name}/extended-info
|
|
3041
|
-
* @response `200` Success
|
|
3042
|
-
*/
|
|
3043
|
-
function getProjectLayersExtendedInfo(name) {
|
|
3044
|
-
return this.http.get("/projects/" + name + "/extended-info").json();
|
|
3045
|
-
}
|
|
3046
|
-
/**
|
|
3047
|
-
* No description
|
|
3048
|
-
*
|
|
3049
|
-
* @tags Projects
|
|
3050
|
-
* @name CreateShareProject
|
|
3051
|
-
* @operationId ProjectsController_CreateShareProject
|
|
3052
|
-
* @summary Create shared project.
|
|
3053
|
-
* @request POST:/projects/{name}/share
|
|
3054
|
-
* @response `200` Success
|
|
3055
|
-
*/
|
|
3056
|
-
|
|
3057
|
-
}, {
|
|
3058
|
-
key: "createShareProject",
|
|
3059
|
-
value: function createShareProject(name, data) {
|
|
3060
|
-
return this.http.post("/projects/" + name + "/share", data).json();
|
|
3061
|
-
}
|
|
3062
|
-
/**
|
|
3063
|
-
* No description
|
|
3064
|
-
*
|
|
3065
|
-
* @tags Projects
|
|
3066
|
-
* @name RemoveShareProject
|
|
3067
|
-
* @operationId ProjectsController_RemoveShareProject
|
|
3068
|
-
* @summary Delete shared project.
|
|
3069
|
-
* @request DELETE:/projects/{name}/share
|
|
3070
|
-
* @response `200` Success
|
|
3071
|
-
*/
|
|
3072
|
-
|
|
3073
|
-
}, {
|
|
3074
|
-
key: "removeShareProject",
|
|
3075
|
-
value: function removeShareProject(name) {
|
|
3076
|
-
return this.http.delete("/projects/" + name + "/share", null).then(() => {});
|
|
3077
|
-
}
|
|
3078
3024
|
/**
|
|
3079
3025
|
* No description
|
|
3080
3026
|
*
|
|
@@ -3085,10 +3031,7 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
3085
3031
|
* @request GET:/projects
|
|
3086
3032
|
* @response `200` Success
|
|
3087
3033
|
*/
|
|
3088
|
-
|
|
3089
|
-
}, {
|
|
3090
|
-
key: "getProjectsList",
|
|
3091
|
-
value: function getProjectsList(query) {
|
|
3034
|
+
function getProjectsList(query) {
|
|
3092
3035
|
return this.http.get("/projects", query).json();
|
|
3093
3036
|
}
|
|
3094
3037
|
/**
|
|
@@ -3187,6 +3130,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
3187
3130
|
value: function deleteResource(name) {
|
|
3188
3131
|
return this.http.delete("/projects/" + name, null).then(() => {});
|
|
3189
3132
|
}
|
|
3133
|
+
/**
|
|
3134
|
+
* No description
|
|
3135
|
+
*
|
|
3136
|
+
* @tags Projects
|
|
3137
|
+
* @name GetProjectLayersExtendedInfo
|
|
3138
|
+
* @operationId ProjectsController_GetProjectLayersExtendedInfo
|
|
3139
|
+
* @summary Gets extended project info with layers info.
|
|
3140
|
+
* @request GET:/projects/{name}/extended-info
|
|
3141
|
+
* @response `200` Success
|
|
3142
|
+
*/
|
|
3143
|
+
|
|
3144
|
+
}, {
|
|
3145
|
+
key: "getProjectLayersExtendedInfo",
|
|
3146
|
+
value: function getProjectLayersExtendedInfo(name) {
|
|
3147
|
+
return this.http.get("/projects/" + name + "/extended-info").json();
|
|
3148
|
+
}
|
|
3190
3149
|
/**
|
|
3191
3150
|
* No description
|
|
3192
3151
|
*
|
|
@@ -3484,12 +3443,12 @@ let Resources = /*#__PURE__*/function () {
|
|
|
3484
3443
|
}, {
|
|
3485
3444
|
key: "getDependentNames",
|
|
3486
3445
|
value: function getDependentNames(deps, depType) {
|
|
3487
|
-
return deps.filter(_ref => {
|
|
3446
|
+
return deps.filter((_ref) => {
|
|
3488
3447
|
let {
|
|
3489
3448
|
type
|
|
3490
3449
|
} = _ref;
|
|
3491
3450
|
return type === depType;
|
|
3492
|
-
}).map(_ref2 => {
|
|
3451
|
+
}).map((_ref2) => {
|
|
3493
3452
|
let {
|
|
3494
3453
|
name
|
|
3495
3454
|
} = _ref2;
|
|
@@ -6539,11 +6498,6 @@ function isFeatureLayer(layer) {
|
|
|
6539
6498
|
ResourceTypeLink["Project"] = "projects";
|
|
6540
6499
|
})(exports.ResourceTypeLink || (exports.ResourceTypeLink = {}));
|
|
6541
6500
|
|
|
6542
|
-
(function (SaveMode) {
|
|
6543
|
-
SaveMode["Create"] = "create";
|
|
6544
|
-
SaveMode["Update"] = "update";
|
|
6545
|
-
})(exports.SaveMode || (exports.SaveMode = {}));
|
|
6546
|
-
|
|
6547
6501
|
(function (ServerTaskStatus) {
|
|
6548
6502
|
ServerTaskStatus["None"] = "None";
|
|
6549
6503
|
ServerTaskStatus["Scheduled"] = "Scheduled";
|