/* tslint:disable */ /* eslint-disable */ /** * openfilz-api * API for Document Management System * * 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. */ /** * Documents matching all provided criteria will be returned */ export interface SearchByMetadataRequest { /** * Optional : Name of the file - if not provided or null : search all file names */ 'name'?: string; /** * Optional : Type of the document to search - if not provided or null : search all types */ 'type'?: SearchByMetadataRequestTypeEnum; /** * Optional : UUID of the parent folder to search - if not provided or null : search in all folders */ 'parentFolderId'?: string; /** * Optional : if true : search only at the root level - if not provided or null : search in all folders */ 'rootOnly'?: boolean; /** * Metadata key-value pairs to search for. A string value containing % or * is a case-insensitive pattern: % or * = any characters, ? = exactly one character, _ and \\ are literal, a bare % = the key is set whatever its value (e.g. {\"project\": \"beta%\"}). Any other value is matched exactly (case-sensitive). At most 10 criteria, keys up to 100 characters, patterns up to 200. */ 'metadataCriteria'?: { [key: string]: any; }; } export const SearchByMetadataRequestTypeEnum = { File: 'FILE', Folder: 'FOLDER', } as const; export type SearchByMetadataRequestTypeEnum = typeof SearchByMetadataRequestTypeEnum[keyof typeof SearchByMetadataRequestTypeEnum];