kentico-cloud-delivery
Version:
Official Kentico Cloud Delivery SDK
24 lines (23 loc) • 1.12 kB
TypeScript
import { Observable } from 'rxjs';
import { IDeliveryClientConfig } from '../../config';
import { ICloudResponse, IElementQueryConfig, IHeader } from '../../interfaces';
import { ElementResponses } from '../../models';
import { QueryService } from '../../services';
import { BaseQuery } from '../common/base-query.class';
export declare abstract class BaseElementQuery<TResponse extends ICloudResponse> extends BaseQuery<TResponse> {
protected config: IDeliveryClientConfig;
protected queryService: QueryService;
protected _queryConfig: IElementQueryConfig;
constructor(config: IDeliveryClientConfig, queryService: QueryService);
/**
* Use to configure query
* @param queryConfig Query configuration
*/
queryConfig(queryConfig: IElementQueryConfig): this;
/**
* Gets headers used by this query
*/
getHeaders(): IHeader[];
protected getElementQueryUrl(typeCodename: string, elementCodename: string): string;
protected runElementQuery(typeCodename: string, elementCodename: string): Observable<ElementResponses.ElementResponse>;
}