@evergis/api 3.0.51 → 3.0.55
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.d.ts +4 -2
- package/dist/__generated__/LayersService.d.ts +23 -1
- package/dist/__generated__/ProjectsService.d.ts +12 -1
- package/dist/__generated__/SecurityService.d.ts +13 -2
- package/dist/__generated__/TablesService.d.ts +23 -1
- package/dist/__generated__/data-contracts.d.ts +74 -2
- package/dist/api.cjs.development.js +201 -56
- 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 +203 -57
- package/dist/api.esm.js.map +1 -1
- package/dist/services/PortalSettings.d.ts +13 -0
- package/dist/services/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -337,18 +337,34 @@ let SecurityService = /*#__PURE__*/function (_Service) {
|
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
_createClass(SecurityService, [{
|
|
340
|
-
key: "
|
|
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
|
*
|
|
345
358
|
* @tags SecurityService
|
|
346
359
|
* @name FindUserByName
|
|
347
360
|
* @operationId SecurityServiceController_FindUserByName
|
|
348
|
-
* @summary Returns the list of users found by username
|
|
361
|
+
* @summary Returns the list of users found by username.
|
|
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(
|
|
1888
|
+
value: function getById(_ref4) {
|
|
1836
1889
|
let {
|
|
1837
1890
|
name,
|
|
1838
1891
|
id
|
|
1839
|
-
} =
|
|
1840
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
1910
|
+
value: function unite(_ref5, data) {
|
|
1858
1911
|
let {
|
|
1859
1912
|
name,
|
|
1860
1913
|
id
|
|
1861
|
-
} =
|
|
1862
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
1932
|
+
value: function subtract(_ref6, data) {
|
|
1880
1933
|
let {
|
|
1881
1934
|
name,
|
|
1882
1935
|
id
|
|
1883
|
-
} =
|
|
1884
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
1954
|
+
value: function getTilesLayerImage(_ref7) {
|
|
1902
1955
|
let {
|
|
1903
1956
|
name,
|
|
1904
1957
|
x,
|
|
1905
1958
|
y,
|
|
1906
1959
|
z
|
|
1907
|
-
} =
|
|
1908
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
1978
|
+
value: function getLayerImage(_ref8) {
|
|
1926
1979
|
let {
|
|
1927
1980
|
name
|
|
1928
|
-
} =
|
|
1929
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
1999
|
+
value: function getLayerExtent(_ref9) {
|
|
1947
2000
|
let {
|
|
1948
2001
|
name
|
|
1949
|
-
} =
|
|
1950
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
2020
|
+
value: function getByGeometry(_ref10) {
|
|
1968
2021
|
let {
|
|
1969
2022
|
name
|
|
1970
|
-
} =
|
|
1971
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
2041
|
+
value: function getByGeometryPost(_ref11, data) {
|
|
1989
2042
|
let {
|
|
1990
2043
|
name
|
|
1991
|
-
} =
|
|
1992
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
2062
|
+
value: function deleteFeatures(_ref12) {
|
|
2010
2063
|
let {
|
|
2011
2064
|
name
|
|
2012
|
-
} =
|
|
2013
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
2083
|
+
value: function getByGeometryGet(_ref13) {
|
|
2031
2084
|
let {
|
|
2032
2085
|
name
|
|
2033
|
-
} =
|
|
2034
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
2104
|
+
value: function classify(_ref14) {
|
|
2052
2105
|
let {
|
|
2053
2106
|
name
|
|
2054
|
-
} =
|
|
2055
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
2125
|
+
value: function distincts(_ref15) {
|
|
2073
2126
|
let {
|
|
2074
2127
|
name
|
|
2075
|
-
} =
|
|
2076
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
2146
|
+
value: function aggregateAttribute(_ref16) {
|
|
2094
2147
|
let {
|
|
2095
2148
|
name
|
|
2096
|
-
} =
|
|
2097
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
2167
|
+
value: function getFilteredFeaturesCount(_ref17) {
|
|
2115
2168
|
let {
|
|
2116
2169
|
name
|
|
2117
|
-
} =
|
|
2118
|
-
query = _objectWithoutPropertiesLoose(
|
|
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(
|
|
2221
|
+
value: function validateExpression(_ref18) {
|
|
2169
2222
|
let {
|
|
2170
2223
|
layerName
|
|
2171
|
-
} =
|
|
2172
|
-
query = _objectWithoutPropertiesLoose(
|
|
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
|
*
|
|
@@ -2536,6 +2605,27 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2536
2605
|
value: function getTableInfo(name) {
|
|
2537
2606
|
return this.http.get("/tables/" + name).json();
|
|
2538
2607
|
}
|
|
2608
|
+
/**
|
|
2609
|
+
* No description
|
|
2610
|
+
*
|
|
2611
|
+
* @tags Tables
|
|
2612
|
+
* @name GetTableData
|
|
2613
|
+
* @operationId TablesController_GetTableData
|
|
2614
|
+
* @summary Retrieves the data from the table.
|
|
2615
|
+
* @request GET:/tables/{name}/data
|
|
2616
|
+
* @response `200` Success
|
|
2617
|
+
*/
|
|
2618
|
+
|
|
2619
|
+
}, {
|
|
2620
|
+
key: "getTableData",
|
|
2621
|
+
value: function getTableData(_ref) {
|
|
2622
|
+
let {
|
|
2623
|
+
name
|
|
2624
|
+
} = _ref,
|
|
2625
|
+
query = _objectWithoutPropertiesLoose(_ref, ["name"]);
|
|
2626
|
+
|
|
2627
|
+
return this.http.get("/tables/" + name + "/data", query).json();
|
|
2628
|
+
}
|
|
2539
2629
|
/**
|
|
2540
2630
|
* No description
|
|
2541
2631
|
*
|
|
@@ -2549,11 +2639,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2549
2639
|
|
|
2550
2640
|
}, {
|
|
2551
2641
|
key: "updateTableData",
|
|
2552
|
-
value: function updateTableData(
|
|
2642
|
+
value: function updateTableData(_ref2, data) {
|
|
2553
2643
|
let {
|
|
2554
2644
|
name
|
|
2555
|
-
} =
|
|
2556
|
-
query = _objectWithoutPropertiesLoose(
|
|
2645
|
+
} = _ref2,
|
|
2646
|
+
query = _objectWithoutPropertiesLoose(_ref2, ["name"]);
|
|
2557
2647
|
|
|
2558
2648
|
return this.http.patch("/tables/" + name + "/data", data, query).then(() => {});
|
|
2559
2649
|
}
|
|
@@ -2570,11 +2660,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2570
2660
|
|
|
2571
2661
|
}, {
|
|
2572
2662
|
key: "deleteTableData",
|
|
2573
|
-
value: function deleteTableData(
|
|
2663
|
+
value: function deleteTableData(_ref3) {
|
|
2574
2664
|
let {
|
|
2575
2665
|
name
|
|
2576
|
-
} =
|
|
2577
|
-
query = _objectWithoutPropertiesLoose(
|
|
2666
|
+
} = _ref3,
|
|
2667
|
+
query = _objectWithoutPropertiesLoose(_ref3, ["name"]);
|
|
2578
2668
|
|
|
2579
2669
|
return this.http.delete("/tables/" + name + "/data", null, query).then(() => {});
|
|
2580
2670
|
}
|
|
@@ -2591,11 +2681,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2591
2681
|
|
|
2592
2682
|
}, {
|
|
2593
2683
|
key: "getUniqueDataRows",
|
|
2594
|
-
value: function getUniqueDataRows(
|
|
2684
|
+
value: function getUniqueDataRows(_ref4) {
|
|
2595
2685
|
let {
|
|
2596
2686
|
name
|
|
2597
|
-
} =
|
|
2598
|
-
query = _objectWithoutPropertiesLoose(
|
|
2687
|
+
} = _ref4,
|
|
2688
|
+
query = _objectWithoutPropertiesLoose(_ref4, ["name"]);
|
|
2599
2689
|
|
|
2600
2690
|
return this.http.get("/tables/" + name + "/data/unique-values", query).json();
|
|
2601
2691
|
}
|
|
@@ -2953,6 +3043,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
2953
3043
|
value: function setPermissionsBatch(data) {
|
|
2954
3044
|
return this.http.put("/projects", data).then(() => {});
|
|
2955
3045
|
}
|
|
3046
|
+
/**
|
|
3047
|
+
* No description
|
|
3048
|
+
*
|
|
3049
|
+
* @tags Projects
|
|
3050
|
+
* @name DeleteResources
|
|
3051
|
+
* @operationId ProjectsController_DeleteResources
|
|
3052
|
+
* @summary Bulk delete resources.
|
|
3053
|
+
* @request DELETE:/projects
|
|
3054
|
+
* @response `200` Success
|
|
3055
|
+
*/
|
|
3056
|
+
|
|
3057
|
+
}, {
|
|
3058
|
+
key: "deleteResources",
|
|
3059
|
+
value: function deleteResources(query) {
|
|
3060
|
+
return this.http.delete("/projects", null, query).json();
|
|
3061
|
+
}
|
|
2956
3062
|
/**
|
|
2957
3063
|
* No description
|
|
2958
3064
|
*
|
|
@@ -5959,6 +6065,41 @@ let ClientSettings = /*#__PURE__*/function (_ClientSettingsServic) {
|
|
|
5959
6065
|
return ClientSettings;
|
|
5960
6066
|
}(ClientSettingsService);
|
|
5961
6067
|
|
|
6068
|
+
let PortalSettings = /*#__PURE__*/function (_ClientSettingsServic) {
|
|
6069
|
+
_inherits(PortalSettings, _ClientSettingsServic);
|
|
6070
|
+
|
|
6071
|
+
var _super = /*#__PURE__*/_createSuper(PortalSettings);
|
|
6072
|
+
|
|
6073
|
+
function PortalSettings() {
|
|
6074
|
+
var _this;
|
|
6075
|
+
|
|
6076
|
+
_classCallCheck(this, PortalSettings);
|
|
6077
|
+
|
|
6078
|
+
_this = _super.apply(this, arguments);
|
|
6079
|
+
_this.config = null;
|
|
6080
|
+
return _this;
|
|
6081
|
+
}
|
|
6082
|
+
|
|
6083
|
+
_createClass(PortalSettings, [{
|
|
6084
|
+
key: "fetchPortalSettings",
|
|
6085
|
+
value: async function fetchPortalSettings(query) {
|
|
6086
|
+
var _config$settings, _config$settings2, _config$settings3;
|
|
6087
|
+
|
|
6088
|
+
const config = JSON.parse(await this.getConfiguration(query));
|
|
6089
|
+
this.config = _extends({}, config, {
|
|
6090
|
+
settings: {
|
|
6091
|
+
withPortal: ((_config$settings = config.settings) == null ? void 0 : _config$settings.withPortal) === undefined || config.settings.withPortal,
|
|
6092
|
+
allowRegistration: ((_config$settings2 = config.settings) == null ? void 0 : _config$settings2.allowRegistration) === undefined || config.settings.allowRegistration,
|
|
6093
|
+
allowSNS: ((_config$settings3 = config.settings) == null ? void 0 : _config$settings3.allowSNS) === undefined || config.settings.allowSNS
|
|
6094
|
+
}
|
|
6095
|
+
});
|
|
6096
|
+
return this.config;
|
|
6097
|
+
}
|
|
6098
|
+
}]);
|
|
6099
|
+
|
|
6100
|
+
return PortalSettings;
|
|
6101
|
+
}(ClientSettingsService);
|
|
6102
|
+
|
|
5962
6103
|
(function (ErrorReason) {
|
|
5963
6104
|
/** When request has status code less than 400 */
|
|
5964
6105
|
ErrorReason["HTTP_OTHER"] = "other";
|
|
@@ -6340,6 +6481,7 @@ let Print = /*#__PURE__*/function (_PrintService) {
|
|
|
6340
6481
|
(function (UrlPath) {
|
|
6341
6482
|
UrlPath["Base"] = "/map";
|
|
6342
6483
|
UrlPath["Shared"] = "/shared";
|
|
6484
|
+
UrlPath["Portal"] = "/portal";
|
|
6343
6485
|
})(exports.UrlPath || (exports.UrlPath = {}));
|
|
6344
6486
|
|
|
6345
6487
|
const apiEventsByResponseStatus = {
|
|
@@ -6410,6 +6552,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
6410
6552
|
_this.namespace = new Namespace(_this.http);
|
|
6411
6553
|
_this.external = new External(_this.http);
|
|
6412
6554
|
_this.clientSettings = new ClientSettings(_this.http);
|
|
6555
|
+
_this.portalSettings = new PortalSettings(_this.http);
|
|
6413
6556
|
_this.iceRouter = new IceRouter(_this.http);
|
|
6414
6557
|
_this.names = new Names({
|
|
6415
6558
|
account: _this.account
|
|
@@ -6904,6 +7047,7 @@ function isFeatureLayer(layer) {
|
|
|
6904
7047
|
ConfigurationErrorEnum["InvalidLayerType"] = "InvalidLayerType";
|
|
6905
7048
|
ConfigurationErrorEnum["ColumnLoadingError"] = "ColumnLoadingError";
|
|
6906
7049
|
ConfigurationErrorEnum["InvalidAttributeFormat"] = "InvalidAttributeFormat";
|
|
7050
|
+
ConfigurationErrorEnum["DataSourceNotFound"] = "DataSourceNotFound";
|
|
6907
7051
|
})(exports.ConfigurationErrorEnum || (exports.ConfigurationErrorEnum = {}));
|
|
6908
7052
|
|
|
6909
7053
|
(function (ElementType) {
|
|
@@ -7196,6 +7340,7 @@ exports.Names = Names;
|
|
|
7196
7340
|
exports.Namespace = Namespace;
|
|
7197
7341
|
exports.Notification = Notification;
|
|
7198
7342
|
exports.NotificationEvent = NotificationEvent;
|
|
7343
|
+
exports.PortalSettings = PortalSettings;
|
|
7199
7344
|
exports.Projects = Projects;
|
|
7200
7345
|
exports.ResourceCatalog = ResourceCatalog;
|
|
7201
7346
|
exports.Resources = Resources;
|