@voiceflow/alexa-types
Version:
Alexa service types
21 lines (20 loc) • 847 B
JavaScript
import { Voice } from '../constants/index.js';
import { VoiceVersion } from '@voiceflow/voice-types';
import { defaultPublishing } from './publishing.js';
import { defaultSettings } from './settings.js';
export * from './prototype.js';
export * from './publishing.js';
export * from './settings.js';
// shared only across voiceflow types
export var Stage;
(function (Stage) {
Stage["DEV"] = "DEV";
Stage["LIVE"] = "LIVE";
Stage["REVIEW"] = "REVIEW";
})(Stage || (Stage = {}));
export const defaultPlatformData = ({ status: { stage = Stage.DEV } = { stage: Stage.DEV }, settings, publishing, ...generalVersionData }) => ({
...VoiceVersion.defaultPlatformData(generalVersionData, { defaultPromptVoice: Voice.ALEXA }),
status: { stage },
settings: defaultSettings(settings),
publishing: defaultPublishing(publishing),
});