import { Channel, ChannelsApiResponse, DraaftConfiguration, ItemsApiResponse, ItemType, ItemTypesApiResponse, WorkflowStateApiResponse } from "./types"; export default class DraaftAPI { httpclient: any; config: DraaftConfiguration; /** * Draaft API Wrapper * @param config - Draaft configuration */ constructor(config: DraaftConfiguration); get(endpoint: string, query?: any): Promise; /** * Get all channels * Info {@link https://www.draaft.io/documentation/api/beta/#channels channels} */ channelsGetAll(query: any): Promise; /** * Get one channel by id * Info {@link https://www.draaft.io/documentation/api/beta/#channels channels} */ channelsGetOne(id: number, query: any): Promise; /** * Get items list * Info {@link https://www.draaft.io/documentation/api/beta/#items items} */ itemsGetAll(query: any): Promise; /** * Get wokflow states list * Info {@link https://www.draaft.io/documentation/api/beta/#workflow workflow} */ workflowGetAll(query: any): Promise; /** * Get item types list * Info {@link https://www.draaft.io/documentation/api/beta/#types types} */ typesGetAll(query: any): Promise; /** * Get one item type by id * Info {@link https://www.draaft.io/documentation/api/beta/#types types} */ typesGetOne(id: number, query: any): Promise; }