UNPKG

contensis-management-api

Version:

Client for managing content using the Contensis Management API

12 lines (11 loc) 635 B
import { ContentType } from 'contensis-core-api'; import { ContentTypeGetOptions } from './ContentTypeGetOptions'; import { ContentTypeListOptions } from './ContentTypeListOptions'; export interface IContentTypeOperations { get(idOrOptions: string | ContentTypeGetOptions): Promise<ContentType>; list(options?: ContentTypeListOptions): Promise<ContentType[]>; create(contentType: ContentType): Promise<ContentType>; update(contentType: ContentType): Promise<ContentType>; delete(id: string): Promise<void>; invokeWorkflow(contentType: ContentType, event: string, data?: any): Promise<ContentType>; }