@adminide-stack/core 3.1.2-alpha.97 → 3.1.4-alpha.107

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.
Files changed (51) hide show
  1. package/lib/core/configurations/configuration.js +2 -1
  2. package/lib/core/configurations/configuration.js.map +1 -1
  3. package/lib/core/configurations/helpers/configuration.d.ts +2 -1
  4. package/lib/core/configurations/helpers/configuration.js +71 -29
  5. package/lib/core/configurations/helpers/configuration.js.map +1 -1
  6. package/lib/core/configurations/models/ConfigurationModel.js +1 -1
  7. package/lib/core/configurations/models/ConfigurationModel.js.map +1 -1
  8. package/lib/core/path.js +15 -15
  9. package/lib/core/path.js.map +1 -1
  10. package/lib/core/types.d.ts +1 -1
  11. package/lib/interfaces/common.d.ts +1 -1
  12. package/lib/interfaces/configuration/configuration.d.ts +2 -2
  13. package/lib/interfaces/configuration/configurationRegistry.d.ts +2 -2
  14. package/lib/interfaces/configuration/configuraton-service.d.ts +4 -1
  15. package/lib/interfaces/generated/generated-models.d.ts +1267 -1284
  16. package/lib/interfaces/generated/generated-models.js +63 -31
  17. package/lib/interfaces/generated/generated-models.js.map +1 -1
  18. package/lib/interfaces/index.d.ts +1 -0
  19. package/lib/interfaces/index.js +2 -0
  20. package/lib/interfaces/index.js.map +1 -1
  21. package/lib/interfaces/log/log-service.d.ts +1 -1
  22. package/lib/interfaces/organization/organization-context-service.d.ts +7 -0
  23. package/lib/interfaces/organization/organizations-context.d.ts +4 -4
  24. package/lib/interfaces/permissions.d.ts +2 -2
  25. package/lib/interfaces/platform.d.ts +5 -0
  26. package/lib/interfaces/platform.js +3 -0
  27. package/lib/interfaces/platform.js.map +1 -0
  28. package/lib/interfaces/preferences-service.d.ts +1 -1
  29. package/lib/interfaces/service.d.ts +1 -2
  30. package/lib/modules/account-api/enums/index.d.ts +22 -11
  31. package/lib/modules/account-api/enums/index.js +26 -11
  32. package/lib/modules/account-api/enums/index.js.map +1 -1
  33. package/lib/modules/inbox/enums/index.d.ts +20 -0
  34. package/lib/modules/inbox/enums/index.js +30 -0
  35. package/lib/modules/inbox/enums/index.js.map +1 -0
  36. package/lib/modules/inbox/index.d.ts +1 -0
  37. package/lib/modules/inbox/index.js +18 -0
  38. package/lib/modules/inbox/index.js.map +1 -0
  39. package/lib/modules/index.d.ts +1 -0
  40. package/lib/modules/index.js +1 -0
  41. package/lib/modules/index.js.map +1 -1
  42. package/lib/services/abstract-configuration.d.ts +5 -5
  43. package/lib/services/abstract-configuration.js +19 -11
  44. package/lib/services/abstract-configuration.js.map +1 -1
  45. package/lib/services/abstract-organization-context-service.d.ts +5 -2
  46. package/lib/services/abstract-organization-context-service.js +20 -10
  47. package/lib/services/abstract-organization-context-service.js.map +1 -1
  48. package/lib/utils/flatten-utils.d.ts +8 -0
  49. package/lib/utils/flatten-utils.js +37 -1
  50. package/lib/utils/flatten-utils.js.map +1 -1
  51. package/package.json +4 -7
@@ -15,3 +15,4 @@ export * from './permissions';
15
15
  export * from './service';
16
16
  export * from './log';
17
17
  export * from './environment';
18
+ export * from './platform';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* eslint-disable import/export */
17
18
  __exportStar(require("./enum"), exports);
18
19
  __exportStar(require("./common"), exports);
19
20
  __exportStar(require("./generated"), exports);
@@ -31,4 +32,5 @@ __exportStar(require("./permissions"), exports);
31
32
  __exportStar(require("./service"), exports);
32
33
  __exportStar(require("./log"), exports);
33
34
  __exportStar(require("./environment"), exports);
35
+ __exportStar(require("./platform"), exports);
34
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kCAAkC;AAClC,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;AAC9B,6CAA2B"}
@@ -1,7 +1,7 @@
1
1
  import { Event } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
