@evergis/api 3.0.54 → 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/api.cjs.development.js +38 -0
- 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 +38 -1
- 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
package/dist/api.esm.js
CHANGED
|
@@ -6063,6 +6063,41 @@ let ClientSettings = /*#__PURE__*/function (_ClientSettingsServic) {
|
|
|
6063
6063
|
return ClientSettings;
|
|
6064
6064
|
}(ClientSettingsService);
|
|
6065
6065
|
|
|
6066
|
+
let PortalSettings = /*#__PURE__*/function (_ClientSettingsServic) {
|
|
6067
|
+
_inherits(PortalSettings, _ClientSettingsServic);
|
|
6068
|
+
|
|
6069
|
+
var _super = /*#__PURE__*/_createSuper(PortalSettings);
|
|
6070
|
+
|
|
6071
|
+
function PortalSettings() {
|
|
6072
|
+
var _this;
|
|
6073
|
+
|
|
6074
|
+
_classCallCheck(this, PortalSettings);
|
|
6075
|
+
|
|
6076
|
+
_this = _super.apply(this, arguments);
|
|
6077
|
+
_this.config = null;
|
|
6078
|
+
return _this;
|
|
6079
|
+
}
|
|
6080
|
+
|
|
6081
|
+
_createClass(PortalSettings, [{
|
|
6082
|
+
key: "fetchPortalSettings",
|
|
6083
|
+
value: async function fetchPortalSettings(query) {
|
|
6084
|
+
var _config$settings, _config$settings2, _config$settings3;
|
|
6085
|
+
|
|
6086
|
+
const config = JSON.parse(await this.getConfiguration(query));
|
|
6087
|
+
this.config = _extends({}, config, {
|
|
6088
|
+
settings: {
|
|
6089
|
+
withPortal: ((_config$settings = config.settings) == null ? void 0 : _config$settings.withPortal) === undefined || config.settings.withPortal,
|
|
6090
|
+
allowRegistration: ((_config$settings2 = config.settings) == null ? void 0 : _config$settings2.allowRegistration) === undefined || config.settings.allowRegistration,
|
|
6091
|
+
allowSNS: ((_config$settings3 = config.settings) == null ? void 0 : _config$settings3.allowSNS) === undefined || config.settings.allowSNS
|
|
6092
|
+
}
|
|
6093
|
+
});
|
|
6094
|
+
return this.config;
|
|
6095
|
+
}
|
|
6096
|
+
}]);
|
|
6097
|
+
|
|
6098
|
+
return PortalSettings;
|
|
6099
|
+
}(ClientSettingsService);
|
|
6100
|
+
|
|
6066
6101
|
var ErrorReason;
|
|
6067
6102
|
|
|
6068
6103
|
(function (ErrorReason) {
|
|
@@ -6451,6 +6486,7 @@ var UrlPath;
|
|
|
6451
6486
|
(function (UrlPath) {
|
|
6452
6487
|
UrlPath["Base"] = "/map";
|
|
6453
6488
|
UrlPath["Shared"] = "/shared";
|
|
6489
|
+
UrlPath["Portal"] = "/portal";
|
|
6454
6490
|
})(UrlPath || (UrlPath = {}));
|
|
6455
6491
|
|
|
6456
6492
|
const apiEventsByResponseStatus = {
|
|
@@ -6521,6 +6557,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
6521
6557
|
_this.namespace = new Namespace(_this.http);
|
|
6522
6558
|
_this.external = new External(_this.http);
|
|
6523
6559
|
_this.clientSettings = new ClientSettings(_this.http);
|
|
6560
|
+
_this.portalSettings = new PortalSettings(_this.http);
|
|
6524
6561
|
_this.iceRouter = new IceRouter(_this.http);
|
|
6525
6562
|
_this.names = new Names({
|
|
6526
6563
|
account: _this.account
|
|
@@ -7785,5 +7822,5 @@ var ToolStorageType;
|
|
|
7785
7822
|
ToolStorageType["LayersStorage"] = "layersStorage";
|
|
7786
7823
|
})(ToolStorageType || (ToolStorageType = {}));
|
|
7787
7824
|
|
|
7788
|
-
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 };
|
|
7825
|
+
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 };
|
|
7789
7826
|
//# sourceMappingURL=api.esm.js.map
|