@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
package/dist/api.esm.js CHANGED
@@ -4,12 +4,6 @@ export { HTTPError, TimeoutError } from 'ky';
4
4
  import { HubConnectionBuilder, HttpTransportType, HubConnectionState } from '@microsoft/signalr';
5
5
  import { stringify } from 'query-string';
6
6
  import { customAlphabet } from 'nanoid';
7
- import { DomPainter } from '@evergis/sgis/es/painters/DomPainter/DomPainter';
8
- import { Map } from '@evergis/sgis/es/Map';
9
- import { TileLayer } from '@evergis/sgis/es/layers/TileLayer';
10
- import { webMercator } from '@evergis/sgis/es/Crs';
11
- import { DynamicLayer } from '@evergis/sgis/es/layers/DynamicLayer';
12
- import { FeatureLayer } from '@evergis/sgis';
13
7
 
14
8
  function _classCallCheck(instance, Constructor) {
15
9
  if (!(instance instanceof Constructor)) {
@@ -30,9 +24,6 @@ function _defineProperties(target, props) {
30
24
  function _createClass(Constructor, protoProps, staticProps) {
31
25
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
32
26
  if (staticProps) _defineProperties(Constructor, staticProps);
33
- Object.defineProperty(Constructor, "prototype", {
34
- writable: false
35
- });
36
27
  return Constructor;
37
28
  }
38
29
 
@@ -66,9 +57,6 @@ function _inherits(subClass, superClass) {
66
57
  configurable: true
67
58
  }
68
59
  });
69
- Object.defineProperty(subClass, "prototype", {
70
- writable: false
71
- });
72
60
  if (superClass) _setPrototypeOf(subClass, superClass);
73
61
  }
74
62
 
