refactor(editor): Fix NodeView/Canvas related TS errors (#9581)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
oleg
2024-06-03 16:33:20 +02:00
committed by GitHub
parent 3298914bc4
commit 68420ca6be
23 changed files with 587 additions and 389 deletions

View File

@@ -136,6 +136,8 @@ export type EndpointStyle = {
export type EndpointMeta = {
__meta?: {
nodeName: string;
nodeId: string;
index: number;
totalEndpoints: number;
endpointLabelLength: number;
@@ -247,7 +249,7 @@ export interface IWorkflowData {
export interface IWorkflowDataUpdate {
id?: string;
name?: string;
nodes?: Array<INode | IWorkflowTemplateNode>;
nodes?: INode[];
connections?: IConnections;
settings?: IWorkflowSettings;
active?: boolean;
@@ -268,7 +270,10 @@ export interface NewWorkflowResponse {
}
export interface IWorkflowTemplateNode
extends Pick<INodeUi, 'name' | 'type' | 'position' | 'parameters' | 'typeVersion' | 'webhookId'> {
extends Pick<
INodeUi,
'name' | 'type' | 'position' | 'parameters' | 'typeVersion' | 'webhookId' | 'id' | 'disabled'
> {
// The credentials in a template workflow have a different type than in a regular workflow
credentials?: IWorkflowTemplateNodeCredentials;
}
@@ -1926,13 +1931,13 @@ export type NewConnectionInfo = {
index: number;
eventSource: NodeCreatorOpenSource;
connection?: Connection;
nodeCreatorView?: string;
nodeCreatorView?: NodeFilterType;
outputType?: NodeConnectionType;
endpointUuid?: string;
};
export type AIAssistantConnectionInfo = NewConnectionInfo & {
stepName: string;
stepName?: string;
};
export type EnterpriseEditionFeatureKey =