@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.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Options as KyOptions } from 'ky';
|
|
2
2
|
import { EventEmitter } from '@evergis/event-emitter';
|
|
3
|
-
import { Account, External, ClientSettings, FileUpload, General, Geocode, Import, Layers, Names, Namespace, Notification, Projects, ResourceCatalog, Resources, Scheduler, Security, Styles, Tables, Tools, AccountPreview, BulkOperations, IceRouter } from './services';
|
|
3
|
+
import { Account, External, ClientSettings, PortalSettings, FileUpload, General, Geocode, Import, Layers, Names, Namespace, Notification, Projects, ResourceCatalog, Resources, Scheduler, Security, Styles, Tables, Tools, AccountPreview, BulkOperations, IceRouter } from './services';
|
|
4
4
|
import { Print } from './services/Print';
|
|
5
5
|
import { HttpClient } from './__generated__/HttpClient';
|
|
6
6
|
import { LoginDc } from './__generated__/data-contracts';
|
|
@@ -13,7 +13,8 @@ export declare type ApiParams = {
|
|
|
13
13
|
};
|
|
14
14
|
export declare enum UrlPath {
|
|
15
15
|
Base = "/map",
|
|
16
|
-
Shared = "/shared"
|
|
16
|
+
Shared = "/shared",
|
|
17
|
+
Portal = "/portal"
|
|
17
18
|
}
|
|
18
19
|
export declare type SocAuthNetwork = 'vk' | 'facebook' | 'google';
|
|
19
20
|
export declare type SocAuthCallback = 'vkCallback' | 'facebookCallback' | 'googleCallback';
|
|
@@ -42,6 +43,7 @@ export declare class Api extends EventEmitter {
|
|
|
42
43
|
readonly accountPreview: AccountPreview;
|
|
43
44
|
readonly external: External;
|
|
44
45
|
readonly clientSettings: ClientSettings;
|
|
46
|
+
readonly portalSettings: PortalSettings;
|
|
45
47
|
readonly names: Names;
|
|
46
48
|
readonly bulk: BulkOperations;
|
|
47
49
|
readonly iceRouter: IceRouter;
|
|
@@ -6065,6 +6065,41 @@ let ClientSettings = /*#__PURE__*/function (_ClientSettingsServic) {
|
|
|
6065
6065
|
return ClientSettings;
|
|
6066
6066
|
}(ClientSettingsService);
|
|
6067
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
|
+
|
|
6068
6103
|
(function (ErrorReason) {
|
|
6069
6104
|
/** When request has status code less than 400 */
|
|
6070
6105
|
ErrorReason["HTTP_OTHER"] = "other";
|
|
@@ -6446,6 +6481,7 @@ let Print = /*#__PURE__*/function (_PrintService) {
|
|
|
6446
6481
|
(function (UrlPath) {
|
|
6447
6482
|
UrlPath["Base"] = "/map";
|
|
6448
6483
|
UrlPath["Shared"] = "/shared";
|
|
6484
|
+
UrlPath["Portal"] = "/portal";
|
|
6449
6485
|
})(exports.UrlPath || (exports.UrlPath = {}));
|
|
6450
6486
|
|
|
6451
6487
|
const apiEventsByResponseStatus = {
|
|
@@ -6516,6 +6552,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
6516
6552
|
_this.namespace = new Namespace(_this.http);
|
|
6517
6553
|
_this.external = new External(_this.http);
|
|
6518
6554
|
_this.clientSettings = new ClientSettings(_this.http);
|
|
6555
|
+
_this.portalSettings = new PortalSettings(_this.http);
|
|
6519
6556
|
_this.iceRouter = new IceRouter(_this.http);
|
|
6520
6557
|
_this.names = new Names({
|
|
6521
6558
|
account: _this.account
|
|
@@ -7303,6 +7340,7 @@ exports.Names = Names;
|
|
|
7303
7340
|
exports.Namespace = Namespace;
|
|
7304
7341
|
exports.Notification = Notification;
|
|
7305
7342
|
exports.NotificationEvent = NotificationEvent;
|
|
7343
|
+
exports.PortalSettings = PortalSettings;
|
|
7306
7344
|
exports.Projects = Projects;
|
|
7307
7345
|
exports.ResourceCatalog = ResourceCatalog;
|
|
7308
7346
|
exports.Resources = Resources;
|