/* tslint:disable */ /* eslint-disable */ /** * Tuix MCP Host API * Service managing MCP servers for Tuix applications. * * The version of the OpenAPI document: 0.0.1 * * * 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 { ApplicationWithApplicationCountDTO } from './ApplicationWithApplicationCountDTO'; import { ApplicationWithApplicationCountDTOFromJSON, ApplicationWithApplicationCountDTOFromJSONTyped, ApplicationWithApplicationCountDTOToJSON, ApplicationWithApplicationCountDTOToJSONTyped, } from './ApplicationWithApplicationCountDTO'; /** * * @export * @interface PaginatedApplicationsDTO */ export interface PaginatedApplicationsDTO { /** * * @type {Array} * @memberof PaginatedApplicationsDTO */ items: Array; /** * * @type {number} * @memberof PaginatedApplicationsDTO */ page: number; /** * * @type {number} * @memberof PaginatedApplicationsDTO */ pageSize: number; /** * * @type {number} * @memberof PaginatedApplicationsDTO */ totalItems: number; /** * * @type {number} * @memberof PaginatedApplicationsDTO */ totalPages: number; } /** * Check if a given object implements the PaginatedApplicationsDTO interface. */ export function instanceOfPaginatedApplicationsDTO(value: object): value is PaginatedApplicationsDTO { if (!('items' in value) || value['items'] === undefined) return false; if (!('page' in value) || value['page'] === undefined) return false; if (!('pageSize' in value) || value['pageSize'] === undefined) return false; if (!('totalItems' in value) || value['totalItems'] === undefined) return false; if (!('totalPages' in value) || value['totalPages'] === undefined) return false; return true; } export function PaginatedApplicationsDTOFromJSON(json: any): PaginatedApplicationsDTO { return PaginatedApplicationsDTOFromJSONTyped(json, false); } export function PaginatedApplicationsDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedApplicationsDTO { if (json == null) { return json; } return { 'items': ((json['items'] as Array).map(ApplicationWithApplicationCountDTOFromJSON)), 'page': json['page'], 'pageSize': json['pageSize'], 'totalItems': json['totalItems'], 'totalPages': json['totalPages'], }; } export function PaginatedApplicationsDTOToJSON(json: any): PaginatedApplicationsDTO { return PaginatedApplicationsDTOToJSONTyped(json, false); } export function PaginatedApplicationsDTOToJSONTyped(value?: PaginatedApplicationsDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'items': ((value['items'] as Array).map(ApplicationWithApplicationCountDTOToJSON)), 'page': value['page'], 'pageSize': value['pageSize'], 'totalItems': value['totalItems'], 'totalPages': value['totalPages'], }; }