mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
81 lines
3.1 KiB
TypeScript
81 lines
3.1 KiB
TypeScript
/*!
|
|
* @license
|
|
* Copyright 2019 Alfresco Software, Ltd.
|
|
*
|
|
* 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 {
|
|
AuditApi,
|
|
CommentsApi,
|
|
DownloadsApi,
|
|
FavoritesApi,
|
|
GroupsApi,
|
|
NodesApi,
|
|
PeopleApi,
|
|
QueriesApi,
|
|
RatingsApi,
|
|
RenditionsApi,
|
|
SharedlinksApi,
|
|
SitesApi,
|
|
TagsApi,
|
|
TrashcanApi,
|
|
VersionsApi
|
|
} from '@alfresco/js-api';
|
|
import { NgModule } from '@angular/core';
|
|
import { ApiClientsService } from '../../api-clients.service';
|
|
|
|
declare global {
|
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
namespace Api {
|
|
interface ApiRegistry {
|
|
['ContentClient.versions']: VersionsApi;
|
|
['ContentClient.audit']: AuditApi;
|
|
['ContentClient.comments']: CommentsApi;
|
|
['ContentClient.downloads']: DownloadsApi;
|
|
['ContentClient.favorites']: FavoritesApi;
|
|
['ContentClient.groups']: GroupsApi;
|
|
['ContentClient.nodes']: NodesApi;
|
|
['ContentClient.people']: PeopleApi;
|
|
['ContentClient.queries']: QueriesApi;
|
|
['ContentClient.ratings']: RatingsApi;
|
|
['ContentClient.renditions']: RenditionsApi;
|
|
['ContentClient.sites']: SitesApi;
|
|
['ContentClient.sharedlinks']: SharedlinksApi;
|
|
['ContentClient.tags']: TagsApi;
|
|
['ContentClient.trashcan']: TrashcanApi;
|
|
}
|
|
}
|
|
}
|
|
|
|
@NgModule()
|
|
export class ContentClientModule {
|
|
constructor(private apiClientsService: ApiClientsService) {
|
|
this.apiClientsService.register('ContentClient.versions', VersionsApi);
|
|
this.apiClientsService.register('ContentClient.audit', AuditApi);
|
|
this.apiClientsService.register('ContentClient.comments', CommentsApi);
|
|
this.apiClientsService.register('ContentClient.downloads', DownloadsApi);
|
|
this.apiClientsService.register('ContentClient.favorites', FavoritesApi);
|
|
this.apiClientsService.register('ContentClient.groups', GroupsApi);
|
|
this.apiClientsService.register('ContentClient.nodes', NodesApi);
|
|
this.apiClientsService.register('ContentClient.people', PeopleApi);
|
|
this.apiClientsService.register('ContentClient.queries', QueriesApi);
|
|
this.apiClientsService.register('ContentClient.ratings', RatingsApi);
|
|
this.apiClientsService.register('ContentClient.renditions', RenditionsApi);
|
|
this.apiClientsService.register('ContentClient.sites', SitesApi);
|
|
this.apiClientsService.register('ContentClient.sharedlinks', SharedlinksApi);
|
|
this.apiClientsService.register('ContentClient.tags', TagsApi);
|
|
this.apiClientsService.register('ContentClient.trashcan', TrashcanApi);
|
|
}
|
|
}
|