contensis-management-api
Version:
Client for managing content using the Contensis Management API
13 lines (11 loc) • 619 B
text/typescript
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>;
}