@evergis/api 3.0.213 → 4.0.0-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.
Files changed (36) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +21 -21
  3. package/dist/Api.d.ts +3 -5
  4. package/dist/__generated__/AccountService.d.ts +2 -2
  5. package/dist/__generated__/DataSourceService.d.ts +46 -2
  6. package/dist/__generated__/EqlService.d.ts +12 -1
  7. package/dist/__generated__/LayersService.d.ts +2 -2
  8. package/dist/__generated__/ProjectsService.d.ts +2 -2
  9. package/dist/__generated__/RemoteTaskManagerService.d.ts +262 -0
  10. package/dist/__generated__/StatisticService.d.ts +2 -2
  11. package/dist/__generated__/TablesService.d.ts +2 -2
  12. package/dist/__generated__/WmsServerService.d.ts +2 -2
  13. package/dist/__generated__/data-contracts.d.ts +539 -661
  14. package/dist/api.cjs.development.js +531 -877
  15. package/dist/api.cjs.development.js.map +1 -1
  16. package/dist/api.cjs.production.min.js +1 -1
  17. package/dist/api.cjs.production.min.js.map +1 -1
  18. package/dist/api.esm.js +740 -1106
  19. package/dist/api.esm.js.map +1 -1
  20. package/dist/index.d.ts +0 -3
  21. package/dist/services/RemoteTaskManager.d.ts +3 -0
  22. package/dist/services/Statistic.d.ts +4 -2
  23. package/dist/services/index.d.ts +1 -1
  24. package/dist/utils/errorHandler.d.ts +1 -1
  25. package/dist/utils/index.d.ts +0 -1
  26. package/package.json +3 -3
  27. package/dist/SpatialProcessor.d.ts +0 -30
  28. package/dist/__generated__/SchedulerService.d.ts +0 -207
  29. package/dist/layers/EvergisDynamicLayer.d.ts +0 -28
  30. package/dist/layers/EvergisTileLayer.d.ts +0 -18
  31. package/dist/layers/LayersManager.d.ts +0 -11
  32. package/dist/layers/index.d.ts +0 -3
  33. package/dist/services/Scheduler.d.ts +0 -20
  34. package/dist/types/EvergisLayer.d.ts +0 -6
  35. package/dist/types/index.d.ts +0 -1
  36. 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,9 +30,6 @@ 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);
39
- Object.defineProperty(Constructor, "prototype", {
40
- writable: false
41
- });
42
33
  return Constructor;
43
34
  }
44
35
 
@@ -72,9 +63,6 @@ function _inherits(subClass, superClass) {
72
63
  configurable: true
73
64
  }
74
65
  });
75
- Object.defineProperty(subClass, "prototype", {
76
- writable: false
77
- });
78
66
  if (superClass) _setPrototypeOf(subClass, superClass);
79
67
  }
80
68
 
