/* tslint:disable */ /* eslint-disable */ /** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { PresignedFile } from './PresignedFile'; import { PresignedFileFromJSON, PresignedFileFromJSONTyped, PresignedFileToJSON, PresignedFileToJSONTyped, } from './PresignedFile'; import type { AudioMetadataBlockAttributes } from './AudioMetadataBlockAttributes'; import { AudioMetadataBlockAttributesFromJSON, AudioMetadataBlockAttributesFromJSONTyped, AudioMetadataBlockAttributesToJSON, AudioMetadataBlockAttributesToJSONTyped, } from './AudioMetadataBlockAttributes'; /** * * @export * @interface AudioMetadataBlock */ export interface AudioMetadataBlock { /** * Whether the resource is infected with malware * @type {boolean} * @memberof AudioMetadataBlock */ 'infected': boolean; /** * * @type {string} * @memberof AudioMetadataBlock */ 'caption': string | null; /** * * @type {Array} * @memberof AudioMetadataBlock */ 'keywords'?: Array | null; /** * * @type {boolean} * @memberof AudioMetadataBlock */ 'voiceNote'?: boolean | null; /** * * @type {string} * @memberof AudioMetadataBlock */ 'voiceNoteTemplate'?: AudioMetadataBlockVoiceNoteTemplateEnum | null; /** * * @type {string} * @memberof AudioMetadataBlock */ 'voiceNoteText'?: string | null; /** * * @type {PresignedFile} * @memberof AudioMetadataBlock */ 'transcript': PresignedFile | null; /** * * @type {PresignedFile} * @memberof AudioMetadataBlock */ 'delivery': PresignedFile | null; /** * * @type {AudioMetadataBlockAttributes} * @memberof AudioMetadataBlock */ 'attributes': AudioMetadataBlockAttributes | null; } /** * @export */ export const AudioMetadataBlockVoiceNoteTemplateEnum = { Auto: 'auto', Meeting: 'meeting', Standup: 'standup', HiringInterview: 'hiring-interview', Journal: 'journal', UserInterview: 'user-interview', OneOnOne: 'one-on-one' } as const; export type AudioMetadataBlockVoiceNoteTemplateEnum = typeof AudioMetadataBlockVoiceNoteTemplateEnum[keyof typeof AudioMetadataBlockVoiceNoteTemplateEnum]; /** * Check if a given object implements the AudioMetadataBlock interface. */ export function instanceOfAudioMetadataBlock(value: object): value is AudioMetadataBlock { if (!('infected' in value) || value['infected'] === undefined) return false; if (!('caption' in value) || value['caption'] === undefined) return false; if (!('transcript' in value) || value['transcript'] === undefined) return false; if (!('delivery' in value) || value['delivery'] === undefined) return false; if (!('attributes' in value) || value['attributes'] === undefined) return false; return true; } export function AudioMetadataBlockFromJSON(json: any): AudioMetadataBlock { return AudioMetadataBlockFromJSONTyped(json, false); } export function AudioMetadataBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): AudioMetadataBlock { if (json == null) { return json; } const result = { } as AudioMetadataBlock; if (json['infected'] !== undefined) { result['infected'] = json['infected']; } if (json['caption'] !== undefined) { if (json['caption'] === null) { result['caption'] = null; } else { result['caption'] = json['caption']; } } if (json['keywords'] !== undefined) { if (json['keywords'] === null) { result['keywords'] = null; } else { result['keywords'] = json['keywords']; } } if (json['voiceNote'] !== undefined) { if (json['voiceNote'] === null) { result['voiceNote'] = null; } else { result['voiceNote'] = json['voiceNote']; } } if (json['voiceNoteTemplate'] !== undefined) { if (json['voiceNoteTemplate'] === null) { result['voiceNoteTemplate'] = null; } else { result['voiceNoteTemplate'] = json['voiceNoteTemplate']; } } if (json['voiceNoteText'] !== undefined) { if (json['voiceNoteText'] === null) { result['voiceNoteText'] = null; } else { result['voiceNoteText'] = json['voiceNoteText']; } } if (json['transcript'] !== undefined) { if (json['transcript'] === null) { result['transcript'] = null; } else { result['transcript'] = PresignedFileFromJSON(json['transcript']); } } if (json['delivery'] !== undefined) { if (json['delivery'] === null) { result['delivery'] = null; } else { result['delivery'] = PresignedFileFromJSON(json['delivery']); } } if (json['attributes'] !== undefined) { if (json['attributes'] === null) { result['attributes'] = null; } else { result['attributes'] = AudioMetadataBlockAttributesFromJSON(json['attributes']); } } return result; } export function AudioMetadataBlockToJSON(json: any): AudioMetadataBlock { return AudioMetadataBlockToJSONTyped(json, false); } export function AudioMetadataBlockToJSONTyped(value?: AudioMetadataBlock | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'infected': value['infected'], 'caption': value['caption'], 'keywords': value['keywords'], 'voiceNote': value['voiceNote'], 'voiceNoteTemplate': value['voiceNoteTemplate'], 'voiceNoteText': value['voiceNoteText'], 'transcript': PresignedFileToJSON(value['transcript']), 'delivery': PresignedFileToJSON(value['delivery']), 'attributes': AudioMetadataBlockAttributesToJSON(value['attributes']), }; }