2
2
  import { IDisposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
3
3
  import { CdmLogger } from '@cdm-logger/core';
4
- declare type LogLevel = CdmLogger.LoggerLevel;
4
+ type LogLevel = CdmLogger.LoggerLevel;
5
5
  export interface ILogService extends IDisposable {
6
6
  onDidChangeLogLevel: Event<LogLevel>;
7
7
  getLevel(): LogLevel;
@@ -4,6 +4,7 @@ import { IDisposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecy
4
4
  import { IOrganizationData, IOrganizationIdentifier, IResourceCreationDataInput } from '../generated';
5
5
  import { IOrganizationResource, ApplicationState, IOrganizationResourcesChangeEvent, IOrganizationContext } from './organization-context';
6
6
  import { IOrganizationResourceCreationData, ISingleResourceOrganizationIdentifier } from './organizations-context';
7
+ import { OrganizationContext } from '../../core';
7
8
  export interface IOrganizationContextService extends IDisposable {
8
9
  /**
9
10
  * An event which fires on workbench state changes.
@@ -17,6 +18,10 @@ export interface IOrganizationContextService extends IDisposable {
17
18
  * An event which fires on organization resources change.
18
19
  */
19
20
  onDidChangeOrganizationResources: Event<IOrganizationResourcesChangeEvent>;
21
+ /**
22
+ * hydrate the organization context
23
+ */
24
+ hydrate(state: string): any;
20
25
  /**
21
26
  * Provides access to the complete organization object.
22
27
  */
@@ -51,6 +56,8 @@ export interface IOrganizationContextService extends IDisposable {
51
56
  updateResources(resourcesToAdd: IOrganizationResourceCreationData[], resourcesToRemove: URI[], index?: number): Promise<void>;
52
57
  }
53
58
  export interface IClientOrganizationContextService extends IOrganizationContextService {
59
+ get organizationContext(): OrganizationContext;
60
+ set organizationContext(context: OrganizationContext);
54
61
  extAcceptChangedApplicationState(organization: IOrganizationData, event: ApplicationState): any;
55
62
  extAcceptChangedOrganizationResources(data: IOrganizationData, event: IOrganizationResourcesChangeEvent): any;
56
63
  extAcceptChangedOrganizationName(date: IOrganizationData): any;
@@ -3,7 +3,7 @@ import { IOrganizationIdentifier } from '../generated';
3
3
  /**
4
4
  * A single folder workspace identifier is just the path to the folder.
5
5
  */
6
- export declare type ISingleResourceOrganizationIdentifier = URI;
6
+ export type ISingleResourceOrganizationIdentifier = URI;
7
7
  export interface ISingleResourceOrganizaionInitializationPayload {
8
8
  id: string;
9
9
  resource: ISingleResourceOrganizationIdentifier;
@@ -23,8 +23,8 @@ export interface IRawUriOrganizationResource {
23
23
  uri: string;
24
24
  name?: string;
25
25
  }
26
- export declare type IStoredOrganizationResource = IRawFileOrganizationResource | IRawUriOrganizationResource;
27
- export declare type IMultiResourceOrganizationInitializationPayload = IOrganizationIdentifier;
26
+ export type IStoredOrganizationResource = IRawFileOrganizationResource | IRawUriOrganizationResource;
27
+ export type IMultiResourceOrganizationInitializationPayload = IOrganizationIdentifier;
28
28
  export interface ISingleResourceOrganizationInitializationPayload {
29
29
  id: string;
30
30
  folder: ISingleResourceOrganizationIdentifier;
@@ -32,4 +32,4 @@ export interface ISingleResourceOrganizationInitializationPayload {
32
32
  export interface IEmptyOrganizationInitializationPayload {
33
33
  id: string;
34
34
  }
35
- export declare type IOrganizationInitializationPayload = IMultiResourceOrganizationInitializationPayload | ISingleResourceOrganizationInitializationPayload | IEmptyOrganizationInitializationPayload;
35
+ export type IOrganizationInitializationPayload = IMultiResourceOrganizationInitializationPayload | ISingleResourceOrganizationInitializationPayload | IEmptyOrganizationInitializationPayload;
@@ -1,2 +1,2 @@
1
- import { IPreDefineBillingPermissions, IPreDefineAccountPermissions } from '../modules';
2
- export declare type IPreDefinedPermissions = IPreDefineBillingPermissions | IPreDefineAccountPermissions;
1
+ import { IPreDefineBillingPermissions, IPreDefineAccountPermissions, IPreDefineInboxPermissions } from '../modules';
2
+ export type IPreDefinedPermissions = IPreDefineBillingPermissions | IPreDefineAccountPermissions | IPreDefineInboxPermissions;
@@ -0,0 +1,5 @@
1
+ export type IPlatformState = {
2
+ orgName: string;
3
+ loading: boolean;
4
+ initialized: boolean;
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=platform.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.js","sourceRoot":"","sources":["../../src/interfaces/platform.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
2
2
  import { ISettingsSubject, IViewerSettingsInput, IRoleInput, IPermissionSubject, IViewerSettingsSubject, IPolicySubject, IViewerPoliciesInput } from './generated';
3
3
  import { ConfigurationTarget, IPreferencesInput, IPreferencesOpenOptionsInput as IPreferencesOpenOptions, IContributionSettings } from './generated';
4
- export declare type IPrefFragment = {
4
+ export type IPrefFragment = {
5
5
  fragmentName?: string;
6
6
  fragmentDoc?: string;
7
7
  };
@@ -4,15 +4,14 @@ import { IClientConfigurationService, IConfigurationFileService } from './config
4
4
  import { IOrganizationContextService } from './organization';
5
5
  import { IPreferenceClientService } from './preferences-service';
6
6
  import { IEnvironmentService } from './environment';
7
- import { IRegistry } from './workbench-exports';
8
7
  export interface IClientService {
9
8
  readonly configurationService: IClientConfigurationService;
10
9
  readonly permissionService?: IClientConfigurationService;
10
+ readonly configurationPolicyService?: IClientConfigurationService;
11
11
  readonly contextKeyService: IContextKeyService;
12
12
  readonly organizationContextService: IOrganizationContextService;
13
13
  readonly lifecycleService: ILifecycleService;
14
14
  readonly preferenceService: IPreferenceClientService;
15
- readonly registry: IRegistry;
16
15
  readonly environmentService?: IEnvironmentService;
17
16
  readonly configurationFileService?: IConfigurationFileService;
18
17
  }
@@ -8,22 +8,33 @@ export declare enum IPreDefineAccountPermissions {
8
8
  deleteTeams = "organization.teams.delete",
9
9
  manageTeams = "organization.teams.manage",
10
10
  accessTeamDashboard = "organization.teams.dashboard.access",
11
- viewProjects = "organization.projects.view",
12
- createProjects = "organization.projects.create",
13
- editProjects = "organization.projects.edit",
14
- deleteProjects = "organization.projects.delete",
15
- manageProjects = "organization.projects.manage",
16
- viewProjectStatus = "organization.projects.status.view",
11
+ viewSelfProjects = "organization.projects.self.view",
12
+ createSelfProjects = "organization.projects.self.create",
13
+ editSelfProjects = "organization.projects.self.edit",
14
+ deleteSelfProjects = "organization.projects.self.delete",
15
+ manageSelfProjects = "organization.projects.self.manage",
16
+ viewSelfProjectStatus = "organization.projects.status.self.view",
17
+ viewOthersProjects = "organization.projects.others.view",
18
+ createOthersProjects = "organization.projects.others.create",
19
+ editOthersProjects = "organization.projects.others.edit",
20
+ deleteOthersProjects = "organization.projects.others.delete",
21
+ manageOthersProjects = "organization.projects.others.manage",
22
+ viewOthersProjectStatus = "organization.projects.status.others.view",
17
23
  viewMembers = "organization.members.view",
18
24
  createMembers = "organization.members.create",
19
25
  editMembers = "organization.members.edit",
20
26
  deleteMembers = "organization.members.delete",
21
27
  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",
28
+ viewSelfClients = "organization.clients.self.view",
29
+ createSelfClients = "organization.clients.self.create",
30
+ editSelfClients = "organization.clients.self.edit",
31
+ deleteSelfClients = "organization.clients.self.delete",
32
+ manageSelfClients = "organization.clients.self.manage",
33
+ viewOthersClients = "organization.clients.others.view",
34
+ createOthersClients = "organization.clients.others.create",
35
+ editOthersClients = "organization.clients.others.edit",
36
+ deleteOthersClients = "organization.clients.others.delete",
37
+ manageOthersClients = "organization.clients.others.manage",
27
38
  viewTasks = "organization.tasks.view",
28
39
  createTasks = "organization.tasks.create",
29
40
  editTasks = "organization.tasks.edit",
@@ -12,22 +12,37 @@ var IPreDefineAccountPermissions;
12
12
  IPreDefineAccountPermissions["deleteTeams"] = "organization.teams.delete";
13
13
  IPreDefineAccountPermissions["manageTeams"] = "organization.teams.manage";
14
14
  IPreDefineAccountPermissions["accessTeamDashboard"] = "organization.teams.dashboard.access";
15
- IPreDefineAccountPermissions["viewProjects"] = "organization.projects.view";
16
- IPreDefineAccountPermissions["createProjects"] = "organization.projects.create";
17
- IPreDefineAccountPermissions["editProjects"] = "organization.projects.edit";
18
- IPreDefineAccountPermissions["deleteProjects"] = "organization.projects.delete";
19
- IPreDefineAccountPermissions["manageProjects"] = "organization.projects.manage";
20
- IPreDefineAccountPermissions["viewProjectStatus"] = "organization.projects.status.view";
15
+ //self
16
+ IPreDefineAccountPermissions["viewSelfProjects"] = "organization.projects.self.view";
17
+ IPreDefineAccountPermissions["createSelfProjects"] = "organization.projects.self.create";
18
+ IPreDefineAccountPermissions["editSelfProjects"] = "organization.projects.self.edit";
19
+ IPreDefineAccountPermissions["deleteSelfProjects"] = "organization.projects.self.delete";
20
+ IPreDefineAccountPermissions["manageSelfProjects"] = "organization.projects.self.manage";
21
+ IPreDefineAccountPermissions["viewSelfProjectStatus"] = "organization.projects.status.self.view";
22
+ //others
23
+ IPreDefineAccountPermissions["viewOthersProjects"] = "organization.projects.others.view";
24
+ IPreDefineAccountPermissions["createOthersProjects"] = "organization.projects.others.create";
25
+ IPreDefineAccountPermissions["editOthersProjects"] = "organization.projects.others.edit";
26
+ IPreDefineAccountPermissions["deleteOthersProjects"] = "organization.projects.others.delete";
27
+ IPreDefineAccountPermissions["manageOthersProjects"] = "organization.projects.others.manage";
28
+ IPreDefineAccountPermissions["viewOthersProjectStatus"] = "organization.projects.status.others.view";
21
29
  IPreDefineAccountPermissions["viewMembers"] = "organization.members.view";
22
30
  IPreDefineAccountPermissions["createMembers"] = "organization.members.create";
23
31
  IPreDefineAccountPermissions["editMembers"] = "organization.members.edit";
24
32
  IPreDefineAccountPermissions["deleteMembers"] = "organization.members.delete";
25
33
  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";
34
+ //self
35
+ IPreDefineAccountPermissions["viewSelfClients"] = "organization.clients.self.view";
36
+ IPreDefineAccountPermissions["createSelfClients"] = "organization.clients.self.create";
37
+ IPreDefineAccountPermissions["editSelfClients"] = "organization.clients.self.edit";
38
+ IPreDefineAccountPermissions["deleteSelfClients"] = "organization.clients.self.delete";
39
+ IPreDefineAccountPermissions["manageSelfClients"] = "organization.clients.self.manage";
40
+ //others
41
+ IPreDefineAccountPermissions["viewOthersClients"] = "organization.clients.others.view";
42
+ IPreDefineAccountPermissions["createOthersClients"] = "organization.clients.others.create";
43
+ IPreDefineAccountPermissions["editOthersClients"] = "organization.clients.others.edit";
44
+ IPreDefineAccountPermissions["deleteOthersClients"] = "organization.clients.others.delete";
45
+ IPreDefineAccountPermissions["manageOthersClients"] = "organization.clients.others.manage";
31
46
  IPreDefineAccountPermissions["viewTasks"] = "organization.tasks.view";
32
47
  IPreDefineAccountPermissions["createTasks"] = "organization.tasks.create";
33
48
  IPreDefineAccountPermissions["editTasks"] = "organization.tasks.edit";
@@ -1 +1 @@
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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/account-api/enums/index.ts"],"names":[],"mappings":";;;AAAA,IAAY,4BAyEX;AAzED,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,MAAM;IACN,oFAAoD,CAAA;IACpD,wFAAwD,CAAA;IACxD,oFAAoD,CAAA;IACpD,wFAAwD,CAAA;IACxD,wFAAwD,CAAA;IACxD,gGAAgE,CAAA;IAChE,QAAQ;IACR,wFAAwD,CAAA;IACxD,4FAA4D,CAAA;IAC5D,wFAAwD,CAAA;IACxD,4FAA4D,CAAA;IAC5D,4FAA4D,CAAA;IAC5D,oGAAoE,CAAA;IAEpE,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,6EAA6C,CAAA;IAE7C,MAAM;IACN,kFAAkD,CAAA;IAClD,sFAAsD,CAAA;IACtD,kFAAkD,CAAA;IAClD,sFAAsD,CAAA;IACtD,sFAAsD,CAAA;IACtD,QAAQ;IACR,sFAAsD,CAAA;IACtD,0FAA0D,CAAA;IAC1D,sFAAsD,CAAA;IACtD,0FAA0D,CAAA;IAC1D,0FAA0D,CAAA;IAE1D,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,EAzEW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAyEvC"}
@@ -0,0 +1,20 @@
1
+ export declare enum IPreDefineInboxPermissions {
2
+ viewPosts = "organization.inbox.posts.view",
3
+ createPost = "organization.inbox.posts.create",
4
+ editPost = "organization.inbox.posts.edit",
5
+ deletePost = "organization.inbox.posts.delete",
6
+ viewThreads = "organization.inbox.threads.view",
7
+ editThread = "organization.inbox.threads.edit",
8
+ deleteThread = "organization.inbox.threads.delete",
9
+ replyThread = "organization.inbox.threads.reply",
10
+ assignThreads = "organization.inbox.threads.assignThreads",
11
+ manageSupportServices = "organization.inbox.threads.manageServices",
12
+ viewThreadReplies = "organization.inbox.threads.viewThreadReplies",
13
+ editThreadReply = "organization.inbox.threads.editThreadReply",
14
+ deleteThreadReply = "organization.inbox.threads.deleteThreadReply",
15
+ editOthersThread = "organization.inbox.threads.editOthersThread",
16
+ deleteOthersThread = "organization.inbox.threads.deleteOthersThread",
17
+ replyOthersThread = "organization.inbox.threads.replyOthersThread",
18
+ editOthersThreadReply = "organization.inbox.threads.editOthersThreadReply",
19
+ deleteOthersThreadReply = "organization.inbox.threads.deleteOthersThreadReply"
20
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IPreDefineInboxPermissions = void 0;
4
+ var IPreDefineInboxPermissions;
5
+ (function (IPreDefineInboxPermissions) {
6
+ //inbox
7
+ //inbox/posts
8
+ IPreDefineInboxPermissions["viewPosts"] = "organization.inbox.posts.view";
9
+ IPreDefineInboxPermissions["createPost"] = "organization.inbox.posts.create";
10
+ IPreDefineInboxPermissions["editPost"] = "organization.inbox.posts.edit";
11
+ IPreDefineInboxPermissions["deletePost"] = "organization.inbox.posts.delete";
12
+ //inbox/threads
13
+ IPreDefineInboxPermissions["viewThreads"] = "organization.inbox.threads.view";
14
+ IPreDefineInboxPermissions["editThread"] = "organization.inbox.threads.edit";
15
+ IPreDefineInboxPermissions["deleteThread"] = "organization.inbox.threads.delete";
16
+ IPreDefineInboxPermissions["replyThread"] = "organization.inbox.threads.reply";
17
+ //assign threads to members
18
+ IPreDefineInboxPermissions["assignThreads"] = "organization.inbox.threads.assignThreads";
19
+ IPreDefineInboxPermissions["manageSupportServices"] = "organization.inbox.threads.manageServices";
20
+ IPreDefineInboxPermissions["viewThreadReplies"] = "organization.inbox.threads.viewThreadReplies";
21
+ IPreDefineInboxPermissions["editThreadReply"] = "organization.inbox.threads.editThreadReply";
22
+ IPreDefineInboxPermissions["deleteThreadReply"] = "organization.inbox.threads.deleteThreadReply";
23
+ //Additional permissions
24
+ IPreDefineInboxPermissions["editOthersThread"] = "organization.inbox.threads.editOthersThread";
25
+ IPreDefineInboxPermissions["deleteOthersThread"] = "organization.inbox.threads.deleteOthersThread";
26
+ IPreDefineInboxPermissions["replyOthersThread"] = "organization.inbox.threads.replyOthersThread";
27
+ IPreDefineInboxPermissions["editOthersThreadReply"] = "organization.inbox.threads.editOthersThreadReply";
28
+ IPreDefineInboxPermissions["deleteOthersThreadReply"] = "organization.inbox.threads.deleteOthersThreadReply";
29
+ })(IPreDefineInboxPermissions = exports.IPreDefineInboxPermissions || (exports.IPreDefineInboxPermissions = {}));
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/inbox/enums/index.ts"],"names":[],"mappings":";;;AAAA,IAAY,0BA0BX;AA1BD,WAAY,0BAA0B;IAClC,OAAO;IACP,aAAa;IACb,yEAA2C,CAAA;IAC3C,4EAA8C,CAAA;IAC9C,wEAA0C,CAAA;IAC1C,4EAA8C,CAAA;IAE9C,eAAe;IACf,6EAA+C,CAAA;IAC/C,4EAA8C,CAAA;IAC9C,gFAAkD,CAAA;IAClD,8EAAgD,CAAA;IAChD,2BAA2B;IAC3B,wFAA0D,CAAA;IAC1D,iGAAmE,CAAA;IACnE,gGAAkE,CAAA;IAClE,4FAA8D,CAAA;IAC9D,gGAAkE,CAAA;IAElE,wBAAwB;IACxB,8FAAgE,CAAA;IAChE,kGAAoE,CAAA;IACpE,gGAAkE,CAAA;IAClE,wGAA0E,CAAA;IAC1E,4GAA8E,CAAA;AAClF,CAAC,EA1BW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QA0BrC"}
@@ -0,0 +1 @@
1
+ export * from './enums';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
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);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enums"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/inbox/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -1,2 +1,3 @@
1
1
  export * from './account-api';
2
2
  export * from './billing-api';
3
+ export * from './inbox';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./account-api"), exports);
18
18
  __exportStar(require("./billing-api"), exports);
19
+ __exportStar(require("./inbox"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,0CAAuB"}
@@ -1,21 +1,21 @@
1
1
  import { IDisposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
2
2
  import { Disposable } from '@workbench-stack/core';
3
- import { OrganizationConfiguration as Configuration, ConfigurationModel } from '../core';
4
3
  import { ResourceMap } from '@vscode-alt/monaco-editor/esm/vs/base/common/map';
5
4
  import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
6
5
  import { CdmLogger } from '@cdm-logger/core';
7
6
  import { Event, Emitter } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
8
- import { InMemoryCache } from '@apollo/client';
7
+ import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
8
+ import { OrganizationConfiguration as Configuration, ConfigurationModel } from '../core';
9
9
  import { IClientConfigurationService, IConfigurationChangeEvent, IConfigurationOverrides, ConfigurationTarget, IConfigurationData, IConfigurationModel, IOrganizationResource, IIResourceData, IIConfigurationModel, IOrganizationContext, IConfigurationValue, IConfigurationChange } from '../interfaces';
10
- declare type ILogger = CdmLogger.ILogger;
10
+ type ILogger = CdmLogger.ILogger;
11
11
  export declare abstract class AbstractOrganizationConfigurationClientService extends Disposable implements IClientConfigurationService, IDisposable {
12
- protected apolloCache: InMemoryCache;
12
+ protected _apolloClientFactory: () => ApolloClient<NormalizedCacheObject>;
13
13
  protected utility: any;
14
14
  protected _configuration: Configuration;
15
15
  protected organization: IOrganizationContext;
16
16
  protected logger: ILogger;
17
17
  protected externalResources: URI[];
18
- constructor(apolloCache: InMemoryCache, utility: any, logger: ILogger);
18
+ constructor(_apolloClientFactory: () => ApolloClient<NormalizedCacheObject>, utility: any, logger: ILogger);
19
19
  protected readonly _onDidChangeConfiguration: Emitter<IConfigurationChangeEvent>;
20
20
  readonly onDidChangeConfiguration: Event<IConfigurationChangeEvent>;
21
21
  abstract initialize(organizationContext: any): any;
@@ -17,16 +17,15 @@ exports.AbstractOrganizationConfigurationClientService = void 0;
17
17
  const inversify_1 = require("inversify");
18
18
  const client_core_1 = require("@common-stack/client-core");
19
19
  const core_1 = require("@workbench-stack/core");
20
- const core_2 = require("../core");
21
20
  const map_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/map");
22
21
  const uri_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/uri");
23
22
  const event_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/event");
24
- const client_1 = require("@apollo/client");
23
+ const core_2 = require("../core");
25
24
  const MAX_EXTERNAL_RESOURCE_SIZE = 5;
26
25
  let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService_1 = class AbstractOrganizationConfigurationClientService extends core_1.Disposable {
27
- constructor(apolloCache, utility, logger) {
26
+ constructor(_apolloClientFactory, utility, logger) {
28
27
  super();
29
- this.apolloCache = apolloCache;
28
+ this._apolloClientFactory = _apolloClientFactory;
30
29
  this.utility = utility;
31
30
  this._onDidChangeConfiguration = this._register(new event_1.Emitter());
32
31
  this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
@@ -71,8 +70,11 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
71
70
  if (this.externalResources.length >= MAX_EXTERNAL_RESOURCE_SIZE) {
72
71
  const oldestResource = this.externalResources.shift();
73
72
  this.configuration.deleteResourceConfiguration(oldestResource);
74
- const resourceId = this.utility.getCacheKey({ __typename: 'MachineConfiguration', resource: oldestResource });
75
- this.apolloCache.evict({ id: resourceId });
73
+ const resourceId = this.utility.getCacheKey({
74
+ __typename: 'MachineConfiguration',
75
+ resource: oldestResource,
76
+ });
77
+ this._apolloClientFactory().cache.evict({ id: resourceId });
76
78
  }
77
79
  }
78
80
  inspect(key, overrides) {
@@ -88,10 +90,16 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
88
90
  }
89
91
  static parse(data, organization, previousConfiguration, prevResourceConfigurations) {
90
92
  const defaultConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.defaults);
91
- const policyConfiguration = data.policy ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.policy) : new core_2.ConfigurationModel();
92
- const applicationConfiguration = data.application ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.application) : new core_2.ConfigurationModel();
93
+ const policyConfiguration = data.policy
94
+ ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.policy)
95
+ : new core_2.ConfigurationModel();
96
+ const applicationConfiguration = data.application
97
+ ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.application)
98
+ : new core_2.ConfigurationModel();
93
99
  const userConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.user);
94
- const machineConfiguration = data.machine ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.machine) : new core_2.ConfigurationModel();
100
+ const machineConfiguration = data.machine
101
+ ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.machine)
102
+ : new core_2.ConfigurationModel();
95
103
  const organizationConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.organization);
96
104
  const resources = Object.keys(data.resources).reduce((result, key) => {
97
105
  result.set(uri_1.URI.parse(key), AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.resources[key]));
@@ -124,10 +132,10 @@ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigu
124
132
  };
125
133
  AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService_1 = __decorate([
126
134
  (0, inversify_1.injectable)(),
127
- __param(0, (0, inversify_1.inject)(client_core_1.ClientTypes.InMemoryCache)),
135
+ __param(0, (0, inversify_1.inject)(client_core_1.ClientTypes.ApolloClientFactory)),
128
136
  __param(1, (0, inversify_1.inject)(client_core_1.ClientTypes.UtilityClass)),
129
137
  __param(2, (0, inversify_1.inject)(client_core_1.ClientTypes.Logger)),
130
- __metadata("design:paramtypes", [client_1.InMemoryCache, Object, Object])
138
+ __metadata("design:paramtypes", [Function, Object, Object])
131
139
  ], AbstractOrganizationConfigurationClientService);
132
140
  exports.AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService;
133
141
  //# sourceMappingURL=abstract-configuration.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-configuration.js","sourceRoot":"","sources":["../../src/services/abstract-configuration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAA+C;AAC/C,2DAAwD;AAExD,gDAAmD;AACnD,kCAA6I;AAC7I,0EAA+E;AAC/E,0EAAuE;AAEvE,8EAAoF;AACpF,2CAA+C;AAO/C,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAE9B,IAAe,8CAA8C,sDAA7D,MAAe,8CAA+C,SAAQ,iBAAU;IAOnF,YAEc,WAA0B,EAE1B,OAAO,EAEjB,MAAe;QAEf,KAAK,EAAE,CAAC;QANE,gBAAW,GAAX,WAAW,CAAe;QAE1B,YAAO,GAAP,OAAO,CAAA;QASF,8BAAyB,GAAuC,IAAI,CAAC,SAAS,CAAC,IAAI,eAAO,EAA6B,CAAC,CAAC;QAC5H,6BAAwB,GAAqC,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC;QAL9G,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,wC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AC,MAAM,EAAE,CAAC;IACxF,CAAC;IAES,OAAO,CACb,mBAAyC,EACzC,QAA4B,EAC5B,MAA2B;QAE3B,MAAM,KAAK,GAAG,IAAI,+BAAwB,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QACzG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QACtB,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;QACzD,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IAEO,sBAAsB,CAAC,MAA2B;QACtD,QAAQ,MAAM,EAAE;YACZ;gBACI,OAAO,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC;YACjD;gBACI,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,QAAQ,CAAC;YAC1D;gBACI,OAAO,IAAI,CAAC,cAAc,CAAC,oBAAoB,CAAC,QAAQ,CAAC;YAC7D;gBACI,OAAO,IAAI,CAAC,cAAc,CAAC,yBAAyB,CAAC,QAAQ,CAAC;SACrE;QACD,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;AAnNqB,8CAA8C;IADnE,IAAA,sBAAU,GAAE;IAcJ,WAAA,IAAA,kBAAM,EAAC,yBAAW,CAAC,mBAAmB,CAAC,CAAA;IAEvC,WAAA,IAAA,kBAAM,EAAC,yBAAW,CAAC,YAAY,CAAC,CAAA;IAEhC,WAAA,IAAA,kBAAM,EAAC,yBAAW,CAAC,MAAM,CAAC,CAAA;;GAjBb,8CAA8C,CAmNnE;AAnNqB,wGAA8C"}
@@ -5,9 +5,9 @@ import { Barrier } from '@vscode-alt/monaco-editor/esm/vs/base/common/async';
5
5
  import { CdmLogger } from '@cdm-logger/core';
6
6
  import { OrganizationContext } from '../core';
7
7
  import { IConfigurationChangeEvent, IOrganizationIdentifier, IOrganizationData, IClientOrganizationContextService, ApplicationState, IOrganizationResource, IOrganizationResourceCreationData, IOrganizationResourcesChangeEvent, ISingleResourceOrganizationIdentifier } from '../interfaces';
8
- declare type ILogger = CdmLogger.ILogger;
8
+ type ILogger = CdmLogger.ILogger;
9
9
  export declare abstract class AbstractOrganizationContextService extends Disposable implements IClientOrganizationContextService {
10
- protected organizationContext: OrganizationContext;
10
+ protected _organizationContext: OrganizationContext;
11
11
  protected completeOrganizationBarrier: Barrier;
12
12
  protected updateOrganizationBarrier: Barrier;
13
13
  protected logger: ILogger;
@@ -21,6 +21,9 @@ export declare abstract class AbstractOrganizationContextService extends Disposa
21
21
  readonly onDidChangeApplicationState: Event<ApplicationState>;
22
22
  constructor(logger: ILogger);
23
23
  abstract initialize(args: any): any;
24
+ abstract hydrate(apolloState: any): any;
25
+ get organizationContext(): OrganizationContext;
26
+ set organizationContext(context: OrganizationContext);
24
27
  getCompleteOrganization(): Promise<OrganizationContext>;
25
28
  getOrganization(): OrganizationContext;
26
29
  getApplicationState(): ApplicationState;
@@ -13,6 +13,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.AbstractOrganizationContextService = void 0;
16
+ /* eslint-disable default-case */
16
17
  const uri_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/uri");
17
18
  const event_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/event");
18
19
  // import { Disposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
@@ -37,26 +38,32 @@ let AbstractOrganizationContextService = class AbstractOrganizationContextServic
37
38
  this.logger = logger.child({ className: 'AbstractOrganizationService' });
38
39
  this.completeOrganizationBarrier = new async_1.Barrier();
39
40
  }
41
+ get organizationContext() {
42
+ return this._organizationContext;
43
+ }
44
+ set organizationContext(context) {
45
+ this._organizationContext = context;
46
+ }
40
47
  getCompleteOrganization() {
41
48
  return this.completeOrganizationBarrier.wait().then(() => this.getOrganization());
42
49
  }
43
50
  getOrganization() {
44
- return this.organizationContext;
51
+ return this._organizationContext;
45
52
  }
46
53
  getApplicationState() {
47
54
  // OrganizationContext has configuration file
48
- if (this.organizationContext.configuration) {
55
+ if (this._organizationContext.configuration) {
49
56
  return 3 /* ApplicationState.ORGANIZATION */;
50
57
  }
51
58
  // Resource has single root
52
- if (this.organizationContext.resources.length === 1) {
59
+ if (this._organizationContext.resources.length === 1) {
53
60
  return 2 /* ApplicationState.RESOURCE */;
54
61
  }
55
62
  // Empty
56
63
  return 1 /* ApplicationState.EMPTY */;
57
64
  }
58
65
  getOrganizationResource(resource) {
59
- return this.organizationContext.getResource(resource);
66
+ return this._organizationContext.getResource(resource);
60
67
  }
61
68
  isInsideOrganization(resource) {
62
69
  return !!this.getOrganizationResource(resource);
@@ -64,19 +71,21 @@ let AbstractOrganizationContextService = class AbstractOrganizationContextServic
64
71
  isCurrentOrganization(organizationIdentifier) {
65
72
  switch (this.getApplicationState()) {
66
73
  case 2 /* ApplicationState.RESOURCE */:
67
- return (0, helpers_1.isSingleResourceOrganizationIdentifier)(organizationIdentifier) && (0, resources_1.isEqual)(organizationIdentifier, this.organizationContext.resources[0].uri);
74
+ return ((0, helpers_1.isSingleResourceOrganizationIdentifier)(organizationIdentifier) &&
75
+ (0, resources_1.isEqual)(organizationIdentifier, this._organizationContext.resources[0].uri));
68
76
  case 3 /* ApplicationState.ORGANIZATION */:
69
- return (0, helpers_1.isOrganizationIdentifier)(organizationIdentifier) && this.organizationContext.id === organizationIdentifier.id;
77
+ return ((0, helpers_1.isOrganizationIdentifier)(organizationIdentifier) &&
78
+ this._organizationContext.id === organizationIdentifier.id);
70
79
  }
71
80
  return false;
72
81
  }
73
82
  extAcceptChangedApplicationState(organizationContext, event) {
74
- this.organizationContext = this.reviveOrganizationUris(organizationContext);
83
+ this._organizationContext = this.reviveOrganizationUris(organizationContext);
75
84
  this._onDidChangeApplicationState.fire(event);
76
85
  this.releaseUpdateOrganizationBarrier();
77
86
  }
78
87
  extAcceptChangedOrganizationResources(organizationContext, event) {
79
- this.organizationContext = this.reviveOrganizationUris(organizationContext);
88
+ this._organizationContext = this.reviveOrganizationUris(organizationContext);
80
89
  this._onDidChangeOrganizationResources.fire(event);
81
90
  this.releaseUpdateOrganizationBarrier();
82
91
  }
@@ -96,9 +105,10 @@ let AbstractOrganizationContextService = class AbstractOrganizationContextServic
96
105
  }
97
106
  }
98
107
  reviveOrganizationUris(organizationData) {
99
- let organizationContext, organizationResources;
108
+ let organizationContext;
109
+ let organizationResources;
100
110
  if (organizationData.resources) {
101
- organizationResources = organizationData.resources.map(({ index, uri: uriComponent, name }) => (new core_3.OrganizationResource({ index, uri: uri_1.URI.revive(uriComponent), name })));
111
+ organizationResources = organizationData.resources.map(({ index, uri: uriComponent, name }) => new core_3.OrganizationResource({ index, uri: uri_1.URI.revive(uriComponent), name }));
102
112
  }
103
113
  if (organizationData.configuration) {
104
114
  organizationContext = uri_1.URI.revive(organizationData.configuration);
@@ -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,6CAAgD;AAChD,sFAA6H;AAC7H,kCAAmF;AAMnF,0DAAgH;AAKzG,IAAe,kCAAkC,GAAjD,MAAe,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,CAA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B,IAAI,CAAC,IAAI,CAAC,yBAAyB,CAAC,MAAM,EAAE,EAAE;YAC5E,IAAI,CAAC,yBAAyB,CAAC,IAAI,EAAE,CAAC;SACzC;IACL,CAAC;IAES,sBAAsB,CAAC,gBAAmC;QAChE,IAAI,mBAAmB,EAAE,qBAAqB,CAAC;QAC/C,IAAI,gBAAgB,CAAC,SAAS,EAAE;YAC5B,qBAAqB,GAAG,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC3F,IAAI,2BAAoB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,SAAG,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,CAC3E,CAAC,CAAC;SACN;QAED,IAAI,gBAAgB,CAAC,aAAa,EAAE;YAChC,mBAAmB,GAAG,SAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;SACpE;QACD,OAAO,IAAI,0BAAmB,CAAC,gBAAgB,CAAC,EAAE,EAAE,qBAAqB,EAAE,mBAAmB,CAAC,CAAC;IACpG,CAAC;CAEJ,CAAA;AA1HqB,kCAAkC;IADvD,IAAA,sBAAU,GAAE;IAuBJ,WAAA,IAAA,kBAAM,EAAC,iBAAU,CAAC,MAAM,CAAC,CAAA;;GAtBZ,kCAAkC,CA0HvD;AA1HqB,gFAAkC"}
1
+ {"version":3,"file":"abstract-organization-context-service.js","sourceRoot":"","sources":["../../src/services/abstract-organization-context-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC,0EAAuE;AACvE,8EAAoF;AACpF,uFAAuF;AACvF,gDAAmD;AACnD,8EAAoF;AAEpF,yCAA+C;AAC/C,6CAAgD;AAChD,sFAKgE;AAChE,kCAAmF;AAYnF,0DAAgH;AAIzG,IAAe,kCAAkC,GAAjD,MAAe,kCAClB,SAAQ,iBAAU;IA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