@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.
package/dist/api.esm.js CHANGED
@@ -352,7 +352,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
352
352
  * @tags SecurityService
353
353
  * @name FindUserByName
354
354
  * @operationId SecurityServiceController_FindUserByName
355
- * @summary Returns the list of users found by username or email.
355
+ * @summary Returns the list of users found by username.
356
356
  * @request GET:/security/users
357
357
  * @response `200` Success
358
358
  */
@@ -606,6 +606,22 @@ let StaticContentService = /*#__PURE__*/function (_Service) {
606
606
  value: function uploadFile(data) {
607
607
  return this.http.post("/upload/file", toFormData(data)).json();
608
608
  }
609
+ /**
610
+ * No description
611
+ *
612
+ * @tags StaticContentService
613
+ * @name DeleteFile
614
+ * @operationId StaticContentServiceController_DeleteFile
615
+ * @summary Delete file from temporary session storage.
616
+ * @request DELETE:/upload/file
617
+ * @response `200` Success
618
+ */
619
+
620
+ }, {
621
+ key: "deleteFile",
622
+ value: function deleteFile(query) {
623
+ return this.http.delete("/upload/file", null, query).then(() => {});
624
+ }
609
625
  }]);
610
626
 
611
627
  return StaticContentService;
@@ -1847,6 +1863,27 @@ let LayersService = /*#__PURE__*/function (_Service) {
1847
1863
  value: function updateFeature(name, data) {
1848
1864
  return this.http.patch("/layers/" + name + "/features", data).json();
1849
1865
  }
1866
+ /**
1867
+ * No description
1868
+ *
1869
+ * @tags Layers
1870
+ * @name FeaturesContains
1871
+ * @operationId LayersController_FeaturesContains
1872
+ * @summary Gets filtered features with given filter.
1873
+ * @request GET:/layers/{name}/features/contains
1874
+ * @response `200` Success
1875
+ */
1876
+
1877
+ }, {
1878
+ key: "featuresContains",
1879
+ value: function featuresContains(_ref3) {
1880
+ let {
1881
+ name
1882
+ } = _ref3,
1883
+ query = _objectWithoutPropertiesLoose(_ref3, ["name"]);
1884
+
1885
+ return this.http.get("/layers/" + name + "/features/contains", query).json();
1886
+ }
1850
1887
  /**
1851
1888
  * No description
1852
1889
  *
@@ -1860,12 +1897,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
1860
1897
 
1861
1898
  }, {
1862
1899
  key: "getById",
1863
- value: function getById(_ref3) {
1900
+ value: function getById(_ref4) {
1864
1901
  let {
1865
1902
  name,
1866
1903
  id
1867
- } = _ref3,
1868
- query = _objectWithoutPropertiesLoose(_ref3, ["name", "id"]);
1904
+ } = _ref4,
1905
+ query = _objectWithoutPropertiesLoose(_ref4, ["name", "id"]);
1869
1906
 
1870
1907
  return this.http.get("/layers/" + name + "/features/" + id, query).json();
1871
1908
  }
@@ -1882,12 +1919,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
1882
1919
 
1883
1920
  }, {
1884
1921
  key: "unite",
1885
- value: function unite(_ref4, data) {
1922
+ value: function unite(_ref5, data) {
1886
1923
  let {
1887
1924
  name,
1888
1925
  id
1889
- } = _ref4,
1890
- query = _objectWithoutPropertiesLoose(_ref4, ["name", "id"]);
1926
+ } = _ref5,
1927
+ query = _objectWithoutPropertiesLoose(_ref5, ["name", "id"]);
1891
1928
 
1892
1929
  return this.http.post("/layers/" + name + "/features/" + id + "/unite", data, query).json();
1893
1930
  }
@@ -1904,12 +1941,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
1904
1941
 
1905
1942
  }, {
1906
1943
  key: "subtract",
1907
- value: function subtract(_ref5, data) {
1944
+ value: function subtract(_ref6, data) {
1908
1945
  let {
1909
1946
  name,
1910
1947
  id
1911
- } = _ref5,
1912
- query = _objectWithoutPropertiesLoose(_ref5, ["name", "id"]);
1948
+ } = _ref6,
1949
+ query = _objectWithoutPropertiesLoose(_ref6, ["name", "id"]);
1913
1950
 
1914
1951
  return this.http.post("/layers/" + name + "/features/" + id + "/subtract", data, query).json();
1915
1952
  }
@@ -1926,14 +1963,14 @@ let LayersService = /*#__PURE__*/function (_Service) {
1926
1963
 
1927
1964
  }, {
1928
1965
  key: "getTilesLayerImage",
1929
- value: function getTilesLayerImage(_ref6) {
1966
+ value: function getTilesLayerImage(_ref7) {
1930
1967
  let {
1931
1968
  name,
1932
1969
  x,
1933
1970
  y,
1934
1971
  z
1935
- } = _ref6,
1936
- query = _objectWithoutPropertiesLoose(_ref6, ["name", "x", "y", "z"]);
1972
+ } = _ref7,
1973
+ query = _objectWithoutPropertiesLoose(_ref7, ["name", "x", "y", "z"]);
1937
1974
 
1938
1975
  return this.http.createUrl("/layers/" + name + "/tile/" + z + "/" + x + "/" + y, query);
1939
1976
  }
@@ -1950,11 +1987,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1950
1987
 
1951
1988
  }, {
1952
1989
  key: "getLayerImage",
1953
- value: function getLayerImage(_ref7) {
1990
+ value: function getLayerImage(_ref8) {
1954
1991
  let {
1955
1992
  name
1956
- } = _ref7,
1957
- query = _objectWithoutPropertiesLoose(_ref7, ["name"]);
1993
+ } = _ref8,
1994
+ query = _objectWithoutPropertiesLoose(_ref8, ["name"]);
1958
1995
 
1959
1996
  return this.http.createUrl("/layers/" + name + "/export", query);
1960
1997
  }
@@ -1971,11 +2008,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1971
2008
 
1972
2009
  }, {
1973
2010
  key: "getLayerExtent",
1974
- value: function getLayerExtent(_ref8) {
2011
+ value: function getLayerExtent(_ref9) {
1975
2012
  let {
1976
2013
  name
1977
- } = _ref8,
1978
- query = _objectWithoutPropertiesLoose(_ref8, ["name"]);
2014
+ } = _ref9,
2015
+ query = _objectWithoutPropertiesLoose(_ref9, ["name"]);
1979
2016
 
1980
2017
  return this.http.get("/layers/" + name + "/extent", query).json();
1981
2018
  }
@@ -1992,11 +2029,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
1992
2029
 
1993
2030
  }, {
1994
2031
  key: "getByGeometry",
1995
- value: function getByGeometry(_ref9) {
2032
+ value: function getByGeometry(_ref10) {
1996
2033
  let {
1997
2034
  name
1998
- } = _ref9,
1999
- query = _objectWithoutPropertiesLoose(_ref9, ["name"]);
2035
+ } = _ref10,
2036
+ query = _objectWithoutPropertiesLoose(_ref10, ["name"]);
2000
2037
 
2001
2038
  return this.http.get("/layers/" + name + "/features/getByGeometry", query).json();
2002
2039
  }
@@ -2013,11 +2050,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2013
2050
 
2014
2051
  }, {
2015
2052
  key: "getByGeometryPost",
2016
- value: function getByGeometryPost(_ref10, data) {
2053
+ value: function getByGeometryPost(_ref11, data) {
2017
2054
  let {
2018
2055
  name
2019
- } = _ref10,
2020
- query = _objectWithoutPropertiesLoose(_ref10, ["name"]);
2056
+ } = _ref11,
2057
+ query = _objectWithoutPropertiesLoose(_ref11, ["name"]);
2021
2058
 
2022
2059
  return this.http.post("/layers/" + name + "/features/getByGeometry", data, query).json();
2023
2060
  }
@@ -2034,11 +2071,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2034
2071
 
2035
2072
  }, {
2036
2073
  key: "deleteFeatures",
2037
- value: function deleteFeatures(_ref11) {
2074
+ value: function deleteFeatures(_ref12) {
2038
2075
  let {
2039
2076
  name
2040
- } = _ref11,
2041
- query = _objectWithoutPropertiesLoose(_ref11, ["name"]);
2077
+ } = _ref12,
2078
+ query = _objectWithoutPropertiesLoose(_ref12, ["name"]);
2042
2079
 
2043
2080
  return this.http.delete("/layers/" + name + "/features/deleteByIds", null, query).json();
2044
2081
  }
@@ -2055,11 +2092,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2055
2092
 
2056
2093
  }, {
2057
2094
  key: "getByGeometryGet",
2058
- value: function getByGeometryGet(_ref12) {
2095
+ value: function getByGeometryGet(_ref13) {
2059
2096
  let {
2060
2097
  name
2061
- } = _ref12,
2062
- query = _objectWithoutPropertiesLoose(_ref12, ["name"]);
2098
+ } = _ref13,
2099
+ query = _objectWithoutPropertiesLoose(_ref13, ["name"]);
2063
2100
 
2064
2101
  return this.http.get("/layers/" + name + "/features/getByGeometryByClick", query).json();
2065
2102
  }
@@ -2076,11 +2113,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2076
2113
 
2077
2114
  }, {
2078
2115
  key: "classify",
2079
- value: function classify(_ref13) {
2116
+ value: function classify(_ref14) {
2080
2117
  let {
2081
2118
  name
2082
- } = _ref13,
2083
- query = _objectWithoutPropertiesLoose(_ref13, ["name"]);
2119
+ } = _ref14,
2120
+ query = _objectWithoutPropertiesLoose(_ref14, ["name"]);
2084
2121
 
2085
2122
  return this.http.get("/layers/" + name + "/classify", query).json();
2086
2123
  }
@@ -2097,11 +2134,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2097
2134
 
2098
2135
  }, {
2099
2136
  key: "distincts",
2100
- value: function distincts(_ref14) {
2137
+ value: function distincts(_ref15) {
2101
2138
  let {
2102
2139
  name
2103
- } = _ref14,
2104
- query = _objectWithoutPropertiesLoose(_ref14, ["name"]);
2140
+ } = _ref15,
2141
+ query = _objectWithoutPropertiesLoose(_ref15, ["name"]);
2105
2142
 
2106
2143
  return this.http.get("/layers/" + name + "/distincts", query).json();
2107
2144
  }
@@ -2118,11 +2155,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2118
2155
 
2119
2156
  }, {
2120
2157
  key: "aggregateAttribute",
2121
- value: function aggregateAttribute(_ref15) {
2158
+ value: function aggregateAttribute(_ref16) {
2122
2159
  let {
2123
2160
  name
2124
- } = _ref15,
2125
- query = _objectWithoutPropertiesLoose(_ref15, ["name"]);
2161
+ } = _ref16,
2162
+ query = _objectWithoutPropertiesLoose(_ref16, ["name"]);
2126
2163
 
2127
2164
  return this.http.get("/layers/" + name + "/aggregate-values", query).json();
2128
2165
  }
@@ -2139,11 +2176,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2139
2176
 
2140
2177
  }, {
2141
2178
  key: "getFilteredFeaturesCount",
2142
- value: function getFilteredFeaturesCount(_ref16) {
2179
+ value: function getFilteredFeaturesCount(_ref17) {
2143
2180
  let {
2144
2181
  name
2145
- } = _ref16,
2146
- query = _objectWithoutPropertiesLoose(_ref16, ["name"]);
2182
+ } = _ref17,
2183
+ query = _objectWithoutPropertiesLoose(_ref17, ["name"]);
2147
2184
 
2148
2185
  return this.http.get("/layers/" + name + "/features/count", query).json();
2149
2186
  }
@@ -2193,11 +2230,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
2193
2230
 
2194
2231
  }, {
2195
2232
  key: "validateExpression",
2196
- value: function validateExpression(_ref17) {
2233
+ value: function validateExpression(_ref18) {
2197
2234
  let {
2198
2235
  layerName
2199
- } = _ref17,
2200
- query = _objectWithoutPropertiesLoose(_ref17, ["layerName"]);
2236
+ } = _ref18,
2237
+ query = _objectWithoutPropertiesLoose(_ref18, ["layerName"]);
2201
2238
 
2202
2239
  return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
2203
2240
  }
@@ -2580,6 +2617,27 @@ let TablesService = /*#__PURE__*/function (_Service) {
2580
2617
  value: function getTableInfo(name) {
2581
2618
  return this.http.get("/tables/" + name).json();
2582
2619
  }
2620
+ /**
2621
+ * No description
2622
+ *
2623
+ * @tags Tables
2624
+ * @name GetTableData
2625
+ * @operationId TablesController_GetTableData
2626
+ * @summary Retrieves the data from the table.
2627
+ * @request GET:/tables/{name}/data
2628
+ * @response `200` Success
2629
+ */
2630
+
2631
+ }, {
2632
+ key: "getTableData",
2633
+ value: function getTableData(_ref) {
2634
+ let {
2635
+ name
2636
+ } = _ref,
2637
+ query = _objectWithoutPropertiesLoose(_ref, ["name"]);
2638
+
2639
+ return this.http.get("/tables/" + name + "/data", query).json();
2640
+ }
2583
2641
  /**
2584
2642
  * No description
2585
2643
  *
@@ -2593,11 +2651,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
2593
2651
 
2594
2652
  }, {
2595
2653
  key: "updateTableData",
2596
- value: function updateTableData(_ref, data) {
2654
+ value: function updateTableData(_ref2, data) {
2597
2655
  let {
2598
2656
  name
2599
- } = _ref,
2600
- query = _objectWithoutPropertiesLoose(_ref, ["name"]);
2657
+ } = _ref2,
2658
+ query = _objectWithoutPropertiesLoose(_ref2, ["name"]);
2601
2659
 
2602
2660
  return this.http.patch("/tables/" + name + "/data", data, query).then(() => {});
2603
2661
  }
@@ -2614,11 +2672,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
2614
2672
 
2615
2673
  }, {
2616
2674
  key: "deleteTableData",
2617
- value: function deleteTableData(_ref2) {
2675
+ value: function deleteTableData(_ref3) {
2618
2676
  let {
2619
2677
  name
2620
- } = _ref2,
2621
- query = _objectWithoutPropertiesLoose(_ref2, ["name"]);
2678
+ } = _ref3,
2679
+ query = _objectWithoutPropertiesLoose(_ref3, ["name"]);
2622
2680
 
2623
2681
  return this.http.delete("/tables/" + name + "/data", null, query).then(() => {});
2624
2682
  }
@@ -2635,11 +2693,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
2635
2693
 
2636
2694
  }, {
2637
2695
  key: "getUniqueDataRows",
2638
- value: function getUniqueDataRows(_ref3) {
2696
+ value: function getUniqueDataRows(_ref4) {
2639
2697
  let {
2640
2698
  name
2641
- } = _ref3,
2642
- query = _objectWithoutPropertiesLoose(_ref3, ["name"]);
2699
+ } = _ref4,
2700
+ query = _objectWithoutPropertiesLoose(_ref4, ["name"]);
2643
2701
 
2644
2702
  return this.http.get("/tables/" + name + "/data/unique-values", query).json();
2645
2703
  }
@@ -6021,6 +6079,41 @@ let ClientSettings = /*#__PURE__*/function (_ClientSettingsServic) {
6021
6079
  return ClientSettings;
6022
6080
  }(ClientSettingsService);
6023
6081
 
6082
+ let PortalSettings = /*#__PURE__*/function (_ClientSettingsServic) {
6083
+ _inherits(PortalSettings, _ClientSettingsServic);
6084
+
6085
+ var _super = /*#__PURE__*/_createSuper(PortalSettings);
6086
+
6087
+ function PortalSettings() {
6088
+ var _this;
6089
+
6090
+ _classCallCheck(this, PortalSettings);
6091
+
6092
+ _this = _super.apply(this, arguments);
6093
+ _this.config = null;
6094
+ return _this;
6095
+ }
6096
+
6097
+ _createClass(PortalSettings, [{
6098
+ key: "fetchPortalSettings",
6099
+ value: async function fetchPortalSettings(query) {
6100
+ var _config$settings, _config$settings2, _config$settings3;
6101
+
6102
+ const config = JSON.parse(await this.getConfiguration(query));
6103
+ this.config = _extends({}, config, {
6104
+ settings: {
6105
+ withPortal: ((_config$settings = config.settings) == null ? void 0 : _config$settings.withPortal) === undefined || config.settings.withPortal,
6106
+ allowRegistration: ((_config$settings2 = config.settings) == null ? void 0 : _config$settings2.allowRegistration) === undefined || config.settings.allowRegistration,
6107
+ allowSNS: ((_config$settings3 = config.settings) == null ? void 0 : _config$settings3.allowSNS) === undefined || config.settings.allowSNS
6108
+ }
6109
+ });
6110
+ return this.config;
6111
+ }
6112
+ }]);
6113
+
6114
+ return PortalSettings;
6115
+ }(ClientSettingsService);
6116
+
6024
6117
  var ErrorReason;
6025
6118
 
6026
6119
  (function (ErrorReason) {
@@ -6409,6 +6502,7 @@ var UrlPath;
6409
6502
  (function (UrlPath) {
6410
6503
  UrlPath["Base"] = "/map";
6411
6504
  UrlPath["Shared"] = "/shared";
6505
+ UrlPath["Portal"] = "/portal";
6412
6506
  })(UrlPath || (UrlPath = {}));
6413
6507
 
6414
6508
  const apiEventsByResponseStatus = {
@@ -6479,6 +6573,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6479
6573
  _this.namespace = new Namespace(_this.http);
6480
6574
  _this.external = new External(_this.http);
6481
6575
  _this.clientSettings = new ClientSettings(_this.http);
6576
+ _this.portalSettings = new PortalSettings(_this.http);
6482
6577
  _this.iceRouter = new IceRouter(_this.http);
6483
6578
  _this.names = new Names({
6484
6579
  account: _this.account
@@ -7114,6 +7209,8 @@ InvalidLayerType
7114
7209
  ColumnLoadingError
7115
7210
 
7116
7211
  InvalidAttributeFormat
7212
+
7213
+ DataSourceNotFound
7117
7214
  */
7118
7215
 
7119
7216
 
@@ -7139,6 +7236,7 @@ var ConfigurationErrorEnum;
7139
7236
  ConfigurationErrorEnum["InvalidLayerType"] = "InvalidLayerType";
7140
7237
  ConfigurationErrorEnum["ColumnLoadingError"] = "ColumnLoadingError";
7141
7238
  ConfigurationErrorEnum["InvalidAttributeFormat"] = "InvalidAttributeFormat";
7239
+ ConfigurationErrorEnum["DataSourceNotFound"] = "DataSourceNotFound";
7142
7240
  })(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
7143
7241
  /**
7144
7242
  * Specifies display element type.
@@ -7740,5 +7838,5 @@ var ToolStorageType;
7740
7838
  ToolStorageType["LayersStorage"] = "layersStorage";
7741
7839
  })(ToolStorageType || (ToolStorageType = {}));
7742
7840
 
7743
- 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 };
7841
+ 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, PortalSettings, 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 };
7744
7842
  //# sourceMappingURL=api.esm.js.map