@evergis/api 3.0.214 → 4.0.1-alpha.0
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/dist/Api.d.ts +3 -5
- package/dist/__generated__/AccountService.d.ts +2 -2
- package/dist/__generated__/DataSourceService.d.ts +46 -2
- package/dist/__generated__/EqlService.d.ts +12 -1
- package/dist/__generated__/LayersService.d.ts +2 -2
- package/dist/__generated__/ProjectsService.d.ts +2 -2
- package/dist/__generated__/RemoteTaskManagerService.d.ts +262 -0
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +493 -455
- package/dist/api.cjs.development.js +509 -857
- 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 +565 -883
- 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 +2 -2
- 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)) {
|
|
@@ -333,8 +327,37 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
|
|
|
333
327
|
}
|
|
334
328
|
|
|
335
329
|
_createClass(DataSourceService, [{
|
|
336
|
-
key: "
|
|
330
|
+
key: "createArcGisDataSource",
|
|
337
331
|
value:
|
|
332
|
+
/**
|
|
333
|
+
* No description
|
|
334
|
+
*
|
|
335
|
+
* @tags DataSource
|
|
336
|
+
* @name CreateArcGisDataSource
|
|
337
|
+
* @operationId DataSourceController_CreateArcGisDataSource
|
|
338
|
+
* @summary Create S3 data source.
|
|
339
|
+
* @request POST:/ds/arcgis
|
|
340
|
+
* @response `200` OK
|
|
341
|
+
*/
|
|
342
|
+
function createArcGisDataSource(data) {
|
|
343
|
+
return this.http.post("/ds/arcgis", data).then(() => {});
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* No description
|
|
347
|
+
*
|
|
348
|
+
* @tags DataSource
|
|
349
|
+
* @name UpdateArcGisDataSource
|
|
350
|
+
* @operationId DataSourceController_UpdateArcGisDataSource
|
|
351
|
+
* @summary Update arcgis data source.
|
|
352
|
+
* @request PATCH:/ds/arcgis
|
|
353
|
+
* @response `200` OK
|
|
354
|
+
*/
|
|
355
|
+
|
|
356
|
+
}, {
|
|
357
|
+
key: "updateArcGisDataSource",
|
|
358
|
+
value: function updateArcGisDataSource(data) {
|
|
359
|
+
return this.http.patch("/ds/arcgis", data).then(() => {});
|
|
360
|
+
}
|
|
338
361
|
/**
|
|
339
362
|
* No description
|
|
340
363
|
*
|
|
@@ -345,7 +368,10 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
|
|
|
345
368
|
* @request GET:/ds
|
|
346
369
|
* @response `200` OK
|
|
347
370
|
*/
|
|
348
|
-
|
|
371
|
+
|
|
372
|
+
}, {
|
|
373
|
+
key: "getDataSourcesList",
|
|
374
|
+
value: function getDataSourcesList(query) {
|
|
349
375
|
return this.http.get("/ds", query).json();
|
|
350
376
|
}
|
|
351
377
|
/**
|
|
@@ -428,6 +454,38 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
|
|
|
428
454
|
value: function testConnection(data) {
|
|
429
455
|
return this.http.post("/ds/testConnection", data).json();
|
|
430
456
|
}
|
|
457
|
+
/**
|
|
458
|
+
* No description
|
|
459
|
+
*
|
|
460
|
+
* @tags DataSource
|
|
461
|
+
* @name CreateS3DataSource
|
|
462
|
+
* @operationId DataSourceController_CreateS3DataSource
|
|
463
|
+
* @summary Create S3 data source.
|
|
464
|
+
* @request POST:/ds/s3
|
|
465
|
+
* @response `200` OK
|
|
466
|
+
*/
|
|
467
|
+
|
|
468
|
+
}, {
|
|
469
|
+
key: "createS3DataSource",
|
|
470
|
+
value: function createS3DataSource(data) {
|
|
471
|
+
return this.http.post("/ds/s3", data).then(() => {});
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* No description
|
|
475
|
+
*
|
|
476
|
+
* @tags DataSource
|
|
477
|
+
* @name UpdateS3DataSource
|
|
478
|
+
* @operationId DataSourceController_UpdateS3DataSource
|
|
479
|
+
* @summary Create S3 data source.
|
|
480
|
+
* @request PATCH:/ds/s3
|
|
481
|
+
* @response `200` OK
|
|
482
|
+
*/
|
|
483
|
+
|
|
484
|
+
}, {
|
|
485
|
+
key: "updateS3DataSource",
|
|
486
|
+
value: function updateS3DataSource(data) {
|
|
487
|
+
return this.http.patch("/ds/s3", data).then(() => {});
|
|
488
|
+
}
|
|
431
489
|
}]);
|
|
432
490
|
|
|
433
491
|
return DataSourceService;
|
|
@@ -1048,7 +1106,7 @@ let AccountService = /*#__PURE__*/function (_Service) {
|
|
|
1048
1106
|
return this.http.post("/account/register", data).text();
|
|
1049
1107
|
}
|
|
1050
1108
|
/**
|
|
1051
|
-
* @description Only for users with SPCore.Security.ISecurityManager.SuperuserRole role.
|
|
1109
|
+
* @description Only for users with SPCore.Security.Abstractions.ISecurityManager.SuperuserRole role.
|
|
1052
1110
|
*
|
|
1053
1111
|
* @tags Account
|
|
1054
1112
|
* @name CreateUser
|
|
@@ -1080,7 +1138,7 @@ let AccountService = /*#__PURE__*/function (_Service) {
|
|
|
1080
1138
|
return this.http.patch("/account/user", data).then(() => {});
|
|
1081
1139
|
}
|
|
1082
1140
|
/**
|
|
1083
|
-
* @description Only for users with SPCore.Security.ISecurityManager.SuperuserRole role.
|
|
1141
|
+
* @description Only for users with SPCore.Security.Abstractions.ISecurityManager.SuperuserRole role.
|
|
1084
1142
|
*
|
|
1085
1143
|
* @tags Account
|
|
1086
1144
|
* @name ConfirmEmail
|
|
@@ -2318,6 +2376,22 @@ let EqlService = /*#__PURE__*/function (_Service) {
|
|
|
2318
2376
|
value: function removeLayerParameterValue(query) {
|
|
2319
2377
|
return this.http.delete("/eql/removeParam", null, query).then(() => {});
|
|
2320
2378
|
}
|
|
2379
|
+
/**
|
|
2380
|
+
* No description
|
|
2381
|
+
*
|
|
2382
|
+
* @tags Eql
|
|
2383
|
+
* @name GetAvailiableLayerParameters
|
|
2384
|
+
* @operationId EqlController_GetAvailiableLayerParameters
|
|
2385
|
+
* @summary Get availiable layer parameters values.
|
|
2386
|
+
* @request GET:/eql/getAvailiableParams
|
|
2387
|
+
* @response `200` OK
|
|
2388
|
+
*/
|
|
2389
|
+
|
|
2390
|
+
}, {
|
|
2391
|
+
key: "getAvailiableLayerParameters",
|
|
2392
|
+
value: function getAvailiableLayerParameters(query) {
|
|
2393
|
+
return this.http.get("/eql/getAvailiableParams", query).json();
|
|
2394
|
+
}
|
|
2321
2395
|
}]);
|
|
2322
2396
|
|
|
2323
2397
|
return EqlService;
|
|
@@ -4828,15 +4902,6 @@ function formDataFromFile(file) {
|
|
|
4828
4902
|
return data;
|
|
4829
4903
|
}
|
|
4830
4904
|
|
|
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
4905
|
function isString(v) {
|
|
4841
4906
|
return typeof v === 'string';
|
|
4842
4907
|
}
|
|
@@ -5929,656 +5994,599 @@ function isProjectContentItems(v) {
|
|
|
5929
5994
|
return v !== null && v !== undefined;
|
|
5930
5995
|
}
|
|
5931
5996
|
|
|
5997
|
+
const _excluded$7 = ["id"];
|
|
5932
5998
|
/**
|
|
5933
5999
|
* @title Spatial Processing Core API
|
|
5934
6000
|
* @version 1.5.1.0
|
|
5935
6001
|
* @baseUrl /sp
|
|
5936
6002
|
*/
|
|
5937
6003
|
|
|
5938
|
-
let
|
|
5939
|
-
_inherits(
|
|
6004
|
+
let RemoteTaskManagerService = /*#__PURE__*/function (_Service) {
|
|
6005
|
+
_inherits(RemoteTaskManagerService, _Service);
|
|
5940
6006
|
|
|
5941
|
-
var _super = /*#__PURE__*/_createSuper(
|
|
6007
|
+
var _super = /*#__PURE__*/_createSuper(RemoteTaskManagerService);
|
|
5942
6008
|
|
|
5943
|
-
function
|
|
5944
|
-
_classCallCheck(this,
|
|
6009
|
+
function RemoteTaskManagerService() {
|
|
6010
|
+
_classCallCheck(this, RemoteTaskManagerService);
|
|
5945
6011
|
|
|
5946
6012
|
return _super.apply(this, arguments);
|
|
5947
6013
|
}
|
|
5948
6014
|
|
|
5949
|
-
_createClass(
|
|
5950
|
-
key: "
|
|
6015
|
+
_createClass(RemoteTaskManagerService, [{
|
|
6016
|
+
key: "cancelTask",
|
|
5951
6017
|
value:
|
|
5952
6018
|
/**
|
|
5953
|
-
*
|
|
6019
|
+
* No description
|
|
5954
6020
|
*
|
|
5955
|
-
* @tags
|
|
5956
|
-
* @name
|
|
5957
|
-
* @operationId
|
|
5958
|
-
* @summary
|
|
5959
|
-
* @request
|
|
6021
|
+
* @tags RemoteTaskManager
|
|
6022
|
+
* @name CancelTask
|
|
6023
|
+
* @operationId RemoteTaskManagerController_CancelTask
|
|
6024
|
+
* @summary Cancel task execution by given id.
|
|
6025
|
+
* @request POST:/scheduler/tasks/{id}/cancel
|
|
5960
6026
|
* @response `200` OK
|
|
5961
6027
|
*/
|
|
5962
|
-
function
|
|
5963
|
-
return this.http.
|
|
6028
|
+
function cancelTask(id) {
|
|
6029
|
+
return this.http.post("/scheduler/tasks/" + id + "/cancel", null).then(() => {});
|
|
5964
6030
|
}
|
|
5965
6031
|
/**
|
|
5966
6032
|
* No description
|
|
5967
6033
|
*
|
|
5968
|
-
* @tags
|
|
5969
|
-
* @name
|
|
5970
|
-
* @operationId
|
|
5971
|
-
* @summary
|
|
5972
|
-
* @request POST:/
|
|
6034
|
+
* @tags RemoteTaskManager
|
|
6035
|
+
* @name StartCogCreateTask
|
|
6036
|
+
* @operationId RemoteTaskManagerController_StartCogCreateTask
|
|
6037
|
+
* @summary Plans the execution of a 'create raster cog' server task.
|
|
6038
|
+
* @request POST:/scheduler/tasks#type=cogService_create
|
|
5973
6039
|
* @response `200` OK
|
|
5974
6040
|
*/
|
|
5975
6041
|
|
|
5976
6042
|
}, {
|
|
5977
|
-
key: "
|
|
5978
|
-
value: function
|
|
5979
|
-
return this.http.post("/
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
return ResourceCatalogService;
|
|
5984
|
-
}(Service);
|
|
5985
|
-
|
|
5986
|
-
let ResourceCatalog = /*#__PURE__*/function (_ResourceCatalogServi) {
|
|
5987
|
-
_inherits(ResourceCatalog, _ResourceCatalogServi);
|
|
5988
|
-
|
|
5989
|
-
var _super = /*#__PURE__*/_createSuper(ResourceCatalog);
|
|
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
|
-
}
|
|
6014
|
-
|
|
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
|
-
}, {
|
|
6033
|
-
key: "getLayerInfosWithDeps",
|
|
6034
|
-
value: async function getLayerInfosWithDeps(layers) {
|
|
6035
|
-
const layerInfos = await this.layers.getLayerInfos(layers);
|
|
6036
|
-
const layersDeps = await this.layers.getLayersDeps(layers);
|
|
6037
|
-
const {
|
|
6038
|
-
tables
|
|
6039
|
-
} = await this.getDependencies(layersDeps, false, true);
|
|
6040
|
-
return {
|
|
6041
|
-
layers: layerInfos,
|
|
6042
|
-
deps: {
|
|
6043
|
-
tables
|
|
6044
|
-
}
|
|
6045
|
-
};
|
|
6046
|
-
}
|
|
6047
|
-
}, {
|
|
6048
|
-
key: "getDependencies",
|
|
6049
|
-
value: async function getDependencies(resourceDeps, pickLayers, pickTables) {
|
|
6050
|
-
const {
|
|
6051
|
-
tables,
|
|
6052
|
-
layers
|
|
6053
|
-
} = resourceDeps.reduce((acc, layerDep) => {
|
|
6054
|
-
const deps = layerDep.dependencies || [];
|
|
6055
|
-
|
|
6056
|
-
if (pickLayers) {
|
|
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
|
-
}
|
|
6065
|
-
|
|
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
|
-
}, {
|
|
6077
|
-
key: "getDependentNames",
|
|
6078
|
-
value: function getDependentNames(deps, depType) {
|
|
6079
|
-
return deps.filter((_ref) => {
|
|
6080
|
-
let {
|
|
6081
|
-
type
|
|
6082
|
-
} = _ref;
|
|
6083
|
-
return type === depType;
|
|
6084
|
-
}).map((_ref2) => {
|
|
6085
|
-
let {
|
|
6086
|
-
name
|
|
6087
|
-
} = _ref2;
|
|
6088
|
-
return name;
|
|
6089
|
-
}).filter(isString);
|
|
6043
|
+
key: "startCogCreateTask",
|
|
6044
|
+
value: function startCogCreateTask(data) {
|
|
6045
|
+
return this.http.post("/scheduler/tasks", data, {
|
|
6046
|
+
type: 'cogService_create'
|
|
6047
|
+
}).text();
|
|
6090
6048
|
}
|
|
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
6049
|
/**
|
|
6117
6050
|
* No description
|
|
6118
6051
|
*
|
|
6119
|
-
* @tags
|
|
6120
|
-
* @name
|
|
6121
|
-
* @operationId
|
|
6122
|
-
* @summary
|
|
6123
|
-
* @request
|
|
6052
|
+
* @tags RemoteTaskManager
|
|
6053
|
+
* @name StartRasterVrtTask
|
|
6054
|
+
* @operationId RemoteTaskManagerController_StartRasterVrtTask
|
|
6055
|
+
* @summary Plans the execution of a 'create raster vrt' server task.
|
|
6056
|
+
* @request POST:/scheduler/tasks#type=cogService_vrt
|
|
6124
6057
|
* @response `200` OK
|
|
6125
6058
|
*/
|
|
6126
|
-
|
|
6127
|
-
|
|
6059
|
+
|
|
6060
|
+
}, {
|
|
6061
|
+
key: "startRasterVrtTask",
|
|
6062
|
+
value: function startRasterVrtTask(data) {
|
|
6063
|
+
return this.http.post("/scheduler/tasks", data, {
|
|
6064
|
+
type: 'cogService_vrt'
|
|
6065
|
+
}).text();
|
|
6128
6066
|
}
|
|
6129
6067
|
/**
|
|
6130
6068
|
* No description
|
|
6131
6069
|
*
|
|
6132
|
-
* @tags
|
|
6133
|
-
* @name
|
|
6134
|
-
* @operationId
|
|
6135
|
-
* @summary
|
|
6136
|
-
* @request
|
|
6070
|
+
* @tags RemoteTaskManager
|
|
6071
|
+
* @name StartNetCdfTask
|
|
6072
|
+
* @operationId RemoteTaskManagerController_StartNetCdfTask
|
|
6073
|
+
* @summary Plans the execution of a 'create raster netcdf' server task.
|
|
6074
|
+
* @request POST:/scheduler/tasks#type=cogService_netcdf
|
|
6137
6075
|
* @response `200` OK
|
|
6138
6076
|
*/
|
|
6139
6077
|
|
|
6140
6078
|
}, {
|
|
6141
|
-
key: "
|
|
6142
|
-
value: function
|
|
6143
|
-
return this.http.
|
|
6079
|
+
key: "startNetCdfTask",
|
|
6080
|
+
value: function startNetCdfTask(data) {
|
|
6081
|
+
return this.http.post("/scheduler/tasks", data, {
|
|
6082
|
+
type: 'cogService_netcdf'
|
|
6083
|
+
}).text();
|
|
6144
6084
|
}
|
|
6145
6085
|
/**
|
|
6146
6086
|
* No description
|
|
6147
6087
|
*
|
|
6148
|
-
* @tags
|
|
6149
|
-
* @name
|
|
6150
|
-
* @operationId
|
|
6151
|
-
* @summary
|
|
6152
|
-
* @request
|
|
6088
|
+
* @tags RemoteTaskManager
|
|
6089
|
+
* @name StartBufferTask
|
|
6090
|
+
* @operationId RemoteTaskManagerController_StartBufferTask
|
|
6091
|
+
* @summary Plans the execution of a 'create buffers' server task.
|
|
6092
|
+
* @request POST:/scheduler/tasks#type=geoService_buffer
|
|
6153
6093
|
* @response `200` OK
|
|
6154
6094
|
*/
|
|
6155
6095
|
|
|
6156
6096
|
}, {
|
|
6157
|
-
key: "
|
|
6158
|
-
value: function
|
|
6159
|
-
return this.http.
|
|
6097
|
+
key: "startBufferTask",
|
|
6098
|
+
value: function startBufferTask(data) {
|
|
6099
|
+
return this.http.post("/scheduler/tasks", data, {
|
|
6100
|
+
type: 'geoService_buffer'
|
|
6101
|
+
}).text();
|
|
6160
6102
|
}
|
|
6161
6103
|
/**
|
|
6162
6104
|
* No description
|
|
6163
6105
|
*
|
|
6164
|
-
* @tags
|
|
6165
|
-
* @name
|
|
6166
|
-
* @operationId
|
|
6167
|
-
* @summary
|
|
6168
|
-
* @request POST:/scheduler/tasks
|
|
6106
|
+
* @tags RemoteTaskManager
|
|
6107
|
+
* @name StartCopyTableTask
|
|
6108
|
+
* @operationId RemoteTaskManagerController_StartCopyTableTask
|
|
6109
|
+
* @summary Plans the execution of a 'copy table' server task.
|
|
6110
|
+
* @request POST:/scheduler/tasks#type=geoService_copy
|
|
6169
6111
|
* @response `200` OK
|
|
6170
6112
|
*/
|
|
6171
6113
|
|
|
6172
6114
|
}, {
|
|
6173
|
-
key: "
|
|
6174
|
-
value: function
|
|
6175
|
-
return this.http.post("/scheduler/tasks
|
|
6115
|
+
key: "startCopyTableTask",
|
|
6116
|
+
value: function startCopyTableTask(data) {
|
|
6117
|
+
return this.http.post("/scheduler/tasks", data, {
|
|
6118
|
+
type: 'geoService_copy'
|
|
6119
|
+
}).text();
|
|
6176
6120
|
}
|
|
6177
6121
|
/**
|
|
6178
6122
|
* No description
|
|
6179
6123
|
*
|
|
6180
|
-
* @tags
|
|
6181
|
-
* @name
|
|
6182
|
-
* @operationId
|
|
6183
|
-
* @summary Plans the execution of a '
|
|
6184
|
-
* @request POST:/scheduler/tasks#type=
|
|
6124
|
+
* @tags RemoteTaskManager
|
|
6125
|
+
* @name StartUnionTask
|
|
6126
|
+
* @operationId RemoteTaskManagerController_StartUnionTask
|
|
6127
|
+
* @summary Plans the execution of a 'create union' server task.
|
|
6128
|
+
* @request POST:/scheduler/tasks#type=geoService_union
|
|
6185
6129
|
* @response `200` OK
|
|
6186
6130
|
*/
|
|
6187
6131
|
|
|
6188
6132
|
}, {
|
|
6189
|
-
key: "
|
|
6190
|
-
value: function
|
|
6133
|
+
key: "startUnionTask",
|
|
6134
|
+
value: function startUnionTask(data) {
|
|
6191
6135
|
return this.http.post("/scheduler/tasks", data, {
|
|
6192
|
-
type: '
|
|
6193
|
-
}).
|
|
6136
|
+
type: 'geoService_union'
|
|
6137
|
+
}).text();
|
|
6194
6138
|
}
|
|
6195
6139
|
/**
|
|
6196
6140
|
* No description
|
|
6197
6141
|
*
|
|
6198
|
-
* @tags
|
|
6199
|
-
* @name
|
|
6200
|
-
* @operationId
|
|
6201
|
-
* @summary Plans the execution of a '
|
|
6202
|
-
* @request POST:/scheduler/tasks#type=
|
|
6142
|
+
* @tags RemoteTaskManager
|
|
6143
|
+
* @name StartOverlayTask
|
|
6144
|
+
* @operationId RemoteTaskManagerController_StartOverlayTask
|
|
6145
|
+
* @summary Plans the execution of a 'create overlay' server task.
|
|
6146
|
+
* @request POST:/scheduler/tasks#type=geoService_overlay
|
|
6203
6147
|
* @response `200` OK
|
|
6204
6148
|
*/
|
|
6205
6149
|
|
|
6206
6150
|
}, {
|
|
6207
|
-
key: "
|
|
6208
|
-
value: function
|
|
6151
|
+
key: "startOverlayTask",
|
|
6152
|
+
value: function startOverlayTask(data) {
|
|
6209
6153
|
return this.http.post("/scheduler/tasks", data, {
|
|
6210
|
-
type: '
|
|
6211
|
-
}).
|
|
6154
|
+
type: 'geoService_overlay'
|
|
6155
|
+
}).text();
|
|
6212
6156
|
}
|
|
6213
6157
|
/**
|
|
6214
6158
|
* No description
|
|
6215
6159
|
*
|
|
6216
|
-
* @tags
|
|
6217
|
-
* @name
|
|
6218
|
-
* @operationId
|
|
6219
|
-
* @summary Plans the execution of a '
|
|
6220
|
-
* @request POST:/scheduler/tasks#type=
|
|
6160
|
+
* @tags RemoteTaskManager
|
|
6161
|
+
* @name StartCopyTask
|
|
6162
|
+
* @operationId RemoteTaskManagerController_StartCopyTask
|
|
6163
|
+
* @summary Plans the execution of a 'copy storages' server task.
|
|
6164
|
+
* @request POST:/scheduler/tasks#type=copyTask
|
|
6221
6165
|
* @response `200` OK
|
|
6222
6166
|
*/
|
|
6223
6167
|
|
|
6224
6168
|
}, {
|
|
6225
|
-
key: "
|
|
6226
|
-
value: function
|
|
6169
|
+
key: "startCopyTask",
|
|
6170
|
+
value: function startCopyTask(data) {
|
|
6227
6171
|
return this.http.post("/scheduler/tasks", data, {
|
|
6228
|
-
type: '
|
|
6229
|
-
}).
|
|
6172
|
+
type: 'copyTask'
|
|
6173
|
+
}).text();
|
|
6230
6174
|
}
|
|
6231
6175
|
/**
|
|
6232
6176
|
* No description
|
|
6233
6177
|
*
|
|
6234
|
-
* @tags
|
|
6235
|
-
* @name
|
|
6236
|
-
* @operationId
|
|
6237
|
-
* @summary Plans the execution of a '
|
|
6238
|
-
* @request POST:/scheduler/tasks#type=
|
|
6178
|
+
* @tags RemoteTaskManager
|
|
6179
|
+
* @name StartAvailableAreaTask
|
|
6180
|
+
* @operationId RemoteTaskManagerController_StartAvailableAreaTask
|
|
6181
|
+
* @summary Plans the execution of a 'create available area' server task.
|
|
6182
|
+
* @request POST:/scheduler/tasks#type=availabilityArea
|
|
6239
6183
|
* @response `200` OK
|
|
6240
6184
|
*/
|
|
6241
6185
|
|
|
6242
6186
|
}, {
|
|
6243
|
-
key: "
|
|
6244
|
-
value: function
|
|
6187
|
+
key: "startAvailableAreaTask",
|
|
6188
|
+
value: function startAvailableAreaTask(data) {
|
|
6245
6189
|
return this.http.post("/scheduler/tasks", data, {
|
|
6246
|
-
type: '
|
|
6247
|
-
}).
|
|
6190
|
+
type: 'availabilityArea'
|
|
6191
|
+
}).text();
|
|
6248
6192
|
}
|
|
6249
6193
|
/**
|
|
6250
6194
|
* No description
|
|
6251
6195
|
*
|
|
6252
|
-
* @tags
|
|
6253
|
-
* @name
|
|
6254
|
-
* @operationId
|
|
6255
|
-
* @summary Plans the execution of a '
|
|
6256
|
-
* @request POST:/scheduler/tasks#type=
|
|
6196
|
+
* @tags RemoteTaskManager
|
|
6197
|
+
* @name StartGeocodeTask
|
|
6198
|
+
* @operationId RemoteTaskManagerController_StartGeocodeTask
|
|
6199
|
+
* @summary Plans the execution of a 'geocode' server task.
|
|
6200
|
+
* @request POST:/scheduler/tasks#type=geocodeTask
|
|
6257
6201
|
* @response `200` OK
|
|
6258
6202
|
*/
|
|
6259
6203
|
|
|
6260
6204
|
}, {
|
|
6261
|
-
key: "
|
|
6262
|
-
value: function
|
|
6205
|
+
key: "startGeocodeTask",
|
|
6206
|
+
value: function startGeocodeTask(data) {
|
|
6263
6207
|
return this.http.post("/scheduler/tasks", data, {
|
|
6264
|
-
type: '
|
|
6265
|
-
}).
|
|
6208
|
+
type: 'geocodeTask'
|
|
6209
|
+
}).text();
|
|
6266
6210
|
}
|
|
6267
6211
|
/**
|
|
6268
6212
|
* No description
|
|
6269
6213
|
*
|
|
6270
|
-
* @tags
|
|
6271
|
-
* @name
|
|
6272
|
-
* @operationId
|
|
6273
|
-
* @summary
|
|
6274
|
-
* @request
|
|
6214
|
+
* @tags RemoteTaskManager
|
|
6215
|
+
* @name Get
|
|
6216
|
+
* @operationId RemoteTaskManagerController_Get
|
|
6217
|
+
* @summary Shows SubTask in Task.
|
|
6218
|
+
* @request GET:/scheduler/task/{id}/subtasks
|
|
6275
6219
|
* @response `200` OK
|
|
6276
6220
|
*/
|
|
6277
6221
|
|
|
6278
6222
|
}, {
|
|
6279
|
-
key: "
|
|
6280
|
-
value: function
|
|
6281
|
-
return this.http.
|
|
6282
|
-
type: 'rasterVrt'
|
|
6283
|
-
}).json();
|
|
6223
|
+
key: "get",
|
|
6224
|
+
value: function get(id) {
|
|
6225
|
+
return this.http.get("/scheduler/task/" + id + "/subtasks").then(() => {});
|
|
6284
6226
|
}
|
|
6285
6227
|
/**
|
|
6286
6228
|
* No description
|
|
6287
6229
|
*
|
|
6288
|
-
* @tags
|
|
6289
|
-
* @name
|
|
6290
|
-
* @operationId
|
|
6291
|
-
* @summary
|
|
6292
|
-
* @request POST:/scheduler/
|
|
6230
|
+
* @tags RemoteTaskManager
|
|
6231
|
+
* @name Stop
|
|
6232
|
+
* @operationId RemoteTaskManagerController_Stop
|
|
6233
|
+
* @summary Stop the task.
|
|
6234
|
+
* @request POST:/scheduler/task/{id}/stop
|
|
6293
6235
|
* @response `200` OK
|
|
6294
6236
|
*/
|
|
6295
6237
|
|
|
6296
6238
|
}, {
|
|
6297
|
-
key: "
|
|
6298
|
-
value: function
|
|
6299
|
-
return this.http.post("/scheduler/
|
|
6300
|
-
type: 'netcdf'
|
|
6301
|
-
}).json();
|
|
6239
|
+
key: "stop",
|
|
6240
|
+
value: function stop(id) {
|
|
6241
|
+
return this.http.post("/scheduler/task/" + id + "/stop", null).then(() => {});
|
|
6302
6242
|
}
|
|
6303
6243
|
/**
|
|
6304
6244
|
* No description
|
|
6305
6245
|
*
|
|
6306
|
-
* @tags
|
|
6307
|
-
* @name
|
|
6308
|
-
* @operationId
|
|
6309
|
-
* @summary
|
|
6310
|
-
* @request POST:/scheduler
|
|
6246
|
+
* @tags RemoteTaskManager
|
|
6247
|
+
* @name CreateTaskPrototype
|
|
6248
|
+
* @operationId RemoteTaskManagerController_CreateTaskPrototype
|
|
6249
|
+
* @summary Creates TaskPrototype.
|
|
6250
|
+
* @request POST:/scheduler
|
|
6311
6251
|
* @response `200` OK
|
|
6312
6252
|
*/
|
|
6313
6253
|
|
|
6314
6254
|
}, {
|
|
6315
|
-
key: "
|
|
6316
|
-
value: function
|
|
6317
|
-
return this.http.post("/scheduler
|
|
6318
|
-
type: 'route'
|
|
6319
|
-
}).json();
|
|
6255
|
+
key: "createTaskPrototype",
|
|
6256
|
+
value: function createTaskPrototype(data) {
|
|
6257
|
+
return this.http.post("/scheduler", data).text();
|
|
6320
6258
|
}
|
|
6321
6259
|
/**
|
|
6322
6260
|
* No description
|
|
6323
6261
|
*
|
|
6324
|
-
* @tags
|
|
6325
|
-
* @name
|
|
6326
|
-
* @operationId
|
|
6327
|
-
* @summary
|
|
6328
|
-
* @request
|
|
6262
|
+
* @tags RemoteTaskManager
|
|
6263
|
+
* @name GetTaskPrototypes
|
|
6264
|
+
* @operationId RemoteTaskManagerController_GetTaskPrototypes
|
|
6265
|
+
* @summary Show TaskPrototypes for user.
|
|
6266
|
+
* @request GET:/scheduler
|
|
6329
6267
|
* @response `200` OK
|
|
6330
6268
|
*/
|
|
6331
6269
|
|
|
6332
6270
|
}, {
|
|
6333
|
-
key: "
|
|
6334
|
-
value: function
|
|
6335
|
-
return this.http.
|
|
6336
|
-
type: 'union'
|
|
6337
|
-
}).json();
|
|
6271
|
+
key: "getTaskPrototypes",
|
|
6272
|
+
value: function getTaskPrototypes(query) {
|
|
6273
|
+
return this.http.get("/scheduler", query).then(() => {});
|
|
6338
6274
|
}
|
|
6339
6275
|
/**
|
|
6340
6276
|
* No description
|
|
6341
6277
|
*
|
|
6342
|
-
* @tags
|
|
6343
|
-
* @name
|
|
6344
|
-
* @operationId
|
|
6345
|
-
* @summary
|
|
6346
|
-
* @request
|
|
6278
|
+
* @tags RemoteTaskManager
|
|
6279
|
+
* @name UpdateTaskPrototype
|
|
6280
|
+
* @operationId RemoteTaskManagerController_UpdateTaskPrototype
|
|
6281
|
+
* @summary Updates task prototype.
|
|
6282
|
+
* @request PUT:/scheduler/{id}
|
|
6347
6283
|
* @response `200` OK
|
|
6348
6284
|
*/
|
|
6349
6285
|
|
|
6350
6286
|
}, {
|
|
6351
|
-
key: "
|
|
6352
|
-
value: function
|
|
6353
|
-
return this.http.
|
|
6354
|
-
type: 'overlay'
|
|
6355
|
-
}).json();
|
|
6287
|
+
key: "updateTaskPrototype",
|
|
6288
|
+
value: function updateTaskPrototype(id, data) {
|
|
6289
|
+
return this.http.put("/scheduler/" + id, data).then(() => {});
|
|
6356
6290
|
}
|
|
6357
6291
|
/**
|
|
6358
6292
|
* No description
|
|
6359
6293
|
*
|
|
6360
|
-
* @tags
|
|
6361
|
-
* @name
|
|
6362
|
-
* @operationId
|
|
6363
|
-
* @summary
|
|
6364
|
-
* @request
|
|
6294
|
+
* @tags RemoteTaskManager
|
|
6295
|
+
* @name Delete
|
|
6296
|
+
* @operationId RemoteTaskManagerController_Delete
|
|
6297
|
+
* @summary Delete task prototype.
|
|
6298
|
+
* @request DELETE:/scheduler/{id}
|
|
6365
6299
|
* @response `200` OK
|
|
6366
6300
|
*/
|
|
6367
6301
|
|
|
6368
6302
|
}, {
|
|
6369
|
-
key: "
|
|
6370
|
-
value: function
|
|
6371
|
-
return this.http.
|
|
6372
|
-
type: 'filterCopy'
|
|
6373
|
-
}).json();
|
|
6303
|
+
key: "delete",
|
|
6304
|
+
value: function _delete(id) {
|
|
6305
|
+
return this.http.delete("/scheduler/" + id, null).then(() => {});
|
|
6374
6306
|
}
|
|
6375
6307
|
/**
|
|
6376
6308
|
* No description
|
|
6377
6309
|
*
|
|
6378
|
-
* @tags
|
|
6379
|
-
* @name
|
|
6380
|
-
* @operationId
|
|
6381
|
-
* @summary
|
|
6382
|
-
* @request POST:/scheduler/
|
|
6310
|
+
* @tags RemoteTaskManager
|
|
6311
|
+
* @name SetEnable
|
|
6312
|
+
* @operationId RemoteTaskManagerController_SetEnable
|
|
6313
|
+
* @summary Enables task prototype.
|
|
6314
|
+
* @request POST:/scheduler/{id}/enable/{enable}
|
|
6383
6315
|
* @response `200` OK
|
|
6384
6316
|
*/
|
|
6385
6317
|
|
|
6386
6318
|
}, {
|
|
6387
|
-
key: "
|
|
6388
|
-
value: function
|
|
6389
|
-
return this.http.post("/scheduler/
|
|
6390
|
-
type: 'pipeline'
|
|
6391
|
-
}).json();
|
|
6319
|
+
key: "setEnable",
|
|
6320
|
+
value: function setEnable(id, enable) {
|
|
6321
|
+
return this.http.post("/scheduler/" + id + "/enable/" + enable, null).then(() => {});
|
|
6392
6322
|
}
|
|
6393
6323
|
/**
|
|
6394
6324
|
* No description
|
|
6395
6325
|
*
|
|
6396
|
-
* @tags
|
|
6397
|
-
* @name
|
|
6398
|
-
* @operationId
|
|
6399
|
-
* @summary
|
|
6400
|
-
* @request
|
|
6326
|
+
* @tags RemoteTaskManager
|
|
6327
|
+
* @name GetTasksForPrototype
|
|
6328
|
+
* @operationId RemoteTaskManagerController_GetTasksForPrototype
|
|
6329
|
+
* @summary Shows Tasks that created for TaskPrototype.
|
|
6330
|
+
* @request GET:/scheduler/{id}/tasks
|
|
6401
6331
|
* @response `200` OK
|
|
6402
6332
|
*/
|
|
6403
6333
|
|
|
6404
6334
|
}, {
|
|
6405
|
-
key: "
|
|
6406
|
-
value: function
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
}
|
|
6335
|
+
key: "getTasksForPrototype",
|
|
6336
|
+
value: function getTasksForPrototype(_ref) {
|
|
6337
|
+
let {
|
|
6338
|
+
id
|
|
6339
|
+
} = _ref,
|
|
6340
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
6341
|
+
|
|
6342
|
+
return this.http.get("/scheduler/" + id + "/tasks", query).then(() => {});
|
|
6410
6343
|
}
|
|
6411
6344
|
/**
|
|
6412
6345
|
* No description
|
|
6413
6346
|
*
|
|
6414
|
-
* @tags
|
|
6415
|
-
* @name
|
|
6416
|
-
* @operationId
|
|
6417
|
-
* @summary
|
|
6418
|
-
* @request POST:/scheduler/
|
|
6347
|
+
* @tags RemoteTaskManager
|
|
6348
|
+
* @name StartTask
|
|
6349
|
+
* @operationId RemoteTaskManagerController_StartTask
|
|
6350
|
+
* @summary Starts new Task for TaskPrototype with task id definition.
|
|
6351
|
+
* @request POST:/scheduler/{id}/start/{taskId}
|
|
6419
6352
|
* @response `200` OK
|
|
6420
6353
|
*/
|
|
6421
6354
|
|
|
6422
6355
|
}, {
|
|
6423
|
-
key: "
|
|
6424
|
-
value: function
|
|
6425
|
-
return this.http.post("/scheduler/
|
|
6426
|
-
|
|
6427
|
-
|
|
6356
|
+
key: "startTask",
|
|
6357
|
+
value: function startTask(id, taskId) {
|
|
6358
|
+
return this.http.post("/scheduler/" + id + "/start/" + taskId, null).then(() => {});
|
|
6359
|
+
}
|
|
6360
|
+
/**
|
|
6361
|
+
* No description
|
|
6362
|
+
*
|
|
6363
|
+
* @tags RemoteTaskManager
|
|
6364
|
+
* @name StartTask1
|
|
6365
|
+
* @operationId RemoteTaskManagerController_StartTask_1
|
|
6366
|
+
* @summary Starts new Task for TaskPrototype .
|
|
6367
|
+
* @request POST:/scheduler/{id}/start
|
|
6368
|
+
* @response `200` OK
|
|
6369
|
+
*/
|
|
6370
|
+
|
|
6371
|
+
}, {
|
|
6372
|
+
key: "startTask1",
|
|
6373
|
+
value: function startTask1(id) {
|
|
6374
|
+
return this.http.post("/scheduler/" + id + "/start", null).then(() => {});
|
|
6375
|
+
}
|
|
6376
|
+
/**
|
|
6377
|
+
* No description
|
|
6378
|
+
*
|
|
6379
|
+
* @tags RemoteTaskManager
|
|
6380
|
+
* @name Get1
|
|
6381
|
+
* @operationId RemoteTaskManagerController_Get_1
|
|
6382
|
+
* @summary Shows active workers.
|
|
6383
|
+
* @request GET:/scheduler/worker
|
|
6384
|
+
* @response `200` OK
|
|
6385
|
+
*/
|
|
6386
|
+
|
|
6387
|
+
}, {
|
|
6388
|
+
key: "get1",
|
|
6389
|
+
value: function get1() {
|
|
6390
|
+
return this.http.get("/scheduler/worker").json();
|
|
6391
|
+
}
|
|
6392
|
+
/**
|
|
6393
|
+
* No description
|
|
6394
|
+
*
|
|
6395
|
+
* @tags RemoteTaskManager
|
|
6396
|
+
* @name Post
|
|
6397
|
+
* @operationId RemoteTaskManagerController_Post
|
|
6398
|
+
* @summary Run method by HttpPost.
|
|
6399
|
+
* @request POST:/scheduler/worker
|
|
6400
|
+
* @response `200` OK
|
|
6401
|
+
*/
|
|
6402
|
+
|
|
6403
|
+
}, {
|
|
6404
|
+
key: "post",
|
|
6405
|
+
value: function post(data) {
|
|
6406
|
+
return this.http.post("/scheduler/worker", data).json();
|
|
6428
6407
|
}
|
|
6429
6408
|
}]);
|
|
6430
6409
|
|
|
6431
|
-
return
|
|
6410
|
+
return RemoteTaskManagerService;
|
|
6432
6411
|
}(Service);
|
|
6433
6412
|
|
|
6434
|
-
let
|
|
6435
|
-
_inherits(
|
|
6413
|
+
let RemoteTaskManager = /*#__PURE__*/function (_RemoteTaskManagerSer) {
|
|
6414
|
+
_inherits(RemoteTaskManager, _RemoteTaskManagerSer);
|
|
6436
6415
|
|
|
6437
|
-
var _super = /*#__PURE__*/_createSuper(
|
|
6416
|
+
var _super = /*#__PURE__*/_createSuper(RemoteTaskManager);
|
|
6438
6417
|
|
|
6439
|
-
function
|
|
6440
|
-
_classCallCheck(this,
|
|
6418
|
+
function RemoteTaskManager() {
|
|
6419
|
+
_classCallCheck(this, RemoteTaskManager);
|
|
6441
6420
|
|
|
6442
6421
|
return _super.apply(this, arguments);
|
|
6443
6422
|
}
|
|
6444
6423
|
|
|
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);
|
|
6424
|
+
return _createClass(RemoteTaskManager);
|
|
6425
|
+
}(RemoteTaskManagerService);
|
|
6426
|
+
|
|
6427
|
+
/**
|
|
6428
|
+
* @title Spatial Processing Core API
|
|
6429
|
+
* @version 1.5.1.0
|
|
6430
|
+
* @baseUrl /sp
|
|
6431
|
+
*/
|
|
6432
|
+
|
|
6433
|
+
let ResourceCatalogService = /*#__PURE__*/function (_Service) {
|
|
6434
|
+
_inherits(ResourceCatalogService, _Service);
|
|
6435
|
+
|
|
6436
|
+
var _super = /*#__PURE__*/_createSuper(ResourceCatalogService);
|
|
6437
|
+
|
|
6438
|
+
function ResourceCatalogService() {
|
|
6439
|
+
_classCallCheck(this, ResourceCatalogService);
|
|
6440
|
+
|
|
6441
|
+
return _super.apply(this, arguments);
|
|
6442
|
+
}
|
|
6443
|
+
|
|
6444
|
+
_createClass(ResourceCatalogService, [{
|
|
6445
|
+
key: "checkLimits",
|
|
6446
|
+
value:
|
|
6447
|
+
/**
|
|
6448
|
+
* @description This method requires superuser permission.
|
|
6449
|
+
*
|
|
6450
|
+
* @tags ResourceCatalog
|
|
6451
|
+
* @name CheckLimits
|
|
6452
|
+
* @operationId ResourceCatalogController_CheckLimits
|
|
6453
|
+
* @summary Get limits of workspace.
|
|
6454
|
+
* @request GET:/resources/checkLimits
|
|
6455
|
+
* @response `200` OK
|
|
6456
|
+
*/
|
|
6457
|
+
function checkLimits(query) {
|
|
6458
|
+
return this.http.get("/resources/checkLimits", query).json();
|
|
6500
6459
|
}
|
|
6460
|
+
/**
|
|
6461
|
+
* No description
|
|
6462
|
+
*
|
|
6463
|
+
* @tags ResourceCatalog
|
|
6464
|
+
* @name CopyResources
|
|
6465
|
+
* @operationId ResourceCatalogController_CopyResources
|
|
6466
|
+
* @summary Copy a set of resources.
|
|
6467
|
+
* @request POST:/resources/copy
|
|
6468
|
+
* @response `200` OK
|
|
6469
|
+
*/
|
|
6470
|
+
|
|
6501
6471
|
}, {
|
|
6502
|
-
key: "
|
|
6503
|
-
value:
|
|
6504
|
-
|
|
6505
|
-
taskId
|
|
6506
|
-
} = await this.startOverlayTask(parameters);
|
|
6507
|
-
return this.processTaskId(taskId);
|
|
6472
|
+
key: "copyResources",
|
|
6473
|
+
value: function copyResources(data) {
|
|
6474
|
+
return this.http.post("/resources/copy", data).json();
|
|
6508
6475
|
}
|
|
6509
|
-
}
|
|
6510
|
-
|
|
6511
|
-
|
|
6476
|
+
}]);
|
|
6477
|
+
|
|
6478
|
+
return ResourceCatalogService;
|
|
6479
|
+
}(Service);
|
|
6480
|
+
|
|
6481
|
+
let ResourceCatalog = /*#__PURE__*/function (_ResourceCatalogServi) {
|
|
6482
|
+
_inherits(ResourceCatalog, _ResourceCatalogServi);
|
|
6483
|
+
|
|
6484
|
+
var _super = /*#__PURE__*/_createSuper(ResourceCatalog);
|
|
6485
|
+
|
|
6486
|
+
function ResourceCatalog() {
|
|
6487
|
+
_classCallCheck(this, ResourceCatalog);
|
|
6488
|
+
|
|
6489
|
+
return _super.apply(this, arguments);
|
|
6490
|
+
}
|
|
6491
|
+
|
|
6492
|
+
return _createClass(ResourceCatalog);
|
|
6493
|
+
}(ResourceCatalogService);
|
|
6494
|
+
|
|
6495
|
+
(function (DependencyType) {
|
|
6496
|
+
DependencyType["Layer"] = "Layer";
|
|
6497
|
+
DependencyType["Table"] = "Table";
|
|
6498
|
+
DependencyType["Project"] = "Project";
|
|
6499
|
+
})(exports.DependencyType || (exports.DependencyType = {}));
|
|
6500
|
+
|
|
6501
|
+
let Resources = /*#__PURE__*/function () {
|
|
6502
|
+
function Resources(projects, layers, tables) {
|
|
6503
|
+
_classCallCheck(this, Resources);
|
|
6504
|
+
|
|
6505
|
+
this.projects = projects;
|
|
6506
|
+
this.layers = layers;
|
|
6507
|
+
this.tables = tables;
|
|
6508
|
+
}
|
|
6509
|
+
|
|
6510
|
+
_createClass(Resources, [{
|
|
6511
|
+
key: "getProjectInfosWithDeps",
|
|
6512
|
+
value: async function getProjectInfosWithDeps(projects) {
|
|
6513
|
+
const projectInfos = await this.projects.getProjectInfos(projects);
|
|
6514
|
+
const projectDeps = await this.projects.getProjectsDeps(projects);
|
|
6512
6515
|
const {
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
+
layers,
|
|
6517
|
+
tables
|
|
6518
|
+
} = await this.getDependencies(projectDeps, true, true);
|
|
6519
|
+
return {
|
|
6520
|
+
projects: projectInfos,
|
|
6521
|
+
deps: {
|
|
6522
|
+
layers,
|
|
6523
|
+
tables
|
|
6524
|
+
}
|
|
6525
|
+
};
|
|
6516
6526
|
}
|
|
6517
6527
|
}, {
|
|
6518
|
-
key: "
|
|
6519
|
-
value: async function
|
|
6528
|
+
key: "getLayerInfosWithDeps",
|
|
6529
|
+
value: async function getLayerInfosWithDeps(layers) {
|
|
6530
|
+
const layerInfos = await this.layers.getLayerInfos(layers);
|
|
6531
|
+
const layersDeps = await this.layers.getLayersDeps(layers);
|
|
6520
6532
|
const {
|
|
6521
|
-
|
|
6522
|
-
} = await this.
|
|
6523
|
-
return
|
|
6533
|
+
tables
|
|
6534
|
+
} = await this.getDependencies(layersDeps, false, true);
|
|
6535
|
+
return {
|
|
6536
|
+
layers: layerInfos,
|
|
6537
|
+
deps: {
|
|
6538
|
+
tables
|
|
6539
|
+
}
|
|
6540
|
+
};
|
|
6524
6541
|
}
|
|
6525
6542
|
}, {
|
|
6526
|
-
key: "
|
|
6527
|
-
value: async function
|
|
6543
|
+
key: "getDependencies",
|
|
6544
|
+
value: async function getDependencies(resourceDeps, pickLayers, pickTables) {
|
|
6528
6545
|
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);
|
|
6546
|
+
tables,
|
|
6547
|
+
layers
|
|
6548
|
+
} = resourceDeps.reduce((acc, layerDep) => {
|
|
6549
|
+
const deps = layerDep.dependencies || [];
|
|
6539
6550
|
|
|
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
|
-
};
|
|
6551
|
+
if (pickLayers) {
|
|
6552
|
+
const layerNames = this.getDependentNames(deps, exports.DependencyType.Layer);
|
|
6553
|
+
acc.layers.push(...layerNames);
|
|
6554
|
+
}
|
|
6554
6555
|
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6556
|
+
if (pickTables) {
|
|
6557
|
+
const tableNames = this.getDependentNames(deps, exports.DependencyType.Table);
|
|
6558
|
+
acc.tables.push(...tableNames);
|
|
6559
|
+
}
|
|
6560
|
+
|
|
6561
|
+
return acc;
|
|
6562
|
+
}, {
|
|
6563
|
+
tables: [],
|
|
6564
|
+
layers: []
|
|
6558
6565
|
});
|
|
6566
|
+
return {
|
|
6567
|
+
tables: await this.tables.getTableInfos(tables.filter(unique)),
|
|
6568
|
+
layers: await this.layers.getLayerInfos(layers.filter(unique))
|
|
6569
|
+
};
|
|
6559
6570
|
}
|
|
6560
6571
|
}, {
|
|
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
|
-
}
|
|
6572
|
+
key: "getDependentNames",
|
|
6573
|
+
value: function getDependentNames(deps, depType) {
|
|
6574
|
+
return deps.filter((_ref) => {
|
|
6575
|
+
let {
|
|
6576
|
+
type
|
|
6577
|
+
} = _ref;
|
|
6578
|
+
return type === depType;
|
|
6579
|
+
}).map((_ref2) => {
|
|
6580
|
+
let {
|
|
6581
|
+
name
|
|
6582
|
+
} = _ref2;
|
|
6583
|
+
return name;
|
|
6584
|
+
}).filter(isString);
|
|
6577
6585
|
}
|
|
6578
6586
|
}]);
|
|
6579
6587
|
|
|
6580
|
-
return
|
|
6581
|
-
}(
|
|
6588
|
+
return Resources;
|
|
6589
|
+
}();
|
|
6582
6590
|
|
|
6583
6591
|
/**
|
|
6584
6592
|
* @title Spatial Processing Core API
|
|
@@ -7018,7 +7026,7 @@ let Styles = /*#__PURE__*/function (_StyleService) {
|
|
|
7018
7026
|
return _createClass(Styles);
|
|
7019
7027
|
}(StyleService);
|
|
7020
7028
|
|
|
7021
|
-
const _excluded$
|
|
7029
|
+
const _excluded$8 = ["name"],
|
|
7022
7030
|
_excluded2$4 = ["name"],
|
|
7023
7031
|
_excluded3$3 = ["name"],
|
|
7024
7032
|
_excluded4$2 = ["name"];
|
|
@@ -7200,7 +7208,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
7200
7208
|
let {
|
|
7201
7209
|
name
|
|
7202
7210
|
} = _ref,
|
|
7203
|
-
query = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7211
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
7204
7212
|
|
|
7205
7213
|
return this.http.get("/tables/" + name + "/data", query).json();
|
|
7206
7214
|
}
|
|
@@ -7600,7 +7608,7 @@ let Tools = /*#__PURE__*/function (_ToolsService) {
|
|
|
7600
7608
|
return _createClass(Tools);
|
|
7601
7609
|
}(ToolsService);
|
|
7602
7610
|
|
|
7603
|
-
const _excluded$
|
|
7611
|
+
const _excluded$9 = ["name", "z", "x", "y"];
|
|
7604
7612
|
/**
|
|
7605
7613
|
* @title Spatial Processing Core API
|
|
7606
7614
|
* @version 1.5.1.0
|
|
@@ -7638,7 +7646,7 @@ let VectorTileService = /*#__PURE__*/function (_Service) {
|
|
|
7638
7646
|
x,
|
|
7639
7647
|
y
|
|
7640
7648
|
} = _ref,
|
|
7641
|
-
query = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7649
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
7642
7650
|
|
|
7643
7651
|
return this.http.get("/vt/" + name + "/" + z + "/" + x + "/" + y + ".pbf", query).then(() => {});
|
|
7644
7652
|
}
|
|
@@ -7786,7 +7794,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7786
7794
|
_this.bulk = new BulkOperations(_this.http);
|
|
7787
7795
|
_this.security = new Security(_this.http, _this.account);
|
|
7788
7796
|
_this.notification = new Notification(_this.http, _assertThisInitialized(_this), wsKeepAlive);
|
|
7789
|
-
_this.scheduler = new Scheduler(_this.http);
|
|
7790
7797
|
_this.file = new FileUpload(_this.http);
|
|
7791
7798
|
_this.filters = new Filters(_this.http);
|
|
7792
7799
|
_this.import = new Import(_this.http);
|
|
@@ -7810,6 +7817,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7810
7817
|
_this.catalog = new CatalogService(_this.http);
|
|
7811
7818
|
_this.queryToken = new QueryTokenAccessService(_this.http);
|
|
7812
7819
|
_this.dataSource = new DataSourceService(_this.http);
|
|
7820
|
+
_this.remoteTaskManager = new RemoteTaskManager(_this.http);
|
|
7813
7821
|
_this.names = new Names({
|
|
7814
7822
|
account: _this.account
|
|
7815
7823
|
});
|
|
@@ -7828,7 +7836,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7828
7836
|
authParams,
|
|
7829
7837
|
authQueryParams,
|
|
7830
7838
|
connectWs,
|
|
7831
|
-
initScheduler,
|
|
7832
7839
|
fetchSettings,
|
|
7833
7840
|
fetchUser,
|
|
7834
7841
|
useJwt
|
|
@@ -7845,10 +7852,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7845
7852
|
await this.connectWs();
|
|
7846
7853
|
}
|
|
7847
7854
|
|
|
7848
|
-
if (initScheduler) {
|
|
7849
|
-
await this.initScheduler();
|
|
7850
|
-
}
|
|
7851
|
-
|
|
7852
7855
|
if (fetchSettings) {
|
|
7853
7856
|
await this.clientSettings.fetchClientSettings({
|
|
7854
7857
|
urlPath: getFetchingUrlPath(this.urlPath)
|
|
@@ -7910,11 +7913,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7910
7913
|
await this.security.reset();
|
|
7911
7914
|
this.emit(exports.ApiEvent.Unauthorized, null);
|
|
7912
7915
|
}
|
|
7913
|
-
}, {
|
|
7914
|
-
key: "initScheduler",
|
|
7915
|
-
value: function initScheduler() {
|
|
7916
|
-
return this.scheduler.init(this.notification);
|
|
7917
|
-
}
|
|
7918
7916
|
}, {
|
|
7919
7917
|
key: "defineUrlPath",
|
|
7920
7918
|
value: function defineUrlPath() {
|
|
@@ -7937,355 +7935,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7937
7935
|
return Api;
|
|
7938
7936
|
}(eventEmitter.EventEmitter);
|
|
7939
7937
|
|
|
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
7938
|
/* eslint-disable */
|
|
8290
7939
|
|
|
8291
7940
|
(function (AggregationFunction) {
|
|
@@ -8553,6 +8202,7 @@ function isFeatureLayer(layer) {
|
|
|
8553
8202
|
PolicyType["MaxFeaturesInOneTable"] = "MaxFeaturesInOneTable";
|
|
8554
8203
|
PolicyType["MaxObjectsToExport"] = "MaxObjectsToExport";
|
|
8555
8204
|
PolicyType["MaxUploadContentSize"] = "MaxUploadContentSize";
|
|
8205
|
+
PolicyType["MaxEqlQueryParametersValues"] = "MaxEqlQueryParametersValues";
|
|
8556
8206
|
})(exports.PolicyType || (exports.PolicyType = {}));
|
|
8557
8207
|
|
|
8558
8208
|
(function (Quality) {
|
|
@@ -8577,6 +8227,7 @@ function isFeatureLayer(layer) {
|
|
|
8577
8227
|
ResourceType["File"] = "file";
|
|
8578
8228
|
ResourceType["Feature"] = "feature";
|
|
8579
8229
|
ResourceType["Tag"] = "tag";
|
|
8230
|
+
ResourceType["DataSource"] = "datasource";
|
|
8580
8231
|
})(exports.ResourceType || (exports.ResourceType = {}));
|
|
8581
8232
|
|
|
8582
8233
|
(function (ResourceTypeFilter) {
|
|
@@ -8601,17 +8252,6 @@ function isFeatureLayer(layer) {
|
|
|
8601
8252
|
ResponseType["Token"] = "token";
|
|
8602
8253
|
})(exports.ResponseType || (exports.ResponseType = {}));
|
|
8603
8254
|
|
|
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
8255
|
(function (SimplifyType) {
|
|
8616
8256
|
SimplifyType["Basic"] = "Basic";
|
|
8617
8257
|
SimplifyType["PreserveTopology"] = "PreserveTopology";
|
|
@@ -8625,11 +8265,6 @@ function isFeatureLayer(layer) {
|
|
|
8625
8265
|
StringSubType["Attachments"] = "Attachments";
|
|
8626
8266
|
})(exports.StringSubType || (exports.StringSubType = {}));
|
|
8627
8267
|
|
|
8628
|
-
(function (TaskGroup) {
|
|
8629
|
-
TaskGroup["My"] = "my";
|
|
8630
|
-
TaskGroup["All"] = "all";
|
|
8631
|
-
})(exports.TaskGroup || (exports.TaskGroup = {}));
|
|
8632
|
-
|
|
8633
8268
|
(function (TextAlignment) {
|
|
8634
8269
|
TextAlignment["Right"] = "right";
|
|
8635
8270
|
TextAlignment["Left"] = "left";
|
|
@@ -8643,6 +8278,31 @@ function isFeatureLayer(layer) {
|
|
|
8643
8278
|
TextVerticalAlignment["Middle"] = "middle";
|
|
8644
8279
|
})(exports.TextVerticalAlignment || (exports.TextVerticalAlignment = {}));
|
|
8645
8280
|
|
|
8281
|
+
(function (WorkerMethodType) {
|
|
8282
|
+
WorkerMethodType["Task"] = "Task";
|
|
8283
|
+
WorkerMethodType["Rest"] = "Rest";
|
|
8284
|
+
WorkerMethodType["Both"] = "Both";
|
|
8285
|
+
})(exports.WorkerMethodType || (exports.WorkerMethodType = {}));
|
|
8286
|
+
|
|
8287
|
+
(function (WorkerSettingsFieldType) {
|
|
8288
|
+
WorkerSettingsFieldType["Integer"] = "Integer";
|
|
8289
|
+
WorkerSettingsFieldType["Double"] = "Double";
|
|
8290
|
+
WorkerSettingsFieldType["String"] = "String";
|
|
8291
|
+
WorkerSettingsFieldType["Extent"] = "Extent";
|
|
8292
|
+
WorkerSettingsFieldType["Geometry"] = "Geometry";
|
|
8293
|
+
WorkerSettingsFieldType["IntergerArray"] = "IntergerArray";
|
|
8294
|
+
WorkerSettingsFieldType["DoubleArray"] = "DoubleArray";
|
|
8295
|
+
WorkerSettingsFieldType["StringArray"] = "StringArray";
|
|
8296
|
+
WorkerSettingsFieldType["Boolean"] = "Boolean";
|
|
8297
|
+
WorkerSettingsFieldType["SourceEql"] = "SourceEql";
|
|
8298
|
+
WorkerSettingsFieldType["Layer"] = "Layer";
|
|
8299
|
+
WorkerSettingsFieldType["Table"] = "Table";
|
|
8300
|
+
WorkerSettingsFieldType["Folder"] = "Folder";
|
|
8301
|
+
WorkerSettingsFieldType["Json"] = "Json";
|
|
8302
|
+
WorkerSettingsFieldType["Expression"] = "Expression";
|
|
8303
|
+
WorkerSettingsFieldType["Expressions"] = "Expressions";
|
|
8304
|
+
})(exports.WorkerSettingsFieldType || (exports.WorkerSettingsFieldType = {}));
|
|
8305
|
+
|
|
8646
8306
|
Object.defineProperty(exports, 'HTTPError', {
|
|
8647
8307
|
enumerable: true,
|
|
8648
8308
|
get: function () {
|
|
@@ -8662,8 +8322,6 @@ exports.BulkOperations = BulkOperations;
|
|
|
8662
8322
|
exports.Cameras = Cameras;
|
|
8663
8323
|
exports.ClientSettings = ClientSettings;
|
|
8664
8324
|
exports.Eql = Eql;
|
|
8665
|
-
exports.EvergisDynamicLayer = EvergisDynamicLayer;
|
|
8666
|
-
exports.EvergisTileLayer = EvergisTileLayer;
|
|
8667
8325
|
exports.External = External;
|
|
8668
8326
|
exports.Feedback = Feedback;
|
|
8669
8327
|
exports.FileUpload = FileUpload;
|
|
@@ -8675,7 +8333,6 @@ exports.HttpClient = HttpClient;
|
|
|
8675
8333
|
exports.IceRouter = IceRouter;
|
|
8676
8334
|
exports.Import = Import;
|
|
8677
8335
|
exports.Layers = Layers;
|
|
8678
|
-
exports.LayersManager = LayersManager;
|
|
8679
8336
|
exports.Names = Names;
|
|
8680
8337
|
exports.Namespace = Namespace;
|
|
8681
8338
|
exports.Notification = Notification;
|
|
@@ -8683,13 +8340,12 @@ exports.NotificationEvent = NotificationEvent;
|
|
|
8683
8340
|
exports.PortalSettings = PortalSettings;
|
|
8684
8341
|
exports.Print = Print;
|
|
8685
8342
|
exports.Projects = Projects;
|
|
8343
|
+
exports.RemoteTaskManager = RemoteTaskManager;
|
|
8686
8344
|
exports.ResourceCatalog = ResourceCatalog;
|
|
8687
8345
|
exports.Resources = Resources;
|
|
8688
8346
|
exports.STORAGE_REFRESH_TOKEN_KEY = STORAGE_REFRESH_TOKEN_KEY;
|
|
8689
8347
|
exports.STORAGE_TOKEN_KEY = STORAGE_TOKEN_KEY;
|
|
8690
|
-
exports.Scheduler = Scheduler;
|
|
8691
8348
|
exports.Security = Security;
|
|
8692
|
-
exports.SpatialProcessor = SpatialProcessor;
|
|
8693
8349
|
exports.Statistic = Statistic;
|
|
8694
8350
|
exports.Styles = Styles;
|
|
8695
8351
|
exports.Tables = Tables;
|
|
@@ -8700,12 +8356,8 @@ exports.errorHandler = errorHandler;
|
|
|
8700
8356
|
exports.formDataFromFile = formDataFromFile;
|
|
8701
8357
|
exports.generateId = generateId;
|
|
8702
8358
|
exports.getFetchingUrlPath = getFetchingUrlPath;
|
|
8703
|
-
exports.isEvergisDynamicLayer = isEvergisDynamicLayer;
|
|
8704
|
-
exports.isEvergisTileLayer = isEvergisTileLayer;
|
|
8705
|
-
exports.isFeatureLayer = isFeatureLayer;
|
|
8706
8359
|
exports.isHTTPError = isHTTPError;
|
|
8707
8360
|
exports.isHandledError = isHandledError;
|
|
8708
|
-
exports.isLayer = isLayer;
|
|
8709
8361
|
exports.isProjectContentItems = isProjectContentItems;
|
|
8710
8362
|
exports.isString = isString;
|
|
8711
8363
|
exports.isTileLayerService = isTileLayerService;
|