UNPKG

contentful-management

Version:
34 lines (33 loc) 1.55 kB
import type { DefaultElements, Link, MakeRequest, PaginationQueryOptions, SysLink, VersionedLink } from '../common-types'; export type WorkflowsChangelogQueryOptions = Omit<PaginationQueryOptions, 'order'> & { /** Find workflows changelog entries filtered by the Entity type (Entry) */ 'entity.sys.linkType': string; /** Find workflows changelog entries containing the specified, comma-separated entities. Requires `sys.entity.sys.linkType` */ 'entity.sys.id': string; /** workflow.sys.id is optional so all past workflows can be found */ 'workflow.sys.id'?: string; 'eventAt[lte]'?: string; 'eventAt[gte]'?: string; 'workflowDefinition.sys.id[in]'?: string; }; export type WorkflowsChangelogEntryProps = { event: string; eventBy: SysLink; eventAt: string; workflow: VersionedLink<'Workflow'>; workflowDefinition: Link<'WorkflowDefinition'>; entity: Link<'Entry'>; stepId: string; stepAnnotations: string[]; stepName: string; }; export interface WorkflowsChangelogEntry extends WorkflowsChangelogEntryProps, DefaultElements<WorkflowsChangelogEntryProps> { } /** * @internal */ export declare function wrapWorkflowsChangelogEntry(_makeRequest: MakeRequest, data: WorkflowsChangelogEntryProps): WorkflowsChangelogEntry; /** * @internal */ export declare const wrapWorkflowsChangelogEntryCollection: (makeRequest: MakeRequest, data: import("..").CollectionProp<WorkflowsChangelogEntryProps>) => import("..").Collection<WorkflowsChangelogEntry, WorkflowsChangelogEntryProps>;