@evergis/api 3.0.49 → 3.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.esm.js CHANGED
@@ -331,8 +331,21 @@ let SecurityService = /*#__PURE__*/function (_Service) {
331
331
  }
332
332
 
333
333
  _createClass(SecurityService, [{
334
- key: "findUserByName",
334
+ key: "findUserByNameByRoles",
335
335
 
336
+ /**
337
+ * No description
338
+ *
339
+ * @tags SecurityService
340
+ * @name FindUserByNameByRoles
341
+ * @operationId SecurityServiceController_FindUserByNameByRoles
342
+ * @summary Get users list with given roles list.
343
+ * @request GET:/security/findUsersWithRoles
344
+ * @response `200` Success
345
+ */
346
+ value: function findUserByNameByRoles(query) {
347
+ return this.http.get("/security/findUsersWithRoles", query).json();
348
+ }
336
349
  /**
337
350
  * No description
338
351
  *
@@ -343,6 +356,9 @@ let SecurityService = /*#__PURE__*/function (_Service) {
343
356
  * @request GET:/security/users
344
357
  * @response `200` Success
345
358
  */
359
+
360
+ }, {
361
+ key: "findUserByName",
346
362
  value: function findUserByName(query) {
347
363
  return this.http.get("/security/users", query).json();
348
364
  }
@@ -1458,6 +1474,22 @@ let LayersService = /*#__PURE__*/function (_Service) {
1458
1474
  value: function setPermissionsBatch(data) {
1459
1475
  return this.http.put("/layers", data).then(() => {});
1460
1476
  }
1477
+ /**
1478
+ * No description
1479
+ *
1480
+ * @tags Layers
1481
+ * @name DeleteResources
1482
+ * @operationId LayersController_DeleteResources
1483
+ * @summary Bulk delete resources.
1484
+ * @request DELETE:/layers
1485
+ * @response `200` Success
1486
+ */
1487
+
1488
+ }, {
1489
+ key: "deleteResources",
1490
+ value: function deleteResources(query) {
1491
+ return this.http.delete("/layers", null, query).json();
1492
+ }
1461
1493
  /**
1462
1494
  * No description
1463
1495
  *
@@ -1815,6 +1847,27 @@ let LayersService = /*#__PURE__*/function (_Service) {
1815
1847
  value: function updateFeature(name, data) {
1816
1848
  return this.http.patch("/layers/" + name + "/features", data).json();
1817
1849
  }
1850
+ /**
1851
+ * No description
1852
+ *
1853
+ * @tags Layers
1854
+ * @name FeaturesContains
1855
+ * @operationId LayersController_FeaturesContains
1856
+ * @summary Gets filtered features with given filter.
1857
+ * @request GET:/layers/{name}/features/contains
1858
+ * @response `200` Success
1859
+ */
1860
+
1861
+ }, {
1862
+ key: "featuresContains",
1863
+ value: function featuresContains(_ref3) {
1864
+ let {
1865
+ name
1866
+ } = _ref3,
1867
+ query = _objectWithoutPropertiesLoose(_ref3, ["name"]);
1868
+
1869
+ return this.http.get("/layers/" + name + "/features/contains", query).json();
1870
+ }
1818
1871
  /**
1819
1872
  * No description
1820
1873
  *
@@ -1828,12 +1881,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
1828
1881
 
1829
1882
  }, {
1830
1883
  key: "getById",
1831
- value: function getById(_ref3) {
1884
+ value: function getById(_ref4) {
1832
1885
  let {
1833
1886
  name,
1834
1887
  id
1835
- } = _ref3,
1836
- query = _objectWithoutPropertiesLoose(_ref3, ["name", "id"]);
1888
+ } = _ref4,
1889
+ query = _objectWithoutPropertiesLoose(_ref4, ["name", "id"]);
1837
1890
 
1838
1891
  return this.http.get("/layers/" + name + "/features/" + id, query).json();
1839
1892
  }
@@ -1850,12 +1903,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
1850
1903
 
1851
1904
  }, {
1852
1905
  key: "unite",
1853
- value: function unite(_ref4, data) {
1906
+ value: function unite(_ref5, data) {
1854
1907
  let {
1855
1908
  name,
1856
1909
  id
1857
- } = _ref4,
1858
- query = _objectWithoutPropertiesLoose(_ref4, ["name", "id"]);
1910
+ } = _ref5,
1911
+ query = _objectWithoutPropertiesLoose(_ref5, ["name", "id"]);
1859
1912
 
1860
1913
  return this.http.post("/layers/" + name + "/features/" + id + "/unite", data, query).json();
1861
1914
  }
@@ -1872,12 +1925,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
1872
1925
 
1873
1926
  }, {
1874
1927
  key: "subtract",
1875
- value: function subtract(_ref5, data) {
1928
+ value: function subtract(_ref6, data) {
1876
1929
  let {
1877
1930
  name,
1878
1931
  id
1879
- } = _ref5,
1880
- query = _objectWithoutPropertiesLoose(_ref5, ["name", "id"]);
1932
+ } = _ref6,
1933
+ query = _objectWithoutPropertiesLoose(_ref6, ["name", "id"]);
1881
1934
 
1882
1935
  return this.http.post("/layers/" + name + "/features/" + id + "/subtract", data, query).json();
1883
1936
  }
@@ -1894,14 +1947,14 @@ let LayersService = /*#__PURE__*/function (_Service) {
1894
1947
 
1895
1948
  }, {
1896
1949
  key: "getTilesLayerImage",
1897
- value: function getTilesLayerImage(_ref6) {
1950
+ value: function getTilesLayerImage(_ref7) {
1898
1951
  let {
1899
1952
  name,
1900
1953
  x,
1901
1954
  y,
1902
1955
  z
1903
- } = _ref6,
1904
- query = _objectWithoutPropertiesLoose(_ref6, ["name", "x", "y", "z"]);
1956
+ } = _ref7,
1957
+ query = _objectWithoutPropertiesLoose(_ref7, ["name", "x", "y", "z"]);
1905
1958
 
1906
1959
  return this.http.createUrl("/layers/" + name + "/tile/" + z + "/" + x + "/" + y, query);
1907
1960
  }
@@ -1918,11 +1971,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1918
1971
 
1919
1972
  }, {
1920
1973
  key: "getLayerImage",
1921
- value: function getLayerImage(_ref7) {
1974
+ value: function getLayerImage(_ref8) {
1922
1975
  let {
1923
1976
  name
1924
- } = _ref7,
1925
- query = _objectWithoutPropertiesLoose(_ref7, ["name"]);
1977
+ } = _ref8,
1978
+ query = _objectWithoutPropertiesLoose(_ref8, ["name"]);
1926
1979
 
1927
1980
  return this.http.createUrl("/layers/" + name + "/export", query);
1928
1981
  }
@@ -1939,11 +1992,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1939
1992
 
1940
1993
  }, {
1941
1994
  key: "getLayerExtent",
1942
- value: function getLayerExtent(_ref8) {
1995
+ value: function getLayerExtent(_ref9) {
1943
1996
  let {
1944
1997
  name
1945
- } = _ref8,
1946
- query = _objectWithoutPropertiesLoose(_ref8, ["name"]);
1998
+ } = _ref9,
1999
+ query = _objectWithoutPropertiesLoose(_ref9, ["name"]);
1947
2000
 
1948
2001
  return this.http.get("/layers/" + name + "/extent", query).json();
1949
2002
  }
@@ -1960,11 +2013,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1960
2013
 
1961
2014
  }, {
1962
2015
  key: "getByGeometry",
1963
- value: function getByGeometry(_ref9) {
2016
+ value: function getByGeometry(_ref10) {
1964
2017
  let {
1965
2018
  name
1966
- } = _ref9,
1967
- query = _objectWithoutPropertiesLoose(_ref9, ["name"]);
2019
+ } = _ref10,
2020
+ query = _objectWithoutPropertiesLoose(_ref10, ["name"]);
1968
2021
 
1969
2022
  return this.http.get("/layers/" + name + "/features/getByGeometry", query).json();
1970
2023
  }
@@ -1981,11 +2034,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1981
2034
 
1982
2035
  }, {
1983
2036
  key: "getByGeometryPost",
1984
- value: function getByGeometryPost(_ref10, data) {
2037
+ value: function getByGeometryPost(_ref11, data) {
1985
2038
  let {
1986
2039
  name
1987
- } = _ref10,
1988
- query = _objectWithoutPropertiesLoose(_ref10, ["name"]);
2040
+ } = _ref11,
2041
+ query = _objectWithoutPropertiesLoose(_ref11, ["name"]);
1989
2042
 
1990
2043
  return this.http.post("/layers/" + name + "/features/getByGeometry", data, query).json();
1991
2044
  }
@@ -2002,11 +2055,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2002
2055
 
2003
2056
  }, {
2004
2057
  key: "deleteFeatures",
2005
- value: function deleteFeatures(_ref11) {
2058
+ value: function deleteFeatures(_ref12) {
2006
2059
  let {
2007
2060
  name
2008
- } = _ref11,
2009
- query = _objectWithoutPropertiesLoose(_ref11, ["name"]);
2061
+ } = _ref12,
2062
+ query = _objectWithoutPropertiesLoose(_ref12, ["name"]);
2010
2063
 
2011
2064
  return this.http.delete("/layers/" + name + "/features/deleteByIds", null, query).json();
2012
2065
  }
@@ -2023,11 +2076,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2023
2076
 
2024
2077
  }, {
2025
2078
  key: "getByGeometryGet",
2026
- value: function getByGeometryGet(_ref12) {
2079
+ value: function getByGeometryGet(_ref13) {
2027
2080
  let {
2028
2081
  name
2029
- } = _ref12,
2030
- query = _objectWithoutPropertiesLoose(_ref12, ["name"]);
2082
+ } = _ref13,
2083
+ query = _objectWithoutPropertiesLoose(_ref13, ["name"]);
2031
2084
 
2032
2085
  return this.http.get("/layers/" + name + "/features/getByGeometryByClick", query).json();
2033
2086
  }
@@ -2044,11 +2097,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2044
2097
 
2045
2098
  }, {
2046
2099
  key: "classify",
2047
- value: function classify(_ref13) {
2100
+ value: function classify(_ref14) {
2048
2101
  let {
2049
2102
  name
2050
- } = _ref13,
2051
- query = _objectWithoutPropertiesLoose(_ref13, ["name"]);
2103
+ } = _ref14,
2104
+ query = _objectWithoutPropertiesLoose(_ref14, ["name"]);
2052
2105
 
2053
2106
  return this.http.get("/layers/" + name + "/classify", query).json();
2054
2107
  }
@@ -2065,11 +2118,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2065
2118
 
2066
2119
  }, {
2067
2120
  key: "distincts",
2068
- value: function distincts(_ref14) {
2121
+ value: function distincts(_ref15) {
2069
2122
  let {
2070
2123
  name
2071
- } = _ref14,
2072
- query = _objectWithoutPropertiesLoose(_ref14, ["name"]);
2124
+ } = _ref15,
2125
+ query = _objectWithoutPropertiesLoose(_ref15, ["name"]);
2073
2126
 
2074
2127
  return this.http.get("/layers/" + name + "/distincts", query).json();
2075
2128
  }
@@ -2086,11 +2139,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2086
2139
 
2087
2140
  }, {
2088
2141
  key: "aggregateAttribute",
2089
- value: function aggregateAttribute(_ref15) {
2142
+ value: function aggregateAttribute(_ref16) {
2090
2143
  let {
2091
2144
  name
2092
- } = _ref15,
2093
- query = _objectWithoutPropertiesLoose(_ref15, ["name"]);
2145
+ } = _ref16,
2146
+ query = _objectWithoutPropertiesLoose(_ref16, ["name"]);
2094
2147
 
2095
2148
  return this.http.get("/layers/" + name + "/aggregate-values", query).json();
2096
2149
  }
@@ -2107,11 +2160,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2107
2160
 
2108
2161
  }, {
2109
2162
  key: "getFilteredFeaturesCount",
2110
- value: function getFilteredFeaturesCount(_ref16) {
2163
+ value: function getFilteredFeaturesCount(_ref17) {
2111
2164
  let {
2112
2165
  name
2113
- } = _ref16,
2114
- query = _objectWithoutPropertiesLoose(_ref16, ["name"]);
2166
+ } = _ref17,
2167
+ query = _objectWithoutPropertiesLoose(_ref17, ["name"]);
2115
2168
 
2116
2169
  return this.http.get("/layers/" + name + "/features/count", query).json();
2117
2170
  }
@@ -2161,11 +2214,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2161
2214
 
2162
2215
  }, {
2163
2216
  key: "validateExpression",
2164
- value: function validateExpression(_ref17) {
2217
+ value: function validateExpression(_ref18) {
2165
2218
  let {
2166
2219
  layerName
2167
- } = _ref17,
2168
- query = _objectWithoutPropertiesLoose(_ref17, ["layerName"]);
2220
+ } = _ref18,
2221
+ query = _objectWithoutPropertiesLoose(_ref18, ["layerName"]);
2169
2222
 
2170
2223
  return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
2171
2224
  }
@@ -2484,6 +2537,22 @@ let TablesService = /*#__PURE__*/function (_Service) {
2484
2537
  value: function setPermissionsBatch(data) {
2485
2538
  return this.http.put("/tables", data).then(() => {});
2486
2539
  }
2540
+ /**
2541
+ * No description
2542
+ *
2543
+ * @tags Tables
2544
+ * @name DeleteResources
2545
+ * @operationId TablesController_DeleteResources
2546
+ * @summary Bulk delete resources.
2547
+ * @request DELETE:/tables
2548
+ * @response `200` Success
2549
+ */
2550
+
2551
+ }, {
2552
+ key: "deleteResources",
2553
+ value: function deleteResources(query) {
2554
+ return this.http.delete("/tables", null, query).json();
2555
+ }
2487
2556
  /**
2488
2557
  * No description
2489
2558
  *
@@ -2949,6 +3018,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
2949
3018
  value: function setPermissionsBatch(data) {
2950
3019
  return this.http.put("/projects", data).then(() => {});
2951
3020
  }
3021
+ /**
3022
+ * No description
3023
+ *
3024
+ * @tags Projects
3025
+ * @name DeleteResources
3026
+ * @operationId ProjectsController_DeleteResources
3027
+ * @summary Bulk delete resources.
3028
+ * @request DELETE:/projects
3029
+ * @response `200` Success
3030
+ */
3031
+
3032
+ }, {
3033
+ key: "deleteResources",
3034
+ value: function deleteResources(query) {
3035
+ return this.http.delete("/projects", null, query).json();
3036
+ }
2952
3037
  /**
2953
3038
  * No description
2954
3039
  *
@@ -6132,6 +6217,74 @@ let Names = /*#__PURE__*/function () {
6132
6217
  return Names;
6133
6218
  }();
6134
6219
 
6220
+ /**
6221
+ * @title Spatial Processing Core API
6222
+ * @version v0.6.0
6223
+ * @baseUrl /sp
6224
+ */
6225
+
6226
+ let IceRouterService = /*#__PURE__*/function (_Service) {
6227
+ _inherits(IceRouterService, _Service);
6228
+
6229
+ var _super = /*#__PURE__*/_createSuper(IceRouterService);
6230
+
6231
+ function IceRouterService() {
6232
+ _classCallCheck(this, IceRouterService);
6233
+
6234
+ return _super.apply(this, arguments);
6235
+ }
6236
+
6237
+ _createClass(IceRouterService, [{
6238
+ key: "startTask",
6239
+
6240
+ /**
6241
+ * No description
6242
+ *
6243
+ * @tags IceRouter
6244
+ * @name StartTask
6245
+ * @operationId IceRouterController_StartTask
6246
+ * @summary Start route build between start and end points.
6247
+ * @request POST:/ice-router/tasks
6248
+ * @response `200` Success
6249
+ */
6250
+ value: function startTask(data) {
6251
+ return this.http.post("/ice-router/tasks", data).text();
6252
+ }
6253
+ /**
6254
+ * No description
6255
+ *
6256
+ * @tags IceRouter
6257
+ * @name GetResult
6258
+ * @operationId IceRouterController_GetResult
6259
+ * @summary Get task result.
6260
+ * @request GET:/ice-router/tasks/{id}
6261
+ * @response `200` Success
6262
+ */
6263
+
6264
+ }, {
6265
+ key: "getResult",
6266
+ value: function getResult(id) {
6267
+ return this.http.get("/ice-router/tasks/" + id).json();
6268
+ }
6269
+ }]);
6270
+
6271
+ return IceRouterService;
6272
+ }(Service);
6273
+
6274
+ let IceRouter = /*#__PURE__*/function (_IceRouterService) {
6275
+ _inherits(IceRouter, _IceRouterService);
6276
+
6277
+ var _super = /*#__PURE__*/_createSuper(IceRouter);
6278
+
6279
+ function IceRouter() {
6280
+ _classCallCheck(this, IceRouter);
6281
+
6282
+ return _super.apply(this, arguments);
6283
+ }
6284
+
6285
+ return IceRouter;
6286
+ }(IceRouterService);
6287
+
6135
6288
  /**
6136
6289
  * @title Spatial Processing Core API
6137
6290
  * @version v0.6.0
@@ -6347,6 +6500,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6347
6500
  _this.namespace = new Namespace(_this.http);
6348
6501
  _this.external = new External(_this.http);
6349
6502
  _this.clientSettings = new ClientSettings(_this.http);
6503
+ _this.iceRouter = new IceRouter(_this.http);
6350
6504
  _this.names = new Names({
6351
6505
  account: _this.account
6352
6506
  });
@@ -6776,8 +6930,7 @@ function isFeatureLayer(layer) {
6776
6930
  */
6777
6931
 
6778
6932
  /**
6779
- * The type of aggregation function for storage query.
6780
- The aggregation is applied to the source attribute and the result will write in the target attribute.
6933
+ *
6781
6934
 
6782
6935
  None
6783
6936
 
@@ -6982,6 +7135,8 @@ InvalidLayerType
6982
7135
  ColumnLoadingError
6983
7136
 
6984
7137
  InvalidAttributeFormat
7138
+
7139
+ DataSourceNotFound
6985
7140
  */
6986
7141
 
6987
7142
 
@@ -7007,6 +7162,7 @@ var ConfigurationErrorEnum;
7007
7162
  ConfigurationErrorEnum["InvalidLayerType"] = "InvalidLayerType";
7008
7163
  ConfigurationErrorEnum["ColumnLoadingError"] = "ColumnLoadingError";
7009
7164
  ConfigurationErrorEnum["InvalidAttributeFormat"] = "InvalidAttributeFormat";
7165
+ ConfigurationErrorEnum["DataSourceNotFound"] = "DataSourceNotFound";
7010
7166
  })(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
7011
7167
  /**
7012
7168
  * Specifies display element type.
@@ -7209,7 +7365,7 @@ var FontWeight;
7209
7365
  FontWeight["UltraBlack"] = "UltraBlack";
7210
7366
  })(FontWeight || (FontWeight = {}));
7211
7367
  /**
7212
- * Type of the geometry.
7368
+ *
7213
7369
 
7214
7370
  unknown
7215
7371
 
@@ -7353,7 +7509,7 @@ var LineEndingType;
7353
7509
  LineEndingType["FilledCircle"] = "filledCircle";
7354
7510
  })(LineEndingType || (LineEndingType = {}));
7355
7511
  /**
7356
- * Boolean operation between polygons.
7512
+ *
7357
7513
 
7358
7514
  Unknown
7359
7515
 
@@ -7608,5 +7764,5 @@ var ToolStorageType;
7608
7764
  ToolStorageType["LayersStorage"] = "layersStorage";
7609
7765
  })(ToolStorageType || (ToolStorageType = {}));
7610
7766
 
7611
- export { API_USER_INFO_KEY, Account, AccountPreview, AggregationFunction, Api, ApiEvent, ArgumentType, AttributeType, BulkOperations, ClassificationType, ClientSettings, CombineType, ConfigurationErrorEnum, ConnectionStatus, DependencyType, ElementType, ErrorDetailsType, ErrorReason, ErrorType, EvergisDynamicLayer, EvergisTileLayer, External, FeatureType, FileUpload, FontStyle, FontWeight, GEOCODE_PROVIDER, General, Geocode, GeometryType, HttpClient, HttpStatusCode, Import, Layers, LayersManager, LineEndingSize, LineEndingType, Names, Namespace, Notification, NotificationEvent, Operation, Permissions, PolicyType, Projects, ResourceCatalog, ResourceSeparator, ResourceType, ResourceTypeLink, Resources, Scheduler, Security, ServerTaskStatus, SpatialProcessor, StringSubType, Styles, Tables, TextAlignment, TextVerticalAlignment, ToolStatus, ToolStorageType, Tools, UrlPath, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, isEvergisDynamicLayer, isEvergisTileLayer, isFeatureLayer, isHTTPError, isHandledError, isLayer, isProjectContentItems, isString, isTileLayerService, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
7767
+ export { API_USER_INFO_KEY, Account, AccountPreview, AggregationFunction, Api, ApiEvent, ArgumentType, AttributeType, BulkOperations, ClassificationType, ClientSettings, CombineType, ConfigurationErrorEnum, ConnectionStatus, DependencyType, ElementType, ErrorDetailsType, ErrorReason, ErrorType, EvergisDynamicLayer, EvergisTileLayer, External, FeatureType, FileUpload, FontStyle, FontWeight, GEOCODE_PROVIDER, General, Geocode, GeometryType, HttpClient, HttpStatusCode, IceRouter, Import, Layers, LayersManager, LineEndingSize, LineEndingType, Names, Namespace, Notification, NotificationEvent, Operation, Permissions, PolicyType, Projects, ResourceCatalog, ResourceSeparator, ResourceType, ResourceTypeLink, Resources, Scheduler, Security, ServerTaskStatus, SpatialProcessor, StringSubType, Styles, Tables, TextAlignment, TextVerticalAlignment, ToolStatus, ToolStorageType, Tools, UrlPath, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, isEvergisDynamicLayer, isEvergisTileLayer, isFeatureLayer, isHTTPError, isHandledError, isLayer, isProjectContentItems, isString, isTileLayerService, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
7612
7768
  //# sourceMappingURL=api.esm.js.map