feat: Add onboarding flow (#7212)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Mutasem Aldmour
2023-09-25 15:49:36 +02:00
committed by GitHub
parent 60c152dc72
commit 01e9340621
22 changed files with 1373 additions and 18 deletions

View File

@@ -214,6 +214,7 @@ export interface IWorkflowDataUpdate {
tags?: ITag[] | string[]; // string[] when store or requested, ITag[] from API response
pinData?: IPinData;
versionId?: string;
meta?: WorkflowMetadata;
}
export interface IWorkflowToShare extends IWorkflowDataUpdate {
@@ -225,10 +226,7 @@ export interface IWorkflowToShare extends IWorkflowDataUpdate {
export interface IWorkflowTemplate {
id: number;
name: string;
workflow: {
nodes: INodeUi[];
connections: IConnections;
};
workflow: Pick<IWorkflowData, 'nodes' | 'connections' | 'settings' | 'pinData'>;
}
export interface INewWorkflowData {
@@ -236,6 +234,10 @@ export interface INewWorkflowData {
onboardingFlowEnabled: boolean;
}
export interface WorkflowMetadata {
onboardingId?: string;
}
// Almost identical to cli.Interfaces.ts
export interface IWorkflowDb {
id: string;
@@ -252,6 +254,7 @@ export interface IWorkflowDb {
ownedBy?: Partial<IUser>;
versionId: string;
usedCredentials?: IUsedCredential[];
meta?: WorkflowMetadata;
}
// Identical to cli.Interfaces.ts