@evergis/api 3.0.214 → 3.0.215
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 +3 -5
- package/dist/__generated__/AccountService.d.ts +2 -2
- package/dist/__generated__/DataSourceService.d.ts +68 -2
- package/dist/__generated__/EqlService.d.ts +12 -1
- package/dist/__generated__/LayersService.d.ts +2 -2
- package/dist/__generated__/RemoteTaskManagerService.d.ts +262 -0
- 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 +729 -660
- package/dist/api.cjs.development.js +548 -856
- 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 +813 -1091
- package/dist/api.esm.js.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/services/RemoteTaskManager.d.ts +3 -0
- package/dist/services/Statistic.d.ts +4 -2
- package/dist/services/index.d.ts +1 -1
- package/dist/utils/errorHandler.d.ts +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist/SpatialProcessor.d.ts +0 -30
- package/dist/__generated__/SchedulerService.d.ts +0 -207
- package/dist/layers/EvergisDynamicLayer.d.ts +0 -28
- package/dist/layers/EvergisTileLayer.d.ts +0 -18
- package/dist/layers/LayersManager.d.ts +0 -11
- package/dist/layers/index.d.ts +0 -3
- package/dist/services/Scheduler.d.ts +0 -20
- package/dist/types/EvergisLayer.d.ts +0 -6
- package/dist/types/index.d.ts +0 -1
- package/dist/utils/guards.d.ts +0 -6
|
@@ -10,12 +10,6 @@ var ky__default = _interopDefault(ky);
|
|
|
10
10
|
var signalr = require('@microsoft/signalr');
|
|
11
11
|
var queryString = require('query-string');
|
|
12
12
|
var nanoid = require('nanoid');
|
|
13
|
-
var DomPainter = require('@evergis/sgis/es/painters/DomPainter/DomPainter');
|
|
14
|
-
var _Map = require('@evergis/sgis/es/Map');
|
|
15
|
-
var TileLayer = require('@evergis/sgis/es/layers/TileLayer');
|
|
16
|
-
var Crs = require('@evergis/sgis/es/Crs');
|
|
17
|
-
var DynamicLayer = require('@evergis/sgis/es/layers/DynamicLayer');
|
|
18
|
-
var sgis = require('@evergis/sgis');
|
|
19
13
|
|
|
20
14
|
function _classCallCheck(instance, Constructor) {
|
|
21
15
|
if (!(instance instanceof Constructor)) {
|
|
@@ -36,6 +30,9 @@ function _defineProperties(target, props) {
|
|
|
36
30
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
37
31
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
32
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
33
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
34
|
+
writable: false
|
|
35
|
+
});
|
|
39
36
|
return Constructor;
|
|
40
37
|
}
|
|
41
38
|
|
|
@@ -69,6 +66,9 @@ function _inherits(subClass, superClass) {
|
|
|
69
66
|
configurable: true
|
|
70
67
|
}
|
|
71
68
|
});
|
|
69
|
+
Object.defineProperty(subClass, "prototype", {
|
|
70
|
+
writable: false
|
|
71
|
+
});
|
|
72
72
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -127,6 +127,8 @@ function _assertThisInitialized(self) {
|
|
|
127
127
|
function _possibleConstructorReturn(self, call) {
|
|
128
128
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
129
129
|
return call;
|
|
130
|
+
} else if (call !== void 0) {
|
|
131
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
return _assertThisInitialized(self);
|
|
@@ -160,7 +162,7 @@ function _superPropBase(object, property) {
|
|
|
160
162
|
return object;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
|
-
function _get(
|
|
165
|
+
function _get() {
|
|
164
166
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
165
167
|
_get = Reflect.get;
|
|
166
168
|
} else {
|
|
@@ -171,14 +173,14 @@ function _get(target, property, receiver) {
|
|
|
171
173
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
172
174
|
|
|
173
175
|
if (desc.get) {
|
|
174
|
-
return desc.get.call(receiver);
|
|
176
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
175
177
|
}
|
|
176
178
|
|
|
177
179
|
return desc.value;
|
|
178
180
|
};
|
|
179
181
|
}
|
|
180
182
|
|
|
181
|
-
return _get(
|
|
183
|
+
return _get.apply(this, arguments);
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
const API_USER_INFO_KEY = "@evergis/user-info";
|
|
@@ -333,8 +335,37 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
|
|
|
333
335
|
}
|
|
334
336
|
|
|
335
337
|
_createClass(DataSourceService, [{
|
|
336
|
-
key: "
|
|
338
|
+
key: "createArcGisDataSource",
|
|
337
339
|
value:
|
|
340
|
+
/**
|
|
341
|
+
* No description
|
|
342
|
+
*
|
|
343
|
+
* @tags DataSource
|
|
344
|
+
* @name CreateArcGisDataSource
|
|
345
|
+
* @operationId DataSourceController_CreateArcGisDataSource
|
|
346
|
+
* @summary Create S3 data source.
|
|
347
|
+
* @request POST:/ds/arcgis
|
|
348
|
+
* @response `200` OK
|
|
349
|
+
*/
|
|
350
|
+
function createArcGisDataSource(data) {
|
|
351
|
+
return this.http.post("/ds/arcgis", data).then(() => {});
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* No description
|
|
355
|
+
*
|
|
356
|
+
* @tags DataSource
|
|
357
|
+
* @name UpdateArcGisDataSource
|
|
358
|
+
* @operationId DataSourceController_UpdateArcGisDataSource
|
|
359
|
+
* @summary Update arcgis data source.
|
|
360
|
+
* @request PATCH:/ds/arcgis
|
|
361
|
+
* @response `200` OK
|
|
362
|
+
*/
|
|
363
|
+
|
|
364
|
+
}, {
|
|
365
|
+
key: "updateArcGisDataSource",
|
|
366
|
+
value: function updateArcGisDataSource(data) {
|
|
367
|
+
return this.http.patch("/ds/arcgis", data).then(() => {});
|
|
368
|
+
}
|
|
338
369
|
/**
|
|
339
370
|
* No description
|
|
340
371
|
*
|
|
@@ -345,7 +376,10 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
|
|
|
345
376
|
* @request GET:/ds
|
|
346
377
|
* @response `200` OK
|
|
347
378
|
*/
|
|
348
|
-
|
|
379
|
+
|
|
380
|
+
}, {
|
|
381
|
+
key: "getDataSourcesList",
|
|
382
|
+
value: function getDataSourcesList(query) {
|
|
349
383
|
return this.http.get("/ds", query).json();
|
|
350
384
|
}
|
|
351
385
|
/**
|
|
@@ -428,6 +462,70 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
|
|
|
428
462
|
value: function testConnection(data) {
|
|
429
463
|
return this.http.post("/ds/testConnection", data).json();
|
|
430
464
|
}
|
|
465
|
+
/**
|
|
466
|
+
* No description
|
|
467
|
+
*
|
|
468
|
+
* @tags DataSource
|
|
469
|
+
* @name CreateS3DataSource
|
|
470
|
+
* @operationId DataSourceController_CreateS3DataSource
|
|
471
|
+
* @summary Create S3 data source.
|
|
472
|
+
* @request POST:/ds/s3
|
|
473
|
+
* @response `200` OK
|
|
474
|
+
*/
|
|
475
|
+
|
|
476
|
+
}, {
|
|
477
|
+
key: "createS3DataSource",
|
|
478
|
+
value: function createS3DataSource(data) {
|
|
479
|
+
return this.http.post("/ds/s3", data).then(() => {});
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* No description
|
|
483
|
+
*
|
|
484
|
+
* @tags DataSource
|
|
485
|
+
* @name UpdateS3DataSource
|
|
486
|
+
* @operationId DataSourceController_UpdateS3DataSource
|
|
487
|
+
* @summary Create S3 data source.
|
|
488
|
+
* @request PATCH:/ds/s3
|
|
489
|
+
* @response `200` OK
|
|
490
|
+
*/
|
|
491
|
+
|
|
492
|
+
}, {
|
|
493
|
+
key: "updateS3DataSource",
|
|
494
|
+
value: function updateS3DataSource(data) {
|
|
495
|
+
return this.http.patch("/ds/s3", data).then(() => {});
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* No description
|
|
499
|
+
*
|
|
500
|
+
* @tags DataSource
|
|
501
|
+
* @name CreateArcGisDataSource1
|
|
502
|
+
* @operationId DataSourceController_CreateArcGisDataSource_1
|
|
503
|
+
* @summary Create WMS data source.
|
|
504
|
+
* @request POST:/ds/wms
|
|
505
|
+
* @response `200` OK
|
|
506
|
+
*/
|
|
507
|
+
|
|
508
|
+
}, {
|
|
509
|
+
key: "createArcGisDataSource1",
|
|
510
|
+
value: function createArcGisDataSource1(data) {
|
|
511
|
+
return this.http.post("/ds/wms", data).then(() => {});
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* No description
|
|
515
|
+
*
|
|
516
|
+
* @tags DataSource
|
|
517
|
+
* @name UpdateArcGisDataSource1
|
|
518
|
+
* @operationId DataSourceController_UpdateArcGisDataSource_1
|
|
519
|
+
* @summary Update WMS data source.
|
|
520
|
+
* @request PATCH:/ds/wms
|
|
521
|
+
* @response `200` OK
|
|
522
|
+
*/
|
|
523
|
+
|
|
524
|
+
}, {
|
|
525
|
+
key: "updateArcGisDataSource1",
|
|
526
|
+
value: function updateArcGisDataSource1(data) {
|
|
527
|
+
return this.http.patch("/ds/wms", data).then(() => {});
|
|
528
|
+
}
|
|
431
529
|
}]);
|
|
432
530
|
|
|
433
531
|
return DataSourceService;
|
|
@@ -1048,7 +1146,7 @@ let AccountService = /*#__PURE__*/function (_Service) {
|
|
|
1048
1146
|
return this.http.post("/account/register", data).text();
|
|
1049
1147
|
}
|
|
1050
1148
|
/**
|
|
1051
|
-
* @description Only for users with SPCore.Security.ISecurityManager.SuperuserRole role.
|
|
1149
|
+
* @description Only for users with SPCore.Security.Abstractions.ISecurityManager.SuperuserRole role.
|
|
1052
1150
|
*
|
|
1053
1151
|
* @tags Account
|
|
1054
1152
|
* @name CreateUser
|
|
@@ -1080,7 +1178,7 @@ let AccountService = /*#__PURE__*/function (_Service) {
|
|
|
1080
1178
|
return this.http.patch("/account/user", data).then(() => {});
|
|
1081
1179
|
}
|
|
1082
1180
|
/**
|
|
1083
|
-
* @description Only for users with SPCore.Security.ISecurityManager.SuperuserRole role.
|
|
1181
|
+
* @description Only for users with SPCore.Security.Abstractions.ISecurityManager.SuperuserRole role.
|
|
1084
1182
|
*
|
|
1085
1183
|
* @tags Account
|
|
1086
1184
|
* @name ConfirmEmail
|
|
@@ -2318,6 +2416,22 @@ let EqlService = /*#__PURE__*/function (_Service) {
|
|
|
2318
2416
|
value: function removeLayerParameterValue(query) {
|
|
2319
2417
|
return this.http.delete("/eql/removeParam", null, query).then(() => {});
|
|
2320
2418
|
}
|
|
2419
|
+
/**
|
|
2420
|
+
* No description
|
|
2421
|
+
*
|
|
2422
|
+
* @tags Eql
|
|
2423
|
+
* @name GetAvailiableLayerParameters
|
|
2424
|
+
* @operationId EqlController_GetAvailiableLayerParameters
|
|
2425
|
+
* @summary Get availiable layer parameters values.
|
|
2426
|
+
* @request GET:/eql/getAvailiableParams
|
|
2427
|
+
* @response `200` OK
|
|
2428
|
+
*/
|
|
2429
|
+
|
|
2430
|
+
}, {
|
|
2431
|
+
key: "getAvailiableLayerParameters",
|
|
2432
|
+
value: function getAvailiableLayerParameters(query) {
|
|
2433
|
+
return this.http.get("/eql/getAvailiableParams", query).json();
|
|
2434
|
+
}
|
|
2321
2435
|
}]);
|
|
2322
2436
|
|
|
2323
2437
|
return EqlService;
|
|
@@ -4828,15 +4942,6 @@ function formDataFromFile(file) {
|
|
|
4828
4942
|
return data;
|
|
4829
4943
|
}
|
|
4830
4944
|
|
|
4831
|
-
function createGuard(type) {
|
|
4832
|
-
return function (typed) {
|
|
4833
|
-
if (!typed.type) return false;
|
|
4834
|
-
return type.includes(typed.type);
|
|
4835
|
-
};
|
|
4836
|
-
}
|
|
4837
|
-
|
|
4838
|
-
const isLayer = /*#__PURE__*/createGuard(['PostgresLayerService', 'PostgresTileLayerService', 'QueryLayerService']);
|
|
4839
|
-
|
|
4840
4945
|
function isString(v) {
|
|
4841
4946
|
return typeof v === 'string';
|
|
4842
4947
|
}
|
|
@@ -5221,8 +5326,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
5221
5326
|
|| event.code === 4002
|
|
5222
5327
|
/* InvalidSession */
|
|
5223
5328
|
) {
|
|
5224
|
-
|
|
5225
|
-
|
|
5329
|
+
_this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
5330
|
+
} else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
|
|
5226
5331
|
_this.connectStatus = exports.ConnectionStatus.Break;
|
|
5227
5332
|
_this.reconnectTries++;
|
|
5228
5333
|
|
|
@@ -5929,259 +6034,174 @@ function isProjectContentItems(v) {
|
|
|
5929
6034
|
return v !== null && v !== undefined;
|
|
5930
6035
|
}
|
|
5931
6036
|
|
|
6037
|
+
const _excluded$7 = ["id"];
|
|
5932
6038
|
/**
|
|
5933
6039
|
* @title Spatial Processing Core API
|
|
5934
6040
|
* @version 1.5.1.0
|
|
5935
6041
|
* @baseUrl /sp
|
|
5936
6042
|
*/
|
|
5937
6043
|
|
|
5938
|
-
let
|
|
5939
|
-
_inherits(
|
|
6044
|
+
let RemoteTaskManagerService = /*#__PURE__*/function (_Service) {
|
|
6045
|
+
_inherits(RemoteTaskManagerService, _Service);
|
|
5940
6046
|
|
|
5941
|
-
var _super = /*#__PURE__*/_createSuper(
|
|
6047
|
+
var _super = /*#__PURE__*/_createSuper(RemoteTaskManagerService);
|
|
5942
6048
|
|
|
5943
|
-
function
|
|
5944
|
-
_classCallCheck(this,
|
|
6049
|
+
function RemoteTaskManagerService() {
|
|
6050
|
+
_classCallCheck(this, RemoteTaskManagerService);
|
|
5945
6051
|
|
|
5946
6052
|
return _super.apply(this, arguments);
|
|
5947
6053
|
}
|
|
5948
6054
|
|
|
5949
|
-
_createClass(
|
|
5950
|
-
key: "
|
|
6055
|
+
_createClass(RemoteTaskManagerService, [{
|
|
6056
|
+
key: "cancelTask",
|
|
5951
6057
|
value:
|
|
5952
6058
|
/**
|
|
5953
|
-
*
|
|
6059
|
+
* No description
|
|
5954
6060
|
*
|
|
5955
|
-
* @tags
|
|
5956
|
-
* @name
|
|
5957
|
-
* @operationId
|
|
5958
|
-
* @summary
|
|
5959
|
-
* @request
|
|
6061
|
+
* @tags RemoteTaskManager
|
|
6062
|
+
* @name CancelTask
|
|
6063
|
+
* @operationId RemoteTaskManagerController_CancelTask
|
|
6064
|
+
* @summary Cancel task execution by given id.
|
|
6065
|
+
* @request POST:/scheduler/tasks/{id}/cancel
|
|
5960
6066
|
* @response `200` OK
|
|
5961
6067
|
*/
|
|
5962
|
-
function
|
|
5963
|
-
return this.http.
|
|
6068
|
+
function cancelTask(id) {
|
|
6069
|
+
return this.http.post("/scheduler/tasks/" + id + "/cancel", null).then(() => {});
|
|
5964
6070
|
}
|
|
5965
6071
|
/**
|
|
5966
6072
|
* No description
|
|
5967
6073
|
*
|
|
5968
|
-
* @tags
|
|
5969
|
-
* @name
|
|
5970
|
-
* @operationId
|
|
5971
|
-
* @summary
|
|
5972
|
-
* @request POST:/
|
|
6074
|
+
* @tags RemoteTaskManager
|
|
6075
|
+
* @name StartCogCreateTask
|
|
6076
|
+
* @operationId RemoteTaskManagerController_StartCogCreateTask
|
|
6077
|
+
* @summary Plans the execution of a 'create raster cog' server task.
|
|
6078
|
+
* @request POST:/scheduler/tasks#type=cogService_create
|
|
5973
6079
|
* @response `200` OK
|
|
5974
6080
|
*/
|
|
5975
6081
|
|
|
5976
6082
|
}, {
|
|
5977
|
-
key: "
|
|
5978
|
-
value: function
|
|
5979
|
-
return this.http.post("/
|
|
6083
|
+
key: "startCogCreateTask",
|
|
6084
|
+
value: function startCogCreateTask(data) {
|
|
6085
|
+
return this.http.post("/scheduler/tasks", data, {
|
|
6086
|
+
type: 'cogService_create'
|
|
6087
|
+
}).text();
|
|
5980
6088
|
}
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
function ResourceCatalog() {
|
|
5992
|
-
_classCallCheck(this, ResourceCatalog);
|
|
5993
|
-
|
|
5994
|
-
return _super.apply(this, arguments);
|
|
5995
|
-
}
|
|
5996
|
-
|
|
5997
|
-
return _createClass(ResourceCatalog);
|
|
5998
|
-
}(ResourceCatalogService);
|
|
5999
|
-
|
|
6000
|
-
(function (DependencyType) {
|
|
6001
|
-
DependencyType["Layer"] = "Layer";
|
|
6002
|
-
DependencyType["Table"] = "Table";
|
|
6003
|
-
DependencyType["Project"] = "Project";
|
|
6004
|
-
})(exports.DependencyType || (exports.DependencyType = {}));
|
|
6005
|
-
|
|
6006
|
-
let Resources = /*#__PURE__*/function () {
|
|
6007
|
-
function Resources(projects, layers, tables) {
|
|
6008
|
-
_classCallCheck(this, Resources);
|
|
6009
|
-
|
|
6010
|
-
this.projects = projects;
|
|
6011
|
-
this.layers = layers;
|
|
6012
|
-
this.tables = tables;
|
|
6013
|
-
}
|
|
6089
|
+
/**
|
|
6090
|
+
* No description
|
|
6091
|
+
*
|
|
6092
|
+
* @tags RemoteTaskManager
|
|
6093
|
+
* @name StartRasterVrtTask
|
|
6094
|
+
* @operationId RemoteTaskManagerController_StartRasterVrtTask
|
|
6095
|
+
* @summary Plans the execution of a 'create raster vrt' server task.
|
|
6096
|
+
* @request POST:/scheduler/tasks#type=cogService_vrt
|
|
6097
|
+
* @response `200` OK
|
|
6098
|
+
*/
|
|
6014
6099
|
|
|
6015
|
-
_createClass(Resources, [{
|
|
6016
|
-
key: "getProjectInfosWithDeps",
|
|
6017
|
-
value: async function getProjectInfosWithDeps(projects) {
|
|
6018
|
-
const projectInfos = await this.projects.getProjectInfos(projects);
|
|
6019
|
-
const projectDeps = await this.projects.getProjectsDeps(projects);
|
|
6020
|
-
const {
|
|
6021
|
-
layers,
|
|
6022
|
-
tables
|
|
6023
|
-
} = await this.getDependencies(projectDeps, true, true);
|
|
6024
|
-
return {
|
|
6025
|
-
projects: projectInfos,
|
|
6026
|
-
deps: {
|
|
6027
|
-
layers,
|
|
6028
|
-
tables
|
|
6029
|
-
}
|
|
6030
|
-
};
|
|
6031
|
-
}
|
|
6032
6100
|
}, {
|
|
6033
|
-
key: "
|
|
6034
|
-
value:
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
tables
|
|
6039
|
-
} = await this.getDependencies(layersDeps, false, true);
|
|
6040
|
-
return {
|
|
6041
|
-
layers: layerInfos,
|
|
6042
|
-
deps: {
|
|
6043
|
-
tables
|
|
6044
|
-
}
|
|
6045
|
-
};
|
|
6101
|
+
key: "startRasterVrtTask",
|
|
6102
|
+
value: function startRasterVrtTask(data) {
|
|
6103
|
+
return this.http.post("/scheduler/tasks", data, {
|
|
6104
|
+
type: 'cogService_vrt'
|
|
6105
|
+
}).text();
|
|
6046
6106
|
}
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
const layerNames = this.getDependentNames(deps, exports.DependencyType.Layer);
|
|
6058
|
-
acc.layers.push(...layerNames);
|
|
6059
|
-
}
|
|
6060
|
-
|
|
6061
|
-
if (pickTables) {
|
|
6062
|
-
const tableNames = this.getDependentNames(deps, exports.DependencyType.Table);
|
|
6063
|
-
acc.tables.push(...tableNames);
|
|
6064
|
-
}
|
|
6107
|
+
/**
|
|
6108
|
+
* No description
|
|
6109
|
+
*
|
|
6110
|
+
* @tags RemoteTaskManager
|
|
6111
|
+
* @name StartNetCdfTask
|
|
6112
|
+
* @operationId RemoteTaskManagerController_StartNetCdfTask
|
|
6113
|
+
* @summary Plans the execution of a 'create raster netcdf' server task.
|
|
6114
|
+
* @request POST:/scheduler/tasks#type=cogService_netcdf
|
|
6115
|
+
* @response `200` OK
|
|
6116
|
+
*/
|
|
6065
6117
|
|
|
6066
|
-
return acc;
|
|
6067
|
-
}, {
|
|
6068
|
-
tables: [],
|
|
6069
|
-
layers: []
|
|
6070
|
-
});
|
|
6071
|
-
return {
|
|
6072
|
-
tables: await this.tables.getTableInfos(tables.filter(unique)),
|
|
6073
|
-
layers: await this.layers.getLayerInfos(layers.filter(unique))
|
|
6074
|
-
};
|
|
6075
|
-
}
|
|
6076
6118
|
}, {
|
|
6077
|
-
key: "
|
|
6078
|
-
value: function
|
|
6079
|
-
return
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
} = _ref;
|
|
6083
|
-
return type === depType;
|
|
6084
|
-
}).map((_ref2) => {
|
|
6085
|
-
let {
|
|
6086
|
-
name
|
|
6087
|
-
} = _ref2;
|
|
6088
|
-
return name;
|
|
6089
|
-
}).filter(isString);
|
|
6119
|
+
key: "startNetCdfTask",
|
|
6120
|
+
value: function startNetCdfTask(data) {
|
|
6121
|
+
return this.http.post("/scheduler/tasks", data, {
|
|
6122
|
+
type: 'cogService_netcdf'
|
|
6123
|
+
}).text();
|
|
6090
6124
|
}
|
|
6091
|
-
}]);
|
|
6092
|
-
|
|
6093
|
-
return Resources;
|
|
6094
|
-
}();
|
|
6095
|
-
|
|
6096
|
-
/**
|
|
6097
|
-
* @title Spatial Processing Core API
|
|
6098
|
-
* @version 1.5.1.0
|
|
6099
|
-
* @baseUrl /sp
|
|
6100
|
-
*/
|
|
6101
|
-
|
|
6102
|
-
let SchedulerService = /*#__PURE__*/function (_Service) {
|
|
6103
|
-
_inherits(SchedulerService, _Service);
|
|
6104
|
-
|
|
6105
|
-
var _super = /*#__PURE__*/_createSuper(SchedulerService);
|
|
6106
|
-
|
|
6107
|
-
function SchedulerService() {
|
|
6108
|
-
_classCallCheck(this, SchedulerService);
|
|
6109
|
-
|
|
6110
|
-
return _super.apply(this, arguments);
|
|
6111
|
-
}
|
|
6112
|
-
|
|
6113
|
-
_createClass(SchedulerService, [{
|
|
6114
|
-
key: "getTaskList",
|
|
6115
|
-
value:
|
|
6116
6125
|
/**
|
|
6117
6126
|
* No description
|
|
6118
6127
|
*
|
|
6119
|
-
* @tags
|
|
6120
|
-
* @name
|
|
6121
|
-
* @operationId
|
|
6122
|
-
* @summary
|
|
6123
|
-
* @request
|
|
6128
|
+
* @tags RemoteTaskManager
|
|
6129
|
+
* @name StartBufferTask
|
|
6130
|
+
* @operationId RemoteTaskManagerController_StartBufferTask
|
|
6131
|
+
* @summary Plans the execution of a 'create buffers' server task.
|
|
6132
|
+
* @request POST:/scheduler/tasks#type=geoService_buffer
|
|
6124
6133
|
* @response `200` OK
|
|
6125
6134
|
*/
|
|
6126
|
-
|
|
6127
|
-
|
|
6135
|
+
|
|
6136
|
+
}, {
|
|
6137
|
+
key: "startBufferTask",
|
|
6138
|
+
value: function startBufferTask(data) {
|
|
6139
|
+
return this.http.post("/scheduler/tasks", data, {
|
|
6140
|
+
type: 'geoService_buffer'
|
|
6141
|
+
}).text();
|
|
6128
6142
|
}
|
|
6129
6143
|
/**
|
|
6130
6144
|
* No description
|
|
6131
6145
|
*
|
|
6132
|
-
* @tags
|
|
6133
|
-
* @name
|
|
6134
|
-
* @operationId
|
|
6135
|
-
* @summary
|
|
6136
|
-
* @request
|
|
6146
|
+
* @tags RemoteTaskManager
|
|
6147
|
+
* @name StartCopyTableTask
|
|
6148
|
+
* @operationId RemoteTaskManagerController_StartCopyTableTask
|
|
6149
|
+
* @summary Plans the execution of a 'copy table' server task.
|
|
6150
|
+
* @request POST:/scheduler/tasks#type=geoService_copy
|
|
6137
6151
|
* @response `200` OK
|
|
6138
6152
|
*/
|
|
6139
6153
|
|
|
6140
6154
|
}, {
|
|
6141
|
-
key: "
|
|
6142
|
-
value: function
|
|
6143
|
-
return this.http.
|
|
6155
|
+
key: "startCopyTableTask",
|
|
6156
|
+
value: function startCopyTableTask(data) {
|
|
6157
|
+
return this.http.post("/scheduler/tasks", data, {
|
|
6158
|
+
type: 'geoService_copy'
|
|
6159
|
+
}).text();
|
|
6144
6160
|
}
|
|
6145
6161
|
/**
|
|
6146
6162
|
* No description
|
|
6147
6163
|
*
|
|
6148
|
-
* @tags
|
|
6149
|
-
* @name
|
|
6150
|
-
* @operationId
|
|
6151
|
-
* @summary
|
|
6152
|
-
* @request
|
|
6164
|
+
* @tags RemoteTaskManager
|
|
6165
|
+
* @name StartUnionTask
|
|
6166
|
+
* @operationId RemoteTaskManagerController_StartUnionTask
|
|
6167
|
+
* @summary Plans the execution of a 'create union' server task.
|
|
6168
|
+
* @request POST:/scheduler/tasks#type=geoService_union
|
|
6153
6169
|
* @response `200` OK
|
|
6154
6170
|
*/
|
|
6155
6171
|
|
|
6156
6172
|
}, {
|
|
6157
|
-
key: "
|
|
6158
|
-
value: function
|
|
6159
|
-
return this.http.
|
|
6173
|
+
key: "startUnionTask",
|
|
6174
|
+
value: function startUnionTask(data) {
|
|
6175
|
+
return this.http.post("/scheduler/tasks", data, {
|
|
6176
|
+
type: 'geoService_union'
|
|
6177
|
+
}).text();
|
|
6160
6178
|
}
|
|
6161
6179
|
/**
|
|
6162
6180
|
* No description
|
|
6163
6181
|
*
|
|
6164
|
-
* @tags
|
|
6165
|
-
* @name
|
|
6166
|
-
* @operationId
|
|
6167
|
-
* @summary
|
|
6168
|
-
* @request POST:/scheduler/tasks
|
|
6182
|
+
* @tags RemoteTaskManager
|
|
6183
|
+
* @name StartOverlayTask
|
|
6184
|
+
* @operationId RemoteTaskManagerController_StartOverlayTask
|
|
6185
|
+
* @summary Plans the execution of a 'create overlay' server task.
|
|
6186
|
+
* @request POST:/scheduler/tasks#type=geoService_overlay
|
|
6169
6187
|
* @response `200` OK
|
|
6170
6188
|
*/
|
|
6171
6189
|
|
|
6172
6190
|
}, {
|
|
6173
|
-
key: "
|
|
6174
|
-
value: function
|
|
6175
|
-
return this.http.post("/scheduler/tasks
|
|
6191
|
+
key: "startOverlayTask",
|
|
6192
|
+
value: function startOverlayTask(data) {
|
|
6193
|
+
return this.http.post("/scheduler/tasks", data, {
|
|
6194
|
+
type: 'geoService_overlay'
|
|
6195
|
+
}).text();
|
|
6176
6196
|
}
|
|
6177
6197
|
/**
|
|
6178
6198
|
* No description
|
|
6179
6199
|
*
|
|
6180
|
-
* @tags
|
|
6200
|
+
* @tags RemoteTaskManager
|
|
6181
6201
|
* @name StartCopyTask
|
|
6182
|
-
* @operationId
|
|
6183
|
-
* @summary Plans the execution of a 'copy' server task.
|
|
6184
|
-
* @request POST:/scheduler/tasks#type=
|
|
6202
|
+
* @operationId RemoteTaskManagerController_StartCopyTask
|
|
6203
|
+
* @summary Plans the execution of a 'copy storages' server task.
|
|
6204
|
+
* @request POST:/scheduler/tasks#type=copyTask
|
|
6185
6205
|
* @response `200` OK
|
|
6186
6206
|
*/
|
|
6187
6207
|
|
|
@@ -6189,396 +6209,424 @@ let SchedulerService = /*#__PURE__*/function (_Service) {
|
|
|
6189
6209
|
key: "startCopyTask",
|
|
6190
6210
|
value: function startCopyTask(data) {
|
|
6191
6211
|
return this.http.post("/scheduler/tasks", data, {
|
|
6192
|
-
type: '
|
|
6193
|
-
}).
|
|
6212
|
+
type: 'copyTask'
|
|
6213
|
+
}).text();
|
|
6194
6214
|
}
|
|
6195
6215
|
/**
|
|
6196
6216
|
* No description
|
|
6197
6217
|
*
|
|
6198
|
-
* @tags
|
|
6199
|
-
* @name
|
|
6200
|
-
* @operationId
|
|
6201
|
-
* @summary Plans the execution of a '
|
|
6202
|
-
* @request POST:/scheduler/tasks#type=
|
|
6218
|
+
* @tags RemoteTaskManager
|
|
6219
|
+
* @name StartAvailableAreaTask
|
|
6220
|
+
* @operationId RemoteTaskManagerController_StartAvailableAreaTask
|
|
6221
|
+
* @summary Plans the execution of a 'create available area' server task.
|
|
6222
|
+
* @request POST:/scheduler/tasks#type=availabilityArea
|
|
6203
6223
|
* @response `200` OK
|
|
6204
6224
|
*/
|
|
6205
6225
|
|
|
6206
6226
|
}, {
|
|
6207
|
-
key: "
|
|
6208
|
-
value: function
|
|
6227
|
+
key: "startAvailableAreaTask",
|
|
6228
|
+
value: function startAvailableAreaTask(data) {
|
|
6209
6229
|
return this.http.post("/scheduler/tasks", data, {
|
|
6210
|
-
type: '
|
|
6211
|
-
}).
|
|
6230
|
+
type: 'availabilityArea'
|
|
6231
|
+
}).text();
|
|
6212
6232
|
}
|
|
6213
6233
|
/**
|
|
6214
6234
|
* No description
|
|
6215
6235
|
*
|
|
6216
|
-
* @tags
|
|
6217
|
-
* @name
|
|
6218
|
-
* @operationId
|
|
6219
|
-
* @summary Plans the execution of a '
|
|
6220
|
-
* @request POST:/scheduler/tasks#type=
|
|
6236
|
+
* @tags RemoteTaskManager
|
|
6237
|
+
* @name StartGeocodeTask
|
|
6238
|
+
* @operationId RemoteTaskManagerController_StartGeocodeTask
|
|
6239
|
+
* @summary Plans the execution of a 'geocode' server task.
|
|
6240
|
+
* @request POST:/scheduler/tasks#type=geocodeTask
|
|
6221
6241
|
* @response `200` OK
|
|
6222
6242
|
*/
|
|
6223
6243
|
|
|
6224
6244
|
}, {
|
|
6225
|
-
key: "
|
|
6226
|
-
value: function
|
|
6245
|
+
key: "startGeocodeTask",
|
|
6246
|
+
value: function startGeocodeTask(data) {
|
|
6227
6247
|
return this.http.post("/scheduler/tasks", data, {
|
|
6228
|
-
type: '
|
|
6229
|
-
}).
|
|
6248
|
+
type: 'geocodeTask'
|
|
6249
|
+
}).text();
|
|
6230
6250
|
}
|
|
6231
6251
|
/**
|
|
6232
6252
|
* No description
|
|
6233
6253
|
*
|
|
6234
|
-
* @tags
|
|
6235
|
-
* @name
|
|
6236
|
-
* @operationId
|
|
6237
|
-
* @summary
|
|
6238
|
-
* @request
|
|
6254
|
+
* @tags RemoteTaskManager
|
|
6255
|
+
* @name Get
|
|
6256
|
+
* @operationId RemoteTaskManagerController_Get
|
|
6257
|
+
* @summary Shows SubTask in Task.
|
|
6258
|
+
* @request GET:/scheduler/task/{id}/subtasks
|
|
6239
6259
|
* @response `200` OK
|
|
6240
6260
|
*/
|
|
6241
6261
|
|
|
6242
6262
|
}, {
|
|
6243
|
-
key: "
|
|
6244
|
-
value: function
|
|
6245
|
-
return this.http.
|
|
6246
|
-
type: 'print'
|
|
6247
|
-
}).json();
|
|
6263
|
+
key: "get",
|
|
6264
|
+
value: function get(id) {
|
|
6265
|
+
return this.http.get("/scheduler/task/" + id + "/subtasks").then(() => {});
|
|
6248
6266
|
}
|
|
6249
6267
|
/**
|
|
6250
6268
|
* No description
|
|
6251
6269
|
*
|
|
6252
|
-
* @tags
|
|
6253
|
-
* @name
|
|
6254
|
-
* @operationId
|
|
6255
|
-
* @summary
|
|
6256
|
-
* @request POST:/scheduler/
|
|
6270
|
+
* @tags RemoteTaskManager
|
|
6271
|
+
* @name Stop
|
|
6272
|
+
* @operationId RemoteTaskManagerController_Stop
|
|
6273
|
+
* @summary Stop the task.
|
|
6274
|
+
* @request POST:/scheduler/task/{id}/stop
|
|
6257
6275
|
* @response `200` OK
|
|
6258
6276
|
*/
|
|
6259
6277
|
|
|
6260
6278
|
}, {
|
|
6261
|
-
key: "
|
|
6262
|
-
value: function
|
|
6263
|
-
return this.http.post("/scheduler/
|
|
6264
|
-
type: 'tiling'
|
|
6265
|
-
}).json();
|
|
6279
|
+
key: "stop",
|
|
6280
|
+
value: function stop(id) {
|
|
6281
|
+
return this.http.post("/scheduler/task/" + id + "/stop", null).then(() => {});
|
|
6266
6282
|
}
|
|
6267
6283
|
/**
|
|
6268
6284
|
* No description
|
|
6269
6285
|
*
|
|
6270
|
-
* @tags
|
|
6271
|
-
* @name
|
|
6272
|
-
* @operationId
|
|
6273
|
-
* @summary
|
|
6274
|
-
* @request POST:/scheduler
|
|
6286
|
+
* @tags RemoteTaskManager
|
|
6287
|
+
* @name CreateTaskPrototype
|
|
6288
|
+
* @operationId RemoteTaskManagerController_CreateTaskPrototype
|
|
6289
|
+
* @summary Creates TaskPrototype.
|
|
6290
|
+
* @request POST:/scheduler
|
|
6275
6291
|
* @response `200` OK
|
|
6276
6292
|
*/
|
|
6277
6293
|
|
|
6278
6294
|
}, {
|
|
6279
|
-
key: "
|
|
6280
|
-
value: function
|
|
6281
|
-
return this.http.post("/scheduler
|
|
6282
|
-
type: 'rasterVrt'
|
|
6283
|
-
}).json();
|
|
6295
|
+
key: "createTaskPrototype",
|
|
6296
|
+
value: function createTaskPrototype(data) {
|
|
6297
|
+
return this.http.post("/scheduler", data).text();
|
|
6284
6298
|
}
|
|
6285
6299
|
/**
|
|
6286
6300
|
* No description
|
|
6287
6301
|
*
|
|
6288
|
-
* @tags
|
|
6289
|
-
* @name
|
|
6290
|
-
* @operationId
|
|
6291
|
-
* @summary
|
|
6292
|
-
* @request
|
|
6302
|
+
* @tags RemoteTaskManager
|
|
6303
|
+
* @name GetTaskPrototypes
|
|
6304
|
+
* @operationId RemoteTaskManagerController_GetTaskPrototypes
|
|
6305
|
+
* @summary Show TaskPrototypes for user.
|
|
6306
|
+
* @request GET:/scheduler
|
|
6293
6307
|
* @response `200` OK
|
|
6294
6308
|
*/
|
|
6295
6309
|
|
|
6296
6310
|
}, {
|
|
6297
|
-
key: "
|
|
6298
|
-
value: function
|
|
6299
|
-
return this.http.
|
|
6300
|
-
type: 'netcdf'
|
|
6301
|
-
}).json();
|
|
6311
|
+
key: "getTaskPrototypes",
|
|
6312
|
+
value: function getTaskPrototypes(query) {
|
|
6313
|
+
return this.http.get("/scheduler", query).then(() => {});
|
|
6302
6314
|
}
|
|
6303
6315
|
/**
|
|
6304
6316
|
* No description
|
|
6305
6317
|
*
|
|
6306
|
-
* @tags
|
|
6307
|
-
* @name
|
|
6308
|
-
* @operationId
|
|
6309
|
-
* @summary
|
|
6310
|
-
* @request
|
|
6318
|
+
* @tags RemoteTaskManager
|
|
6319
|
+
* @name UpdateTaskPrototype
|
|
6320
|
+
* @operationId RemoteTaskManagerController_UpdateTaskPrototype
|
|
6321
|
+
* @summary Updates task prototype.
|
|
6322
|
+
* @request PUT:/scheduler/{id}
|
|
6311
6323
|
* @response `200` OK
|
|
6312
6324
|
*/
|
|
6313
6325
|
|
|
6314
6326
|
}, {
|
|
6315
|
-
key: "
|
|
6316
|
-
value: function
|
|
6317
|
-
return this.http.
|
|
6318
|
-
type: 'route'
|
|
6319
|
-
}).json();
|
|
6327
|
+
key: "updateTaskPrototype",
|
|
6328
|
+
value: function updateTaskPrototype(id, data) {
|
|
6329
|
+
return this.http.put("/scheduler/" + id, data).then(() => {});
|
|
6320
6330
|
}
|
|
6321
6331
|
/**
|
|
6322
6332
|
* No description
|
|
6323
6333
|
*
|
|
6324
|
-
* @tags
|
|
6325
|
-
* @name
|
|
6326
|
-
* @operationId
|
|
6327
|
-
* @summary
|
|
6328
|
-
* @request
|
|
6334
|
+
* @tags RemoteTaskManager
|
|
6335
|
+
* @name Delete
|
|
6336
|
+
* @operationId RemoteTaskManagerController_Delete
|
|
6337
|
+
* @summary Delete task prototype.
|
|
6338
|
+
* @request DELETE:/scheduler/{id}
|
|
6329
6339
|
* @response `200` OK
|
|
6330
6340
|
*/
|
|
6331
6341
|
|
|
6332
6342
|
}, {
|
|
6333
|
-
key: "
|
|
6334
|
-
value: function
|
|
6335
|
-
return this.http.
|
|
6336
|
-
type: 'union'
|
|
6337
|
-
}).json();
|
|
6343
|
+
key: "delete",
|
|
6344
|
+
value: function _delete(id) {
|
|
6345
|
+
return this.http.delete("/scheduler/" + id, null).then(() => {});
|
|
6338
6346
|
}
|
|
6339
6347
|
/**
|
|
6340
6348
|
* No description
|
|
6341
6349
|
*
|
|
6342
|
-
* @tags
|
|
6343
|
-
* @name
|
|
6344
|
-
* @operationId
|
|
6345
|
-
* @summary
|
|
6346
|
-
* @request POST:/scheduler/
|
|
6350
|
+
* @tags RemoteTaskManager
|
|
6351
|
+
* @name SetEnable
|
|
6352
|
+
* @operationId RemoteTaskManagerController_SetEnable
|
|
6353
|
+
* @summary Enables task prototype.
|
|
6354
|
+
* @request POST:/scheduler/{id}/enable/{enable}
|
|
6347
6355
|
* @response `200` OK
|
|
6348
6356
|
*/
|
|
6349
6357
|
|
|
6350
6358
|
}, {
|
|
6351
|
-
key: "
|
|
6352
|
-
value: function
|
|
6353
|
-
return this.http.post("/scheduler/
|
|
6354
|
-
type: 'overlay'
|
|
6355
|
-
}).json();
|
|
6359
|
+
key: "setEnable",
|
|
6360
|
+
value: function setEnable(id, enable) {
|
|
6361
|
+
return this.http.post("/scheduler/" + id + "/enable/" + enable, null).then(() => {});
|
|
6356
6362
|
}
|
|
6357
6363
|
/**
|
|
6358
6364
|
* No description
|
|
6359
6365
|
*
|
|
6360
|
-
* @tags
|
|
6361
|
-
* @name
|
|
6362
|
-
* @operationId
|
|
6363
|
-
* @summary
|
|
6364
|
-
* @request
|
|
6366
|
+
* @tags RemoteTaskManager
|
|
6367
|
+
* @name GetTasksForPrototype
|
|
6368
|
+
* @operationId RemoteTaskManagerController_GetTasksForPrototype
|
|
6369
|
+
* @summary Shows Tasks that created for TaskPrototype.
|
|
6370
|
+
* @request GET:/scheduler/{id}/tasks
|
|
6365
6371
|
* @response `200` OK
|
|
6366
6372
|
*/
|
|
6367
6373
|
|
|
6368
6374
|
}, {
|
|
6369
|
-
key: "
|
|
6370
|
-
value: function
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
}
|
|
6375
|
+
key: "getTasksForPrototype",
|
|
6376
|
+
value: function getTasksForPrototype(_ref) {
|
|
6377
|
+
let {
|
|
6378
|
+
id
|
|
6379
|
+
} = _ref,
|
|
6380
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
6381
|
+
|
|
6382
|
+
return this.http.get("/scheduler/" + id + "/tasks", query).then(() => {});
|
|
6374
6383
|
}
|
|
6375
6384
|
/**
|
|
6376
6385
|
* No description
|
|
6377
6386
|
*
|
|
6378
|
-
* @tags
|
|
6379
|
-
* @name
|
|
6380
|
-
* @operationId
|
|
6381
|
-
* @summary
|
|
6382
|
-
* @request POST:/scheduler/
|
|
6387
|
+
* @tags RemoteTaskManager
|
|
6388
|
+
* @name StartTask
|
|
6389
|
+
* @operationId RemoteTaskManagerController_StartTask
|
|
6390
|
+
* @summary Starts new Task for TaskPrototype with task id definition.
|
|
6391
|
+
* @request POST:/scheduler/{id}/start/{taskId}
|
|
6383
6392
|
* @response `200` OK
|
|
6384
6393
|
*/
|
|
6385
6394
|
|
|
6386
6395
|
}, {
|
|
6387
|
-
key: "
|
|
6388
|
-
value: function
|
|
6389
|
-
return this.http.post("/scheduler/
|
|
6390
|
-
type: 'pipeline'
|
|
6391
|
-
}).json();
|
|
6396
|
+
key: "startTask",
|
|
6397
|
+
value: function startTask(id, taskId) {
|
|
6398
|
+
return this.http.post("/scheduler/" + id + "/start/" + taskId, null).then(() => {});
|
|
6392
6399
|
}
|
|
6393
6400
|
/**
|
|
6394
6401
|
* No description
|
|
6395
6402
|
*
|
|
6396
|
-
* @tags
|
|
6397
|
-
* @name
|
|
6398
|
-
* @operationId
|
|
6399
|
-
* @summary
|
|
6400
|
-
* @request POST:/scheduler/
|
|
6403
|
+
* @tags RemoteTaskManager
|
|
6404
|
+
* @name StartTask1
|
|
6405
|
+
* @operationId RemoteTaskManagerController_StartTask_1
|
|
6406
|
+
* @summary Starts new Task for TaskPrototype .
|
|
6407
|
+
* @request POST:/scheduler/{id}/start
|
|
6401
6408
|
* @response `200` OK
|
|
6402
6409
|
*/
|
|
6403
6410
|
|
|
6404
6411
|
}, {
|
|
6405
|
-
key: "
|
|
6406
|
-
value: function
|
|
6407
|
-
return this.http.post("/scheduler/
|
|
6408
|
-
type: 'editAttributes'
|
|
6409
|
-
}).json();
|
|
6412
|
+
key: "startTask1",
|
|
6413
|
+
value: function startTask1(id) {
|
|
6414
|
+
return this.http.post("/scheduler/" + id + "/start", null).then(() => {});
|
|
6410
6415
|
}
|
|
6411
6416
|
/**
|
|
6412
6417
|
* No description
|
|
6413
6418
|
*
|
|
6414
|
-
* @tags
|
|
6415
|
-
* @name
|
|
6416
|
-
* @operationId
|
|
6417
|
-
* @summary
|
|
6418
|
-
* @request
|
|
6419
|
+
* @tags RemoteTaskManager
|
|
6420
|
+
* @name Get1
|
|
6421
|
+
* @operationId RemoteTaskManagerController_Get_1
|
|
6422
|
+
* @summary Shows active workers.
|
|
6423
|
+
* @request GET:/scheduler/worker
|
|
6419
6424
|
* @response `200` OK
|
|
6420
6425
|
*/
|
|
6421
6426
|
|
|
6422
6427
|
}, {
|
|
6423
|
-
key: "
|
|
6424
|
-
value: function
|
|
6425
|
-
return this.http.
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
+
key: "get1",
|
|
6429
|
+
value: function get1() {
|
|
6430
|
+
return this.http.get("/scheduler/worker").json();
|
|
6431
|
+
}
|
|
6432
|
+
/**
|
|
6433
|
+
* No description
|
|
6434
|
+
*
|
|
6435
|
+
* @tags RemoteTaskManager
|
|
6436
|
+
* @name Post
|
|
6437
|
+
* @operationId RemoteTaskManagerController_Post
|
|
6438
|
+
* @summary Run method by HttpPost.
|
|
6439
|
+
* @request POST:/scheduler/worker
|
|
6440
|
+
* @response `200` OK
|
|
6441
|
+
*/
|
|
6442
|
+
|
|
6443
|
+
}, {
|
|
6444
|
+
key: "post",
|
|
6445
|
+
value: function post(data) {
|
|
6446
|
+
return this.http.post("/scheduler/worker", data).json();
|
|
6428
6447
|
}
|
|
6429
6448
|
}]);
|
|
6430
6449
|
|
|
6431
|
-
return
|
|
6450
|
+
return RemoteTaskManagerService;
|
|
6432
6451
|
}(Service);
|
|
6433
6452
|
|
|
6434
|
-
let
|
|
6435
|
-
_inherits(
|
|
6453
|
+
let RemoteTaskManager = /*#__PURE__*/function (_RemoteTaskManagerSer) {
|
|
6454
|
+
_inherits(RemoteTaskManager, _RemoteTaskManagerSer);
|
|
6436
6455
|
|
|
6437
|
-
var _super = /*#__PURE__*/_createSuper(
|
|
6456
|
+
var _super = /*#__PURE__*/_createSuper(RemoteTaskManager);
|
|
6438
6457
|
|
|
6439
|
-
function
|
|
6440
|
-
_classCallCheck(this,
|
|
6458
|
+
function RemoteTaskManager() {
|
|
6459
|
+
_classCallCheck(this, RemoteTaskManager);
|
|
6441
6460
|
|
|
6442
6461
|
return _super.apply(this, arguments);
|
|
6443
6462
|
}
|
|
6444
6463
|
|
|
6445
|
-
_createClass(
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
const {
|
|
6481
|
-
taskId
|
|
6482
|
-
} = await this.startPrintTask(parameters);
|
|
6483
|
-
return this.processTaskId(taskId);
|
|
6484
|
-
}
|
|
6485
|
-
}, {
|
|
6486
|
-
key: "runTilingTask",
|
|
6487
|
-
value: async function runTilingTask(parameters) {
|
|
6488
|
-
const {
|
|
6489
|
-
taskId
|
|
6490
|
-
} = await this.startTilingTask(parameters);
|
|
6491
|
-
return this.processTaskId(taskId);
|
|
6492
|
-
}
|
|
6493
|
-
}, {
|
|
6494
|
-
key: "runRouteTask",
|
|
6495
|
-
value: async function runRouteTask(parameters) {
|
|
6496
|
-
const {
|
|
6497
|
-
taskId
|
|
6498
|
-
} = await this.startRouteTask(parameters);
|
|
6499
|
-
return this.processTaskId(taskId);
|
|
6464
|
+
return _createClass(RemoteTaskManager);
|
|
6465
|
+
}(RemoteTaskManagerService);
|
|
6466
|
+
|
|
6467
|
+
/**
|
|
6468
|
+
* @title Spatial Processing Core API
|
|
6469
|
+
* @version 1.5.1.0
|
|
6470
|
+
* @baseUrl /sp
|
|
6471
|
+
*/
|
|
6472
|
+
|
|
6473
|
+
let ResourceCatalogService = /*#__PURE__*/function (_Service) {
|
|
6474
|
+
_inherits(ResourceCatalogService, _Service);
|
|
6475
|
+
|
|
6476
|
+
var _super = /*#__PURE__*/_createSuper(ResourceCatalogService);
|
|
6477
|
+
|
|
6478
|
+
function ResourceCatalogService() {
|
|
6479
|
+
_classCallCheck(this, ResourceCatalogService);
|
|
6480
|
+
|
|
6481
|
+
return _super.apply(this, arguments);
|
|
6482
|
+
}
|
|
6483
|
+
|
|
6484
|
+
_createClass(ResourceCatalogService, [{
|
|
6485
|
+
key: "checkLimits",
|
|
6486
|
+
value:
|
|
6487
|
+
/**
|
|
6488
|
+
* @description This method requires superuser permission.
|
|
6489
|
+
*
|
|
6490
|
+
* @tags ResourceCatalog
|
|
6491
|
+
* @name CheckLimits
|
|
6492
|
+
* @operationId ResourceCatalogController_CheckLimits
|
|
6493
|
+
* @summary Get limits of workspace.
|
|
6494
|
+
* @request GET:/resources/checkLimits
|
|
6495
|
+
* @response `200` OK
|
|
6496
|
+
*/
|
|
6497
|
+
function checkLimits(query) {
|
|
6498
|
+
return this.http.get("/resources/checkLimits", query).json();
|
|
6500
6499
|
}
|
|
6500
|
+
/**
|
|
6501
|
+
* No description
|
|
6502
|
+
*
|
|
6503
|
+
* @tags ResourceCatalog
|
|
6504
|
+
* @name CopyResources
|
|
6505
|
+
* @operationId ResourceCatalogController_CopyResources
|
|
6506
|
+
* @summary Copy a set of resources.
|
|
6507
|
+
* @request POST:/resources/copy
|
|
6508
|
+
* @response `200` OK
|
|
6509
|
+
*/
|
|
6510
|
+
|
|
6501
6511
|
}, {
|
|
6502
|
-
key: "
|
|
6503
|
-
value:
|
|
6504
|
-
|
|
6505
|
-
taskId
|
|
6506
|
-
} = await this.startOverlayTask(parameters);
|
|
6507
|
-
return this.processTaskId(taskId);
|
|
6512
|
+
key: "copyResources",
|
|
6513
|
+
value: function copyResources(data) {
|
|
6514
|
+
return this.http.post("/resources/copy", data).json();
|
|
6508
6515
|
}
|
|
6509
|
-
}
|
|
6510
|
-
|
|
6511
|
-
|
|
6516
|
+
}]);
|
|
6517
|
+
|
|
6518
|
+
return ResourceCatalogService;
|
|
6519
|
+
}(Service);
|
|
6520
|
+
|
|
6521
|
+
let ResourceCatalog = /*#__PURE__*/function (_ResourceCatalogServi) {
|
|
6522
|
+
_inherits(ResourceCatalog, _ResourceCatalogServi);
|
|
6523
|
+
|
|
6524
|
+
var _super = /*#__PURE__*/_createSuper(ResourceCatalog);
|
|
6525
|
+
|
|
6526
|
+
function ResourceCatalog() {
|
|
6527
|
+
_classCallCheck(this, ResourceCatalog);
|
|
6528
|
+
|
|
6529
|
+
return _super.apply(this, arguments);
|
|
6530
|
+
}
|
|
6531
|
+
|
|
6532
|
+
return _createClass(ResourceCatalog);
|
|
6533
|
+
}(ResourceCatalogService);
|
|
6534
|
+
|
|
6535
|
+
(function (DependencyType) {
|
|
6536
|
+
DependencyType["Layer"] = "Layer";
|
|
6537
|
+
DependencyType["Table"] = "Table";
|
|
6538
|
+
DependencyType["Project"] = "Project";
|
|
6539
|
+
})(exports.DependencyType || (exports.DependencyType = {}));
|
|
6540
|
+
|
|
6541
|
+
let Resources = /*#__PURE__*/function () {
|
|
6542
|
+
function Resources(projects, layers, tables) {
|
|
6543
|
+
_classCallCheck(this, Resources);
|
|
6544
|
+
|
|
6545
|
+
this.projects = projects;
|
|
6546
|
+
this.layers = layers;
|
|
6547
|
+
this.tables = tables;
|
|
6548
|
+
}
|
|
6549
|
+
|
|
6550
|
+
_createClass(Resources, [{
|
|
6551
|
+
key: "getProjectInfosWithDeps",
|
|
6552
|
+
value: async function getProjectInfosWithDeps(projects) {
|
|
6553
|
+
const projectInfos = await this.projects.getProjectInfos(projects);
|
|
6554
|
+
const projectDeps = await this.projects.getProjectsDeps(projects);
|
|
6512
6555
|
const {
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6556
|
+
layers,
|
|
6557
|
+
tables
|
|
6558
|
+
} = await this.getDependencies(projectDeps, true, true);
|
|
6559
|
+
return {
|
|
6560
|
+
projects: projectInfos,
|
|
6561
|
+
deps: {
|
|
6562
|
+
layers,
|
|
6563
|
+
tables
|
|
6564
|
+
}
|
|
6565
|
+
};
|
|
6516
6566
|
}
|
|
6517
6567
|
}, {
|
|
6518
|
-
key: "
|
|
6519
|
-
value: async function
|
|
6568
|
+
key: "getLayerInfosWithDeps",
|
|
6569
|
+
value: async function getLayerInfosWithDeps(layers) {
|
|
6570
|
+
const layerInfos = await this.layers.getLayerInfos(layers);
|
|
6571
|
+
const layersDeps = await this.layers.getLayersDeps(layers);
|
|
6520
6572
|
const {
|
|
6521
|
-
|
|
6522
|
-
} = await this.
|
|
6523
|
-
return
|
|
6573
|
+
tables
|
|
6574
|
+
} = await this.getDependencies(layersDeps, false, true);
|
|
6575
|
+
return {
|
|
6576
|
+
layers: layerInfos,
|
|
6577
|
+
deps: {
|
|
6578
|
+
tables
|
|
6579
|
+
}
|
|
6580
|
+
};
|
|
6524
6581
|
}
|
|
6525
6582
|
}, {
|
|
6526
|
-
key: "
|
|
6527
|
-
value: async function
|
|
6583
|
+
key: "getDependencies",
|
|
6584
|
+
value: async function getDependencies(resourceDeps, pickLayers, pickTables) {
|
|
6528
6585
|
const {
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
}, {
|
|
6534
|
-
key: "waitTaskCompleted",
|
|
6535
|
-
value: async function waitTaskCompleted(id) {
|
|
6536
|
-
return new Promise(async (resolve, reject) => {
|
|
6537
|
-
const taskProgress = await this.getTaskProgress(id);
|
|
6538
|
-
this.resolveTaskStatus(taskProgress, resolve, reject);
|
|
6586
|
+
tables,
|
|
6587
|
+
layers
|
|
6588
|
+
} = resourceDeps.reduce((acc, layerDep) => {
|
|
6589
|
+
const deps = layerDep.dependencies || [];
|
|
6539
6590
|
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
const taskFinished = data.taskId === id && data.status && ['Completed', 'Failed', 'Canceled'].includes(data.status);
|
|
6545
|
-
|
|
6546
|
-
if (taskFinished) {
|
|
6547
|
-
const taskProgress = await this.getTaskProgress(id);
|
|
6548
|
-
this.notification && this.notification.off("server_task"
|
|
6549
|
-
/* ServerTask */
|
|
6550
|
-
, taskResultCallback);
|
|
6551
|
-
this.resolveTaskStatus(taskProgress, resolve, reject);
|
|
6552
|
-
}
|
|
6553
|
-
};
|
|
6591
|
+
if (pickLayers) {
|
|
6592
|
+
const layerNames = this.getDependentNames(deps, exports.DependencyType.Layer);
|
|
6593
|
+
acc.layers.push(...layerNames);
|
|
6594
|
+
}
|
|
6554
6595
|
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6596
|
+
if (pickTables) {
|
|
6597
|
+
const tableNames = this.getDependentNames(deps, exports.DependencyType.Table);
|
|
6598
|
+
acc.tables.push(...tableNames);
|
|
6599
|
+
}
|
|
6600
|
+
|
|
6601
|
+
return acc;
|
|
6602
|
+
}, {
|
|
6603
|
+
tables: [],
|
|
6604
|
+
layers: []
|
|
6558
6605
|
});
|
|
6606
|
+
return {
|
|
6607
|
+
tables: await this.tables.getTableInfos(tables.filter(unique)),
|
|
6608
|
+
layers: await this.layers.getLayerInfos(layers.filter(unique))
|
|
6609
|
+
};
|
|
6559
6610
|
}
|
|
6560
6611
|
}, {
|
|
6561
|
-
key: "
|
|
6562
|
-
value: function
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
} else {
|
|
6575
|
-
throw new Error("Task was started with no testId");
|
|
6576
|
-
}
|
|
6612
|
+
key: "getDependentNames",
|
|
6613
|
+
value: function getDependentNames(deps, depType) {
|
|
6614
|
+
return deps.filter(_ref => {
|
|
6615
|
+
let {
|
|
6616
|
+
type
|
|
6617
|
+
} = _ref;
|
|
6618
|
+
return type === depType;
|
|
6619
|
+
}).map(_ref2 => {
|
|
6620
|
+
let {
|
|
6621
|
+
name
|
|
6622
|
+
} = _ref2;
|
|
6623
|
+
return name;
|
|
6624
|
+
}).filter(isString);
|
|
6577
6625
|
}
|
|
6578
6626
|
}]);
|
|
6579
6627
|
|
|
6580
|
-
return
|
|
6581
|
-
}(
|
|
6628
|
+
return Resources;
|
|
6629
|
+
}();
|
|
6582
6630
|
|
|
6583
6631
|
/**
|
|
6584
6632
|
* @title Spatial Processing Core API
|
|
@@ -7018,7 +7066,7 @@ let Styles = /*#__PURE__*/function (_StyleService) {
|
|
|
7018
7066
|
return _createClass(Styles);
|
|
7019
7067
|
}(StyleService);
|
|
7020
7068
|
|
|
7021
|
-
const _excluded$
|
|
7069
|
+
const _excluded$8 = ["name"],
|
|
7022
7070
|
_excluded2$4 = ["name"],
|
|
7023
7071
|
_excluded3$3 = ["name"],
|
|
7024
7072
|
_excluded4$2 = ["name"];
|
|
@@ -7200,7 +7248,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
7200
7248
|
let {
|
|
7201
7249
|
name
|
|
7202
7250
|
} = _ref,
|
|
7203
|
-
query = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7251
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
7204
7252
|
|
|
7205
7253
|
return this.http.get("/tables/" + name + "/data", query).json();
|
|
7206
7254
|
}
|
|
@@ -7600,7 +7648,7 @@ let Tools = /*#__PURE__*/function (_ToolsService) {
|
|
|
7600
7648
|
return _createClass(Tools);
|
|
7601
7649
|
}(ToolsService);
|
|
7602
7650
|
|
|
7603
|
-
const _excluded$
|
|
7651
|
+
const _excluded$9 = ["name", "z", "x", "y"];
|
|
7604
7652
|
/**
|
|
7605
7653
|
* @title Spatial Processing Core API
|
|
7606
7654
|
* @version 1.5.1.0
|
|
@@ -7638,7 +7686,7 @@ let VectorTileService = /*#__PURE__*/function (_Service) {
|
|
|
7638
7686
|
x,
|
|
7639
7687
|
y
|
|
7640
7688
|
} = _ref,
|
|
7641
|
-
query = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7689
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
7642
7690
|
|
|
7643
7691
|
return this.http.get("/vt/" + name + "/" + z + "/" + x + "/" + y + ".pbf", query).then(() => {});
|
|
7644
7692
|
}
|
|
@@ -7732,7 +7780,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7732
7780
|
(_request$headers = request.headers) == null ? void 0 : _request$headers.set("Authorization", "Bearer " + (token || ""));
|
|
7733
7781
|
}
|
|
7734
7782
|
}, ...((_hooks$beforeRequest = hooks == null ? void 0 : hooks.beforeRequest) != null ? _hooks$beforeRequest : [])],
|
|
7735
|
-
beforeRetry: [async
|
|
7783
|
+
beforeRetry: [async _ref2 => {
|
|
7736
7784
|
let {
|
|
7737
7785
|
request,
|
|
7738
7786
|
error,
|
|
@@ -7786,7 +7834,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7786
7834
|
_this.bulk = new BulkOperations(_this.http);
|
|
7787
7835
|
_this.security = new Security(_this.http, _this.account);
|
|
7788
7836
|
_this.notification = new Notification(_this.http, _assertThisInitialized(_this), wsKeepAlive);
|
|
7789
|
-
_this.scheduler = new Scheduler(_this.http);
|
|
7790
7837
|
_this.file = new FileUpload(_this.http);
|
|
7791
7838
|
_this.filters = new Filters(_this.http);
|
|
7792
7839
|
_this.import = new Import(_this.http);
|
|
@@ -7810,6 +7857,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7810
7857
|
_this.catalog = new CatalogService(_this.http);
|
|
7811
7858
|
_this.queryToken = new QueryTokenAccessService(_this.http);
|
|
7812
7859
|
_this.dataSource = new DataSourceService(_this.http);
|
|
7860
|
+
_this.remoteTaskManager = new RemoteTaskManager(_this.http);
|
|
7813
7861
|
_this.names = new Names({
|
|
7814
7862
|
account: _this.account
|
|
7815
7863
|
});
|
|
@@ -7828,7 +7876,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7828
7876
|
authParams,
|
|
7829
7877
|
authQueryParams,
|
|
7830
7878
|
connectWs,
|
|
7831
|
-
initScheduler,
|
|
7832
7879
|
fetchSettings,
|
|
7833
7880
|
fetchUser,
|
|
7834
7881
|
useJwt
|
|
@@ -7845,10 +7892,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7845
7892
|
await this.connectWs();
|
|
7846
7893
|
}
|
|
7847
7894
|
|
|
7848
|
-
if (initScheduler) {
|
|
7849
|
-
await this.initScheduler();
|
|
7850
|
-
}
|
|
7851
|
-
|
|
7852
7895
|
if (fetchSettings) {
|
|
7853
7896
|
await this.clientSettings.fetchClientSettings({
|
|
7854
7897
|
urlPath: getFetchingUrlPath(this.urlPath)
|
|
@@ -7910,11 +7953,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7910
7953
|
await this.security.reset();
|
|
7911
7954
|
this.emit(exports.ApiEvent.Unauthorized, null);
|
|
7912
7955
|
}
|
|
7913
|
-
}, {
|
|
7914
|
-
key: "initScheduler",
|
|
7915
|
-
value: function initScheduler() {
|
|
7916
|
-
return this.scheduler.init(this.notification);
|
|
7917
|
-
}
|
|
7918
7956
|
}, {
|
|
7919
7957
|
key: "defineUrlPath",
|
|
7920
7958
|
value: function defineUrlPath() {
|
|
@@ -7937,355 +7975,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7937
7975
|
return Api;
|
|
7938
7976
|
}(eventEmitter.EventEmitter);
|
|
7939
7977
|
|
|
7940
|
-
function generateRandom(min, max) {
|
|
7941
|
-
if (min === void 0) {
|
|
7942
|
-
min = 0;
|
|
7943
|
-
}
|
|
7944
|
-
|
|
7945
|
-
if (max === void 0) {
|
|
7946
|
-
max = 100;
|
|
7947
|
-
}
|
|
7948
|
-
|
|
7949
|
-
let difference = max - min;
|
|
7950
|
-
let rand = Math.random();
|
|
7951
|
-
rand = Math.floor(rand * difference);
|
|
7952
|
-
rand = rand + min;
|
|
7953
|
-
return rand;
|
|
7954
|
-
}
|
|
7955
|
-
|
|
7956
|
-
let EvergisTileLayer = /*#__PURE__*/function (_TileLayer) {
|
|
7957
|
-
_inherits(EvergisTileLayer, _TileLayer);
|
|
7958
|
-
|
|
7959
|
-
var _super = /*#__PURE__*/_createSuper(EvergisTileLayer);
|
|
7960
|
-
|
|
7961
|
-
function EvergisTileLayer(configuration, api) {
|
|
7962
|
-
var _this;
|
|
7963
|
-
|
|
7964
|
-
_classCallCheck(this, EvergisTileLayer);
|
|
7965
|
-
|
|
7966
|
-
_this = _super.call(this, '', {
|
|
7967
|
-
crs: configuration.crs,
|
|
7968
|
-
opacity: configuration.opacity
|
|
7969
|
-
});
|
|
7970
|
-
_this.api = api;
|
|
7971
|
-
_this.name = configuration.name;
|
|
7972
|
-
_this.sourceUrl = configuration.sourceUrl;
|
|
7973
|
-
_this.subDomains = configuration.subDomains;
|
|
7974
|
-
return _this;
|
|
7975
|
-
}
|
|
7976
|
-
|
|
7977
|
-
_createClass(EvergisTileLayer, [{
|
|
7978
|
-
key: "getTileUrl",
|
|
7979
|
-
value: function getTileUrl(x, y, level) {
|
|
7980
|
-
var _this$subDomains;
|
|
7981
|
-
|
|
7982
|
-
const name = this.name;
|
|
7983
|
-
const subDomainIndex = this.subDomains ? generateRandom(0, ((_this$subDomains = this.subDomains) == null ? void 0 : _this$subDomains.length) - 1) : undefined;
|
|
7984
|
-
return this.sourceUrl ? (this.subDomains && subDomainIndex !== undefined ? this.sourceUrl.replace("{0}", this.subDomains[subDomainIndex]) : this.sourceUrl).replace("{1}", "" + level).replace("{2}", "" + x).replace("{3}", "" + y) : this.api.layers.getTilesLayerImage({
|
|
7985
|
-
x,
|
|
7986
|
-
y,
|
|
7987
|
-
z: level,
|
|
7988
|
-
name
|
|
7989
|
-
});
|
|
7990
|
-
}
|
|
7991
|
-
}]);
|
|
7992
|
-
|
|
7993
|
-
return EvergisTileLayer;
|
|
7994
|
-
}(TileLayer.TileLayer);
|
|
7995
|
-
|
|
7996
|
-
const _excluded$9 = ["name", "style", "condition", "dataFilterId", "crs"];
|
|
7997
|
-
let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
|
|
7998
|
-
_inherits(EvergisDynamicLayer, _DynamicLayer);
|
|
7999
|
-
|
|
8000
|
-
var _super = /*#__PURE__*/_createSuper(EvergisDynamicLayer);
|
|
8001
|
-
|
|
8002
|
-
function EvergisDynamicLayer(_ref, api) {
|
|
8003
|
-
var _this;
|
|
8004
|
-
|
|
8005
|
-
let {
|
|
8006
|
-
name,
|
|
8007
|
-
style,
|
|
8008
|
-
condition,
|
|
8009
|
-
dataFilterId,
|
|
8010
|
-
crs = Crs.webMercator
|
|
8011
|
-
} = _ref,
|
|
8012
|
-
layerProps = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
8013
|
-
|
|
8014
|
-
_classCallCheck(this, EvergisDynamicLayer);
|
|
8015
|
-
|
|
8016
|
-
_this = _super.call(this, layerProps);
|
|
8017
|
-
_this.api = api;
|
|
8018
|
-
_this.name = name;
|
|
8019
|
-
_this.styleId = style;
|
|
8020
|
-
_this.conditionQuery = condition;
|
|
8021
|
-
_this.filterId = dataFilterId;
|
|
8022
|
-
_this.crs = crs;
|
|
8023
|
-
|
|
8024
|
-
_this.subscribeRedraw();
|
|
8025
|
-
|
|
8026
|
-
return _this;
|
|
8027
|
-
} // @ts-ignore TODO
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
_createClass(EvergisDynamicLayer, [{
|
|
8031
|
-
key: "style",
|
|
8032
|
-
get: // @ts-ignore TODO
|
|
8033
|
-
function get() {
|
|
8034
|
-
return this.styleId;
|
|
8035
|
-
} // @ts-ignore TODO
|
|
8036
|
-
,
|
|
8037
|
-
set: function set(styleId) {
|
|
8038
|
-
this.styleId = styleId;
|
|
8039
|
-
this.forceUpdate();
|
|
8040
|
-
}
|
|
8041
|
-
}, {
|
|
8042
|
-
key: "condition",
|
|
8043
|
-
get: // @ts-ignore TODO
|
|
8044
|
-
function get() {
|
|
8045
|
-
return this.conditionQuery;
|
|
8046
|
-
} // @ts-ignore TODO
|
|
8047
|
-
,
|
|
8048
|
-
set: function set(condition) {
|
|
8049
|
-
this.conditionQuery = condition;
|
|
8050
|
-
this.forceUpdate();
|
|
8051
|
-
}
|
|
8052
|
-
}, {
|
|
8053
|
-
key: "dataFilterId",
|
|
8054
|
-
get: // @ts-ignore TODO
|
|
8055
|
-
function get() {
|
|
8056
|
-
return this.filterId;
|
|
8057
|
-
},
|
|
8058
|
-
set: function set(filterId) {
|
|
8059
|
-
this.filterId = filterId;
|
|
8060
|
-
this.forceUpdate();
|
|
8061
|
-
}
|
|
8062
|
-
}, {
|
|
8063
|
-
key: "getUrl",
|
|
8064
|
-
value: function getUrl(bbox, painter) {
|
|
8065
|
-
let imgWidth = painter.width;
|
|
8066
|
-
let imgHeight = painter.height;
|
|
8067
|
-
return this.api.layers.getLayerImage({
|
|
8068
|
-
name: this.name,
|
|
8069
|
-
extent: bbox.coordinates,
|
|
8070
|
-
size: [imgWidth, imgHeight],
|
|
8071
|
-
extentSr: bbox.crs.wkid,
|
|
8072
|
-
styleId: this.styleId,
|
|
8073
|
-
condition: this.conditionQuery,
|
|
8074
|
-
dataFilterId: this.filterId
|
|
8075
|
-
});
|
|
8076
|
-
}
|
|
8077
|
-
}, {
|
|
8078
|
-
key: "subscribeRedraw",
|
|
8079
|
-
value: function subscribeRedraw() {
|
|
8080
|
-
this.api.notification.on("service_update"
|
|
8081
|
-
/* ServiceUpdate */
|
|
8082
|
-
, e => {
|
|
8083
|
-
if ((e == null ? void 0 : e.data.layerName) === this.name) {
|
|
8084
|
-
this.forceUpdate();
|
|
8085
|
-
this.redraw();
|
|
8086
|
-
}
|
|
8087
|
-
});
|
|
8088
|
-
}
|
|
8089
|
-
}]);
|
|
8090
|
-
|
|
8091
|
-
return EvergisDynamicLayer;
|
|
8092
|
-
}(DynamicLayer.DynamicLayer);
|
|
8093
|
-
|
|
8094
|
-
const LayerServicesMap = {
|
|
8095
|
-
RemoteTileService: EvergisTileLayer,
|
|
8096
|
-
LocalTileService: EvergisTileLayer,
|
|
8097
|
-
PostgresLayerService: EvergisDynamicLayer,
|
|
8098
|
-
StyledFeatureLayer: EvergisDynamicLayer,
|
|
8099
|
-
CompositeService: null
|
|
8100
|
-
};
|
|
8101
|
-
|
|
8102
|
-
const isLayerType = type => Boolean(type && Object.keys(LayerServicesMap).includes(type));
|
|
8103
|
-
|
|
8104
|
-
const withServicesPrefix = layerInfo => _extends({}, layerInfo, {
|
|
8105
|
-
name: "services/" + layerInfo.name
|
|
8106
|
-
});
|
|
8107
|
-
|
|
8108
|
-
let LayersManager = /*#__PURE__*/function () {
|
|
8109
|
-
function LayersManager(layers, http) {
|
|
8110
|
-
_classCallCheck(this, LayersManager);
|
|
8111
|
-
|
|
8112
|
-
this.layers = layers;
|
|
8113
|
-
this.http = http;
|
|
8114
|
-
}
|
|
8115
|
-
|
|
8116
|
-
_createClass(LayersManager, [{
|
|
8117
|
-
key: "getLayerService",
|
|
8118
|
-
value: async function getLayerService(name) {
|
|
8119
|
-
let layerInfo = await this.getLayerInfo(name);
|
|
8120
|
-
const type = layerInfo.type;
|
|
8121
|
-
|
|
8122
|
-
if (!isLayerType(type)) {
|
|
8123
|
-
return;
|
|
8124
|
-
}
|
|
8125
|
-
|
|
8126
|
-
const ServiceCtor = LayerServicesMap[type];
|
|
8127
|
-
|
|
8128
|
-
if (ServiceCtor) {
|
|
8129
|
-
// @ts-ignore
|
|
8130
|
-
return new ServiceCtor(withServicesPrefix(layerInfo), this.http);
|
|
8131
|
-
} else {
|
|
8132
|
-
throw new Error("Constructor for service type: \"" + layerInfo.type + "\" not implemented");
|
|
8133
|
-
}
|
|
8134
|
-
}
|
|
8135
|
-
}, {
|
|
8136
|
-
key: "getLayerInfo",
|
|
8137
|
-
value: async function getLayerInfo(name) {
|
|
8138
|
-
try {
|
|
8139
|
-
return await this.layers.getLayerInfo(name);
|
|
8140
|
-
} catch (_unused) {
|
|
8141
|
-
throw new Error("Service with name: \"" + name + "\" not exists");
|
|
8142
|
-
}
|
|
8143
|
-
}
|
|
8144
|
-
}]);
|
|
8145
|
-
|
|
8146
|
-
return LayersManager;
|
|
8147
|
-
}();
|
|
8148
|
-
|
|
8149
|
-
var LayersZIndex;
|
|
8150
|
-
|
|
8151
|
-
(function (LayersZIndex) {
|
|
8152
|
-
LayersZIndex[LayersZIndex["BaseMaps"] = 0] = "BaseMaps";
|
|
8153
|
-
LayersZIndex[LayersZIndex["Layers"] = 1] = "Layers";
|
|
8154
|
-
})(LayersZIndex || (LayersZIndex = {}));
|
|
8155
|
-
|
|
8156
|
-
let SpatialProcessor = /*#__PURE__*/function (_Api) {
|
|
8157
|
-
_inherits(SpatialProcessor, _Api);
|
|
8158
|
-
|
|
8159
|
-
var _super = /*#__PURE__*/_createSuper(SpatialProcessor);
|
|
8160
|
-
|
|
8161
|
-
function SpatialProcessor(mapProps, apiParams, authParams) {
|
|
8162
|
-
var _this;
|
|
8163
|
-
|
|
8164
|
-
_classCallCheck(this, SpatialProcessor);
|
|
8165
|
-
|
|
8166
|
-
_this = _super.call(this, apiParams);
|
|
8167
|
-
_this.map = new _Map.Map();
|
|
8168
|
-
_this.painter = new DomPainter.DomPainter(_this.map);
|
|
8169
|
-
_this.mapProps = mapProps;
|
|
8170
|
-
_this.auth = authParams;
|
|
8171
|
-
_this.layersManager = new LayersManager(_this.layers, _this.http);
|
|
8172
|
-
return _this;
|
|
8173
|
-
}
|
|
8174
|
-
|
|
8175
|
-
_createClass(SpatialProcessor, [{
|
|
8176
|
-
key: "init",
|
|
8177
|
-
value: async function init() {
|
|
8178
|
-
await _get(_getPrototypeOf(SpatialProcessor.prototype), "init", this).call(this, {
|
|
8179
|
-
authParams: this.auth,
|
|
8180
|
-
connectWs: true,
|
|
8181
|
-
fetchSettings: true,
|
|
8182
|
-
initScheduler: true
|
|
8183
|
-
});
|
|
8184
|
-
const {
|
|
8185
|
-
baseService,
|
|
8186
|
-
services,
|
|
8187
|
-
projectName
|
|
8188
|
-
} = this.mapProps;
|
|
8189
|
-
|
|
8190
|
-
if (baseService) {
|
|
8191
|
-
await this.setBaseMap(baseService);
|
|
8192
|
-
}
|
|
8193
|
-
|
|
8194
|
-
if (services) {
|
|
8195
|
-
await Promise.all(services.map(service => this.addLayer(service)));
|
|
8196
|
-
}
|
|
8197
|
-
|
|
8198
|
-
if (projectName) {
|
|
8199
|
-
await this.loadProject(projectName);
|
|
8200
|
-
}
|
|
8201
|
-
|
|
8202
|
-
this.setMapProps();
|
|
8203
|
-
}
|
|
8204
|
-
}, {
|
|
8205
|
-
key: "reset",
|
|
8206
|
-
value: async function reset() {
|
|
8207
|
-
await this.account.logout();
|
|
8208
|
-
this.painter.wrapper = null;
|
|
8209
|
-
}
|
|
8210
|
-
}, {
|
|
8211
|
-
key: "addLayer",
|
|
8212
|
-
value: async function addLayer(name) {
|
|
8213
|
-
await this.insertLayer(name, LayersZIndex.Layers);
|
|
8214
|
-
}
|
|
8215
|
-
}, {
|
|
8216
|
-
key: "setBaseMap",
|
|
8217
|
-
value: async function setBaseMap(name) {
|
|
8218
|
-
await this.insertLayer(name, LayersZIndex.BaseMaps);
|
|
8219
|
-
}
|
|
8220
|
-
}, {
|
|
8221
|
-
key: "loadProject",
|
|
8222
|
-
value: async function loadProject(name) {
|
|
8223
|
-
const projectInfo = await this.projects.getProjectInfo(name);
|
|
8224
|
-
|
|
8225
|
-
if (!(projectInfo && projectInfo.content)) {
|
|
8226
|
-
return;
|
|
8227
|
-
}
|
|
8228
|
-
|
|
8229
|
-
const {
|
|
8230
|
-
baseMapName,
|
|
8231
|
-
items
|
|
8232
|
-
} = projectInfo.content;
|
|
8233
|
-
|
|
8234
|
-
if (baseMapName) {
|
|
8235
|
-
await this.setBaseMap(baseMapName);
|
|
8236
|
-
}
|
|
8237
|
-
|
|
8238
|
-
if (items) {
|
|
8239
|
-
const layers = items.map(item => item.name).filter(isString$1);
|
|
8240
|
-
await Promise.all(layers.map(layer => this.addLayer(layer)));
|
|
8241
|
-
}
|
|
8242
|
-
}
|
|
8243
|
-
}, {
|
|
8244
|
-
key: "insertLayer",
|
|
8245
|
-
value: async function insertLayer(name, index) {
|
|
8246
|
-
const service = await this.layersManager.getLayerService(name);
|
|
8247
|
-
|
|
8248
|
-
if (service) {
|
|
8249
|
-
// @ts-ignore
|
|
8250
|
-
this.map.insertLayer(service.layer, index);
|
|
8251
|
-
}
|
|
8252
|
-
}
|
|
8253
|
-
}, {
|
|
8254
|
-
key: "setMapProps",
|
|
8255
|
-
value: function setMapProps() {
|
|
8256
|
-
const {
|
|
8257
|
-
position,
|
|
8258
|
-
centerPoint,
|
|
8259
|
-
mapWrapper,
|
|
8260
|
-
resolution
|
|
8261
|
-
} = this.mapProps;
|
|
8262
|
-
|
|
8263
|
-
if (position) {
|
|
8264
|
-
this.map.position = position;
|
|
8265
|
-
} else if (centerPoint) {
|
|
8266
|
-
this.map.centerPoint = centerPoint;
|
|
8267
|
-
}
|
|
8268
|
-
|
|
8269
|
-
if (resolution) this.map.resolution = resolution;
|
|
8270
|
-
if (mapWrapper) this.painter.wrapper = mapWrapper;
|
|
8271
|
-
}
|
|
8272
|
-
}]);
|
|
8273
|
-
|
|
8274
|
-
return SpatialProcessor;
|
|
8275
|
-
}(Api);
|
|
8276
|
-
|
|
8277
|
-
const isString$1 = s => s !== undefined;
|
|
8278
|
-
|
|
8279
|
-
function isEvergisDynamicLayer(layer) {
|
|
8280
|
-
return layer instanceof EvergisDynamicLayer;
|
|
8281
|
-
}
|
|
8282
|
-
function isEvergisTileLayer(layer) {
|
|
8283
|
-
return layer instanceof EvergisTileLayer;
|
|
8284
|
-
}
|
|
8285
|
-
function isFeatureLayer(layer) {
|
|
8286
|
-
return layer instanceof sgis.FeatureLayer;
|
|
8287
|
-
}
|
|
8288
|
-
|
|
8289
7978
|
/* eslint-disable */
|
|
8290
7979
|
|
|
8291
7980
|
(function (AggregationFunction) {
|
|
@@ -8553,6 +8242,7 @@ function isFeatureLayer(layer) {
|
|
|
8553
8242
|
PolicyType["MaxFeaturesInOneTable"] = "MaxFeaturesInOneTable";
|
|
8554
8243
|
PolicyType["MaxObjectsToExport"] = "MaxObjectsToExport";
|
|
8555
8244
|
PolicyType["MaxUploadContentSize"] = "MaxUploadContentSize";
|
|
8245
|
+
PolicyType["MaxEqlQueryParametersValues"] = "MaxEqlQueryParametersValues";
|
|
8556
8246
|
})(exports.PolicyType || (exports.PolicyType = {}));
|
|
8557
8247
|
|
|
8558
8248
|
(function (Quality) {
|
|
@@ -8577,6 +8267,7 @@ function isFeatureLayer(layer) {
|
|
|
8577
8267
|
ResourceType["File"] = "file";
|
|
8578
8268
|
ResourceType["Feature"] = "feature";
|
|
8579
8269
|
ResourceType["Tag"] = "tag";
|
|
8270
|
+
ResourceType["DataSource"] = "datasource";
|
|
8580
8271
|
})(exports.ResourceType || (exports.ResourceType = {}));
|
|
8581
8272
|
|
|
8582
8273
|
(function (ResourceTypeFilter) {
|
|
@@ -8601,17 +8292,6 @@ function isFeatureLayer(layer) {
|
|
|
8601
8292
|
ResponseType["Token"] = "token";
|
|
8602
8293
|
})(exports.ResponseType || (exports.ResponseType = {}));
|
|
8603
8294
|
|
|
8604
|
-
(function (ServerTaskStatus) {
|
|
8605
|
-
ServerTaskStatus["None"] = "None";
|
|
8606
|
-
ServerTaskStatus["Scheduled"] = "Scheduled";
|
|
8607
|
-
ServerTaskStatus["Planning"] = "Planning";
|
|
8608
|
-
ServerTaskStatus["Executing"] = "Executing";
|
|
8609
|
-
ServerTaskStatus["Completed"] = "Completed";
|
|
8610
|
-
ServerTaskStatus["Failed"] = "Failed";
|
|
8611
|
-
ServerTaskStatus["Canceled"] = "Canceled";
|
|
8612
|
-
ServerTaskStatus["Timeout"] = "Timeout";
|
|
8613
|
-
})(exports.ServerTaskStatus || (exports.ServerTaskStatus = {}));
|
|
8614
|
-
|
|
8615
8295
|
(function (SimplifyType) {
|
|
8616
8296
|
SimplifyType["Basic"] = "Basic";
|
|
8617
8297
|
SimplifyType["PreserveTopology"] = "PreserveTopology";
|
|
@@ -8625,11 +8305,6 @@ function isFeatureLayer(layer) {
|
|
|
8625
8305
|
StringSubType["Attachments"] = "Attachments";
|
|
8626
8306
|
})(exports.StringSubType || (exports.StringSubType = {}));
|
|
8627
8307
|
|
|
8628
|
-
(function (TaskGroup) {
|
|
8629
|
-
TaskGroup["My"] = "my";
|
|
8630
|
-
TaskGroup["All"] = "all";
|
|
8631
|
-
})(exports.TaskGroup || (exports.TaskGroup = {}));
|
|
8632
|
-
|
|
8633
8308
|
(function (TextAlignment) {
|
|
8634
8309
|
TextAlignment["Right"] = "right";
|
|
8635
8310
|
TextAlignment["Left"] = "left";
|
|
@@ -8643,6 +8318,31 @@ function isFeatureLayer(layer) {
|
|
|
8643
8318
|
TextVerticalAlignment["Middle"] = "middle";
|
|
8644
8319
|
})(exports.TextVerticalAlignment || (exports.TextVerticalAlignment = {}));
|
|
8645
8320
|
|
|
8321
|
+
(function (WorkerMethodType) {
|
|
8322
|
+
WorkerMethodType["Task"] = "Task";
|
|
8323
|
+
WorkerMethodType["Rest"] = "Rest";
|
|
8324
|
+
WorkerMethodType["Both"] = "Both";
|
|
8325
|
+
})(exports.WorkerMethodType || (exports.WorkerMethodType = {}));
|
|
8326
|
+
|
|
8327
|
+
(function (WorkerSettingsFieldType) {
|
|
8328
|
+
WorkerSettingsFieldType["Integer"] = "Integer";
|
|
8329
|
+
WorkerSettingsFieldType["Double"] = "Double";
|
|
8330
|
+
WorkerSettingsFieldType["String"] = "String";
|
|
8331
|
+
WorkerSettingsFieldType["Extent"] = "Extent";
|
|
8332
|
+
WorkerSettingsFieldType["Geometry"] = "Geometry";
|
|
8333
|
+
WorkerSettingsFieldType["IntergerArray"] = "IntergerArray";
|
|
8334
|
+
WorkerSettingsFieldType["DoubleArray"] = "DoubleArray";
|
|
8335
|
+
WorkerSettingsFieldType["StringArray"] = "StringArray";
|
|
8336
|
+
WorkerSettingsFieldType["Boolean"] = "Boolean";
|
|
8337
|
+
WorkerSettingsFieldType["SourceEql"] = "SourceEql";
|
|
8338
|
+
WorkerSettingsFieldType["Layer"] = "Layer";
|
|
8339
|
+
WorkerSettingsFieldType["Table"] = "Table";
|
|
8340
|
+
WorkerSettingsFieldType["Folder"] = "Folder";
|
|
8341
|
+
WorkerSettingsFieldType["Json"] = "Json";
|
|
8342
|
+
WorkerSettingsFieldType["Expression"] = "Expression";
|
|
8343
|
+
WorkerSettingsFieldType["Expressions"] = "Expressions";
|
|
8344
|
+
})(exports.WorkerSettingsFieldType || (exports.WorkerSettingsFieldType = {}));
|
|
8345
|
+
|
|
8646
8346
|
Object.defineProperty(exports, 'HTTPError', {
|
|
8647
8347
|
enumerable: true,
|
|
8648
8348
|
get: function () {
|
|
@@ -8662,8 +8362,6 @@ exports.BulkOperations = BulkOperations;
|
|
|
8662
8362
|
exports.Cameras = Cameras;
|
|
8663
8363
|
exports.ClientSettings = ClientSettings;
|
|
8664
8364
|
exports.Eql = Eql;
|
|
8665
|
-
exports.EvergisDynamicLayer = EvergisDynamicLayer;
|
|
8666
|
-
exports.EvergisTileLayer = EvergisTileLayer;
|
|
8667
8365
|
exports.External = External;
|
|
8668
8366
|
exports.Feedback = Feedback;
|
|
8669
8367
|
exports.FileUpload = FileUpload;
|
|
@@ -8675,7 +8373,6 @@ exports.HttpClient = HttpClient;
|
|
|
8675
8373
|
exports.IceRouter = IceRouter;
|
|
8676
8374
|
exports.Import = Import;
|
|
8677
8375
|
exports.Layers = Layers;
|
|
8678
|
-
exports.LayersManager = LayersManager;
|
|
8679
8376
|
exports.Names = Names;
|
|
8680
8377
|
exports.Namespace = Namespace;
|
|
8681
8378
|
exports.Notification = Notification;
|
|
@@ -8683,13 +8380,12 @@ exports.NotificationEvent = NotificationEvent;
|
|
|
8683
8380
|
exports.PortalSettings = PortalSettings;
|
|
8684
8381
|
exports.Print = Print;
|
|
8685
8382
|
exports.Projects = Projects;
|
|
8383
|
+
exports.RemoteTaskManager = RemoteTaskManager;
|
|
8686
8384
|
exports.ResourceCatalog = ResourceCatalog;
|
|
8687
8385
|
exports.Resources = Resources;
|
|
8688
8386
|
exports.STORAGE_REFRESH_TOKEN_KEY = STORAGE_REFRESH_TOKEN_KEY;
|
|
8689
8387
|
exports.STORAGE_TOKEN_KEY = STORAGE_TOKEN_KEY;
|
|
8690
|
-
exports.Scheduler = Scheduler;
|
|
8691
8388
|
exports.Security = Security;
|
|
8692
|
-
exports.SpatialProcessor = SpatialProcessor;
|
|
8693
8389
|
exports.Statistic = Statistic;
|
|
8694
8390
|
exports.Styles = Styles;
|
|
8695
8391
|
exports.Tables = Tables;
|
|
@@ -8700,12 +8396,8 @@ exports.errorHandler = errorHandler;
|
|
|
8700
8396
|
exports.formDataFromFile = formDataFromFile;
|
|
8701
8397
|
exports.generateId = generateId;
|
|
8702
8398
|
exports.getFetchingUrlPath = getFetchingUrlPath;
|
|
8703
|
-
exports.isEvergisDynamicLayer = isEvergisDynamicLayer;
|
|
8704
|
-
exports.isEvergisTileLayer = isEvergisTileLayer;
|
|
8705
|
-
exports.isFeatureLayer = isFeatureLayer;
|
|
8706
8399
|
exports.isHTTPError = isHTTPError;
|
|
8707
8400
|
exports.isHandledError = isHandledError;
|
|
8708
|
-
exports.isLayer = isLayer;
|
|
8709
8401
|
exports.isProjectContentItems = isProjectContentItems;
|
|
8710
8402
|
exports.isString = isString;
|
|
8711
8403
|
exports.isTileLayerService = isTileLayerService;
|