@evergis/api 3.0.36 → 3.0.40
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/__generated__/ExternalProvidersService.d.ts +34 -1
- package/dist/__generated__/LayersService.d.ts +3 -3
- package/dist/__generated__/data-contracts.d.ts +34 -1
- package/dist/api.cjs.development.js +118 -45
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +120 -45
- package/dist/api.esm.js.map +1 -1
- package/dist/services/External.d.ts +1 -1
- package/package.json +1 -1
package/dist/api.esm.js
CHANGED
|
@@ -1712,8 +1712,14 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1712
1712
|
|
|
1713
1713
|
}, {
|
|
1714
1714
|
key: "unite",
|
|
1715
|
-
value: function unite(
|
|
1716
|
-
|
|
1715
|
+
value: function unite(_ref4, data) {
|
|
1716
|
+
let {
|
|
1717
|
+
name,
|
|
1718
|
+
id
|
|
1719
|
+
} = _ref4,
|
|
1720
|
+
query = _objectWithoutPropertiesLoose(_ref4, ["name", "id"]);
|
|
1721
|
+
|
|
1722
|
+
return this.http.post("/layers/" + name + "/features/" + id + "/unite", data, query).json();
|
|
1717
1723
|
}
|
|
1718
1724
|
/**
|
|
1719
1725
|
* No description
|
|
@@ -1728,8 +1734,14 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1728
1734
|
|
|
1729
1735
|
}, {
|
|
1730
1736
|
key: "subtract",
|
|
1731
|
-
value: function subtract(
|
|
1732
|
-
|
|
1737
|
+
value: function subtract(_ref5, data) {
|
|
1738
|
+
let {
|
|
1739
|
+
name,
|
|
1740
|
+
id
|
|
1741
|
+
} = _ref5,
|
|
1742
|
+
query = _objectWithoutPropertiesLoose(_ref5, ["name", "id"]);
|
|
1743
|
+
|
|
1744
|
+
return this.http.post("/layers/" + name + "/features/" + id + "/subtract", data, query).json();
|
|
1733
1745
|
}
|
|
1734
1746
|
/**
|
|
1735
1747
|
* No description
|
|
@@ -1744,14 +1756,14 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1744
1756
|
|
|
1745
1757
|
}, {
|
|
1746
1758
|
key: "getTilesLayerImage",
|
|
1747
|
-
value: function getTilesLayerImage(
|
|
1759
|
+
value: function getTilesLayerImage(_ref6) {
|
|
1748
1760
|
let {
|
|
1749
1761
|
name,
|
|
1750
1762
|
x,
|
|
1751
1763
|
y,
|
|
1752
1764
|
z
|
|
1753
|
-
} =
|
|
1754
|
-
query = _objectWithoutPropertiesLoose(
|
|
1765
|
+
} = _ref6,
|
|
1766
|
+
query = _objectWithoutPropertiesLoose(_ref6, ["name", "x", "y", "z"]);
|
|
1755
1767
|
|
|
1756
1768
|
return this.http.createUrl("/layers/" + name + "/tile/" + z + "/" + x + "/" + y, query);
|
|
1757
1769
|
}
|
|
@@ -1768,11 +1780,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1768
1780
|
|
|
1769
1781
|
}, {
|
|
1770
1782
|
key: "getLayerImage",
|
|
1771
|
-
value: function getLayerImage(
|
|
1783
|
+
value: function getLayerImage(_ref7) {
|
|
1772
1784
|
let {
|
|
1773
1785
|
name
|
|
1774
|
-
} =
|
|
1775
|
-
query = _objectWithoutPropertiesLoose(
|
|
1786
|
+
} = _ref7,
|
|
1787
|
+
query = _objectWithoutPropertiesLoose(_ref7, ["name"]);
|
|
1776
1788
|
|
|
1777
1789
|
return this.http.createUrl("/layers/" + name + "/export", query);
|
|
1778
1790
|
}
|
|
@@ -1789,11 +1801,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1789
1801
|
|
|
1790
1802
|
}, {
|
|
1791
1803
|
key: "getLayerExtent",
|
|
1792
|
-
value: function getLayerExtent(
|
|
1804
|
+
value: function getLayerExtent(_ref8) {
|
|
1793
1805
|
let {
|
|
1794
1806
|
name
|
|
1795
|
-
} =
|
|
1796
|
-
query = _objectWithoutPropertiesLoose(
|
|
1807
|
+
} = _ref8,
|
|
1808
|
+
query = _objectWithoutPropertiesLoose(_ref8, ["name"]);
|
|
1797
1809
|
|
|
1798
1810
|
return this.http.get("/layers/" + name + "/extent", query).json();
|
|
1799
1811
|
}
|
|
@@ -1810,11 +1822,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1810
1822
|
|
|
1811
1823
|
}, {
|
|
1812
1824
|
key: "getByGeometry",
|
|
1813
|
-
value: function getByGeometry(
|
|
1825
|
+
value: function getByGeometry(_ref9) {
|
|
1814
1826
|
let {
|
|
1815
1827
|
name
|
|
1816
|
-
} =
|
|
1817
|
-
query = _objectWithoutPropertiesLoose(
|
|
1828
|
+
} = _ref9,
|
|
1829
|
+
query = _objectWithoutPropertiesLoose(_ref9, ["name"]);
|
|
1818
1830
|
|
|
1819
1831
|
return this.http.get("/layers/" + name + "/features/getByGeometry", query).json();
|
|
1820
1832
|
}
|
|
@@ -1831,11 +1843,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1831
1843
|
|
|
1832
1844
|
}, {
|
|
1833
1845
|
key: "getByGeometryPost",
|
|
1834
|
-
value: function getByGeometryPost(
|
|
1846
|
+
value: function getByGeometryPost(_ref10, data) {
|
|
1835
1847
|
let {
|
|
1836
1848
|
name
|
|
1837
|
-
} =
|
|
1838
|
-
query = _objectWithoutPropertiesLoose(
|
|
1849
|
+
} = _ref10,
|
|
1850
|
+
query = _objectWithoutPropertiesLoose(_ref10, ["name"]);
|
|
1839
1851
|
|
|
1840
1852
|
return this.http.post("/layers/" + name + "/features/getByGeometry", data, query).json();
|
|
1841
1853
|
}
|
|
@@ -1852,11 +1864,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1852
1864
|
|
|
1853
1865
|
}, {
|
|
1854
1866
|
key: "deleteFeatures",
|
|
1855
|
-
value: function deleteFeatures(
|
|
1867
|
+
value: function deleteFeatures(_ref11) {
|
|
1856
1868
|
let {
|
|
1857
1869
|
name
|
|
1858
|
-
} =
|
|
1859
|
-
query = _objectWithoutPropertiesLoose(
|
|
1870
|
+
} = _ref11,
|
|
1871
|
+
query = _objectWithoutPropertiesLoose(_ref11, ["name"]);
|
|
1860
1872
|
|
|
1861
1873
|
return this.http.delete("/layers/" + name + "/features/deleteByIds", null, query).json();
|
|
1862
1874
|
}
|
|
@@ -1873,11 +1885,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1873
1885
|
|
|
1874
1886
|
}, {
|
|
1875
1887
|
key: "getByGeometryGet",
|
|
1876
|
-
value: function getByGeometryGet(
|
|
1888
|
+
value: function getByGeometryGet(_ref12) {
|
|
1877
1889
|
let {
|
|
1878
1890
|
name
|
|
1879
|
-
} =
|
|
1880
|
-
query = _objectWithoutPropertiesLoose(
|
|
1891
|
+
} = _ref12,
|
|
1892
|
+
query = _objectWithoutPropertiesLoose(_ref12, ["name"]);
|
|
1881
1893
|
|
|
1882
1894
|
return this.http.get("/layers/" + name + "/features/getByGeometryByClick", query).json();
|
|
1883
1895
|
}
|
|
@@ -1894,11 +1906,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1894
1906
|
|
|
1895
1907
|
}, {
|
|
1896
1908
|
key: "classify",
|
|
1897
|
-
value: function classify(
|
|
1909
|
+
value: function classify(_ref13) {
|
|
1898
1910
|
let {
|
|
1899
1911
|
name
|
|
1900
|
-
} =
|
|
1901
|
-
query = _objectWithoutPropertiesLoose(
|
|
1912
|
+
} = _ref13,
|
|
1913
|
+
query = _objectWithoutPropertiesLoose(_ref13, ["name"]);
|
|
1902
1914
|
|
|
1903
1915
|
return this.http.get("/layers/" + name + "/classify", query).json();
|
|
1904
1916
|
}
|
|
@@ -1915,11 +1927,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1915
1927
|
|
|
1916
1928
|
}, {
|
|
1917
1929
|
key: "distincts",
|
|
1918
|
-
value: function distincts(
|
|
1930
|
+
value: function distincts(_ref14) {
|
|
1919
1931
|
let {
|
|
1920
1932
|
name
|
|
1921
|
-
} =
|
|
1922
|
-
query = _objectWithoutPropertiesLoose(
|
|
1933
|
+
} = _ref14,
|
|
1934
|
+
query = _objectWithoutPropertiesLoose(_ref14, ["name"]);
|
|
1923
1935
|
|
|
1924
1936
|
return this.http.get("/layers/" + name + "/distincts", query).json();
|
|
1925
1937
|
}
|
|
@@ -1936,11 +1948,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1936
1948
|
|
|
1937
1949
|
}, {
|
|
1938
1950
|
key: "aggregateAttribute",
|
|
1939
|
-
value: function aggregateAttribute(
|
|
1951
|
+
value: function aggregateAttribute(_ref15) {
|
|
1940
1952
|
let {
|
|
1941
1953
|
name
|
|
1942
|
-
} =
|
|
1943
|
-
query = _objectWithoutPropertiesLoose(
|
|
1954
|
+
} = _ref15,
|
|
1955
|
+
query = _objectWithoutPropertiesLoose(_ref15, ["name"]);
|
|
1944
1956
|
|
|
1945
1957
|
return this.http.get("/layers/" + name + "/aggregate-values", query).json();
|
|
1946
1958
|
}
|
|
@@ -1957,11 +1969,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1957
1969
|
|
|
1958
1970
|
}, {
|
|
1959
1971
|
key: "getFilteredFeaturesCount",
|
|
1960
|
-
value: function getFilteredFeaturesCount(
|
|
1972
|
+
value: function getFilteredFeaturesCount(_ref16) {
|
|
1961
1973
|
let {
|
|
1962
1974
|
name
|
|
1963
|
-
} =
|
|
1964
|
-
query = _objectWithoutPropertiesLoose(
|
|
1975
|
+
} = _ref16,
|
|
1976
|
+
query = _objectWithoutPropertiesLoose(_ref16, ["name"]);
|
|
1965
1977
|
|
|
1966
1978
|
return this.http.get("/layers/" + name + "/features/count", query).json();
|
|
1967
1979
|
}
|
|
@@ -2011,11 +2023,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2011
2023
|
|
|
2012
2024
|
}, {
|
|
2013
2025
|
key: "validateExpression",
|
|
2014
|
-
value: function validateExpression(
|
|
2026
|
+
value: function validateExpression(_ref17) {
|
|
2015
2027
|
let {
|
|
2016
2028
|
layerName
|
|
2017
|
-
} =
|
|
2018
|
-
query = _objectWithoutPropertiesLoose(
|
|
2029
|
+
} = _ref17,
|
|
2030
|
+
query = _objectWithoutPropertiesLoose(_ref17, ["layerName"]);
|
|
2019
2031
|
|
|
2020
2032
|
return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
|
|
2021
2033
|
}
|
|
@@ -5252,6 +5264,54 @@ let ExternalProvidersService = /*#__PURE__*/function (_Service) {
|
|
|
5252
5264
|
value: function unbindFacebook() {
|
|
5253
5265
|
return this.http.delete("/account/external/unbind/facebook", null).then(() => {});
|
|
5254
5266
|
}
|
|
5267
|
+
/**
|
|
5268
|
+
* No description
|
|
5269
|
+
*
|
|
5270
|
+
* @tags ExternalProviders
|
|
5271
|
+
* @name BindVk
|
|
5272
|
+
* @operationId ExternalProvidersController_BindVk
|
|
5273
|
+
* @summary The external login by vk.
|
|
5274
|
+
* @request GET:/account/external/bind/vk
|
|
5275
|
+
* @response `200` Success
|
|
5276
|
+
*/
|
|
5277
|
+
|
|
5278
|
+
}, {
|
|
5279
|
+
key: "bindVk",
|
|
5280
|
+
value: function bindVk() {
|
|
5281
|
+
return this.http.createUrl("/account/external/bind/vk");
|
|
5282
|
+
}
|
|
5283
|
+
/**
|
|
5284
|
+
* No description
|
|
5285
|
+
*
|
|
5286
|
+
* @tags ExternalProviders
|
|
5287
|
+
* @name BindGoogle
|
|
5288
|
+
* @operationId ExternalProvidersController_BindGoogle
|
|
5289
|
+
* @summary The external login by vk.
|
|
5290
|
+
* @request GET:/account/external/bind/google
|
|
5291
|
+
* @response `200` Success
|
|
5292
|
+
*/
|
|
5293
|
+
|
|
5294
|
+
}, {
|
|
5295
|
+
key: "bindGoogle",
|
|
5296
|
+
value: function bindGoogle() {
|
|
5297
|
+
return this.http.createUrl("/account/external/bind/google");
|
|
5298
|
+
}
|
|
5299
|
+
/**
|
|
5300
|
+
* No description
|
|
5301
|
+
*
|
|
5302
|
+
* @tags ExternalProviders
|
|
5303
|
+
* @name BindFacebook
|
|
5304
|
+
* @operationId ExternalProvidersController_BindFacebook
|
|
5305
|
+
* @summary The external login by vk.
|
|
5306
|
+
* @request GET:/account/external/bind/facebook
|
|
5307
|
+
* @response `200` Success
|
|
5308
|
+
*/
|
|
5309
|
+
|
|
5310
|
+
}, {
|
|
5311
|
+
key: "bindFacebook",
|
|
5312
|
+
value: function bindFacebook() {
|
|
5313
|
+
return this.http.createUrl("/account/external/bind/facebook");
|
|
5314
|
+
}
|
|
5255
5315
|
/**
|
|
5256
5316
|
* No description
|
|
5257
5317
|
*
|
|
@@ -5259,14 +5319,14 @@ let ExternalProvidersService = /*#__PURE__*/function (_Service) {
|
|
|
5259
5319
|
* @name BindCallback
|
|
5260
5320
|
* @operationId ExternalProvidersController_BindCallback
|
|
5261
5321
|
* @summary Bind external login to current user account.
|
|
5262
|
-
* @request GET:/account/external/bind
|
|
5322
|
+
* @request GET:/account/external/bind/callback
|
|
5263
5323
|
* @response `200` Success
|
|
5264
5324
|
*/
|
|
5265
5325
|
|
|
5266
5326
|
}, {
|
|
5267
5327
|
key: "bindCallback",
|
|
5268
5328
|
value: function bindCallback() {
|
|
5269
|
-
return this.http.get("/account/external/bind").then(() => {});
|
|
5329
|
+
return this.http.get("/account/external/bind/callback").then(() => {});
|
|
5270
5330
|
}
|
|
5271
5331
|
}]);
|
|
5272
5332
|
|
|
@@ -5302,9 +5362,21 @@ let External = /*#__PURE__*/function (_ExternalProvidersSer) {
|
|
|
5302
5362
|
}
|
|
5303
5363
|
}
|
|
5304
5364
|
}, {
|
|
5305
|
-
key: "
|
|
5306
|
-
value: function
|
|
5307
|
-
|
|
5365
|
+
key: "bind",
|
|
5366
|
+
value: function bind(network) {
|
|
5367
|
+
switch (network) {
|
|
5368
|
+
case 'vk':
|
|
5369
|
+
return this.bindVk();
|
|
5370
|
+
|
|
5371
|
+
case 'google':
|
|
5372
|
+
return this.bindGoogle();
|
|
5373
|
+
|
|
5374
|
+
case 'facebook':
|
|
5375
|
+
return this.bindFacebook();
|
|
5376
|
+
|
|
5377
|
+
default:
|
|
5378
|
+
return '';
|
|
5379
|
+
}
|
|
5308
5380
|
}
|
|
5309
5381
|
}, {
|
|
5310
5382
|
key: "unbind",
|
|
@@ -6848,6 +6920,8 @@ InvalidUsername
|
|
|
6848
6920
|
Unauthorized
|
|
6849
6921
|
|
|
6850
6922
|
EmailNotChanged
|
|
6923
|
+
|
|
6924
|
+
EmailNotSet
|
|
6851
6925
|
*/
|
|
6852
6926
|
|
|
6853
6927
|
|
|
@@ -6883,6 +6957,7 @@ var ErrorType;
|
|
|
6883
6957
|
ErrorType["InvalidUsername"] = "InvalidUsername";
|
|
6884
6958
|
ErrorType["Unauthorized"] = "Unauthorized";
|
|
6885
6959
|
ErrorType["EmailNotChanged"] = "EmailNotChanged";
|
|
6960
|
+
ErrorType["EmailNotSet"] = "EmailNotSet";
|
|
6886
6961
|
})(ErrorType || (ErrorType = {}));
|
|
6887
6962
|
/**
|
|
6888
6963
|
* Type of the feature.
|