@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.
@@ -337,8 +337,21 @@ let SecurityService = /*#__PURE__*/function (_Service) {
337
337
  }
338
338
 
339
339
  _createClass(SecurityService, [{
340
- key: "findUserByName",
340
+ key: "findUserByNameByRoles",
341
341
 
342
+ /**
343
+ * No description
344
+ *
345
+ * @tags SecurityService
346
+ * @name FindUserByNameByRoles
347
+ * @operationId SecurityServiceController_FindUserByNameByRoles
348
+ * @summary Get users list with given roles list.
349
+ * @request GET:/security/findUsersWithRoles
350
+ * @response `200` Success
351
+ */
352
+ value: function findUserByNameByRoles(query) {
353
+ return this.http.get("/security/findUsersWithRoles", query).json();
354
+ }
342
355
  /**
343
356
  * No description
344
357
  *
@@ -349,6 +362,9 @@ let SecurityService = /*#__PURE__*/function (_Service) {
349
362
  * @request GET:/security/users
350
363
  * @response `200` Success
351
364
  */
365
+
366
+ }, {
367
+ key: "findUserByName",
352
368
  value: function findUserByName(query) {
353
369
  return this.http.get("/security/users", query).json();
354
370
  }
@@ -1462,6 +1478,22 @@ let LayersService = /*#__PURE__*/function (_Service) {
1462
1478
  value: function setPermissionsBatch(data) {
1463
1479
  return this.http.put("/layers", data).then(() => {});
1464
1480
  }
1481
+ /**
1482
+ * No description
1483
+ *
1484
+ * @tags Layers
1485
+ * @name DeleteResources
1486
+ * @operationId LayersController_DeleteResources
1487
+ * @summary Bulk delete resources.
1488
+ * @request DELETE:/layers
1489
+ * @response `200` Success
1490
+ */
1491
+
1492
+ }, {
1493
+ key: "deleteResources",
1494
+ value: function deleteResources(query) {
1495
+ return this.http.delete("/layers", null, query).json();
1496
+ }
1465
1497
  /**
1466
1498
  * No description
1467
1499
  *
@@ -1819,6 +1851,27 @@ let LayersService = /*#__PURE__*/function (_Service) {
1819
1851
  value: function updateFeature(name, data) {
1820
1852
  return this.http.patch("/layers/" + name + "/features", data).json();
1821
1853
  }
1854
+ /**
1855
+ * No description
1856
+ *
1857
+ * @tags Layers
1858
+ * @name FeaturesContains
1859
+ * @operationId LayersController_FeaturesContains
1860
+ * @summary Gets filtered features with given filter.
1861
+ * @request GET:/layers/{name}/features/contains
1862
+ * @response `200` Success
1863
+ */
1864
+
1865
+ }, {
1866
+ key: "featuresContains",
1867
+ value: function featuresContains(_ref3) {
1868
+ let {
1869
+ name
1870
+ } = _ref3,
1871
+ query = _objectWithoutPropertiesLoose(_ref3, ["name"]);
1872
+
1873
+ return this.http.get("/layers/" + name + "/features/contains", query).json();
1874
+ }
1822
1875
  /**
1823
1876
  * No description
1824
1877
  *
@@ -1832,12 +1885,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
1832
1885
 
1833
1886
  }, {
1834
1887
  key: "getById",
1835
- value: function getById(_ref3) {
1888
+ value: function getById(_ref4) {
1836
1889
  let {
1837
1890
  name,
1838
1891
  id
1839
- } = _ref3,
1840
- query = _objectWithoutPropertiesLoose(_ref3, ["name", "id"]);
1892
+ } = _ref4,
1893
+ query = _objectWithoutPropertiesLoose(_ref4, ["name", "id"]);
1841
1894
 
1842
1895
  return this.http.get("/layers/" + name + "/features/" + id, query).json();
1843
1896
  }
@@ -1854,12 +1907,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
1854
1907
 
1855
1908
  }, {
1856
1909
  key: "unite",
1857
- value: function unite(_ref4, data) {
1910
+ value: function unite(_ref5, data) {
1858
1911
  let {
1859
1912
  name,
1860
1913
  id
1861
- } = _ref4,
1862
- query = _objectWithoutPropertiesLoose(_ref4, ["name", "id"]);
1914
+ } = _ref5,
1915
+ query = _objectWithoutPropertiesLoose(_ref5, ["name", "id"]);
1863
1916
 
1864
1917
  return this.http.post("/layers/" + name + "/features/" + id + "/unite", data, query).json();
1865
1918
  }
@@ -1876,12 +1929,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
1876
1929
 
1877
1930
  }, {
1878
1931
  key: "subtract",
1879
- value: function subtract(_ref5, data) {
1932
+ value: function subtract(_ref6, data) {
1880
1933
  let {
1881
1934
  name,
1882
1935
  id
1883
- } = _ref5,
1884
- query = _objectWithoutPropertiesLoose(_ref5, ["name", "id"]);
1936
+ } = _ref6,
1937
+ query = _objectWithoutPropertiesLoose(_ref6, ["name", "id"]);
1885
1938
 
1886
1939
  return this.http.post("/layers/" + name + "/features/" + id + "/subtract", data, query).json();
1887
1940
  }
@@ -1898,14 +1951,14 @@ let LayersService = /*#__PURE__*/function (_Service) {
1898
1951
 
1899
1952
  }, {
1900
1953
  key: "getTilesLayerImage",
1901
- value: function getTilesLayerImage(_ref6) {
1954
+ value: function getTilesLayerImage(_ref7) {
1902
1955
  let {
1903
1956
  name,
1904
1957
  x,
1905
1958
  y,
1906
1959
  z
1907
- } = _ref6,
1908
- query = _objectWithoutPropertiesLoose(_ref6, ["name", "x", "y", "z"]);
1960
+ } = _ref7,
1961
+ query = _objectWithoutPropertiesLoose(_ref7, ["name", "x", "y", "z"]);
1909
1962
 
1910
1963
  return this.http.createUrl("/layers/" + name + "/tile/" + z + "/" + x + "/" + y, query);
1911
1964
  }
@@ -1922,11 +1975,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1922
1975
 
1923
1976
  }, {
1924
1977
  key: "getLayerImage",
1925
- value: function getLayerImage(_ref7) {
1978
+ value: function getLayerImage(_ref8) {
1926
1979
  let {
1927
1980
  name
1928
- } = _ref7,
1929
- query = _objectWithoutPropertiesLoose(_ref7, ["name"]);
1981
+ } = _ref8,
1982
+ query = _objectWithoutPropertiesLoose(_ref8, ["name"]);
1930
1983
 
1931
1984
  return this.http.createUrl("/layers/" + name + "/export", query);
1932
1985
  }
@@ -1943,11 +1996,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1943
1996
 
1944
1997
  }, {
1945
1998
  key: "getLayerExtent",
1946
- value: function getLayerExtent(_ref8) {
1999
+ value: function getLayerExtent(_ref9) {
1947
2000
  let {
1948
2001
  name
1949
- } = _ref8,
1950
- query = _objectWithoutPropertiesLoose(_ref8, ["name"]);
2002
+ } = _ref9,
2003
+ query = _objectWithoutPropertiesLoose(_ref9, ["name"]);
1951
2004
 
1952
2005
  return this.http.get("/layers/" + name + "/extent", query).json();
1953
2006
  }
@@ -1964,11 +2017,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1964
2017
 
1965
2018
  }, {
1966
2019
  key: "getByGeometry",
1967
- value: function getByGeometry(_ref9) {
2020
+ value: function getByGeometry(_ref10) {
1968
2021
  let {
1969
2022
  name
1970
- } = _ref9,
1971
- query = _objectWithoutPropertiesLoose(_ref9, ["name"]);
2023
+ } = _ref10,
2024
+ query = _objectWithoutPropertiesLoose(_ref10, ["name"]);
1972
2025
 
1973
2026
  return this.http.get("/layers/" + name + "/features/getByGeometry", query).json();
1974
2027
  }
@@ -1985,11 +2038,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1985
2038
 
1986
2039
  }, {
1987
2040
  key: "getByGeometryPost",
1988
- value: function getByGeometryPost(_ref10, data) {
2041
+ value: function getByGeometryPost(_ref11, data) {
1989
2042
  let {
1990
2043
  name
1991
- } = _ref10,
1992
- query = _objectWithoutPropertiesLoose(_ref10, ["name"]);
2044
+ } = _ref11,
2045
+ query = _objectWithoutPropertiesLoose(_ref11, ["name"]);
1993
2046
 
1994
2047
  return this.http.post("/layers/" + name + "/features/getByGeometry", data, query).json();
1995
2048
  }
@@ -2006,11 +2059,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2006
2059
 
2007
2060
  }, {
2008
2061
  key: "deleteFeatures",
2009
- value: function deleteFeatures(_ref11) {
2062
+ value: function deleteFeatures(_ref12) {
2010
2063
  let {
2011
2064
  name
2012
- } = _ref11,
2013
- query = _objectWithoutPropertiesLoose(_ref11, ["name"]);
2065
+ } = _ref12,
2066
+ query = _objectWithoutPropertiesLoose(_ref12, ["name"]);
2014
2067
 
2015
2068
  return this.http.delete("/layers/" + name + "/features/deleteByIds", null, query).json();
2016
2069
  }
@@ -2027,11 +2080,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2027
2080
 
2028
2081
  }, {
2029
2082
  key: "getByGeometryGet",
2030
- value: function getByGeometryGet(_ref12) {
2083
+ value: function getByGeometryGet(_ref13) {
2031
2084
  let {
2032
2085
  name
2033
- } = _ref12,
2034
- query = _objectWithoutPropertiesLoose(_ref12, ["name"]);
2086
+ } = _ref13,
2087
+ query = _objectWithoutPropertiesLoose(_ref13, ["name"]);
2035
2088
 
2036
2089
  return this.http.get("/layers/" + name + "/features/getByGeometryByClick", query).json();
2037
2090
  }
@@ -2048,11 +2101,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2048
2101
 
2049
2102
  }, {
2050
2103
  key: "classify",
2051
- value: function classify(_ref13) {
2104
+ value: function classify(_ref14) {
2052
2105
  let {
2053
2106
  name
2054
- } = _ref13,
2055
- query = _objectWithoutPropertiesLoose(_ref13, ["name"]);
2107
+ } = _ref14,
2108
+ query = _objectWithoutPropertiesLoose(_ref14, ["name"]);
2056
2109
 
2057
2110
  return this.http.get("/layers/" + name + "/classify", query).json();
2058
2111
  }
@@ -2069,11 +2122,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2069
2122
 
2070
2123
  }, {
2071
2124
  key: "distincts",
2072
- value: function distincts(_ref14) {
2125
+ value: function distincts(_ref15) {
2073
2126
  let {
2074
2127
  name
2075
- } = _ref14,
2076
- query = _objectWithoutPropertiesLoose(_ref14, ["name"]);
2128
+ } = _ref15,
2129
+ query = _objectWithoutPropertiesLoose(_ref15, ["name"]);
2077
2130
 
2078
2131
  return this.http.get("/layers/" + name + "/distincts", query).json();
2079
2132
  }
@@ -2090,11 +2143,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2090
2143
 
2091
2144
  }, {
2092
2145
  key: "aggregateAttribute",
2093
- value: function aggregateAttribute(_ref15) {
2146
+ value: function aggregateAttribute(_ref16) {
2094
2147
  let {
2095
2148
  name
2096
- } = _ref15,
2097
- query = _objectWithoutPropertiesLoose(_ref15, ["name"]);
2149
+ } = _ref16,
2150
+ query = _objectWithoutPropertiesLoose(_ref16, ["name"]);
2098
2151
 
2099
2152
  return this.http.get("/layers/" + name + "/aggregate-values", query).json();
2100
2153
  }
@@ -2111,11 +2164,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2111
2164
 
2112
2165
  }, {
2113
2166
  key: "getFilteredFeaturesCount",
2114
- value: function getFilteredFeaturesCount(_ref16) {
2167
+ value: function getFilteredFeaturesCount(_ref17) {
2115
2168
  let {
2116
2169
  name
2117
- } = _ref16,
2118
- query = _objectWithoutPropertiesLoose(_ref16, ["name"]);
2170
+ } = _ref17,
2171
+ query = _objectWithoutPropertiesLoose(_ref17, ["name"]);
2119
2172
 
2120
2173
  return this.http.get("/layers/" + name + "/features/count", query).json();
2121
2174
  }
@@ -2165,11 +2218,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2165
2218
 
2166
2219
  }, {
2167
2220
  key: "validateExpression",
2168
- value: function validateExpression(_ref17) {
2221
+ value: function validateExpression(_ref18) {
2169
2222
  let {
2170
2223
  layerName
2171
- } = _ref17,
2172
- query = _objectWithoutPropertiesLoose(_ref17, ["layerName"]);
2224
+ } = _ref18,
2225
+ query = _objectWithoutPropertiesLoose(_ref18, ["layerName"]);
2173
2226
 
2174
2227
  return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
2175
2228
  }
@@ -2488,6 +2541,22 @@ let TablesService = /*#__PURE__*/function (_Service) {
2488
2541
  value: function setPermissionsBatch(data) {
2489
2542
  return this.http.put("/tables", data).then(() => {});
2490
2543
  }
2544
+ /**
2545
+ * No description
2546
+ *
2547
+ * @tags Tables
2548
+ * @name DeleteResources
2549
+ * @operationId TablesController_DeleteResources
2550
+ * @summary Bulk delete resources.
2551
+ * @request DELETE:/tables
2552
+ * @response `200` Success
2553
+ */
2554
+
2555
+ }, {
2556
+ key: "deleteResources",
2557
+ value: function deleteResources(query) {
2558
+ return this.http.delete("/tables", null, query).json();
2559
+ }
2491
2560
  /**
2492
2561
  * No description
2493
2562
  *
@@ -2953,6 +3022,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
2953
3022
  value: function setPermissionsBatch(data) {
2954
3023
  return this.http.put("/projects", data).then(() => {});
2955
3024
  }
3025
+ /**
3026
+ * No description
3027
+ *
3028
+ * @tags Projects
3029
+ * @name DeleteResources
3030
+ * @operationId ProjectsController_DeleteResources
3031
+ * @summary Bulk delete resources.
3032
+ * @request DELETE:/projects
3033
+ * @response `200` Success
3034
+ */
3035
+
3036
+ }, {
3037
+ key: "deleteResources",
3038
+ value: function deleteResources(query) {
3039
+ return this.http.delete("/projects", null, query).json();
3040
+ }
2956
3041
  /**
2957
3042
  * No description
2958
3043
  *
@@ -6131,6 +6216,74 @@ let Names = /*#__PURE__*/function () {
6131
6216
  return Names;
6132
6217
  }();
6133
6218
 
6219
+ /**
6220
+ * @title Spatial Processing Core API
6221
+ * @version v0.6.0
6222
+ * @baseUrl /sp
6223
+ */
6224
+
6225
+ let IceRouterService = /*#__PURE__*/function (_Service) {
6226
+ _inherits(IceRouterService, _Service);
6227
+
6228
+ var _super = /*#__PURE__*/_createSuper(IceRouterService);
6229
+
6230
+ function IceRouterService() {
6231
+ _classCallCheck(this, IceRouterService);
6232
+
6233
+ return _super.apply(this, arguments);
6234
+ }
6235
+
6236
+ _createClass(IceRouterService, [{
6237
+ key: "startTask",
6238
+
6239
+ /**
6240
+ * No description
6241
+ *
6242
+ * @tags IceRouter
6243
+ * @name StartTask
6244
+ * @operationId IceRouterController_StartTask
6245
+ * @summary Start route build between start and end points.
6246
+ * @request POST:/ice-router/tasks
6247
+ * @response `200` Success
6248
+ */
6249
+ value: function startTask(data) {
6250
+ return this.http.post("/ice-router/tasks", data).text();
6251
+ }
6252
+ /**
6253
+ * No description
6254
+ *
6255
+ * @tags IceRouter
6256
+ * @name GetResult
6257
+ * @operationId IceRouterController_GetResult
6258
+ * @summary Get task result.
6259
+ * @request GET:/ice-router/tasks/{id}
6260
+ * @response `200` Success
6261
+ */
6262
+
6263
+ }, {
6264
+ key: "getResult",
6265
+ value: function getResult(id) {
6266
+ return this.http.get("/ice-router/tasks/" + id).json();
6267
+ }
6268
+ }]);
6269
+
6270
+ return IceRouterService;
6271
+ }(Service);
6272
+
6273
+ let IceRouter = /*#__PURE__*/function (_IceRouterService) {
6274
+ _inherits(IceRouter, _IceRouterService);
6275
+
6276
+ var _super = /*#__PURE__*/_createSuper(IceRouter);
6277
+
6278
+ function IceRouter() {
6279
+ _classCallCheck(this, IceRouter);
6280
+
6281
+ return _super.apply(this, arguments);
6282
+ }
6283
+
6284
+ return IceRouter;
6285
+ }(IceRouterService);
6286
+
6134
6287
  /**
6135
6288
  * @title Spatial Processing Core API
6136
6289
  * @version v0.6.0
@@ -6342,6 +6495,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6342
6495
  _this.namespace = new Namespace(_this.http);
6343
6496
  _this.external = new External(_this.http);
6344
6497
  _this.clientSettings = new ClientSettings(_this.http);
6498
+ _this.iceRouter = new IceRouter(_this.http);
6345
6499
  _this.names = new Names({
6346
6500
  account: _this.account
6347
6501
  });
@@ -6835,6 +6989,7 @@ function isFeatureLayer(layer) {
6835
6989
  ConfigurationErrorEnum["InvalidLayerType"] = "InvalidLayerType";
6836
6990
  ConfigurationErrorEnum["ColumnLoadingError"] = "ColumnLoadingError";
6837
6991
  ConfigurationErrorEnum["InvalidAttributeFormat"] = "InvalidAttributeFormat";
6992
+ ConfigurationErrorEnum["DataSourceNotFound"] = "DataSourceNotFound";
6838
6993
  })(exports.ConfigurationErrorEnum || (exports.ConfigurationErrorEnum = {}));
6839
6994
 
6840
6995
  (function (ElementType) {
@@ -7119,6 +7274,7 @@ exports.GEOCODE_PROVIDER = GEOCODE_PROVIDER;
7119
7274
  exports.General = General;
7120
7275
  exports.Geocode = Geocode;
7121
7276
  exports.HttpClient = HttpClient;
7277
+ exports.IceRouter = IceRouter;
7122
7278
  exports.Import = Import;
7123
7279
  exports.Layers = Layers;
7124
7280
  exports.LayersManager = LayersManager;