@@ -127,8 +115,6 @@ function _assertThisInitialized(self) {
127
115
  function _possibleConstructorReturn(self, call) {
128
116
  if (call && (typeof call === "object" || typeof call === "function")) {
129
117
  return call;
130
- } else if (call !== void 0) {
131
- throw new TypeError("Derived constructors may only return object or undefined");
132
118
  }
133
119
 
134
120
  return _assertThisInitialized(self);
@@ -162,7 +148,7 @@ function _superPropBase(object, property) {
162
148
  return object;
163
149
  }
164
150
 
165
- function _get() {
151
+ function _get(target, property, receiver) {
166
152
  if (typeof Reflect !== "undefined" && Reflect.get) {
167
153
  _get = Reflect.get;
168
154
  } else {
@@ -173,17 +159,17 @@ function _get() {
173
159
  var desc = Object.getOwnPropertyDescriptor(base, property);
174
160
 
175
161
  if (desc.get) {
176
- return desc.get.call(arguments.length < 3 ? target : receiver);
162
+ return desc.get.call(receiver);
177
163
  }
178
164
 
179
165
  return desc.value;
180
166
  };
181
167
  }
182
168
 
183
- return _get.apply(this, arguments);
169
+ return _get(target, property, receiver || target);
184
170
  }
185
171
 
186
- const API_USER_INFO_KEY = '@evergis/user-info';
172
+ const API_USER_INFO_KEY = "@evergis/user-info";
187
173
  const STORAGE_TOKEN_KEY = "evergis-jwt-token";
188
174
  const STORAGE_REFRESH_TOKEN_KEY = "evergis-refresh-token";
189
175
 
@@ -335,8 +321,37 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
335
321
  }
336
322
 
337
323
  _createClass(DataSourceService, [{
338
- key: "getDataSourcesList",
324
+ key: "createArcGisDataSource",
339
325
  value:
326
+ /**
327
+ * No description
328
+ *
329
+ * @tags DataSource
330
+ * @name CreateArcGisDataSource
331
+ * @operationId DataSourceController_CreateArcGisDataSource
332
+ * @summary Create S3 data source.
333
+ * @request POST:/ds/arcgis
334
+ * @response `200` OK
335
+ */
336
+ function createArcGisDataSource(data) {
337
+ return this.http.post("/ds/arcgis", data).then(() => {});
338
+ }
339
+ /**
340
+ * No description
341
+ *
342
+ * @tags DataSource
343
+ * @name UpdateArcGisDataSource
344
+ * @operationId DataSourceController_UpdateArcGisDataSource
345
+ * @summary Update arcgis data source.
346
+ * @request PATCH:/ds/arcgis
347
+ * @response `200` OK
348
+ */
349
+
350
+ }, {
351
+ key: "updateArcGisDataSource",
352
+ value: function updateArcGisDataSource(data) {
353
+ return this.http.patch("/ds/arcgis", data).then(() => {});
354
+ }
340
355
  /**
341
356
  * No description
342
357
  *
@@ -347,7 +362,10 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
347
362
  * @request GET:/ds
348
363
  * @response `200` OK
349
364
  */
350
- function getDataSourcesList(query) {
365
+
366
+ }, {
367
+ key: "getDataSourcesList",
368
+ value: function getDataSourcesList(query) {
351
369
  return this.http.get("/ds", query).json();
352
370
  }
353
371
  /**
@@ -430,6 +448,38 @@ let DataSourceService = /*#__PURE__*/function (_Service) {
430
448
  value: function testConnection(data) {
431
449
  return this.http.post("/ds/testConnection", data).json();
432
450
  }
451
+ /**
452
+ * No description
453
+ *
454
+ * @tags DataSource
455
+ * @name CreateS3DataSource
456
+ * @operationId DataSourceController_CreateS3DataSource
457
+ * @summary Create S3 data source.
458
+ * @request POST:/ds/s3
459
+ * @response `200` OK
460
+ */
461
+
462
+ }, {
463
+ key: "createS3DataSource",
464
+ value: function createS3DataSource(data) {
465
+ return this.http.post("/ds/s3", data).then(() => {});
466
+ }
467
+ /**
468
+ * No description
469
+ *
470
+ * @tags DataSource
471
+ * @name UpdateS3DataSource
472
+ * @operationId DataSourceController_UpdateS3DataSource
473
+ * @summary Create S3 data source.
474
+ * @request PATCH:/ds/s3
475
+ * @response `200` OK
476
+ */
477
+
478
+ }, {
479
+ key: "updateS3DataSource",
480
+ value: function updateS3DataSource(data) {
481
+ return this.http.patch("/ds/s3", data).then(() => {});
482
+ }
433
483
  }]);
434
484
 
435
485
  return DataSourceService;
@@ -1052,7 +1102,7 @@ let AccountService = /*#__PURE__*/function (_Service) {
1052
1102
  return this.http.post("/account/register", data).text();
1053
1103
  }
1054
1104
  /**
1055
- * @description Only for users with SPCore.Security.ISecurityManager.SuperuserRole role.
1105
+ * @description Only for users with SPCore.Security.Abstractions.ISecurityManager.SuperuserRole role.
1056
1106
  *
1057
1107
  * @tags Account
1058
1108
  * @name CreateUser
@@ -1084,7 +1134,7 @@ let AccountService = /*#__PURE__*/function (_Service) {
1084
1134
  return this.http.patch("/account/user", data).then(() => {});
1085
1135
  }
1086
1136
  /**
1087
- * @description Only for users with SPCore.Security.ISecurityManager.SuperuserRole role.
1137
+ * @description Only for users with SPCore.Security.Abstractions.ISecurityManager.SuperuserRole role.
1088
1138
  *
1089
1139
  * @tags Account
1090
1140
  * @name ConfirmEmail
@@ -2322,6 +2372,22 @@ let EqlService = /*#__PURE__*/function (_Service) {
2322
2372
  value: function removeLayerParameterValue(query) {
2323
2373
  return this.http.delete("/eql/removeParam", null, query).then(() => {});
2324
2374
  }
2375
+ /**
2376
+ * No description
2377
+ *
2378
+ * @tags Eql
2379
+ * @name GetAvailiableLayerParameters
2380
+ * @operationId EqlController_GetAvailiableLayerParameters
2381
+ * @summary Get availiable layer parameters values.
2382
+ * @request GET:/eql/getAvailiableParams
2383
+ * @response `200` OK
2384
+ */
2385
+
2386
+ }, {
2387
+ key: "getAvailiableLayerParameters",
2388
+ value: function getAvailiableLayerParameters(query) {
2389
+ return this.http.get("/eql/getAvailiableParams", query).json();
2390
+ }
2325
2391
  }]);
2326
2392
 
2327
2393
  return EqlService;
@@ -4834,15 +4900,6 @@ function formDataFromFile(file) {
4834
4900
  return data;
4835
4901
  }
4836
4902
 
4837
- function createGuard(type) {
4838
- return function (typed) {
4839
- if (!typed.type) return false;
4840
- return type.includes(typed.type);
4841
- };
4842
- }
4843
-
4844
- const isLayer = /*#__PURE__*/createGuard(['PostgresLayerService', 'PostgresTileLayerService', 'QueryLayerService']);
4845
-
4846
4903
  function isString(v) {
4847
4904
  return typeof v === 'string';
4848
4905
  }
@@ -5230,8 +5287,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
5230
5287
  || event.code === 4002
5231
5288
  /* InvalidSession */
5232
5289
  ) {
5233
- _this.connectStatus = ConnectionStatus.SessionClosed;
5234
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5290
+ _this.connectStatus = ConnectionStatus.SessionClosed;
5291
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5235
5292
  _this.connectStatus = ConnectionStatus.Break;
5236
5293
  _this.reconnectTries++;
5237
5294
 
@@ -5938,658 +5995,601 @@ function isProjectContentItems(v) {
5938
5995
  return v !== null && v !== undefined;
5939
5996
  }
5940
5997
 
5998
+ const _excluded$7 = ["id"];
5941
5999
  /**
5942
6000
  * @title Spatial Processing Core API
5943
6001
  * @version 1.5.1.0
5944
6002
  * @baseUrl /sp
5945
6003
  */
5946
6004
 
5947
- let ResourceCatalogService = /*#__PURE__*/function (_Service) {
5948
- _inherits(ResourceCatalogService, _Service);
6005
+ let RemoteTaskManagerService = /*#__PURE__*/function (_Service) {
6006
+ _inherits(RemoteTaskManagerService, _Service);
5949
6007
 
5950
- var _super = /*#__PURE__*/_createSuper(ResourceCatalogService);
6008
+ var _super = /*#__PURE__*/_createSuper(RemoteTaskManagerService);
5951
6009
 
5952
- function ResourceCatalogService() {
5953
- _classCallCheck(this, ResourceCatalogService);
6010
+ function RemoteTaskManagerService() {
6011
+ _classCallCheck(this, RemoteTaskManagerService);
5954
6012
 
5955
6013
  return _super.apply(this, arguments);
5956
6014
  }
5957
6015
 
5958
- _createClass(ResourceCatalogService, [{
5959
- key: "checkLimits",
6016
+ _createClass(RemoteTaskManagerService, [{
6017
+ key: "cancelTask",
5960
6018
  value:
5961
6019
  /**
5962
- * @description This method requires superuser permission.
6020
+ * No description
5963
6021
  *
5964
- * @tags ResourceCatalog
5965
- * @name CheckLimits
5966
- * @operationId ResourceCatalogController_CheckLimits
5967
- * @summary Get limits of workspace.
5968
- * @request GET:/resources/checkLimits
6022
+ * @tags RemoteTaskManager
6023
+ * @name CancelTask
6024
+ * @operationId RemoteTaskManagerController_CancelTask
6025
+ * @summary Cancel task execution by given id.
6026
+ * @request POST:/scheduler/tasks/{id}/cancel
5969
6027
  * @response `200` OK
5970
6028
  */
5971
- function checkLimits(query) {
5972
- return this.http.get("/resources/checkLimits", query).json();
6029
+ function cancelTask(id) {
6030
+ return this.http.post("/scheduler/tasks/" + id + "/cancel", null).then(() => {});
5973
6031
  }
5974
6032
  /**
5975
6033
  * No description
5976
6034
  *
5977
- * @tags ResourceCatalog
5978
- * @name CopyResources
5979
- * @operationId ResourceCatalogController_CopyResources
5980
- * @summary Copy a set of resources.
5981
- * @request POST:/resources/copy
6035
+ * @tags RemoteTaskManager
6036
+ * @name StartCogCreateTask
6037
+ * @operationId RemoteTaskManagerController_StartCogCreateTask
6038
+ * @summary Plans the execution of a 'create raster cog' server task.
6039
+ * @request POST:/scheduler/tasks#type=cogService_create
5982
6040
  * @response `200` OK
5983
6041
  */
5984
6042
 
5985
6043
  }, {
5986
- key: "copyResources",
5987
- value: function copyResources(data) {
5988
- return this.http.post("/resources/copy", data).json();
5989
- }
5990
- }]);
5991
-
5992
- return ResourceCatalogService;
5993
- }(Service);
5994
-
5995
- let ResourceCatalog = /*#__PURE__*/function (_ResourceCatalogServi) {
5996
- _inherits(ResourceCatalog, _ResourceCatalogServi);
5997
-
5998
- var _super = /*#__PURE__*/_createSuper(ResourceCatalog);
5999
-
6000
- function ResourceCatalog() {
6001
- _classCallCheck(this, ResourceCatalog);
6002
-
6003
- return _super.apply(this, arguments);
6004
- }
6005
-
6006
- return _createClass(ResourceCatalog);
6007
- }(ResourceCatalogService);
6008
-
6009
- var DependencyType;
6010
-
6011
- (function (DependencyType) {
6012
- DependencyType["Layer"] = "Layer";
6013
- DependencyType["Table"] = "Table";
6014
- DependencyType["Project"] = "Project";
6015
- })(DependencyType || (DependencyType = {}));
6016
-
6017
- let Resources = /*#__PURE__*/function () {
6018
- function Resources(projects, layers, tables) {
6019
- _classCallCheck(this, Resources);
6020
-
6021
- this.projects = projects;
6022
- this.layers = layers;
6023
- this.tables = tables;
6024
- }
6025
-
6026
- _createClass(Resources, [{
6027
- key: "getProjectInfosWithDeps",
6028
- value: async function getProjectInfosWithDeps(projects) {
6029
- const projectInfos = await this.projects.getProjectInfos(projects);
6030
- const projectDeps = await this.projects.getProjectsDeps(projects);
6031
- const {
6032
- layers,
6033
- tables
6034
- } = await this.getDependencies(projectDeps, true, true);
6035
- return {
6036
- projects: projectInfos,
6037
- deps: {
6038
- layers,
6039
- tables
6040
- }
6041
- };
6042
- }
6043
- }, {
6044
- key: "getLayerInfosWithDeps",
6045
- value: async function getLayerInfosWithDeps(layers) {
6046
- const layerInfos = await this.layers.getLayerInfos(layers);
6047
- const layersDeps = await this.layers.getLayersDeps(layers);
6048
- const {
6049
- tables
6050
- } = await this.getDependencies(layersDeps, false, true);
6051
- return {
6052
- layers: layerInfos,
6053
- deps: {
6054
- tables
6055
- }
6056
- };
6057
- }
6058
- }, {
6059
- key: "getDependencies",
6060
- value: async function getDependencies(resourceDeps, pickLayers, pickTables) {
6061
- const {
6062
- tables,
6063
- layers
6064
- } = resourceDeps.reduce((acc, layerDep) => {
6065
- const deps = layerDep.dependencies || [];
6066
-
6067
- if (pickLayers) {
6068
- const layerNames = this.getDependentNames(deps, DependencyType.Layer);
6069
- acc.layers.push(...layerNames);
6070
- }
6071
-
6072
- if (pickTables) {
6073
- const tableNames = this.getDependentNames(deps, DependencyType.Table);
6074
- acc.tables.push(...tableNames);
6075
- }
6076
-
6077
- return acc;
6078
- }, {
6079
- tables: [],
6080
- layers: []
6081
- });
6082
- return {
6083
- tables: await this.tables.getTableInfos(tables.filter(unique)),
6084
- layers: await this.layers.getLayerInfos(layers.filter(unique))
6085
- };
6086
- }
6087
- }, {
6088
- key: "getDependentNames",
6089
- value: function getDependentNames(deps, depType) {
6090
- return deps.filter(_ref => {
6091
- let {
6092
- type
6093
- } = _ref;
6094
- return type === depType;
6095
- }).map(_ref2 => {
6096
- let {
6097
- name
6098
- } = _ref2;
6099
- return name;
6100
- }).filter(isString);
6044
+ key: "startCogCreateTask",
6045
+ value: function startCogCreateTask(data) {
6046
+ return this.http.post("/scheduler/tasks", data, {
6047
+ type: 'cogService_create'
6048
+ }).then(() => {});
6101
6049
  }
6102
- }]);
6103
-
6104
- return Resources;
6105
- }();
6106
-
6107
- /**
6108
- * @title Spatial Processing Core API
6109
- * @version 1.5.1.0
6110
- * @baseUrl /sp
6111
- */
6112
-
6113
- let SchedulerService = /*#__PURE__*/function (_Service) {
6114
- _inherits(SchedulerService, _Service);
6115
-
6116
- var _super = /*#__PURE__*/_createSuper(SchedulerService);
6117
-
6118
- function SchedulerService() {
6119
- _classCallCheck(this, SchedulerService);
6120
-
6121
- return _super.apply(this, arguments);
6122
- }
6123
-
6124
- _createClass(SchedulerService, [{
6125
- key: "getTaskList",
6126
- value:
6127
6050
  /**
6128
6051
  * No description
6129
6052
  *
6130
- * @tags SchedulerService
6131
- * @name GetTaskList
6132
- * @operationId SchedulerServiceController_GetTaskList
6133
- * @summary Returns the list of the planned and complete server tasks.
6134
- * @request GET:/scheduler/tasks
6053
+ * @tags RemoteTaskManager
6054
+ * @name StartRasterVrtTask
6055
+ * @operationId RemoteTaskManagerController_StartRasterVrtTask
6056
+ * @summary Plans the execution of a 'create raster vrt' server task.
6057
+ * @request POST:/scheduler/tasks#type=cogService_vrt
6135
6058
  * @response `200` OK
6136
6059
  */
6137
- function getTaskList(query) {
6138
- return this.http.get("/scheduler/tasks", query).json();
6060
+
6061
+ }, {
6062
+ key: "startRasterVrtTask",
6063
+ value: function startRasterVrtTask(data) {
6064
+ return this.http.post("/scheduler/tasks", data, {
6065
+ type: 'cogService_vrt'
6066
+ }).then(() => {});
6139
6067
  }
6140
6068
  /**
6141
6069
  * No description
6142
6070
  *
6143
- * @tags SchedulerService
6144
- * @name GetTaskInfo
6145
- * @operationId SchedulerServiceController_GetTaskInfo
6146
- * @summary Returns the information about the server task.
6147
- * @request GET:/scheduler/tasks/{id}
6071
+ * @tags RemoteTaskManager
6072
+ * @name StartNetCdfTask
6073
+ * @operationId RemoteTaskManagerController_StartNetCdfTask
6074
+ * @summary Plans the execution of a 'create raster netcdf' server task.
6075
+ * @request POST:/scheduler/tasks#type=cogService_netcdf
6148
6076
  * @response `200` OK
6149
6077
  */
6150
6078
 
6151
6079
  }, {
6152
- key: "getTaskInfo",
6153
- value: function getTaskInfo(id) {
6154
- return this.http.get("/scheduler/tasks/" + id).json();
6080
+ key: "startNetCdfTask",
6081
+ value: function startNetCdfTask(data) {
6082
+ return this.http.post("/scheduler/tasks", data, {
6083
+ type: 'cogService_netcdf'
6084
+ }).then(() => {});
6155
6085
  }
6156
6086
  /**
6157
6087
  * No description
6158
6088
  *
6159
- * @tags SchedulerService
6160
- * @name GetTaskProgress
6161
- * @operationId SchedulerServiceController_GetTaskProgress
6162
- * @summary Returns the progress of server task.
6163
- * @request GET:/scheduler/tasks/{id}/progress
6089
+ * @tags RemoteTaskManager
6090
+ * @name StartBufferTask
6091
+ * @operationId RemoteTaskManagerController_StartBufferTask
6092
+ * @summary Plans the execution of a 'create buffers' server task.
6093
+ * @request POST:/scheduler/tasks#type=geoService_buffer
6164
6094
  * @response `200` OK
6165
6095
  */
6166
6096
 
6167
6097
  }, {
6168
- key: "getTaskProgress",
6169
- value: function getTaskProgress(id) {
6170
- return this.http.get("/scheduler/tasks/" + id + "/progress").json();
6098
+ key: "startBufferTask",
6099
+ value: function startBufferTask(data) {
6100
+ return this.http.post("/scheduler/tasks", data, {
6101
+ type: 'geoService_buffer'
6102
+ }).then(() => {});
6171
6103
  }
6172
6104
  /**
6173
6105
  * No description
6174
6106
  *
6175
- * @tags SchedulerService
6176
- * @name CancelTask
6177
- * @operationId SchedulerServiceController_CancelTask
6178
- * @summary Cancel task execution by given id.
6179
- * @request POST:/scheduler/tasks/{id}/cancel
6107
+ * @tags RemoteTaskManager
6108
+ * @name StartCopyTableTask
6109
+ * @operationId RemoteTaskManagerController_StartCopyTableTask
6110
+ * @summary Plans the execution of a 'copy table' server task.
6111
+ * @request POST:/scheduler/tasks#type=geoService_copy
6180
6112
  * @response `200` OK
6181
6113
  */
6182
6114
 
6183
6115
  }, {
6184
- key: "cancelTask",
6185
- value: function cancelTask(id) {
6186
- return this.http.post("/scheduler/tasks/" + id + "/cancel", null).json();
6116
+ key: "startCopyTableTask",
6117
+ value: function startCopyTableTask(data) {
6118
+ return this.http.post("/scheduler/tasks", data, {
6119
+ type: 'geoService_copy'
6120
+ }).then(() => {});
6187
6121
  }
6188
6122
  /**
6189
6123
  * No description
6190
6124
  *
6191
- * @tags SchedulerService
6192
- * @name StartCopyTask
6193
- * @operationId SchedulerServiceController_StartCopyTask
6194
- * @summary Plans the execution of a 'copy' server task.
6195
- * @request POST:/scheduler/tasks#type=copy
6125
+ * @tags RemoteTaskManager
6126
+ * @name StartUnionTask
6127
+ * @operationId RemoteTaskManagerController_StartUnionTask
6128
+ * @summary Plans the execution of a 'create union' server task.
6129
+ * @request POST:/scheduler/tasks#type=geoService_union
6196
6130
  * @response `200` OK
6197
6131
  */
6198
6132
 
6199
6133
  }, {
6200
- key: "startCopyTask",
6201
- value: function startCopyTask(data) {
6134
+ key: "startUnionTask",
6135
+ value: function startUnionTask(data) {
6202
6136
  return this.http.post("/scheduler/tasks", data, {
6203
- type: 'copy'
6204
- }).json();
6137
+ type: 'geoService_union'
6138
+ }).then(() => {});
6205
6139
  }
6206
6140
  /**
6207
6141
  * No description
6208
6142
  *
6209
- * @tags SchedulerService
6210
- * @name StartAggregateTask
6211
- * @operationId SchedulerServiceController_StartAggregateTask
6212
- * @summary Plans the execution of a 'aggregate' server task.
6213
- * @request POST:/scheduler/tasks#type=aggregate
6143
+ * @tags RemoteTaskManager
6144
+ * @name StartOverlayTask
6145
+ * @operationId RemoteTaskManagerController_StartOverlayTask
6146
+ * @summary Plans the execution of a 'create overlay' server task.
6147
+ * @request POST:/scheduler/tasks#type=geoService_overlay
6214
6148
  * @response `200` OK
6215
6149
  */
6216
6150
 
6217
6151
  }, {
6218
- key: "startAggregateTask",
6219
- value: function startAggregateTask(data) {
6152
+ key: "startOverlayTask",
6153
+ value: function startOverlayTask(data) {
6220
6154
  return this.http.post("/scheduler/tasks", data, {
6221
- type: 'aggregate'
6222
- }).json();
6155
+ type: 'geoService_overlay'
6156
+ }).then(() => {});
6223
6157
  }
6224
6158
  /**
6225
6159
  * No description
6226
6160
  *
6227
- * @tags SchedulerService
6228
- * @name StartBufferTask
6229
- * @operationId SchedulerServiceController_StartBufferTask
6230
- * @summary Plans the execution of a 'buffer' server task.
6231
- * @request POST:/scheduler/tasks#type=buffer
6161
+ * @tags RemoteTaskManager
6162
+ * @name StartCopyTask
6163
+ * @operationId RemoteTaskManagerController_StartCopyTask
6164
+ * @summary Plans the execution of a 'copy storages' server task.
6165
+ * @request POST:/scheduler/tasks#type=copyTask
6232
6166
  * @response `200` OK
6233
6167
  */
6234
6168
 
6235
6169
  }, {
6236
- key: "startBufferTask",
6237
- value: function startBufferTask(data) {
6170
+ key: "startCopyTask",
6171
+ value: function startCopyTask(data) {
6238
6172
  return this.http.post("/scheduler/tasks", data, {
6239
- type: 'buffer'
6240
- }).json();
6173
+ type: 'copyTask'
6174
+ }).then(() => {});
6241
6175
  }
6242
6176
  /**
6243
6177
  * No description
6244
6178
  *
6245
- * @tags SchedulerService
6246
- * @name StartPrintTask
6247
- * @operationId SchedulerServiceController_StartPrintTask
6248
- * @summary Plans the execution of a 'print' server task.
6249
- * @request POST:/scheduler/tasks#type=print
6179
+ * @tags RemoteTaskManager
6180
+ * @name StartAvailableAreaTask
6181
+ * @operationId RemoteTaskManagerController_StartAvailableAreaTask
6182
+ * @summary Plans the execution of a 'create available area' server task.
6183
+ * @request POST:/scheduler/tasks#type=availabilityArea
6250
6184
  * @response `200` OK
6251
6185
  */
6252
6186
 
6253
6187
  }, {
6254
- key: "startPrintTask",
6255
- value: function startPrintTask(data) {
6188
+ key: "startAvailableAreaTask",
6189
+ value: function startAvailableAreaTask(data) {
6256
6190
  return this.http.post("/scheduler/tasks", data, {
6257
- type: 'print'
6258
- }).json();
6191
+ type: 'availabilityArea'
6192
+ }).then(() => {});
6259
6193
  }
6260
6194
  /**
6261
6195
  * No description
6262
6196
  *
6263
- * @tags SchedulerService
6264
- * @name StartTilingTask
6265
- * @operationId SchedulerServiceController_StartTilingTask
6266
- * @summary Plans the execution of a 'tiling' server task.
6267
- * @request POST:/scheduler/tasks#type=tiling
6197
+ * @tags RemoteTaskManager
6198
+ * @name StartGeocodeTask
6199
+ * @operationId RemoteTaskManagerController_StartGeocodeTask
6200
+ * @summary Plans the execution of a 'geocode' server task.
6201
+ * @request POST:/scheduler/tasks#type=geocodeTask
6268
6202
  * @response `200` OK
6269
6203
  */
6270
6204
 
6271
6205
  }, {
6272
- key: "startTilingTask",
6273
- value: function startTilingTask(data) {
6206
+ key: "startGeocodeTask",
6207
+ value: function startGeocodeTask(data) {
6274
6208
  return this.http.post("/scheduler/tasks", data, {
6275
- type: 'tiling'
6276
- }).json();
6209
+ type: 'geocodeTask'
6210
+ }).then(() => {});
6277
6211
  }
6278
6212
  /**
6279
6213
  * No description
6280
6214
  *
6281
- * @tags SchedulerService
6282
- * @name StartTilingTask1
6283
- * @operationId SchedulerServiceController_StartTilingTask_1
6284
- * @summary Plans the execution of a 'rasterVrt' server task.
6285
- * @request POST:/scheduler/tasks#type=rasterVrt
6215
+ * @tags RemoteTaskManager
6216
+ * @name Get
6217
+ * @operationId RemoteTaskManagerController_Get
6218
+ * @summary Shows SubTask in Task.
6219
+ * @request GET:/scheduler/task/{id}/subtasks
6286
6220
  * @response `200` OK
6287
6221
  */
6288
6222
 
6289
6223
  }, {
6290
- key: "startTilingTask1",
6291
- value: function startTilingTask1(data) {
6292
- return this.http.post("/scheduler/tasks", data, {
6293
- type: 'rasterVrt'
6294
- }).json();
6224
+ key: "get",
6225
+ value: function get(id) {
6226
+ return this.http.get("/scheduler/task/" + id + "/subtasks").then(() => {});
6295
6227
  }
6296
6228
  /**
6297
6229
  * No description
6298
6230
  *
6299
- * @tags SchedulerService
6300
- * @name StartNetCdfTask
6301
- * @operationId SchedulerServiceController_StartNetCdfTask
6302
- * @summary Plans the execution of a 'netcdf' server task.
6303
- * @request POST:/scheduler/tasks#type=netcdf
6231
+ * @tags RemoteTaskManager
6232
+ * @name Stop
6233
+ * @operationId RemoteTaskManagerController_Stop
6234
+ * @summary Stop the task.
6235
+ * @request POST:/scheduler/task/{id}/stop
6304
6236
  * @response `200` OK
6305
6237
  */
6306
6238
 
6307
6239
  }, {
6308
- key: "startNetCdfTask",
6309
- value: function startNetCdfTask(data) {
6310
- return this.http.post("/scheduler/tasks", data, {
6311
- type: 'netcdf'
6312
- }).json();
6240
+ key: "stop",
6241
+ value: function stop(id) {
6242
+ return this.http.post("/scheduler/task/" + id + "/stop", null).then(() => {});
6313
6243
  }
6314
6244
  /**
6315
6245
  * No description
6316
6246
  *
6317
- * @tags SchedulerService
6318
- * @name StartRouteTask
6319
- * @operationId SchedulerServiceController_StartRouteTask
6320
- * @summary Plans the execution of a 'availability area build' server task.
6321
- * @request POST:/scheduler/tasks#type=route
6247
+ * @tags RemoteTaskManager
6248
+ * @name CreateTaskPrototype
6249
+ * @operationId RemoteTaskManagerController_CreateTaskPrototype
6250
+ * @summary Creates TaskPrototype.
6251
+ * @request POST:/scheduler
6322
6252
  * @response `200` OK
6323
6253
  */
6324
6254
 
6325
6255
  }, {
6326
- key: "startRouteTask",
6327
- value: function startRouteTask(data) {
6328
- return this.http.post("/scheduler/tasks", data, {
6329
- type: 'route'
6330
- }).json();
6256
+ key: "createTaskPrototype",
6257
+ value: function createTaskPrototype(data) {
6258
+ return this.http.post("/scheduler", data).then(() => {});
6331
6259
  }
6332
6260
  /**
6333
6261
  * No description
6334
6262
  *
6335
- * @tags SchedulerService
6336
- * @name StartUnionTask
6337
- * @operationId SchedulerServiceController_StartUnionTask
6338
- * @summary Plans the execution of a 'union' server task.
6339
- * @request POST:/scheduler/tasks#type=union
6263
+ * @tags RemoteTaskManager
6264
+ * @name GetTaskPrototypes
6265
+ * @operationId RemoteTaskManagerController_GetTaskPrototypes
6266
+ * @summary Show TaskPrototypes for user.
6267
+ * @request GET:/scheduler
6340
6268
  * @response `200` OK
6341
6269
  */
6342
6270
 
6343
6271
  }, {
6344
- key: "startUnionTask",
6345
- value: function startUnionTask(data) {
6346
- return this.http.post("/scheduler/tasks", data, {
6347
- type: 'union'
6348
- }).json();
6272
+ key: "getTaskPrototypes",
6273
+ value: function getTaskPrototypes(query) {
6274
+ return this.http.get("/scheduler", query).then(() => {});
6349
6275
  }
6350
6276
  /**
6351
6277
  * No description
6352
6278
  *
6353
- * @tags SchedulerService
6354
- * @name StartOverlayTask
6355
- * @operationId SchedulerServiceController_StartOverlayTask
6356
- * @summary Plans the execution of a 'subtraction' server task.
6357
- * @request POST:/scheduler/tasks#type=overlay
6279
+ * @tags RemoteTaskManager
6280
+ * @name UpdateTaskPrototype
6281
+ * @operationId RemoteTaskManagerController_UpdateTaskPrototype
6282
+ * @summary Updates task prototype.
6283
+ * @request PUT:/scheduler/{id}
6358
6284
  * @response `200` OK
6359
6285
  */
6360
6286
 
6361
6287
  }, {
6362
- key: "startOverlayTask",
6363
- value: function startOverlayTask(data) {
6364
- return this.http.post("/scheduler/tasks", data, {
6365
- type: 'overlay'
6366
- }).json();
6288
+ key: "updateTaskPrototype",
6289
+ value: function updateTaskPrototype(id, data) {
6290
+ return this.http.put("/scheduler/" + id, data).then(() => {});
6367
6291
  }
6368
6292
  /**
6369
6293
  * No description
6370
6294
  *
6371
- * @tags SchedulerService
6372
- * @name StartFilterCopyTask
6373
- * @operationId SchedulerServiceController_StartFilterCopyTask
6374
- * @summary Plans the execution of a 'filter copy' server task.
6375
- * @request POST:/scheduler/tasks#type=filterCopy
6295
+ * @tags RemoteTaskManager
6296
+ * @name Delete
6297
+ * @operationId RemoteTaskManagerController_Delete
6298
+ * @summary Delete task prototype.
6299
+ * @request DELETE:/scheduler/{id}
6376
6300
  * @response `200` OK
6377
6301
  */
6378
6302
 
6379
6303
  }, {
6380
- key: "startFilterCopyTask",
6381
- value: function startFilterCopyTask(data) {
6382
- return this.http.post("/scheduler/tasks", data, {
6383
- type: 'filterCopy'
6384
- }).json();
6304
+ key: "delete",
6305
+ value: function _delete(id) {
6306
+ return this.http.delete("/scheduler/" + id, null).then(() => {});
6385
6307
  }
6386
6308
  /**
6387
6309
  * No description
6388
6310
  *
6389
- * @tags SchedulerService
6390
- * @name StartPipelineTask
6391
- * @operationId SchedulerServiceController_StartPipelineTask
6392
- * @summary Plans the execution of a 'pipeline' server task.
6393
- * @request POST:/scheduler/tasks#type=pipeline
6311
+ * @tags RemoteTaskManager
6312
+ * @name SetEnable
6313
+ * @operationId RemoteTaskManagerController_SetEnable
6314
+ * @summary Enables task prototype.
6315
+ * @request POST:/scheduler/{id}/enable/{enable}
6394
6316
  * @response `200` OK
6395
6317
  */
6396
6318
 
6397
6319
  }, {
6398
- key: "startPipelineTask",
6399
- value: function startPipelineTask(data) {
6400
- return this.http.post("/scheduler/tasks", data, {
6401
- type: 'pipeline'
6402
- }).json();
6320
+ key: "setEnable",
6321
+ value: function setEnable(id, enable) {
6322
+ return this.http.post("/scheduler/" + id + "/enable/" + enable, null).then(() => {});
6403
6323
  }
6404
6324
  /**
6405
6325
  * No description
6406
6326
  *
6407
- * @tags SchedulerService
6408
- * @name StartEditAttributesBatch
6409
- * @operationId SchedulerServiceController_StartEditAttributesBatch
6410
- * @summary Plans the execution of a 'edit attributes' server task.
6411
- * @request POST:/scheduler/tasks#type=editAttributes
6327
+ * @tags RemoteTaskManager
6328
+ * @name GetTasksForPrototype
6329
+ * @operationId RemoteTaskManagerController_GetTasksForPrototype
6330
+ * @summary Shows Tasks that created for TaskPrototype.
6331
+ * @request GET:/scheduler/{id}/tasks
6412
6332
  * @response `200` OK
6413
6333
  */
6414
6334
 
6415
6335
  }, {
6416
- key: "startEditAttributesBatch",
6417
- value: function startEditAttributesBatch(data) {
6418
- return this.http.post("/scheduler/tasks", data, {
6419
- type: 'editAttributes'
6420
- }).json();
6336
+ key: "getTasksForPrototype",
6337
+ value: function getTasksForPrototype(_ref) {
6338
+ let {
6339
+ id
6340
+ } = _ref,
6341
+ query = _objectWithoutPropertiesLoose(_ref, _excluded$7);
6342
+
6343
+ return this.http.get("/scheduler/" + id + "/tasks", query).then(() => {});
6421
6344
  }
6422
6345
  /**
6423
6346
  * No description
6424
6347
  *
6425
- * @tags SchedulerService
6426
- * @name UniversalSearchTask
6427
- * @operationId SchedulerServiceController_UniversalSearchTask
6428
- * @summary Plans the execution of a 'edit attributes' server task.
6429
- * @request POST:/scheduler/tasks#type=universalSearch
6348
+ * @tags RemoteTaskManager
6349
+ * @name StartTask
6350
+ * @operationId RemoteTaskManagerController_StartTask
6351
+ * @summary Starts new Task for TaskPrototype with task id definition.
6352
+ * @request POST:/scheduler/{id}/start/{taskId}
6430
6353
  * @response `200` OK
6431
6354
  */
6432
6355
 
6433
6356
  }, {
6434
- key: "universalSearchTask",
6435
- value: function universalSearchTask(data) {
6436
- return this.http.post("/scheduler/tasks", data, {
6437
- type: 'universalSearch'
6438
- }).json();
6357
+ key: "startTask",
6358
+ value: function startTask(id, taskId) {
6359
+ return this.http.post("/scheduler/" + id + "/start/" + taskId, null).then(() => {});
6360
+ }
6361
+ /**
6362
+ * No description
6363
+ *
6364
+ * @tags RemoteTaskManager
6365
+ * @name StartTask1
6366
+ * @operationId RemoteTaskManagerController_StartTask_1
6367
+ * @summary Starts new Task for TaskPrototype .
6368
+ * @request POST:/scheduler/{id}/start
6369
+ * @response `200` OK
6370
+ */
6371
+
6372
+ }, {
6373
+ key: "startTask1",
6374
+ value: function startTask1(id) {
6375
+ return this.http.post("/scheduler/" + id + "/start", null).then(() => {});
6376
+ }
6377
+ /**
6378
+ * No description
6379
+ *
6380
+ * @tags RemoteTaskManager
6381
+ * @name Get1
6382
+ * @operationId RemoteTaskManagerController_Get_1
6383
+ * @summary Shows active workers.
6384
+ * @request GET:/scheduler/worker
6385
+ * @response `200` OK
6386
+ */
6387
+
6388
+ }, {
6389
+ key: "get1",
6390
+ value: function get1() {
6391
+ return this.http.get("/scheduler/worker").then(() => {});
6392
+ }
6393
+ /**
6394
+ * No description
6395
+ *
6396
+ * @tags RemoteTaskManager
6397
+ * @name Post
6398
+ * @operationId RemoteTaskManagerController_Post
6399
+ * @summary Run method by HttpPost.
6400
+ * @request POST:/scheduler/worker
6401
+ * @response `200` OK
6402
+ */
6403
+
6404
+ }, {
6405
+ key: "post",
6406
+ value: function post(data) {
6407
+ return this.http.post("/scheduler/worker", data).then(() => {});
6439
6408
  }
6440
6409
  }]);
6441
6410
 
6442
- return SchedulerService;
6411
+ return RemoteTaskManagerService;
6443
6412
  }(Service);
6444
6413
 
6445
- let Scheduler = /*#__PURE__*/function (_SchedulerService) {
6446
- _inherits(Scheduler, _SchedulerService);
6414
+ let RemoteTaskManager = /*#__PURE__*/function (_RemoteTaskManagerSer) {
6415
+ _inherits(RemoteTaskManager, _RemoteTaskManagerSer);
6447
6416
 
6448
- var _super = /*#__PURE__*/_createSuper(Scheduler);
6417
+ var _super = /*#__PURE__*/_createSuper(RemoteTaskManager);
6449
6418
 
6450
- function Scheduler() {
6451
- _classCallCheck(this, Scheduler);
6419
+ function RemoteTaskManager() {
6420
+ _classCallCheck(this, RemoteTaskManager);
6452
6421
 
6453
6422
  return _super.apply(this, arguments);
6454
6423
  }
6455
6424
 
6456
- _createClass(Scheduler, [{
6457
- key: "init",
6458
- value: function init(notification) {
6459
- this.notification = notification;
6460
- return this.notification.subscribe("server_task"
6461
- /* ServerTask */
6462
- );
6463
- }
6464
- }, {
6465
- key: "runCopyTask",
6466
- value: async function runCopyTask(parameters) {
6467
- const {
6468
- taskId
6469
- } = await this.startCopyTask(parameters);
6470
- return this.processTaskId(taskId);
6471
- }
6472
- }, {
6473
- key: "runBufferTask",
6474
- value: async function runBufferTask(parameters) {
6475
- const {
6476
- taskId
6477
- } = await this.startBufferTask(parameters);
6478
- return this.processTaskId(taskId);
6479
- }
6480
- }, {
6481
- key: "runUnionTask",
6482
- value: async function runUnionTask(parameters) {
6483
- const {
6484
- taskId
6485
- } = await this.startUnionTask(parameters);
6486
- return this.processTaskId(taskId);
6487
- }
6488
- }, {
6489
- key: "runPrintTask",
6490
- value: async function runPrintTask(parameters) {
6491
- const {
6492
- taskId
6493
- } = await this.startPrintTask(parameters);
6494
- return this.processTaskId(taskId);
6495
- }
6496
- }, {
6497
- key: "runTilingTask",
6498
- value: async function runTilingTask(parameters) {
6499
- const {
6500
- taskId
6501
- } = await this.startTilingTask(parameters);
6502
- return this.processTaskId(taskId);
6503
- }
6504
- }, {
6505
- key: "runRouteTask",
6506
- value: async function runRouteTask(parameters) {
6507
- const {
6508
- taskId
6509
- } = await this.startRouteTask(parameters);
6510
- return this.processTaskId(taskId);
6425
+ return _createClass(RemoteTaskManager);
6426
+ }(RemoteTaskManagerService);
6427
+
6428
+ /**
6429
+ * @title Spatial Processing Core API
6430
+ * @version 1.5.1.0
6431
+ * @baseUrl /sp
6432
+ */
6433
+
6434
+ let ResourceCatalogService = /*#__PURE__*/function (_Service) {
6435
+ _inherits(ResourceCatalogService, _Service);
6436
+
6437
+ var _super = /*#__PURE__*/_createSuper(ResourceCatalogService);
6438
+
6439
+ function ResourceCatalogService() {
6440
+ _classCallCheck(this, ResourceCatalogService);
6441
+
6442
+ return _super.apply(this, arguments);
6443
+ }
6444
+
6445
+ _createClass(ResourceCatalogService, [{
6446
+ key: "checkLimits",
6447
+ value:
6448
+ /**
6449
+ * @description This method requires superuser permission.
6450
+ *
6451
+ * @tags ResourceCatalog
6452
+ * @name CheckLimits
6453
+ * @operationId ResourceCatalogController_CheckLimits
6454
+ * @summary Get limits of workspace.
6455
+ * @request GET:/resources/checkLimits
6456
+ * @response `200` OK
6457
+ */
6458
+ function checkLimits(query) {
6459
+ return this.http.get("/resources/checkLimits", query).json();
6511
6460
  }
6461
+ /**
6462
+ * No description
6463
+ *
6464
+ * @tags ResourceCatalog
6465
+ * @name CopyResources
6466
+ * @operationId ResourceCatalogController_CopyResources
6467
+ * @summary Copy a set of resources.
6468
+ * @request POST:/resources/copy
6469
+ * @response `200` OK
6470
+ */
6471
+
6512
6472
  }, {
6513
- key: "runOverlayTask",
6514
- value: async function runOverlayTask(parameters) {
6515
- const {
6516
- taskId
6517
- } = await this.startOverlayTask(parameters);
6518
- return this.processTaskId(taskId);
6473
+ key: "copyResources",
6474
+ value: function copyResources(data) {
6475
+ return this.http.post("/resources/copy", data).json();
6519
6476
  }
6520
- }, {
6521
- key: "runFilterCopyTask",
6522
- value: async function runFilterCopyTask(parameters) {
6477
+ }]);
6478
+
6479
+ return ResourceCatalogService;
6480
+ }(Service);
6481
+
6482
+ let ResourceCatalog = /*#__PURE__*/function (_ResourceCatalogServi) {
6483
+ _inherits(ResourceCatalog, _ResourceCatalogServi);
6484
+
6485
+ var _super = /*#__PURE__*/_createSuper(ResourceCatalog);
6486
+
6487
+ function ResourceCatalog() {
6488
+ _classCallCheck(this, ResourceCatalog);
6489
+
6490
+ return _super.apply(this, arguments);
6491
+ }
6492
+
6493
+ return _createClass(ResourceCatalog);
6494
+ }(ResourceCatalogService);
6495
+
6496
+ var DependencyType;
6497
+
6498
+ (function (DependencyType) {
6499
+ DependencyType["Layer"] = "Layer";
6500
+ DependencyType["Table"] = "Table";
6501
+ DependencyType["Project"] = "Project";
6502
+ })(DependencyType || (DependencyType = {}));
6503
+
6504
+ let Resources = /*#__PURE__*/function () {
6505
+ function Resources(projects, layers, tables) {
6506
+ _classCallCheck(this, Resources);
6507
+
6508
+ this.projects = projects;
6509
+ this.layers = layers;
6510
+ this.tables = tables;
6511
+ }
6512
+
6513
+ _createClass(Resources, [{
6514
+ key: "getProjectInfosWithDeps",
6515
+ value: async function getProjectInfosWithDeps(projects) {
6516
+ const projectInfos = await this.projects.getProjectInfos(projects);
6517
+ const projectDeps = await this.projects.getProjectsDeps(projects);
6523
6518
  const {
6524
- taskId
6525
- } = await this.startFilterCopyTask(parameters);
6526
- return this.processTaskId(taskId);
6519
+ layers,
6520
+ tables
6521
+ } = await this.getDependencies(projectDeps, true, true);
6522
+ return {
6523
+ projects: projectInfos,
6524
+ deps: {
6525
+ layers,
6526
+ tables
6527
+ }
6528
+ };
6527
6529
  }
6528
6530
  }, {
6529
- key: "runPipelineTask",
6530
- value: async function runPipelineTask(parameters) {
6531
+ key: "getLayerInfosWithDeps",
6532
+ value: async function getLayerInfosWithDeps(layers) {
6533
+ const layerInfos = await this.layers.getLayerInfos(layers);
6534
+ const layersDeps = await this.layers.getLayersDeps(layers);
6531
6535
  const {
6532
- taskId
6533
- } = await this.startPipelineTask(parameters);
6534
- return this.processTaskId(taskId);
6536
+ tables
6537
+ } = await this.getDependencies(layersDeps, false, true);
6538
+ return {
6539
+ layers: layerInfos,
6540
+ deps: {
6541
+ tables
6542
+ }
6543
+ };
6535
6544
  }
6536
6545
  }, {
6537
- key: "runEditAttributesTask",
6538
- value: async function runEditAttributesTask(parameters) {
6546
+ key: "getDependencies",
6547
+ value: async function getDependencies(resourceDeps, pickLayers, pickTables) {
6539
6548
  const {
6540
- taskId
6541
- } = await this.startEditAttributesBatch(parameters);
6542
- return this.processTaskId(taskId);
6543
- }
6544
- }, {
6545
- key: "waitTaskCompleted",
6546
- value: async function waitTaskCompleted(id) {
6547
- return new Promise(async (resolve, reject) => {
6548
- const taskProgress = await this.getTaskProgress(id);
6549
- this.resolveTaskStatus(taskProgress, resolve, reject);
6549
+ tables,
6550
+ layers
6551
+ } = resourceDeps.reduce((acc, layerDep) => {
6552
+ const deps = layerDep.dependencies || [];
6550
6553
 
6551
- const taskResultCallback = async _ref => {
6552
- let {
6553
- data
6554
- } = _ref;
6555
- const taskFinished = data.taskId === id && data.status && ['Completed', 'Failed', 'Canceled'].includes(data.status);
6556
-
6557
- if (taskFinished) {
6558
- const taskProgress = await this.getTaskProgress(id);
6559
- this.notification && this.notification.off("server_task"
6560
- /* ServerTask */
6561
- , taskResultCallback);
6562
- this.resolveTaskStatus(taskProgress, resolve, reject);
6563
- }
6564
- };
6554
+ if (pickLayers) {
6555
+ const layerNames = this.getDependentNames(deps, DependencyType.Layer);
6556
+ acc.layers.push(...layerNames);
6557
+ }
6558
+
6559
+ if (pickTables) {
6560
+ const tableNames = this.getDependentNames(deps, DependencyType.Table);
6561
+ acc.tables.push(...tableNames);
6562
+ }
6565
6563
 
6566
- this.notification && this.notification.on("server_task"
6567
- /* ServerTask */
6568
- , taskResultCallback);
6564
+ return acc;
6565
+ }, {
6566
+ tables: [],
6567
+ layers: []
6569
6568
  });
6569
+ return {
6570
+ tables: await this.tables.getTableInfos(tables.filter(unique)),
6571
+ layers: await this.layers.getLayerInfos(layers.filter(unique))
6572
+ };
6570
6573
  }
6571
6574
  }, {
6572
- key: "resolveTaskStatus",
6573
- value: function resolveTaskStatus(taskProgress, resolve, reject) {
6574
- if (taskProgress.status === 'Completed') {
6575
- resolve(taskProgress);
6576
- } else if (taskProgress.status === 'Failed' || taskProgress.status === 'Canceled') {
6577
- reject(taskProgress.status);
6578
- }
6579
- }
6580
- }, {
6581
- key: "processTaskId",
6582
- value: function processTaskId(taskId) {
6583
- if (taskId) {
6584
- return this.waitTaskCompleted(taskId);
6585
- } else {
6586
- throw new Error("Task was started with no testId");
6587
- }
6575
+ key: "getDependentNames",
6576
+ value: function getDependentNames(deps, depType) {
6577
+ return deps.filter((_ref) => {
6578
+ let {
6579
+ type
6580
+ } = _ref;
6581
+ return type === depType;
6582
+ }).map((_ref2) => {
6583
+ let {
6584
+ name
6585
+ } = _ref2;
6586
+ return name;
6587
+ }).filter(isString);
6588
6588
  }
6589
6589
  }]);
6590
6590
 
6591
- return Scheduler;
6592
- }(SchedulerService);
6591
+ return Resources;
6592
+ }();
6593
6593
 
6594
6594
  /**
6595
6595
  * @title Spatial Processing Core API
@@ -7029,7 +7029,7 @@ let Styles = /*#__PURE__*/function (_StyleService) {
7029
7029
  return _createClass(Styles);
7030
7030
  }(StyleService);
7031
7031
 
7032
- const _excluded$7 = ["name"],
7032
+ const _excluded$8 = ["name"],
7033
7033
  _excluded2$4 = ["name"],
7034
7034
  _excluded3$3 = ["name"],
7035
7035
  _excluded4$2 = ["name"];
@@ -7211,7 +7211,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
7211
7211
  let {
7212
7212
  name
7213
7213
  } = _ref,
7214
- query = _objectWithoutPropertiesLoose(_ref, _excluded$7);
7214
+ query = _objectWithoutPropertiesLoose(_ref, _excluded$8);
7215
7215
 
7216
7216
  return this.http.get("/tables/" + name + "/data", query).json();
7217
7217
  }
@@ -7611,7 +7611,7 @@ let Tools = /*#__PURE__*/function (_ToolsService) {
7611
7611
  return _createClass(Tools);
7612
7612
  }(ToolsService);
7613
7613
 
7614
- const _excluded$8 = ["name", "z", "x", "y"];
7614
+ const _excluded$9 = ["name", "z", "x", "y"];
7615
7615
  /**
7616
7616
  * @title Spatial Processing Core API
7617
7617
  * @version 1.5.1.0
@@ -7649,7 +7649,7 @@ let VectorTileService = /*#__PURE__*/function (_Service) {
7649
7649
  x,
7650
7650
  y
7651
7651
  } = _ref,
7652
- query = _objectWithoutPropertiesLoose(_ref, _excluded$8);
7652
+ query = _objectWithoutPropertiesLoose(_ref, _excluded$9);
7653
7653
 
7654
7654
  return this.http.get("/vt/" + name + "/" + z + "/" + x + "/" + y + ".pbf", query).then(() => {});
7655
7655
  }
@@ -7728,7 +7728,12 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7728
7728
  } = httpOptions || {};
7729
7729
  _this.http = http || new HttpClient(_extends({
7730
7730
  prefixUrl: url,
7731
- timeout: false
7731
+ timeout: false,
7732
+ retry: {
7733
+ methods: ["get", "post", "delete"],
7734
+ limit: 5,
7735
+ statusCodes: [401]
7736
+ }
7732
7737
  }, httpOptions || {}, {
7733
7738
  hooks: _extends({}, hooks || {}, {
7734
7739
  beforeRequest: [request => {
@@ -7737,14 +7742,44 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7737
7742
  if (token) {
7738
7743
  var _request$headers;
7739
7744
 
7740
- (_request$headers = request.headers) == null ? void 0 : _request$headers.set('Authorization', "Bearer " + (token || ''));
7745
+ (_request$headers = request.headers) == null ? void 0 : _request$headers.set("Authorization", "Bearer " + (token || ""));
7741
7746
  }
7742
7747
  }, ...((_hooks$beforeRequest = hooks == null ? void 0 : hooks.beforeRequest) != null ? _hooks$beforeRequest : [])],
7743
- afterResponse: [response => {
7748
+ beforeRetry: [async (_ref2) => {
7749
+ let {
7750
+ request,
7751
+ error,
7752
+ retryCount
7753
+ } = _ref2;
7754
+
7755
+ if (error instanceof HTTPError && error.response.status === 401 && retryCount === 1) {
7756
+ try {
7757
+ const refreshToken = window.localStorage.getItem(STORAGE_REFRESH_TOKEN_KEY);
7758
+
7759
+ if (refreshToken) {
7760
+ var _request$headers2;
7761
+
7762
+ const refreshTokenResponse = await _this.account.refreshToken({
7763
+ refreshToken
7764
+ });
7765
+
7766
+ if (refreshTokenResponse) {
7767
+ window.localStorage.setItem(STORAGE_TOKEN_KEY, refreshTokenResponse.token);
7768
+ window.localStorage.setItem(STORAGE_REFRESH_TOKEN_KEY, refreshTokenResponse.refreshToken);
7769
+ }
7770
+
7771
+ (_request$headers2 = request.headers) == null ? void 0 : _request$headers2.set("Authorization", "Bearer " + (refreshTokenResponse.token || ""));
7772
+ }
7773
+ } catch (error) {
7774
+ throw new Error("Failed to refresh token");
7775
+ }
7776
+ }
7777
+ }],
7778
+ afterResponse: [(request, options, response) => {
7744
7779
  const apiEvent = apiEventsByResponseStatus[response.status];
7745
7780
 
7746
7781
  if (apiEvent) {
7747
- _this.emit(apiEvent, errorHandler(new HTTPError(response)));
7782
+ _this.emit(apiEvent, errorHandler(new HTTPError(response, request, options)));
7748
7783
  }
7749
7784
 
7750
7785
  return response;
@@ -7764,7 +7799,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7764
7799
  _this.bulk = new BulkOperations(_this.http);
7765
7800
  _this.security = new Security(_this.http, _this.account);
7766
7801
  _this.notification = new Notification(_this.http, _assertThisInitialized(_this), wsKeepAlive);
7767
- _this.scheduler = new Scheduler(_this.http);
7768
7802
  _this.file = new FileUpload(_this.http);
7769
7803
  _this.filters = new Filters(_this.http);
7770
7804
  _this.import = new Import(_this.http);
@@ -7788,6 +7822,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7788
7822
  _this.catalog = new CatalogService(_this.http);
7789
7823
  _this.queryToken = new QueryTokenAccessService(_this.http);
7790
7824
  _this.dataSource = new DataSourceService(_this.http);
7825
+ _this.remoteTaskManager = new RemoteTaskManager(_this.http);
7791
7826
  _this.names = new Names({
7792
7827
  account: _this.account
7793
7828
  });
@@ -7801,16 +7836,15 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7801
7836
 
7802
7837
  _createClass(Api, [{
7803
7838
  key: "init",
7804
- value: async function init(_ref2) {
7839
+ value: async function init(_ref3) {
7805
7840
  let {
7806
7841
  authParams,
7807
7842
  authQueryParams,
7808
7843
  connectWs,
7809
- initScheduler,
7810
7844
  fetchSettings,
7811
7845
  fetchUser,
7812
7846
  useJwt
7813
- } = _ref2;
7847
+ } = _ref3;
7814
7848
 
7815
7849
  try {
7816
7850
  await this.account.login(authParams, authQueryParams, useJwt);
@@ -7823,10 +7857,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7823
7857
  await this.connectWs();
7824
7858
  }
7825
7859
 
7826
- if (initScheduler) {
7827
- await this.initScheduler();
7828
- }
7829
-
7830
7860
  if (fetchSettings) {
7831
7861
  await this.clientSettings.fetchClientSettings({
7832
7862
  urlPath: getFetchingUrlPath(this.urlPath)
@@ -7888,11 +7918,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7888
7918
  await this.security.reset();
7889
7919
  this.emit(ApiEvent.Unauthorized, null);
7890
7920
  }
7891
- }, {
7892
- key: "initScheduler",
7893
- value: function initScheduler() {
7894
- return this.scheduler.init(this.notification);
7895
- }
7896
7921
  }, {
7897
7922
  key: "defineUrlPath",
7898
7923
  value: function defineUrlPath() {
@@ -7915,358 +7940,9 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7915
7940
  return Api;
7916
7941
  }(EventEmitter);
7917
7942
 
7918
- function generateRandom(min, max) {
7919
- if (min === void 0) {
7920
- min = 0;
7921
- }
7922
-
7923
- if (max === void 0) {
7924
- max = 100;
7925
- }
7926
-
7927
- let difference = max - min;
7928
- let rand = Math.random();
7929
- rand = Math.floor(rand * difference);
7930
- rand = rand + min;
7931
- return rand;
7932
- }
7933
-
7934
- let EvergisTileLayer = /*#__PURE__*/function (_TileLayer) {
7935
- _inherits(EvergisTileLayer, _TileLayer);
7943
+ /* eslint-disable */
7936
7944
 
7937
- var _super = /*#__PURE__*/_createSuper(EvergisTileLayer);
7938
-
7939
- function EvergisTileLayer(configuration, api) {
7940
- var _this;
7941
-
7942
- _classCallCheck(this, EvergisTileLayer);
7943
-
7944
- _this = _super.call(this, '', {
7945
- crs: configuration.crs,
7946
- opacity: configuration.opacity
7947
- });
7948
- _this.api = api;
7949
- _this.name = configuration.name;
7950
- _this.sourceUrl = configuration.sourceUrl;
7951
- _this.subDomains = configuration.subDomains;
7952
- return _this;
7953
- }
7954
-
7955
- _createClass(EvergisTileLayer, [{
7956
- key: "getTileUrl",
7957
- value: function getTileUrl(x, y, level) {
7958
- var _this$subDomains;
7959
-
7960
- const name = this.name;
7961
- const subDomainIndex = this.subDomains ? generateRandom(0, ((_this$subDomains = this.subDomains) == null ? void 0 : _this$subDomains.length) - 1) : undefined;
7962
- 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({
7963
- x,
7964
- y,
7965
- z: level,
7966
- name
7967
- });
7968
- }
7969
- }]);
7970
-
7971
- return EvergisTileLayer;
7972
- }(TileLayer);
7973
-
7974
- const _excluded$9 = ["name", "style", "condition", "dataFilterId", "crs"];
7975
- let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
7976
- _inherits(EvergisDynamicLayer, _DynamicLayer);
7977
-
7978
- var _super = /*#__PURE__*/_createSuper(EvergisDynamicLayer);
7979
-
7980
- function EvergisDynamicLayer(_ref, api) {
7981
- var _this;
7982
-
7983
- let {
7984
- name,
7985
- style,
7986
- condition,
7987
- dataFilterId,
7988
- crs = webMercator
7989
- } = _ref,
7990
- layerProps = _objectWithoutPropertiesLoose(_ref, _excluded$9);
7991
-
7992
- _classCallCheck(this, EvergisDynamicLayer);
7993
-
7994
- _this = _super.call(this, layerProps);
7995
- _this.api = api;
7996
- _this.name = name;
7997
- _this.styleId = style;
7998
- _this.conditionQuery = condition;
7999
- _this.filterId = dataFilterId;
8000
- _this.crs = crs;
8001
-
8002
- _this.subscribeRedraw();
8003
-
8004
- return _this;
8005
- } // @ts-ignore TODO
8006
-
8007
-
8008
- _createClass(EvergisDynamicLayer, [{
8009
- key: "style",
8010
- get: // @ts-ignore TODO
8011
- function get() {
8012
- return this.styleId;
8013
- } // @ts-ignore TODO
8014
- ,
8015
- set: function set(styleId) {
8016
- this.styleId = styleId;
8017
- this.forceUpdate();
8018
- }
8019
- }, {
8020
- key: "condition",
8021
- get: // @ts-ignore TODO
8022
- function get() {
8023
- return this.conditionQuery;
8024
- } // @ts-ignore TODO
8025
- ,
8026
- set: function set(condition) {
8027
- this.conditionQuery = condition;
8028
- this.forceUpdate();
8029
- }
8030
- }, {
8031
- key: "dataFilterId",
8032
- get: // @ts-ignore TODO
8033
- function get() {
8034
- return this.filterId;
8035
- },
8036
- set: function set(filterId) {
8037
- this.filterId = filterId;
8038
- this.forceUpdate();
8039
- }
8040
- }, {
8041
- key: "getUrl",
8042
- value: function getUrl(bbox, painter) {
8043
- let imgWidth = painter.width;
8044
- let imgHeight = painter.height;
8045
- return this.api.layers.getLayerImage({
8046
- name: this.name,
8047
- extent: bbox.coordinates,
8048
- size: [imgWidth, imgHeight],
8049
- extentSr: bbox.crs.wkid,
8050
- styleId: this.styleId,
8051
- condition: this.conditionQuery,
8052
- dataFilterId: this.filterId
8053
- });
8054
- }
8055
- }, {
8056
- key: "subscribeRedraw",
8057
- value: function subscribeRedraw() {
8058
- this.api.notification.on("service_update"
8059
- /* ServiceUpdate */
8060
- , e => {
8061
- if ((e == null ? void 0 : e.data.layerName) === this.name) {
8062
- this.forceUpdate();
8063
- this.redraw();
8064
- }
8065
- });
8066
- }
8067
- }]);
8068
-
8069
- return EvergisDynamicLayer;
8070
- }(DynamicLayer);
8071
-
8072
- const LayerServicesMap = {
8073
- RemoteTileService: EvergisTileLayer,
8074
- LocalTileService: EvergisTileLayer,
8075
- PostgresLayerService: EvergisDynamicLayer,
8076
- StyledFeatureLayer: EvergisDynamicLayer,
8077
- CompositeService: null
8078
- };
8079
-
8080
- const isLayerType = type => Boolean(type && Object.keys(LayerServicesMap).includes(type));
8081
-
8082
- const withServicesPrefix = layerInfo => _extends({}, layerInfo, {
8083
- name: "services/" + layerInfo.name
8084
- });
8085
-
8086
- let LayersManager = /*#__PURE__*/function () {
8087
- function LayersManager(layers, http) {
8088
- _classCallCheck(this, LayersManager);
8089
-
8090
- this.layers = layers;
8091
- this.http = http;
8092
- }
8093
-
8094
- _createClass(LayersManager, [{
8095
- key: "getLayerService",
8096
- value: async function getLayerService(name) {
8097
- let layerInfo = await this.getLayerInfo(name);
8098
- const type = layerInfo.type;
8099
-
8100
- if (!isLayerType(type)) {
8101
- return;
8102
- }
8103
-
8104
- const ServiceCtor = LayerServicesMap[type];
8105
-
8106
- if (ServiceCtor) {
8107
- // @ts-ignore
8108
- return new ServiceCtor(withServicesPrefix(layerInfo), this.http);
8109
- } else {
8110
- throw new Error("Constructor for service type: \"" + layerInfo.type + "\" not implemented");
8111
- }
8112
- }
8113
- }, {
8114
- key: "getLayerInfo",
8115
- value: async function getLayerInfo(name) {
8116
- try {
8117
- return await this.layers.getLayerInfo(name);
8118
- } catch (_unused) {
8119
- throw new Error("Service with name: \"" + name + "\" not exists");
8120
- }
8121
- }
8122
- }]);
8123
-
8124
- return LayersManager;
8125
- }();
8126
-
8127
- var LayersZIndex;
8128
-
8129
- (function (LayersZIndex) {
8130
- LayersZIndex[LayersZIndex["BaseMaps"] = 0] = "BaseMaps";
8131
- LayersZIndex[LayersZIndex["Layers"] = 1] = "Layers";
8132
- })(LayersZIndex || (LayersZIndex = {}));
8133
-
8134
- let SpatialProcessor = /*#__PURE__*/function (_Api) {
8135
- _inherits(SpatialProcessor, _Api);
8136
-
8137
- var _super = /*#__PURE__*/_createSuper(SpatialProcessor);
8138
-
8139
- function SpatialProcessor(mapProps, apiParams, authParams) {
8140
- var _this;
8141
-
8142
- _classCallCheck(this, SpatialProcessor);
8143
-
8144
- _this = _super.call(this, apiParams);
8145
- _this.map = new Map();
8146
- _this.painter = new DomPainter(_this.map);
8147
- _this.mapProps = mapProps;
8148
- _this.auth = authParams;
8149
- _this.layersManager = new LayersManager(_this.layers, _this.http);
8150
- return _this;
8151
- }
8152
-
8153
- _createClass(SpatialProcessor, [{
8154
- key: "init",
8155
- value: async function init() {
8156
- await _get(_getPrototypeOf(SpatialProcessor.prototype), "init", this).call(this, {
8157
- authParams: this.auth,
8158
- connectWs: true,
8159
- fetchSettings: true,
8160
- initScheduler: true
8161
- });
8162
- const {
8163
- baseService,
8164
- services,
8165
- projectName
8166
- } = this.mapProps;
8167
-
8168
- if (baseService) {
8169
- await this.setBaseMap(baseService);
8170
- }
8171
-
8172
- if (services) {
8173
- await Promise.all(services.map(service => this.addLayer(service)));
8174
- }
8175
-
8176
- if (projectName) {
8177
- await this.loadProject(projectName);
8178
- }
8179
-
8180
- this.setMapProps();
8181
- }
8182
- }, {
8183
- key: "reset",
8184
- value: async function reset() {
8185
- await this.account.logout();
8186
- this.painter.wrapper = null;
8187
- }
8188
- }, {
8189
- key: "addLayer",
8190
- value: async function addLayer(name) {
8191
- await this.insertLayer(name, LayersZIndex.Layers);
8192
- }
8193
- }, {
8194
- key: "setBaseMap",
8195
- value: async function setBaseMap(name) {
8196
- await this.insertLayer(name, LayersZIndex.BaseMaps);
8197
- }
8198
- }, {
8199
- key: "loadProject",
8200
- value: async function loadProject(name) {
8201
- const projectInfo = await this.projects.getProjectInfo(name);
8202
-
8203
- if (!(projectInfo && projectInfo.content)) {
8204
- return;
8205
- }
8206
-
8207
- const {
8208
- baseMapName,
8209
- items
8210
- } = projectInfo.content;
8211
-
8212
- if (baseMapName) {
8213
- await this.setBaseMap(baseMapName);
8214
- }
8215
-
8216
- if (items) {
8217
- const layers = items.map(item => item.name).filter(isString$1);
8218
- await Promise.all(layers.map(layer => this.addLayer(layer)));
8219
- }
8220
- }
8221
- }, {
8222
- key: "insertLayer",
8223
- value: async function insertLayer(name, index) {
8224
- const service = await this.layersManager.getLayerService(name);
8225
-
8226
- if (service) {
8227
- // @ts-ignore
8228
- this.map.insertLayer(service.layer, index);
8229
- }
8230
- }
8231
- }, {
8232
- key: "setMapProps",
8233
- value: function setMapProps() {
8234
- const {
8235
- position,
8236
- centerPoint,
8237
- mapWrapper,
8238
- resolution
8239
- } = this.mapProps;
8240
-
8241
- if (position) {
8242
- this.map.position = position;
8243
- } else if (centerPoint) {
8244
- this.map.centerPoint = centerPoint;
8245
- }
8246
-
8247
- if (resolution) this.map.resolution = resolution;
8248
- if (mapWrapper) this.painter.wrapper = mapWrapper;
8249
- }
8250
- }]);
8251
-
8252
- return SpatialProcessor;
8253
- }(Api);
8254
-
8255
- const isString$1 = s => s !== undefined;
8256
-
8257
- function isEvergisDynamicLayer(layer) {
8258
- return layer instanceof EvergisDynamicLayer;
8259
- }
8260
- function isEvergisTileLayer(layer) {
8261
- return layer instanceof EvergisTileLayer;
8262
- }
8263
- function isFeatureLayer(layer) {
8264
- return layer instanceof FeatureLayer;
8265
- }
8266
-
8267
- /* eslint-disable */
8268
-
8269
- /* tslint:disable */
7945
+ /* tslint:disable */
8270
7946
 
8271
7947
  /*
8272
7948
  * ---------------------------------------------------------------
@@ -8279,47 +7955,47 @@ function isFeatureLayer(layer) {
8279
7955
 
8280
7956
  /**
8281
7957
  *
8282
-
7958
+
8283
7959
  None
8284
-
7960
+
8285
7961
  Array
8286
-
7962
+
8287
7963
  Min
8288
-
7964
+
8289
7965
  Max
8290
-
7966
+
8291
7967
  Avg
8292
-
7968
+
8293
7969
  Sum
8294
-
7970
+
8295
7971
  Extent
8296
-
7972
+
8297
7973
  H3
8298
-
7974
+
8299
7975
  Count
8300
-
7976
+
8301
7977
  TotalCount
8302
-
7978
+
8303
7979
  DistinctCount
8304
-
7980
+
8305
7981
  First
8306
-
7982
+
8307
7983
  Last
8308
-
7984
+
8309
7985
  Median
8310
-
7986
+
8311
7987
  Mod
8312
-
7988
+
8313
7989
  StdDeviation
8314
-
7990
+
8315
7991
  SumOfProduct
8316
-
7992
+
8317
7993
  OnlyValue
8318
-
7994
+
8319
7995
  WeightedAvg
8320
-
7996
+
8321
7997
  DensityIndicators
8322
-
7998
+
8323
7999
  DividedSum
8324
8000
  */
8325
8001
  var AggregationFunction;
@@ -8349,13 +8025,13 @@ var AggregationFunction;
8349
8025
  })(AggregationFunction || (AggregationFunction = {}));
8350
8026
  /**
8351
8027
  *
8352
-
8028
+
8353
8029
  Unknown
8354
-
8030
+
8355
8031
  Icon
8356
-
8032
+
8357
8033
  PNG
8358
-
8034
+
8359
8035
  SVG
8360
8036
  */
8361
8037
 
@@ -8370,13 +8046,13 @@ var AttributeIconType;
8370
8046
  })(AttributeIconType || (AttributeIconType = {}));
8371
8047
  /**
8372
8048
  *
8373
-
8049
+
8374
8050
  None
8375
-
8051
+
8376
8052
  SelectFromHandBook
8377
-
8053
+
8378
8054
  SelectFromRange
8379
-
8055
+
8380
8056
  ViewHandBook
8381
8057
  */
8382
8058
 
@@ -8391,31 +8067,31 @@ var AttributeSelectorType;
8391
8067
  })(AttributeSelectorType || (AttributeSelectorType = {}));
8392
8068
  /**
8393
8069
  *
8394
-
8070
+
8395
8071
  Unknown
8396
-
8072
+
8397
8073
  String
8398
-
8074
+
8399
8075
  Int32
8400
-
8076
+
8401
8077
  Int64
8402
-
8078
+
8403
8079
  Double
8404
-
8080
+
8405
8081
  DateTime
8406
-
8082
+
8407
8083
  Boolean
8408
-
8084
+
8409
8085
  Point
8410
-
8086
+
8411
8087
  Polyline
8412
-
8088
+
8413
8089
  MultiPolygon
8414
-
8090
+
8415
8091
  Multipoint
8416
-
8092
+
8417
8093
  H3Index
8418
-
8094
+
8419
8095
  Json
8420
8096
  */
8421
8097
 
@@ -8441,9 +8117,9 @@ var AttributeType;
8441
8117
  * An authorization grant is a credential representing the resource
8442
8118
  owner's authorization (to access its protected resources) used by the
8443
8119
  client to obtain an access token.
8444
-
8120
+
8445
8121
  authorization_code
8446
-
8122
+
8447
8123
  refresh_token
8448
8124
  */
8449
8125
 
@@ -8456,19 +8132,19 @@ var AuthorizationGrant;
8456
8132
  })(AuthorizationGrant || (AuthorizationGrant = {}));
8457
8133
  /**
8458
8134
  *
8459
-
8135
+
8460
8136
  None
8461
-
8137
+
8462
8138
  Map
8463
-
8139
+
8464
8140
  Layer
8465
-
8141
+
8466
8142
  Table
8467
-
8143
+
8468
8144
  File
8469
-
8145
+
8470
8146
  TaskPrototype
8471
-
8147
+
8472
8148
  DataSource
8473
8149
  */
8474
8150
 
@@ -8486,15 +8162,15 @@ var CatalogResourceType;
8486
8162
  })(CatalogResourceType || (CatalogResourceType = {}));
8487
8163
  /**
8488
8164
  * Describes classification methods.
8489
-
8165
+
8490
8166
  none
8491
-
8167
+
8492
8168
  naturalBreaks
8493
-
8169
+
8494
8170
  equalInterval
8495
-
8171
+
8496
8172
  quantile
8497
-
8173
+
8498
8174
  unique
8499
8175
  */
8500
8176
 
@@ -8510,11 +8186,11 @@ var ClassificationType;
8510
8186
  })(ClassificationType || (ClassificationType = {}));
8511
8187
  /**
8512
8188
  *
8513
-
8189
+
8514
8190
  decimal
8515
-
8191
+
8516
8192
  dateTime
8517
-
8193
+
8518
8194
  text
8519
8195
  */
8520
8196
 
@@ -8528,55 +8204,55 @@ var ClassifyAttributeType;
8528
8204
  })(ClassifyAttributeType || (ClassifyAttributeType = {}));
8529
8205
  /**
8530
8206
  *
8531
-
8207
+
8532
8208
  Unknown
8533
-
8209
+
8534
8210
  SerializeError
8535
-
8211
+
8536
8212
  InvalidDataService
8537
-
8213
+
8538
8214
  InvalidConfiguration
8539
-
8215
+
8540
8216
  InvalidDataServiceName
8541
-
8217
+
8542
8218
  InvalidTableName
8543
-
8219
+
8544
8220
  InvalidLayerName
8545
-
8221
+
8546
8222
  ResourceNotFound
8547
-
8223
+
8548
8224
  InvalidCondition
8549
-
8225
+
8550
8226
  InvalidAttributes
8551
-
8227
+
8552
8228
  InvalidIdAttribute
8553
-
8229
+
8554
8230
  InvalidGeometryAttribute
8555
-
8231
+
8556
8232
  InvalidGeometryAttributeType
8557
-
8233
+
8558
8234
  InvalidColumnName
8559
-
8235
+
8560
8236
  InvalidIdColumnSettings
8561
-
8237
+
8562
8238
  ColumnNotExistsInTable
8563
-
8239
+
8564
8240
  InvalidStyle
8565
-
8241
+
8566
8242
  InvalidLayerType
8567
-
8243
+
8568
8244
  ColumnLoadingError
8569
-
8245
+
8570
8246
  InvalidAttributeFormat
8571
-
8247
+
8572
8248
  DataSourceNotFound
8573
-
8249
+
8574
8250
  DuplicateColumns
8575
-
8251
+
8576
8252
  DuplicateAttributes
8577
-
8253
+
8578
8254
  TableWithoutColumns
8579
-
8255
+
8580
8256
  InvalidTableReferenceConfiguration
8581
8257
  */
8582
8258
 
@@ -8612,13 +8288,13 @@ var ConfigurationErrorEnum;
8612
8288
  })(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
8613
8289
  /**
8614
8290
  *
8615
-
8291
+
8616
8292
  Postgres
8617
-
8293
+
8618
8294
  Trino
8619
-
8295
+
8620
8296
  S3
8621
-
8297
+
8622
8298
  GisServer
8623
8299
  */
8624
8300
 
@@ -8633,15 +8309,15 @@ var DataSourceType;
8633
8309
  })(DataSourceType || (DataSourceType = {}));
8634
8310
  /**
8635
8311
  * Type of the error.
8636
-
8312
+
8637
8313
  ResourceLimitExceeded
8638
-
8314
+
8639
8315
  ResourceNotFound
8640
-
8316
+
8641
8317
  InternalError
8642
-
8318
+
8643
8319
  BadRequest
8644
-
8320
+
8645
8321
  DuplicateContent
8646
8322
  */
8647
8323
 
@@ -8692,9 +8368,9 @@ var ErrorType;
8692
8368
  })(ErrorType || (ErrorType = {}));
8693
8369
  /**
8694
8370
  * Type of the feature.
8695
-
8371
+
8696
8372
  Unknown
8697
-
8373
+
8698
8374
  GeometricFeature
8699
8375
  */
8700
8376
 
@@ -8707,11 +8383,11 @@ var FeatureType;
8707
8383
  })(FeatureType || (FeatureType = {}));
8708
8384
  /**
8709
8385
  * Sets whether font should be styled.
8710
-
8386
+
8711
8387
  normal
8712
-
8388
+
8713
8389
  oblique
8714
-
8390
+
8715
8391
  italic
8716
8392
  */
8717
8393
 
@@ -8725,27 +8401,27 @@ var FontStyle;
8725
8401
  })(FontStyle || (FontStyle = {}));
8726
8402
  /**
8727
8403
  * Specifies the weight (or boldness) of the font.
8728
-
8404
+
8729
8405
  Thin
8730
-
8406
+
8731
8407
  ExtraLight
8732
-
8408
+
8733
8409
  Light
8734
-
8410
+
8735
8411
  SemiLight
8736
-
8412
+
8737
8413
  Normal
8738
-
8414
+
8739
8415
  Medium
8740
-
8416
+
8741
8417
  DemiBold
8742
-
8418
+
8743
8419
  Bold
8744
-
8420
+
8745
8421
  ExtraBold
8746
-
8422
+
8747
8423
  Black
8748
-
8424
+
8749
8425
  ExtraBlack
8750
8426
  */
8751
8427
 
@@ -8767,17 +8443,17 @@ var FontWeight;
8767
8443
  })(FontWeight || (FontWeight = {}));
8768
8444
  /**
8769
8445
  *
8770
-
8446
+
8771
8447
  unknown
8772
-
8448
+
8773
8449
  point
8774
-
8450
+
8775
8451
  polyline
8776
-
8452
+
8777
8453
  multipolygon
8778
-
8454
+
8779
8455
  envelope
8780
-
8456
+
8781
8457
  multipoint
8782
8458
  */
8783
8459
 
@@ -8794,13 +8470,13 @@ var GeometryType;
8794
8470
  })(GeometryType || (GeometryType = {}));
8795
8471
  /**
8796
8472
  * Resource group.
8797
-
8473
+
8798
8474
  my
8799
-
8475
+
8800
8476
  role
8801
-
8477
+
8802
8478
  public
8803
-
8479
+
8804
8480
  all
8805
8481
  */
8806
8482
 
@@ -8815,13 +8491,13 @@ var Group;
8815
8491
  })(Group || (Group = {}));
8816
8492
  /**
8817
8493
  * Specifies the settings of line cap. This is applied to the beginning and end of each non-closed line.
8818
-
8494
+
8819
8495
  Flat
8820
-
8496
+
8821
8497
  Square
8822
-
8498
+
8823
8499
  Round
8824
-
8500
+
8825
8501
  Triangle
8826
8502
  */
8827
8503
 
@@ -8836,29 +8512,29 @@ var LineCapStyle;
8836
8512
  })(LineCapStyle || (LineCapStyle = {}));
8837
8513
  /**
8838
8514
  * Type of the line ending.
8839
-
8515
+
8840
8516
  none
8841
-
8517
+
8842
8518
  arrow
8843
-
8519
+
8844
8520
  filledArrow
8845
-
8521
+
8846
8522
  square
8847
-
8523
+
8848
8524
  filledSquare
8849
-
8525
+
8850
8526
  circle
8851
-
8527
+
8852
8528
  filledCircle
8853
-
8529
+
8854
8530
  diamond
8855
-
8531
+
8856
8532
  filledDiamond
8857
-
8533
+
8858
8534
  roundSquare
8859
-
8535
+
8860
8536
  filledRoundSquare
8861
-
8537
+
8862
8538
  svg
8863
8539
  */
8864
8540
 
@@ -8881,11 +8557,11 @@ var LineEndingType;
8881
8557
  })(LineEndingType || (LineEndingType = {}));
8882
8558
  /**
8883
8559
  * Specifies the settings of lines join. This is applied to corners in lines and rectangles.
8884
-
8560
+
8885
8561
  Miter
8886
-
8562
+
8887
8563
  Bevel
8888
-
8564
+
8889
8565
  Round
8890
8566
  */
8891
8567
 
@@ -8899,15 +8575,15 @@ var LineJoinType;
8899
8575
  })(LineJoinType || (LineJoinType = {}));
8900
8576
  /**
8901
8577
  *
8902
-
8578
+
8903
8579
  Unknown
8904
-
8580
+
8905
8581
  union
8906
-
8582
+
8907
8583
  intersection
8908
-
8584
+
8909
8585
  subtraction
8910
-
8586
+
8911
8587
  symDifference
8912
8588
  */
8913
8589
 
@@ -8923,11 +8599,11 @@ var Operation;
8923
8599
  })(Operation || (Operation = {}));
