[ACS-6630] Moved ExtensionComposition and ExtensionCompositionEntry components from js-api to core.

This commit is contained in:
swapnil.verma
2024-05-06 11:38:15 +05:30
parent 6d201b108f
commit d8e562e6b2
9 changed files with 15 additions and 40 deletions

View File

@@ -0,0 +1,22 @@
/*!
* @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 class AppConfigPluginRef {
plugins: {
[key: string]: boolean;
} = {};
}

View File

@@ -0,0 +1,22 @@
/*!
* @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 './extension-composition';
export class ExtensionCompositionEntry {
entry: ExtensionComposition;
}

View File

@@ -0,0 +1,29 @@
/*!
* @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 './app-config-plugin-ref';
import { RouteRef, RuleRef, ActionRef } from '@alfresco/adf-extensions';
export class ExtensionComposition {
appConfig: AppConfigPluginRef = new AppConfigPluginRef();
rules?: Array<RuleRef> = [];
routes?: Array<RouteRef> = [];
actions?: Array<ActionRef> = [];
features?: {
[key: string]: any;
} = {};
}

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { ActionRef, RouteRef, RuleRef } from '@alfresco/js-api';
import { ActionRef, RouteRef, RuleRef } from '@alfresco/adf-extensions';
export class ExtensionInfoModel {
$id: string;

View File

@@ -18,9 +18,12 @@
import { Injectable } from '@angular/core';
import { AlfrescoApiService } from './alfresco-api.service';
import { from, Observable } from 'rxjs';
import { AppConfigPluginRef, SettingsApi, ExtensionCompositionEntry, ExtensionComposition } from '@alfresco/js-api';
import { SettingsApi } from '@alfresco/js-api';
import { HttpClient } from '@angular/common/http';
import { ExtensionInfoModel } from '../models';
import { ExtensionCompositionEntry } from '../models/extension-composition-entry';
import { AppConfigPluginRef } from '../models/app-config-plugin-ref';
import { ExtensionComposition } from '../models/extension-composition';
@Injectable({
providedIn: 'root'