@spartacus/core
Version:
Spartacus - the core framework
33 lines (32 loc) • 1.58 kB
TypeScript
import { CmsStructureModel, Page } from '../../../../cms/model/page.model';
import { Converter } from '../../../../util/converter.service';
import { Occ } from '../../../occ-models/occ.models';
import * as i0 from "@angular/core";
export declare class OccCmsPageNormalizer implements Converter<Occ.CMSPage, CmsStructureModel> {
convert(source: Occ.CMSPage, target?: CmsStructureModel): CmsStructureModel;
/**
* Converts the OCC cms page model to the `Page` in the `CmsStructureModel`.
*/
protected normalizePageData(source: Occ.CMSPage, target: CmsStructureModel): void;
/**
* Adds a ContentSlotData for each page slot in the `CmsStructureModel`.
*/
protected normalizePageSlotData(source: Occ.CMSPage, target: CmsStructureModel): void;
/**
* Registers the `ContentSlotComponentData` for each component.
*/
protected normalizePageComponentData(source: Occ.CMSPage, target: CmsStructureModel): void;
/**
* Adds the actual component data whenever available in the CMS page data.
*
* If the data is not populated in this payload, it is loaded separately
* (`OccCmsComponentAdapter`).
*/
protected normalizeComponentData(source: Occ.CMSPage, target: CmsStructureModel): void;
/**
* Normalizes the page robot string to an array of `PageRobotsMeta` items.
*/
protected normalizeRobots(source: Occ.CMSPage, target: Page): void;
static ɵfac: i0.ɵɵFactoryDeclaration<OccCmsPageNormalizer, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<OccCmsPageNormalizer>;
}