UNPKG

intentful

Version:

Create Custom Skills with less headache

79 lines (78 loc) 3.61 kB
import { LabeledRequestHandler } from '../../../../skill/models'; import { Calculable } from '../../../../types'; import { Command, CommandModel, CommandProps } from '../../../commands'; import { Source, VideoSourceProps, Color } from '../../../interfaces'; import { APLBaseComponentModel, APLBaseComponentProps, APLComponent } from '../../component'; export interface AlexaPaginatedListItemModel { primaryText?: Calculable<string>; secondaryText?: Calculable<string>; tertiaryText?: Calculable<string>; imageSource?: Source; primaryAction?: Command<CommandModel, CommandProps>; } export interface AlexaPaginatedListItemProps { primaryText?: Calculable<string>; secondaryText?: Calculable<string>; tertiaryText?: Calculable<string>; imageSource?: Source; primaryAction?: Command<CommandModel, CommandProps>; } export interface AlexaPaginatedListsModel extends APLBaseComponentModel { backgroundAlign?: Calculable<string>; backgroundBlur?: Calculable<boolean>; backgroundColor?: Calculable<Color>; backgroundColorOverlay?: Calculable<boolean>; backgroundImageSource?: Source; backgroundScale?: Calculable<string>; backgroundOverlayGradient?: Calculable<boolean>; backgroundVideoAudioTrack?: Calculable<string>; backgroundVideoAutoPlay?: Calculable<boolean>; backgroundVideoSource?: VideoSourceProps; headerAttributionImage?: Calculable<string>; headerAttributionOpacity?: Calculable<number>; headerAttributionPrimacy?: Calculable<boolean>; headerAttributionText?: Calculable<string>; headerBackButton?: Calculable<boolean>; headerBackButtonAccessibilityLabel?: Calculable<string>; headerBackButtonCommand?: Command<CommandModel, CommandProps>; headerBackgroundColor?: Calculable<Color>; headerDivider?: Calculable<boolean>; headerSubtitle?: Calculable<string>; headerTitle?: Calculable<string>; listId?: Calculable<string>; listItems?: AlexaPaginatedListItemModel[]; primaryAction?: Command<CommandModel, CommandProps>; speechItems?: string[]; } export interface AlexaPaginatedListsProps extends APLBaseComponentProps { backgroundAlign?: Calculable<string>; backgroundBlur?: Calculable<boolean>; backgroundColor?: Calculable<Color>; backgroundColorOverlay?: Calculable<boolean>; backgroundImageSource?: Source; backgroundScale?: Calculable<string>; backgroundOverlayGradient?: Calculable<boolean>; backgroundVideoAudioTrack?: Calculable<string>; backgroundVideoAutoPlay?: Calculable<boolean>; backgroundVideoSource?: VideoSourceProps; headerAttributionImage?: Calculable<string>; headerAttributionOpacity?: Calculable<number>; headerAttributionPrimacy?: Calculable<boolean>; headerAttributionText?: Calculable<string>; headerBackButton?: Calculable<boolean>; headerBackButtonAccessibilityLabel?: Calculable<string>; headerBackButtonCommand?: Command<CommandModel, CommandProps>; headerBackgroundColor?: Calculable<Color>; headerDivider?: Calculable<boolean>; headerSubtitle?: Calculable<string>; headerTitle?: Calculable<string>; listId?: Calculable<string>; listItems?: AlexaPaginatedListItemProps[]; primaryAction?: Command<CommandModel, CommandProps>; speechItems?: string[]; } export declare class AlexaPaginatedLists extends APLComponent<AlexaPaginatedListsModel, AlexaPaginatedListsProps> { constructor(props: AlexaPaginatedListsProps); componentSpecificModel(): AlexaPaginatedListsModel; componentSpecificRequestHandlers(): LabeledRequestHandler[]; }