8924
8600
  /**
8925
8601
  * Filter exists resources by owner.
8926
-
8602
+
8927
8603
  My
8928
-
8604
+
8929
8605
  Shared
8930
-
8606
+
8931
8607
  Public
8932
8608
  */
8933
8609
 
@@ -8941,9 +8617,9 @@ var OwnerFilter;
8941
8617
  })(OwnerFilter || (OwnerFilter = {}));
8942
8618
  /**
8943
8619
  * Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed.
8944
-
8620
+
8945
8621
  xyz
8946
-
8622
+
8947
8623
  tms
8948
8624
  */
8949
8625
 
@@ -8956,19 +8632,19 @@ var PbfSchema;
8956
8632
  })(PbfSchema || (PbfSchema = {}));
8957
8633
  /**
8958
8634
  *
8959
-
8635
+
8960
8636
  none
8961
-
8637
+
8962
8638
  configure
8963
-
8639
+
8964
8640
  write
8965
-
8641
+
8966
8642
  read
8967
-
8643
+
8968
8644
  read,configure
8969
-
8645
+
8970
8646
  read,write
8971
-
8647
+
8972
8648
  read,write,configure
8973
8649
  */
8974
8650
 
@@ -8986,20 +8662,22 @@ var Permissions;
8986
8662
  })(Permissions || (Permissions = {}));
