@kontent-ai/delivery-sdk
Version:
Official Kontent.AI Delivery API SDK
17 lines (16 loc) • 1.08 kB
TypeScript
import { Contracts } from '../../contracts';
import { IDeliveryClientConfig } from '../../config';
import { Responses, IElementQueryConfig, IDeliveryNetworkResponse, ClientTypes } from '../../models';
import { QueryService } from '../../services';
import { BaseQuery } from '../common/base-query.class';
export declare class ElementQuery<TClientTypes extends ClientTypes> extends BaseQuery<TClientTypes, Responses.IViewContentTypeElementResponse, IElementQueryConfig, Contracts.IViewContentTypeElementContract> {
protected config: IDeliveryClientConfig;
protected queryService: QueryService<TClientTypes>;
private typeCodename;
private elementCodename;
protected _queryConfig: IElementQueryConfig;
constructor(config: IDeliveryClientConfig, queryService: QueryService<TClientTypes>, typeCodename: string, elementCodename: string);
toPromise(): Promise<IDeliveryNetworkResponse<Responses.IViewContentTypeElementResponse, Contracts.IViewContentTypeElementContract>>;
getUrl(): string;
map(json: any): Responses.IViewContentTypeElementResponse;
}