UNPKG

intentful

Version:

Create Custom Skills with less headache

30 lines (29 loc) 1.21 kB
import { interfaces } from 'ask-sdk-model'; import { APLABaseComponentModel, APLABaseComponentProps, APLAComponent } from './components'; import { APLAResourcesProps } from './interfaces'; import { ModelProvider } from '../'; export interface APLADocumentModel { type?: string; version?: string; description?: string; resources?: APLAResourcesProps[]; mainTemplate: { parameters: string[]; items: APLAComponent<APLABaseComponentModel, APLABaseComponentProps>[]; }; } export interface APLADocumentProps { documentName: string; description?: string; resources?: APLAResourcesProps[]; items: APLAComponent<APLABaseComponentModel, APLABaseComponentProps>[]; } export declare class APLADocument implements ModelProvider<APLADocumentModel> { readonly props: APLADocumentProps; constructor(props: APLADocumentProps); getDirective(additionalData?: unknown): interfaces.alexa.presentation.apla.RenderDocumentDirective; getFullDirective(additionalData?: unknown): interfaces.alexa.presentation.apla.RenderDocumentDirective; toJSON(): APLADocumentModel; model(): APLADocumentModel; writeToFile(baseSkillPackagePath?: string): void; }