Add Resolutions to SlotValue

Add the necessary interfaces to describe the structure for Alexa Entity Resolution.
This commit is contained in:
Sai Kiran Vadlamudi
2017-08-24 17:49:24 -04:00
committed by GitHub
parent 6839a99461
commit 6738d66ea6

View File

@@ -98,10 +98,34 @@ export interface Request {
locale?: string;
}
export interface ResolutionStatus {
code: String
}
export interface ResolutionValue {
name: String,
id: String
}
export interface ResolutionValueContainer {
value: ResolutionValue
}
export interface Resolution {
authority: String,
status: ResolutionStatus,
values: Array<ResolutionValueContainer>
}
export interface Resolutions {
resolutionsPerAuthority: Array<Resolution>
}
export interface SlotValue {
confirmationStatus?: ConfirmationStatuses;
name: string;
value?: any;
resolutions?: Resolutions
}
export interface Intent {