@adminide-stack/core 1.1.1-alpha.97 → 1.1.3-alpha.100
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.d.ts +1 -0
- package/lib/constants/billing-plan.js +5 -0
- package/lib/constants/billing-plan.js.map +1 -0
- package/lib/constants/configuration.d.ts +0 -5
- package/lib/constants/configuration.js +1 -6
- package/lib/constants/configuration.js.map +1 -1
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +6 -1
- package/lib/constants/index.js.map +1 -1
- package/lib/core/configurations/configuration.d.ts +14 -11
- package/lib/core/configurations/configuration.js +24 -16
- package/lib/core/configurations/configuration.js.map +1 -1
- package/lib/core/configurations/events/abstract-configuration-change-event.js +1 -1
- package/lib/core/configurations/events/abstract-configuration-change-event.js.map +1 -1
- package/lib/core/configurations/events/index.js +5 -1
- package/lib/core/configurations/events/index.js.map +1 -1
- package/lib/core/configurations/helpers/configuration.js +14 -14
- package/lib/core/configurations/helpers/configuration.js.map +1 -1
- package/lib/core/configurations/helpers/index.js +5 -1
- package/lib/core/configurations/helpers/index.js.map +1 -1
- package/lib/core/configurations/index.js +5 -1
- package/lib/core/configurations/index.js.map +1 -1
- package/lib/core/configurations/models/configuration-model.js +3 -3
- package/lib/core/configurations/models/configuration-model.js.map +1 -1
- package/lib/core/configurations/models/index.js +5 -1
- package/lib/core/configurations/models/index.js.map +1 -1
- package/lib/core/event.test.js +2 -2
- package/lib/core/event.test.js.map +1 -1
- package/lib/core/index.js +5 -1
- package/lib/core/index.js.map +1 -1
- package/lib/core/organization/configuration.d.ts +5 -4
- package/lib/core/organization/configuration.js +14 -15
- package/lib/core/organization/configuration.js.map +1 -1
- package/lib/core/organization/helpers/index.js +5 -1
- package/lib/core/organization/helpers/index.js.map +1 -1
- package/lib/core/organization/index.js +5 -1
- package/lib/core/organization/index.js.map +1 -1
- package/lib/core/organization/organization.d.ts +4 -3
- package/lib/core/organization/organization.js +5 -4
- package/lib/core/organization/organization.js.map +1 -1
- package/lib/enums/index.js +5 -1
- package/lib/enums/index.js.map +1 -1
- package/lib/enums/integrations-configuration-steps.d.ts +4 -3
- package/lib/enums/integrations-configuration-steps.js +4 -3
- package/lib/enums/integrations-configuration-steps.js.map +1 -1
- package/lib/enums/integrations-connection-names.d.ts +2 -0
- package/lib/enums/integrations-connection-names.js +2 -0
- package/lib/enums/integrations-connection-names.js.map +1 -1
- package/lib/enums/integrations.d.ts +3 -1
- package/lib/enums/integrations.js +2 -0
- package/lib/enums/integrations.js.map +1 -1
- package/lib/errors/index.js +5 -1
- package/lib/errors/index.js.map +1 -1
- package/lib/index.js +5 -1
- package/lib/index.js.map +1 -1
- package/lib/interfaces/configuration/configuration.d.ts +9 -3
- package/lib/interfaces/configuration/configuration.js +15 -7
- package/lib/interfaces/configuration/configuration.js.map +1 -1
- package/lib/interfaces/configuration/configuraton-service.d.ts +12 -1
- package/lib/interfaces/configuration/index.js +5 -1
- package/lib/interfaces/configuration/index.js.map +1 -1
- package/lib/interfaces/enum.d.ts +0 -8
- package/lib/interfaces/enum.js +0 -10
- package/lib/interfaces/enum.js.map +1 -1
- package/lib/interfaces/environment/index.js +5 -1
- package/lib/interfaces/environment/index.js.map +1 -1
- package/lib/interfaces/generated/generated-models.d.ts +2791 -7004
- package/lib/interfaces/generated/generated-models.js +590 -3959
- package/lib/interfaces/generated/generated-models.js.map +1 -1
- package/lib/interfaces/generated/index.d.ts +0 -20
- package/lib/interfaces/generated/index.js +5 -1
- package/lib/interfaces/generated/index.js.map +1 -1
- package/lib/interfaces/index.js +5 -1
- package/lib/interfaces/index.js.map +1 -1
- package/lib/interfaces/log/index.js +5 -1
- package/lib/interfaces/log/index.js.map +1 -1
- package/lib/interfaces/organization/index.js +5 -1
- package/lib/interfaces/organization/index.js.map +1 -1
- package/lib/interfaces/organization/organization-context-service.d.ts +3 -3
- package/lib/interfaces/page-store.d.ts +3 -2
- package/lib/interfaces/preferences-service.d.ts +8 -4
- package/lib/interfaces/service.d.ts +1 -0
- package/lib/interfaces/workbench-exports.js.map +1 -1
- package/lib/modules/account-api/enums/index.d.ts +26 -1
- package/lib/modules/account-api/enums/index.js +25 -0
- package/lib/modules/account-api/enums/index.js.map +1 -1
- package/lib/modules/account-api/index.js +5 -1
- package/lib/modules/account-api/index.js.map +1 -1
- package/lib/modules/billing-api/index.js +5 -1
- package/lib/modules/billing-api/index.js.map +1 -1
- package/lib/modules/index.js +5 -1
- package/lib/modules/index.js.map +1 -1
- package/lib/services/abstract-configuration.d.ts +8 -4
- package/lib/services/abstract-configuration.js +10 -5
- package/lib/services/abstract-configuration.js.map +1 -1
- package/lib/services/abstract-organization-context-service.js +9 -9
- package/lib/services/abstract-organization-context-service.js.map +1 -1
- package/lib/services/index.js +5 -1
- package/lib/services/index.js.map +1 -1
- package/lib/utils/configuration-utils.js +2 -2
- package/lib/utils/configuration-utils.js.map +1 -1
- package/lib/utils/flatten-utils.d.ts +1 -0
- package/lib/utils/flatten-utils.js +20 -0
- package/lib/utils/flatten-utils.js.map +1 -0
- package/lib/utils/generate-uri.d.ts +12 -3
- package/lib/utils/generate-uri.js +15 -6
- package/lib/utils/generate-uri.js.map +1 -1
- package/lib/utils/generated-settings-id.js +6 -1
- package/lib/utils/generated-settings-id.js.map +1 -1
- package/lib/utils/index.js +5 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/omit-deep.js +1 -1
- package/lib/utils/omit-deep.js.map +1 -1
- package/lib/utils/roles-utils.js +1 -1
- package/lib/utils/roles-utils.js.map +1 -1
- package/package.json +4 -4
@@ -1,21 +1 @@
|
|
1
1
|
export * from './generated-models';
|
2
|
-
import { IUserProjectMeta as IIUserProjectMeta, IIUser as IUser } from './generated-models';
|
3
|
-
export interface IUserGitProviderInfo {
|
4
|
-
[key: string]: {
|
5
|
-
email: string;
|
6
|
-
username: string;
|
7
|
-
sshkeyPath: string;
|
8
|
-
};
|
9
|
-
}
|
10
|
-
export { IUser };
|
11
|
-
export interface IGitGlobalMeta {
|
12
|
-
email: string;
|
13
|
-
sshkeyPath: string;
|
14
|
-
username: string;
|
15
|
-
}
|
16
|
-
export interface IUserProjectGitMeta extends IUserGitProviderInfo {
|
17
|
-
globals: IGitGlobalMeta;
|
18
|
-
}
|
19
|
-
export interface IUserProjectMeta extends IIUserProjectMeta {
|
20
|
-
projects: IUserProjectGitMeta;
|
21
|
-
}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/generated/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/generated/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
package/lib/interfaces/index.js
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,mDAAiC;AACjC,kDAAgC;AAChC,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,uDAAqC;AAErC,sDAAoC;AACpC,uDAAqC;AACrC,gDAA8B;AAC9B,4CAA0B;AAC1B,wCAAsB;AACtB,gDAA8B"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/log/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/log/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/organization/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/organization/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,0DAAwC;AACxC,iEAA+C"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
2
2
|
import { Event } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
|
3
3
|
import { IDisposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
|
4
|
-
import { IOrganizationData, IOrganizationIdentifier,
|
4
|
+
import { IOrganizationData, IOrganizationIdentifier, IResourceCreationData_Input } from '../generated';
|
5
5
|
import { IOrganizationResource, ApplicationState, IOrganizationResourcesChangeEvent, IOrganizationContext } from './organization-context';
|
6
6
|
import { IOrganizationResourceCreationData, ISingleResourceOrganizationIdentifier } from './organizations-context';
|
7
7
|
export interface IOrganizationContextService extends IDisposable {
|
@@ -57,9 +57,9 @@ export interface IClientOrganizationContextService extends IOrganizationContextS
|
|
57
57
|
initialize(args: any): any;
|
58
58
|
}
|
59
59
|
export interface IServerOrganizationContextService {
|
60
|
-
addResources(orgId: string, resourcesToAdd:
|
60
|
+
addResources(orgId: string, resourcesToAdd: IResourceCreationData_Input[], index?: number): Promise<void>;
|
61
61
|
removeResources(orgId: string, resourcesToRemove: URI[]): Promise<void>;
|
62
|
-
updateResources(orgId: string, resourcesToAdd:
|
62
|
+
updateResources(orgId: string, resourcesToAdd: IResourceCreationData_Input[], resourcesToRemove: URI[], index?: number): Promise<void>;
|
63
63
|
getOrganizationContext(orgId: string): Promise<IOrganizationData>;
|
64
64
|
getOrganizationResources(resource: URI): Promise<IOrganizationResource[]>;
|
65
65
|
}
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import { IMenuPosition } from '@common-stack/client-react';
|
2
|
-
export interface IPageStore {
|
1
|
+
import { IMenuPosition, IMappedData } from '@common-stack/client-react';
|
2
|
+
export interface IPageStore extends IMappedData {
|
3
3
|
key: string;
|
4
4
|
tab?: string;
|
5
5
|
tabTitle?: string;
|
6
6
|
path: string;
|
7
7
|
exact?: boolean;
|
8
8
|
name?: string;
|
9
|
+
authority?: string[];
|
9
10
|
/**
|
10
11
|
* When `exact: false` we may not have an component
|
11
12
|
*/
|
@@ -1,6 +1,10 @@
|
|
1
1
|
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
2
|
-
import { ISettingsSubject, IViewerSettingsInput, IRoleInput, IPermissionSubject, IViewerSettingsSubject, IPolicySubject } from './generated';
|
2
|
+
import { ISettingsSubject, IViewerSettingsInput, IRoleInput, IPermissionSubject, IViewerSettingsSubject, IPolicySubject, IViewerPoliciesInput } from './generated';
|
3
3
|
import { ConfigurationTarget, IPreferencesInput, IPreferencesOpenOptions_Input as IPreferencesOpenOptions, IContributionSettings } from './generated';
|
4
|
+
export declare type IPrefFragment = {
|
5
|
+
fragmentName?: string;
|
6
|
+
fragmentDoc?: string;
|
7
|
+
};
|
4
8
|
export interface IPreferencesService {
|
5
9
|
initiateSettingsFile(resource: URI): Promise<any>;
|
6
10
|
defaultViewerSettingsSubject(target: ConfigurationTarget): ISettingsSubject;
|
@@ -9,9 +13,9 @@ export interface IPreferencesService {
|
|
9
13
|
* @param params
|
10
14
|
* @param context
|
11
15
|
*/
|
12
|
-
viewerSettings(
|
13
|
-
|
14
|
-
|
16
|
+
viewerSettings<T = IViewerSettingsSubject>(input: IViewerSettingsInput, fragment?: IPrefFragment): Promise<T>;
|
17
|
+
viewerPolicies<T = IPolicySubject>(input: IViewerPoliciesInput, fragment?: IPrefFragment): Promise<T>;
|
18
|
+
viewerPermissions<T = IPermissionSubject>(input: IRoleInput, fragment?: IPrefFragment): Promise<T>;
|
15
19
|
}
|
16
20
|
export interface IPreferenceClientService {
|
17
21
|
readonly defaultKeybindingsResource: URI;
|
@@ -7,6 +7,7 @@ import { IEnvironmentService } from './environment';
|
|
7
7
|
import { IRegistry } from './workbench-exports';
|
8
8
|
export interface IClientService {
|
9
9
|
readonly configurationService: IClientConfigurationService;
|
10
|
+
readonly permissionService?: IClientConfigurationService;
|
10
11
|
readonly contextKeyService: IContextKeyService;
|
11
12
|
readonly organizationContextService: IOrganizationContextService;
|
12
13
|
readonly lifecycleService: ILifecycleService;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workbench-exports.js","sourceRoot":"","sources":["../../src/interfaces/workbench-exports.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"workbench-exports.js","sourceRoot":"","sources":["../../src/interfaces/workbench-exports.ts"],"names":[],"mappings":";;;AAWA,8CAA8D;AAA1C,kGAAA,UAAU,OAAA"}
|
@@ -1,15 +1,39 @@
|
|
1
1
|
export declare enum IPreDefineAccountPermissions {
|
2
|
+
secureUser = "account.user.secure",
|
3
|
+
guestUser = "account.user.guest",
|
2
4
|
inviteMember = "organization.teams.inviteMember",
|
3
5
|
viewTeams = "organization.teams.view",
|
4
6
|
createTeams = "organization.teams.create",
|
5
7
|
editTeams = "organization.teams.edit",
|
6
8
|
deleteTeams = "organization.teams.delete",
|
7
9
|
manageTeams = "organization.teams.manage",
|
10
|
+
accessTeamDashboard = "organization.teams.dashboard.access",
|
8
11
|
viewProjects = "organization.projects.view",
|
9
12
|
createProjects = "organization.projects.create",
|
10
13
|
editProjects = "organization.projects.edit",
|
11
14
|
deleteProjects = "organization.projects.delete",
|
12
15
|
manageProjects = "organization.projects.manage",
|
16
|
+
viewProjectStatus = "organization.projects.status.view",
|
17
|
+
viewMembers = "organization.members.view",
|
18
|
+
createMembers = "organization.members.create",
|
19
|
+
editMembers = "organization.members.edit",
|
20
|
+
deleteMembers = "organization.members.delete",
|
21
|
+
manageMembers = "organization.members.manage",
|
22
|
+
viewClients = "organization.clients.view",
|
23
|
+
createClients = "organization.clients.create",
|
24
|
+
editClients = "organization.clients.edit",
|
25
|
+
deleteClients = "organization.clients.delete",
|
26
|
+
manageClients = "organization.clients.manage",
|
27
|
+
viewTasks = "organization.tasks.view",
|
28
|
+
createTasks = "organization.tasks.create",
|
29
|
+
editTasks = "organization.tasks.edit",
|
30
|
+
deleteTasks = "organization.tasks.delete",
|
31
|
+
manageTasks = "organization.tasks.manage",
|
32
|
+
viewTags = "organization.tags.view",
|
33
|
+
createTags = "organization.tags.create",
|
34
|
+
editTags = "organization.tags.edit",
|
35
|
+
deleteTags = "organization.tags.delete",
|
36
|
+
manageTags = "organization.tags.manage",
|
13
37
|
viewOrganization = "organization.view",
|
14
38
|
createOrganization = "organization.create",
|
15
39
|
editOrganization = "organization.edit",
|
@@ -22,5 +46,6 @@ export declare enum IPreDefineAccountPermissions {
|
|
22
46
|
viewPolicies = "organization.policies.view",
|
23
47
|
editPolicies = "organization.policies.edit",
|
24
48
|
viewSettings = "organization.settings.view",
|
25
|
-
editSettings = "organization.settings.edit"
|
49
|
+
editSettings = "organization.settings.edit",
|
50
|
+
viewReports = "organization.reports.view"
|
26
51
|
}
|
@@ -3,17 +3,41 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IPreDefineAccountPermissions = void 0;
|
4
4
|
var IPreDefineAccountPermissions;
|
5
5
|
(function (IPreDefineAccountPermissions) {
|
6
|
+
IPreDefineAccountPermissions["secureUser"] = "account.user.secure";
|
7
|
+
IPreDefineAccountPermissions["guestUser"] = "account.user.guest";
|
6
8
|
IPreDefineAccountPermissions["inviteMember"] = "organization.teams.inviteMember";
|
7
9
|
IPreDefineAccountPermissions["viewTeams"] = "organization.teams.view";
|
8
10
|
IPreDefineAccountPermissions["createTeams"] = "organization.teams.create";
|
9
11
|
IPreDefineAccountPermissions["editTeams"] = "organization.teams.edit";
|
10
12
|
IPreDefineAccountPermissions["deleteTeams"] = "organization.teams.delete";
|
11
13
|
IPreDefineAccountPermissions["manageTeams"] = "organization.teams.manage";
|
14
|
+
IPreDefineAccountPermissions["accessTeamDashboard"] = "organization.teams.dashboard.access";
|
12
15
|
IPreDefineAccountPermissions["viewProjects"] = "organization.projects.view";
|
13
16
|
IPreDefineAccountPermissions["createProjects"] = "organization.projects.create";
|
14
17
|
IPreDefineAccountPermissions["editProjects"] = "organization.projects.edit";
|
15
18
|
IPreDefineAccountPermissions["deleteProjects"] = "organization.projects.delete";
|
16
19
|
IPreDefineAccountPermissions["manageProjects"] = "organization.projects.manage";
|
20
|
+
IPreDefineAccountPermissions["viewProjectStatus"] = "organization.projects.status.view";
|
21
|
+
IPreDefineAccountPermissions["viewMembers"] = "organization.members.view";
|
22
|
+
IPreDefineAccountPermissions["createMembers"] = "organization.members.create";
|
23
|
+
IPreDefineAccountPermissions["editMembers"] = "organization.members.edit";
|
24
|
+
IPreDefineAccountPermissions["deleteMembers"] = "organization.members.delete";
|
25
|
+
IPreDefineAccountPermissions["manageMembers"] = "organization.members.manage";
|
26
|
+
IPreDefineAccountPermissions["viewClients"] = "organization.clients.view";
|
27
|
+
IPreDefineAccountPermissions["createClients"] = "organization.clients.create";
|
28
|
+
IPreDefineAccountPermissions["editClients"] = "organization.clients.edit";
|
29
|
+
IPreDefineAccountPermissions["deleteClients"] = "organization.clients.delete";
|
30
|
+
IPreDefineAccountPermissions["manageClients"] = "organization.clients.manage";
|
31
|
+
IPreDefineAccountPermissions["viewTasks"] = "organization.tasks.view";
|
32
|
+
IPreDefineAccountPermissions["createTasks"] = "organization.tasks.create";
|
33
|
+
IPreDefineAccountPermissions["editTasks"] = "organization.tasks.edit";
|
34
|
+
IPreDefineAccountPermissions["deleteTasks"] = "organization.tasks.delete";
|
35
|
+
IPreDefineAccountPermissions["manageTasks"] = "organization.tasks.manage";
|
36
|
+
IPreDefineAccountPermissions["viewTags"] = "organization.tags.view";
|
37
|
+
IPreDefineAccountPermissions["createTags"] = "organization.tags.create";
|
38
|
+
IPreDefineAccountPermissions["editTags"] = "organization.tags.edit";
|
39
|
+
IPreDefineAccountPermissions["deleteTags"] = "organization.tags.delete";
|
40
|
+
IPreDefineAccountPermissions["manageTags"] = "organization.tags.manage";
|
17
41
|
IPreDefineAccountPermissions["viewOrganization"] = "organization.view";
|
18
42
|
IPreDefineAccountPermissions["createOrganization"] = "organization.create";
|
19
43
|
IPreDefineAccountPermissions["editOrganization"] = "organization.edit";
|
@@ -27,5 +51,6 @@ var IPreDefineAccountPermissions;
|
|
27
51
|
IPreDefineAccountPermissions["editPolicies"] = "organization.policies.edit";
|
28
52
|
IPreDefineAccountPermissions["viewSettings"] = "organization.settings.view";
|
29
53
|
IPreDefineAccountPermissions["editSettings"] = "organization.settings.edit";
|
54
|
+
IPreDefineAccountPermissions["viewReports"] = "organization.reports.view";
|
30
55
|
})(IPreDefineAccountPermissions = exports.IPreDefineAccountPermissions || (exports.IPreDefineAccountPermissions = {}));
|
31
56
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/account-api/enums/index.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/account-api/enums/index.ts"],"names":[],"mappings":";;;AAAA,IAAY,4BA0DX;AA1DD,WAAY,4BAA4B;IACtC,kEAAkC,CAAA;IAClC,gEAAgC,CAAA;IAChC,gFAAgD,CAAA;IAChD,qEAAqC,CAAA;IACrC,yEAAyC,CAAA;IACzC,qEAAqC,CAAA;IACrC,yEAAyC,CAAA;IACzC,yEAAyC,CAAA;IACzC,2FAA2D,CAAA;IAE3D,2EAA2C,CAAA;IAC3C,+EAA+C,CAAA;IAC/C,2EAA2C,CAAA;IAC3C,+EAA+C,CAAA;IAC/C,+EAA+C,CAAA;IAC/C,uFAAuD,CAAA;IAEvD,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,6EAA6C,CAAA;IAE7C,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,6EAA6C,CAAA;IAE7C,qEAAqC,CAAA;IACrC,yEAAyC,CAAA;IACzC,qEAAqC,CAAA;IACrC,yEAAyC,CAAA;IACzC,yEAAyC,CAAA;IAEzC,mEAAmC,CAAA;IACnC,uEAAuC,CAAA;IACvC,mEAAmC,CAAA;IACnC,uEAAuC,CAAA;IACvC,uEAAuC,CAAA;IAEvC,sEAAsC,CAAA;IACtC,0EAA0C,CAAA;IAC1C,sEAAsC,CAAA;IACtC,0EAA0C,CAAA;IAC1C,0EAA0C,CAAA;IAE1C,qEAAqC,CAAA;IACrC,qEAAsC,CAAA;IACtC,iFAAiD,CAAA;IACjD,iFAAiD,CAAA;IACjD,2EAA2C,CAAA;IAC3C,2EAA2C,CAAA;IAC3C,2EAA2C,CAAA;IAC3C,2EAA2C,CAAA;IAE3C,yEAAyC,CAAA;AAC3C,CAAC,EA1DW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QA0DvC"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/account-api/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/account-api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/billing-api/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/billing-api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
package/lib/modules/index.js
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
package/lib/modules/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B"}
|
@@ -1,7 +1,9 @@
|
|
1
|
-
import { IClientConfigurationService, IConfigurationChangeEvent, IConfigurationOverrides, ConfigurationTarget, IConfigurationData, IOrganizationResource, IIConfigurationModel, IOrganizationContext } from '../interfaces';
|
1
|
+
import { IClientConfigurationService, IConfigurationChangeEvent, IConfigurationOverrides, ConfigurationTarget, IConfigurationData, IConfigurationModel, IOrganizationResource, IIResourceData, IIConfigurationModel, IOrganizationContext } from '../interfaces';
|
2
2
|
import { IDisposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
|
3
3
|
import { Disposable } from '@workbench-stack/core';
|
4
4
|
import { OrganizationConfiguration as Configuration, ConfigurationModel } from '../core';
|
5
|
+
import { ResourceMap } from '@vscode-alt/monaco-editor/esm/vs/base/common/map';
|
6
|
+
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
5
7
|
import { CdmLogger } from '@cdm-logger/core';
|
6
8
|
import { Event, Emitter } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
|
7
9
|
declare type ILogger = CdmLogger.ILogger;
|
@@ -13,6 +15,7 @@ export declare abstract class AbstractOrganizationConfigurationClientService ext
|
|
13
15
|
protected readonly _onDidChangeConfiguration: Emitter<IConfigurationChangeEvent>;
|
14
16
|
readonly onDidChangeConfiguration: Event<IConfigurationChangeEvent>;
|
15
17
|
abstract initialize(organizationContext: any): any;
|
18
|
+
abstract loadResourceConfiguration(resources: IIResourceData[], force: any): any;
|
16
19
|
get configuration(): Configuration;
|
17
20
|
set configuration(configuration: Configuration);
|
18
21
|
getConfigurationData(): IConfigurationData;
|
@@ -27,11 +30,12 @@ export declare abstract class AbstractOrganizationConfigurationClientService ext
|
|
27
30
|
abstract updateValue(key: string, value: any, overrides: IConfigurationOverrides, target: ConfigurationTarget, donotNotifyError: boolean): Promise<void>;
|
28
31
|
abstract updateValue(key: string, value: any, arg3?: any, arg4?: any, donotNotifyError?: any): Promise<void>;
|
29
32
|
abstract reloadConfiguration(resource?: IOrganizationResource): Promise<void>;
|
33
|
+
abstract externalConfiguration?(resource: URI): IConfigurationModel;
|
30
34
|
inspect<T>(key: string, overrides?: IConfigurationOverrides): {
|
31
35
|
default: T;
|
32
36
|
user: T;
|
33
|
-
|
34
|
-
|
37
|
+
application?: T;
|
38
|
+
machine?: T;
|
35
39
|
organization?: T;
|
36
40
|
organizationResource?: T;
|
37
41
|
memory?: T;
|
@@ -44,7 +48,7 @@ export declare abstract class AbstractOrganizationConfigurationClientService ext
|
|
44
48
|
organizationResource: string[];
|
45
49
|
};
|
46
50
|
extAcceptConfigurationChanged(data: IConfigurationData, event: IConfigurationChangeEvent): void;
|
47
|
-
static parse(data: IConfigurationData, organization: IOrganizationContext): Configuration;
|
51
|
+
static parse(data: IConfigurationData, organization: IOrganizationContext, previousConfiguration?: ConfigurationModel, prevResourceConfigurations?: ResourceMap<ConfigurationModel>): Configuration;
|
48
52
|
protected static parseConfigurationModel(model: IIConfigurationModel): ConfigurationModel;
|
49
53
|
}
|
50
54
|
export {};
|
@@ -38,7 +38,11 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
|
|
38
38
|
}
|
39
39
|
getValue(arg1, arg2) {
|
40
40
|
const section = typeof arg1 === 'string' ? arg1 : undefined;
|
41
|
-
const overrides = core_2.isConfigurationOverrides(arg1) ? arg1 : core_2.isConfigurationOverrides(arg2) ? arg2 : {};
|
41
|
+
const overrides = (0, core_2.isConfigurationOverrides)(arg1) ? arg1 : (0, core_2.isConfigurationOverrides)(arg2) ? arg2 : {};
|
42
|
+
if (overrides === null || overrides === void 0 ? void 0 : overrides.externalResource) {
|
43
|
+
const externalConfiguration = this.externalConfiguration(overrides.externalResource);
|
44
|
+
return this.configuration.getValue(section, overrides, undefined, externalConfiguration);
|
45
|
+
}
|
42
46
|
return this.configuration.getValue(section, overrides);
|
43
47
|
}
|
44
48
|
inspect(key, overrides) {
|
@@ -52,23 +56,24 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
|
|
52
56
|
// this._confugrationScopes = data.configurationScopes;
|
53
57
|
this._onDidChangeConfiguration.fire(event);
|
54
58
|
}
|
55
|
-
static parse(data, organization) {
|
59
|
+
static parse(data, organization, previousConfiguration, prevResourceConfigurations) {
|
56
60
|
const defaultConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.defaults);
|
57
61
|
const userConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.user);
|
62
|
+
const machineConfiguration = data.machine ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.machine) : new core_2.ConfigurationModel();
|
58
63
|
const organizationConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.organization);
|
59
64
|
const resources = Object.keys(data.resources).reduce((result, key) => {
|
60
65
|
result.set(uri_1.URI.parse(key), AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.resources[key]));
|
61
66
|
return result;
|
62
67
|
}, new map_1.ResourceMap());
|
63
|
-
return new core_2.OrganizationConfiguration(defaultConfiguration, userConfiguration,
|
68
|
+
return new core_2.OrganizationConfiguration(defaultConfiguration, userConfiguration, machineConfiguration, organizationConfiguration, resources, previousConfiguration || new core_2.ConfigurationModel(), prevResourceConfigurations || new map_1.ResourceMap(), organization);
|
64
69
|
}
|
65
70
|
static parseConfigurationModel(model) {
|
66
71
|
return new core_2.ConfigurationModel(model.contents, model.keys, model.overrides).freeze();
|
67
72
|
}
|
68
73
|
};
|
69
74
|
AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService_1 = __decorate([
|
70
|
-
inversify_1.injectable(),
|
71
|
-
__param(0, inversify_1.inject('Logger')),
|
75
|
+
(0, inversify_1.injectable)(),
|
76
|
+
__param(0, (0, inversify_1.inject)('Logger')),
|
72
77
|
__metadata("design:paramtypes", [Object])
|
73
78
|
], AbstractOrganizationConfigurationClientService);
|
74
79
|
exports.AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"abstract-configuration.js","sourceRoot":"","sources":["../../src/services/abstract-configuration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAA+C;AAM/C,gDAAmD;AACnD,kCAAmH;AACnH,0EAA+E;AAC/E,0EAAuE;AAEvE,8EAAoF;AAKpF,IAAsB,8CAA8C,sDAApE,MAAsB,8CAA+C,SAAQ,iBAAU;IAMnF,YAEI,MAAe;QAEf,KAAK,EAAE,CAAC;QAIO,8BAAyB,GAAuC,IAAI,CAAC,SAAS,CAAC,IAAI,eAAO,EAA6B,CAAC,CAAC;QAC5H,6BAAwB,GAAqC,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC;QAJ9G,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,wCAAwC,EAAE,CAAC,CAAC;IACxF,CAAC;
|
1
|
+
{"version":3,"file":"abstract-configuration.js","sourceRoot":"","sources":["../../src/services/abstract-configuration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAA+C;AAM/C,gDAAmD;AACnD,kCAAmH;AACnH,0EAA+E;AAC/E,0EAAuE;AAEvE,8EAAoF;AAKpF,IAAsB,8CAA8C,sDAApE,MAAsB,8CAA+C,SAAQ,iBAAU;IAMnF,YAEI,MAAe;QAEf,KAAK,EAAE,C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QAC1C,OAAO,IAAI,gCAAa,CACpB,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,SAAS,EACT,qBAAqB,IAAI,IAAI,yBAAkB,EAAE,EACjD,0BAA0B,IAAI,IAAI,iBAAW,EAAsB,EACnE,YAAY,CACf,CAAC;IACN,CAAC;IAES,MAAM,CAAC,uBAAuB,CAAC,KAA2B;QAChE,OAAO,IAAI,yBAAkB,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,CAAC;IACxF,CAAC;CACJ,CAAA;AA7GqB,8CAA8C;IADnE,IAAA,sBAAU,GAAE;IAQJ,WAAA,IAAA,kBAAM,EAAC,QAAQ,CAAC,CAAA;;GAPH,8CAA8C,CA6GnE;AA7GqB,wGAA8C"}
|
@@ -46,14 +46,14 @@ let AbstractOrganizationContextService = class AbstractOrganizationContextServic
|
|
46
46
|
getApplicationState() {
|
47
47
|
// OrganizationContext has configuration file
|
48
48
|
if (this.organizationContext.configuration) {
|
49
|
-
return 3 /* ORGANIZATION */;
|
49
|
+
return 3 /* ApplicationState.ORGANIZATION */;
|
50
50
|
}
|
51
51
|
// Resource has single root
|
52
52
|
if (this.organizationContext.resources.length === 1) {
|
53
|
-
return 2 /* RESOURCE */;
|
53
|
+
return 2 /* ApplicationState.RESOURCE */;
|
54
54
|
}
|
55
55
|
// Empty
|
56
|
-
return 1 /* EMPTY */;
|
56
|
+
return 1 /* ApplicationState.EMPTY */;
|
57
57
|
}
|
58
58
|
getOrganizationResource(resource) {
|
59
59
|
return this.organizationContext.getResource(resource);
|
@@ -63,10 +63,10 @@ let AbstractOrganizationContextService = class AbstractOrganizationContextServic
|
|
63
63
|
}
|
64
64
|
isCurrentOrganization(organizationIdentifier) {
|
65
65
|
switch (this.getApplicationState()) {
|
66
|
-
case 2 /* RESOURCE */:
|
67
|
-
return helpers_1.isSingleResourceOrganizationIdentifier(organizationIdentifier) && resources_1.isEqual(organizationIdentifier, this.organizationContext.resources[0].uri);
|
68
|
-
case 3 /* ORGANIZATION */:
|
69
|
-
return helpers_1.isOrganizationIdentifier(organizationIdentifier) && this.organizationContext.id === organizationIdentifier.id;
|
66
|
+
case 2 /* ApplicationState.RESOURCE */:
|
67
|
+
return (0, helpers_1.isSingleResourceOrganizationIdentifier)(organizationIdentifier) && (0, resources_1.isEqual)(organizationIdentifier, this.organizationContext.resources[0].uri);
|
68
|
+
case 3 /* ApplicationState.ORGANIZATION */:
|
69
|
+
return (0, helpers_1.isOrganizationIdentifier)(organizationIdentifier) && this.organizationContext.id === organizationIdentifier.id;
|
70
70
|
}
|
71
71
|
return false;
|
72
72
|
}
|
@@ -107,8 +107,8 @@ let AbstractOrganizationContextService = class AbstractOrganizationContextServic
|
|
107
107
|
}
|
108
108
|
};
|
109
109
|
AbstractOrganizationContextService = __decorate([
|
110
|
-
inversify_1.injectable(),
|
111
|
-
__param(0, inversify_1.inject(core_3.CommonType.LOGGER)),
|
110
|
+
(0, inversify_1.injectable)(),
|
111
|
+
__param(0, (0, inversify_1.inject)(core_3.CommonType.LOGGER)),
|
112
112
|
__metadata("design:paramtypes", [Object])
|
113
113
|
], AbstractOrganizationContextService);
|
114
114
|
exports.AbstractOrganizationContextService = AbstractOrganizationContextService;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"abstract-organization-context-service.js","sourceRoot":"","sources":["../../src/services/abstract-organization-context-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0EAAuE;AACvE,8EAAoF;AACpF,uFAAuF;AACvF,gDAAmD;AACnD,8EAAoF;AAEpF,yCAA+C;AAC/C,kCAAmF;AACnF,6CAAgD;AAMhD,sFAA6H;AAC7H,0DAAgH;AAKhH,IAAsB,kCAAkC,GAAxD,MAAsB,kCAAmC,SAAQ,iBAAU;IAqBvE,YAEI,MAAe;QAEf,KAAK,EAAE,CAAC;QAjBO,8BAAyB,GAAuC,IAAI,CAAC,SAAS,CAAC,IAAI,eAAO,EAA6B,CAAC,CAAC;QAC5H,6BAAwB,GAAqC,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC;QAE/F,sCAAiC,GAA+C,IAAI,CAAC,SAAS,CAAC,IAAI,eAAO,EAAqC,CAAC,CAAC;QACpJ,qCAAgC,GAA6C,IAAI,CAAC,iCAAiC,CAAC,KAAK,CAAC;QAEvH,iCAA4B,GAAoB,IAAI,CAAC,SAAS,CAAC,IAAI,eAAO,EAAU,CAAC,CAAC;QACzF,gCAA2B,GAAkB,IAAI,CAAC,4BAA4B,CAAC,KAAK,CAAC;QAElF,iCAA4B,GAA8B,IAAI,CAAC,SAAS,CAAC,IAAI,eAAO,EAAoB,CAAC,CAAC;QAC7G,gCAA2B,GAA4B,IAAI,CAAC,4BAA4B,CAAC,KAAK,CAAC;QAQ3G,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,6BAA6B,EAAE,CAAC,CAAC;QAEzE,IAAI,CAAC,2BAA2B,GAAG,IAAI,eAAO,EAAE,CAAC;IACrD,CAAC;IAIM,uBAAuB;QAC1B,OAAO,IAAI,CAAC,2BAA2B,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;IACtF,CAAC;IAEM,eAAe;QAClB,OAAO,IAAI,CAAC,mBAAmB,CAAC;IACpC,CAAC;IAEM,mBAAmB;QACtB,6CAA6C;QAC7C,IAAI,IAAI,CAAC,mBAAmB,CAAC,aAAa,EAAE;YACxC,
|
1
|
+
{"version":3,"file":"abstract-organization-context-service.js","sourceRoot":"","sources":["../../src/services/abstract-organization-context-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0EAAuE;AACvE,8EAAoF;AACpF,uFAAuF;AACvF,gDAAmD;AACnD,8EAAoF;AAEpF,yCAA+C;AAC/C,kCAAmF;AACnF,6CAAgD;AAMhD,sF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CAAA;;GAtBZ,kCAAkC,CA0HvD;AA1HqB,gFAAkC"}
|
package/lib/services/index.js
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0EAAwD;AACxD,2DAAyC"}
|
@@ -7,8 +7,8 @@ function getScopes(configurationRegistry) {
|
|
7
7
|
for (const key of Object.keys(configurationProperties)) {
|
8
8
|
scopes[key] = configurationProperties[key].scope;
|
9
9
|
}
|
10
|
-
scopes['launch'] = 4 /* RESOURCE */;
|
11
|
-
scopes['task'] = 4 /* RESOURCE */;
|
10
|
+
scopes['launch'] = 4 /* ConfigurationScope.RESOURCE */;
|
11
|
+
scopes['task'] = 4 /* ConfigurationScope.RESOURCE */;
|
12
12
|
return scopes;
|
13
13
|
}
|
14
14
|
exports.getScopes = getScopes;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"configuration-utils.js","sourceRoot":"","sources":["../../src/utils/configuration-utils.ts"],"names":[],"mappings":";;;AAGA,SAAgB,SAAS,CAAC,qBAA6C;IACnE,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,MAAM,uBAAuB,GAAG,qBAAqB,CAAC,0BAA0B,EAAE,CAAC;IACnF,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE;QACpD,MAAM,CAAC,GAAG,CAAC,GAAG,uBAAuB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC;KACpD;IACD,MAAM,CAAC,QAAQ,CAAC,
|
1
|
+
{"version":3,"file":"configuration-utils.js","sourceRoot":"","sources":["../../src/utils/configuration-utils.ts"],"names":[],"mappings":";;;AAGA,SAAgB,SAAS,CAAC,qBAA6C;IACnE,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,MAAM,uBAAuB,GAAG,qBAAqB,CAAC,0BAA0B,EAAE,CAAC;IACnF,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE;QACpD,MAAM,CAAC,GAAG,CAAC,GAAG,uBAAuB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC;KACpD;IACD,MAAM,CAAC,QAAQ,CAAC,sCAA8B,CAAC;IAC/C,MAAM,CAAC,MAAM,CAAC,sCAA8B,CAAC;IAC7C,OAAO,MAAM,CAAC;AAClB,CAAC;AATD,8BASC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function flatten<T extends Record<string, any>>(object: T, path?: string | null, separator?: string): T;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.flatten = void 0;
|
4
|
+
function flatten(object, path = null, separator = '.') {
|
5
|
+
return Object.keys(object).reduce((acc, key) => {
|
6
|
+
const value = object[key];
|
7
|
+
const newPath = [path, key].filter(Boolean).join(separator);
|
8
|
+
const isObject = [
|
9
|
+
typeof value === 'object',
|
10
|
+
value !== null,
|
11
|
+
!(value instanceof Date),
|
12
|
+
!(value instanceof RegExp),
|
13
|
+
!(Array.isArray(value) && value.length === 0),
|
14
|
+
].every(Boolean);
|
15
|
+
return isObject
|
16
|
+
? Object.assign(Object.assign({}, acc), flatten(value, newPath, separator)) : Object.assign(Object.assign({}, acc), { [newPath]: value });
|
17
|
+
}, {});
|
18
|
+
}
|
19
|
+
exports.flatten = flatten;
|
20
|
+
//# sourceMappingURL=flatten-utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"flatten-utils.js","sourceRoot":"","sources":["../../src/utils/flatten-utils.ts"],"names":[],"mappings":";;;AAEA,SAAgB,OAAO,CACnB,MAAS,EACT,OAAsB,IAAI,EAC1B,SAAS,GAAG,GAAG;IAEf,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,GAAM,EAAE,GAAW,EAAK,EAAE;QAC3D,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAE1B,MAAM,OAAO,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAE5D,MAAM,QAAQ,GAAG;YACf,OAAO,KAAK,KAAK,QAAQ;YACzB,KAAK,KAAK,IAAI;YACd,CAAC,CAAC,KAAK,YAAY,IAAI,CAAC;YACxB,CAAC,CAAC,KAAK,YAAY,MAAM,CAAC;YAC1B,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;SAC9C,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEjB,OAAO,QAAQ;YACb,CAAC,iCAAM,GAAG,GAAK,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,EACjD,CAAC,iCAAM,GAAG,KAAE,CAAC,OAAO,CAAC,EAAE,KAAK,GAAE,CAAC;IACnC,CAAC,EAAE,EAAO,CAAC,CAAC;AACd,CAAC;AAtBH,0BAsBG"}
|
@@ -9,18 +9,27 @@ import { IConfigCollectionName, IConfigFragmentName } from '../interfaces';
|
|
9
9
|
*/
|
10
10
|
export declare const generateUri: (collectionName: IConfigCollectionName, params: {
|
11
11
|
[key: string]: any;
|
12
|
-
}, fragment: string, authority?: string
|
12
|
+
}, fragment: string, authority?: string, options?: {
|
13
|
+
flatten: boolean;
|
14
|
+
}) => URI;
|
13
15
|
/**
|
14
16
|
* Generates URI for User with `_id` as `self` if the user logged in otherwise `guest`
|
15
17
|
*/
|
16
|
-
export declare const
|
18
|
+
export declare const generateProxyUserUri: (userProxyId: 'self' | 'guest', fragment?: IConfigFragmentName, authority?: string) => URI;
|
19
|
+
/**
|
20
|
+
* Generates URI for User with `_id` as `self` if the user logged in otherwise `guest`
|
21
|
+
*/
|
22
|
+
export declare const generateUserUri: (params: {
|
23
|
+
[key: string]: any;
|
24
|
+
}, fragment?: IConfigFragmentName, authority?: string) => URI;
|
17
25
|
/**
|
18
26
|
* Generates URI for Application
|
19
27
|
*/
|
20
|
-
export declare const generateApplicationUri: (orgName: string, fragment?: IConfigFragmentName) => URI;
|
28
|
+
export declare const generateApplicationUri: (orgName: string, fragment?: IConfigFragmentName, authority?: string) => URI;
|
21
29
|
export declare const generateResourceUri: (collectionName: IConfigCollectionName, params: {
|
22
30
|
[key: string]: any;
|
23
31
|
name: string;
|
24
32
|
orgName: string;
|
25
33
|
}, fragment: string, authority?: string) => URI;
|
26
34
|
export declare const generateOrgUri: (name: any, fragment: string, authority?: string) => URI;
|
35
|
+
export declare const generateMachineUri: (name: any, fragment: string, authority?: string) => URI;
|