@evergis/api 3.0.76 → 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 +331 -308
- package/dist/api.cjs.development.js +66 -104
- 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 +156 -190
- package/dist/api.esm.js.map +1 -1
- package/dist/services/Notification.d.ts +3 -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 */
|
|
@@ -843,12 +835,13 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
843
835
|
|
|
844
836
|
var _super = /*#__PURE__*/_createSuper(Notification);
|
|
845
837
|
|
|
846
|
-
function Notification(http) {
|
|
838
|
+
function Notification(http, api) {
|
|
847
839
|
var _this;
|
|
848
840
|
|
|
849
841
|
_classCallCheck(this, Notification);
|
|
850
842
|
|
|
851
843
|
_this = _super.call(this, http);
|
|
844
|
+
_this.api = api;
|
|
852
845
|
_this.MAX_WS_RECONNECT_TRIES = 10;
|
|
853
846
|
_this.reconnectTries = 0;
|
|
854
847
|
_this.subscriptions = [];
|
|
@@ -865,8 +858,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
865
858
|
|| event.code === 4002
|
|
866
859
|
/* InvalidSession */
|
|
867
860
|
) {
|
|
868
|
-
|
|
869
|
-
|
|
861
|
+
_this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
862
|
+
} else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
|
|
870
863
|
_this.connectStatus = exports.ConnectionStatus.Break;
|
|
871
864
|
_this.reconnectTries++;
|
|
872
865
|
|
|
@@ -935,7 +928,7 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
935
928
|
value: async function subscribe(tag) {
|
|
936
929
|
this.subscriptions.push(tag);
|
|
937
930
|
setTimeout(() => {
|
|
938
|
-
if (this.subscriptions.length) {
|
|
931
|
+
if (!this.api.isShared && this.subscriptions.length) {
|
|
939
932
|
this.subscribeListOperation(this.subscriptions);
|
|
940
933
|
}
|
|
941
934
|
|
|
@@ -1372,7 +1365,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
|
|
|
1372
1365
|
const taskProgress = await this.getTaskProgress(id);
|
|
1373
1366
|
this.resolveTaskStatus(taskProgress, resolve, reject);
|
|
1374
1367
|
|
|
1375
|
-
const taskResultCallback = async _ref => {
|
|
1368
|
+
const taskResultCallback = async (_ref) => {
|
|
1376
1369
|
let {
|
|
1377
1370
|
data
|
|
1378
1371
|
} = _ref;
|
|
@@ -1452,38 +1445,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1452
1445
|
}
|
|
1453
1446
|
|
|
1454
1447
|
_createClass(LayersService, [{
|
|
1455
|
-
key: "
|
|
1448
|
+
key: "getLayersList",
|
|
1456
1449
|
value:
|
|
1457
|
-
/**
|
|
1458
|
-
* No description
|
|
1459
|
-
*
|
|
1460
|
-
* @tags Layers
|
|
1461
|
-
* @name GetLayerInfo
|
|
1462
|
-
* @operationId LayersController_GetLayerInfoAsync
|
|
1463
|
-
* @summary Returns the layer information.
|
|
1464
|
-
* @request GET:/layers/{name}
|
|
1465
|
-
* @response `200` Success
|
|
1466
|
-
* @response `default` Error
|
|
1467
|
-
*/
|
|
1468
|
-
function getLayerInfo(name) {
|
|
1469
|
-
return this.http.get("/layers/" + name).json();
|
|
1470
|
-
}
|
|
1471
|
-
/**
|
|
1472
|
-
* No description
|
|
1473
|
-
*
|
|
1474
|
-
* @tags Layers
|
|
1475
|
-
* @name DeleteResource
|
|
1476
|
-
* @operationId LayersController_DeleteResource
|
|
1477
|
-
* @summary Deletes resource.
|
|
1478
|
-
* @request DELETE:/layers/{name}
|
|
1479
|
-
* @response `200` Success
|
|
1480
|
-
*/
|
|
1481
|
-
|
|
1482
|
-
}, {
|
|
1483
|
-
key: "deleteResource",
|
|
1484
|
-
value: function deleteResource(name) {
|
|
1485
|
-
return this.http.delete("/layers/" + name, null).then(() => {});
|
|
1486
|
-
}
|
|
1487
1450
|
/**
|
|
1488
1451
|
* No description
|
|
1489
1452
|
*
|
|
@@ -1494,10 +1457,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1494
1457
|
* @request GET:/layers
|
|
1495
1458
|
* @response `200` Success
|
|
1496
1459
|
*/
|
|
1497
|
-
|
|
1498
|
-
}, {
|
|
1499
|
-
key: "getLayersList",
|
|
1500
|
-
value: function getLayersList(query) {
|
|
1460
|
+
function getLayersList(query) {
|
|
1501
1461
|
return this.http.get("/layers", query).json();
|
|
1502
1462
|
}
|
|
1503
1463
|
/**
|
|
@@ -1532,6 +1492,38 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1532
1492
|
value: function deleteResources(query) {
|
|
1533
1493
|
return this.http.delete("/layers", null, query).json();
|
|
1534
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
|
+
}
|
|
1535
1527
|
/**
|
|
1536
1528
|
* No description
|
|
1537
1529
|
*
|
|
@@ -3027,53 +3019,8 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
3027
3019
|
}
|
|
3028
3020
|
|
|
3029
3021
|
_createClass(ProjectsService, [{
|
|
3030
|
-
key: "
|
|
3022
|
+
key: "getProjectsList",
|
|
3031
3023
|
value:
|
|
3032
|
-
/**
|
|
3033
|
-
* No description
|
|
3034
|
-
*
|
|
3035
|
-
* @tags Projects
|
|
3036
|
-
* @name GetProjectLayersExtendedInfo
|
|
3037
|
-
* @operationId ProjectsController_GetProjectLayersExtendedInfo
|
|
3038
|
-
* @summary Gets extended project info with layers info.
|
|
3039
|
-
* @request GET:/projects/{name}/extended-info
|
|
3040
|
-
* @response `200` Success
|
|
3041
|
-
*/
|
|
3042
|
-
function getProjectLayersExtendedInfo(name) {
|
|
3043
|
-
return this.http.get("/projects/" + name + "/extended-info").json();
|
|
3044
|
-
}
|
|
3045
|
-
/**
|
|
3046
|
-
* No description
|
|
3047
|
-
*
|
|
3048
|
-
* @tags Projects
|
|
3049
|
-
* @name CreateShareProject
|
|
3050
|
-
* @operationId ProjectsController_CreateShareProject
|
|
3051
|
-
* @summary Create shared project.
|
|
3052
|
-
* @request POST:/projects/{name}/share
|
|
3053
|
-
* @response `200` Success
|
|
3054
|
-
*/
|
|
3055
|
-
|
|
3056
|
-
}, {
|
|
3057
|
-
key: "createShareProject",
|
|
3058
|
-
value: function createShareProject(name, data) {
|
|
3059
|
-
return this.http.post("/projects/" + name + "/share", data).json();
|
|
3060
|
-
}
|
|
3061
|
-
/**
|
|
3062
|
-
* No description
|
|
3063
|
-
*
|
|
3064
|
-
* @tags Projects
|
|
3065
|
-
* @name RemoveShareProject
|
|
3066
|
-
* @operationId ProjectsController_RemoveShareProject
|
|
3067
|
-
* @summary Delete shared project.
|
|
3068
|
-
* @request DELETE:/projects/{name}/share
|
|
3069
|
-
* @response `200` Success
|
|
3070
|
-
*/
|
|
3071
|
-
|
|
3072
|
-
}, {
|
|
3073
|
-
key: "removeShareProject",
|
|
3074
|
-
value: function removeShareProject(name) {
|
|
3075
|
-
return this.http.delete("/projects/" + name + "/share", null).then(() => {});
|
|
3076
|
-
}
|
|
3077
3024
|
/**
|
|
3078
3025
|
* No description
|
|
3079
3026
|
*
|
|
@@ -3084,10 +3031,7 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
3084
3031
|
* @request GET:/projects
|
|
3085
3032
|
* @response `200` Success
|
|
3086
3033
|
*/
|
|
3087
|
-
|
|
3088
|
-
}, {
|
|
3089
|
-
key: "getProjectsList",
|
|
3090
|
-
value: function getProjectsList(query) {
|
|
3034
|
+
function getProjectsList(query) {
|
|
3091
3035
|
return this.http.get("/projects", query).json();
|
|
3092
3036
|
}
|
|
3093
3037
|
/**
|
|
@@ -3186,6 +3130,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
3186
3130
|
value: function deleteResource(name) {
|
|
3187
3131
|
return this.http.delete("/projects/" + name, null).then(() => {});
|
|
3188
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
|
+
}
|
|
3189
3149
|
/**
|
|
3190
3150
|
* No description
|
|
3191
3151
|
*
|
|
@@ -3483,12 +3443,12 @@ let Resources = /*#__PURE__*/function () {
|
|
|
3483
3443
|
}, {
|
|
3484
3444
|
key: "getDependentNames",
|
|
3485
3445
|
value: function getDependentNames(deps, depType) {
|
|
3486
|
-
return deps.filter(_ref => {
|
|
3446
|
+
return deps.filter((_ref) => {
|
|
3487
3447
|
let {
|
|
3488
3448
|
type
|
|
3489
3449
|
} = _ref;
|
|
3490
3450
|
return type === depType;
|
|
3491
|
-
}).map(_ref2 => {
|
|
3451
|
+
}).map((_ref2) => {
|
|
3492
3452
|
let {
|
|
3493
3453
|
name
|
|
3494
3454
|
} = _ref2;
|
|
@@ -5895,7 +5855,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5895
5855
|
_this.accountPreview = new AccountPreview(_this.http, _this.account);
|
|
5896
5856
|
_this.bulk = new BulkOperations(_this.http);
|
|
5897
5857
|
_this.security = new Security(_this.http, _this.account);
|
|
5898
|
-
_this.notification = new Notification(_this.http);
|
|
5858
|
+
_this.notification = new Notification(_this.http, _assertThisInitialized(_this));
|
|
5899
5859
|
_this.scheduler = new Scheduler(_this.http);
|
|
5900
5860
|
_this.file = new FileUpload(_this.http);
|
|
5901
5861
|
_this.import = new Import(_this.http);
|
|
@@ -6368,11 +6328,13 @@ function isFeatureLayer(layer) {
|
|
|
6368
6328
|
ClassificationType["NaturalBreaks"] = "naturalBreaks";
|
|
6369
6329
|
ClassificationType["EqualInterval"] = "equalInterval";
|
|
6370
6330
|
ClassificationType["Quantile"] = "quantile";
|
|
6331
|
+
ClassificationType["Distinct"] = "unique";
|
|
6371
6332
|
})(exports.ClassificationType || (exports.ClassificationType = {}));
|
|
6372
6333
|
|
|
6373
6334
|
(function (ClassifyAttributeType) {
|
|
6374
6335
|
ClassifyAttributeType["Decimal"] = "decimal";
|
|
6375
6336
|
ClassifyAttributeType["DateTime"] = "dateTime";
|
|
6337
|
+
ClassifyAttributeType["Text"] = "text";
|
|
6376
6338
|
})(exports.ClassifyAttributeType || (exports.ClassifyAttributeType = {}));
|
|
6377
6339
|
|
|
6378
6340
|
(function (ConfigurationErrorEnum) {
|