@voiceflow/alexa-types
Version:
Alexa service types
109 lines (108 loc) • 9.12 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VoiceflowToAmazonLocaleMap = exports.AmazonToVoiceflowLocaleMap = exports.VoiceflowToAmazonSlotMap = exports.AmazonToVoiceflowSlotMap = exports.VoiceflowToAmazonIntentMap = exports.AmazonToVoiceflowIntentMap = void 0;
const voiceflow_types_1 = require("@voiceflow/voiceflow-types");
const base_1 = require("./base");
const intents_1 = require("./intents");
const slots_1 = require("./slots");
exports.AmazonToVoiceflowIntentMap = {
[]: voiceflow_types_1.VoiceflowConstants.IntentName.NO,
[]: voiceflow_types_1.VoiceflowConstants.IntentName.YES,
[]: voiceflow_types_1.VoiceflowConstants.IntentName.STOP,
[]: voiceflow_types_1.VoiceflowConstants.IntentName.NEXT,
[]: voiceflow_types_1.VoiceflowConstants.IntentName.HELP,
[]: voiceflow_types_1.VoiceflowConstants.IntentName.PAUSE,
[]: voiceflow_types_1.VoiceflowConstants.IntentName.CANCEL,
[]: voiceflow_types_1.VoiceflowConstants.IntentName.RESUME,
[]: voiceflow_types_1.VoiceflowConstants.IntentName.REPEAT,
[]: voiceflow_types_1.VoiceflowConstants.IntentName.NONE,
[]: voiceflow_types_1.VoiceflowConstants.IntentName.PREVIOUS,
[]: voiceflow_types_1.VoiceflowConstants.IntentName.START_OVER,
};
exports.VoiceflowToAmazonIntentMap = {
[]: intents_1.AmazonIntent.NO,
[]: intents_1.AmazonIntent.YES,
[]: intents_1.AmazonIntent.STOP,
[]: intents_1.AmazonIntent.NEXT,
[]: intents_1.AmazonIntent.HELP,
[]: intents_1.AmazonIntent.PAUSE,
[]: intents_1.AmazonIntent.CANCEL,
[]: intents_1.AmazonIntent.RESUME,
[]: intents_1.AmazonIntent.REPEAT,
[]: intents_1.AmazonIntent.FALLBACK,
[]: intents_1.AmazonIntent.PREVIOUS,
[]: intents_1.AmazonIntent.START_OVER,
};
exports.AmazonToVoiceflowSlotMap = {
[]: voiceflow_types_1.VoiceflowConstants.SlotType.DATETIME,
[]: voiceflow_types_1.VoiceflowConstants.SlotType.DATETIME,
[]: voiceflow_types_1.VoiceflowConstants.SlotType.NUMBER,
[]: voiceflow_types_1.VoiceflowConstants.SlotType.NUMBER,
[]: voiceflow_types_1.VoiceflowConstants.SlotType.PHONENUMBER,
[]: voiceflow_types_1.VoiceflowConstants.SlotType.NAME,
[]: voiceflow_types_1.VoiceflowConstants.SlotType.NAME,
[]: voiceflow_types_1.VoiceflowConstants.SlotType.NAME,
[]: voiceflow_types_1.VoiceflowConstants.SlotType.NAME,
[]: voiceflow_types_1.VoiceflowConstants.SlotType.NAME,
[]: voiceflow_types_1.VoiceflowConstants.SlotType.ORDINAL,
};
exports.VoiceflowToAmazonSlotMap = {
[]: slots_1.SlotType.DATE,
[]: slots_1.SlotType.NUMBER,
[]: slots_1.SlotType.PHONENUMBER,
[]: slots_1.SlotType.FIRSTNAME,
[]: slots_1.SlotType.ORDINAL,
};
exports.AmazonToVoiceflowLocaleMap = {
[]: voiceflow_types_1.VoiceflowConstants.Locale.EN_US,
[]: voiceflow_types_1.VoiceflowConstants.Locale.EN_US,
[]: voiceflow_types_1.VoiceflowConstants.Locale.EN_US,
[]: voiceflow_types_1.VoiceflowConstants.Locale.EN_US,
[]: voiceflow_types_1.VoiceflowConstants.Locale.EN_US,
[]: voiceflow_types_1.VoiceflowConstants.Locale.FR_CA,
[]: voiceflow_types_1.VoiceflowConstants.Locale.ES_ES,
[]: voiceflow_types_1.VoiceflowConstants.Locale.FR_FR,
[]: voiceflow_types_1.VoiceflowConstants.Locale.DE_DE,
[]: voiceflow_types_1.VoiceflowConstants.Locale.IT_IT,
[]: voiceflow_types_1.VoiceflowConstants.Locale.JA_JP,
[]: voiceflow_types_1.VoiceflowConstants.Locale.ES_ES,
[]: voiceflow_types_1.VoiceflowConstants.Locale.ES_MX,
[]: voiceflow_types_1.VoiceflowConstants.Locale.PT_BR,
[]: voiceflow_types_1.VoiceflowConstants.Locale.HI_IN,
};
exports.VoiceflowToAmazonLocaleMap = {
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.DE_DE,
[]: base_1.Locale.EN_US,
[]: base_1.Locale.ES_ES,
[]: base_1.Locale.ES_MX,
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.FR_CA,
[]: base_1.Locale.FR_FR,
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.HI_IN,
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.IT_IT,
[]: base_1.Locale.JA_JP,
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.PT_BR,
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
[]: base_1.Locale.EN_US, // FIXME: Unsupported language by Alexa
};