UNPKG

kentico-cloud-delivery

Version:

Official Kentico Cloud Delivery SDK

29 lines (28 loc) 1.15 kB
import { ICloudResponseDebug } from '../../interfaces/common/icloud-response-debug.interface'; import { ICloudResponse } from '../../interfaces/common/icloud-response.interface'; import { Pagination } from '../common'; import { ContentType } from './content-type.class'; export declare namespace TypeResponses { class DeliveryTypeListingResponse implements ICloudResponse { types: ContentType[]; pagination: Pagination; debug: ICloudResponseDebug; /** * Response containing multiple types * @constructor * @param {IContentType[]} types - Content types * @param {Pagination} pagination - Pagination object */ constructor(types: ContentType[], pagination: Pagination, debug: ICloudResponseDebug); } class DeliveryTypeResponse implements ICloudResponse { type: ContentType; debug: ICloudResponseDebug; /** * Response containing single type * @constructor * @param {IContentType} type - Content type */ constructor(type: ContentType, debug: ICloudResponseDebug); } }