@contentstack/management
Version:
The Content Management API is used to manage the content of your Contentstack account
23 lines (19 loc) • 798 B
TypeScript
import { ContentstackCollection } from "../../contentstackCollection";
import { AnyProperty, SystemFields } from "../../utility/fields";
import { Creatable, SystemFunction } from "../../utility/operations";
export interface PublishRule extends SystemFields, SystemFunction<PublishRules> {
}
export interface PublishRules extends Creatable<PublishRule, {publishing_rule: PublishRulesData}> {
fetchAll(param?: AnyProperty): Promise<ContentstackCollection<PublishRule>>
}
export interface PublishRulesData extends AnyProperty {
workflow: string
actions?: Array<any>
content_types?: Array<string>
locales?: Array<string>
environment?: string
approvers?: AnyProperty
workflow_stage?: string
disable_approver_publishing?: boolean
branches?: Array<string>
}