/* tslint:disable */ /* eslint-disable */ /** * Tandoor * Tandoor API Docs * * The version of the OpenAPI document: 0.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 { Space } from './Space'; import { SpaceFromJSON, SpaceFromJSONTyped, SpaceToJSON, } from './Space'; /** * * @export * @interface PaginatedSpaceList */ export interface PaginatedSpaceList { /** * * @type {number} * @memberof PaginatedSpaceList */ count: number; /** * * @type {string} * @memberof PaginatedSpaceList */ next?: string | null; /** * * @type {string} * @memberof PaginatedSpaceList */ previous?: string | null; /** * * @type {Array} * @memberof PaginatedSpaceList */ results: Array; } /** * Check if a given object implements the PaginatedSpaceList interface. */ export function instanceOfPaginatedSpaceList(value: object): value is PaginatedSpaceList { if (!('count' in value) || value['count'] === undefined) return false; if (!('results' in value) || value['results'] === undefined) return false; return true; } export function PaginatedSpaceListFromJSON(json: any): PaginatedSpaceList { return PaginatedSpaceListFromJSONTyped(json, false); } export function PaginatedSpaceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSpaceList { if (json == null) { return json; } return { 'count': json['count'], 'next': json['next'] == null ? undefined : json['next'], 'previous': json['previous'] == null ? undefined : json['previous'], 'results': ((json['results'] as Array).map(SpaceFromJSON)), }; } export function PaginatedSpaceListToJSON(value?: PaginatedSpaceList | null): any { if (value == null) { return value; } return { 'count': value['count'], 'next': value['next'], 'previous': value['previous'], 'results': ((value['results'] as Array).map(SpaceToJSON)), }; } // ---------------------------------------------------------------------- // Custom model functions added by custom openapi-generator template // ---------------------------------------------------------------------- import {ApiApi, ApiPaginatedSpaceListListRequest, PaginatedPaginatedSpaceListList} from "@/openapi"; /** * query list endpoint using the provided request parameters */ export function list(requestParameters: ApiPaginatedSpaceListListRequest = {}): Promise { const api = new ApiApi() return api.apiPaginatedSpaceListList(requestParameters) }