@voiceflow/google-types
Version:
Google service types
33 lines • 1.94 kB
TypeScript
import type { DeepPartialByKey } from '@voiceflow/base-types';
import { VoiceflowConstants } from '@voiceflow/voiceflow-types';
import type { SupportedProjectType } from '../project/index.js';
import type { ChatPlatformData, ChatPublishing, ChatSettings, ChatVersion } from './chat/index.js';
import type { VoicePlatformData, VoicePublishing, VoiceSettings, VoiceVersion } from './voice/index.js';
export * from './base/index.js';
export * from './chat/index.js';
export * from './prototype.js';
export * from './voice/index.js';
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