UNPKG

1.57 kBTypeScriptView Raw
1import type { DefaultElements, Link, MakeRequest, PaginationQueryOptions, SysLink, VersionedLink } from '../common-types';
2export type WorkflowsChangelogQueryOptions = Omit<PaginationQueryOptions, 'order'> & {
3 /** Find workflows changelog entries filtered by the Entity type (Entry) */
4 'entity.sys.linkType': string;
5 /** Find workflows changelog entries containing the specified, comma-separated entities. Requires `sys.entity.sys.linkType` */
6 'entity.sys.id': string;
7 /** workflow.sys.id is optional so all past workflows can be found */
8 'workflow.sys.id'?: string;
9 'eventAt[lte]'?: string;
10 'eventAt[gte]'?: string;
11 'workflowDefinition.sys.id[in]'?: string;
12};
13export type WorkflowsChangelogEntryProps = {
14 event: string;
15 eventBy: SysLink;
16 eventAt: string;
17 workflow: VersionedLink<'Workflow'>;
18 workflowDefinition: Link<'WorkflowDefinition'>;
19 entity: Link<'Entry'>;
20 stepId: string;
21 stepAnnotations: string[];
22 stepName: string;
23};
24export interface WorkflowsChangelogEntry extends WorkflowsChangelogEntryProps, DefaultElements<WorkflowsChangelogEntryProps> {
25}
26/**
27 * @private
28 */
29export declare function wrapWorkflowsChangelogEntry(_makeRequest: MakeRequest, data: WorkflowsChangelogEntryProps): WorkflowsChangelogEntry;
30/**
31 * @private
32 */
33export declare const wrapWorkflowsChangelogEntryCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp<WorkflowsChangelogEntryProps>) => import("../common-types").Collection<WorkflowsChangelogEntry, WorkflowsChangelogEntryProps>;