8987
8663
  /**
8988
8664
  * Type of the authorization policy.
8989
-
8665
+
8990
8666
  Unknown
8991
-
8667
+
8992
8668
  CreateTable
8993
-
8669
+
8994
8670
  CreateLayer
8995
-
8671
+
8996
8672
  CreateProject
8997
-
8673
+
8998
8674
  MaxFeaturesInOneTable
8999
-
8675
+
9000
8676
  MaxObjectsToExport
9001
-
8677
+
9002
8678
  MaxUploadContentSize
8679
+
8680
+ MaxEqlQueryParametersValues
9003
8681
  */
9004
8682
 
9005
8683
 
@@ -9013,14 +8691,15 @@ var PolicyType;
9013
8691
  PolicyType["MaxFeaturesInOneTable"] = "MaxFeaturesInOneTable";
9014
8692
  PolicyType["MaxObjectsToExport"] = "MaxObjectsToExport";
9015
8693
  PolicyType["MaxUploadContentSize"] = "MaxUploadContentSize";
8694
+ PolicyType["MaxEqlQueryParametersValues"] = "MaxEqlQueryParametersValues";
9016
8695
  })(PolicyType || (PolicyType = {}));
9017
8696
  /**
9018
8697
  * Stream quality.
9019
-
8698
+
9020
8699
  Low
9021
-
8700
+
9022
8701
  Medium
9023
-
8702
+
9024
8703
  High
9025
8704
  */
