UNPKG

@aptly-as/types

Version:
23 lines (22 loc) 707 B
import { AptlyPageSectionType } from '../enums/index.js'; import { AptlyBaseSchema } from './extends.js'; export type AptlyPage = AptlyPageSchema<string, string>; export interface AptlyPageSchema<ID, DATE> extends AptlyBaseSchema<ID, DATE> { slug: string; project: ID; organization: ID; summary: string; icon?: string; upsellTemplate?: ID | null; sections: AptlyPageSectionSchema<ID, any>[]; legacy?: string; image?: string; showInMenu: boolean; } export type AptlyPageSection<VALUE = any> = AptlyPageSectionSchema<string, VALUE>; export interface AptlyPageSectionSchema<ID, VALUE> { _id: ID; name: string; type: AptlyPageSectionType; value: VALUE; }