feat: Add assignment component with drag and drop to Set node (#8283)

Co-authored-by: Giulio Andreini <andreini@netseven.it>
This commit is contained in:
Elias Meire
2024-02-06 18:34:34 +01:00
committed by GitHub
parent c04f92f7fd
commit 2799de491b
53 changed files with 3296 additions and 1060 deletions

View File

@@ -1083,6 +1083,7 @@ export type NodePropertyTypes =
| 'curlImport'
| 'resourceMapper'
| 'filter'
| 'assignmentCollection'
| 'credentials';
export type CodeAutocompleteTypes = 'function' | 'functionItem';
@@ -1130,6 +1131,7 @@ export interface INodePropertyTypeOptions {
expirable?: boolean; // Supported by: hidden (only in the credentials)
resourceMapper?: ResourceMapperTypeOptions;
filter?: FilterTypeOptions;
assignment?: AssignmentTypeOptions;
[key: string]: any;
}
@@ -1161,6 +1163,10 @@ export type FilterTypeOptions = Partial<{
typeValidation: 'strict' | 'loose' | {}; // default = strict, `| {}` is a TypeScript trick to allow custom strings, but still give autocomplete
}>;
export type AssignmentTypeOptions = Partial<{
hideType?: boolean; // visible by default
}>;
export type DisplayCondition =
| { _cnd: { eq: NodeParameterValue } }
| { _cnd: { not: NodeParameterValue } }
@@ -2287,6 +2293,17 @@ export type FilterValue = {
combinator: FilterTypeCombinator;
};
export type AssignmentCollectionValue = {
assignments: AssignmentValue[];
};
export type AssignmentValue = {
id: string;
name: string;
value: NodeParameterValue;
type?: string;
};
export interface ExecutionOptions {
limit?: number;
}
@@ -2463,3 +2480,5 @@ export type BannerName =
| 'EMAIL_CONFIRMATION';
export type Functionality = 'regular' | 'configuration-node';
export type Result<T, E> = { ok: true; result: T } | { ok: false; error: E };