9026
8705
 
@@ -9034,15 +8713,15 @@ var Quality;
9034
8713
  })(Quality || (Quality = {}));
9035
8714
  /**
9036
8715
  * Resources types filter.
9037
-
8716
+
9038
8717
  RemoteTileService
9039
-
8718
+
9040
8719
  ProxyService
9041
-
8720
+
9042
8721
  PostgresLayerService
9043
-
8722
+
9044
8723
  QueryLayerService
9045
-
8724
+
9046
8725
  TileCatalogTable
9047
8726
  */
9048
8727
 
@@ -9058,20 +8737,22 @@ var ResourceSubTypeFilter;
9058
8737
  })(ResourceSubTypeFilter || (ResourceSubTypeFilter = {}));
9059
8738
  /**
9060
8739
  *
9061
-
8740
+
9062
8741
  Unknown
9063
-
8742
+
9064
8743
  table
9065
-
8744
+
9066
8745
  layer
9067
-
8746
+
9068
8747
  project
9069
-
8748
+
9070
8749
  file
9071
-
8750
+
9072
8751
  feature
9073
-
8752
+
9074
8753
  tag
8754
+
8755
+ datasource
9075
8756
  */
9076
8757
 
9077
8758
 
@@ -9085,24 +8766,25 @@ var ResourceType;
9085
8766
  ResourceType["File"] = "file";
