@prismatic-io/embedded
Version:
Embed Prismatic's integration marketplace and workflow designer within your existing application.
44 lines (43 loc) • 1.11 kB
TypeScript
export interface Workflow {
id: string;
name: string;
versionNumber: number;
description: string;
updatedAt: string;
lastExecutedAt: string | null;
createdAt: string;
category: string | null;
labels: string[];
customer: {
id: string;
name: string;
};
instance: {
enabled: boolean;
} | null;
deployedVersion: {
id: string;
} | null;
}
export interface QueryWorkflowsData {
workflows: {
nodes: Workflow[];
pageInfo: {
hasNextPage: boolean;
endCursor: string | null;
};
totalCount: number;
};
}
export interface QueryWorkflowsProps extends Record<string, unknown> {
searchTerm?: string;
descriptionSearch?: string;
categorySearch?: string;
labelSearch?: string;
contextStableKey?: string;
externalId?: string;
sortBy?: string[];
first?: number;
cursor?: string;
}
export declare const queryWorkflows: (variables?: QueryWorkflowsProps) => Promise<import("./graphqlRequest").GraphqlRequestResponse<QueryWorkflowsData>>;