@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
|
@@ -82,6 +82,39 @@ export declare class ExternalProvidersService extends Service {
|
|
|
82
82
|
* @response `200` Success
|
|
83
83
|
*/
|
|
84
84
|
unbindFacebook(): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* No description
|
|
87
|
+
*
|
|
88
|
+
* @tags ExternalProviders
|
|
89
|
+
* @name BindVk
|
|
90
|
+
* @operationId ExternalProvidersController_BindVk
|
|
91
|
+
* @summary The external login by vk.
|
|
92
|
+
* @request GET:/account/external/bind/vk
|
|
93
|
+
* @response `200` Success
|
|
94
|
+
*/
|
|
95
|
+
bindVk(): string;
|
|
96
|
+
/**
|
|
97
|
+
* No description
|
|
98
|
+
*
|
|
99
|
+
* @tags ExternalProviders
|
|
100
|
+
* @name BindGoogle
|
|
101
|
+
* @operationId ExternalProvidersController_BindGoogle
|
|
102
|
+
* @summary The external login by vk.
|
|
103
|
+
* @request GET:/account/external/bind/google
|
|
104
|
+
* @response `200` Success
|
|
105
|
+
*/
|
|
106
|
+
bindGoogle(): string;
|
|
107
|
+
/**
|
|
108
|
+
* No description
|
|
109
|
+
*
|
|
110
|
+
* @tags ExternalProviders
|
|
111
|
+
* @name BindFacebook
|
|
112
|
+
* @operationId ExternalProvidersController_BindFacebook
|
|
113
|
+
* @summary The external login by vk.
|
|
114
|
+
* @request GET:/account/external/bind/facebook
|
|
115
|
+
* @response `200` Success
|
|
116
|
+
*/
|
|
117
|
+
bindFacebook(): string;
|
|
85
118
|
/**
|
|
86
119
|
* No description
|
|
87
120
|
*
|
|
@@ -89,7 +122,7 @@ export declare class ExternalProvidersService extends Service {
|
|
|
89
122
|
* @name BindCallback
|
|
90
123
|
* @operationId ExternalProvidersController_BindCallback
|
|
91
124
|
* @summary Bind external login to current user account.
|
|
92
|
-
* @request GET:/account/external/bind
|
|
125
|
+
* @request GET:/account/external/bind/callback
|
|
93
126
|
* @response `200` Success
|
|
94
127
|
*/
|
|
95
128
|
bindCallback(): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessControlListDc, AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, ClassifyParams, CompositeServiceConfigurationDc, CompositeServiceInfoDc, CreateFeaturesPayload, DeleteFeatureParams, DeleteFeaturesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FailedServiceInfoDc, FeatureDc, FeatureLayerServiceInfoDc, FeatureSelectionDc, FeaturesListDc, FileUploadResponse, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeaturesParams, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersListParams, GetTilesLayerImageParams, LayerUpdateInfoDc, LocalTileServiceConfigurationDc, PositionDc, PostgresLayerServiceConfigurationDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceConfigurationDc, ProxyServiceInfoDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, SelectFeaturesParams, ServiceInfoDc, SetPreviewPayload, StyledLayerServiceConfigurationDc, SubtractPayload, TileCatalogServiceInfoDc, TileServiceInfoDc, UnitePayload, UpdateFeaturePayload, ValidateExpressionParams } from './data-contracts';
|
|
1
|
+
import { AccessControlListDc, AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, ClassifyParams, CompositeServiceConfigurationDc, CompositeServiceInfoDc, CreateFeaturesPayload, DeleteFeatureParams, DeleteFeaturesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FailedServiceInfoDc, FeatureDc, FeatureLayerServiceInfoDc, FeatureSelectionDc, FeaturesListDc, FileUploadResponse, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeaturesParams, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersListParams, GetTilesLayerImageParams, LayerUpdateInfoDc, LocalTileServiceConfigurationDc, PositionDc, PostgresLayerServiceConfigurationDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceConfigurationDc, ProxyServiceInfoDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, SelectFeaturesParams, ServiceInfoDc, SetPreviewPayload, StyledLayerServiceConfigurationDc, SubtractParams, SubtractPayload, TileCatalogServiceInfoDc, TileServiceInfoDc, UniteParams, UnitePayload, UpdateFeaturePayload, ValidateExpressionParams } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -259,7 +259,7 @@ export declare class LayersService extends Service {
|
|
|
259
259
|
* @request POST:/layers/{name}/features/{id}/unite
|
|
260
260
|
* @response `200` Success
|
|
261
261
|
*/
|
|
262
|
-
unite(name
|
|
262
|
+
unite({ name, id, ...query }: UniteParams, data: UnitePayload): Promise<FeatureDc>;
|
|
263
263
|
/**
|
|
264
264
|
* No description
|
|
265
265
|
*
|
|
@@ -270,7 +270,7 @@ export declare class LayersService extends Service {
|
|
|
270
270
|
* @request POST:/layers/{name}/features/{id}/subtract
|
|
271
271
|
* @response `200` Success
|
|
272
272
|
*/
|
|
273
|
-
subtract(name
|
|
273
|
+
subtract({ name, id, ...query }: SubtractParams, data: SubtractPayload): Promise<FeatureDc>;
|
|
274
274
|
/**
|
|
275
275
|
* No description
|
|
276
276
|
*
|
|
@@ -1284,6 +1284,8 @@ InvalidUsername
|
|
|
1284
1284
|
Unauthorized
|
|
1285
1285
|
|
|
1286
1286
|
EmailNotChanged
|
|
1287
|
+
|
|
1288
|
+
EmailNotSet
|
|
1287
1289
|
*/
|
|
1288
1290
|
export declare enum ErrorType {
|
|
1289
1291
|
NotSpecified = "NotSpecified",
|
|
@@ -1314,7 +1316,8 @@ export declare enum ErrorType {
|
|
|
1314
1316
|
InvalidEmail = "InvalidEmail",
|
|
1315
1317
|
InvalidUsername = "InvalidUsername",
|
|
1316
1318
|
Unauthorized = "Unauthorized",
|
|
1317
|
-
EmailNotChanged = "EmailNotChanged"
|
|
1319
|
+
EmailNotChanged = "EmailNotChanged",
|
|
1320
|
+
EmailNotSet = "EmailNotSet"
|
|
1318
1321
|
}
|
|
1319
1322
|
/**
|
|
1320
1323
|
* The {EvaluatedOperation} describes evaluated operation.
|
|
@@ -4643,6 +4646,12 @@ export interface UpdateToolGroupDc {
|
|
|
4643
4646
|
* Update user data contract.
|
|
4644
4647
|
*/
|
|
4645
4648
|
export interface UpdateUserDc {
|
|
4649
|
+
/** Gets or sets location. */
|
|
4650
|
+
location?: string;
|
|
4651
|
+
/** Gets or sets company. */
|
|
4652
|
+
company?: string;
|
|
4653
|
+
/** Gets or sets position. */
|
|
4654
|
+
position?: string;
|
|
4646
4655
|
/** Password. */
|
|
4647
4656
|
password?: string;
|
|
4648
4657
|
/** First name. */
|
|
@@ -4834,6 +4843,8 @@ export interface ValidationErrorsException {
|
|
|
4834
4843
|
* Unauthorized
|
|
4835
4844
|
*
|
|
4836
4845
|
* EmailNotChanged
|
|
4846
|
+
*
|
|
4847
|
+
* EmailNotSet
|
|
4837
4848
|
*/
|
|
4838
4849
|
ErrorType?: ErrorType;
|
|
4839
4850
|
StatusCode?: HttpStatusCode;
|
|
@@ -5301,10 +5312,32 @@ export interface GetByIdParams {
|
|
|
5301
5312
|
* Geometry object.
|
|
5302
5313
|
*/
|
|
5303
5314
|
export declare type UnitePayload = EnvelopeDc | MultiPointDc | PointDc | PolyDc | PolygonDc | PolylineDc;
|
|
5315
|
+
export interface UniteParams {
|
|
5316
|
+
/**
|
|
5317
|
+
* Spatial reference of result feature.
|
|
5318
|
+
* @format int32
|
|
5319
|
+
*/
|
|
5320
|
+
wkid?: number;
|
|
5321
|
+
/** Name of the layer. */
|
|
5322
|
+
name: string;
|
|
5323
|
+
/** Id of the feature of geometry to union with. */
|
|
5324
|
+
id: string;
|
|
5325
|
+
}
|
|
5304
5326
|
/**
|
|
5305
5327
|
* Geometry object.
|
|
5306
5328
|
*/
|
|
5307
5329
|
export declare type SubtractPayload = EnvelopeDc | MultiPointDc | PointDc | PolyDc | PolygonDc | PolylineDc;
|
|
5330
|
+
export interface SubtractParams {
|
|
5331
|
+
/**
|
|
5332
|
+
* Spatial reference id of result features.
|
|
5333
|
+
* @format int32
|
|
5334
|
+
*/
|
|
5335
|
+
wkid?: number;
|
|
5336
|
+
/** Name of the layer. */
|
|
5337
|
+
name: string;
|
|
5338
|
+
/** Id of the feature. */
|
|
5339
|
+
id: string;
|
|
5340
|
+
}
|
|
5308
5341
|
export interface GetTilesLayerImageParams {
|
|
5309
5342
|
/** Tile sets to render. */
|
|
5310
5343
|
ids?: number[];
|
|
@@ -1716,8 +1716,14 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1716
1716
|
|
|
1717
1717
|
}, {
|
|
1718
1718
|
key: "unite",
|
|
1719
|
-
value: function unite(
|
|
1720
|
-
|
|
1719
|
+
value: function unite(_ref4, data) {
|
|
1720
|
+
let {
|
|
1721
|
+
name,
|
|
1722
|
+
id
|
|
1723
|
+
} = _ref4,
|
|
1724
|
+
query = _objectWithoutPropertiesLoose(_ref4, ["name", "id"]);
|
|
1725
|
+
|
|
1726
|
+
return this.http.post("/layers/" + name + "/features/" + id + "/unite", data, query).json();
|
|
1721
1727
|
}
|
|
1722
1728
|
/**
|
|
1723
1729
|
* No description
|
|
@@ -1732,8 +1738,14 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1732
1738
|
|
|
1733
1739
|
}, {
|
|
1734
1740
|
key: "subtract",
|
|
1735
|
-
value: function subtract(
|
|
1736
|
-
|
|
1741
|
+
value: function subtract(_ref5, data) {
|
|
1742
|
+
let {
|
|
1743
|
+
name,
|
|
1744
|
+
id
|
|
1745
|
+
} = _ref5,
|
|
1746
|
+
query = _objectWithoutPropertiesLoose(_ref5, ["name", "id"]);
|
|
1747
|
+
|
|
1748
|
+
return this.http.post("/layers/" + name + "/features/" + id + "/subtract", data, query).json();
|
|
1737
1749
|
}
|
|
1738
1750
|
/**
|
|
1739
1751
|
* No description
|
|
@@ -1748,14 +1760,14 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1748
1760
|
|
|
1749
1761
|
}, {
|
|
1750
1762
|
key: "getTilesLayerImage",
|
|
1751
|
-
value: function getTilesLayerImage(
|
|
1763
|
+
value: function getTilesLayerImage(_ref6) {
|
|
1752
1764
|
let {
|
|
1753
1765
|
name,
|
|
1754
1766
|
x,
|
|
1755
1767
|
y,
|
|
1756
1768
|
z
|
|
1757
|
-
} =
|
|
1758
|
-
query = _objectWithoutPropertiesLoose(
|
|
1769
|
+
} = _ref6,
|
|
1770
|
+
query = _objectWithoutPropertiesLoose(_ref6, ["name", "x", "y", "z"]);
|
|
1759
1771
|
|
|
1760
1772
|
return this.http.createUrl("/layers/" + name + "/tile/" + z + "/" + x + "/" + y, query);
|
|
1761
1773
|
}
|
|
@@ -1772,11 +1784,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1772
1784
|
|
|
1773
1785
|
}, {
|
|
1774
1786
|
key: "getLayerImage",
|
|
1775
|
-
value: function getLayerImage(
|
|
1787
|
+
value: function getLayerImage(_ref7) {
|
|
1776
1788
|
let {
|
|
1777
1789
|
name
|
|
1778
|
-
} =
|
|
1779
|
-
query = _objectWithoutPropertiesLoose(
|
|
1790
|
+
} = _ref7,
|
|
1791
|
+
query = _objectWithoutPropertiesLoose(_ref7, ["name"]);
|
|
1780
1792
|
|
|
1781
1793
|
return this.http.createUrl("/layers/" + name + "/export", query);
|
|
1782
1794
|
}
|
|
@@ -1793,11 +1805,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1793
1805
|
|
|
1794
1806
|
}, {
|
|
1795
1807
|
key: "getLayerExtent",
|
|
1796
|
-
value: function getLayerExtent(
|
|
1808
|
+
value: function getLayerExtent(_ref8) {
|
|
1797
1809
|
let {
|
|
1798
1810
|
name
|
|
1799
|
-
} =
|
|
1800
|
-
query = _objectWithoutPropertiesLoose(
|
|
1811
|
+
} = _ref8,
|
|
1812
|
+
query = _objectWithoutPropertiesLoose(_ref8, ["name"]);
|
|
1801
1813
|
|
|
1802
1814
|
return this.http.get("/layers/" + name + "/extent", query).json();
|
|
1803
1815
|
}
|
|
@@ -1814,11 +1826,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1814
1826
|
|
|
1815
1827
|
}, {
|
|
1816
1828
|
key: "getByGeometry",
|
|
1817
|
-
value: function getByGeometry(
|
|
1829
|
+
value: function getByGeometry(_ref9) {
|
|
1818
1830
|
let {
|
|
1819
1831
|
name
|
|
1820
|
-
} =
|
|
1821
|
-
query = _objectWithoutPropertiesLoose(
|
|
1832
|
+
} = _ref9,
|
|
1833
|
+
query = _objectWithoutPropertiesLoose(_ref9, ["name"]);
|
|
1822
1834
|
|
|
1823
1835
|
return this.http.get("/layers/" + name + "/features/getByGeometry", query).json();
|
|
1824
1836
|
}
|
|
@@ -1835,11 +1847,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1835
1847
|
|
|
1836
1848
|
}, {
|
|
1837
1849
|
key: "getByGeometryPost",
|
|
1838
|
-
value: function getByGeometryPost(
|
|
1850
|
+
value: function getByGeometryPost(_ref10, data) {
|
|
1839
1851
|
let {
|
|
1840
1852
|
name
|
|
1841
|
-
} =
|
|
1842
|
-
query = _objectWithoutPropertiesLoose(
|
|
1853
|
+
} = _ref10,
|
|
1854
|
+
query = _objectWithoutPropertiesLoose(_ref10, ["name"]);
|
|
1843
1855
|
|
|
1844
1856
|
return this.http.post("/layers/" + name + "/features/getByGeometry", data, query).json();
|
|
1845
1857
|
}
|
|
@@ -1856,11 +1868,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1856
1868
|
|
|
1857
1869
|
}, {
|
|
1858
1870
|
key: "deleteFeatures",
|
|
1859
|
-
value: function deleteFeatures(
|
|
1871
|
+
value: function deleteFeatures(_ref11) {
|
|
1860
1872
|
let {
|
|
1861
1873
|
name
|
|
1862
|
-
} =
|
|
1863
|
-
query = _objectWithoutPropertiesLoose(
|
|
1874
|
+
} = _ref11,
|
|
1875
|
+
query = _objectWithoutPropertiesLoose(_ref11, ["name"]);
|
|
1864
1876
|
|
|
1865
1877
|
return this.http.delete("/layers/" + name + "/features/deleteByIds", null, query).json();
|
|
1866
1878
|
}
|
|
@@ -1877,11 +1889,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1877
1889
|
|
|
1878
1890
|
}, {
|
|
1879
1891
|
key: "getByGeometryGet",
|
|
1880
|
-
value: function getByGeometryGet(
|
|
1892
|
+
value: function getByGeometryGet(_ref12) {
|
|
1881
1893
|
let {
|
|
1882
1894
|
name
|
|
1883
|
-
} =
|
|
1884
|
-
query = _objectWithoutPropertiesLoose(
|
|
1895
|
+
} = _ref12,
|
|
1896
|
+
query = _objectWithoutPropertiesLoose(_ref12, ["name"]);
|
|
1885
1897
|
|
|
1886
1898
|
return this.http.get("/layers/" + name + "/features/getByGeometryByClick", query).json();
|
|
1887
1899
|
}
|
|
@@ -1898,11 +1910,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1898
1910
|
|
|
1899
1911
|
}, {
|
|
1900
1912
|
key: "classify",
|
|
1901
|
-
value: function classify(
|
|
1913
|
+
value: function classify(_ref13) {
|
|
1902
1914
|
let {
|
|
1903
1915
|
name
|
|
1904
|
-
} =
|
|
1905
|
-
query = _objectWithoutPropertiesLoose(
|
|
1916
|
+
} = _ref13,
|
|
1917
|
+
query = _objectWithoutPropertiesLoose(_ref13, ["name"]);
|
|
1906
1918
|
|
|
1907
1919
|
return this.http.get("/layers/" + name + "/classify", query).json();
|
|
1908
1920
|
}
|
|
@@ -1919,11 +1931,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1919
1931
|
|
|
1920
1932
|
}, {
|
|
1921
1933
|
key: "distincts",
|
|
1922
|
-
value: function distincts(
|
|
1934
|
+
value: function distincts(_ref14) {
|
|
1923
1935
|
let {
|
|
1924
1936
|
name
|
|
1925
|
-
} =
|
|
1926
|
-
query = _objectWithoutPropertiesLoose(
|
|
1937
|
+
} = _ref14,
|
|
1938
|
+
query = _objectWithoutPropertiesLoose(_ref14, ["name"]);
|
|
1927
1939
|
|
|
1928
1940
|
return this.http.get("/layers/" + name + "/distincts", query).json();
|
|
1929
1941
|
}
|
|
@@ -1940,11 +1952,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1940
1952
|
|
|
1941
1953
|
}, {
|
|
1942
1954
|
key: "aggregateAttribute",
|
|
1943
|
-
value: function aggregateAttribute(
|
|
1955
|
+
value: function aggregateAttribute(_ref15) {
|
|
1944
1956
|
let {
|
|
1945
1957
|
name
|
|
1946
|
-
} =
|
|
1947
|
-
query = _objectWithoutPropertiesLoose(
|
|
1958
|
+
} = _ref15,
|
|
1959
|
+
query = _objectWithoutPropertiesLoose(_ref15, ["name"]);
|
|
1948
1960
|
|
|
1949
1961
|
return this.http.get("/layers/" + name + "/aggregate-values", query).json();
|
|
1950
1962
|
}
|
|
@@ -1961,11 +1973,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1961
1973
|
|
|
1962
1974
|
}, {
|
|
1963
1975
|
key: "getFilteredFeaturesCount",
|
|
1964
|
-
value: function getFilteredFeaturesCount(
|
|
1976
|
+
value: function getFilteredFeaturesCount(_ref16) {
|
|
1965
1977
|
let {
|
|
1966
1978
|
name
|
|
1967
|
-
} =
|
|
1968
|
-
query = _objectWithoutPropertiesLoose(
|
|
1979
|
+
} = _ref16,
|
|
1980
|
+
query = _objectWithoutPropertiesLoose(_ref16, ["name"]);
|
|
1969
1981
|
|
|
1970
1982
|
return this.http.get("/layers/" + name + "/features/count", query).json();
|
|
1971
1983
|
}
|
|
@@ -2015,11 +2027,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2015
2027
|
|
|
2016
2028
|
}, {
|
|
2017
2029
|
key: "validateExpression",
|
|
2018
|
-
value: function validateExpression(
|
|
2030
|
+
value: function validateExpression(_ref17) {
|
|
2019
2031
|
let {
|
|
2020
2032
|
layerName
|
|
2021
|
-
} =
|
|
2022
|
-
query = _objectWithoutPropertiesLoose(
|
|
2033
|
+
} = _ref17,
|
|
2034
|
+
query = _objectWithoutPropertiesLoose(_ref17, ["layerName"]);
|
|
2023
2035
|
|
|
2024
2036
|
return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
|
|
2025
2037
|
}
|
|
@@ -5254,6 +5266,54 @@ let ExternalProvidersService = /*#__PURE__*/function (_Service) {
|
|
|
5254
5266
|
value: function unbindFacebook() {
|
|
5255
5267
|
return this.http.delete("/account/external/unbind/facebook", null).then(() => {});
|
|
5256
5268
|
}
|
|
5269
|
+
/**
|
|
5270
|
+
* No description
|
|
5271
|
+
*
|
|
5272
|
+
* @tags ExternalProviders
|
|
5273
|
+
* @name BindVk
|
|
5274
|
+
* @operationId ExternalProvidersController_BindVk
|
|
5275
|
+
* @summary The external login by vk.
|
|
5276
|
+
* @request GET:/account/external/bind/vk
|
|
5277
|
+
* @response `200` Success
|
|
5278
|
+
*/
|
|
5279
|
+
|
|
5280
|
+
}, {
|
|
5281
|
+
key: "bindVk",
|
|
5282
|
+
value: function bindVk() {
|
|
5283
|
+
return this.http.createUrl("/account/external/bind/vk");
|
|
5284
|
+
}
|
|
5285
|
+
/**
|
|
5286
|
+
* No description
|
|
5287
|
+
*
|
|
5288
|
+
* @tags ExternalProviders
|
|
5289
|
+
* @name BindGoogle
|
|
5290
|
+
* @operationId ExternalProvidersController_BindGoogle
|
|
5291
|
+
* @summary The external login by vk.
|
|
5292
|
+
* @request GET:/account/external/bind/google
|
|
5293
|
+
* @response `200` Success
|
|
5294
|
+
*/
|
|
5295
|
+
|
|
5296
|
+
}, {
|
|
5297
|
+
key: "bindGoogle",
|
|
5298
|
+
value: function bindGoogle() {
|
|
5299
|
+
return this.http.createUrl("/account/external/bind/google");
|
|
5300
|
+
}
|
|
5301
|
+
/**
|
|
5302
|
+
* No description
|
|
5303
|
+
*
|
|
5304
|
+
* @tags ExternalProviders
|
|
5305
|
+
* @name BindFacebook
|
|
5306
|
+
* @operationId ExternalProvidersController_BindFacebook
|
|
5307
|
+
* @summary The external login by vk.
|
|
5308
|
+
* @request GET:/account/external/bind/facebook
|
|
5309
|
+
* @response `200` Success
|
|
5310
|
+
*/
|
|
5311
|
+
|
|
5312
|
+
}, {
|
|
5313
|
+
key: "bindFacebook",
|
|
5314
|
+
value: function bindFacebook() {
|
|
5315
|
+
return this.http.createUrl("/account/external/bind/facebook");
|
|
5316
|
+
}
|
|
5257
5317
|
/**
|
|
5258
5318
|
* No description
|
|
5259
5319
|
*
|
|
@@ -5261,14 +5321,14 @@ let ExternalProvidersService = /*#__PURE__*/function (_Service) {
|
|
|
5261
5321
|
* @name BindCallback
|
|
5262
5322
|
* @operationId ExternalProvidersController_BindCallback
|
|
5263
5323
|
* @summary Bind external login to current user account.
|
|
5264
|
-
* @request GET:/account/external/bind
|
|
5324
|
+
* @request GET:/account/external/bind/callback
|
|
5265
5325
|
* @response `200` Success
|
|
5266
5326
|
*/
|
|
5267
5327
|
|
|
5268
5328
|
}, {
|
|
5269
5329
|
key: "bindCallback",
|
|
5270
5330
|
value: function bindCallback() {
|
|
5271
|
-
return this.http.get("/account/external/bind").then(() => {});
|
|
5331
|
+
return this.http.get("/account/external/bind/callback").then(() => {});
|
|
5272
5332
|
}
|
|
5273
5333
|
}]);
|
|
5274
5334
|
|
|
@@ -5304,9 +5364,21 @@ let External = /*#__PURE__*/function (_ExternalProvidersSer) {
|
|
|
5304
5364
|
}
|
|
5305
5365
|
}
|
|
5306
5366
|
}, {
|
|
5307
|
-
key: "
|
|
5308
|
-
value: function
|
|
5309
|
-
|
|
5367
|
+
key: "bind",
|
|
5368
|
+
value: function bind(network) {
|
|
5369
|
+
switch (network) {
|
|
5370
|
+
case 'vk':
|
|
5371
|
+
return this.bindVk();
|
|
5372
|
+
|
|
5373
|
+
case 'google':
|
|
5374
|
+
return this.bindGoogle();
|
|
5375
|
+
|
|
5376
|
+
case 'facebook':
|
|
5377
|
+
return this.bindFacebook();
|
|
5378
|
+
|
|
5379
|
+
default:
|
|
5380
|
+
return '';
|
|
5381
|
+
}
|
|
5310
5382
|
}
|
|
5311
5383
|
}, {
|
|
5312
5384
|
key: "unbind",
|
|
@@ -6619,6 +6691,7 @@ function isFeatureLayer(layer) {
|
|
|
6619
6691
|
ErrorType["InvalidUsername"] = "InvalidUsername";
|
|
6620
6692
|
ErrorType["Unauthorized"] = "Unauthorized";
|
|
6621
6693
|
ErrorType["EmailNotChanged"] = "EmailNotChanged";
|
|
6694
|
+
ErrorType["EmailNotSet"] = "EmailNotSet";
|
|
6622
6695
|
})(exports.ErrorType || (exports.ErrorType = {}));
|
|
6623
6696
|
|
|
6624
6697
|
(function (FeatureType) {
|