9086
8767
  ResourceType["Feature"] = "feature";
9087
8768
  ResourceType["Tag"] = "tag";
8769
+ ResourceType["DataSource"] = "datasource";
9088
8770
  })(ResourceType || (ResourceType = {}));
9089
8771
  /**
9090
8772
  * Resources types filter.
9091
-
8773
+
9092
8774
  Map
9093
-
8775
+
9094
8776
  Layer
9095
-
8777
+
9096
8778
  Table
9097
-
8779
+
9098
8780
  RasterCatalog
9099
-
8781
+
9100
8782
  ProxyService
9101
-
8783
+
9102
8784
  RemoteTileService
9103
-
8785
+
9104
8786
  File
9105
-
8787
+
9106
8788
  DataSource
9107
8789
  */
9108
8790
 
@@ -9129,9 +8811,9 @@ var ResourceTypeLink;
9129
8811
  })(ResourceTypeLink || (ResourceTypeLink = {}));
9130
8812
  /**
9131
8813
  * Response type.
9132
-
8814
+
9133
8815
  code
9134
-
8816
+
9135
8817
  token
9136
8818
  */
9137
8819
 
@@ -9143,45 +8825,12 @@ var ResponseType;
9143
8825
  ResponseType["Token"] = "token";
9144
8826
  })(ResponseType || (ResponseType = {}));
