UNPKG

kentico-cloud-delivery

Version:

Official Kentico Cloud Delivery SDK

49 lines (48 loc) 1.43 kB
import { IHeader, IQueryParameter } from 'kentico-cloud-core'; export interface IProxyUrlData { action: string; domain: string; queryParameters: IQueryParameter[]; queryString: string; queryConfig: IQueryConfig; projectId: string; } export interface ICloudResponseDebug { response: any; } export interface ISDKInfo { /** * Name of SDK */ name: string; /** * Version SDK */ version: string; /** * Host of SDK */ host: string; } export interface ICloudResponse { debug: ICloudResponseDebug; } export interface IQueryConfig { /** * Indicates if query should use preview mode. Overrides global settings of Delivery Client */ usePreviewMode?: boolean; /** * Indicates if query should use secured delivery API mode. Overrides global settings of Delivery Client */ useSecuredMode?: boolean; /** * If the requested content has changed since the last request, the header determines whether * to wait while fetching content. This can be useful when retrieving changed content * in reaction to a webhook call. By default, when the header is not set, the API * serves old content (if cached by the CDN) while it's fetching the new content * to minimize wait time. */ waitForLoadingNewContent?: boolean; customHeaders?: IHeader[]; }