@@ -133,8 +121,6 @@ function _assertThisInitialized(self) {
133
121
  function _possibleConstructorReturn(self, call) {
134
122
  if (call && (typeof call === "object" || typeof call === "function")) {
135
123
  return call;
136
- } else if (call !== void 0) {
137
- throw new TypeError("Derived constructors may only return object or undefined");
138
124
  }
139
125
 
140
126
  return _assertThisInitialized(self);
@@ -168,7 +154,7 @@ function _superPropBase(object, property) {
168
154
  return object;
169
155
  }
170
156
 
171
- function _get() {
157
+ function _get(target, property, receiver) {
172
158
  if (typeof Reflect !== "undefined" && Reflect.get) {
173
159
  _get = Reflect.get;
174
160
  } else {
@@ -179,17 +165,17 @@ function _get() {
179
165
  var desc = Object.getOwnPropertyDescriptor(base, property);
180
166
 
181
167
  if (desc.get) {
182
- return desc.get.call(arguments.length < 3 ? target : receiver);
168
+ return desc.get.call(receiver);
183
169
  }
184
170
 
185
171
  return desc.value;
186
172
  };
187
173
  }
188
174
 
189
- return _get.apply(this, arguments);
175
+ return _get(target, property, receiver || target);
190
176
  }
191
177
 
192
- const API_USER_INFO_KEY = '@evergis/user-info';
178
+ const API_USER_INFO_KEY = "@evergis/user-info";
193
179
  const STORAGE_TOKEN_KEY = "evergis-jwt-token";
194
180
  const STORAGE_REFRESH_TOKEN_KEY = "evergis-refresh-token";
195
181
 
@@ -341,8 +327,37 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
341
327
  }
342
328
 
343
329
  _createClass(DataSourceService, [{
344
- key: "getDataSourcesList",
330
+ key: "createArcGisDataSource",
345
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
+ }
346
361
  /**
347
362
  * No description
348
363
  *
@@ -353,7 +368,10 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
353
368
  * @request GET:/ds
354
369
  * @response `200` OK
355
370
  */
356
- function getDataSourcesList(query) {
371
+
372
+ }, {
373
+ key: "getDataSourcesList",
374
+ value: function getDataSourcesList(query) {
357
375
  return this.http.get("/ds", query).json();
358
376
  }
359
377
  /**
@@ -436,6 +454,38 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
436
454
  value: function testConnection(data) {
437
455
  return this.http.post("/ds/testConnection", data).json();
438
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
+ }
439
489
  }]);
440
490
 
441
491
  return DataSourceService;
@@ -1056,7 +1106,7 @@ let AccountService = /*#__PURE__*/function (_Service) {
1056
1106
  return this.http.post("/account/register", data).text();
1057
1107
  }
1058
1108
  /**
1059
- * @description Only for users with SPCore.Security.ISecurityManager.SuperuserRole role.
1109
+ * @description Only for users with SPCore.Security.Abstractions.ISecurityManager.SuperuserRole role.
1060
1110
  *
1061
1111
  * @tags Account
1062
1112
  * @name CreateUser
@@ -1088,7 +1138,7 @@ let AccountService = /*#__PURE__*/function (_Service) {
1088
1138
  return this.http.patch("/account/user", data).then(() => {});
1089
1139
  }
1090
1140
  /**
1091
- * @description Only for users with SPCore.Security.ISecurityManager.SuperuserRole role.
1141
+ * @description Only for users with SPCore.Security.Abstractions.ISecurityManager.SuperuserRole role.
1092
1142
  *
1093
1143
  * @tags Account
1094
1144
  * @name ConfirmEmail
@@ -2326,6 +2376,22 @@ let EqlService = /*#__PURE__*/function (_Service) {
2326
2376
  value: function removeLayerParameterValue(query) {
2327
2377
  return this.http.delete("/eql/removeParam", null, query).then(() => {});
2328
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
+ }
2329
2395
  }]);
2330
2396
 
2331
2397
  return EqlService;
@@ -4836,15 +4902,6 @@ function formDataFromFile(file) {
4836
4902
  return data;
4837
4903
  }
4838
4904
 
4839
- function createGuard(type) {
4840
- return function (typed) {
4841
- if (!typed.type) return false;
4842
- return type.includes(typed.type);
4843
- };
4844
- }
4845
-
4846
- const isLayer = /*#__PURE__*/createGuard(['PostgresLayerService', 'PostgresTileLayerService', 'QueryLayerService']);
4847
-
4848
4905
  function isString(v) {
4849
4906
  return typeof v === 'string';
4850
4907
  }
@@ -5229,8 +5286,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
5229
5286
  || event.code === 4002
5230
5287
  /* InvalidSession */
5231
5288
  ) {
5232
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5233
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5289
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5290
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5234
5291
  _this.connectStatus = exports.ConnectionStatus.Break;
5235
5292
  _this.reconnectTries++;
5236
5293
 
@@ -5937,656 +5994,599 @@ function isProjectContentItems(v) {
5937
5994
  return v !== null && v !== undefined;
5938
5995
  }
5939
5996
 
5997
+ const _excluded$7 = ["id"];
5940
5998
  /**
5941
5999
  * @title Spatial Processing Core API
5942
6000
  * @version 1.5.1.0
5943
6001
  * @baseUrl /sp
5944
6002
  */
5945
6003
 
5946
- let ResourceCatalogService = /*#__PURE__*/function (_Service) {
5947
- _inherits(ResourceCatalogService, _Service);
6004
+ let RemoteTaskManagerService = /*#__PURE__*/function (_Service) {
6005
+ _inherits(RemoteTaskManagerService, _Service);
5948
6006
 
5949
- var _super = /*#__PURE__*/_createSuper(ResourceCatalogService);
6007
+ var _super = /*#__PURE__*/_createSuper(RemoteTaskManagerService);
5950
6008
 
5951
- function ResourceCatalogService() {
5952
- _classCallCheck(this, ResourceCatalogService);
6009
+ function RemoteTaskManagerService() {
6010
+ _classCallCheck(this, RemoteTaskManagerService);
5953
6011
 
5954
6012
  return _super.apply(this, arguments);
5955
6013
  }
5956
6014
 
5957
- _createClass(ResourceCatalogService, [{
5958
- key: "checkLimits",
6015
+ _createClass(RemoteTaskManagerService, [{
6016
+ key: "cancelTask",
5959
6017
  value:
5960
6018
  /**
5961
- * @description This method requires superuser permission.
6019
+ * No description
5962
6020
  *
5963
- * @tags ResourceCatalog
5964
- * @name CheckLimits
5965
- * @operationId ResourceCatalogController_CheckLimits
5966
- * @summary Get limits of workspace.
5967
- * @request GET:/resources/checkLimits
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
5968
6026
  * @response `200` OK
5969
6027
  */
5970
- function checkLimits(query) {
5971
- return this.http.get("/resources/checkLimits", query).json();
6028
+ function cancelTask(id) {
6029
+ return this.http.post("/scheduler/tasks/" + id + "/cancel", null).then(() => {});
5972
6030
  }
5973
6031
  /**
5974
6032
  * No description
5975
6033
  *
5976
- * @tags ResourceCatalog
5977
- * @name CopyResources
5978
- * @operationId ResourceCatalogController_CopyResources
5979
- * @summary Copy a set of resources.
5980
- * @request POST:/resources/copy
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
5981
6039
  * @response `200` OK
5982
6040
  */
5983
6041
 
5984
6042
  }, {
5985
- key: "copyResources",
5986
- value: function copyResources(data) {
5987
- return this.http.post("/resources/copy", data).json();
5988
- }
5989
- }]);
5990
-
5991
- return ResourceCatalogService;
5992
- }(Service);
5993
-
5994
- let ResourceCatalog = /*#__PURE__*/function (_ResourceCatalogServi) {
5995
- _inherits(ResourceCatalog, _ResourceCatalogServi);
5996
-
5997
- var _super = /*#__PURE__*/_createSuper(ResourceCatalog);
5998
-
5999
- function ResourceCatalog() {
6000
- _classCallCheck(this, ResourceCatalog);
6001
-
6002
- return _super.apply(this, arguments);
6003
- }
6004
-
6005
- return _createClass(ResourceCatalog);
6006
- }(ResourceCatalogService);
6007
-
6008
- (function (DependencyType) {
6009
- DependencyType["Layer"] = "Layer";
6010
- DependencyType["Table"] = "Table";
6011
- DependencyType["Project"] = "Project";
6012
- })(exports.DependencyType || (exports.DependencyType = {}));
6013
-
6014
- let Resources = /*#__PURE__*/function () {
6015
- function Resources(projects, layers, tables) {
6016
- _classCallCheck(this, Resources);
6017
-
6018
- this.projects = projects;
6019
- this.layers = layers;
6020
- this.tables = tables;
6021
- }
6022
-
6023
- _createClass(Resources, [{
6024
- key: "getProjectInfosWithDeps",
6025
- value: async function getProjectInfosWithDeps(projects) {
6026
- const projectInfos = await this.projects.getProjectInfos(projects);
6027
- const projectDeps = await this.projects.getProjectsDeps(projects);
6028
- const {
6029
- layers,
6030
- tables
6031
- } = await this.getDependencies(projectDeps, true, true);
6032
- return {
6033
- projects: projectInfos,
6034
- deps: {
6035
- layers,
6036
- tables
6037
- }
6038
- };
6039
- }
6040
- }, {
6041
- key: "getLayerInfosWithDeps",
6042
- value: async function getLayerInfosWithDeps(layers) {
6043
- const layerInfos = await this.layers.getLayerInfos(layers);
6044
- const layersDeps = await this.layers.getLayersDeps(layers);
6045
- const {
6046
- tables
6047
- } = await this.getDependencies(layersDeps, false, true);
6048
- return {
6049
- layers: layerInfos,
6050
- deps: {
6051
- tables
6052
- }
6053
- };
6054
- }
6055
- }, {
6056
- key: "getDependencies",
6057
- value: async function getDependencies(resourceDeps, pickLayers, pickTables) {
6058
- const {
6059
- tables,
6060
- layers
6061
- } = resourceDeps.reduce((acc, layerDep) => {
6062
- const deps = layerDep.dependencies || [];
6063
-
6064
- if (pickLayers) {
6065
- const layerNames = this.getDependentNames(deps, exports.DependencyType.Layer);
6066
- acc.layers.push(...layerNames);
6067
- }
6068
-
6069
- if (pickTables) {
6070
- const tableNames = this.getDependentNames(deps, exports.DependencyType.Table);
6071
- acc.tables.push(...tableNames);
6072
- }
6073
-
6074
- return acc;
6075
- }, {
6076
- tables: [],
6077
- layers: []
6078
- });
6079
- return {
6080
- tables: await this.tables.getTableInfos(tables.filter(unique)),
6081
- layers: await this.layers.getLayerInfos(layers.filter(unique))
6082
- };
6083
- }
6084
- }, {
6085
- key: "getDependentNames",
6086
- value: function getDependentNames(deps, depType) {
6087
- return deps.filter(_ref => {
6088
- let {
6089
- type
6090
- } = _ref;
6091
- return type === depType;
6092
- }).map(_ref2 => {
6093
- let {
6094
- name
6095
- } = _ref2;
6096
- return name;
6097
- }).filter(isString);
6043
+ key: "startCogCreateTask",
6044
+ value: function startCogCreateTask(data) {
6045
+ return this.http.post("/scheduler/tasks", data, {
6046
+ type: 'cogService_create'
6047
+ }).then(() => {});
6098
6048
  }
6099
- }]);
6100
-
6101
- return Resources;
6102
- }();
6103
-
6104
- /**
6105
- * @title Spatial Processing Core API
6106
- * @version 1.5.1.0
6107
- * @baseUrl /sp
6108
- */
6109
-
6110
- let SchedulerService = /*#__PURE__*/function (_Service) {
6111
- _inherits(SchedulerService, _Service);
6112
-
6113
- var _super = /*#__PURE__*/_createSuper(SchedulerService);
6114
-
6115
- function SchedulerService() {
6116
- _classCallCheck(this, SchedulerService);
6117
-
6118
- return _super.apply(this, arguments);
6119
- }
6120
-
6121
- _createClass(SchedulerService, [{
6122
- key: "getTaskList",
6123
- value:
6124
6049
  /**
6125
6050
  * No description
6126
6051
  *
6127
- * @tags SchedulerService
6128
- * @name GetTaskList
6129
- * @operationId SchedulerServiceController_GetTaskList
6130
- * @summary Returns the list of the planned and complete server tasks.
6131
- * @request GET:/scheduler/tasks
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
6132
6057
  * @response `200` OK
6133
6058
  */
6134
- function getTaskList(query) {
6135
- return this.http.get("/scheduler/tasks", query).json();
6059
+
6060
+ }, {
6061
+ key: "startRasterVrtTask",
6062
+ value: function startRasterVrtTask(data) {
6063
+ return this.http.post("/scheduler/tasks", data, {
6064
+ type: 'cogService_vrt'
6065
+ }).then(() => {});
6136
6066
  }
6137
6067
  /**
6138
6068
  * No description
6139
6069
  *
6140
- * @tags SchedulerService
6141
- * @name GetTaskInfo
6142
- * @operationId SchedulerServiceController_GetTaskInfo
6143
- * @summary Returns the information about the server task.
6144
- * @request GET:/scheduler/tasks/{id}
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
6145
6075
  * @response `200` OK
6146
6076
  */
6147
6077
 
6148
6078
  }, {
6149
- key: "getTaskInfo",
6150
- value: function getTaskInfo(id) {
6151
- return this.http.get("/scheduler/tasks/" + id).json();
6079
+ key: "startNetCdfTask",
6080
+ value: function startNetCdfTask(data) {
6081
+ return this.http.post("/scheduler/tasks", data, {
6082
+ type: 'cogService_netcdf'
6083
+ }).then(() => {});
6152
6084
  }
6153
6085
  /**
6154
6086
  * No description
6155
6087
  *
6156
- * @tags SchedulerService
6157
- * @name GetTaskProgress
6158
- * @operationId SchedulerServiceController_GetTaskProgress
6159
- * @summary Returns the progress of server task.
6160
- * @request GET:/scheduler/tasks/{id}/progress
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
6161
6093
  * @response `200` OK
6162
6094
  */
6163
6095
 
6164
6096
  }, {
6165
- key: "getTaskProgress",
6166
- value: function getTaskProgress(id) {
6167
- return this.http.get("/scheduler/tasks/" + id + "/progress").json();
6097
+ key: "startBufferTask",
6098
+ value: function startBufferTask(data) {
6099
+ return this.http.post("/scheduler/tasks", data, {
6100
+ type: 'geoService_buffer'
6101
+ }).then(() => {});
6168
6102
  }
6169
6103
  /**
6170
6104
  * No description
6171
6105
  *
6172
- * @tags SchedulerService
6173
- * @name CancelTask
6174
- * @operationId SchedulerServiceController_CancelTask
6175
- * @summary Cancel task execution by given id.
6176
- * @request POST:/scheduler/tasks/{id}/cancel
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
6177
6111
  * @response `200` OK
6178
6112
  */
6179
6113
 
6180
6114
  }, {
6181
- key: "cancelTask",
6182
- value: function cancelTask(id) {
6183
- return this.http.post("/scheduler/tasks/" + id + "/cancel", null).json();
6115
+ key: "startCopyTableTask",
6116
+ value: function startCopyTableTask(data) {
6117
+ return this.http.post("/scheduler/tasks", data, {
6118
+ type: 'geoService_copy'
6119
+ }).then(() => {});
6184
6120
  }
6185
6121
  /**
6186
6122
  * No description
6187
6123
  *
6188
- * @tags SchedulerService
6189
- * @name StartCopyTask
6190
- * @operationId SchedulerServiceController_StartCopyTask
6191
- * @summary Plans the execution of a 'copy' server task.
6192
- * @request POST:/scheduler/tasks#type=copy
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
6193
6129
  * @response `200` OK
6194
6130
  */
6195
6131
 
6196
6132
  }, {
6197
- key: "startCopyTask",
6198
- value: function startCopyTask(data) {
6133
+ key: "startUnionTask",
6134
+ value: function startUnionTask(data) {
6199
6135
  return this.http.post("/scheduler/tasks", data, {
6200
- type: 'copy'
6201
- }).json();
6136
+ type: 'geoService_union'
6137
+ }).then(() => {});
6202
6138
  }
6203
6139
  /**
6204
6140
  * No description
6205
6141
  *
6206
- * @tags SchedulerService
6207
- * @name StartAggregateTask
6208
- * @operationId SchedulerServiceController_StartAggregateTask
6209
- * @summary Plans the execution of a 'aggregate' server task.
6210
- * @request POST:/scheduler/tasks#type=aggregate
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
6211
6147
  * @response `200` OK
6212
6148
  */
6213
6149
 
6214
6150
  }, {
6215
- key: "startAggregateTask",
6216
- value: function startAggregateTask(data) {
6151
+ key: "startOverlayTask",
6152
+ value: function startOverlayTask(data) {
6217
6153
  return this.http.post("/scheduler/tasks", data, {
6218
- type: 'aggregate'
6219
- }).json();
6154
+ type: 'geoService_overlay'
6155
+ }).then(() => {});
6220
6156
  }
6221
6157
  /**
6222
6158
  * No description
6223
6159
  *
6224
- * @tags SchedulerService
6225
- * @name StartBufferTask
6226
- * @operationId SchedulerServiceController_StartBufferTask
6227
- * @summary Plans the execution of a 'buffer' server task.
6228
- * @request POST:/scheduler/tasks#type=buffer
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
6229
6165
  * @response `200` OK
6230
6166
  */
6231
6167
 
6232
6168
  }, {
6233
- key: "startBufferTask",
6234
- value: function startBufferTask(data) {
6169
+ key: "startCopyTask",
6170
+ value: function startCopyTask(data) {
6235
6171
  return this.http.post("/scheduler/tasks", data, {
6236
- type: 'buffer'
6237
- }).json();
6172
+ type: 'copyTask'
6173
+ }).then(() => {});
6238
6174
  }
6239
6175
  /**
6240
6176
  * No description
6241
6177
  *
6242
- * @tags SchedulerService
6243
- * @name StartPrintTask
6244
- * @operationId SchedulerServiceController_StartPrintTask
6245
- * @summary Plans the execution of a 'print' server task.
6246
- * @request POST:/scheduler/tasks#type=print
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
6247
6183
  * @response `200` OK
6248
6184
  */
6249
6185
 
6250
6186
  }, {
6251
- key: "startPrintTask",
6252
- value: function startPrintTask(data) {
6187
+ key: "startAvailableAreaTask",
6188
+ value: function startAvailableAreaTask(data) {
6253
6189
  return this.http.post("/scheduler/tasks", data, {
6254
- type: 'print'
6255
- }).json();
6190
+ type: 'availabilityArea'
6191
+ }).then(() => {});
6256
6192
  }
6257
6193
  /**
6258
6194
  * No description
6259
6195
  *
6260
- * @tags SchedulerService
6261
- * @name StartTilingTask
6262
- * @operationId SchedulerServiceController_StartTilingTask
6263
- * @summary Plans the execution of a 'tiling' server task.
6264
- * @request POST:/scheduler/tasks#type=tiling
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
6265
6201
  * @response `200` OK
6266
6202
  */
6267
6203
 
6268
6204
  }, {
6269
- key: "startTilingTask",
6270
- value: function startTilingTask(data) {
6205
+ key: "startGeocodeTask",
6206
+ value: function startGeocodeTask(data) {
6271
6207
  return this.http.post("/scheduler/tasks", data, {
6272
- type: 'tiling'
6273
- }).json();
6208
+ type: 'geocodeTask'
6209
+ }).then(() => {});
6274
6210
  }
6275
6211
  /**
6276
6212
  * No description
6277
6213
  *
6278
- * @tags SchedulerService
6279
- * @name StartTilingTask1
6280
- * @operationId SchedulerServiceController_StartTilingTask_1
6281
- * @summary Plans the execution of a 'rasterVrt' server task.
6282
- * @request POST:/scheduler/tasks#type=rasterVrt
6214
+ * @tags RemoteTaskManager
6215
+ * @name Get
6216
+ * @operationId RemoteTaskManagerController_Get
6217
+ * @summary Shows SubTask in Task.
6218
+ * @request GET:/scheduler/task/{id}/subtasks
6283
6219
  * @response `200` OK
6284
6220
  */
6285
6221
 
6286
6222
  }, {
6287
- key: "startTilingTask1",
6288
- value: function startTilingTask1(data) {
6289
- return this.http.post("/scheduler/tasks", data, {
6290
- type: 'rasterVrt'
6291
- }).json();
6223
+ key: "get",
6224
+ value: function get(id) {
6225
+ return this.http.get("/scheduler/task/" + id + "/subtasks").then(() => {});
6292
6226
  }
6293
6227
  /**
6294
6228
  * No description
6295
6229
  *
6296
- * @tags SchedulerService
6297
- * @name StartNetCdfTask
6298
- * @operationId SchedulerServiceController_StartNetCdfTask
6299
- * @summary Plans the execution of a 'netcdf' server task.
6300
- * @request POST:/scheduler/tasks#type=netcdf
6230
+ * @tags RemoteTaskManager
6231
+ * @name Stop
6232
+ * @operationId RemoteTaskManagerController_Stop
6233
+ * @summary Stop the task.
6234
+ * @request POST:/scheduler/task/{id}/stop
6301
6235
  * @response `200` OK
6302
6236
  */
6303
6237
 
6304
6238
  }, {
6305
- key: "startNetCdfTask",
6306
- value: function startNetCdfTask(data) {
6307
- return this.http.post("/scheduler/tasks", data, {
6308
- type: 'netcdf'
6309
- }).json();
6239
+ key: "stop",
6240
+ value: function stop(id) {
6241
+ return this.http.post("/scheduler/task/" + id + "/stop", null).then(() => {});
6310
6242
  }
6311
6243
  /**
6312
6244
  * No description
6313
6245
  *
6314
- * @tags SchedulerService
6315
- * @name StartRouteTask
6316
- * @operationId SchedulerServiceController_StartRouteTask
6317
- * @summary Plans the execution of a 'availability area build' server task.
6318
- * @request POST:/scheduler/tasks#type=route
6246
+ * @tags RemoteTaskManager
6247
+ * @name CreateTaskPrototype
6248
+ * @operationId RemoteTaskManagerController_CreateTaskPrototype
6249
+ * @summary Creates TaskPrototype.
6250
+ * @request POST:/scheduler
6319
6251
  * @response `200` OK
6320
6252
  */
6321
6253
 
6322
6254
  }, {
6323
- key: "startRouteTask",
6324
- value: function startRouteTask(data) {
6325
- return this.http.post("/scheduler/tasks", data, {
6326
- type: 'route'
6327
- }).json();
6255
+ key: "createTaskPrototype",
6256
+ value: function createTaskPrototype(data) {
6257
+ return this.http.post("/scheduler", data).then(() => {});
6328
6258
  }
6329
6259
  /**
6330
6260
  * No description
6331
6261
  *
6332
- * @tags SchedulerService
6333
- * @name StartUnionTask
6334
- * @operationId SchedulerServiceController_StartUnionTask
6335
- * @summary Plans the execution of a 'union' server task.
6336
- * @request POST:/scheduler/tasks#type=union
6262
+ * @tags RemoteTaskManager
6263
+ * @name GetTaskPrototypes
6264
+ * @operationId RemoteTaskManagerController_GetTaskPrototypes
6265
+ * @summary Show TaskPrototypes for user.
6266
+ * @request GET:/scheduler
6337
6267
  * @response `200` OK
6338
6268
  */
6339
6269
 
6340
6270
  }, {
6341
- key: "startUnionTask",
6342
- value: function startUnionTask(data) {
6343
- return this.http.post("/scheduler/tasks", data, {
6344
- type: 'union'
6345
- }).json();
6271
+ key: "getTaskPrototypes",
6272
+ value: function getTaskPrototypes(query) {
6273
+ return this.http.get("/scheduler", query).then(() => {});
6346
6274
  }
6347
6275
  /**
6348
6276
  * No description
6349
6277
  *
6350
- * @tags SchedulerService
6351
- * @name StartOverlayTask
6352
- * @operationId SchedulerServiceController_StartOverlayTask
6353
- * @summary Plans the execution of a 'subtraction' server task.
6354
- * @request POST:/scheduler/tasks#type=overlay
6278
+ * @tags RemoteTaskManager
6279
+ * @name UpdateTaskPrototype
6280
+ * @operationId RemoteTaskManagerController_UpdateTaskPrototype
6281
+ * @summary Updates task prototype.
6282
+ * @request PUT:/scheduler/{id}
6355
6283
  * @response `200` OK
6356
6284
  */
6357
6285
 
6358
6286
  }, {
6359
- key: "startOverlayTask",
6360
- value: function startOverlayTask(data) {
6361
- return this.http.post("/scheduler/tasks", data, {
6362
- type: 'overlay'
6363
- }).json();
6287
+ key: "updateTaskPrototype",
6288
+ value: function updateTaskPrototype(id, data) {
6289
+ return this.http.put("/scheduler/" + id, data).then(() => {});
6364
6290
  }
6365
6291
  /**
6366
6292
  * No description
6367
6293
  *
6368
- * @tags SchedulerService
6369
- * @name StartFilterCopyTask
6370
- * @operationId SchedulerServiceController_StartFilterCopyTask
6371
- * @summary Plans the execution of a 'filter copy' server task.
6372
- * @request POST:/scheduler/tasks#type=filterCopy
6294
+ * @tags RemoteTaskManager
6295
+ * @name Delete
6296
+ * @operationId RemoteTaskManagerController_Delete
6297
+ * @summary Delete task prototype.
6298
+ * @request DELETE:/scheduler/{id}
6373
6299
  * @response `200` OK
6374
6300
  */
6375
6301
 
6376
6302
  }, {
6377
- key: "startFilterCopyTask",
6378
- value: function startFilterCopyTask(data) {
6379
- return this.http.post("/scheduler/tasks", data, {
6380
- type: 'filterCopy'
6381
- }).json();
6303
+ key: "delete",
6304
+ value: function _delete(id) {
6305
+ return this.http.delete("/scheduler/" + id, null).then(() => {});
6382
6306
  }
6383
6307
  /**
6384
6308
  * No description
6385
6309
  *
6386
- * @tags SchedulerService
6387
- * @name StartPipelineTask
6388
- * @operationId SchedulerServiceController_StartPipelineTask
6389
- * @summary Plans the execution of a 'pipeline' server task.
6390
- * @request POST:/scheduler/tasks#type=pipeline
6310
+ * @tags RemoteTaskManager
6311
+ * @name SetEnable
6312
+ * @operationId RemoteTaskManagerController_SetEnable
6313
+ * @summary Enables task prototype.
6314
+ * @request POST:/scheduler/{id}/enable/{enable}
6391
6315
  * @response `200` OK
6392
6316
  */
6393
6317
 
6394
6318
  }, {
6395
- key: "startPipelineTask",
6396
- value: function startPipelineTask(data) {
6397
- return this.http.post("/scheduler/tasks", data, {
6398
- type: 'pipeline'
6399
- }).json();
6319
+ key: "setEnable",
6320
+ value: function setEnable(id, enable) {
6321
+ return this.http.post("/scheduler/" + id + "/enable/" + enable, null).then(() => {});
6400
6322
  }
6401
6323
  /**
6402
6324
  * No description
6403
6325
  *
6404
- * @tags SchedulerService
6405
- * @name StartEditAttributesBatch
6406
- * @operationId SchedulerServiceController_StartEditAttributesBatch
6407
- * @summary Plans the execution of a 'edit attributes' server task.
6408
- * @request POST:/scheduler/tasks#type=editAttributes
6326
+ * @tags RemoteTaskManager
6327
+ * @name GetTasksForPrototype
6328
+ * @operationId RemoteTaskManagerController_GetTasksForPrototype
6329
+ * @summary Shows Tasks that created for TaskPrototype.
6330
+ * @request GET:/scheduler/{id}/tasks
6409
6331
  * @response `200` OK
6410
6332
  */
6411
6333
 
6412
6334
  }, {
6413
- key: "startEditAttributesBatch",
6414
- value: function startEditAttributesBatch(data) {
6415
- return this.http.post("/scheduler/tasks", data, {
6416
- type: 'editAttributes'
6417
- }).json();
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(() => {});
6418
6343
  }
6419
6344
  /**
6420
6345
  * No description
6421
6346
  *
6422
- * @tags SchedulerService
6423
- * @name UniversalSearchTask
6424
- * @operationId SchedulerServiceController_UniversalSearchTask
6425
- * @summary Plans the execution of a 'edit attributes' server task.
6426
- * @request POST:/scheduler/tasks#type=universalSearch
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}
6427
6352
  * @response `200` OK
6428
6353
  */
6429
6354
 
6430
6355
  }, {
6431
- key: "universalSearchTask",
6432
- value: function universalSearchTask(data) {
6433
- return this.http.post("/scheduler/tasks", data, {
6434
- type: 'universalSearch'
6435
- }).json();
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").then(() => {});
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).then(() => {});
6436
6407
  }
6437
6408
  }]);
6438
6409
 
6439
- return SchedulerService;
6410
+ return RemoteTaskManagerService;
6440
6411
  }(Service);
6441
6412
 
6442
- let Scheduler = /*#__PURE__*/function (_SchedulerService) {
6443
- _inherits(Scheduler, _SchedulerService);
6413
+ let RemoteTaskManager = /*#__PURE__*/function (_RemoteTaskManagerSer) {
6414
+ _inherits(RemoteTaskManager, _RemoteTaskManagerSer);
6444
6415
 
6445
- var _super = /*#__PURE__*/_createSuper(Scheduler);
6416
+ var _super = /*#__PURE__*/_createSuper(RemoteTaskManager);
6446
6417
 
6447
- function Scheduler() {
6448
- _classCallCheck(this, Scheduler);
6418
+ function RemoteTaskManager() {
6419
+ _classCallCheck(this, RemoteTaskManager);
6449
6420
 
6450
6421
  return _super.apply(this, arguments);
6451
6422
  }
6452
6423
 
6453
- _createClass(Scheduler, [{
6454
- key: "init",
6455
- value: function init(notification) {
6456
- this.notification = notification;
6457
- return this.notification.subscribe("server_task"
6458
- /* ServerTask */
6459
- );
6460
- }
6461
- }, {
6462
- key: "runCopyTask",
6463
- value: async function runCopyTask(parameters) {
6464
- const {
6465
- taskId
6466
- } = await this.startCopyTask(parameters);
6467
- return this.processTaskId(taskId);
6468
- }
6469
- }, {
6470
- key: "runBufferTask",
6471
- value: async function runBufferTask(parameters) {
6472
- const {
6473
- taskId
6474
- } = await this.startBufferTask(parameters);
6475
- return this.processTaskId(taskId);
6476
- }
6477
- }, {
6478
- key: "runUnionTask",
6479
- value: async function runUnionTask(parameters) {
6480
- const {
6481
- taskId
6482
- } = await this.startUnionTask(parameters);
6483
- return this.processTaskId(taskId);
6484
- }
6485
- }, {
6486
- key: "runPrintTask",
6487
- value: async function runPrintTask(parameters) {
6488
- const {
6489
- taskId
6490
- } = await this.startPrintTask(parameters);
6491
- return this.processTaskId(taskId);
6492
- }
6493
- }, {
6494
- key: "runTilingTask",
6495
- value: async function runTilingTask(parameters) {
6496
- const {
6497
- taskId
6498
- } = await this.startTilingTask(parameters);
6499
- return this.processTaskId(taskId);
6500
- }
6501
- }, {
6502
- key: "runRouteTask",
6503
- value: async function runRouteTask(parameters) {
6504
- const {
6505
- taskId
6506
- } = await this.startRouteTask(parameters);
6507
- 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();
6508
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
+
6509
6471
  }, {
6510
- key: "runOverlayTask",
6511
- value: async function runOverlayTask(parameters) {
6512
- const {
6513
- taskId
6514
- } = await this.startOverlayTask(parameters);
6515
- return this.processTaskId(taskId);
6472
+ key: "copyResources",
6473
+ value: function copyResources(data) {
6474
+ return this.http.post("/resources/copy", data).json();
6516
6475
  }
6517
- }, {
6518
- key: "runFilterCopyTask",
6519
- value: async function runFilterCopyTask(parameters) {
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);
6520
6515
  const {
6521
- taskId
6522
- } = await this.startFilterCopyTask(parameters);
6523
- return this.processTaskId(taskId);
6516
+ layers,
6517
+ tables
6518
+ } = await this.getDependencies(projectDeps, true, true);
6519
+ return {
6520
+ projects: projectInfos,
6521
+ deps: {
6522
+ layers,
6523
+ tables
6524
+ }
6525
+ };
6524
6526
  }
6525
6527
  }, {
6526
- key: "runPipelineTask",
6527
- value: async function runPipelineTask(parameters) {
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);
6528
6532
  const {
6529
- taskId
6530
- } = await this.startPipelineTask(parameters);
6531
- return this.processTaskId(taskId);
6533
+ tables
6534
+ } = await this.getDependencies(layersDeps, false, true);
6535
+ return {
6536
+ layers: layerInfos,
6537
+ deps: {
6538
+ tables
6539
+ }
6540
+ };
6532
6541
  }
6533
6542
  }, {
6534
- key: "runEditAttributesTask",
6535
- value: async function runEditAttributesTask(parameters) {
6543
+ key: "getDependencies",
6544
+ value: async function getDependencies(resourceDeps, pickLayers, pickTables) {
6536
6545
  const {
6537
- taskId
6538
- } = await this.startEditAttributesBatch(parameters);
6539
- return this.processTaskId(taskId);
6540
- }
6541
- }, {
6542
- key: "waitTaskCompleted",
6543
- value: async function waitTaskCompleted(id) {
6544
- return new Promise(async (resolve, reject) => {
6545
- const taskProgress = await this.getTaskProgress(id);
6546
- this.resolveTaskStatus(taskProgress, resolve, reject);
6546
+ tables,
6547
+ layers
6548
+ } = resourceDeps.reduce((acc, layerDep) => {
6549
+ const deps = layerDep.dependencies || [];
6547
6550
 
6548
- const taskResultCallback = async _ref => {
6549
- let {
6550
- data
6551
- } = _ref;
6552
- const taskFinished = data.taskId === id && data.status && ['Completed', 'Failed', 'Canceled'].includes(data.status);
6553
-
6554
- if (taskFinished) {
6555
- const taskProgress = await this.getTaskProgress(id);
6556
- this.notification && this.notification.off("server_task"
6557
- /* ServerTask */
6558
- , taskResultCallback);
6559
- this.resolveTaskStatus(taskProgress, resolve, reject);
6560
- }
6561
- };
6551
+ if (pickLayers) {
6552
+ const layerNames = this.getDependentNames(deps, exports.DependencyType.Layer);
6553
+ acc.layers.push(...layerNames);
6554
+ }
6555
+
6556
+ if (pickTables) {
6557
+ const tableNames = this.getDependentNames(deps, exports.DependencyType.Table);
6558
+ acc.tables.push(...tableNames);
6559
+ }
6562
6560
 
6563
- this.notification && this.notification.on("server_task"
6564
- /* ServerTask */
6565
- , taskResultCallback);
6561
+ return acc;
6562
+ }, {
6563
+ tables: [],
6564
+ layers: []
6566
6565
  });
6566
+ return {
6567
+ tables: await this.tables.getTableInfos(tables.filter(unique)),
6568
+ layers: await this.layers.getLayerInfos(layers.filter(unique))
6569
+ };
6567
6570
  }
6568
6571
  }, {
6569
- key: "resolveTaskStatus",
6570
- value: function resolveTaskStatus(taskProgress, resolve, reject) {
6571
- if (taskProgress.status === 'Completed') {
6572
- resolve(taskProgress);
6573
- } else if (taskProgress.status === 'Failed' || taskProgress.status === 'Canceled') {
6574
- reject(taskProgress.status);
6575
- }
6576
- }
6577
- }, {
6578
- key: "processTaskId",
6579
- value: function processTaskId(taskId) {
6580
- if (taskId) {
6581
- return this.waitTaskCompleted(taskId);
6582
- } else {
6583
- throw new Error("Task was started with no testId");
6584
- }
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);
6585
6585
  }
6586
6586
  }]);
6587
6587
 
6588
- return Scheduler;
6589
- }(SchedulerService);
6588
+ return Resources;
6589
+ }();
6590
6590
 
6591
6591
  /**
6592
6592
  * @title Spatial Processing Core API
@@ -7026,7 +7026,7 @@ let Styles = /*#__PURE__*/function (_StyleService) {
7026
7026
  return _createClass(Styles);
7027
7027
  }(StyleService);
7028
7028
 
7029
- const _excluded$7 = ["name"],
7029
+ const _excluded$8 = ["name"],
7030
7030
  _excluded2$4 = ["name"],
7031
7031
  _excluded3$3 = ["name"],
7032
7032
  _excluded4$2 = ["name"];
@@ -7208,7 +7208,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
7208
7208
  let {
7209
7209
  name
7210
7210
  } = _ref,
7211
- query = _objectWithoutPropertiesLoose(_ref, _excluded$7);
7211
+ query = _objectWithoutPropertiesLoose(_ref, _excluded$8);
7212
7212
 
7213
7213
  return this.http.get("/tables/" + name + "/data", query).json();
7214
7214
  }
@@ -7608,7 +7608,7 @@ let Tools = /*#__PURE__*/function (_ToolsService) {
7608
7608
  return _createClass(Tools);
7609
7609
  }(ToolsService);
7610
7610
 
7611
- const _excluded$8 = ["name", "z", "x", "y"];
7611
+ const _excluded$9 = ["name", "z", "x", "y"];
7612
7612
  /**
7613
7613
  * @title Spatial Processing Core API
7614
7614
  * @version 1.5.1.0
@@ -7646,7 +7646,7 @@ let VectorTileService = /*#__PURE__*/function (_Service) {
7646
7646
  x,
7647
7647
  y
7648
7648
  } = _ref,
7649
- query = _objectWithoutPropertiesLoose(_ref, _excluded$8);
7649
+ query = _objectWithoutPropertiesLoose(_ref, _excluded$9);
7650
7650
 
7651
7651
  return this.http.get("/vt/" + name + "/" + z + "/" + x + "/" + y + ".pbf", query).then(() => {});
7652
7652
  }
@@ -7723,7 +7723,12 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7723
7723
  } = httpOptions || {};
7724
7724
  _this.http = http || new HttpClient(_extends({
7725
7725
  prefixUrl: url,
7726
- timeout: false
7726
+ timeout: false,
7727
+ retry: {
7728
+ methods: ["get", "post", "delete"],
7729
+ limit: 5,
7730
+ statusCodes: [401]
7731
+ }
7727
7732
  }, httpOptions || {}, {
7728
7733
  hooks: _extends({}, hooks || {}, {
7729
7734
  beforeRequest: [request => {
@@ -7732,14 +7737,44 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7732
7737
  if (token) {
7733
7738
  var _request$headers;
7734
7739
 
7735
- (_request$headers = request.headers) == null ? void 0 : _request$headers.set('Authorization', "Bearer " + (token || ''));
7740
+ (_request$headers = request.headers) == null ? void 0 : _request$headers.set("Authorization", "Bearer " + (token || ""));
7736
7741
  }
7737
7742
  }, ...((_hooks$beforeRequest = hooks == null ? void 0 : hooks.beforeRequest) != null ? _hooks$beforeRequest : [])],
7738
- afterResponse: [response => {
7743
+ beforeRetry: [async (_ref2) => {
7744
+ let {
7745
+ request,
7746
+ error,
7747
+ retryCount
7748
+ } = _ref2;
7749
+
7750
+ if (error instanceof ky.HTTPError && error.response.status === 401 && retryCount === 1) {
7751
+ try {
7752
+ const refreshToken = window.localStorage.getItem(STORAGE_REFRESH_TOKEN_KEY);
7753
+
7754
+ if (refreshToken) {
7755
+ var _request$headers2;
7756
+
7757
+ const refreshTokenResponse = await _this.account.refreshToken({
7758
+ refreshToken
7759
+ });
7760
+
7761
+ if (refreshTokenResponse) {
7762
+ window.localStorage.setItem(STORAGE_TOKEN_KEY, refreshTokenResponse.token);
7763
+ window.localStorage.setItem(STORAGE_REFRESH_TOKEN_KEY, refreshTokenResponse.refreshToken);
7764
+ }
7765
+
7766
+ (_request$headers2 = request.headers) == null ? void 0 : _request$headers2.set("Authorization", "Bearer " + (refreshTokenResponse.token || ""));
7767
+ }
7768
+ } catch (error) {
7769
+ throw new Error("Failed to refresh token");
7770
+ }
7771
+ }
7772
+ }],
7773
+ afterResponse: [(request, options, response) => {
7739
7774
  const apiEvent = apiEventsByResponseStatus[response.status];
7740
7775
 
7741
7776
  if (apiEvent) {
7742
- _this.emit(apiEvent, errorHandler(new ky.HTTPError(response)));
7777
+ _this.emit(apiEvent, errorHandler(new ky.HTTPError(response, request, options)));
7743
7778
  }
7744
7779
 
7745
7780
  return response;
@@ -7759,7 +7794,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7759
7794
  _this.bulk = new BulkOperations(_this.http);
7760
7795
  _this.security = new Security(_this.http, _this.account);
7761
7796
  _this.notification = new Notification(_this.http, _assertThisInitialized(_this), wsKeepAlive);
7762
- _this.scheduler = new Scheduler(_this.http);
7763
7797
  _this.file = new FileUpload(_this.http);
7764
7798
  _this.filters = new Filters(_this.http);
7765
7799
  _this.import = new Import(_this.http);
@@ -7783,6 +7817,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7783
7817
  _this.catalog = new CatalogService(_this.http);
7784
7818
  _this.queryToken = new QueryTokenAccessService(_this.http);
7785
7819
  _this.dataSource = new DataSourceService(_this.http);
7820
+ _this.remoteTaskManager = new RemoteTaskManager(_this.http);
7786
7821
  _this.names = new Names({
7787
7822
  account: _this.account
7788
7823
  });
@@ -7796,16 +7831,15 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7796
7831
 
7797
7832
  _createClass(Api, [{
7798
7833
  key: "init",
7799
- value: async function init(_ref2) {
7834
+ value: async function init(_ref3) {
7800
7835
  let {
7801
7836
  authParams,
7802
7837
  authQueryParams,
7803
7838
  connectWs,
7804
- initScheduler,
7805
7839
  fetchSettings,
7806
7840
  fetchUser,
7807
7841
  useJwt
7808
- } = _ref2;
7842
+ } = _ref3;
7809
7843
 
7810
7844
  try {
7811
7845
  await this.account.login(authParams, authQueryParams, useJwt);
@@ -7818,10 +7852,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7818
7852
  await this.connectWs();
7819
7853
  }
7820
7854
 
7821
- if (initScheduler) {
7822
- await this.initScheduler();
7823
- }
7824
-
7825
7855
  if (fetchSettings) {
7826
7856
  await this.clientSettings.fetchClientSettings({
7827
7857
  urlPath: getFetchingUrlPath(this.urlPath)
@@ -7883,11 +7913,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7883
7913
  await this.security.reset();
7884
7914
  this.emit(exports.ApiEvent.Unauthorized, null);
7885
7915
  }
7886
- }, {
7887
- key: "initScheduler",
7888
- value: function initScheduler() {
7889
- return this.scheduler.init(this.notification);
7890
- }
7891
7916
  }, {
7892
7917
  key: "defineUrlPath",
7893
7918
  value: function defineUrlPath() {
@@ -7910,355 +7935,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7910
7935
  return Api;
7911
7936
  }(eventEmitter.EventEmitter);
7912
7937
 
7913
- function generateRandom(min, max) {
7914
- if (min === void 0) {
7915
- min = 0;
7916
- }
7917
-
7918
- if (max === void 0) {
7919
- max = 100;
7920
- }
7921
-
7922
- let difference = max - min;
7923
- let rand = Math.random();
7924
- rand = Math.floor(rand * difference);
7925
- rand = rand + min;
7926
- return rand;
7927
- }
7928
-
7929
- let EvergisTileLayer = /*#__PURE__*/function (_TileLayer) {
7930
- _inherits(EvergisTileLayer, _TileLayer);
7931
-
7932
- var _super = /*#__PURE__*/_createSuper(EvergisTileLayer);
7933
-
7934
- function EvergisTileLayer(configuration, api) {
7935
- var _this;
7936
-
7937
- _classCallCheck(this, EvergisTileLayer);
7938
-
7939
- _this = _super.call(this, '', {
7940
- crs: configuration.crs,
7941
- opacity: configuration.opacity
7942
- });
7943
- _this.api = api;
7944
- _this.name = configuration.name;
7945
- _this.sourceUrl = configuration.sourceUrl;
7946
- _this.subDomains = configuration.subDomains;
7947
- return _this;
7948
- }
7949
-
7950
- _createClass(EvergisTileLayer, [{
7951
- key: "getTileUrl",
7952
- value: function getTileUrl(x, y, level) {
7953
- var _this$subDomains;
7954
-
7955
- const name = this.name;
7956
- const subDomainIndex = this.subDomains ? generateRandom(0, ((_this$subDomains = this.subDomains) == null ? void 0 : _this$subDomains.length) - 1) : undefined;
7957
- 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({
7958
- x,
7959
- y,
7960
- z: level,
7961
- name
7962
- });
7963
- }
7964
- }]);
7965
-
7966
- return EvergisTileLayer;
7967
- }(TileLayer.TileLayer);
7968
-
7969
- const _excluded$9 = ["name", "style", "condition", "dataFilterId", "crs"];
7970
- let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
7971
- _inherits(EvergisDynamicLayer, _DynamicLayer);
7972
-
7973
- var _super = /*#__PURE__*/_createSuper(EvergisDynamicLayer);
7974
-
7975
- function EvergisDynamicLayer(_ref, api) {
7976
- var _this;
7977
-
7978
- let {
7979
- name,
7980
- style,
7981
- condition,
7982
- dataFilterId,
7983
- crs = Crs.webMercator
7984
- } = _ref,
7985
- layerProps = _objectWithoutPropertiesLoose(_ref, _excluded$9);
7986
-
7987
- _classCallCheck(this, EvergisDynamicLayer);
7988
-
7989
- _this = _super.call(this, layerProps);
7990
- _this.api = api;
7991
- _this.name = name;
7992
- _this.styleId = style;
7993
- _this.conditionQuery = condition;
7994
- _this.filterId = dataFilterId;
7995
- _this.crs = crs;
7996
-
7997
- _this.subscribeRedraw();
7998
-
7999
- return _this;
8000
- } // @ts-ignore TODO
8001
-
8002
-
8003
- _createClass(EvergisDynamicLayer, [{
8004
- key: "style",
8005
- get: // @ts-ignore TODO
8006
- function get() {
8007
- return this.styleId;
8008
- } // @ts-ignore TODO
8009
- ,
8010
- set: function set(styleId) {
8011
- this.styleId = styleId;
8012
- this.forceUpdate();
8013
- }
8014
- }, {
8015
- key: "condition",
8016
- get: // @ts-ignore TODO
8017
- function get() {
8018
- return this.conditionQuery;
8019
- } // @ts-ignore TODO
8020
- ,
8021
- set: function set(condition) {
8022
- this.conditionQuery = condition;
8023
- this.forceUpdate();
8024
- }
8025
- }, {
8026
- key: "dataFilterId",
8027
- get: // @ts-ignore TODO
8028
- function get() {
8029
- return this.filterId;
8030
- },
8031
- set: function set(filterId) {
8032
- this.filterId = filterId;
8033
- this.forceUpdate();
8034
- }
8035
- }, {
8036
- key: "getUrl",
8037
- value: function getUrl(bbox, painter) {
8038
- let imgWidth = painter.width;
8039
- let imgHeight = painter.height;
8040
- return this.api.layers.getLayerImage({
8041
- name: this.name,
8042
- extent: bbox.coordinates,
8043
- size: [imgWidth, imgHeight],
8044
- extentSr: bbox.crs.wkid,
8045
- styleId: this.styleId,
8046
- condition: this.conditionQuery,
8047
- dataFilterId: this.filterId
8048
- });
8049
- }
8050
- }, {
8051
- key: "subscribeRedraw",
8052
- value: function subscribeRedraw() {
8053
- this.api.notification.on("service_update"
8054
- /* ServiceUpdate */
8055
- , e => {
8056
- if ((e == null ? void 0 : e.data.layerName) === this.name) {
8057
- this.forceUpdate();
8058
- this.redraw();
8059
- }
8060
- });
8061
- }
8062
- }]);
8063
-
8064
- return EvergisDynamicLayer;
8065
- }(DynamicLayer.DynamicLayer);
8066
-
8067
- const LayerServicesMap = {
8068
- RemoteTileService: EvergisTileLayer,
8069
- LocalTileService: EvergisTileLayer,
8070
- PostgresLayerService: EvergisDynamicLayer,
8071
- StyledFeatureLayer: EvergisDynamicLayer,
8072
- CompositeService: null
8073
- };
8074
-
8075
- const isLayerType = type => Boolean(type && Object.keys(LayerServicesMap).includes(type));
8076
-
8077
- const withServicesPrefix = layerInfo => _extends({}, layerInfo, {
8078
- name: "services/" + layerInfo.name
8079
- });
8080
-
8081
- let LayersManager = /*#__PURE__*/function () {
8082
- function LayersManager(layers, http) {
8083
- _classCallCheck(this, LayersManager);
8084
-
8085
- this.layers = layers;
8086
- this.http = http;
8087
- }
8088
-
8089
- _createClass(LayersManager, [{
8090
- key: "getLayerService",
8091
- value: async function getLayerService(name) {
8092
- let layerInfo = await this.getLayerInfo(name);
8093
- const type = layerInfo.type;
8094
-
8095
- if (!isLayerType(type)) {
8096
- return;
8097
- }
8098
-
8099
- const ServiceCtor = LayerServicesMap[type];
8100
-
8101
- if (ServiceCtor) {
8102
- // @ts-ignore
8103
- return new ServiceCtor(withServicesPrefix(layerInfo), this.http);
8104
- } else {
8105
- throw new Error("Constructor for service type: \"" + layerInfo.type + "\" not implemented");
8106
- }
8107
- }
8108
- }, {
8109
- key: "getLayerInfo",
8110
- value: async function getLayerInfo(name) {
8111
- try {
8112
- return await this.layers.getLayerInfo(name);
8113
- } catch (_unused) {
8114
- throw new Error("Service with name: \"" + name + "\" not exists");
8115
- }
8116
- }
8117
- }]);
8118
-
8119
- return LayersManager;
8120
- }();
8121
-
8122
- var LayersZIndex;
8123
-
8124
- (function (LayersZIndex) {
8125
- LayersZIndex[LayersZIndex["BaseMaps"] = 0] = "BaseMaps";
8126
- LayersZIndex[LayersZIndex["Layers"] = 1] = "Layers";
8127
- })(LayersZIndex || (LayersZIndex = {}));
8128
-
8129
- let SpatialProcessor = /*#__PURE__*/function (_Api) {
8130
- _inherits(SpatialProcessor, _Api);
8131
-
8132
- var _super = /*#__PURE__*/_createSuper(SpatialProcessor);
8133
-
8134
- function SpatialProcessor(mapProps, apiParams, authParams) {
8135
- var _this;
8136
-
8137
- _classCallCheck(this, SpatialProcessor);
8138
-
8139
- _this = _super.call(this, apiParams);
8140
- _this.map = new _Map.Map();
8141
- _this.painter = new DomPainter.DomPainter(_this.map);
8142
- _this.mapProps = mapProps;
8143
- _this.auth = authParams;
8144
- _this.layersManager = new LayersManager(_this.layers, _this.http);
8145
- return _this;
8146
- }
8147
-
8148
- _createClass(SpatialProcessor, [{
8149
- key: "init",
8150
- value: async function init() {
8151
- await _get(_getPrototypeOf(SpatialProcessor.prototype), "init", this).call(this, {
8152
- authParams: this.auth,
8153
- connectWs: true,
8154
- fetchSettings: true,
8155
- initScheduler: true
8156
- });
8157
- const {
8158
- baseService,
8159
- services,
8160
- projectName
8161
- } = this.mapProps;
8162
-
8163
- if (baseService) {
8164
- await this.setBaseMap(baseService);
8165
- }
8166
-
8167
- if (services) {
8168
- await Promise.all(services.map(service => this.addLayer(service)));
8169
- }
8170
-
8171
- if (projectName) {
8172
- await this.loadProject(projectName);
8173
- }
8174
-
8175
- this.setMapProps();
8176
- }
8177
- }, {
8178
- key: "reset",
8179
- value: async function reset() {
8180
- await this.account.logout();
8181
- this.painter.wrapper = null;
8182
- }
8183
- }, {
8184
- key: "addLayer",
8185
- value: async function addLayer(name) {
8186
- await this.insertLayer(name, LayersZIndex.Layers);
8187
- }
8188
- }, {
8189
- key: "setBaseMap",
8190
- value: async function setBaseMap(name) {
8191
- await this.insertLayer(name, LayersZIndex.BaseMaps);
8192
- }
8193
- }, {
8194
- key: "loadProject",
8195
- value: async function loadProject(name) {
8196
- const projectInfo = await this.projects.getProjectInfo(name);
8197
-
8198
- if (!(projectInfo && projectInfo.content)) {
8199
- return;
8200
- }
8201
-
8202
- const {
8203
- baseMapName,
8204
- items
8205
- } = projectInfo.content;
8206
-
8207
- if (baseMapName) {
8208
- await this.setBaseMap(baseMapName);
8209
- }
8210
-
8211
- if (items) {
8212
- const layers = items.map(item => item.name).filter(isString$1);
8213
- await Promise.all(layers.map(layer => this.addLayer(layer)));
8214
- }
8215
- }
8216
- }, {
8217
- key: "insertLayer",
8218
- value: async function insertLayer(name, index) {
8219
- const service = await this.layersManager.getLayerService(name);
8220
-
8221
- if (service) {
8222
- // @ts-ignore
8223
- this.map.insertLayer(service.layer, index);
8224
- }
8225
- }
8226
- }, {
8227
- key: "setMapProps",
8228
- value: function setMapProps() {
8229
- const {
8230
- position,
8231
- centerPoint,
8232
- mapWrapper,
8233
- resolution
8234
- } = this.mapProps;
8235
-
8236
- if (position) {
8237
- this.map.position = position;
8238
- } else if (centerPoint) {
8239
- this.map.centerPoint = centerPoint;
8240
- }
8241
-
8242
- if (resolution) this.map.resolution = resolution;
8243
- if (mapWrapper) this.painter.wrapper = mapWrapper;
8244
- }
8245
- }]);
8246
-
8247
- return SpatialProcessor;
8248
- }(Api);
8249
-
8250
- const isString$1 = s => s !== undefined;
8251
-
8252
- function isEvergisDynamicLayer(layer) {
8253
- return layer instanceof EvergisDynamicLayer;
8254
- }
8255
- function isEvergisTileLayer(layer) {
8256
- return layer instanceof EvergisTileLayer;
8257
- }
8258
- function isFeatureLayer(layer) {
8259
- return layer instanceof sgis.FeatureLayer;
8260
- }
8261
-
8262
7938
  /* eslint-disable */
8263
7939
 
8264
7940
  (function (AggregationFunction) {
@@ -8526,6 +8202,7 @@ function isFeatureLayer(layer) {
8526
8202
  PolicyType["MaxFeaturesInOneTable"] = "MaxFeaturesInOneTable";
8527
8203
  PolicyType["MaxObjectsToExport"] = "MaxObjectsToExport";
8528
8204
  PolicyType["MaxUploadContentSize"] = "MaxUploadContentSize";
8205
+ PolicyType["MaxEqlQueryParametersValues"] = "MaxEqlQueryParametersValues";
8529
8206
  })(exports.PolicyType || (exports.PolicyType = {}));
8530
8207
 
8531
8208
  (function (Quality) {
@@ -8550,6 +8227,7 @@ function isFeatureLayer(layer) {
8550
8227
  ResourceType["File"] = "file";
8551
8228
  ResourceType["Feature"] = "feature";
8552
8229
  ResourceType["Tag"] = "tag";
8230
+ ResourceType["DataSource"] = "datasource";
8553
8231
  })(exports.ResourceType || (exports.ResourceType = {}));
8554
8232
 
8555
8233
  (function (ResourceTypeFilter) {
@@ -8574,17 +8252,6 @@ function isFeatureLayer(layer) {
8574
8252
  ResponseType["Token"] = "token";
8575
8253
  })(exports.ResponseType || (exports.ResponseType = {}));
8576
8254
 
8577
- (function (ServerTaskStatus) {
8578
- ServerTaskStatus["None"] = "None";
8579
- ServerTaskStatus["Scheduled"] = "Scheduled";
8580
- ServerTaskStatus["Planning"] = "Planning";
8581
- ServerTaskStatus["Executing"] = "Executing";
8582
- ServerTaskStatus["Completed"] = "Completed";
8583
- ServerTaskStatus["Failed"] = "Failed";
8584
- ServerTaskStatus["Canceled"] = "Canceled";
8585
- ServerTaskStatus["Timeout"] = "Timeout";
8586
- })(exports.ServerTaskStatus || (exports.ServerTaskStatus = {}));
8587
-
8588
8255
  (function (SimplifyType) {
8589
8256
  SimplifyType["Basic"] = "Basic";
8590
8257
  SimplifyType["PreserveTopology"] = "PreserveTopology";
@@ -8598,11 +8265,6 @@ function isFeatureLayer(layer) {
8598
8265
  StringSubType["Attachments"] = "Attachments";
8599
8266
  })(exports.StringSubType || (exports.StringSubType = {}));
8600
8267
 
8601
- (function (TaskGroup) {
8602
- TaskGroup["My"] = "my";
8603
- TaskGroup["All"] = "all";
8604
- })(exports.TaskGroup || (exports.TaskGroup = {}));
8605
-
8606
8268
  (function (TextAlignment) {
8607
8269
  TextAlignment["Right"] = "right";
8608
8270
  TextAlignment["Left"] = "left";
@@ -8635,8 +8297,6 @@ exports.BulkOperations = BulkOperations;
8635
8297
  exports.Cameras = Cameras;
8636
8298
  exports.ClientSettings = ClientSettings;
8637
8299
  exports.Eql = Eql;
8638
- exports.EvergisDynamicLayer = EvergisDynamicLayer;
8639
- exports.EvergisTileLayer = EvergisTileLayer;
8640
8300
  exports.External = External;
8641
8301
  exports.Feedback = Feedback;
8642
8302
  exports.FileUpload = FileUpload;
@@ -8648,7 +8308,6 @@ exports.HttpClient = HttpClient;
8648
8308
  exports.IceRouter = IceRouter;
8649
8309
  exports.Import = Import;
8650
8310
  exports.Layers = Layers;
8651
- exports.LayersManager = LayersManager;
8652
8311
  exports.Names = Names;
8653
8312
  exports.Namespace = Namespace;
8654
8313
  exports.Notification = Notification;
@@ -8656,13 +8315,12 @@ exports.NotificationEvent = NotificationEvent;
8656
8315
  exports.PortalSettings = PortalSettings;
8657
8316
  exports.Print = Print;
8658
8317
  exports.Projects = Projects;
8318
+ exports.RemoteTaskManager = RemoteTaskManager;
8659
8319
  exports.ResourceCatalog = ResourceCatalog;
8660
8320
  exports.Resources = Resources;
8661
8321
  exports.STORAGE_REFRESH_TOKEN_KEY = STORAGE_REFRESH_TOKEN_KEY;
8662
8322
  exports.STORAGE_TOKEN_KEY = STORAGE_TOKEN_KEY;
8663
- exports.Scheduler = Scheduler;
8664
8323
  exports.Security = Security;
8665
- exports.SpatialProcessor = SpatialProcessor;
8666
8324
  exports.Statistic = Statistic;
8667
8325
  exports.Styles = Styles;
8668
8326
  exports.Tables = Tables;
@@ -8673,12 +8331,8 @@ exports.errorHandler = errorHandler;
8673
8331
  exports.formDataFromFile = formDataFromFile;
8674
8332
  exports.generateId = generateId;
8675
8333
  exports.getFetchingUrlPath = getFetchingUrlPath;
8676
- exports.isEvergisDynamicLayer = isEvergisDynamicLayer;
8677
- exports.isEvergisTileLayer = isEvergisTileLayer;
8678
- exports.isFeatureLayer = isFeatureLayer;
8679
8334
  exports.isHTTPError = isHTTPError;
8680
8335
  exports.isHandledError = isHandledError;
8681
- exports.isLayer = isLayer;
8682
8336
  exports.isProjectContentItems = isProjectContentItems;
8683
8337
  exports.isString = isString;
8684
8338
  exports.isTileLayerService = isTileLayerService;