Repository URL to install this package:
|
Version:
9.0.35-framework ▾
|
import { LabelValue } from './typings';
declare const transformMarketingPage: (response: {
page: unknown;
}) => {
index: number;
pageId: any;
pageName: any;
layoutType: any;
dimensions: {};
gridLayout: {};
views: {
cellId: string;
widget: {
componentName: string;
properties: LabelValue[];
items: {
facets: LabelValue[];
}[];
widgetId: string;
pageId: string;
widgetType: string;
widgetName: string;
};
}[];
facets: {};
};
declare const transformPreview: (viewId: any, page: any) => {
index: any;
pageId: any;
pageName: any;
layoutType: any;
dimensions: any;
gridLayout: any;
views: {
cellId: string;
widget: {
componentName: string;
properties: LabelValue[];
items: {
facets: LabelValue[];
}[];
widgetId: string;
pageId: string;
widgetType: string;
widgetName: string;
};
}[];
facets: any;
};
/**
* 1. go through all the pages
* 2. `if` we are looking for a number, find the page at that index
* @example { [1]: }
* `else` we are looking for a path
* @example pages[1].pageName === pageIdOrPathName
*/
declare const transformHasStudioPage: (response: {
model: unknown;
}, pageIdOrPathName: string | number) => {
hasPage: boolean;
pageId: number;
};
export { transformMarketingPage, transformHasStudioPage, transformPreview };