UNPKG

@vectorize-io/vectorize-client

Version:
81 lines (80 loc) 2.81 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Vectorize API * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AZUREBLOBConfigFileExtensionsEnum = void 0; exports.instanceOfAZUREBLOBConfig = instanceOfAZUREBLOBConfig; exports.AZUREBLOBConfigFromJSON = AZUREBLOBConfigFromJSON; exports.AZUREBLOBConfigFromJSONTyped = AZUREBLOBConfigFromJSONTyped; exports.AZUREBLOBConfigToJSON = AZUREBLOBConfigToJSON; exports.AZUREBLOBConfigToJSONTyped = AZUREBLOBConfigToJSONTyped; /** * @export */ exports.AZUREBLOBConfigFileExtensionsEnum = { Pdf: 'pdf', Docdocxgdocodtrtfepub: 'doc,docx,gdoc,odt,rtf,epub', Pptpptxgslides: 'ppt,pptx,gslides', Xlsxlsxgsheetsods: 'xls,xlsx,gsheets,ods', Emlmsg: 'eml,msg', Txt: 'txt', Htmlhtm: 'html,htm', Md: 'md', Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif', Json: 'json', Csv: 'csv' }; /** * Check if a given object implements the AZUREBLOBConfig interface. */ function instanceOfAZUREBLOBConfig(value) { if (!('fileExtensions' in value) || value['fileExtensions'] === undefined) return false; if (!('idleTime' in value) || value['idleTime'] === undefined) return false; return true; } function AZUREBLOBConfigFromJSON(json) { return AZUREBLOBConfigFromJSONTyped(json, false); } function AZUREBLOBConfigFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'fileExtensions': json['file-extensions'], 'idleTime': json['idle-time'], 'recursive': json['recursive'] == null ? undefined : json['recursive'], 'pathPrefix': json['path-prefix'] == null ? undefined : json['path-prefix'], 'pathMetadataRegex': json['path-metadata-regex'] == null ? undefined : json['path-metadata-regex'], 'pathRegexGroupNames': json['path-regex-group-names'] == null ? undefined : json['path-regex-group-names'], }; } function AZUREBLOBConfigToJSON(json) { return AZUREBLOBConfigToJSONTyped(json, false); } function AZUREBLOBConfigToJSONTyped(value, ignoreDiscriminator) { if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; } if (value == null) { return value; } return { 'file-extensions': value['fileExtensions'], 'idle-time': value['idleTime'], 'recursive': value['recursive'], 'path-prefix': value['pathPrefix'], 'path-metadata-regex': value['pathMetadataRegex'], 'path-regex-group-names': value['pathRegexGroupNames'], }; }