@acorel/contentful-integration
Version:
Contentful integration with SAP Composable Storefront by Acorel
30 lines (26 loc) • 643 B
text/typescript
import {Injectable} from "@angular/core";
import {Config} from "@spartacus/core";
import {CmsComponentType} from "@acorel/graphql-integration";
export abstract class ContentfulComponentConfig {
component?: CmsComponentType
}
({
providedIn: 'root',
useExisting: Config,
})
export abstract class ContentfulConfig {
contentful?: {
previewUrl: string,
backend: {
url: string;
space: string;
accessToken: string;
},
components?: {
[componentType: string]: ContentfulComponentConfig
}
};
}
declare module '@spartacus/core' {
export interface Config extends ContentfulConfig {}
}