9145
8827
  /**
9146
- * Status of the server task.
9147
-
9148
- None
9149
-
9150
- Scheduled
9151
-
9152
- Planning
9153
-
9154
- Executing
9155
-
9156
- Completed
9157
-
9158
- Failed
9159
-
9160
- Canceled
9161
-
9162
- Timeout
9163
- */
9164
-
9165
-
9166
- var ServerTaskStatus;
9167
-
9168
- (function (ServerTaskStatus) {
9169
- ServerTaskStatus["None"] = "None";
9170
- ServerTaskStatus["Scheduled"] = "Scheduled";
9171
- ServerTaskStatus["Planning"] = "Planning";
9172
- ServerTaskStatus["Executing"] = "Executing";
9173
- ServerTaskStatus["Completed"] = "Completed";
9174
- ServerTaskStatus["Failed"] = "Failed";
9175
- ServerTaskStatus["Canceled"] = "Canceled";
9176
- ServerTaskStatus["Timeout"] = "Timeout";
9177
- })(ServerTaskStatus || (ServerTaskStatus = {}));
9178
- /**
9179
8828
  *
9180
-
8829
+
9181
8830
  Basic
9182
-
8831
+
9183
8832
  PreserveTopology
9184
-
8833
+
9185
8834
  VW
9186
8835
  */
