@adminide-stack/core 5.0.1-alpha.9 → 6.0.1-alpha.0
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/lib/constants/billing-plan.js +1 -2
- package/lib/constants/configuration.js +7 -8
- package/lib/constants/constants.js +2 -3
- package/lib/constants/default-workspace-config.js +3 -4
- package/lib/constants/routes.js +2 -4
- package/lib/constants/types.js +4 -5
- package/lib/constants/urls.js +2 -3
- package/lib/core/configurations/configuration.js +6 -15
- package/lib/core/configurations/events/ConfigurationChangeEvent.js +3 -10
- package/lib/core/configurations/helpers/configuration.js +14 -18
- package/lib/core/configurations/models/ConfigurationModel.js +3 -8
- package/lib/core/disposable.js +4 -6
- package/lib/core/event.js +4 -5
- package/lib/core/organization/configuration.js +3 -5
- package/lib/core/organization/helpers/organization-helpers.js +6 -9
- package/lib/core/organization/organization.js +7 -13
- package/lib/core/path.js +2 -3
- package/lib/enums/connection-status.js +2 -3
- package/lib/enums/integration-configuration-status.js +2 -3
- package/lib/enums/integrations-configuration-steps.js +2 -3
- package/lib/enums/integrations-connection-names.js +2 -3
- package/lib/enums/integrations.js +2 -3
- package/lib/enums/permissions.js +2 -3
- package/lib/enums/team-member-status.js +2 -3
- package/lib/errors/auth-error-messages.js +3 -4
- package/lib/errors/auth-error.js +2 -4
- package/lib/index.js +1 -10
- package/lib/interfaces/apollo-context.d.ts +2 -1
- package/lib/interfaces/configuration/configuration.js +6 -9
- package/lib/interfaces/generated/generated-models.d.ts +4877 -3007
- package/lib/interfaces/generated/generated-models.js +676 -438
- package/lib/interfaces/organization/organization-context.js +4 -6
- package/lib/interfaces/platform.d.ts +1 -0
- package/lib/modules/account-api/enums/index.js +2 -3
- package/lib/modules/billing-api/enums/index.js +3 -4
- package/lib/modules/inbox/enums/index.js +2 -3
- package/lib/services/abstract-configuration.d.ts +1 -1
- package/lib/services/abstract-configuration.js +4 -25
- package/lib/services/abstract-organization-context-service.js +2 -27
- package/lib/utils/configuration-utils.js +2 -3
- package/lib/utils/date-utils.js +2 -3
- package/lib/utils/flatten-utils.js +2 -38
- package/lib/utils/generate-uri.js +8 -15
- package/lib/utils/generated-settings-id.js +3 -5
- package/lib/utils/omit-deep.js +2 -4
- package/lib/utils/roles-utils.js +2 -6
- package/lib/utils/uri.js +4 -6
- package/lib/utils/utils.js +4 -5
- package/lib/utils/validations.js +2 -3
- package/package.json +9 -6
- package/lib/constants/billing-plan.js.map +0 -1
- package/lib/constants/configuration.js.map +0 -1
- package/lib/constants/constants.js.map +0 -1
- package/lib/constants/default-workspace-config.js.map +0 -1
- package/lib/constants/index.js +0 -8
- package/lib/constants/index.js.map +0 -1
- package/lib/constants/routes.js.map +0 -1
- package/lib/constants/types.js.map +0 -1
- package/lib/constants/urls.js.map +0 -1
- package/lib/core/configurations/configuration.js.map +0 -1
- package/lib/core/configurations/configuration.test.js +0 -18
- package/lib/core/configurations/configuration.test.js.map +0 -1
- package/lib/core/configurations/events/AbstractConfigurationChangEvent.d.ts +0 -0
- package/lib/core/configurations/events/AbstractConfigurationChangEvent.js +0 -25
- package/lib/core/configurations/events/AbstractConfigurationChangEvent.js.map +0 -1
- package/lib/core/configurations/events/AllKeysConfigurationChangeEvent.d.ts +0 -0
- package/lib/core/configurations/events/AllKeysConfigurationChangeEvent.js +0 -27
- package/lib/core/configurations/events/AllKeysConfigurationChangeEvent.js.map +0 -1
- package/lib/core/configurations/events/ConfigurationChangeEvent.js.map +0 -1
- package/lib/core/configurations/events/OrganizationConfigurationChangeEvent.d.ts +0 -0
- package/lib/core/configurations/events/OrganizationConfigurationChangeEvent.js +0 -37
- package/lib/core/configurations/events/OrganizationConfigurationChangeEvent.js.map +0 -1
- package/lib/core/configurations/events/index.js +0 -5
- package/lib/core/configurations/events/index.js.map +0 -1
- package/lib/core/configurations/helpers/configuration.js.map +0 -1
- package/lib/core/configurations/helpers/index.js +0 -2
- package/lib/core/configurations/helpers/index.js.map +0 -1
- package/lib/core/configurations/index.js +0 -5
- package/lib/core/configurations/index.js.map +0 -1
- package/lib/core/configurations/models/ConfigurationModel.js.map +0 -1
- package/lib/core/configurations/models/ConfigurationModel.test.js +0 -170
- package/lib/core/configurations/models/ConfigurationModel.test.js.map +0 -1
- package/lib/core/configurations/models/index.js +0 -2
- package/lib/core/configurations/models/index.js.map +0 -1
- package/lib/core/disposable.js.map +0 -1
- package/lib/core/event.js.map +0 -1
- package/lib/core/event.test.js +0 -13
- package/lib/core/event.test.js.map +0 -1
- package/lib/core/index.js +0 -7
- package/lib/core/index.js.map +0 -1
- package/lib/core/organization/configuration.js.map +0 -1
- package/lib/core/organization/helpers/index.js +0 -2
- package/lib/core/organization/helpers/index.js.map +0 -1
- package/lib/core/organization/helpers/organization-helpers.js.map +0 -1
- package/lib/core/organization/index.js +0 -4
- package/lib/core/organization/index.js.map +0 -1
- package/lib/core/organization/organization.js.map +0 -1
- package/lib/core/path.js.map +0 -1
- package/lib/core/path.test.js +0 -203
- package/lib/core/path.test.js.map +0 -1
- package/lib/core/types.js +0 -2
- package/lib/core/types.js.map +0 -1
- package/lib/core/uri.js +0 -174
- package/lib/core/uri.js.map +0 -1
- package/lib/core/uri.test.js +0 -134
- package/lib/core/uri.test.js.map +0 -1
- package/lib/enums/connection-status.js.map +0 -1
- package/lib/enums/index.js +0 -8
- package/lib/enums/index.js.map +0 -1
- package/lib/enums/integration-configuration-status.js.map +0 -1
- package/lib/enums/integrations-configuration-steps.js.map +0 -1
- package/lib/enums/integrations-connection-names.js.map +0 -1
- package/lib/enums/integrations.js.map +0 -1
- package/lib/enums/permissions.js.map +0 -1
- package/lib/enums/team-member-status.js.map +0 -1
- package/lib/errors/auth-error-messages.js.map +0 -1
- package/lib/errors/auth-error.js.map +0 -1
- package/lib/errors/index.js +0 -3
- package/lib/errors/index.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/interfaces/apollo-context.js +0 -2
- package/lib/interfaces/apollo-context.js.map +0 -1
- package/lib/interfaces/common.js +0 -2
- package/lib/interfaces/common.js.map +0 -1
- package/lib/interfaces/configuration/configuration-file-service.js +0 -2
- package/lib/interfaces/configuration/configuration-file-service.js.map +0 -1
- package/lib/interfaces/configuration/configuration-server-service.js +0 -2
- package/lib/interfaces/configuration/configuration-server-service.js.map +0 -1
- package/lib/interfaces/configuration/configuration.js.map +0 -1
- package/lib/interfaces/configuration/configurationRegistry.js +0 -2
- package/lib/interfaces/configuration/configurationRegistry.js.map +0 -1
- package/lib/interfaces/configuration/configuraton-service.js +0 -2
- package/lib/interfaces/configuration/configuraton-service.js.map +0 -1
- package/lib/interfaces/configuration/event.js +0 -2
- package/lib/interfaces/configuration/event.js.map +0 -1
- package/lib/interfaces/configuration/index.js +0 -7
- package/lib/interfaces/configuration/index.js.map +0 -1
- package/lib/interfaces/contex-key-service.js +0 -2
- package/lib/interfaces/contex-key-service.js.map +0 -1
- package/lib/interfaces/database-migration.js +0 -2
- package/lib/interfaces/database-migration.js.map +0 -1
- package/lib/interfaces/enum.js +0 -70
- package/lib/interfaces/enum.js.map +0 -1
- package/lib/interfaces/environment/argv.js +0 -2
- package/lib/interfaces/environment/argv.js.map +0 -1
- package/lib/interfaces/environment/environment-service.js +0 -2
- package/lib/interfaces/environment/environment-service.js.map +0 -1
- package/lib/interfaces/environment/index.js +0 -3
- package/lib/interfaces/environment/index.js.map +0 -1
- package/lib/interfaces/generated/generated-models.js.map +0 -1
- package/lib/interfaces/generated/index.js +0 -2
- package/lib/interfaces/generated/index.js.map +0 -1
- package/lib/interfaces/index.js +0 -20
- package/lib/interfaces/index.js.map +0 -1
- package/lib/interfaces/lifecycle-service.js +0 -2
- package/lib/interfaces/lifecycle-service.js.map +0 -1
- package/lib/interfaces/log/index.js +0 -2
- package/lib/interfaces/log/index.js.map +0 -1
- package/lib/interfaces/log/log-service.js +0 -2
- package/lib/interfaces/log/log-service.js.map +0 -1
- package/lib/interfaces/nav-items.js +0 -2
- package/lib/interfaces/nav-items.js.map +0 -1
- package/lib/interfaces/organization/index.js +0 -4
- package/lib/interfaces/organization/index.js.map +0 -1
- package/lib/interfaces/organization/organization-context-service.js +0 -2
- package/lib/interfaces/organization/organization-context-service.js.map +0 -1
- package/lib/interfaces/organization/organization-context.js.map +0 -1
- package/lib/interfaces/organization/organizations-context.js +0 -2
- package/lib/interfaces/organization/organizations-context.js.map +0 -1
- package/lib/interfaces/page-store.js +0 -2
- package/lib/interfaces/page-store.js.map +0 -1
- package/lib/interfaces/permissions.js +0 -2
- package/lib/interfaces/permissions.js.map +0 -1
- package/lib/interfaces/platform.js +0 -2
- package/lib/interfaces/platform.js.map +0 -1
- package/lib/interfaces/preferences-service.js +0 -2
- package/lib/interfaces/preferences-service.js.map +0 -1
- package/lib/interfaces/service.js +0 -2
- package/lib/interfaces/service.js.map +0 -1
- package/lib/interfaces/workbench-exports.js +0 -5
- package/lib/interfaces/workbench-exports.js.map +0 -1
- package/lib/modules/account-api/enums/index.js.map +0 -1
- package/lib/modules/account-api/index.js +0 -2
- package/lib/modules/account-api/index.js.map +0 -1
- package/lib/modules/billing-api/enums/index.js.map +0 -1
- package/lib/modules/billing-api/index.js +0 -2
- package/lib/modules/billing-api/index.js.map +0 -1
- package/lib/modules/inbox/enums/index.js.map +0 -1
- package/lib/modules/inbox/index.js +0 -2
- package/lib/modules/inbox/index.js.map +0 -1
- package/lib/modules/index.js +0 -4
- package/lib/modules/index.js.map +0 -1
- package/lib/services/abstract-configuration.js.map +0 -1
- package/lib/services/abstract-organization-context-service.js.map +0 -1
- package/lib/services/index.js +0 -3
- package/lib/services/index.js.map +0 -1
- package/lib/utils/configuration-utils.js.map +0 -1
- package/lib/utils/date-utils.js.map +0 -1
- package/lib/utils/flatten-utils.js.map +0 -1
- package/lib/utils/generate-uri.js.map +0 -1
- package/lib/utils/generated-settings-id.js.map +0 -1
- package/lib/utils/index.js +0 -10
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/omit-deep.js.map +0 -1
- package/lib/utils/roles-utils.js.map +0 -1
- package/lib/utils/uri.js.map +0 -1
- package/lib/utils/utils.js.map +0 -1
- package/lib/utils/validations.js.map +0 -1
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
//# sourceMappingURL=billing-plan.js.map
|
1
|
+
const BillingPlan = 'application.billingPlan';export{BillingPlan};
|
@@ -1,8 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
//# sourceMappingURL=configuration.js.map
|
1
|
+
const SETTINGS_OVERRRIDE_NODE_ID = 'override';
|
2
|
+
const OVERRIDE_PROPERTY = '\\[.*\\]$';
|
3
|
+
const OVERRIDE_PATTERN_WITH_SUBSTITUTION = '\\[(${0})\\]$';
|
4
|
+
const OVERRIDE_IDENTIFIER_PATTERN = `\\[([^\\]]+)\\]`;
|
5
|
+
const OVERRIDE_PROPERTY_PATTERN = `^(${OVERRIDE_IDENTIFIER_PATTERN})+$`;
|
6
|
+
const GLOBAL_CONFIGURATION_FILE = '.cdecode.json';
|
7
|
+
const USER_CONFIGURATION_FILE = 'user.cdecode.json';export{GLOBAL_CONFIGURATION_FILE,OVERRIDE_IDENTIFIER_PATTERN,OVERRIDE_PATTERN_WITH_SUBSTITUTION,OVERRIDE_PROPERTY,OVERRIDE_PROPERTY_PATTERN,SETTINGS_OVERRRIDE_NODE_ID,USER_CONFIGURATION_FILE};
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
//# sourceMappingURL=constants.js.map
|
1
|
+
const NATS_HEMERA_ADMINIDE_WORKSPACE = 'NATS_HEMERA_ADMINIDE_WORKSPACE';
|
2
|
+
const NATS_HEMERA_ADMINIDE_WORKSPACE_UPDATER = 'NATS_HEMERA_ADMINIDE_WORKSPACE_UPDATER';export{NATS_HEMERA_ADMINIDE_WORKSPACE,NATS_HEMERA_ADMINIDE_WORKSPACE_UPDATER};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
//# sourceMappingURL=default-workspace-config.js.map
|
1
|
+
const DEFAULT_RAM = 536870912;
|
2
|
+
const DEFAULT_HDD = 1073741824;
|
3
|
+
const DEFAULT_CPU = 1;export{DEFAULT_CPU,DEFAULT_HDD,DEFAULT_RAM};
|
package/lib/constants/routes.js
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
/**
|
1
|
+
import {ORG_BASE_PATH}from'./urls.js';/**
|
3
2
|
* Define all the routes here that are common
|
4
3
|
*/
|
5
4
|
// Integration related common routes
|
6
|
-
|
7
|
-
//# sourceMappingURL=routes.js.map
|
5
|
+
const IntegrationConfigurationRoute = `${ORG_BASE_PATH}/integration-configuration/:integrationName?/:integrationId?`;export{IntegrationConfigurationRoute};
|
package/lib/constants/types.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
|
1
|
+
const CommonTypes = {
|
2
2
|
ILifecycleService: Symbol.for('ILifecycleService'),
|
3
3
|
};
|
4
|
-
|
4
|
+
const ClientTypes = {
|
5
5
|
ILifecycleService: CommonTypes.ILifecycleService,
|
6
6
|
};
|
7
|
-
|
7
|
+
const ServerTypes = {
|
8
8
|
ILifecycleService: CommonTypes.ILifecycleService,
|
9
9
|
IRegistry: Symbol.for('IRegistry'),
|
10
10
|
IAccessRoleService: Symbol.for('IAccessRoleService'),
|
@@ -16,5 +16,4 @@ export const ServerTypes = {
|
|
16
16
|
IFileService: Symbol.for('IFileService'),
|
17
17
|
ITextFileService: Symbol.for('ITextFileService'),
|
18
18
|
IEnvironmentService: Symbol.for('IEnvironmentService'),
|
19
|
-
};
|
20
|
-
//# sourceMappingURL=types.js.map
|
19
|
+
};export{ClientTypes,CommonTypes,ServerTypes};
|
package/lib/constants/urls.js
CHANGED
@@ -1,4 +1,3 @@
|
|
1
1
|
/** ------------------ Webhooks endpoinst --------------------------- */
|
2
|
-
|
3
|
-
|
4
|
-
//# sourceMappingURL=urls.js.map
|
2
|
+
const ASANA_WEBHOOK_ENDPOINT = '/webhook/asana';
|
3
|
+
const ORG_BASE_PATH = '/o/:orgName';export{ASANA_WEBHOOK_ENDPOINT,ORG_BASE_PATH};
|
@@ -1,12 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { ResourceMap } from '@vscode-alt/monaco-editor/esm/vs/base/common/map';
|
3
|
-
import * as types from '@vscode-alt/monaco-editor/esm/vs/base/common/types';
|
4
|
-
import * as objects from '@vscode-alt/monaco-editor/esm/vs/base/common/objects';
|
5
|
-
import * as arrays from '@vscode-alt/monaco-editor/esm/vs/base/common/arrays';
|
6
|
-
import { ConfigurationModel } from './models';
|
7
|
-
import { getConfigurationValue } from './helpers';
|
8
|
-
import { OVERRIDE_IDENTIFIER_PATTERN, OVERRIDE_PROPERTY_PATTERN } from '../../constants';
|
9
|
-
/**
|
1
|
+
import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import {ResourceMap}from'@vscode-alt/monaco-editor/esm/vs/base/common/map.js';import*as types from'@vscode-alt/monaco-editor/esm/vs/base/common/types.js';import*as objects from'@vscode-alt/monaco-editor/esm/vs/base/common/objects.js';import*as arrays from'@vscode-alt/monaco-editor/esm/vs/base/common/arrays.js';import {ConfigurationModel}from'./models/ConfigurationModel.js';import {getConfigurationValue}from'./helpers/configuration.js';import {OVERRIDE_PROPERTY_PATTERN,OVERRIDE_IDENTIFIER_PATTERN}from'../../constants/configuration.js';import'../../constants/types.js';/**
|
10
2
|
* Configuration that merges all the hierarchial configuration model.
|
11
3
|
*
|
12
4
|
* We using `IOrganizationContext` rather than `OrganizationContext` for abstraction.
|
@@ -14,7 +6,7 @@ import { OVERRIDE_IDENTIFIER_PATTERN, OVERRIDE_PROPERTY_PATTERN } from '../../co
|
|
14
6
|
* Changes:
|
15
7
|
* 09/18/2021: We converted `localUser` -> `application`; `remoteUser` => `machine`
|
16
8
|
*/
|
17
|
-
|
9
|
+
class Configuration {
|
18
10
|
constructor(_defaultConfiguration, _policyConfiguration = new ConfigurationModel(), _applicationConfiguration = new ConfigurationModel(), _userConfiguration = new ConfigurationModel(), _machineConfiguration = new ConfigurationModel(), _organizationConfiguration = new ConfigurationModel(), _resourceConfigurations = new ResourceMap(), _memoryConfiguration = new ConfigurationModel(), _memoryConfigurationByResource = new ResourceMap(), _freeze = true) {
|
19
11
|
this._defaultConfiguration = _defaultConfiguration;
|
20
12
|
this._policyConfiguration = _policyConfiguration;
|
@@ -396,7 +388,7 @@ export class Configuration {
|
|
396
388
|
return new ConfigurationModel(model.contents, model.keys, model.overrides).freeze();
|
397
389
|
}
|
398
390
|
}
|
399
|
-
|
391
|
+
function compare(from, to) {
|
400
392
|
const { added, removed, updated } = compareConfigurationContents(to, from);
|
401
393
|
const overrides = [];
|
402
394
|
const fromOverrideIdentifiers = from?.getAllOverrideIdentifiers() || [];
|
@@ -445,8 +437,8 @@ function compareConfigurationContents(to, from) {
|
|
445
437
|
return { added, removed, updated };
|
446
438
|
}
|
447
439
|
const OVERRIDE_IDENTIFIER_REGEX = new RegExp(OVERRIDE_IDENTIFIER_PATTERN, 'g');
|
448
|
-
|
449
|
-
|
440
|
+
const OVERRIDE_PROPERTY_REGEX = new RegExp(OVERRIDE_PROPERTY_PATTERN);
|
441
|
+
function overrideIdentifiersFromKey(key) {
|
450
442
|
const identifiers = [];
|
451
443
|
if (OVERRIDE_PROPERTY_REGEX.test(key)) {
|
452
444
|
let matches = OVERRIDE_IDENTIFIER_REGEX.exec(key);
|
@@ -459,5 +451,4 @@ export function overrideIdentifiersFromKey(key) {
|
|
459
451
|
}
|
460
452
|
}
|
461
453
|
return arrays.distinct(identifiers);
|
462
|
-
}
|
463
|
-
//# sourceMappingURL=configuration.js.map
|
454
|
+
}export{Configuration,OVERRIDE_PROPERTY_REGEX,compare,overrideIdentifiersFromKey};
|
@@ -1,12 +1,6 @@
|
|
1
|
-
|
2
|
-
import * as objects from '@vscode-alt/monaco-editor/esm/vs/base/common/objects';
|
3
|
-
import { IOrganizationContext } from '../../../interfaces';
|
4
|
-
import { Configuration } from '../configuration';
|
5
|
-
import { toValuesTree } from '../helpers';
|
6
|
-
import { ConfigurationModel } from '../models';
|
7
|
-
organization: IOrganizationContext;
|
1
|
+
import*as objects from'@vscode-alt/monaco-editor/esm/vs/base/common/objects.js';import'../../../interfaces/generated/generated-models.js';import'../../../interfaces/configuration/configuration.js';import'../../../interfaces/organization/organization-context.js';import'@workbench-stack/core';import {Configuration}from'../configuration.js';import {toValuesTree}from'../helpers/configuration.js';import {ConfigurationModel}from'../models/ConfigurationModel.js';/* tslint:disable */
|
8
2
|
// https://github.com/microsoft/vscode/blob/1562a35c863c312eec35c161b9ceac9921afa50e/src/vs/platform/configuration/common/configurationModels.ts
|
9
|
-
|
3
|
+
class ConfigurationChangeEvent {
|
10
4
|
constructor(change, previous, currentConfiguraiton, currentOrganization) {
|
11
5
|
this.change = change;
|
12
6
|
this.previous = previous;
|
@@ -50,5 +44,4 @@ export class ConfigurationChangeEvent {
|
|
50
44
|
}
|
51
45
|
return true;
|
52
46
|
}
|
53
|
-
}
|
54
|
-
//# sourceMappingURL=ConfigurationChangeEvent.js.map
|
47
|
+
}export{ConfigurationChangeEvent};
|
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
import * as types from '@vscode-alt/monaco-editor/esm/vs/base/common/types';
|
3
|
-
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
4
|
-
import { IClientCacheTypeNames, } from '../../../interfaces';
|
1
|
+
import*as types from'@vscode-alt/monaco-editor/esm/vs/base/common/types.js';import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import {IClientCacheTypeNames}from'../../../interfaces/generated/generated-models.js';import'../../../interfaces/configuration/configuration.js';import'../../../interfaces/organization/organization-context.js';import'@workbench-stack/core';/* tslint:disable */
|
5
2
|
// src/vs/platform/configuration/common/configuration.ts
|
6
|
-
|
3
|
+
function isConfigurationOverrides(thing) {
|
7
4
|
return (thing &&
|
8
5
|
typeof thing === 'object' &&
|
9
6
|
(!thing.overrideIdentifier || typeof thing.overrideIdentifier === 'string') &&
|
@@ -12,7 +9,7 @@ export function isConfigurationOverrides(thing) {
|
|
12
9
|
/**
|
13
10
|
* @SRI modified to match to the union type of graphql type Settings
|
14
11
|
*/
|
15
|
-
|
12
|
+
function ConfigurationTargetToString(configurationTarget) {
|
16
13
|
switch (configurationTarget) {
|
17
14
|
case 1 /* ConfigurationTarget.USER */:
|
18
15
|
return 'UserSettings';
|
@@ -32,7 +29,7 @@ export function ConfigurationTargetToString(configurationTarget) {
|
|
32
29
|
return 'OrganizationSettings';
|
33
30
|
}
|
34
31
|
}
|
35
|
-
|
32
|
+
function ConfigurationTargetConfigurationMapper(configurationTarget) {
|
36
33
|
switch (configurationTarget) {
|
37
34
|
case 1 /* ConfigurationTarget.USER */:
|
38
35
|
return IClientCacheTypeNames.UserConfiguration;
|
@@ -52,7 +49,7 @@ export function ConfigurationTargetConfigurationMapper(configurationTarget) {
|
|
52
49
|
return IClientCacheTypeNames.OrganizationConfiguration;
|
53
50
|
}
|
54
51
|
}
|
55
|
-
|
52
|
+
function SettingsTypeToConfiguraitonTarget(settings) {
|
56
53
|
switch (settings) {
|
57
54
|
case 'UserSettings':
|
58
55
|
return 1 /* ConfigurationTarget.USER */;
|
@@ -93,14 +90,14 @@ export function SettingsTypeToConfiguraitonTarget(settings) {
|
|
93
90
|
// }
|
94
91
|
// return overrides;
|
95
92
|
// }
|
96
|
-
|
93
|
+
function toValuesTree(properties, conflictReporter) {
|
97
94
|
const root = Object.create(null);
|
98
95
|
for (const key in properties) {
|
99
96
|
addToValueTree(root, key, properties[key], conflictReporter);
|
100
97
|
}
|
101
98
|
return root;
|
102
99
|
}
|
103
|
-
|
100
|
+
function addToValueTree(settingsTreeRoot, key, value, conflictReporter) {
|
104
101
|
const segments = key.split('.');
|
105
102
|
const last = segments.pop();
|
106
103
|
let curr = settingsTreeRoot;
|
@@ -126,7 +123,7 @@ export function addToValueTree(settingsTreeRoot, key, value, conflictReporter) {
|
|
126
123
|
conflictReporter(`Ignoring ${key} as ${segments.join('.')} is ${JSON.stringify(curr)}`);
|
127
124
|
}
|
128
125
|
}
|
129
|
-
|
126
|
+
function removeFromValueTree(valueTree, key) {
|
130
127
|
const segments = key.split('.');
|
131
128
|
doRemoveFromValueTree(valueTree, segments);
|
132
129
|
}
|
@@ -150,7 +147,7 @@ function doRemoveFromValueTree(valueTree, segments) {
|
|
150
147
|
/**
|
151
148
|
* A helper function to get the configuration value with a specific settings path (e.g. config.some.setting)
|
152
149
|
*/
|
153
|
-
|
150
|
+
function getConfigurationValue(config, settingPath, defaultValue) {
|
154
151
|
function accessSetting(config, path) {
|
155
152
|
let current = config;
|
156
153
|
for (const component of path) {
|
@@ -172,7 +169,7 @@ export function getConfigurationValue(config, settingPath, defaultValue) {
|
|
172
169
|
}
|
173
170
|
return typeof result === 'undefined' ? defaultValue : result;
|
174
171
|
}
|
175
|
-
|
172
|
+
function merge(base, add, overwrite) {
|
176
173
|
Object.keys(add).forEach((key) => {
|
177
174
|
if (key in base) {
|
178
175
|
if (types.isObject(base[key]) && types.isObject(add[key])) {
|
@@ -189,13 +186,13 @@ export function merge(base, add, overwrite) {
|
|
189
186
|
}
|
190
187
|
// getConfigurationKeys() exist in the server-core
|
191
188
|
// getDefaultValues() exist in the server core
|
192
|
-
|
189
|
+
function overrideIdentifierFromKey(key) {
|
193
190
|
return key.substring(1, key.length - 1);
|
194
191
|
}
|
195
|
-
|
192
|
+
function keyFromOverrideIdentifier(overrideIdentifier) {
|
196
193
|
return `[${overrideIdentifier}]`;
|
197
194
|
}
|
198
|
-
|
195
|
+
function getMigratedSettingValue(configurationService, currentSettingName, legacySettingName) {
|
199
196
|
const setting = configurationService.inspect(currentSettingName);
|
200
197
|
const legacySetting = configurationService.inspect(legacySettingName);
|
201
198
|
if (typeof setting.userValue !== 'undefined' ||
|
@@ -209,5 +206,4 @@ export function getMigratedSettingValue(configurationService, currentSettingName
|
|
209
206
|
return legacySetting.value;
|
210
207
|
}
|
211
208
|
return setting.defaultValue;
|
212
|
-
}
|
213
|
-
//# sourceMappingURL=configuration.js.map
|
209
|
+
}export{ConfigurationTargetConfigurationMapper,ConfigurationTargetToString,SettingsTypeToConfiguraitonTarget,addToValueTree,getConfigurationValue,getMigratedSettingValue,isConfigurationOverrides,keyFromOverrideIdentifier,merge,overrideIdentifierFromKey,removeFromValueTree,toValuesTree};
|
@@ -1,9 +1,5 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
import * as types from '@vscode-alt/monaco-editor/esm/vs/base/common/types';
|
4
|
-
import { getConfigurationValue, removeFromValueTree, addToValueTree } from '../helpers/configuration';
|
5
|
-
// https://github.com/microsoft/vscode/blob/1562a35c863c312eec35c161b9ceac9921afa50e/src/vs/platform/configuration/common/configurationModels.ts
|
6
|
-
export class ConfigurationModel {
|
1
|
+
import*as objects from'@vscode-alt/monaco-editor/esm/vs/base/common/objects.js';import*as arrays from'@vscode-alt/monaco-editor/esm/vs/base/common/arrays.js';import*as types from'@vscode-alt/monaco-editor/esm/vs/base/common/types.js';import {getConfigurationValue,addToValueTree,removeFromValueTree}from'../helpers/configuration.js';// https://github.com/microsoft/vscode/blob/1562a35c863c312eec35c161b9ceac9921afa50e/src/vs/platform/configuration/common/configurationModels.ts
|
2
|
+
class ConfigurationModel {
|
7
3
|
constructor(_contents = {}, _keys = [], _overrides = []) {
|
8
4
|
this._contents = _contents;
|
9
5
|
this._keys = _keys;
|
@@ -195,5 +191,4 @@ export class ConfigurationModel {
|
|
195
191
|
}
|
196
192
|
return false;
|
197
193
|
}
|
198
|
-
}
|
199
|
-
//# sourceMappingURL=ConfigurationModel.js.map
|
194
|
+
}export{ConfigurationModel};
|
package/lib/core/disposable.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export var Disposable;
|
1
|
+
import {Emitter}from'./event.js';/* tslint:disable */
|
2
|
+
var Disposable;
|
4
3
|
(function (Disposable) {
|
5
4
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
6
5
|
function is(arg) {
|
@@ -15,7 +14,7 @@ export var Disposable;
|
|
15
14
|
Disposable.create = create;
|
16
15
|
Disposable.NULL = create(() => { });
|
17
16
|
})(Disposable || (Disposable = {}));
|
18
|
-
|
17
|
+
class DisposableCollection {
|
19
18
|
constructor(...toDispose) {
|
20
19
|
this.disposables = [];
|
21
20
|
this.onDisposeEmitter = new Emitter();
|
@@ -74,5 +73,4 @@ export class DisposableCollection {
|
|
74
73
|
pushAll(disposables) {
|
75
74
|
return disposables.map(disposable => this.push(disposable));
|
76
75
|
}
|
77
|
-
}
|
78
|
-
//# sourceMappingURL=disposable.js.map
|
76
|
+
}export{Disposable,DisposableCollection};
|
package/lib/core/event.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* tslint:disable */
|
2
|
-
|
2
|
+
var Event;
|
3
3
|
(function (Event) {
|
4
4
|
const _disposable = { dispose() { } };
|
5
5
|
Event.None = Object.assign(function () { return _disposable; }, {
|
@@ -83,7 +83,7 @@ class CallbackList {
|
|
83
83
|
this._contexts = undefined;
|
84
84
|
}
|
85
85
|
}
|
86
|
-
|
86
|
+
class Emitter {
|
87
87
|
constructor(_options) {
|
88
88
|
this._options = _options;
|
89
89
|
this._disposed = false;
|
@@ -209,7 +209,7 @@ export class Emitter {
|
|
209
209
|
}
|
210
210
|
Emitter.LEAK_WARNING_THRESHHOLD = 175;
|
211
211
|
Emitter._noop = function () { };
|
212
|
-
|
212
|
+
var WaitUntilEvent;
|
213
213
|
(function (WaitUntilEvent) {
|
214
214
|
async function fire(emitter, event, timeout = undefined) {
|
215
215
|
const waitables = [];
|
@@ -241,5 +241,4 @@ export var WaitUntilEvent;
|
|
241
241
|
}
|
242
242
|
}
|
243
243
|
WaitUntilEvent.fire = fire;
|
244
|
-
})(WaitUntilEvent || (WaitUntilEvent = {}));
|
245
|
-
//# sourceMappingURL=event.js.map
|
244
|
+
})(WaitUntilEvent || (WaitUntilEvent = {}));export{Emitter,Event,WaitUntilEvent};
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
export class OrganizationConfiguration extends BaseConfiguration {
|
1
|
+
import'@vscode-alt/monaco-editor/esm/vs/base/common/types.js';import'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import'../../interfaces/generated/generated-models.js';import'../../interfaces/configuration/configuration.js';import'../../interfaces/organization/organization-context.js';import'@workbench-stack/core';import'@vscode-alt/monaco-editor/esm/vs/base/common/objects.js';import'@vscode-alt/monaco-editor/esm/vs/base/common/arrays.js';import {Configuration}from'../configurations/configuration.js';class OrganizationConfiguration extends Configuration {
|
3
2
|
constructor(defaults, policy, application, user, machine, organizationConfiguration, resources, memoryConfiguration, memoryConfigurationByResource, _organization) {
|
4
3
|
super(defaults, policy, application, user, machine, organizationConfiguration, resources, memoryConfiguration, memoryConfigurationByResource);
|
5
4
|
this._organization = _organization;
|
6
5
|
}
|
7
|
-
getValue(key, overrides, undefined, externalConfiguration) {
|
6
|
+
getValue(key, overrides, undefined$1, externalConfiguration) {
|
8
7
|
return super.getValue(key, overrides, this._organization, externalConfiguration);
|
9
8
|
}
|
10
9
|
inspect(key, overrides = {}) {
|
@@ -13,5 +12,4 @@ export class OrganizationConfiguration extends BaseConfiguration {
|
|
13
12
|
keys() {
|
14
13
|
return super.keys(this._organization);
|
15
14
|
}
|
16
|
-
}
|
17
|
-
//# sourceMappingURL=configuration.js.map
|
15
|
+
}export{OrganizationConfiguration};
|
@@ -1,26 +1,23 @@
|
|
1
|
-
import {
|
2
|
-
export function isRawFileOrganizationResource(thing) {
|
1
|
+
import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';function isRawFileOrganizationResource(thing) {
|
3
2
|
return thing
|
4
3
|
&& typeof thing === 'object'
|
5
4
|
&& typeof thing.path === 'string'
|
6
5
|
&& (!thing.name || typeof thing.name === 'string');
|
7
6
|
}
|
8
|
-
|
7
|
+
function isRawUriOrganizationResource(thing) {
|
9
8
|
return thing
|
10
9
|
&& typeof thing === 'object'
|
11
10
|
&& typeof thing.uri === 'string'
|
12
11
|
&& (!thing.name || typeof thing.name === 'string');
|
13
12
|
}
|
14
|
-
|
13
|
+
function isSingleResourceOrganizationIdentifier(obj) {
|
15
14
|
return obj instanceof URI || URI.isUri(obj); //@sri added optional isURI
|
16
15
|
}
|
17
|
-
|
16
|
+
function isSingleResourceOrganizationInitializationPayload(obj) {
|
18
17
|
return isSingleResourceOrganizationIdentifier(obj.resource);
|
19
18
|
}
|
20
|
-
|
21
|
-
export function isOrganizationIdentifier(obj) {
|
19
|
+
function isOrganizationIdentifier(obj) {
|
22
20
|
const workspaceIdentifier = obj;
|
23
21
|
return workspaceIdentifier && typeof workspaceIdentifier.id === 'string' &&
|
24
22
|
(workspaceIdentifier.configPath instanceof URI || URI.isUri(workspaceIdentifier.configPath)); //@sri added isURI
|
25
|
-
}
|
26
|
-
//# sourceMappingURL=organization-helpers.js.map
|
23
|
+
}export{isOrganizationIdentifier,isRawFileOrganizationResource,isRawUriOrganizationResource,isSingleResourceOrganizationIdentifier,isSingleResourceOrganizationInitializationPayload};
|
@@ -1,9 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { TernarySearchTree } from '@vscode-alt/monaco-editor/esm/vs/base/common/map';
|
3
|
-
import * as resources from '@vscode-alt/monaco-editor/esm/vs/base/common/resources';
|
4
|
-
import { isAbsolute } from '@vscode-alt/monaco-editor/esm/vs/base/common/path';
|
5
|
-
import { isRawFileOrganizationResource, isRawUriOrganizationResource } from './helpers';
|
6
|
-
function getResourceWithoutFragment(uri) {
|
1
|
+
import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import {TernarySearchTree}from'@vscode-alt/monaco-editor/esm/vs/base/common/map.js';import*as resources from'@vscode-alt/monaco-editor/esm/vs/base/common/resources.js';import {isAbsolute}from'@vscode-alt/monaco-editor/esm/vs/base/common/path.js';import {isRawFileOrganizationResource,isRawUriOrganizationResource}from'./helpers/organization-helpers.js';function getResourceWithoutFragment(uri) {
|
7
2
|
return URI.from({
|
8
3
|
scheme: uri.scheme,
|
9
4
|
authority: uri.authority,
|
@@ -11,7 +6,7 @@ function getResourceWithoutFragment(uri) {
|
|
11
6
|
query: uri.query,
|
12
7
|
});
|
13
8
|
}
|
14
|
-
|
9
|
+
class OrganizationContext {
|
15
10
|
constructor(_id, resources = [], _configuration = null) {
|
16
11
|
this._id = _id;
|
17
12
|
this._configuration = _configuration;
|
@@ -59,7 +54,7 @@ export class OrganizationContext {
|
|
59
54
|
return { id: this.id, resources: this.resources, configuration: this.configuration };
|
60
55
|
}
|
61
56
|
}
|
62
|
-
|
57
|
+
class OrganizationResource {
|
63
58
|
constructor(data, raw) {
|
64
59
|
this.raw = raw;
|
65
60
|
this.uri = data.uri;
|
@@ -74,10 +69,10 @@ export class OrganizationResource {
|
|
74
69
|
return { uri: this.uri, name: this.name, index: this.index, __typename: this.__typename };
|
75
70
|
}
|
76
71
|
}
|
77
|
-
|
72
|
+
function toOrganizationResource(resource) {
|
78
73
|
return new OrganizationResource({ uri: resource, index: 0, name: resources.basenameOrAuthority(resource) }, { uri: resource.toString() });
|
79
74
|
}
|
80
|
-
|
75
|
+
function toOrganizationResources(configuredResources, organizationConfigFile) {
|
81
76
|
let result = [];
|
82
77
|
let seen = Object.create(null);
|
83
78
|
const relativeTo = resources.dirname(organizationConfigFile);
|
@@ -113,7 +108,7 @@ export function toOrganizationResources(configuredResources, organizationConfigF
|
|
113
108
|
}
|
114
109
|
return result;
|
115
110
|
}
|
116
|
-
|
111
|
+
function toUri(path, relativeTo) {
|
117
112
|
if (path) {
|
118
113
|
if (isAbsolute(path)) {
|
119
114
|
return URI.file(path);
|
@@ -123,5 +118,4 @@ export function toUri(path, relativeTo) {
|
|
123
118
|
}
|
124
119
|
}
|
125
120
|
return null;
|
126
|
-
}
|
127
|
-
//# sourceMappingURL=organization.js.map
|
121
|
+
}export{OrganizationContext,OrganizationResource,toOrganizationResource,toOrganizationResources,toUri};
|
package/lib/core/path.js
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
* " /c: / home/user/dir / file .txt "
|
17
17
|
* └──────┴───────────────┴──────┴─────┘
|
18
18
|
*/
|
19
|
-
|
19
|
+
class Path {
|
20
20
|
static isDrive(segment) {
|
21
21
|
return segment.endsWith(':');
|
22
22
|
}
|
@@ -181,5 +181,4 @@ export class Path {
|
|
181
181
|
return new Path((this.isAbsolute ? '/' : '') + resultArray.join('/') + (trailingSlash ? '/' : ''));
|
182
182
|
}
|
183
183
|
}
|
184
|
-
Path.separator = '/';
|
185
|
-
//# sourceMappingURL=path.js.map
|
184
|
+
Path.separator = '/';export{Path};
|
@@ -1,8 +1,7 @@
|
|
1
|
-
|
1
|
+
var ConnectionStatus;
|
2
2
|
(function (ConnectionStatus) {
|
3
3
|
ConnectionStatus["LINKED"] = "LINKED";
|
4
4
|
ConnectionStatus["NOT_CONNECTED"] = "NOT_CONNECTED";
|
5
5
|
ConnectionStatus["EXPIRED"] = "EXPIRED";
|
6
6
|
ConnectionStatus["BROKEN"] = "BROKEN";
|
7
|
-
})(ConnectionStatus || (ConnectionStatus = {}));
|
8
|
-
//# sourceMappingURL=connection-status.js.map
|
7
|
+
})(ConnectionStatus || (ConnectionStatus = {}));export{ConnectionStatus};
|
@@ -1,7 +1,6 @@
|
|
1
|
-
|
1
|
+
var IntegrationConfigStatus;
|
2
2
|
(function (IntegrationConfigStatus) {
|
3
3
|
IntegrationConfigStatus["InProgress"] = "In Progress";
|
4
4
|
IntegrationConfigStatus["Pending"] = "Pending";
|
5
5
|
IntegrationConfigStatus["Completed"] = "Completed";
|
6
|
-
})(IntegrationConfigStatus || (IntegrationConfigStatus = {}));
|
7
|
-
//# sourceMappingURL=integration-configuration-status.js.map
|
6
|
+
})(IntegrationConfigStatus || (IntegrationConfigStatus = {}));export{IntegrationConfigStatus};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
var IntegrationsConfigSteps;
|
2
2
|
(function (IntegrationsConfigSteps) {
|
3
3
|
IntegrationsConfigSteps[IntegrationsConfigSteps["Initialize"] = 0] = "Initialize";
|
4
4
|
IntegrationsConfigSteps[IntegrationsConfigSteps["Workspaces"] = 1] = "Workspaces";
|
@@ -6,5 +6,4 @@ export var IntegrationsConfigSteps;
|
|
6
6
|
IntegrationsConfigSteps[IntegrationsConfigSteps["Projects"] = 3] = "Projects";
|
7
7
|
IntegrationsConfigSteps[IntegrationsConfigSteps["Teams"] = 4] = "Teams";
|
8
8
|
IntegrationsConfigSteps[IntegrationsConfigSteps["ConfigureProject"] = 5] = "ConfigureProject";
|
9
|
-
})(IntegrationsConfigSteps || (IntegrationsConfigSteps = {}));
|
10
|
-
//# sourceMappingURL=integrations-configuration-steps.js.map
|
9
|
+
})(IntegrationsConfigSteps || (IntegrationsConfigSteps = {}));export{IntegrationsConfigSteps};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
var IntegrationConnections;
|
2
2
|
(function (IntegrationConnections) {
|
3
3
|
IntegrationConnections["Google"] = "google-oauth2";
|
4
4
|
IntegrationConnections["GitHub"] = "github";
|
@@ -10,5 +10,4 @@ export var IntegrationConnections;
|
|
10
10
|
// Payment Integrations
|
11
11
|
IntegrationConnections["PaypalSandbox"] = "paypal-sandbox";
|
12
12
|
IntegrationConnections["Paypal"] = "paypal";
|
13
|
-
})(IntegrationConnections || (IntegrationConnections = {}));
|
14
|
-
//# sourceMappingURL=integrations-connection-names.js.map
|
13
|
+
})(IntegrationConnections || (IntegrationConnections = {}));export{IntegrationConnections};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
var Integrations;
|
2
2
|
(function (Integrations) {
|
3
3
|
Integrations["Google"] = "Google";
|
4
4
|
Integrations["GitHub"] = "Github";
|
@@ -8,5 +8,4 @@ export var Integrations;
|
|
8
8
|
Integrations["Apple"] = "Apple";
|
9
9
|
Integrations["Facebook"] = "Facebook";
|
10
10
|
Integrations["Paypal"] = "paypal-sandbox";
|
11
|
-
})(Integrations || (Integrations = {}));
|
12
|
-
//# sourceMappingURL=integrations.js.map
|
11
|
+
})(Integrations || (Integrations = {}));export{Integrations};
|
package/lib/enums/permissions.js
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
|
1
|
+
var IPermissionTypes;
|
2
2
|
(function (IPermissionTypes) {
|
3
3
|
IPermissionTypes["view"] = "view";
|
4
4
|
IPermissionTypes["create"] = "create";
|
5
5
|
IPermissionTypes["edit"] = "edit";
|
6
6
|
IPermissionTypes["delete"] = "delete";
|
7
7
|
IPermissionTypes["manage"] = "manage";
|
8
|
-
})(IPermissionTypes || (IPermissionTypes = {}));
|
9
|
-
//# sourceMappingURL=permissions.js.map
|
8
|
+
})(IPermissionTypes || (IPermissionTypes = {}));export{IPermissionTypes};
|
@@ -1,6 +1,5 @@
|
|
1
|
-
|
1
|
+
var TeamMemberStatus;
|
2
2
|
(function (TeamMemberStatus) {
|
3
3
|
TeamMemberStatus["Active"] = "Active";
|
4
4
|
TeamMemberStatus["Deactivated"] = "Deactivated";
|
5
|
-
})(TeamMemberStatus || (TeamMemberStatus = {}));
|
6
|
-
//# sourceMappingURL=team-member-status.js.map
|
5
|
+
})(TeamMemberStatus || (TeamMemberStatus = {}));export{TeamMemberStatus};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
var AuthErrors;
|
2
2
|
(function (AuthErrors) {
|
3
3
|
AuthErrors["TokenExpired"] = "TokenExpired";
|
4
4
|
// Graphql Request wraps the error in somecases
|
@@ -13,7 +13,7 @@ export var AuthErrors;
|
|
13
13
|
AuthErrors["UserLoginNeeded"] = "UserLoginNeeded";
|
14
14
|
AuthErrors["NotAuthorized"] = "Not Authorised!";
|
15
15
|
})(AuthErrors || (AuthErrors = {}));
|
16
|
-
|
16
|
+
const AuthErrorsMessage = {
|
17
17
|
TokenExpired: 'Your token is expired, please re login',
|
18
18
|
InvalidToken: 'Security error - invalid token',
|
19
19
|
AccessDenied: "You don't have permission to access it.",
|
@@ -24,5 +24,4 @@ export const AuthErrorsMessage = {
|
|
24
24
|
UserExpected: 'You must supply a User!',
|
25
25
|
UserLoginNeeded: 'Try logout and login',
|
26
26
|
NotAuthorized: 'You are not authorised to perform this request. Contact administrator'
|
27
|
-
};
|
28
|
-
//# sourceMappingURL=auth-error-messages.js.map
|
27
|
+
};export{AuthErrors,AuthErrorsMessage};
|
package/lib/errors/auth-error.js
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
export class AuthError extends Error {
|
1
|
+
import {AuthErrors,AuthErrorsMessage}from'./auth-error-messages.js';class AuthError extends Error {
|
3
2
|
constructor({ message } = { message: AuthErrorsMessage.NotAuthorized }) {
|
4
3
|
super(message);
|
5
4
|
}
|
6
5
|
}
|
7
6
|
AuthError.code = '403';
|
8
|
-
AuthError.title = AuthErrors.NotAuthorized;
|
9
|
-
//# sourceMappingURL=auth-error.js.map
|
7
|
+
AuthError.title = AuthErrors.NotAuthorized;export{AuthError};
|