contentful-management
Version:
Client for Contentful's Content Management API
34 lines (33 loc) • 1.57 kB
TypeScript
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> {
}
/**
* @private
*/
export declare function wrapWorkflowsChangelogEntry(_makeRequest: MakeRequest, data: WorkflowsChangelogEntryProps): WorkflowsChangelogEntry;
/**
* @private
*/
export declare const wrapWorkflowsChangelogEntryCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp<WorkflowsChangelogEntryProps>) => import("../common-types").Collection<WorkflowsChangelogEntry, WorkflowsChangelogEntryProps>;