@evergis/api 3.0.77 → 3.0.80
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/Api.d.ts +7 -2
- package/dist/__generated__/ImportService.d.ts +6 -28
- 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 +348 -320
- package/dist/api.cjs.development.js +86 -140
- 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 +176 -226
- package/dist/api.esm.js.map +1 -1
- package/package.json +3 -2
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
6
|
|
|
7
|
+
var signalr = require('@microsoft/signalr');
|
|
7
8
|
var ky = require('ky');
|
|
8
9
|
var ky__default = _interopDefault(ky);
|
|
9
10
|
var eventEmitter = require('@evergis/event-emitter');
|
|
@@ -34,9 +35,6 @@ function _defineProperties(target, props) {
|
|
|
34
35
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
35
36
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
36
37
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
37
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
38
|
-
writable: false
|
|
39
|
-
});
|
|
40
38
|
return Constructor;
|
|
41
39
|
}
|
|
42
40
|
|
|
@@ -70,9 +68,6 @@ function _inherits(subClass, superClass) {
|
|
|
70
68
|
configurable: true
|
|
71
69
|
}
|
|
72
70
|
});
|
|
73
|
-
Object.defineProperty(subClass, "prototype", {
|
|
74
|
-
writable: false
|
|
75
|
-
});
|
|
76
71
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
77
72
|
}
|
|
78
73
|
|
|
@@ -131,8 +126,6 @@ function _assertThisInitialized(self) {
|
|
|
131
126
|
function _possibleConstructorReturn(self, call) {
|
|
132
127
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
133
128
|
return call;
|
|
134
|
-
} else if (call !== void 0) {
|
|
135
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
136
129
|
}
|
|
137
130
|
|
|
138
131
|
return _assertThisInitialized(self);
|
|
@@ -166,7 +159,7 @@ function _superPropBase(object, property) {
|
|
|
166
159
|
return object;
|
|
167
160
|
}
|
|
168
161
|
|
|
169
|
-
function _get() {
|
|
162
|
+
function _get(target, property, receiver) {
|
|
170
163
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
171
164
|
_get = Reflect.get;
|
|
172
165
|
} else {
|
|
@@ -177,14 +170,14 @@ function _get() {
|
|
|
177
170
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
178
171
|
|
|
179
172
|
if (desc.get) {
|
|
180
|
-
return desc.get.call(
|
|
173
|
+
return desc.get.call(receiver);
|
|
181
174
|
}
|
|
182
175
|
|
|
183
176
|
return desc.value;
|
|
184
177
|
};
|
|
185
178
|
}
|
|
186
179
|
|
|
187
|
-
return _get
|
|
180
|
+
return _get(target, property, receiver || target);
|
|
188
181
|
}
|
|
189
182
|
|
|
190
183
|
/* eslint-disable */
|
|
@@ -648,49 +641,17 @@ let ImportService = /*#__PURE__*/function (_Service) {
|
|
|
648
641
|
* No description
|
|
649
642
|
*
|
|
650
643
|
* @tags ImportService
|
|
651
|
-
* @name
|
|
652
|
-
* @operationId
|
|
653
|
-
* @summary
|
|
654
|
-
* @request
|
|
655
|
-
* @response `200` Success
|
|
656
|
-
*/
|
|
657
|
-
|
|
658
|
-
}, {
|
|
659
|
-
key: "getExcelDataSchema",
|
|
660
|
-
value: function getExcelDataSchema(query) {
|
|
661
|
-
return this.http.get("/import/excelDataSchema", query).json();
|
|
662
|
-
}
|
|
663
|
-
/**
|
|
664
|
-
* No description
|
|
665
|
-
*
|
|
666
|
-
* @tags ImportService
|
|
667
|
-
* @name GetCsvDataSchema
|
|
668
|
-
* @operationId ImportServiceController_GetCsvDataSchema
|
|
669
|
-
* @summary Using a file uploaded to the file upload service, reads the headers of the csv file and returns the information about data schema of all layers in that file, available for import.
|
|
670
|
-
* @request GET:/import/csvDataSchema
|
|
644
|
+
* @name GetFeaturesCount
|
|
645
|
+
* @operationId ImportServiceController_GetFeaturesCount
|
|
646
|
+
* @summary Returns the features count of the given file in temporary static storage.
|
|
647
|
+
* @request POST:/import/count
|
|
671
648
|
* @response `200` Success
|
|
672
649
|
*/
|
|
673
650
|
|
|
674
651
|
}, {
|
|
675
|
-
key: "
|
|
676
|
-
value: function
|
|
677
|
-
return this.http.
|
|
678
|
-
}
|
|
679
|
-
/**
|
|
680
|
-
* No description
|
|
681
|
-
*
|
|
682
|
-
* @tags ImportService
|
|
683
|
-
* @name GetKmlDataSchema
|
|
684
|
-
* @operationId ImportServiceController_GetKmlDataSchema
|
|
685
|
-
* @summary Using a file uploaded to the file upload service, reads the kml file and returns the information about data schema of all layers in that file, available for import.
|
|
686
|
-
* @request GET:/import/kmlDataSchema
|
|
687
|
-
* @response `200` Success
|
|
688
|
-
*/
|
|
689
|
-
|
|
690
|
-
}, {
|
|
691
|
-
key: "getKmlDataSchema",
|
|
692
|
-
value: function getKmlDataSchema(query) {
|
|
693
|
-
return this.http.get("/import/kmlDataSchema", query).json();
|
|
652
|
+
key: "getFeaturesCount",
|
|
653
|
+
value: function getFeaturesCount(data) {
|
|
654
|
+
return this.http.post("/import/count", data).json();
|
|
694
655
|
}
|
|
695
656
|
/**
|
|
696
657
|
* No description
|
|
@@ -866,8 +827,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
866
827
|
|| event.code === 4002
|
|
867
828
|
/* InvalidSession */
|
|
868
829
|
) {
|
|
869
|
-
|
|
870
|
-
|
|
830
|
+
_this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
831
|
+
} else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
|
|
871
832
|
_this.connectStatus = exports.ConnectionStatus.Break;
|
|
872
833
|
_this.reconnectTries++;
|
|
873
834
|
|
|
@@ -1373,7 +1334,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
|
|
|
1373
1334
|
const taskProgress = await this.getTaskProgress(id);
|
|
1374
1335
|
this.resolveTaskStatus(taskProgress, resolve, reject);
|
|
1375
1336
|
|
|
1376
|
-
const taskResultCallback = async _ref => {
|
|
1337
|
+
const taskResultCallback = async (_ref) => {
|
|
1377
1338
|
let {
|
|
1378
1339
|
data
|
|
1379
1340
|
} = _ref;
|
|
@@ -1453,38 +1414,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1453
1414
|
}
|
|
1454
1415
|
|
|
1455
1416
|
_createClass(LayersService, [{
|
|
1456
|
-
key: "
|
|
1417
|
+
key: "getLayersList",
|
|
1457
1418
|
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
1419
|
/**
|
|
1489
1420
|
* No description
|
|
1490
1421
|
*
|
|
@@ -1495,10 +1426,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1495
1426
|
* @request GET:/layers
|
|
1496
1427
|
* @response `200` Success
|
|
1497
1428
|
*/
|
|
1498
|
-
|
|
1499
|
-
}, {
|
|
1500
|
-
key: "getLayersList",
|
|
1501
|
-
value: function getLayersList(query) {
|
|
1429
|
+
function getLayersList(query) {
|
|
1502
1430
|
return this.http.get("/layers", query).json();
|
|
1503
1431
|
}
|
|
1504
1432
|
/**
|
|
@@ -1533,6 +1461,38 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1533
1461
|
value: function deleteResources(query) {
|
|
1534
1462
|
return this.http.delete("/layers", null, query).json();
|
|
1535
1463
|
}
|
|
1464
|
+
/**
|
|
1465
|
+
* No description
|
|
1466
|
+
*
|
|
1467
|
+
* @tags Layers
|
|
1468
|
+
* @name GetLayerInfo
|
|
1469
|
+
* @operationId LayersController_GetLayerInfoAsync
|
|
1470
|
+
* @summary Returns the layer information.
|
|
1471
|
+
* @request GET:/layers/{name}
|
|
1472
|
+
* @response `200` Success
|
|
1473
|
+
*/
|
|
1474
|
+
|
|
1475
|
+
}, {
|
|
1476
|
+
key: "getLayerInfo",
|
|
1477
|
+
value: function getLayerInfo(name) {
|
|
1478
|
+
return this.http.get("/layers/" + name).json();
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* No description
|
|
1482
|
+
*
|
|
1483
|
+
* @tags Layers
|
|
1484
|
+
* @name DeleteResource
|
|
1485
|
+
* @operationId LayersController_DeleteResource
|
|
1486
|
+
* @summary Deletes resource.
|
|
1487
|
+
* @request DELETE:/layers/{name}
|
|
1488
|
+
* @response `200` Success
|
|
1489
|
+
*/
|
|
1490
|
+
|
|
1491
|
+
}, {
|
|
1492
|
+
key: "deleteResource",
|
|
1493
|
+
value: function deleteResource(name) {
|
|
1494
|
+
return this.http.delete("/layers/" + name, null).then(() => {});
|
|
1495
|
+
}
|
|
1536
1496
|
/**
|
|
1537
1497
|
* No description
|
|
1538
1498
|
*
|
|
@@ -3028,53 +2988,8 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
3028
2988
|
}
|
|
3029
2989
|
|
|
3030
2990
|
_createClass(ProjectsService, [{
|
|
3031
|
-
key: "
|
|
2991
|
+
key: "getProjectsList",
|
|
3032
2992
|
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
2993
|
/**
|
|
3079
2994
|
* No description
|
|
3080
2995
|
*
|
|
@@ -3085,10 +3000,7 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
3085
3000
|
* @request GET:/projects
|
|
3086
3001
|
* @response `200` Success
|
|
3087
3002
|
*/
|
|
3088
|
-
|
|
3089
|
-
}, {
|
|
3090
|
-
key: "getProjectsList",
|
|
3091
|
-
value: function getProjectsList(query) {
|
|
3003
|
+
function getProjectsList(query) {
|
|
3092
3004
|
return this.http.get("/projects", query).json();
|
|
3093
3005
|
}
|
|
3094
3006
|
/**
|
|
@@ -3187,6 +3099,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
3187
3099
|
value: function deleteResource(name) {
|
|
3188
3100
|
return this.http.delete("/projects/" + name, null).then(() => {});
|
|
3189
3101
|
}
|
|
3102
|
+
/**
|
|
3103
|
+
* No description
|
|
3104
|
+
*
|
|
3105
|
+
* @tags Projects
|
|
3106
|
+
* @name GetProjectLayersExtendedInfo
|
|
3107
|
+
* @operationId ProjectsController_GetProjectLayersExtendedInfo
|
|
3108
|
+
* @summary Gets extended project info with layers info.
|
|
3109
|
+
* @request GET:/projects/{name}/extended-info
|
|
3110
|
+
* @response `200` Success
|
|
3111
|
+
*/
|
|
3112
|
+
|
|
3113
|
+
}, {
|
|
3114
|
+
key: "getProjectLayersExtendedInfo",
|
|
3115
|
+
value: function getProjectLayersExtendedInfo(name) {
|
|
3116
|
+
return this.http.get("/projects/" + name + "/extended-info").json();
|
|
3117
|
+
}
|
|
3190
3118
|
/**
|
|
3191
3119
|
* No description
|
|
3192
3120
|
*
|
|
@@ -3484,12 +3412,12 @@ let Resources = /*#__PURE__*/function () {
|
|
|
3484
3412
|
}, {
|
|
3485
3413
|
key: "getDependentNames",
|
|
3486
3414
|
value: function getDependentNames(deps, depType) {
|
|
3487
|
-
return deps.filter(_ref => {
|
|
3415
|
+
return deps.filter((_ref) => {
|
|
3488
3416
|
let {
|
|
3489
3417
|
type
|
|
3490
3418
|
} = _ref;
|
|
3491
3419
|
return type === depType;
|
|
3492
|
-
}).map(_ref2 => {
|
|
3420
|
+
}).map((_ref2) => {
|
|
3493
3421
|
let {
|
|
3494
3422
|
name
|
|
3495
3423
|
} = _ref2;
|
|
@@ -5856,6 +5784,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5856
5784
|
let {
|
|
5857
5785
|
url,
|
|
5858
5786
|
wsUrl,
|
|
5787
|
+
snappingHubUrl,
|
|
5859
5788
|
http,
|
|
5860
5789
|
urlPath,
|
|
5861
5790
|
httpOptions
|
|
@@ -5915,6 +5844,9 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5915
5844
|
_this.names = new Names({
|
|
5916
5845
|
account: _this.account
|
|
5917
5846
|
});
|
|
5847
|
+
_this.snappingHub = snappingHubUrl ? new signalr.HubConnectionBuilder().withUrl(snappingHubUrl, {
|
|
5848
|
+
withCredentials: true
|
|
5849
|
+
}).withAutomaticReconnect().build() : null;
|
|
5918
5850
|
return _this;
|
|
5919
5851
|
}
|
|
5920
5852
|
|
|
@@ -5924,6 +5856,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5924
5856
|
let {
|
|
5925
5857
|
authParams,
|
|
5926
5858
|
connectWs,
|
|
5859
|
+
connectSignalR,
|
|
5927
5860
|
initScheduler,
|
|
5928
5861
|
fetchSettings,
|
|
5929
5862
|
fetchUser
|
|
@@ -5940,6 +5873,10 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5940
5873
|
await this.connectWs();
|
|
5941
5874
|
}
|
|
5942
5875
|
|
|
5876
|
+
if (connectSignalR) {
|
|
5877
|
+
await this.connectSignalR();
|
|
5878
|
+
}
|
|
5879
|
+
|
|
5943
5880
|
if (initScheduler) {
|
|
5944
5881
|
await this.initScheduler();
|
|
5945
5882
|
}
|
|
@@ -5987,6 +5924,13 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5987
5924
|
});
|
|
5988
5925
|
}
|
|
5989
5926
|
}
|
|
5927
|
+
}, {
|
|
5928
|
+
key: "connectSignalR",
|
|
5929
|
+
value: async function connectSignalR() {
|
|
5930
|
+
if (this.account.isAuth && this.snappingHub) {
|
|
5931
|
+
await this.snappingHub.start();
|
|
5932
|
+
}
|
|
5933
|
+
}
|
|
5990
5934
|
}, {
|
|
5991
5935
|
key: "logout",
|
|
5992
5936
|
value: async function logout() {
|
|
@@ -6369,11 +6313,13 @@ function isFeatureLayer(layer) {
|
|
|
6369
6313
|
ClassificationType["NaturalBreaks"] = "naturalBreaks";
|
|
6370
6314
|
ClassificationType["EqualInterval"] = "equalInterval";
|
|
6371
6315
|
ClassificationType["Quantile"] = "quantile";
|
|
6316
|
+
ClassificationType["Distinct"] = "unique";
|
|
6372
6317
|
})(exports.ClassificationType || (exports.ClassificationType = {}));
|
|
6373
6318
|
|
|
6374
6319
|
(function (ClassifyAttributeType) {
|
|
6375
6320
|
ClassifyAttributeType["Decimal"] = "decimal";
|
|
6376
6321
|
ClassifyAttributeType["DateTime"] = "dateTime";
|
|
6322
|
+
ClassifyAttributeType["Text"] = "text";
|
|
6377
6323
|
})(exports.ClassifyAttributeType || (exports.ClassifyAttributeType = {}));
|
|
6378
6324
|
|
|
6379
6325
|
(function (ConfigurationErrorEnum) {
|