/* 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'; /** * * @export * @interface SearchRequestAllOfAllOfFilters */ export interface SearchRequestAllOfAllOfFilters { /** * Find resources matching any of these kinds. * @type {Array} * @memberof SearchRequestAllOfAllOfFilters */ 'kinds'?: Array; /** * Find resources matching these colors. Format is [R, G, B], each in range 0..255. * @type {Array} * @memberof SearchRequestAllOfAllOfFilters */ 'color'?: Array; /** * Find resources that are direct children of any of these parent IDs. * @type {Array} * @memberof SearchRequestAllOfAllOfFilters */ 'parentIds'?: Array; /** * Find resources that are descendants of any of these ancestor IDs. * @type {Array} * @memberof SearchRequestAllOfAllOfFilters */ 'ancestorIds'?: Array; /** * Find resources tagged with any of these tag IDs. * @type {Array} * @memberof SearchRequestAllOfAllOfFilters */ 'tagIds'?: Array; /** * Find resources created by any of these users. * @type {Array} * @memberof SearchRequestAllOfAllOfFilters */ 'userIds'?: Array; /** * Find resources created after this date/time. * @type {string} * @memberof SearchRequestAllOfAllOfFilters */ 'createdAfter'?: string | null; /** * Find resources created before this date/time. * @type {string} * @memberof SearchRequestAllOfAllOfFilters */ 'createdBefore'?: string | null; } /** * @export */ export const SearchRequestAllOfAllOfFiltersKindsEnum = { Default: 'default', Image: 'image', Document: 'document', Folder: 'folder', Bookmark: 'bookmark', Highlight: 'highlight', Notepad: 'notepad', Canvas: 'canvas', Video: 'video', Audio: 'audio', Email: 'email', Person: 'person', Voicenote: 'voicenote' } as const; export type SearchRequestAllOfAllOfFiltersKindsEnum = typeof SearchRequestAllOfAllOfFiltersKindsEnum[keyof typeof SearchRequestAllOfAllOfFiltersKindsEnum]; /** * Check if a given object implements the SearchRequestAllOfAllOfFilters interface. */ export function instanceOfSearchRequestAllOfAllOfFilters(value: object): value is SearchRequestAllOfAllOfFilters { return true; } export function SearchRequestAllOfAllOfFiltersFromJSON(json: any): SearchRequestAllOfAllOfFilters { return SearchRequestAllOfAllOfFiltersFromJSONTyped(json, false); } export function SearchRequestAllOfAllOfFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchRequestAllOfAllOfFilters { if (json == null) { return json; } const result = { } as SearchRequestAllOfAllOfFilters; if (json['kinds'] !== undefined) { result['kinds'] = json['kinds']; } if (json['color'] !== undefined) { result['color'] = json['color']; } if (json['parentIds'] !== undefined) { result['parentIds'] = json['parentIds']; } if (json['ancestorIds'] !== undefined) { result['ancestorIds'] = json['ancestorIds']; } if (json['tagIds'] !== undefined) { result['tagIds'] = json['tagIds']; } if (json['userIds'] !== undefined) { result['userIds'] = json['userIds']; } if (json['createdAfter'] !== undefined) { if (json['createdAfter'] === null) { result['createdAfter'] = null; } else { result['createdAfter'] = json['createdAfter']; } } if (json['createdBefore'] !== undefined) { if (json['createdBefore'] === null) { result['createdBefore'] = null; } else { result['createdBefore'] = json['createdBefore']; } } return result; } export function SearchRequestAllOfAllOfFiltersToJSON(json: any): SearchRequestAllOfAllOfFilters { return SearchRequestAllOfAllOfFiltersToJSONTyped(json, false); } export function SearchRequestAllOfAllOfFiltersToJSONTyped(value?: SearchRequestAllOfAllOfFilters | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'kinds': value['kinds'], 'color': value['color'], 'parentIds': value['parentIds'], 'ancestorIds': value['ancestorIds'], 'tagIds': value['tagIds'], 'userIds': value['userIds'], 'createdAfter': value['createdAfter'], 'createdBefore': value['createdBefore'], }; }