feat: move api to follow second entry point structure

This commit is contained in:
Mikolaj Serwicki
2022-09-21 22:55:32 +00:00
committed by Amedeo Lepore
parent 44bfef764c
commit 492f145665
21 changed files with 15 additions and 27 deletions

3
lib/core/api/README.md Normal file
View File

@@ -0,0 +1,3 @@
# @alfresco/adf-core/api
Secondary entry point of `@alfresco/adf-core`. It can be used by importing from `@alfresco/adf-core/api`.

View File

@@ -1,6 +1,5 @@
{
"$schema": "../../../../../node_modules/ng-packagr/ng-package.schema.json",
"lib": {
"entryFile": "public-api.ts"
"entryFile": "src/index.ts"
}
}

View File

@@ -1,22 +0,0 @@
/*!
* @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.
*/
export * from './api-client.factory';
export * from './api-clients.service';
export * from './clients';
export * from './types';
export * from './alfresco-api/alfresco-api.http-client';

View File

@@ -15,5 +15,8 @@
* limitations under the License.
*/
export * from './public-api';
export * from './lib/api-client.factory';
export * from './lib/api-clients.service';
export * from './lib/clients';
export * from './lib/types';
export * from './lib/alfresco-api/alfresco-api.http-client';

View File

@@ -15,6 +15,7 @@
* limitations under the License.
*/
import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { ApiClientsService } from '../api-clients.service';
import { ActivitiClientModule } from './activiti/activiti-client.module';
@@ -22,6 +23,11 @@ import { DiscoveryClientModule } from './discovery/discovery-client.module';
@NgModule({
imports: [
HttpClientModule,
HttpClientXsrfModule.withOptions({
cookieName: 'CSRF-TOKEN',
headerName: 'X-CSRF-TOKEN'
}),
ActivitiClientModule,
DiscoveryClientModule
],

View File

@@ -18,4 +18,3 @@
export * from './activiti/activiti-client.types';
export * from './alfresco-js-clients.module';
export * from './discovery/discovery-client.types';