import { IHttpService } from '@kontent-ai/core-sdk'; import { IDeliveryClientConfig } from '../config'; import { Contracts } from '../contracts'; import { Responses, IContentItem, IContentTypeQueryConfig, IGroupedNetworkResponse, IItemQueryConfig, IDeliveryNetworkResponse, ILanguagesQueryConfig, ITaxonomyQueryConfig, ISyncInitQueryConfig, ClientTypes } from '../models'; import { IKontentListAllResponse, IKontentListResponse, IListAllQueryConfig, ISDKInfo } from '../models/common/common-models'; import { BaseDeliveryQueryService } from './base-delivery-query.service'; import { IMappingService } from './mapping.service'; export declare class QueryService extends BaseDeliveryQueryService { constructor(config: IDeliveryClientConfig, httpService: IHttpService, sdkInfo: ISDKInfo, mappingService: IMappingService); /** * Gets single item from given url * @param url Url used to get single item * @param queryConfig Query configuration */ getSingleItemAsync(url: string, queryConfig: IItemQueryConfig): Promise, Contracts.IViewContentItemContract>>; /** * Gets single feed response. Might not contain all items in your environment. * @param url Url * @param queryConfig Query configuration */ getItemsFeed(url: string, queryConfig: IItemQueryConfig): Promise, Contracts.IItemsFeedContract>>; /** * Gets single used in response. Might not contain all used in references. * @param url Url * @param queryConfig Query configuration */ getUsedIn(url: string, queryConfig: IItemQueryConfig): Promise, Contracts.IUsedInItemsContract>>; /** * Gets multiple items from given url * @param url Url used to get multiple items * @param queryConfig Query configuration */ getMultipleItems(url: string, queryConfig: IItemQueryConfig): Promise, Contracts.IListContentItemsContract>>; /** * Gets single content type from given url * @param url Url used to get single type * @param queryConfig Query configuration */ getSingleType(url: string, queryConfig: IContentTypeQueryConfig): Promise, Contracts.IViewContentTypeContract>>; /** * Gets multiple content types from given url * @param url Url used to get multiple types * @param queryConfig Query configuration */ getMultipleTypes(url: string, queryConfig: IContentTypeQueryConfig): Promise, Contracts.IListContentTypeContract>>; /** * Initializes synchronization of changes in content items based on the specified parameters. After the initialization, * you'll get an X-Continuation token in the response. * Use the token to synchronize changes in the content items matching the initialization criteria. * @param url Url * @param queryConfig Query configuration */ initializeSync(url: string, queryConfig: ISyncInitQueryConfig): Promise>; /** * Retrieve a list of delta updates to recently changed content items in the specified environment. * The types of items you get is determined by the X-Continuation token you use. * @param url Url used to get multiple types * @param queryConfig Query configuration */ syncChanges(url: string, queryConfig: IContentTypeQueryConfig): Promise>; /** * Gets languages * @param url Url * @param queryConfig Query configuration */ getLanguages(url: string, queryConfig: ILanguagesQueryConfig): Promise, Contracts.IListLanguagesContract>>; /** * Gets single taxonomy from given url * @param url Url used to get single taxonomy * @param queryConfig Query configuration */ getTaxonomy(url: string, queryConfig: ITaxonomyQueryConfig): Promise, Contracts.IViewTaxonomyGroupContract>>; /** * Gets multiple taxonomies from given url * @param url Url used to get multiple taxonomies * @param queryConfig Query configuration */ getTaxonomies(url: string, queryConfig: ITaxonomyQueryConfig): Promise, Contracts.IListTaxonomyGroupsContract>>; /** * Gets single content type element from given url * @param url Url used to get single content type element * @param queryConfig Query configuration */ getElementAsync(url: string, queryConfig: ITaxonomyQueryConfig): Promise>; getListAllResponse(data: { page: number; getResponse: (nextPageUrl?: string, continuationToken?: string) => Promise>; allResponseFactory: (items: any[], responses: IDeliveryNetworkResponse[]) => IGroupedNetworkResponse; listQueryConfig?: IListAllQueryConfig; }): Promise>; private getListAllResponseInternalAsync; private sleep; }