mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
[ACS-6630] Moved ExtensionComposition and ExtensionCompositionEntry components from js-api to core.
This commit is contained in:
@@ -17,8 +17,7 @@
|
||||
|
||||
import { BaseApi } from './base.api';
|
||||
import { throwIfNotDefined } from '../../../assert';
|
||||
import { ExtensionComposition } from '../model/extensionComposition';
|
||||
import { ExtensionCompositionEntry } from '../model/extensionCompositionEntry';
|
||||
|
||||
export class SettingsApi extends BaseApi {
|
||||
/**
|
||||
* Gets the published extension configuration from
|
||||
@@ -27,7 +26,7 @@ export class SettingsApi extends BaseApi {
|
||||
* @param instanceId Unique ID for a running instance of ADW
|
||||
* for which configuration is to be fetched
|
||||
*/
|
||||
getSavedExtensionState(instanceId: string): Promise<ExtensionCompositionEntry> {
|
||||
getSavedExtensionState(instanceId: string): Promise<any> {
|
||||
throwIfNotDefined(instanceId, 'instanceId');
|
||||
|
||||
const pathParams = {
|
||||
@@ -49,7 +48,7 @@ export class SettingsApi extends BaseApi {
|
||||
* @param extensionConfig Extension configuration that is to
|
||||
* be saved
|
||||
*/
|
||||
publishExtensionConfig(instanceId: string, extensionConfig: ExtensionComposition): Promise<void> {
|
||||
publishExtensionConfig(instanceId: string, extensionConfig: any): Promise<void> {
|
||||
throwIfNotDefined(instanceId, 'instanceId');
|
||||
throwIfNotDefined(extensionConfig, 'extensionConfig');
|
||||
|
||||
|
@@ -1,22 +0,0 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export interface AppConfigPluginRef {
|
||||
plugins: {
|
||||
[key: string]: boolean;
|
||||
};
|
||||
}
|
@@ -1,31 +0,0 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { AppConfigPluginRef } from './appConfigPluginRef';
|
||||
import { RuleRef } from './ruleRef';
|
||||
import { RouteRef } from './routeRef';
|
||||
import { ActionRef } from './actionRef';
|
||||
|
||||
export class ExtensionComposition {
|
||||
appConfig: AppConfigPluginRef;
|
||||
rules?: Array<RuleRef> = [];
|
||||
routes?: Array<RouteRef> = [];
|
||||
actions?: Array<ActionRef> = [];
|
||||
features?: {
|
||||
[key: string]: any;
|
||||
} = {};
|
||||
}
|
@@ -1,22 +0,0 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ExtensionComposition } from './extensionComposition';
|
||||
|
||||
export class ExtensionCompositionEntry {
|
||||
entry: ExtensionComposition;
|
||||
}
|
@@ -1,22 +0,0 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ExtensionConfig } from './extensionConfig';
|
||||
|
||||
export class ExtensionConfigEntry {
|
||||
entry: ExtensionConfig;
|
||||
}
|
@@ -80,8 +80,6 @@ export * from './download-status';
|
||||
export * from './downloadBodyCreate';
|
||||
export * from './downloadEntry';
|
||||
export * from './errorError';
|
||||
export * from './extensionComposition';
|
||||
export * from './extensionCompositionEntry';
|
||||
export * from './favorite';
|
||||
export * from './favoriteBodyCreate';
|
||||
export * from './favoriteEntry';
|
||||
|
Reference in New Issue
Block a user