/* 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 { BookmarkletImportList } from './BookmarkletImportList'; import { BookmarkletImportListFromJSON, BookmarkletImportListFromJSONTyped, BookmarkletImportListToJSON, } from './BookmarkletImportList'; /** * * @export * @interface PaginatedBookmarkletImportListList */ export interface PaginatedBookmarkletImportListList { /** * * @type {number} * @memberof PaginatedBookmarkletImportListList */ count: number; /** * * @type {string} * @memberof PaginatedBookmarkletImportListList */ next?: string | null; /** * * @type {string} * @memberof PaginatedBookmarkletImportListList */ previous?: string | null; /** * * @type {Array} * @memberof PaginatedBookmarkletImportListList */ results: Array; } /** * Check if a given object implements the PaginatedBookmarkletImportListList interface. */ export function instanceOfPaginatedBookmarkletImportListList(value: object): value is PaginatedBookmarkletImportListList { if (!('count' in value) || value['count'] === undefined) return false; if (!('results' in value) || value['results'] === undefined) return false; return true; } export function PaginatedBookmarkletImportListListFromJSON(json: any): PaginatedBookmarkletImportListList { return PaginatedBookmarkletImportListListFromJSONTyped(json, false); } export function PaginatedBookmarkletImportListListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBookmarkletImportListList { 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(BookmarkletImportListFromJSON)), }; } export function PaginatedBookmarkletImportListListToJSON(value?: PaginatedBookmarkletImportListList | null): any { if (value == null) { return value; } return { 'count': value['count'], 'next': value['next'], 'previous': value['previous'], 'results': ((value['results'] as Array).map(BookmarkletImportListToJSON)), }; } // ---------------------------------------------------------------------- // Custom model functions added by custom openapi-generator template // ---------------------------------------------------------------------- import {ApiApi, ApiPaginatedBookmarkletImportListListListRequest, PaginatedPaginatedBookmarkletImportListListList} from "@/openapi"; /** * query list endpoint using the provided request parameters */ export function list(requestParameters: ApiPaginatedBookmarkletImportListListListRequest = {}): Promise { const api = new ApiApi() return api.apiPaginatedBookmarkletImportListListList(requestParameters) }