feat(editor): Implementing the Easy AI Workflow experiment (#12043)

This commit is contained in:
Milorad FIlipović
2024-12-06 14:23:39 +01:00
committed by GitHub
parent 7b20f8aaa8
commit 67ed1d2c3c
22 changed files with 432 additions and 189 deletions

View File

@@ -249,6 +249,16 @@ export interface IWorkflowDataCreate extends IWorkflowDataUpdate {
projectId?: string;
}
/**
* Workflow data with mandatory `templateId`
* This is used to identify sample workflows that we create for onboarding
*/
export interface WorkflowDataWithTemplateId extends Omit<IWorkflowDataCreate, 'meta'> {
meta: WorkflowMetadata & {
templateId: Required<WorkflowMetadata>['templateId'];
};
}
export interface IWorkflowToShare extends IWorkflowDataUpdate {
meta: WorkflowMetadata;
}