From e85bdb0026aa95bae9417755c4865a7083923307 Mon Sep 17 00:00:00 2001 From: Joshua Sadlowski Date: Tue, 9 Jan 2024 09:45:09 +0100 Subject: [PATCH] :sparkles: Add alexa name-free interaction support --- packages/jovo-model-alexa/src/JovoModelAlexa.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/jovo-model-alexa/src/JovoModelAlexa.ts b/packages/jovo-model-alexa/src/JovoModelAlexa.ts index 43e5da0..785d4e8 100644 --- a/packages/jovo-model-alexa/src/JovoModelAlexa.ts +++ b/packages/jovo-model-alexa/src/JovoModelAlexa.ts @@ -330,6 +330,15 @@ export class JovoModelAlexa extends JovoModel { _set(alexaModel, 'interactionModel.dialog', _get(model, 'alexa.interactionModel.dialog')); } + // name-free interaction + if (_get(model, 'alexa.interactionModel._nameFreeInteraction')) { + _set( + alexaModel, + 'interactionModel._nameFreeInteraction', + _get(model, 'alexa.interactionModel._nameFreeInteraction') + ); + } + // types if (JovoModelHelper.hasEntityTypes(model)) { const entityTypes = JovoModelHelper.getEntityTypes(model);