UNPKG

@kontent-ai/management-sdk

Version:
26 lines (20 loc) 839 B
import { IHeader, IHttpCancelRequestToken } from '@kontent-ai/core-sdk'; import { ResponseType } from 'axios'; import { BaseResponses } from '../responses/base-responses'; export interface IContentManagementQueryConfig { headers: IHeader[]; cancelTokenRequest?: IHttpCancelRequestToken<any>; } export interface IContentManagementInternalQueryConfig { responseType?: ResponseType; } export interface IContentManagementListQueryConfig<TResponse extends BaseResponses.IContentManagementListResponse> { /** * Delay between each HTTP requests. Helps being rate limited by number of calls towards CM API. */ delayBetweenRequests?: number; /** * Executed when a list response is loaded */ responseFetched?: (response: TResponse, continuationToken?: string) => void; }