/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * 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 SearchPagesRequest */ export interface SearchPagesRequest { /** * * @type {string} * @memberof SearchPagesRequest */ search?: string | null; /** * * @type {string} * @memberof SearchPagesRequest */ sortBy?: SearchPagesRequestSortByEnum; /** * * @type {string} * @memberof SearchPagesRequest */ sortDirection?: SearchPagesRequestSortDirectionEnum; /** * * @type {number} * @memberof SearchPagesRequest */ perPage?: number; /** * * @type {number} * @memberof SearchPagesRequest */ page?: number; /** * * @type {Array} * @memberof SearchPagesRequest */ siteId?: Array; /** * * @type {Array} * @memberof SearchPagesRequest */ type?: Array; /** * * @type {Array} * @memberof SearchPagesRequest */ enabled?: Array; /** * * @type {number} * @memberof SearchPagesRequest */ relatedId?: number; /** * * @type {string} * @memberof SearchPagesRequest */ relatedType?: SearchPagesRequestRelatedTypeEnum; /** * * @type {boolean} * @memberof SearchPagesRequest */ includesRelations?: boolean; } /** * @export */ export const SearchPagesRequestSortByEnum = { Id: 'id', Name: 'name', StartDate: 'start_date', UpdatedAt: 'updated_at', CreatedAt: 'created_at' } as const; export type SearchPagesRequestSortByEnum = typeof SearchPagesRequestSortByEnum[keyof typeof SearchPagesRequestSortByEnum]; /** * @export */ export const SearchPagesRequestSortDirectionEnum = { Asc: 'asc', Desc: 'desc' } as const; export type SearchPagesRequestSortDirectionEnum = typeof SearchPagesRequestSortDirectionEnum[keyof typeof SearchPagesRequestSortDirectionEnum]; /** * @export */ export const SearchPagesRequestRelatedTypeEnum = { BlogCategory: 'blogCategory' } as const; export type SearchPagesRequestRelatedTypeEnum = typeof SearchPagesRequestRelatedTypeEnum[keyof typeof SearchPagesRequestRelatedTypeEnum]; /** * Check if a given object implements the SearchPagesRequest interface. */ export function instanceOfSearchPagesRequest(value: object): value is SearchPagesRequest { return true; } export function SearchPagesRequestFromJSON(json: any): SearchPagesRequest { return SearchPagesRequestFromJSONTyped(json, false); } export function SearchPagesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchPagesRequest { if (json == null) { return json; } return { 'search': json['search'] == null ? undefined : json['search'], 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'], 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'], 'perPage': json['per_page'] == null ? undefined : json['per_page'], 'page': json['page'] == null ? undefined : json['page'], 'siteId': json['site_id'] == null ? undefined : json['site_id'], 'type': json['type'] == null ? undefined : json['type'], 'enabled': json['enabled'] == null ? undefined : json['enabled'], 'relatedId': json['related_id'] == null ? undefined : json['related_id'], 'relatedType': json['related_type'] == null ? undefined : json['related_type'], 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'], }; } export function SearchPagesRequestToJSON(json: any): SearchPagesRequest { return SearchPagesRequestToJSONTyped(json, false); } export function SearchPagesRequestToJSONTyped(value?: SearchPagesRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'search': value['search'], 'sortBy': value['sortBy'], 'sortDirection': value['sortDirection'], 'per_page': value['perPage'], 'page': value['page'], 'site_id': value['siteId'], 'type': value['type'], 'enabled': value['enabled'], 'related_id': value['relatedId'], 'related_type': value['relatedType'], 'includes_relations': value['includesRelations'], }; }