@evergis/api 3.0.52 → 3.0.56

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.
@@ -358,7 +358,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
358
358
  * @tags SecurityService
359
359
  * @name FindUserByName
360
360
  * @operationId SecurityServiceController_FindUserByName
361
- * @summary Returns the list of users found by username or email.
361
+ * @summary Returns the list of users found by username.
362
362
  * @request GET:/security/users
363
363
  * @response `200` Success
364
364
  */
@@ -612,6 +612,22 @@ let StaticContentService = /*#__PURE__*/function (_Service) {
612
612
  value: function uploadFile(data) {
613
613
  return this.http.post("/upload/file", toFormData(data)).json();
614
614
  }
615
+ /**
616
+ * No description
617
+ *
618
+ * @tags StaticContentService
619
+ * @name DeleteFile
620
+ * @operationId StaticContentServiceController_DeleteFile
621
+ * @summary Delete file from temporary session storage.
622
+ * @request DELETE:/upload/file
623
+ * @response `200` Success
624
+ */
625
+
626
+ }, {
627
+ key: "deleteFile",
628
+ value: function deleteFile(query) {
629
+ return this.http.delete("/upload/file", null, query).then(() => {});
630
+ }
615
631
  }]);
616
632
 
617
633
  return StaticContentService;
@@ -1851,6 +1867,27 @@ let LayersService = /*#__PURE__*/function (_Service) {
1851
1867
  value: function updateFeature(name, data) {
1852
1868
  return this.http.patch("/layers/" + name + "/features", data).json();
1853
1869
  }
1870
+ /**
1871
+ * No description
1872
+ *
1873
+ * @tags Layers
1874
+ * @name FeaturesContains
1875
+ * @operationId LayersController_FeaturesContains
1876
+ * @summary Gets filtered features with given filter.
1877
+ * @request GET:/layers/{name}/features/contains
1878
+ * @response `200` Success
1879
+ */
1880
+
1881
+ }, {
1882
+ key: "featuresContains",
1883
+ value: function featuresContains(_ref3) {
1884
+ let {
1885
+ name
1886
+ } = _ref3,
1887
+ query = _objectWithoutPropertiesLoose(_ref3, ["name"]);
1888
+
1889
+ return this.http.get("/layers/" + name + "/features/contains", query).json();
1890
+ }
1854
1891
  /**
1855
1892
  * No description
1856
1893
  *
@@ -1864,12 +1901,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
1864
1901
 
1865
1902
  }, {
1866
1903
  key: "getById",
1867
- value: function getById(_ref3) {
1904
+ value: function getById(_ref4) {
1868
1905
  let {
1869
1906
  name,
1870
1907
  id
1871
- } = _ref3,
1872
- query = _objectWithoutPropertiesLoose(_ref3, ["name", "id"]);
1908
+ } = _ref4,
1909
+ query = _objectWithoutPropertiesLoose(_ref4, ["name", "id"]);
1873
1910
 
1874
1911
  return this.http.get("/layers/" + name + "/features/" + id, query).json();
1875
1912
  }
@@ -1886,12 +1923,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
1886
1923
 
1887
1924
  }, {
1888
1925
  key: "unite",
1889
- value: function unite(_ref4, data) {
1926
+ value: function unite(_ref5, data) {
1890
1927
  let {
1891
1928
  name,
1892
1929
  id
1893
- } = _ref4,
1894
- query = _objectWithoutPropertiesLoose(_ref4, ["name", "id"]);
1930
+ } = _ref5,
1931
+ query = _objectWithoutPropertiesLoose(_ref5, ["name", "id"]);
1895
1932
 
1896
1933
  return this.http.post("/layers/" + name + "/features/" + id + "/unite", data, query).json();
1897
1934
  }
@@ -1908,12 +1945,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
1908
1945
 
1909
1946
  }, {
1910
1947
  key: "subtract",
1911
- value: function subtract(_ref5, data) {
1948
+ value: function subtract(_ref6, data) {
1912
1949
  let {
1913
1950
  name,
1914
1951
  id
1915
- } = _ref5,
1916
- query = _objectWithoutPropertiesLoose(_ref5, ["name", "id"]);
1952
+ } = _ref6,
1953
+ query = _objectWithoutPropertiesLoose(_ref6, ["name", "id"]);
1917
1954
 
1918
1955
  return this.http.post("/layers/" + name + "/features/" + id + "/subtract", data, query).json();
1919
1956
  }
@@ -1930,14 +1967,14 @@ let LayersService = /*#__PURE__*/function (_Service) {
1930
1967
 
1931
1968
  }, {
1932
1969
  key: "getTilesLayerImage",
1933
- value: function getTilesLayerImage(_ref6) {
1970
+ value: function getTilesLayerImage(_ref7) {
1934
1971
  let {
1935
1972
  name,
1936
1973
  x,
1937
1974
  y,
1938
1975
  z
1939
- } = _ref6,
1940
- query = _objectWithoutPropertiesLoose(_ref6, ["name", "x", "y", "z"]);
1976
+ } = _ref7,
1977
+ query = _objectWithoutPropertiesLoose(_ref7, ["name", "x", "y", "z"]);
1941
1978
 
1942
1979
  return this.http.createUrl("/layers/" + name + "/tile/" + z + "/" + x + "/" + y, query);
1943
1980
  }
@@ -1954,11 +1991,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1954
1991
 
1955
1992
  }, {
1956
1993
  key: "getLayerImage",
1957
- value: function getLayerImage(_ref7) {
1994
+ value: function getLayerImage(_ref8) {
1958
1995
  let {
1959
1996
  name
1960
- } = _ref7,
1961
- query = _objectWithoutPropertiesLoose(_ref7, ["name"]);
1997
+ } = _ref8,
1998
+ query = _objectWithoutPropertiesLoose(_ref8, ["name"]);
1962
1999
 
1963
2000
  return this.http.createUrl("/layers/" + name + "/export", query);
1964
2001
  }
@@ -1975,11 +2012,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1975
2012
 
1976
2013
  }, {
1977
2014
  key: "getLayerExtent",
1978
- value: function getLayerExtent(_ref8) {
2015
+ value: function getLayerExtent(_ref9) {
1979
2016
  let {
1980
2017
  name
1981
- } = _ref8,
1982
- query = _objectWithoutPropertiesLoose(_ref8, ["name"]);
2018
+ } = _ref9,
2019
+ query = _objectWithoutPropertiesLoose(_ref9, ["name"]);
1983
2020
 
1984
2021
  return this.http.get("/layers/" + name + "/extent", query).json();
1985
2022
  }
@@ -1996,11 +2033,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1996
2033
 
1997
2034
  }, {
1998
2035
  key: "getByGeometry",
1999
- value: function getByGeometry(_ref9) {
2036
+ value: function getByGeometry(_ref10) {
2000
2037
  let {
2001
2038
  name
2002
- } = _ref9,
2003
- query = _objectWithoutPropertiesLoose(_ref9, ["name"]);
2039
+ } = _ref10,
2040
+ query = _objectWithoutPropertiesLoose(_ref10, ["name"]);
2004
2041
 
2005
2042
  return this.http.get("/layers/" + name + "/features/getByGeometry", query).json();
2006
2043
  }
@@ -2017,11 +2054,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2017
2054
 
2018
2055
  }, {
2019
2056
  key: "getByGeometryPost",
2020
- value: function getByGeometryPost(_ref10, data) {
2057
+ value: function getByGeometryPost(_ref11, data) {
2021
2058
  let {
2022
2059
  name
2023
- } = _ref10,
2024
- query = _objectWithoutPropertiesLoose(_ref10, ["name"]);
2060
+ } = _ref11,
2061
+ query = _objectWithoutPropertiesLoose(_ref11, ["name"]);
2025
2062
 
2026
2063
  return this.http.post("/layers/" + name + "/features/getByGeometry", data, query).json();
2027
2064
  }
@@ -2038,11 +2075,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2038
2075
 
2039
2076
  }, {
2040
2077
  key: "deleteFeatures",
2041
- value: function deleteFeatures(_ref11) {
2078
+ value: function deleteFeatures(_ref12) {
2042
2079
  let {
2043
2080
  name
2044
- } = _ref11,
2045
- query = _objectWithoutPropertiesLoose(_ref11, ["name"]);
2081
+ } = _ref12,
2082
+ query = _objectWithoutPropertiesLoose(_ref12, ["name"]);
2046
2083
 
2047
2084
  return this.http.delete("/layers/" + name + "/features/deleteByIds", null, query).json();
2048
2085
  }
@@ -2059,11 +2096,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2059
2096
 
2060
2097
  }, {
2061
2098
  key: "getByGeometryGet",
2062
- value: function getByGeometryGet(_ref12) {
2099
+ value: function getByGeometryGet(_ref13) {
2063
2100
  let {
2064
2101
  name
2065
- } = _ref12,
2066
- query = _objectWithoutPropertiesLoose(_ref12, ["name"]);
2102
+ } = _ref13,
2103
+ query = _objectWithoutPropertiesLoose(_ref13, ["name"]);
2067
2104
 
2068
2105
  return this.http.get("/layers/" + name + "/features/getByGeometryByClick", query).json();
2069
2106
  }
@@ -2080,11 +2117,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2080
2117
 
2081
2118
  }, {
2082
2119
  key: "classify",
2083
- value: function classify(_ref13) {
2120
+ value: function classify(_ref14) {
2084
2121
  let {
2085
2122
  name
2086
- } = _ref13,
2087
- query = _objectWithoutPropertiesLoose(_ref13, ["name"]);
2123
+ } = _ref14,
2124
+ query = _objectWithoutPropertiesLoose(_ref14, ["name"]);
2088
2125
 
2089
2126
  return this.http.get("/layers/" + name + "/classify", query).json();
2090
2127
  }
@@ -2101,11 +2138,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2101
2138
 
2102
2139
  }, {
2103
2140
  key: "distincts",
2104
- value: function distincts(_ref14) {
2141
+ value: function distincts(_ref15) {
2105
2142
  let {
2106
2143
  name
2107
- } = _ref14,
2108
- query = _objectWithoutPropertiesLoose(_ref14, ["name"]);
2144
+ } = _ref15,
2145
+ query = _objectWithoutPropertiesLoose(_ref15, ["name"]);
2109
2146
 
2110
2147
  return this.http.get("/layers/" + name + "/distincts", query).json();
2111
2148
  }
@@ -2122,11 +2159,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2122
2159
 
2123
2160
  }, {
2124
2161
  key: "aggregateAttribute",
2125
- value: function aggregateAttribute(_ref15) {
2162
+ value: function aggregateAttribute(_ref16) {
2126
2163
  let {
2127
2164
  name
2128
- } = _ref15,
2129
- query = _objectWithoutPropertiesLoose(_ref15, ["name"]);
2165
+ } = _ref16,
2166
+ query = _objectWithoutPropertiesLoose(_ref16, ["name"]);
2130
2167
 
2131
2168
  return this.http.get("/layers/" + name + "/aggregate-values", query).json();
2132
2169
  }
@@ -2143,11 +2180,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2143
2180
 
2144
2181
  }, {
2145
2182
  key: "getFilteredFeaturesCount",
2146
- value: function getFilteredFeaturesCount(_ref16) {
2183
+ value: function getFilteredFeaturesCount(_ref17) {
2147
2184
  let {
2148
2185
  name
2149
- } = _ref16,
2150
- query = _objectWithoutPropertiesLoose(_ref16, ["name"]);
2186
+ } = _ref17,
2187
+ query = _objectWithoutPropertiesLoose(_ref17, ["name"]);
2151
2188
 
2152
2189
  return this.http.get("/layers/" + name + "/features/count", query).json();
2153
2190
  }
@@ -2197,11 +2234,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2197
2234
 
2198
2235
  }, {
2199
2236
  key: "validateExpression",
2200
- value: function validateExpression(_ref17) {
2237
+ value: function validateExpression(_ref18) {
2201
2238
  let {
2202
2239
  layerName
2203
- } = _ref17,
2204
- query = _objectWithoutPropertiesLoose(_ref17, ["layerName"]);
2240
+ } = _ref18,
2241
+ query = _objectWithoutPropertiesLoose(_ref18, ["layerName"]);
2205
2242
 
2206
2243
  return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
2207
2244
  }
@@ -2584,6 +2621,27 @@ let TablesService = /*#__PURE__*/function (_Service) {
2584
2621
  value: function getTableInfo(name) {
2585
2622
  return this.http.get("/tables/" + name).json();
2586
2623
  }
2624
+ /**
2625
+ * No description
2626
+ *
2627
+ * @tags Tables
2628
+ * @name GetTableData
2629
+ * @operationId TablesController_GetTableData
2630
+ * @summary Retrieves the data from the table.
2631
+ * @request GET:/tables/{name}/data
2632
+ * @response `200` Success
2633
+ */
2634
+
2635
+ }, {
2636
+ key: "getTableData",
2637
+ value: function getTableData(_ref) {
2638
+ let {
2639
+ name
2640
+ } = _ref,
2641
+ query = _objectWithoutPropertiesLoose(_ref, ["name"]);
2642
+
2643
+ return this.http.get("/tables/" + name + "/data", query).json();
2644
+ }
2587
2645
  /**
2588
2646
  * No description
2589
2647
  *
@@ -2597,11 +2655,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
2597
2655
 
2598
2656
  }, {
2599
2657
  key: "updateTableData",
2600
- value: function updateTableData(_ref, data) {
2658
+ value: function updateTableData(_ref2, data) {
2601
2659
  let {
2602
2660
  name
2603
- } = _ref,
2604
- query = _objectWithoutPropertiesLoose(_ref, ["name"]);
2661
+ } = _ref2,
2662
+ query = _objectWithoutPropertiesLoose(_ref2, ["name"]);
2605
2663
 
2606
2664
  return this.http.patch("/tables/" + name + "/data", data, query).then(() => {});
2607
2665
  }
@@ -2618,11 +2676,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
2618
2676
 
2619
2677
  }, {
2620
2678
  key: "deleteTableData",
2621
- value: function deleteTableData(_ref2) {
2679
+ value: function deleteTableData(_ref3) {
2622
2680
  let {
2623
2681
  name
2624
- } = _ref2,
2625
- query = _objectWithoutPropertiesLoose(_ref2, ["name"]);
2682
+ } = _ref3,
2683
+ query = _objectWithoutPropertiesLoose(_ref3, ["name"]);
2626
2684
 
2627
2685
  return this.http.delete("/tables/" + name + "/data", null, query).then(() => {});
2628
2686
  }
@@ -2639,11 +2697,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
2639
2697
 
2640
2698
  }, {
2641
2699
  key: "getUniqueDataRows",
2642
- value: function getUniqueDataRows(_ref3) {
2700
+ value: function getUniqueDataRows(_ref4) {
2643
2701
  let {
2644
2702
  name
2645
- } = _ref3,
2646
- query = _objectWithoutPropertiesLoose(_ref3, ["name"]);
2703
+ } = _ref4,
2704
+ query = _objectWithoutPropertiesLoose(_ref4, ["name"]);
2647
2705
 
2648
2706
  return this.http.get("/tables/" + name + "/data/unique-values", query).json();
2649
2707
  }
@@ -6023,6 +6081,41 @@ let ClientSettings = /*#__PURE__*/function (_ClientSettingsServic) {
6023
6081
  return ClientSettings;
6024
6082
  }(ClientSettingsService);
6025
6083
 
6084
+ let PortalSettings = /*#__PURE__*/function (_ClientSettingsServic) {
6085
+ _inherits(PortalSettings, _ClientSettingsServic);
6086
+
6087
+ var _super = /*#__PURE__*/_createSuper(PortalSettings);
6088
+
6089
+ function PortalSettings() {
6090
+ var _this;
6091
+
6092
+ _classCallCheck(this, PortalSettings);
6093
+
6094
+ _this = _super.apply(this, arguments);
6095
+ _this.config = null;
6096
+ return _this;
6097
+ }
6098
+
6099
+ _createClass(PortalSettings, [{
6100
+ key: "fetchPortalSettings",
6101
+ value: async function fetchPortalSettings(query) {
6102
+ var _config$settings, _config$settings2, _config$settings3;
6103
+
6104
+ const config = JSON.parse(await this.getConfiguration(query));
6105
+ this.config = _extends({}, config, {
6106
+ settings: {
6107
+ withPortal: ((_config$settings = config.settings) == null ? void 0 : _config$settings.withPortal) === undefined || config.settings.withPortal,
6108
+ allowRegistration: ((_config$settings2 = config.settings) == null ? void 0 : _config$settings2.allowRegistration) === undefined || config.settings.allowRegistration,
6109
+ allowSNS: ((_config$settings3 = config.settings) == null ? void 0 : _config$settings3.allowSNS) === undefined || config.settings.allowSNS
6110
+ }
6111
+ });
6112
+ return this.config;
6113
+ }
6114
+ }]);
6115
+
6116
+ return PortalSettings;
6117
+ }(ClientSettingsService);
6118
+
6026
6119
  (function (ErrorReason) {
6027
6120
  /** When request has status code less than 400 */
6028
6121
  ErrorReason["HTTP_OTHER"] = "other";
@@ -6404,6 +6497,7 @@ let Print = /*#__PURE__*/function (_PrintService) {
6404
6497
  (function (UrlPath) {
6405
6498
  UrlPath["Base"] = "/map";
6406
6499
  UrlPath["Shared"] = "/shared";
6500
+ UrlPath["Portal"] = "/portal";
6407
6501
  })(exports.UrlPath || (exports.UrlPath = {}));
6408
6502
 
6409
6503
  const apiEventsByResponseStatus = {
@@ -6474,6 +6568,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6474
6568
  _this.namespace = new Namespace(_this.http);
6475
6569
  _this.external = new External(_this.http);
6476
6570
  _this.clientSettings = new ClientSettings(_this.http);
6571
+ _this.portalSettings = new PortalSettings(_this.http);
6477
6572
  _this.iceRouter = new IceRouter(_this.http);
6478
6573
  _this.names = new Names({
6479
6574
  account: _this.account
@@ -6968,6 +7063,7 @@ function isFeatureLayer(layer) {
6968
7063
  ConfigurationErrorEnum["InvalidLayerType"] = "InvalidLayerType";
6969
7064
  ConfigurationErrorEnum["ColumnLoadingError"] = "ColumnLoadingError";
6970
7065
  ConfigurationErrorEnum["InvalidAttributeFormat"] = "InvalidAttributeFormat";
7066
+ ConfigurationErrorEnum["DataSourceNotFound"] = "DataSourceNotFound";
6971
7067
  })(exports.ConfigurationErrorEnum || (exports.ConfigurationErrorEnum = {}));
6972
7068
 
6973
7069
  (function (ElementType) {
@@ -7260,6 +7356,7 @@ exports.Names = Names;
7260
7356
  exports.Namespace = Namespace;
7261
7357
  exports.Notification = Notification;
7262
7358
  exports.NotificationEvent = NotificationEvent;
7359
+ exports.PortalSettings = PortalSettings;
7263
7360
  exports.Projects = Projects;
7264
7361
  exports.ResourceCatalog = ResourceCatalog;
7265
7362
  exports.Resources = Resources;