From a8cc1703716e1cf31e7a3884323e3f36140910a7 Mon Sep 17 00:00:00 2001 From: Dominik Meissner <46422208+dominik-meissner@users.noreply.github.com> Date: Thu, 13 Apr 2023 12:57:25 +0200 Subject: [PATCH 1/2] Added CanFulfillRequest and CanFulfillSlot to Response --- .../jovo-platform-alexa/src/core/AlexaResponse.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jovo-platforms/jovo-platform-alexa/src/core/AlexaResponse.ts b/jovo-platforms/jovo-platform-alexa/src/core/AlexaResponse.ts index 0325cef91a..4bcdbcf565 100644 --- a/jovo-platforms/jovo-platform-alexa/src/core/AlexaResponse.ts +++ b/jovo-platforms/jovo-platform-alexa/src/core/AlexaResponse.ts @@ -25,9 +25,18 @@ export interface DynamicEntityType { }>; } +type YES_NO_MAYBE = 'YES' | 'NO' | 'MAYBE'; + +interface CanFulfillSlotEntry { + canUnderstand: YES_NO_MAYBE, + canCullFill: YES_NO_MAYBE, +} + export interface Response { shouldEndSession?: boolean; directives?: Directive[]; + CanFulfillRequest?: YES_NO_MAYBE; + CanFulfillSlot?: Record; } export interface AlexaResponseJSON { From 3e508571a6654e3bb0eb786c16f3cbc5a61f414f Mon Sep 17 00:00:00 2001 From: Dominik Meissner <46422208+dominik-meissner@users.noreply.github.com> Date: Wed, 5 Jul 2023 08:52:14 +0200 Subject: [PATCH 2/2] Update AlexaResponse.ts removed another typo --- jovo-platforms/jovo-platform-alexa/src/core/AlexaResponse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jovo-platforms/jovo-platform-alexa/src/core/AlexaResponse.ts b/jovo-platforms/jovo-platform-alexa/src/core/AlexaResponse.ts index 4bcdbcf565..d8c83c7e26 100644 --- a/jovo-platforms/jovo-platform-alexa/src/core/AlexaResponse.ts +++ b/jovo-platforms/jovo-platform-alexa/src/core/AlexaResponse.ts @@ -29,7 +29,7 @@ type YES_NO_MAYBE = 'YES' | 'NO' | 'MAYBE'; interface CanFulfillSlotEntry { canUnderstand: YES_NO_MAYBE, - canCullFill: YES_NO_MAYBE, + canFulFill: YES_NO_MAYBE, } export interface Response {