UNPKG

@voiceflow/google-types

Version:
33 lines 1.89 kB
import type { DeepPartialByKey } from '@voiceflow/base-types'; import { VoiceflowConstants } from '@voiceflow/voiceflow-types'; import type { SupportedProjectType } from '../project'; import type { ChatPlatformData, ChatPublishing, ChatSettings, ChatVersion } from './chat'; import type { VoicePlatformData, VoicePublishing, VoiceSettings, VoiceVersion } from './voice'; export * from './base'; export * from './chat'; export * from './prototype'; export * from './voice'; export interface PlatformDataPerType { [VoiceflowConstants.ProjectType.CHAT]: ChatPlatformData; [VoiceflowConstants.ProjectType.VOICE]: VoicePlatformData; } export interface SettingsPerType { [VoiceflowConstants.ProjectType.CHAT]: ChatSettings; [VoiceflowConstants.ProjectType.VOICE]: VoiceSettings; } export interface PublishingPerType { [VoiceflowConstants.ProjectType.CHAT]: ChatPublishing; [VoiceflowConstants.ProjectType.VOICE]: VoicePublishing; } export interface VersionPerType { [VoiceflowConstants.ProjectType.CHAT]: ChatVersion; [VoiceflowConstants.ProjectType.VOICE]: VoiceVersion; } export type Version = VersionPerType[SupportedProjectType]; export type Settings = SettingsPerType[SupportedProjectType]; export type Publishing = PublishingPerType[SupportedProjectType]; export type PlatformData = PlatformDataPerType[SupportedProjectType]; export declare const defaultPlatformData: <T extends SupportedProjectType>(type: T, platformData: DeepPartialByKey<PlatformDataPerType[T], 'settings' | 'publishing'>) => PlatformDataPerType[T]; export declare const defaultSettings: <T extends SupportedProjectType>(type: T, platformData: Partial<SettingsPerType[T]>) => SettingsPerType[T]; export declare const defaultPublishing: <T extends SupportedProjectType>(type: T, platformData: Partial<PublishingPerType[T]>) => PublishingPerType[T]; //# sourceMappingURL=index.d.ts.map