9187
8836
 
@@ -9195,13 +8844,13 @@ var SimplifyType;
9195
8844
  })(SimplifyType || (SimplifyType = {}));
9196
8845
  /**
9197
8846
  *
9198
-
8847
+
9199
8848
  None
9200
-
8849
+
9201
8850
  Image
9202
-
8851
+
9203
8852
  PkkCode
9204
-
8853
+
9205
8854
  Attachments
9206
8855
  */
9207
8856
 
@@ -9215,29 +8864,14 @@ var StringSubType;
9215
8864
  StringSubType["Attachments"] = "Attachments";
9216
8865
  })(StringSubType || (StringSubType = {}));
9217
8866
  /**
9218
- * Task owner group.
9219
-
9220
- my
9221
-
9222
- all
9223
- */
9224
-
9225
-
9226
- var TaskGroup;
9227
-
9228
- (function (TaskGroup) {
9229
- TaskGroup["My"] = "my";
9230
- TaskGroup["All"] = "all";
9231
- })(TaskGroup || (TaskGroup = {}));
9232
- /**
9233
8867
  * Sets the horizontal alignment of text.
9234
-
8868
+
9235
8869
  right
9236
-
8870
+
9237
8871
  left
9238
-
8872
+
9239
8873
  center
9240
-
8874
+
9241
8875
  justified
9242
8876
  */
9243
8877
 
@@ -9252,11 +8886,11 @@ var TextAlignment;
9252
8886
  })(TextAlignment || (TextAlignment = {}));
9253
8887
  /**
9254
8888
  * Sets the vertical alignment of text.
9255
-
8889
+
9256
8890
  top
9257
-
8891
+
9258
8892
  bottom
9259
-
8893
+
9260
8894
  middle
9261
8895
  */
9262
8896
 
@@ -9269,5 +8903,5 @@ var TextVerticalAlignment;
9269
8903
  TextVerticalAlignment["Middle"] = "middle";
9270
8904
  })(TextVerticalAlignment || (TextVerticalAlignment = {}));
9271
8905
 
9272
- export { Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeIconType, AttributeSelectorType, AttributeType, AuthorizationGrant, BulkOperations, Cameras, CatalogResourceType, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConnectionStatus, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, ErrorType, EvergisDynamicLayer, EvergisTileLayer, External, FeatureType, Feedback, FileUpload, Filters, FontStyle, FontWeight, GEOCODE_PROVIDER, General, Geocode, GeometryType, Group, HttpClient, IceRouter, Import, Layers, LayersManager, LineCapStyle, LineEndingType, LineJoinType, Names, Namespace, Notification, NotificationEvent, Operation, OwnerFilter, PbfSchema, Permissions, PolicyType, PortalSettings, Print, Projects, Quality, ResourceCatalog, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, ResourceTypeLink, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Scheduler, Security, ServerTaskStatus, SimplifyType, SpatialProcessor, Statistic, StringSubType, Styles, Tables, TaskGroup, TextAlignment, TextVerticalAlignment, Tools, UrlPath, VectorTiles, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isEvergisDynamicLayer, isEvergisTileLayer, isFeatureLayer, isHTTPError, isHandledError, isLayer, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
8906
+ export { Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeIconType, AttributeSelectorType, AttributeType, AuthorizationGrant, BulkOperations, Cameras, CatalogResourceType, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConnectionStatus, DataSourceType, DependencyType, Eql, ErrorDetailsType, ErrorReason, ErrorType, External, FeatureType, Feedback, FileUpload, Filters, FontStyle, FontWeight, GEOCODE_PROVIDER, General, Geocode, GeometryType, Group, HttpClient, IceRouter, Import, Layers, LineCapStyle, LineEndingType, LineJoinType, Names, Namespace, Notification, NotificationEvent, Operation, OwnerFilter, PbfSchema, Permissions, PolicyType, PortalSettings, Print, Projects, Quality, RemoteTaskManager, ResourceCatalog, ResourceSeparator, ResourceSubTypeFilter, ResourceType, ResourceTypeFilter, ResourceTypeLink, Resources, ResponseType, STORAGE_REFRESH_TOKEN_KEY, STORAGE_TOKEN_KEY, Security, SimplifyType, Statistic, StringSubType, Styles, Tables, TextAlignment, TextVerticalAlignment, Tools, UrlPath, VectorTiles, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, getFetchingUrlPath, isHTTPError, isHandledError, isProjectContentItems, isString, isTileLayerService, parseJwt, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
9273
8907
  //# sourceMappingURL=api.esm.js.map