UNPKG

dc-management-sdk-js

Version:
35 lines (34 loc) 1.16 kB
import { HalResource } from '../hal/models/HalResource'; import { HierarchyNodeModel, HierarchyNode } from './HierarchyNode'; import { ContentItemPublishingStatus } from './PublishingStatus'; import { ContentItem } from './ContentItem'; import { HalClient } from '../hal/services/HalClient'; export type HierarchyParentModelJson = HierarchyNodeModel & { /** * List of parents of this node */ parents: Array<HierarchyNodeModel>; }; export declare class HierarchyParents extends HalResource implements HierarchyParentModelJson { id: string; label: string; parentId: string | undefined; contentTypeUri: string; root: boolean; hasChildren: boolean; repositoryId: string; parents: Array<HierarchyNode>; publishingStatus: ContentItemPublishingStatus | string; constructor(data: any); setClient(client: HalClient): void; toJson(): HierarchyParentModelJson; toJSON(): HierarchyParentModelJson; related: { contentItem: { /** * Retrieve the content item associated with this node */ get: () => Promise<ContentItem>; }; }; }