UNPKG

contensis-management-api

Version:

Client for managing content using the Contensis Management API

17 lines (16 loc) 871 B
import { ContensisClient, ICreateNode, INodeOperations, IUpdateNode, Node, NodeGetChildrenOptions } from '../models'; import { IHttpClient } from 'contensis-core-api'; export declare class NodeOperations implements INodeOperations { private httpClient; private contensisClient; constructor(httpClient: IHttpClient, contensisClient: ContensisClient); getRoot(): Promise<Node>; get(id: string): Promise<Node>; getByEntryId(entryId: string): Promise<Node[]>; getChildren(idOrOptions: string | NodeGetChildrenOptions): Promise<Node[]>; create(node: ICreateNode): Promise<Node>; update(node: IUpdateNode): Promise<Node>; delete(id: string): Promise<void>; setChildrenOrder(id: string, childrenIds: string[], language?: string): Promise<void>; deleteChildrenOrder(id: string, language?: string): Promise<void>; }