2021-02-20 04:51:06 -08:00
|
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
2023-07-31 02:00:48 -07:00
|
|
|
|
2022-11-23 07:20:28 -08:00
|
|
|
import type * as express from 'express';
|
2023-07-19 03:54:31 -07:00
|
|
|
import type FormData from 'form-data';
|
2023-10-20 04:43:55 -07:00
|
|
|
import type { PathLike } from 'fs';
|
2022-10-28 02:24:11 -07:00
|
|
|
import type { IncomingHttpHeaders } from 'http';
|
2022-12-23 09:27:07 -08:00
|
|
|
import type { OptionsWithUri, OptionsWithUrl } from 'request';
|
2023-06-14 07:40:16 -07:00
|
|
|
import type { RequestPromiseOptions } from 'request-promise-native';
|
2023-10-20 04:43:55 -07:00
|
|
|
import type { Readable } from 'stream';
|
|
|
|
import type { URLSearchParams } from 'url';
|
2022-12-23 09:27:07 -08:00
|
|
|
|
2023-10-20 04:43:55 -07:00
|
|
|
import type { AuthenticationMethod } from './Authentication';
|
2023-10-25 07:35:22 -07:00
|
|
|
import type { CODE_EXECUTION_MODES, CODE_LANGUAGES, LOG_LEVELS } from './Constants';
|
2022-09-23 07:14:28 -07:00
|
|
|
import type { IDeferredPromise } from './DeferredPromise';
|
2023-10-20 04:43:55 -07:00
|
|
|
import type { ExecutionStatus } from './ExecutionStatus';
|
2023-11-27 06:33:21 -08:00
|
|
|
import type { ExpressionError } from './errors/expression.error';
|
2022-09-23 07:14:28 -07:00
|
|
|
import type { Workflow } from './Workflow';
|
2023-11-27 06:33:21 -08:00
|
|
|
import type { WorkflowActivationError } from './errors/workflow-activation.error';
|
|
|
|
import type { WorkflowOperationError } from './errors/workflow-operation.error';
|
2023-10-20 04:43:55 -07:00
|
|
|
import type { WorkflowHooks } from './WorkflowHooks';
|
2023-11-27 06:33:21 -08:00
|
|
|
import type { NodeOperationError } from './errors/node-operation.error';
|
|
|
|
import type { NodeApiError } from './errors/node-api.error';
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2022-02-05 13:55:43 -08:00
|
|
|
export interface IAdditionalCredentialOptions {
|
|
|
|
oauth2?: IOAuth2Options;
|
|
|
|
credentialsDecrypted?: ICredentialsDecrypted;
|
|
|
|
}
|
|
|
|
|
2020-01-13 18:46:58 -08:00
|
|
|
export type IAllExecuteFunctions =
|
|
|
|
| IExecuteFunctions
|
2022-02-05 13:55:43 -08:00
|
|
|
| IExecutePaginationFunctions
|
2020-01-13 18:46:58 -08:00
|
|
|
| IExecuteSingleFunctions
|
|
|
|
| IHookFunctions
|
|
|
|
| ILoadOptionsFunctions
|
|
|
|
| IPollFunctions
|
|
|
|
| ITriggerFunctions
|
|
|
|
| IWebhookFunctions;
|
|
|
|
|
2023-10-11 03:09:19 -07:00
|
|
|
export type BinaryFileType = 'text' | 'json' | 'image' | 'audio' | 'video' | 'pdf' | 'html';
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface IBinaryData {
|
|
|
|
[key: string]: string | undefined;
|
|
|
|
data: string;
|
|
|
|
mimeType: string;
|
2022-11-24 07:54:43 -08:00
|
|
|
fileType?: BinaryFileType;
|
2019-06-23 03:35:23 -07:00
|
|
|
fileName?: string;
|
2021-03-18 10:13:24 -07:00
|
|
|
directory?: string;
|
2019-06-23 03:35:23 -07:00
|
|
|
fileExtension?: string;
|
2023-01-04 03:29:56 -08:00
|
|
|
fileSize?: string; // TODO: change this to number and store the actual value
|
2021-12-23 13:29:04 -08:00
|
|
|
id?: string;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2022-07-15 01:36:01 -07:00
|
|
|
// All properties in this interface except for
|
|
|
|
// "includeCredentialsOnRefreshOnBody" will get
|
|
|
|
// removed once we add the OAuth2 hooks to the
|
|
|
|
// credentials file.
|
2020-07-25 10:58:38 -07:00
|
|
|
export interface IOAuth2Options {
|
|
|
|
includeCredentialsOnRefreshOnBody?: boolean;
|
|
|
|
property?: string;
|
|
|
|
tokenType?: string;
|
2020-09-16 00:16:06 -07:00
|
|
|
keepBearer?: boolean;
|
2021-02-21 23:49:00 -08:00
|
|
|
tokenExpiredStatusCode?: number;
|
2022-07-15 01:36:01 -07:00
|
|
|
keyToIncludeInAccessTokenHeader?: string;
|
2020-07-25 10:58:38 -07:00
|
|
|
}
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
export interface IConnection {
|
|
|
|
// The node the connection is to
|
|
|
|
node: string;
|
|
|
|
|
|
|
|
// The type of the input on destination node (for example "main")
|
|
|
|
type: string;
|
|
|
|
|
|
|
|
// The output/input-index of destination node (if node has multiple inputs/outputs of the same type)
|
|
|
|
index: number;
|
|
|
|
}
|
|
|
|
|
2022-06-06 00:17:35 -07:00
|
|
|
export type ExecutionError =
|
2022-09-29 14:02:25 -07:00
|
|
|
| ExpressionError
|
2022-06-06 00:17:35 -07:00
|
|
|
| WorkflowActivationError
|
|
|
|
| WorkflowOperationError
|
|
|
|
| NodeOperationError
|
|
|
|
| NodeApiError;
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
// Get used to gives nodes access to credentials
|
|
|
|
export interface IGetCredentials {
|
2021-10-13 15:21:00 -07:00
|
|
|
get(type: string, id: string | null): Promise<ICredentialsEncrypted>;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2020-01-25 23:48:38 -08:00
|
|
|
export abstract class ICredentials {
|
2021-10-13 15:21:00 -07:00
|
|
|
id?: string;
|
|
|
|
|
2020-01-25 23:48:38 -08:00
|
|
|
name: string;
|
2021-08-29 11:58:11 -07:00
|
|
|
|
2020-01-25 23:48:38 -08:00
|
|
|
type: string;
|
2021-08-29 11:58:11 -07:00
|
|
|
|
2020-01-25 23:48:38 -08:00
|
|
|
data: string | undefined;
|
2021-08-29 11:58:11 -07:00
|
|
|
|
2020-01-25 23:48:38 -08:00
|
|
|
nodesAccess: ICredentialNodeAccess[];
|
|
|
|
|
2021-10-13 15:21:00 -07:00
|
|
|
constructor(
|
|
|
|
nodeCredentials: INodeCredentialsDetails,
|
|
|
|
type: string,
|
|
|
|
nodesAccess: ICredentialNodeAccess[],
|
|
|
|
data?: string,
|
|
|
|
) {
|
2022-09-09 07:34:50 -07:00
|
|
|
this.id = nodeCredentials.id ?? undefined;
|
2021-10-13 15:21:00 -07:00
|
|
|
this.name = nodeCredentials.name;
|
2020-01-25 23:48:38 -08:00
|
|
|
this.type = type;
|
|
|
|
this.nodesAccess = nodesAccess;
|
|
|
|
this.data = data;
|
|
|
|
}
|
|
|
|
|
2023-10-23 04:39:35 -07:00
|
|
|
abstract getData(nodeType?: string): ICredentialDataDecryptedObject;
|
2021-08-29 11:58:11 -07:00
|
|
|
|
2020-01-25 23:48:38 -08:00
|
|
|
abstract getDataToSave(): ICredentialsEncrypted;
|
2021-08-29 11:58:11 -07:00
|
|
|
|
2020-01-25 23:48:38 -08:00
|
|
|
abstract hasNodeAccess(nodeType: string): boolean;
|
2021-08-29 11:58:11 -07:00
|
|
|
|
2023-10-23 04:39:35 -07:00
|
|
|
abstract setData(data: ICredentialDataDecryptedObject): void;
|
2020-01-25 23:48:38 -08:00
|
|
|
}
|
|
|
|
|
2022-09-21 01:20:29 -07:00
|
|
|
export interface IUser {
|
|
|
|
id: string;
|
|
|
|
email: string;
|
|
|
|
firstName: string;
|
|
|
|
lastName: string;
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
// Defines which nodes are allowed to access the credentials and
|
2022-09-02 07:13:17 -07:00
|
|
|
// when that access got granted from which user
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface ICredentialNodeAccess {
|
|
|
|
nodeType: string;
|
|
|
|
user?: string;
|
2019-07-22 11:29:06 -07:00
|
|
|
date?: Date;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICredentialsDecrypted {
|
2023-01-02 08:42:32 -08:00
|
|
|
id: string;
|
2019-06-23 03:35:23 -07:00
|
|
|
name: string;
|
|
|
|
type: string;
|
|
|
|
nodesAccess: ICredentialNodeAccess[];
|
|
|
|
data?: ICredentialDataDecryptedObject;
|
2022-09-21 01:20:29 -07:00
|
|
|
ownedBy?: IUser;
|
|
|
|
sharedWith?: IUser[];
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICredentialsEncrypted {
|
2023-01-02 08:42:32 -08:00
|
|
|
id?: string;
|
2019-06-23 03:35:23 -07:00
|
|
|
name: string;
|
|
|
|
type: string;
|
|
|
|
nodesAccess: ICredentialNodeAccess[];
|
|
|
|
data?: string;
|
|
|
|
}
|
|
|
|
|
2021-01-24 04:33:57 -08:00
|
|
|
export interface ICredentialsExpressionResolveValues {
|
|
|
|
connectionInputData: INodeExecutionData[];
|
|
|
|
itemIndex: number;
|
|
|
|
node: INode;
|
|
|
|
runExecutionData: IRunExecutionData | null;
|
|
|
|
runIndex: number;
|
|
|
|
workflow: Workflow;
|
|
|
|
}
|
|
|
|
|
2022-02-05 13:55:43 -08:00
|
|
|
// Simplified options of request library
|
|
|
|
export interface IRequestOptionsSimplified {
|
|
|
|
auth?: {
|
|
|
|
username: string;
|
|
|
|
password: string;
|
2023-04-19 04:44:41 -07:00
|
|
|
sendImmediately?: boolean;
|
2022-02-05 13:55:43 -08:00
|
|
|
};
|
|
|
|
body: IDataObject;
|
|
|
|
headers: IDataObject;
|
|
|
|
qs: IDataObject;
|
|
|
|
}
|
|
|
|
|
2022-06-26 15:55:51 -07:00
|
|
|
export interface IRequestOptionsSimplifiedAuth {
|
|
|
|
auth?: {
|
|
|
|
username: string;
|
|
|
|
password: string;
|
2023-04-19 04:44:41 -07:00
|
|
|
sendImmediately?: boolean;
|
2022-06-26 15:55:51 -07:00
|
|
|
};
|
|
|
|
body?: IDataObject;
|
|
|
|
headers?: IDataObject;
|
|
|
|
qs?: IDataObject;
|
2023-02-01 06:26:13 -08:00
|
|
|
url?: string;
|
feat(Elasticsearch Node): Add credential tests, index pipelines and index refresh (#2420)
* 🐛 ES query string not passed to request
* 🔑 Add ES credential test
* ✨ Add ES index pipelines and index refresh
* :hammer: merge fix
* :zap: renamed additional filds as options
* :zap: added ignore ssl to credentials
* :zap: Improvements
* :zap: Improvements
* feat(Redis Node): Add push and pop operations (#3127)
* ✨ Add push and pop operations
* :zap: linter fixes
* :zap: linter fixes
* 🐛 Fix errors and remove overwrite
* 🐛 Remove errant hint
* :zap: Small change
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
* refactor: Telemetry updates (#3529)
* Init unit tests for telemetry
* Update telemetry tests
* Test Workflow execution errored event
* Add new tracking logic in pulse
* cleanup
* interfaces
* Add event_version for Workflow execution count event
* add version_cli in all events
* add user saved credentials event
* update manual wf exec finished, fixes
* improve typings, lint
* add node_graph_string in User clicked execute workflow button event
* add User set node operation or mode event
* Add instance started event in FE
* Add User clicked retry execution button event
* add expression editor event
* add input node type to add node event
* add User stopped workflow execution wvent
* add error message in saved credential event
* update stop execution event
* add execution preflight event
* Remove instance started even tfrom FE, add session started to FE,BE
* improve typing
* remove node_graph as property from all events
* move back from default export
* move psl npm package to cli package
* cr
* update webhook node domain logic
* fix is_valid for User saved credentials event
* fix Expression Editor variable selector event
* add caused_by_credential in preflight event
* undo webhook_domain
* change node_type to full type
* add webhook_domain property in manual execution event (#3680)
* add webhook_domain property in manual execution event
* lint fix
* feat(SpreadsheetFile Node): Allow skipping headers when writing spreadsheets (#3234)
* ⚡ Allow skipping headers when writing spreadsheets
* Fix type on sheet options
* fix(Telegram Node): Fix sending binaryData media (photo, document, video etc.) (#3408)
* fixed send media (photo, document, video etc.) issues on Telegram Node
* fixed send media (photo, document, video etc.) issues on Telegram Node
* file name is optional now
* :zap: lock file and linter fix
* :zap: improvements
* :zap: fixes
* :zap: Improvements
* :zap: Add placeholder to File Name
* :zap: Add error message
* :fire: Remove requestWithAuthentication
* :zap: Fix typo
* :shirt: Fix linting issues
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
* feat(Freshworks CRM Node): Add Search + Lookup functionality (#3131)
* Add fields and Ops for Lookup Search
* Adds Search (Search + Lookup) operations
* :hammer: credentials update
* :hammer: improvements
* :zap: clean up and linter fixes
* :zap: merged search and query, more hints
* :zap: Improvements
* :zap: Add generic type to authentication method
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
* feat(Jira Trigger Node): Add optional query auth for security (#3172)
* ✨ Add query auth for Jira Trigger security
* :zap: small fixes:
* :zap: Response with 403 when invalid query authentication
* :shirt: Fix linting issues
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
* :zap: Changed authentication to use the generic type
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Ahsan Virani <ahsan.virani@gmail.com>
Co-authored-by: Nicholas Penree <nick@penree.com>
Co-authored-by: Taha Sönmez <35905778+tahasonmez@users.noreply.github.com>
Co-authored-by: Jan Thiel <JanThiel@users.noreply.github.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2022-07-10 02:00:47 -07:00
|
|
|
skipSslCertificateValidation?: boolean | string;
|
2022-06-26 15:55:51 -07:00
|
|
|
}
|
|
|
|
|
2022-07-19 01:09:06 -07:00
|
|
|
export interface IHttpRequestHelper {
|
|
|
|
helpers: { httpRequest: IAllExecuteFunctions['helpers']['httpRequest'] };
|
|
|
|
}
|
2020-01-25 23:48:38 -08:00
|
|
|
export abstract class ICredentialsHelper {
|
2022-02-05 13:55:43 -08:00
|
|
|
abstract getParentTypes(name: string): string[];
|
|
|
|
|
|
|
|
abstract authenticate(
|
|
|
|
credentials: ICredentialDataDecryptedObject,
|
|
|
|
typeName: string,
|
|
|
|
requestOptions: IHttpRequestOptions | IRequestOptionsSimplified,
|
|
|
|
workflow: Workflow,
|
|
|
|
node: INode,
|
|
|
|
): Promise<IHttpRequestOptions>;
|
|
|
|
|
2022-07-19 01:09:06 -07:00
|
|
|
abstract preAuthentication(
|
|
|
|
helpers: IHttpRequestHelper,
|
|
|
|
credentials: ICredentialDataDecryptedObject,
|
|
|
|
typeName: string,
|
|
|
|
node: INode,
|
|
|
|
credentialsExpired: boolean,
|
|
|
|
): Promise<ICredentialDataDecryptedObject | undefined>;
|
|
|
|
|
2021-10-13 15:21:00 -07:00
|
|
|
abstract getCredentials(
|
|
|
|
nodeCredentials: INodeCredentialsDetails,
|
|
|
|
type: string,
|
|
|
|
): Promise<ICredentials>;
|
2021-08-29 11:58:11 -07:00
|
|
|
|
2021-08-20 09:57:30 -07:00
|
|
|
abstract getDecrypted(
|
2023-08-25 01:33:46 -07:00
|
|
|
additionalData: IWorkflowExecuteAdditionalData,
|
2021-10-13 15:21:00 -07:00
|
|
|
nodeCredentials: INodeCredentialsDetails,
|
2021-08-20 09:57:30 -07:00
|
|
|
type: string,
|
|
|
|
mode: WorkflowExecuteMode,
|
|
|
|
raw?: boolean,
|
|
|
|
expressionResolveValues?: ICredentialsExpressionResolveValues,
|
|
|
|
): Promise<ICredentialDataDecryptedObject>;
|
2021-08-29 11:58:11 -07:00
|
|
|
|
2020-01-25 23:48:38 -08:00
|
|
|
abstract updateCredentials(
|
2021-10-13 15:21:00 -07:00
|
|
|
nodeCredentials: INodeCredentialsDetails,
|
2020-01-25 23:48:38 -08:00
|
|
|
type: string,
|
|
|
|
data: ICredentialDataDecryptedObject,
|
|
|
|
): Promise<void>;
|
|
|
|
}
|
|
|
|
|
2022-02-05 13:55:43 -08:00
|
|
|
export interface IAuthenticateBase {
|
|
|
|
type: string;
|
2022-06-26 15:55:51 -07:00
|
|
|
properties:
|
|
|
|
| {
|
|
|
|
[key: string]: string;
|
|
|
|
}
|
|
|
|
| IRequestOptionsSimplifiedAuth;
|
2022-02-05 13:55:43 -08:00
|
|
|
}
|
|
|
|
|
2022-06-26 15:55:51 -07:00
|
|
|
export interface IAuthenticateGeneric extends IAuthenticateBase {
|
|
|
|
type: 'generic';
|
|
|
|
properties: IRequestOptionsSimplifiedAuth;
|
2022-02-05 13:55:43 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
export type IAuthenticate =
|
|
|
|
| ((
|
|
|
|
credentials: ICredentialDataDecryptedObject,
|
|
|
|
requestOptions: IHttpRequestOptions,
|
|
|
|
) => Promise<IHttpRequestOptions>)
|
2022-06-26 15:55:51 -07:00
|
|
|
| IAuthenticateGeneric;
|
2022-02-05 13:55:43 -08:00
|
|
|
|
|
|
|
export interface IAuthenticateRuleBase {
|
|
|
|
type: string;
|
|
|
|
properties: {
|
|
|
|
[key: string]: string | number;
|
|
|
|
};
|
|
|
|
errorMessage?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IAuthenticateRuleResponseCode extends IAuthenticateRuleBase {
|
|
|
|
type: 'responseCode';
|
|
|
|
properties: {
|
|
|
|
value: number;
|
|
|
|
message: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2022-04-19 03:36:01 -07:00
|
|
|
export interface IAuthenticateRuleResponseSuccessBody extends IAuthenticateRuleBase {
|
|
|
|
type: 'responseSuccessBody';
|
|
|
|
properties: {
|
|
|
|
message: string;
|
|
|
|
key: string;
|
|
|
|
value: any;
|
|
|
|
};
|
|
|
|
}
|
2022-07-20 04:50:16 -07:00
|
|
|
|
|
|
|
type Override<A extends object, B extends object> = Omit<A, keyof B> & B;
|
|
|
|
|
|
|
|
export namespace DeclarativeRestApiSettings {
|
|
|
|
// The type below might be extended
|
|
|
|
// with new options that need to be parsed as expressions
|
|
|
|
export type HttpRequestOptions = Override<
|
|
|
|
IHttpRequestOptions,
|
|
|
|
{ skipSslCertificateValidation?: string | boolean; url?: string }
|
|
|
|
>;
|
|
|
|
|
|
|
|
export type ResultOptions = {
|
|
|
|
maxResults?: number | string;
|
|
|
|
options: HttpRequestOptions;
|
|
|
|
paginate?: boolean | string;
|
|
|
|
preSend: PreSendAction[];
|
|
|
|
postReceive: Array<{
|
|
|
|
data: {
|
|
|
|
parameterValue: string | IDataObject | undefined;
|
|
|
|
};
|
|
|
|
actions: PostReceiveAction[];
|
|
|
|
}>;
|
|
|
|
requestOperations?: IN8nRequestOperations;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2022-02-05 13:55:43 -08:00
|
|
|
export interface ICredentialTestRequest {
|
2022-07-20 04:50:16 -07:00
|
|
|
request: DeclarativeRestApiSettings.HttpRequestOptions;
|
2022-04-19 03:36:01 -07:00
|
|
|
rules?: IAuthenticateRuleResponseCode[] | IAuthenticateRuleResponseSuccessBody[];
|
2022-02-05 13:55:43 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICredentialTestRequestData {
|
|
|
|
nodeType?: INodeType;
|
|
|
|
testRequest: ICredentialTestRequest;
|
|
|
|
}
|
|
|
|
|
2023-11-13 03:11:16 -08:00
|
|
|
type ICredentialHttpRequestNode = {
|
|
|
|
name: string;
|
|
|
|
docsUrl: string;
|
|
|
|
} & ({ apiBaseUrl: string } | { apiBaseUrlPlaceholder: string });
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface ICredentialType {
|
|
|
|
name: string;
|
|
|
|
displayName: string;
|
2021-09-11 01:15:36 -07:00
|
|
|
icon?: string;
|
2022-11-23 07:20:28 -08:00
|
|
|
iconUrl?: string;
|
2020-01-13 18:46:58 -08:00
|
|
|
extends?: string[];
|
2019-06-23 03:35:23 -07:00
|
|
|
properties: INodeProperties[];
|
2020-08-17 02:58:36 -07:00
|
|
|
documentationUrl?: string;
|
2020-01-25 23:48:38 -08:00
|
|
|
__overwrittenProperties?: string[];
|
2022-02-05 13:55:43 -08:00
|
|
|
authenticate?: IAuthenticate;
|
2022-07-19 01:09:06 -07:00
|
|
|
preAuthentication?: (
|
|
|
|
this: IHttpRequestHelper,
|
|
|
|
credentials: ICredentialDataDecryptedObject,
|
|
|
|
) => Promise<IDataObject>;
|
2022-02-05 13:55:43 -08:00
|
|
|
test?: ICredentialTestRequest;
|
2022-05-24 02:36:19 -07:00
|
|
|
genericAuth?: boolean;
|
2023-11-13 03:11:16 -08:00
|
|
|
httpRequestNode?: ICredentialHttpRequestNode;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ICredentialTypes {
|
2022-11-23 07:20:28 -08:00
|
|
|
recognizes(credentialType: string): boolean;
|
2019-06-23 03:35:23 -07:00
|
|
|
getByName(credentialType: string): ICredentialType;
|
2023-11-13 03:11:16 -08:00
|
|
|
getSupportedNodes(type: string): string[];
|
2023-01-04 09:16:48 -08:00
|
|
|
getParentTypes(typeName: string): string[];
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// The way the credentials get saved in the database (data encrypted)
|
|
|
|
export interface ICredentialData {
|
2021-10-13 15:21:00 -07:00
|
|
|
id?: string;
|
2019-06-23 03:35:23 -07:00
|
|
|
name: string;
|
|
|
|
data: string; // Contains the access data as encrypted JSON string
|
|
|
|
nodesAccess: ICredentialNodeAccess[];
|
|
|
|
}
|
|
|
|
|
|
|
|
// The encrypted credentials which the nodes can access
|
2022-09-21 01:20:29 -07:00
|
|
|
export type CredentialInformation = string | number | boolean | IDataObject | IDataObject[];
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
// The encrypted credentials which the nodes can access
|
|
|
|
export interface ICredentialDataDecryptedObject {
|
|
|
|
[key: string]: CredentialInformation;
|
|
|
|
}
|
|
|
|
|
|
|
|
// First array index: The output/input-index (if node has multiple inputs/outputs of the same type)
|
|
|
|
// Second array index: The different connections (if one node is connected to multiple nodes)
|
|
|
|
export type NodeInputConnections = IConnection[][];
|
|
|
|
|
2022-06-03 08:25:07 -07:00
|
|
|
export interface INodeConnection {
|
|
|
|
sourceIndex: number;
|
|
|
|
destinationIndex: number;
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface INodeConnections {
|
|
|
|
// Input name
|
|
|
|
[key: string]: NodeInputConnections;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IConnections {
|
|
|
|
// Node name
|
|
|
|
[key: string]: INodeConnections;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type GenericValue = string | object | number | boolean | undefined | null;
|
|
|
|
|
|
|
|
export interface IDataObject {
|
|
|
|
[key: string]: GenericValue | IDataObject | GenericValue[] | IDataObject[];
|
|
|
|
}
|
|
|
|
|
2021-11-05 09:45:51 -07:00
|
|
|
export type IExecuteResponsePromiseData = IDataObject | IN8nHttpFullResponse;
|
|
|
|
|
2021-09-21 10:38:24 -07:00
|
|
|
export interface INodeTypeNameVersion {
|
|
|
|
name: string;
|
|
|
|
version: number;
|
|
|
|
}
|
|
|
|
|
2019-12-31 12:19:37 -08:00
|
|
|
export interface IGetExecutePollFunctions {
|
2021-03-23 11:08:47 -07:00
|
|
|
(
|
|
|
|
workflow: Workflow,
|
|
|
|
node: INode,
|
|
|
|
additionalData: IWorkflowExecuteAdditionalData,
|
|
|
|
mode: WorkflowExecuteMode,
|
|
|
|
activation: WorkflowActivateMode,
|
|
|
|
): IPollFunctions;
|
2019-12-31 12:19:37 -08:00
|
|
|
}
|
|
|
|
|
2019-08-08 11:38:25 -07:00
|
|
|
export interface IGetExecuteTriggerFunctions {
|
2021-03-23 11:08:47 -07:00
|
|
|
(
|
|
|
|
workflow: Workflow,
|
|
|
|
node: INode,
|
|
|
|
additionalData: IWorkflowExecuteAdditionalData,
|
|
|
|
mode: WorkflowExecuteMode,
|
|
|
|
activation: WorkflowActivateMode,
|
|
|
|
): ITriggerFunctions;
|
2019-08-08 11:38:25 -07:00
|
|
|
}
|
|
|
|
|
2022-05-30 03:16:44 -07:00
|
|
|
export interface IRunNodeResponse {
|
|
|
|
data: INodeExecutionData[][] | null | undefined;
|
|
|
|
closeFunction?: () => Promise<void>;
|
|
|
|
}
|
2019-08-08 11:38:25 -07:00
|
|
|
export interface IGetExecuteFunctions {
|
|
|
|
(
|
|
|
|
workflow: Workflow,
|
|
|
|
runExecutionData: IRunExecutionData,
|
|
|
|
runIndex: number,
|
|
|
|
connectionInputData: INodeExecutionData[],
|
|
|
|
inputData: ITaskDataConnections,
|
|
|
|
node: INode,
|
|
|
|
additionalData: IWorkflowExecuteAdditionalData,
|
2022-06-03 08:25:07 -07:00
|
|
|
executeData: IExecuteData,
|
2019-08-08 11:38:25 -07:00
|
|
|
mode: WorkflowExecuteMode,
|
2023-11-24 09:17:06 -08:00
|
|
|
abortSignal?: AbortSignal,
|
2019-08-08 11:38:25 -07:00
|
|
|
): IExecuteFunctions;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IGetExecuteSingleFunctions {
|
|
|
|
(
|
|
|
|
workflow: Workflow,
|
|
|
|
runExecutionData: IRunExecutionData,
|
|
|
|
runIndex: number,
|
|
|
|
connectionInputData: INodeExecutionData[],
|
|
|
|
inputData: ITaskDataConnections,
|
|
|
|
node: INode,
|
|
|
|
itemIndex: number,
|
|
|
|
additionalData: IWorkflowExecuteAdditionalData,
|
2022-06-03 08:25:07 -07:00
|
|
|
executeData: IExecuteData,
|
2019-08-08 11:38:25 -07:00
|
|
|
mode: WorkflowExecuteMode,
|
2023-11-24 09:17:06 -08:00
|
|
|
abortSignal?: AbortSignal,
|
2019-08-08 11:38:25 -07:00
|
|
|
): IExecuteSingleFunctions;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IGetExecuteHookFunctions {
|
2021-03-23 11:08:47 -07:00
|
|
|
(
|
|
|
|
workflow: Workflow,
|
|
|
|
node: INode,
|
|
|
|
additionalData: IWorkflowExecuteAdditionalData,
|
|
|
|
mode: WorkflowExecuteMode,
|
|
|
|
activation: WorkflowActivateMode,
|
|
|
|
isTest?: boolean,
|
|
|
|
webhookData?: IWebhookData,
|
|
|
|
): IHookFunctions;
|
2019-08-08 11:38:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IGetExecuteWebhookFunctions {
|
|
|
|
(
|
|
|
|
workflow: Workflow,
|
|
|
|
node: INode,
|
|
|
|
additionalData: IWorkflowExecuteAdditionalData,
|
|
|
|
mode: WorkflowExecuteMode,
|
|
|
|
webhookData: IWebhookData,
|
|
|
|
): IWebhookFunctions;
|
|
|
|
}
|
|
|
|
|
2022-06-03 08:25:07 -07:00
|
|
|
export interface ISourceDataConnections {
|
|
|
|
// Key for each input type and because there can be multiple inputs of the same type it is an array
|
2022-09-02 07:13:17 -07:00
|
|
|
// null is also allowed because if we still need data for a later while executing the workflow set temporary to null
|
2022-06-03 08:25:07 -07:00
|
|
|
// the nodes get as input TaskDataConnections which is identical to this one except that no null is allowed.
|
|
|
|
[key: string]: Array<ISourceData[] | null>;
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface IExecuteData {
|
|
|
|
data: ITaskDataConnections;
|
|
|
|
node: INode;
|
2022-06-03 08:25:07 -07:00
|
|
|
source: ITaskDataConnectionsSource | null;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export type IContextObject = {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
|
|
|
|
export interface IExecuteContextData {
|
|
|
|
// Keys are: "flow" | "node:<NODE_NAME>"
|
|
|
|
[key: string]: IContextObject;
|
|
|
|
}
|
|
|
|
|
2022-02-05 13:55:43 -08:00
|
|
|
export type IHttpRequestMethods = 'DELETE' | 'GET' | 'HEAD' | 'PATCH' | 'POST' | 'PUT';
|
|
|
|
|
2021-09-21 10:38:24 -07:00
|
|
|
export interface IHttpRequestOptions {
|
|
|
|
url: string;
|
2022-02-05 13:55:43 -08:00
|
|
|
baseURL?: string;
|
2021-09-21 10:38:24 -07:00
|
|
|
headers?: IDataObject;
|
2022-02-05 13:55:43 -08:00
|
|
|
method?: IHttpRequestMethods;
|
2021-09-21 10:38:24 -07:00
|
|
|
body?: FormData | GenericValue | GenericValue[] | Buffer | URLSearchParams;
|
|
|
|
qs?: IDataObject;
|
|
|
|
arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma';
|
|
|
|
auth?: {
|
|
|
|
username: string;
|
|
|
|
password: string;
|
2023-04-19 04:44:41 -07:00
|
|
|
sendImmediately?: boolean;
|
2021-09-21 10:38:24 -07:00
|
|
|
};
|
|
|
|
disableFollowRedirect?: boolean;
|
|
|
|
encoding?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream';
|
|
|
|
skipSslCertificateValidation?: boolean;
|
|
|
|
returnFullResponse?: boolean;
|
2022-03-06 02:41:01 -08:00
|
|
|
ignoreHttpStatusErrors?: boolean;
|
2021-09-21 10:38:24 -07:00
|
|
|
proxy?: {
|
|
|
|
host: string;
|
|
|
|
port: number;
|
|
|
|
auth?: {
|
|
|
|
username: string;
|
|
|
|
password: string;
|
|
|
|
};
|
|
|
|
protocol?: string;
|
|
|
|
};
|
|
|
|
timeout?: number;
|
|
|
|
json?: boolean;
|
|
|
|
}
|
|
|
|
|
2023-11-01 06:24:43 -07:00
|
|
|
export interface PaginationOptions {
|
|
|
|
binaryResult?: boolean;
|
|
|
|
continue: boolean | string;
|
|
|
|
request: IRequestOptionsSimplifiedAuth;
|
|
|
|
maxRequests?: number;
|
|
|
|
}
|
|
|
|
|
2021-11-05 09:45:51 -07:00
|
|
|
export type IN8nHttpResponse = IDataObject | Buffer | GenericValue | GenericValue[] | null;
|
2021-09-21 10:38:24 -07:00
|
|
|
|
|
|
|
export interface IN8nHttpFullResponse {
|
2023-05-17 01:06:24 -07:00
|
|
|
body: IN8nHttpResponse | Readable;
|
2023-11-01 06:24:43 -07:00
|
|
|
__bodyResolved?: boolean;
|
2021-09-21 10:38:24 -07:00
|
|
|
headers: IDataObject;
|
|
|
|
statusCode: number;
|
2021-11-05 09:45:51 -07:00
|
|
|
statusMessage?: string;
|
2021-09-21 10:38:24 -07:00
|
|
|
}
|
|
|
|
|
2022-02-05 13:55:43 -08:00
|
|
|
export interface IN8nRequestOperations {
|
|
|
|
pagination?:
|
2023-02-01 06:26:13 -08:00
|
|
|
| IN8nRequestOperationPaginationGeneric
|
2022-02-05 13:55:43 -08:00
|
|
|
| IN8nRequestOperationPaginationOffset
|
|
|
|
| ((
|
|
|
|
this: IExecutePaginationFunctions,
|
2022-07-20 04:50:16 -07:00
|
|
|
requestOptions: DeclarativeRestApiSettings.ResultOptions,
|
2022-02-05 13:55:43 -08:00
|
|
|
) => Promise<INodeExecutionData[]>);
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IN8nRequestOperationPaginationBase {
|
|
|
|
type: string;
|
|
|
|
properties: {
|
2023-02-01 06:26:13 -08:00
|
|
|
[key: string]: unknown;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IN8nRequestOperationPaginationGeneric extends IN8nRequestOperationPaginationBase {
|
|
|
|
type: 'generic';
|
|
|
|
properties: {
|
|
|
|
continue: boolean | string;
|
|
|
|
request: IRequestOptionsSimplifiedAuth;
|
2022-02-05 13:55:43 -08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IN8nRequestOperationPaginationOffset extends IN8nRequestOperationPaginationBase {
|
|
|
|
type: 'offset';
|
|
|
|
properties: {
|
|
|
|
limitParameter: string;
|
|
|
|
offsetParameter: string;
|
|
|
|
pageSize: number;
|
|
|
|
rootProperty?: string; // Optional Path to option array
|
|
|
|
type: 'body' | 'query';
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2022-09-23 02:56:57 -07:00
|
|
|
export interface IGetNodeParameterOptions {
|
2023-10-02 08:33:43 -07:00
|
|
|
contextNode?: INode;
|
2023-09-19 03:16:35 -07:00
|
|
|
// extract value from regex, works only when parameter type is resourceLocator
|
2022-09-23 02:56:57 -07:00
|
|
|
extractValue?: boolean;
|
2023-09-19 03:16:35 -07:00
|
|
|
// get raw value of parameter with unresolved expressions
|
|
|
|
rawExpressions?: boolean;
|
2022-09-23 02:56:57 -07:00
|
|
|
}
|
|
|
|
|
2022-11-18 05:31:38 -08:00
|
|
|
namespace ExecuteFunctions {
|
2022-12-02 03:53:59 -08:00
|
|
|
namespace StringReturning {
|
2023-01-06 06:09:32 -08:00
|
|
|
export type NodeParameter =
|
|
|
|
| 'binaryProperty'
|
|
|
|
| 'binaryPropertyName'
|
|
|
|
| 'binaryPropertyOutput'
|
|
|
|
| 'dataPropertyName'
|
|
|
|
| 'dataBinaryProperty'
|
|
|
|
| 'resource'
|
|
|
|
| 'operation'
|
|
|
|
| 'filePath'
|
|
|
|
| 'encodingType';
|
2022-12-02 03:53:59 -08:00
|
|
|
}
|
|
|
|
|
2022-11-18 06:26:22 -08:00
|
|
|
namespace NumberReturning {
|
|
|
|
export type NodeParameter = 'limit';
|
|
|
|
}
|
|
|
|
|
2022-11-18 05:31:38 -08:00
|
|
|
namespace BooleanReturning {
|
|
|
|
export type NodeParameter =
|
|
|
|
| 'binaryData'
|
|
|
|
| 'download'
|
|
|
|
| 'jsonParameters'
|
|
|
|
| 'returnAll'
|
|
|
|
| 'rawData'
|
|
|
|
| 'resolveData';
|
|
|
|
}
|
|
|
|
|
2022-11-18 07:29:44 -08:00
|
|
|
namespace RecordReturning {
|
|
|
|
export type NodeParameter = 'additionalFields' | 'filters' | 'options' | 'updateFields';
|
|
|
|
}
|
|
|
|
|
2022-11-18 05:31:38 -08:00
|
|
|
export type GetNodeParameterFn = {
|
|
|
|
// @TECH_DEBT: Refactor to remove this barely used overload - N8N-5632
|
|
|
|
getNodeParameter<T extends { resource: string }>(
|
|
|
|
parameterName: 'resource',
|
|
|
|
itemIndex?: number,
|
|
|
|
): T['resource'];
|
|
|
|
|
2022-12-02 03:53:59 -08:00
|
|
|
getNodeParameter(
|
|
|
|
parameterName: StringReturning.NodeParameter,
|
|
|
|
itemIndex: number,
|
|
|
|
fallbackValue?: string,
|
|
|
|
options?: IGetNodeParameterOptions,
|
|
|
|
): string;
|
2022-11-18 07:29:44 -08:00
|
|
|
getNodeParameter(
|
|
|
|
parameterName: RecordReturning.NodeParameter,
|
|
|
|
itemIndex: number,
|
|
|
|
fallbackValue?: IDataObject,
|
|
|
|
options?: IGetNodeParameterOptions,
|
|
|
|
): IDataObject;
|
2022-11-18 05:31:38 -08:00
|
|
|
getNodeParameter(
|
|
|
|
parameterName: BooleanReturning.NodeParameter,
|
|
|
|
itemIndex: number,
|
2022-11-18 06:26:22 -08:00
|
|
|
fallbackValue?: boolean,
|
2022-11-18 05:31:38 -08:00
|
|
|
options?: IGetNodeParameterOptions,
|
|
|
|
): boolean;
|
2022-11-18 06:26:22 -08:00
|
|
|
getNodeParameter(
|
|
|
|
parameterName: NumberReturning.NodeParameter,
|
|
|
|
itemIndex: number,
|
|
|
|
fallbackValue?: number,
|
|
|
|
options?: IGetNodeParameterOptions,
|
|
|
|
): number;
|
2023-05-05 01:22:49 -07:00
|
|
|
getNodeParameter(
|
2022-11-18 05:31:38 -08:00
|
|
|
parameterName: string,
|
|
|
|
itemIndex: number,
|
|
|
|
fallbackValue?: any,
|
|
|
|
options?: IGetNodeParameterOptions,
|
2023-05-05 01:22:49 -07:00
|
|
|
): NodeParameterValueType | object;
|
2022-11-18 05:31:38 -08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2022-12-23 09:27:07 -08:00
|
|
|
export interface IExecuteWorkflowInfo {
|
|
|
|
code?: IWorkflowBase;
|
|
|
|
id?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type ICredentialTestFunction = (
|
|
|
|
this: ICredentialTestFunctions,
|
|
|
|
credential: ICredentialsDecrypted,
|
|
|
|
) => Promise<INodeCredentialTestResult>;
|
|
|
|
|
|
|
|
export interface ICredentialTestFunctions {
|
|
|
|
helpers: {
|
2023-06-14 07:40:16 -07:00
|
|
|
request: (uriOrObject: string | object, options?: object) => Promise<any>;
|
2022-12-23 09:27:07 -08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2023-03-22 06:04:15 -07:00
|
|
|
interface BaseHelperFunctions {
|
|
|
|
createDeferredPromise: <T = void>() => Promise<IDeferredPromise<T>>;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface JsonHelperFunctions {
|
2022-12-23 09:27:07 -08:00
|
|
|
returnJsonArray(jsonData: IDataObject | IDataObject[]): INodeExecutionData[];
|
|
|
|
}
|
|
|
|
|
2023-01-06 05:15:46 -08:00
|
|
|
export interface FileSystemHelperFunctions {
|
|
|
|
createReadStream(path: PathLike): Promise<Readable>;
|
2023-07-07 07:43:45 -07:00
|
|
|
getStoragePath(): string;
|
2023-07-31 05:20:39 -07:00
|
|
|
writeContentToFile(
|
|
|
|
path: PathLike,
|
|
|
|
content: string | Buffer | Readable,
|
|
|
|
flag?: string,
|
|
|
|
): Promise<void>;
|
2023-01-06 05:15:46 -08:00
|
|
|
}
|
|
|
|
|
2022-12-23 09:27:07 -08:00
|
|
|
export interface BinaryHelperFunctions {
|
2023-01-02 08:07:10 -08:00
|
|
|
prepareBinaryData(
|
|
|
|
binaryData: Buffer | Readable,
|
|
|
|
filePath?: string,
|
|
|
|
mimeType?: string,
|
|
|
|
): Promise<IBinaryData>;
|
2022-12-23 09:27:07 -08:00
|
|
|
setBinaryDataBuffer(data: IBinaryData, binaryData: Buffer): Promise<IBinaryData>;
|
2023-03-23 07:11:18 -07:00
|
|
|
copyBinaryFile(): Promise<never>;
|
2023-03-09 06:38:54 -08:00
|
|
|
binaryToBuffer(body: Buffer | Readable): Promise<Buffer>;
|
2023-07-18 11:07:29 -07:00
|
|
|
getBinaryPath(binaryDataId: string): string;
|
2023-09-25 07:59:45 -07:00
|
|
|
getBinaryStream(binaryDataId: string, chunkSize?: number): Promise<Readable>;
|
2023-09-25 01:07:06 -07:00
|
|
|
getBinaryMetadata(binaryDataId: string): Promise<{
|
|
|
|
fileName?: string;
|
|
|
|
mimeType?: string;
|
|
|
|
fileSize: number;
|
|
|
|
}>;
|
2022-12-23 09:27:07 -08:00
|
|
|
}
|
|
|
|
|
2023-03-23 07:11:18 -07:00
|
|
|
export interface NodeHelperFunctions {
|
|
|
|
copyBinaryFile(filePath: string, fileName: string, mimeType?: string): Promise<IBinaryData>;
|
|
|
|
}
|
|
|
|
|
2022-12-23 09:27:07 -08:00
|
|
|
export interface RequestHelperFunctions {
|
|
|
|
request(uriOrObject: string | IDataObject | any, options?: IDataObject): Promise<any>;
|
|
|
|
requestWithAuthentication(
|
|
|
|
this: IAllExecuteFunctions,
|
|
|
|
credentialsType: string,
|
|
|
|
requestOptions: OptionsWithUri | RequestPromiseOptions,
|
|
|
|
additionalCredentialOptions?: IAdditionalCredentialOptions,
|
2020-01-02 15:13:53 -08:00
|
|
|
): Promise<any>;
|
2022-12-23 09:27:07 -08:00
|
|
|
|
|
|
|
httpRequest(requestOptions: IHttpRequestOptions): Promise<any>;
|
|
|
|
httpRequestWithAuthentication(
|
|
|
|
this: IAllExecuteFunctions,
|
|
|
|
credentialsType: string,
|
|
|
|
requestOptions: IHttpRequestOptions,
|
|
|
|
additionalCredentialOptions?: IAdditionalCredentialOptions,
|
|
|
|
): Promise<any>;
|
2023-11-01 06:24:43 -07:00
|
|
|
requestWithAuthenticationPaginated(
|
|
|
|
this: IAllExecuteFunctions,
|
|
|
|
requestOptions: OptionsWithUri,
|
|
|
|
itemIndex: number,
|
|
|
|
paginationOptions: PaginationOptions,
|
|
|
|
credentialsType?: string,
|
|
|
|
additionalCredentialOptions?: IAdditionalCredentialOptions,
|
|
|
|
): Promise<any[]>;
|
2022-12-23 09:27:07 -08:00
|
|
|
|
|
|
|
requestOAuth1(
|
|
|
|
this: IAllExecuteFunctions,
|
|
|
|
credentialsType: string,
|
|
|
|
requestOptions: OptionsWithUrl | RequestPromiseOptions,
|
|
|
|
): Promise<any>;
|
|
|
|
requestOAuth2(
|
|
|
|
this: IAllExecuteFunctions,
|
|
|
|
credentialsType: string,
|
|
|
|
requestOptions: OptionsWithUri | RequestPromiseOptions,
|
|
|
|
oAuth2Options?: IOAuth2Options,
|
|
|
|
): Promise<any>;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface FunctionsBase {
|
2023-10-25 07:35:22 -07:00
|
|
|
logger: Logger;
|
2022-04-14 23:00:47 -07:00
|
|
|
getCredentials(type: string, itemIndex?: number): Promise<ICredentialDataDecryptedObject>;
|
2023-04-17 01:11:26 -07:00
|
|
|
getExecutionId(): string;
|
2020-02-15 17:07:01 -08:00
|
|
|
getNode(): INode;
|
2022-12-23 09:27:07 -08:00
|
|
|
getWorkflow(): IWorkflowMetadata;
|
2019-06-23 03:35:23 -07:00
|
|
|
getWorkflowStaticData(type: string): IDataObject;
|
|
|
|
getTimezone(): string;
|
2022-12-23 09:27:07 -08:00
|
|
|
getRestApiUrl(): string;
|
2023-07-10 06:03:21 -07:00
|
|
|
getInstanceBaseUrl(): string;
|
2023-10-23 04:39:35 -07:00
|
|
|
getInstanceId(): string;
|
2022-12-23 09:27:07 -08:00
|
|
|
|
|
|
|
getMode?: () => WorkflowExecuteMode;
|
|
|
|
getActivationMode?: () => WorkflowActivateMode;
|
2023-09-05 03:59:02 -07:00
|
|
|
|
|
|
|
/** @deprecated */
|
|
|
|
prepareOutputData(outputData: INodeExecutionData[]): Promise<INodeExecutionData[][]>;
|
2022-12-23 09:27:07 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
type FunctionsBaseWithRequiredKeys<Keys extends keyof FunctionsBase> = FunctionsBase & {
|
|
|
|
[K in Keys]: NonNullable<FunctionsBase[K]>;
|
2022-11-18 05:31:38 -08:00
|
|
|
};
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2023-11-01 06:24:43 -07:00
|
|
|
export type ContextType = 'flow' | 'node';
|
|
|
|
|
2022-12-23 09:27:07 -08:00
|
|
|
type BaseExecutionFunctions = FunctionsBaseWithRequiredKeys<'getMode'> & {
|
2020-03-17 05:18:04 -07:00
|
|
|
continueOnFail(): boolean;
|
2022-12-23 09:27:07 -08:00
|
|
|
evaluateExpression(expression: string, itemIndex: number): NodeParameterValueType;
|
2023-11-01 06:24:43 -07:00
|
|
|
getContext(type: ContextType): IContextObject;
|
2022-12-23 09:27:07 -08:00
|
|
|
getExecuteData(): IExecuteData;
|
|
|
|
getWorkflowDataProxy(itemIndex: number): IWorkflowDataProxyData;
|
2022-12-09 04:39:06 -08:00
|
|
|
getInputSourceData(inputIndex?: number, inputName?: string): ISourceData;
|
2023-11-24 09:17:06 -08:00
|
|
|
getExecutionCancelSignal(): AbortSignal | undefined;
|
|
|
|
onExecutionCancellation(handler: () => unknown): void;
|
2022-12-23 09:27:07 -08:00
|
|
|
};
|
|
|
|
|
2023-10-02 08:33:43 -07:00
|
|
|
// TODO: Create later own type only for Config-Nodes
|
2022-12-23 09:27:07 -08:00
|
|
|
export type IExecuteFunctions = ExecuteFunctions.GetNodeParameterFn &
|
|
|
|
BaseExecutionFunctions & {
|
|
|
|
executeWorkflow(
|
|
|
|
workflowInfo: IExecuteWorkflowInfo,
|
|
|
|
inputData?: INodeExecutionData[],
|
|
|
|
): Promise<any>;
|
2023-10-02 08:33:43 -07:00
|
|
|
getInputConnectionData(
|
|
|
|
inputName: ConnectionTypes,
|
|
|
|
itemIndex: number,
|
|
|
|
inputIndex?: number,
|
|
|
|
): Promise<unknown>;
|
2022-12-23 09:27:07 -08:00
|
|
|
getInputData(inputIndex?: number, inputName?: string): INodeExecutionData[];
|
2023-10-02 08:33:43 -07:00
|
|
|
getNodeOutputs(): INodeOutputConfiguration[];
|
2022-12-23 09:27:07 -08:00
|
|
|
putExecutionToWait(waitTill: Date): Promise<void>;
|
|
|
|
sendMessageToUI(message: any): void;
|
|
|
|
sendResponse(response: IExecuteResponsePromiseData): void;
|
|
|
|
|
2023-10-02 08:33:43 -07:00
|
|
|
// TODO: Make this one then only available in the new config one
|
|
|
|
addInputData(
|
|
|
|
connectionType: ConnectionTypes,
|
|
|
|
data: INodeExecutionData[][] | ExecutionError,
|
|
|
|
runIndex?: number,
|
|
|
|
): { index: number };
|
|
|
|
addOutputData(
|
|
|
|
connectionType: ConnectionTypes,
|
|
|
|
currentNodeRunIndex: number,
|
|
|
|
data: INodeExecutionData[][] | ExecutionError,
|
|
|
|
): void;
|
|
|
|
|
2023-03-23 07:11:18 -07:00
|
|
|
nodeHelpers: NodeHelperFunctions;
|
2022-12-23 09:27:07 -08:00
|
|
|
helpers: RequestHelperFunctions &
|
2023-03-22 06:04:15 -07:00
|
|
|
BaseHelperFunctions &
|
2022-12-23 09:27:07 -08:00
|
|
|
BinaryHelperFunctions &
|
2023-01-06 05:15:46 -08:00
|
|
|
FileSystemHelperFunctions &
|
2022-12-23 09:27:07 -08:00
|
|
|
JsonHelperFunctions & {
|
|
|
|
normalizeItems(items: INodeExecutionData | INodeExecutionData[]): INodeExecutionData[];
|
|
|
|
constructExecutionMetaData(
|
|
|
|
inputData: INodeExecutionData[],
|
|
|
|
options: { itemData: IPairedItemData | IPairedItemData[] },
|
|
|
|
): NodeExecutionWithMetadata[];
|
2023-03-06 08:33:32 -08:00
|
|
|
assertBinaryData(itemIndex: number, propertyName: string): IBinaryData;
|
2022-12-23 09:27:07 -08:00
|
|
|
getBinaryDataBuffer(itemIndex: number, propertyName: string): Promise<Buffer>;
|
2023-10-06 07:25:58 -07:00
|
|
|
copyInputItems(items: INodeExecutionData[], properties: string[]): IDataObject[];
|
2022-12-23 09:27:07 -08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export interface IExecuteSingleFunctions extends BaseExecutionFunctions {
|
|
|
|
getInputData(inputIndex?: number, inputName?: string): INodeExecutionData;
|
2022-06-26 15:52:37 -07:00
|
|
|
getItemIndex(): number;
|
2022-09-23 02:56:57 -07:00
|
|
|
getNodeParameter(
|
|
|
|
parameterName: string,
|
|
|
|
fallbackValue?: any,
|
|
|
|
options?: IGetNodeParameterOptions,
|
|
|
|
): NodeParameterValueType | object;
|
2022-12-23 09:27:07 -08:00
|
|
|
|
|
|
|
helpers: RequestHelperFunctions &
|
2023-03-22 06:04:15 -07:00
|
|
|
BaseHelperFunctions &
|
2022-12-23 09:27:07 -08:00
|
|
|
BinaryHelperFunctions & {
|
2023-03-06 08:33:32 -08:00
|
|
|
assertBinaryData(propertyName: string, inputIndex?: number): IBinaryData;
|
2022-12-23 09:27:07 -08:00
|
|
|
getBinaryDataBuffer(propertyName: string, inputIndex?: number): Promise<Buffer>;
|
|
|
|
};
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2022-02-05 13:55:43 -08:00
|
|
|
export interface IExecutePaginationFunctions extends IExecuteSingleFunctions {
|
|
|
|
makeRoutingRequest(
|
|
|
|
this: IAllExecuteFunctions,
|
2022-07-20 04:50:16 -07:00
|
|
|
requestOptions: DeclarativeRestApiSettings.ResultOptions,
|
2022-02-05 13:55:43 -08:00
|
|
|
): Promise<INodeExecutionData[]>;
|
|
|
|
}
|
|
|
|
|
2022-12-23 09:27:07 -08:00
|
|
|
export interface ILoadOptionsFunctions extends FunctionsBase {
|
2022-09-23 02:56:57 -07:00
|
|
|
getNodeParameter(
|
|
|
|
parameterName: string,
|
|
|
|
fallbackValue?: any,
|
|
|
|
options?: IGetNodeParameterOptions,
|
|
|
|
): NodeParameterValueType | object;
|
2022-11-11 04:37:52 -08:00
|
|
|
getCurrentNodeParameter(
|
|
|
|
parameterName: string,
|
|
|
|
options?: IGetNodeParameterOptions,
|
|
|
|
): NodeParameterValueType | object | undefined;
|
2019-10-20 12:42:34 -07:00
|
|
|
getCurrentNodeParameters(): INodeParameters | undefined;
|
2022-12-23 09:27:07 -08:00
|
|
|
helpers: RequestHelperFunctions;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2022-12-23 09:27:07 -08:00
|
|
|
export interface IPollFunctions
|
|
|
|
extends FunctionsBaseWithRequiredKeys<'getMode' | 'getActivationMode'> {
|
2022-11-08 05:29:20 -08:00
|
|
|
__emit(
|
|
|
|
data: INodeExecutionData[][],
|
|
|
|
responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>,
|
|
|
|
donePromise?: IDeferredPromise<IRun>,
|
|
|
|
): void;
|
|
|
|
__emitError(error: Error, responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>): void;
|
2022-09-23 02:56:57 -07:00
|
|
|
getNodeParameter(
|
|
|
|
parameterName: string,
|
|
|
|
fallbackValue?: any,
|
|
|
|
options?: IGetNodeParameterOptions,
|
|
|
|
): NodeParameterValueType | object;
|
2023-03-22 06:04:15 -07:00
|
|
|
helpers: RequestHelperFunctions &
|
|
|
|
BaseHelperFunctions &
|
|
|
|
BinaryHelperFunctions &
|
|
|
|
JsonHelperFunctions;
|
2019-12-31 12:19:37 -08:00
|
|
|
}
|
|
|
|
|
2022-12-23 09:27:07 -08:00
|
|
|
export interface ITriggerFunctions
|
|
|
|
extends FunctionsBaseWithRequiredKeys<'getMode' | 'getActivationMode'> {
|
2021-11-05 09:45:51 -07:00
|
|
|
emit(
|
|
|
|
data: INodeExecutionData[][],
|
|
|
|
responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>,
|
2022-05-30 03:16:44 -07:00
|
|
|
donePromise?: IDeferredPromise<IRun>,
|
2021-11-05 09:45:51 -07:00
|
|
|
): void;
|
2022-04-02 08:33:31 -07:00
|
|
|
emitError(error: Error, responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>): void;
|
2022-09-23 02:56:57 -07:00
|
|
|
getNodeParameter(
|
|
|
|
parameterName: string,
|
|
|
|
fallbackValue?: any,
|
|
|
|
options?: IGetNodeParameterOptions,
|
|
|
|
): NodeParameterValueType | object;
|
2023-03-22 06:04:15 -07:00
|
|
|
helpers: RequestHelperFunctions &
|
|
|
|
BaseHelperFunctions &
|
|
|
|
BinaryHelperFunctions &
|
|
|
|
JsonHelperFunctions;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2022-12-23 09:27:07 -08:00
|
|
|
export interface IHookFunctions
|
|
|
|
extends FunctionsBaseWithRequiredKeys<'getMode' | 'getActivationMode'> {
|
|
|
|
getWebhookName(): string;
|
|
|
|
getWebhookDescription(name: string): IWebhookDescription | undefined;
|
|
|
|
getNodeWebhookUrl: (name: string) => string | undefined;
|
|
|
|
getNodeParameter(
|
|
|
|
parameterName: string,
|
|
|
|
fallbackValue?: any,
|
|
|
|
options?: IGetNodeParameterOptions,
|
|
|
|
): NodeParameterValueType | object;
|
|
|
|
helpers: RequestHelperFunctions;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IWebhookFunctions extends FunctionsBaseWithRequiredKeys<'getMode'> {
|
2019-06-23 03:35:23 -07:00
|
|
|
getBodyData(): IDataObject;
|
2022-10-28 02:24:11 -07:00
|
|
|
getHeaderData(): IncomingHttpHeaders;
|
2022-09-23 02:56:57 -07:00
|
|
|
getNodeParameter(
|
|
|
|
parameterName: string,
|
|
|
|
fallbackValue?: any,
|
|
|
|
options?: IGetNodeParameterOptions,
|
|
|
|
): NodeParameterValueType | object;
|
2019-07-12 02:33:18 -07:00
|
|
|
getNodeWebhookUrl: (name: string) => string | undefined;
|
2021-01-23 11:00:32 -08:00
|
|
|
getParamsData(): object;
|
2019-06-23 03:35:23 -07:00
|
|
|
getQueryData(): object;
|
|
|
|
getRequestObject(): express.Request;
|
|
|
|
getResponseObject(): express.Response;
|
2019-07-12 02:33:18 -07:00
|
|
|
getWebhookName(): string;
|
2023-03-23 07:11:18 -07:00
|
|
|
nodeHelpers: NodeHelperFunctions;
|
2023-03-22 06:04:15 -07:00
|
|
|
helpers: RequestHelperFunctions &
|
|
|
|
BaseHelperFunctions &
|
|
|
|
BinaryHelperFunctions &
|
|
|
|
JsonHelperFunctions;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2021-10-13 15:21:00 -07:00
|
|
|
export interface INodeCredentialsDetails {
|
|
|
|
id: string | null;
|
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface INodeCredentials {
|
2021-10-13 15:21:00 -07:00
|
|
|
[key: string]: INodeCredentialsDetails;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2023-10-30 10:42:47 -07:00
|
|
|
export type OnError = 'continueErrorOutput' | 'continueRegularOutput' | 'stopWorkflow';
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface INode {
|
2022-08-03 04:06:53 -07:00
|
|
|
id: string;
|
2019-06-23 03:35:23 -07:00
|
|
|
name: string;
|
|
|
|
typeVersion: number;
|
|
|
|
type: string;
|
|
|
|
position: [number, number];
|
|
|
|
disabled?: boolean;
|
2021-07-01 00:04:24 -07:00
|
|
|
notes?: string;
|
2020-05-05 08:34:12 -07:00
|
|
|
notesInFlow?: boolean;
|
2019-07-18 10:26:16 -07:00
|
|
|
retryOnFail?: boolean;
|
|
|
|
maxTries?: number;
|
|
|
|
waitBetweenTries?: number;
|
2020-04-12 10:58:30 -07:00
|
|
|
alwaysOutputData?: boolean;
|
2020-08-08 11:31:04 -07:00
|
|
|
executeOnce?: boolean;
|
2023-10-30 10:42:47 -07:00
|
|
|
onError?: OnError;
|
2019-06-23 03:35:23 -07:00
|
|
|
continueOnFail?: boolean;
|
|
|
|
parameters: INodeParameters;
|
|
|
|
credentials?: INodeCredentials;
|
2020-06-10 07:17:16 -07:00
|
|
|
webhookId?: string;
|
2023-11-13 03:11:16 -08:00
|
|
|
extendsCredential?: string;
|
2022-07-20 08:50:39 -07:00
|
|
|
}
|
|
|
|
|
2022-07-22 03:19:45 -07:00
|
|
|
export interface IPinData {
|
2022-08-22 08:46:22 -07:00
|
|
|
[nodeName: string]: INodeExecutionData[];
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodes {
|
|
|
|
[key: string]: INode;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IObservableObject {
|
|
|
|
[key: string]: any;
|
|
|
|
__dataChanged: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IBinaryKeyData {
|
|
|
|
[key: string]: IBinaryData;
|
|
|
|
}
|
|
|
|
|
2022-06-03 08:25:07 -07:00
|
|
|
export interface IPairedItemData {
|
|
|
|
item: number;
|
|
|
|
input?: number; // If undefined "0" gets used
|
2022-12-09 04:39:06 -08:00
|
|
|
sourceOverwrite?: ISourceData;
|
2022-06-03 08:25:07 -07:00
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface INodeExecutionData {
|
2022-06-03 08:25:07 -07:00
|
|
|
[key: string]:
|
|
|
|
| IDataObject
|
|
|
|
| IBinaryKeyData
|
|
|
|
| IPairedItemData
|
|
|
|
| IPairedItemData[]
|
|
|
|
| NodeApiError
|
|
|
|
| NodeOperationError
|
|
|
|
| number
|
|
|
|
| undefined;
|
2019-06-23 03:35:23 -07:00
|
|
|
json: IDataObject;
|
|
|
|
binary?: IBinaryKeyData;
|
2021-09-21 10:38:24 -07:00
|
|
|
error?: NodeApiError | NodeOperationError;
|
2022-06-03 08:25:07 -07:00
|
|
|
pairedItem?: IPairedItemData | IPairedItemData[] | number;
|
2022-09-11 07:42:09 -07:00
|
|
|
index?: number;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodeExecuteFunctions {
|
2019-12-31 12:19:37 -08:00
|
|
|
getExecutePollFunctions: IGetExecutePollFunctions;
|
2019-08-08 11:38:25 -07:00
|
|
|
getExecuteTriggerFunctions: IGetExecuteTriggerFunctions;
|
|
|
|
getExecuteFunctions: IGetExecuteFunctions;
|
|
|
|
getExecuteSingleFunctions: IGetExecuteSingleFunctions;
|
|
|
|
getExecuteHookFunctions: IGetExecuteHookFunctions;
|
|
|
|
getExecuteWebhookFunctions: IGetExecuteWebhookFunctions;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2020-10-26 01:26:07 -07:00
|
|
|
export type NodeParameterValue = string | number | boolean | undefined | null;
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2022-09-21 06:44:45 -07:00
|
|
|
export type ResourceLocatorModes = 'id' | 'url' | 'list' | string;
|
|
|
|
export interface IResourceLocatorResult {
|
|
|
|
name: string;
|
|
|
|
value: string;
|
|
|
|
url?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodeParameterResourceLocator {
|
2022-09-22 10:04:26 -07:00
|
|
|
__rl: true;
|
2022-09-21 06:44:45 -07:00
|
|
|
mode: ResourceLocatorModes;
|
|
|
|
value: NodeParameterValue;
|
|
|
|
cachedResultName?: string;
|
|
|
|
cachedResultUrl?: string;
|
2022-09-22 10:04:26 -07:00
|
|
|
__regex?: string;
|
2022-09-21 06:44:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export type NodeParameterValueType =
|
2019-06-23 03:35:23 -07:00
|
|
|
// TODO: Later also has to be possible to add multiple ones with the name name. So array has to be possible
|
2022-09-21 06:44:45 -07:00
|
|
|
| NodeParameterValue
|
|
|
|
| INodeParameters
|
|
|
|
| INodeParameterResourceLocator
|
|
|
|
| NodeParameterValue[]
|
|
|
|
| INodeParameters[]
|
feat(editor): Implement Resource Mapper component (#6207)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* feat(Google Sheets Node): Implement Resource mapper in Google Sheets node (#5752)
* ✨ Added initial resource mapping support in google sheets node
* ✨ Wired mapping API endpoint with node-specific logic for fetching mapping fields
* ✨ Implementing mapping fields logic for google sheets
* ✨ Updating Google Sheets execute methods to support resource mapper fields
* 🚧 Added initial version of `ResourceLocator` component
* 👌 Added `update` mode to resource mapper modes
* 👌 Addressing PR feedback
* 👌 Removing leftover const reference
* 👕 Fixing lint errors
* :zap: singlton for conections
* :zap: credentials test fix, clean up
* feat(Postgres Node): Add resource mapper to new version of Postgres node (#5814)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* ✨ Updated Postgres node to use resource mapper component
* ✨ Implemented postgres <-> resource mapper type mapping
* ✨ Updated Postgres node execution to use resource mapper fields in v3
* 🔥 Removing unused import
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
* feat(core): Resource editor componend P0 (#5970)
* ✨ Added inital value of mapping mode dropdown
* ✨ Finished mapping mode selector
* ✨ Finished implementing mapping mode selector
* ✨ Implemented 'Columns to match on' dropdown
* ✨ Implemented `loadOptionsDependOn` support in resource mapper
* ✨ Implemented initial version of mapping fields
* ✨ Implementing dependant fields watcher in new component setup
* ✨ Generating correct resource mapper field types. Added `supportAutoMap` to node specification and UI. Not showing fields with `display=false`. Pre-selecting matching columns if it's the only one
* ✨ Handling matching columns correctly in UI
* ✨ Saving and loading resourceMapper values in component
* ✨ Implemented proper data saving and loading
* ✨ ResourceMapper component refactor, fixing value save/load
* ✨ Refactoring MatchingColumnSelect component. Updating Sheets node to use single key match and Postgres to use multi key
* ✨ Updated Google Sheets node to work with the new UI
* ✨ Updating Postgres Node to work with new UI
* ✨ Additional loading indicator that shown if there is no mapping mode selector
* ✨ Removing hard-coded values, fixing matching columns ordering, refactoring
* ✨ Updating field names in nodes
* ✨ Fixing minor UI issues
* ✨ Implemented matching fields filter logic
* ✨ Moving loading label outside of fields list
* ✅ Added initial unit tests for resource mapper
* ✅ Finished default rendering test
* ✅ Test refactoring
* ✅ Finished unit tests
* 🔨 Updating the way i18n is used in resource mapper components
* ✔️ Fixing value to match on logic for postgres node
* ✨ Hiding mapping fields when auto-map mode is selected
* ✨ Syncing selected mapping mode between components
* ✨ Fixing dateTime input rendering and adding update check to Postgres node
* ✨ Properly handling database connections. Sending null for empty string values.
* 💄 Updated wording in the error message for non-existing rows
* ✨ Fixing issues with selected matching values
* ✔️ Updating unit tests after matching logic update
* ✨ Updating matching columns when new fields are loaded
* ✨ Defaulting to null for empty parameter values
* ✨ Allowing zero as valid value for number imputs
* ✨ Updated list of types that use datepicker as widger
* ✨ Using text inputs for time types
* ✨ Initial mapping field rework
* ✨ Added new component for mapping fields, moved bit of logic from root component to matching selector, fixing some lint errors
* ✨ Added tooltip for columns that cannot be deleted
* ✨ Saving deleted values in parameter value
* ✨ Implemented control to add/remove mapping fields
* ✨ Syncing field list with add field dropdown when changing dependent values
* ✨ Not showing removed fields in matching columns selector. Updating wording in matching columns selector description
* ✨ Implementing disabled states for add/remove all fields options
* ✨ Saving removed columns separately, updating copy
* ✨ Implemented resource mapper values validation
* ✨ Updated validation logic and error input styling
* ✨ Validating resource mapper fields when new nodes are added
* ✨ Using node field words in validation, refactoring resource mapper component
* ✨ Implemented schema syncing and add/remove all fields
* ✨ Implemented custom parameter actions
* ✨ Implemented loading indicator in parameter options
* 🔨 Removing unnecessary constants and vue props
* ✨ Handling default values properly
* ✨ Fixing validation logic
* 👕 Fixing lint errors
* ⚡ Fixing type issues
* ⚡ Not showing fields by default if `addAllFields` is set to `false`
* ✨ Implemented field type validation in resource mapper
* ✨ Updated casing in copy, removed all/remove all option from bottom menu
* ✨ Added auto mapping mode notice
* ✨ Added support for more types in validation
* ✨ Added support for enumerated values
* ✨ Fixing imports after merging
* ✨ Not showing removed fields in matching columns selector. Refactoring validation logic.
* 👕 Fixing imports
* ✔️ Updating unit tests
* ✅ Added resource mapper schema tests
* ⚡ Removing `match` from resource mapper field definition, fixing matching columns loading
* ⚡ Fixed schema merging
* :zap: update operation return data fix
* :zap: review
* 🐛 Added missing import
* 💄 Updating parameter actions icon based on the ui review
* 💄 Updating word capitalisation in tooltips
* 💄 Added empty state to mapping fields list
* 💄 Removing asterisk from fields, updating tooltips for matching fields
* ⚡ Preventing matching fields from being removed by 'Remove All option'
* ⚡ Not showing hidden fields in the `Add field` dropdown
* ⚡ Added support for custom matching columns labels
* :zap: query optimization
* :zap: fix
* ⚡ Optimizing Postgres node enumeration logic
* ⚡ Added empty state for matching columns
* ⚡ Only fully loading fields if there is no schema fetched
* ⚡ Hiding mapping fields if there is no matching columns available in the schema
* ✔️ Fixing minor issues
* ✨ Implemented runtime type validation
* 🔨 Refactoring validation logic
* ✨ Implemented required check, added more custom messages
* ✨ Skipping boolean type in required check
* Type check improvements
* ✨ Only reloading fields if dependent values actually change
* ✨ Adding item index to validation error title
* ✨ Updating Postgres fetching logic, using resource mapper mode to determine if a field can be deleted
* ✨ Resetting field values when adding them via the addAll option
* ⚡ Using minor version (2.2) for new Postgres node
* ⚡ Implemented proper date validation and type casting
* 👕 Consolidating typing
* ✅ Added unit tests for type validations
* 👌 Addressing front-end review comments
* ⚡ More refactoring to address review changes
* ⚡ Updating leftover props
* ⚡ Added fallback for ISO dates with invalid timezones
* Added timestamp to datetime test cases
* ⚡ Reseting matching columns if operation changes
* ⚡ Not forcing auto-increment fields to be filled in in Postgres node. Handling null values
* 💄 Added a custom message for invalid dates
* ⚡ Better handling of JSON values
* ⚡ Updating codemirror readonly stauts based on component property, handling objects in json validation
* Deleting leftover console.log
* ⚡ Better time validation
* ⚡ Fixing build error after merging
* 👕 Fixing lint error
* ⚡ Updating node configuration values
* ⚡ Handling postgres arrays better
* ⚡ Handling SQL array syntax
* ⚡ Updating time validation rules to include timezone
* ⚡ Sending expressions that resolve to `null` or `undefined` by the resource mapper to delete cell content in Google Sheets
* ⚡ Allowing removed fields to be selected for match
* ⚡ Updated the query for fetching unique columns and primary keys
* ⚡ Optimizing the unique query
* ⚡ Setting timezone to all parsed dates
* ⚡ Addressing PR review feedback
* ⚡ Configuring Sheets node for production, minor vue component update
* New cases added to the TypeValidation test.
* ✅ Tweaking validation rules for arrays/objects and updating test cases
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
2023-05-31 02:56:09 -07:00
|
|
|
| INodeParameterResourceLocator[]
|
|
|
|
| ResourceMapperValue[];
|
2022-09-21 06:44:45 -07:00
|
|
|
|
|
|
|
export interface INodeParameters {
|
|
|
|
[key: string]: NodeParameterValueType;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2021-08-21 05:11:32 -07:00
|
|
|
export type NodePropertyTypes =
|
|
|
|
| 'boolean'
|
2023-10-02 08:33:43 -07:00
|
|
|
| 'button'
|
2021-08-21 05:11:32 -07:00
|
|
|
| 'collection'
|
|
|
|
| 'color'
|
|
|
|
| 'dateTime'
|
|
|
|
| 'fixedCollection'
|
|
|
|
| 'hidden'
|
|
|
|
| 'json'
|
|
|
|
| 'notice'
|
|
|
|
| 'multiOptions'
|
|
|
|
| 'number'
|
|
|
|
| 'options'
|
2022-05-24 02:36:19 -07:00
|
|
|
| 'string'
|
2022-09-21 06:44:45 -07:00
|
|
|
| 'credentialsSelect'
|
2022-09-29 14:28:02 -07:00
|
|
|
| 'resourceLocator'
|
feat(editor): Implement Resource Mapper component (#6207)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* feat(Google Sheets Node): Implement Resource mapper in Google Sheets node (#5752)
* ✨ Added initial resource mapping support in google sheets node
* ✨ Wired mapping API endpoint with node-specific logic for fetching mapping fields
* ✨ Implementing mapping fields logic for google sheets
* ✨ Updating Google Sheets execute methods to support resource mapper fields
* 🚧 Added initial version of `ResourceLocator` component
* 👌 Added `update` mode to resource mapper modes
* 👌 Addressing PR feedback
* 👌 Removing leftover const reference
* 👕 Fixing lint errors
* :zap: singlton for conections
* :zap: credentials test fix, clean up
* feat(Postgres Node): Add resource mapper to new version of Postgres node (#5814)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* ✨ Updated Postgres node to use resource mapper component
* ✨ Implemented postgres <-> resource mapper type mapping
* ✨ Updated Postgres node execution to use resource mapper fields in v3
* 🔥 Removing unused import
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
* feat(core): Resource editor componend P0 (#5970)
* ✨ Added inital value of mapping mode dropdown
* ✨ Finished mapping mode selector
* ✨ Finished implementing mapping mode selector
* ✨ Implemented 'Columns to match on' dropdown
* ✨ Implemented `loadOptionsDependOn` support in resource mapper
* ✨ Implemented initial version of mapping fields
* ✨ Implementing dependant fields watcher in new component setup
* ✨ Generating correct resource mapper field types. Added `supportAutoMap` to node specification and UI. Not showing fields with `display=false`. Pre-selecting matching columns if it's the only one
* ✨ Handling matching columns correctly in UI
* ✨ Saving and loading resourceMapper values in component
* ✨ Implemented proper data saving and loading
* ✨ ResourceMapper component refactor, fixing value save/load
* ✨ Refactoring MatchingColumnSelect component. Updating Sheets node to use single key match and Postgres to use multi key
* ✨ Updated Google Sheets node to work with the new UI
* ✨ Updating Postgres Node to work with new UI
* ✨ Additional loading indicator that shown if there is no mapping mode selector
* ✨ Removing hard-coded values, fixing matching columns ordering, refactoring
* ✨ Updating field names in nodes
* ✨ Fixing minor UI issues
* ✨ Implemented matching fields filter logic
* ✨ Moving loading label outside of fields list
* ✅ Added initial unit tests for resource mapper
* ✅ Finished default rendering test
* ✅ Test refactoring
* ✅ Finished unit tests
* 🔨 Updating the way i18n is used in resource mapper components
* ✔️ Fixing value to match on logic for postgres node
* ✨ Hiding mapping fields when auto-map mode is selected
* ✨ Syncing selected mapping mode between components
* ✨ Fixing dateTime input rendering and adding update check to Postgres node
* ✨ Properly handling database connections. Sending null for empty string values.
* 💄 Updated wording in the error message for non-existing rows
* ✨ Fixing issues with selected matching values
* ✔️ Updating unit tests after matching logic update
* ✨ Updating matching columns when new fields are loaded
* ✨ Defaulting to null for empty parameter values
* ✨ Allowing zero as valid value for number imputs
* ✨ Updated list of types that use datepicker as widger
* ✨ Using text inputs for time types
* ✨ Initial mapping field rework
* ✨ Added new component for mapping fields, moved bit of logic from root component to matching selector, fixing some lint errors
* ✨ Added tooltip for columns that cannot be deleted
* ✨ Saving deleted values in parameter value
* ✨ Implemented control to add/remove mapping fields
* ✨ Syncing field list with add field dropdown when changing dependent values
* ✨ Not showing removed fields in matching columns selector. Updating wording in matching columns selector description
* ✨ Implementing disabled states for add/remove all fields options
* ✨ Saving removed columns separately, updating copy
* ✨ Implemented resource mapper values validation
* ✨ Updated validation logic and error input styling
* ✨ Validating resource mapper fields when new nodes are added
* ✨ Using node field words in validation, refactoring resource mapper component
* ✨ Implemented schema syncing and add/remove all fields
* ✨ Implemented custom parameter actions
* ✨ Implemented loading indicator in parameter options
* 🔨 Removing unnecessary constants and vue props
* ✨ Handling default values properly
* ✨ Fixing validation logic
* 👕 Fixing lint errors
* ⚡ Fixing type issues
* ⚡ Not showing fields by default if `addAllFields` is set to `false`
* ✨ Implemented field type validation in resource mapper
* ✨ Updated casing in copy, removed all/remove all option from bottom menu
* ✨ Added auto mapping mode notice
* ✨ Added support for more types in validation
* ✨ Added support for enumerated values
* ✨ Fixing imports after merging
* ✨ Not showing removed fields in matching columns selector. Refactoring validation logic.
* 👕 Fixing imports
* ✔️ Updating unit tests
* ✅ Added resource mapper schema tests
* ⚡ Removing `match` from resource mapper field definition, fixing matching columns loading
* ⚡ Fixed schema merging
* :zap: update operation return data fix
* :zap: review
* 🐛 Added missing import
* 💄 Updating parameter actions icon based on the ui review
* 💄 Updating word capitalisation in tooltips
* 💄 Added empty state to mapping fields list
* 💄 Removing asterisk from fields, updating tooltips for matching fields
* ⚡ Preventing matching fields from being removed by 'Remove All option'
* ⚡ Not showing hidden fields in the `Add field` dropdown
* ⚡ Added support for custom matching columns labels
* :zap: query optimization
* :zap: fix
* ⚡ Optimizing Postgres node enumeration logic
* ⚡ Added empty state for matching columns
* ⚡ Only fully loading fields if there is no schema fetched
* ⚡ Hiding mapping fields if there is no matching columns available in the schema
* ✔️ Fixing minor issues
* ✨ Implemented runtime type validation
* 🔨 Refactoring validation logic
* ✨ Implemented required check, added more custom messages
* ✨ Skipping boolean type in required check
* Type check improvements
* ✨ Only reloading fields if dependent values actually change
* ✨ Adding item index to validation error title
* ✨ Updating Postgres fetching logic, using resource mapper mode to determine if a field can be deleted
* ✨ Resetting field values when adding them via the addAll option
* ⚡ Using minor version (2.2) for new Postgres node
* ⚡ Implemented proper date validation and type casting
* 👕 Consolidating typing
* ✅ Added unit tests for type validations
* 👌 Addressing front-end review comments
* ⚡ More refactoring to address review changes
* ⚡ Updating leftover props
* ⚡ Added fallback for ISO dates with invalid timezones
* Added timestamp to datetime test cases
* ⚡ Reseting matching columns if operation changes
* ⚡ Not forcing auto-increment fields to be filled in in Postgres node. Handling null values
* 💄 Added a custom message for invalid dates
* ⚡ Better handling of JSON values
* ⚡ Updating codemirror readonly stauts based on component property, handling objects in json validation
* Deleting leftover console.log
* ⚡ Better time validation
* ⚡ Fixing build error after merging
* 👕 Fixing lint error
* ⚡ Updating node configuration values
* ⚡ Handling postgres arrays better
* ⚡ Handling SQL array syntax
* ⚡ Updating time validation rules to include timezone
* ⚡ Sending expressions that resolve to `null` or `undefined` by the resource mapper to delete cell content in Google Sheets
* ⚡ Allowing removed fields to be selected for match
* ⚡ Updated the query for fetching unique columns and primary keys
* ⚡ Optimizing the unique query
* ⚡ Setting timezone to all parsed dates
* ⚡ Addressing PR review feedback
* ⚡ Configuring Sheets node for production, minor vue component update
* New cases added to the TypeValidation test.
* ✅ Tweaking validation rules for arrays/objects and updating test cases
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
2023-05-31 02:56:09 -07:00
|
|
|
| 'curlImport'
|
2023-11-13 03:11:16 -08:00
|
|
|
| 'resourceMapper'
|
2023-12-13 05:45:22 -08:00
|
|
|
| 'filter'
|
2023-11-13 03:11:16 -08:00
|
|
|
| 'credentials';
|
2019-06-23 03:35:23 -07:00
|
|
|
|
2021-12-23 02:41:46 -08:00
|
|
|
export type CodeAutocompleteTypes = 'function' | 'functionItem';
|
|
|
|
|
2023-04-25 09:18:27 -07:00
|
|
|
export type EditorType = 'code' | 'codeNodeEditor' | 'htmlEditor' | 'sqlEditor' | 'json';
|
2023-05-04 11:00:00 -07:00
|
|
|
export type CodeNodeEditorLanguage = (typeof CODE_LANGUAGES)[number];
|
|
|
|
export type CodeExecutionMode = (typeof CODE_EXECUTION_MODES)[number];
|
2023-06-22 07:47:28 -07:00
|
|
|
export type SQLDialect =
|
|
|
|
| 'StandardSQL'
|
|
|
|
| 'PostgreSQL'
|
|
|
|
| 'MySQL'
|
|
|
|
| 'MariaSQL'
|
|
|
|
| 'MSSQL'
|
|
|
|
| 'SQLite'
|
|
|
|
| 'Cassandra'
|
|
|
|
| 'PLSQL';
|
2019-09-04 09:22:06 -07:00
|
|
|
|
2022-02-05 13:55:43 -08:00
|
|
|
export interface ILoadOptions {
|
|
|
|
routing?: {
|
|
|
|
operations?: IN8nRequestOperations;
|
|
|
|
output?: INodeRequestOutput;
|
2022-07-20 04:50:16 -07:00
|
|
|
request?: DeclarativeRestApiSettings.HttpRequestOptions;
|
2022-02-05 13:55:43 -08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface INodePropertyTypeOptions {
|
2023-10-02 08:33:43 -07:00
|
|
|
action?: string; // Supported by: button
|
2023-11-28 07:47:28 -08:00
|
|
|
containerClass?: string; // Supported by: notice
|
2022-12-07 06:29:45 -08:00
|
|
|
alwaysOpenEditWindow?: boolean; // Supported by: json
|
2021-12-23 02:41:46 -08:00
|
|
|
codeAutocomplete?: CodeAutocompleteTypes; // Supported by: string
|
2023-04-25 07:57:21 -07:00
|
|
|
editor?: EditorType; // Supported by: string
|
|
|
|
editorLanguage?: CodeNodeEditorLanguage; // Supported by: string in combination with editor: codeNodeEditor
|
2023-04-25 09:18:27 -07:00
|
|
|
sqlDialect?: SQLDialect; // Supported by: sqlEditor
|
2020-01-04 20:28:09 -08:00
|
|
|
loadOptionsDependsOn?: string[]; // Supported by: options
|
2019-06-23 03:35:23 -07:00
|
|
|
loadOptionsMethod?: string; // Supported by: options
|
2022-02-05 13:55:43 -08:00
|
|
|
loadOptions?: ILoadOptions; // Supported by: options
|
2019-06-23 03:35:23 -07:00
|
|
|
maxValue?: number; // Supported by: number
|
|
|
|
minValue?: number; // Supported by: number
|
|
|
|
multipleValues?: boolean; // Supported by: <All>
|
|
|
|
multipleValueButtonText?: string; // Supported when "multipleValues" set to true
|
|
|
|
numberPrecision?: number; // Supported by: number
|
|
|
|
password?: boolean; // Supported by: string
|
|
|
|
rows?: number; // Supported by: string
|
2020-11-09 02:26:46 -08:00
|
|
|
showAlpha?: boolean; // Supported by: color
|
2020-12-26 15:15:33 -08:00
|
|
|
sortable?: boolean; // Supported when "multipleValues" set to true
|
2022-07-19 01:09:06 -07:00
|
|
|
expirable?: boolean; // Supported by: hidden (only in the credentials)
|
feat(editor): Implement Resource Mapper component (#6207)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* feat(Google Sheets Node): Implement Resource mapper in Google Sheets node (#5752)
* ✨ Added initial resource mapping support in google sheets node
* ✨ Wired mapping API endpoint with node-specific logic for fetching mapping fields
* ✨ Implementing mapping fields logic for google sheets
* ✨ Updating Google Sheets execute methods to support resource mapper fields
* 🚧 Added initial version of `ResourceLocator` component
* 👌 Added `update` mode to resource mapper modes
* 👌 Addressing PR feedback
* 👌 Removing leftover const reference
* 👕 Fixing lint errors
* :zap: singlton for conections
* :zap: credentials test fix, clean up
* feat(Postgres Node): Add resource mapper to new version of Postgres node (#5814)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* ✨ Updated Postgres node to use resource mapper component
* ✨ Implemented postgres <-> resource mapper type mapping
* ✨ Updated Postgres node execution to use resource mapper fields in v3
* 🔥 Removing unused import
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
* feat(core): Resource editor componend P0 (#5970)
* ✨ Added inital value of mapping mode dropdown
* ✨ Finished mapping mode selector
* ✨ Finished implementing mapping mode selector
* ✨ Implemented 'Columns to match on' dropdown
* ✨ Implemented `loadOptionsDependOn` support in resource mapper
* ✨ Implemented initial version of mapping fields
* ✨ Implementing dependant fields watcher in new component setup
* ✨ Generating correct resource mapper field types. Added `supportAutoMap` to node specification and UI. Not showing fields with `display=false`. Pre-selecting matching columns if it's the only one
* ✨ Handling matching columns correctly in UI
* ✨ Saving and loading resourceMapper values in component
* ✨ Implemented proper data saving and loading
* ✨ ResourceMapper component refactor, fixing value save/load
* ✨ Refactoring MatchingColumnSelect component. Updating Sheets node to use single key match and Postgres to use multi key
* ✨ Updated Google Sheets node to work with the new UI
* ✨ Updating Postgres Node to work with new UI
* ✨ Additional loading indicator that shown if there is no mapping mode selector
* ✨ Removing hard-coded values, fixing matching columns ordering, refactoring
* ✨ Updating field names in nodes
* ✨ Fixing minor UI issues
* ✨ Implemented matching fields filter logic
* ✨ Moving loading label outside of fields list
* ✅ Added initial unit tests for resource mapper
* ✅ Finished default rendering test
* ✅ Test refactoring
* ✅ Finished unit tests
* 🔨 Updating the way i18n is used in resource mapper components
* ✔️ Fixing value to match on logic for postgres node
* ✨ Hiding mapping fields when auto-map mode is selected
* ✨ Syncing selected mapping mode between components
* ✨ Fixing dateTime input rendering and adding update check to Postgres node
* ✨ Properly handling database connections. Sending null for empty string values.
* 💄 Updated wording in the error message for non-existing rows
* ✨ Fixing issues with selected matching values
* ✔️ Updating unit tests after matching logic update
* ✨ Updating matching columns when new fields are loaded
* ✨ Defaulting to null for empty parameter values
* ✨ Allowing zero as valid value for number imputs
* ✨ Updated list of types that use datepicker as widger
* ✨ Using text inputs for time types
* ✨ Initial mapping field rework
* ✨ Added new component for mapping fields, moved bit of logic from root component to matching selector, fixing some lint errors
* ✨ Added tooltip for columns that cannot be deleted
* ✨ Saving deleted values in parameter value
* ✨ Implemented control to add/remove mapping fields
* ✨ Syncing field list with add field dropdown when changing dependent values
* ✨ Not showing removed fields in matching columns selector. Updating wording in matching columns selector description
* ✨ Implementing disabled states for add/remove all fields options
* ✨ Saving removed columns separately, updating copy
* ✨ Implemented resource mapper values validation
* ✨ Updated validation logic and error input styling
* ✨ Validating resource mapper fields when new nodes are added
* ✨ Using node field words in validation, refactoring resource mapper component
* ✨ Implemented schema syncing and add/remove all fields
* ✨ Implemented custom parameter actions
* ✨ Implemented loading indicator in parameter options
* 🔨 Removing unnecessary constants and vue props
* ✨ Handling default values properly
* ✨ Fixing validation logic
* 👕 Fixing lint errors
* ⚡ Fixing type issues
* ⚡ Not showing fields by default if `addAllFields` is set to `false`
* ✨ Implemented field type validation in resource mapper
* ✨ Updated casing in copy, removed all/remove all option from bottom menu
* ✨ Added auto mapping mode notice
* ✨ Added support for more types in validation
* ✨ Added support for enumerated values
* ✨ Fixing imports after merging
* ✨ Not showing removed fields in matching columns selector. Refactoring validation logic.
* 👕 Fixing imports
* ✔️ Updating unit tests
* ✅ Added resource mapper schema tests
* ⚡ Removing `match` from resource mapper field definition, fixing matching columns loading
* ⚡ Fixed schema merging
* :zap: update operation return data fix
* :zap: review
* 🐛 Added missing import
* 💄 Updating parameter actions icon based on the ui review
* 💄 Updating word capitalisation in tooltips
* 💄 Added empty state to mapping fields list
* 💄 Removing asterisk from fields, updating tooltips for matching fields
* ⚡ Preventing matching fields from being removed by 'Remove All option'
* ⚡ Not showing hidden fields in the `Add field` dropdown
* ⚡ Added support for custom matching columns labels
* :zap: query optimization
* :zap: fix
* ⚡ Optimizing Postgres node enumeration logic
* ⚡ Added empty state for matching columns
* ⚡ Only fully loading fields if there is no schema fetched
* ⚡ Hiding mapping fields if there is no matching columns available in the schema
* ✔️ Fixing minor issues
* ✨ Implemented runtime type validation
* 🔨 Refactoring validation logic
* ✨ Implemented required check, added more custom messages
* ✨ Skipping boolean type in required check
* Type check improvements
* ✨ Only reloading fields if dependent values actually change
* ✨ Adding item index to validation error title
* ✨ Updating Postgres fetching logic, using resource mapper mode to determine if a field can be deleted
* ✨ Resetting field values when adding them via the addAll option
* ⚡ Using minor version (2.2) for new Postgres node
* ⚡ Implemented proper date validation and type casting
* 👕 Consolidating typing
* ✅ Added unit tests for type validations
* 👌 Addressing front-end review comments
* ⚡ More refactoring to address review changes
* ⚡ Updating leftover props
* ⚡ Added fallback for ISO dates with invalid timezones
* Added timestamp to datetime test cases
* ⚡ Reseting matching columns if operation changes
* ⚡ Not forcing auto-increment fields to be filled in in Postgres node. Handling null values
* 💄 Added a custom message for invalid dates
* ⚡ Better handling of JSON values
* ⚡ Updating codemirror readonly stauts based on component property, handling objects in json validation
* Deleting leftover console.log
* ⚡ Better time validation
* ⚡ Fixing build error after merging
* 👕 Fixing lint error
* ⚡ Updating node configuration values
* ⚡ Handling postgres arrays better
* ⚡ Handling SQL array syntax
* ⚡ Updating time validation rules to include timezone
* ⚡ Sending expressions that resolve to `null` or `undefined` by the resource mapper to delete cell content in Google Sheets
* ⚡ Allowing removed fields to be selected for match
* ⚡ Updated the query for fetching unique columns and primary keys
* ⚡ Optimizing the unique query
* ⚡ Setting timezone to all parsed dates
* ⚡ Addressing PR review feedback
* ⚡ Configuring Sheets node for production, minor vue component update
* New cases added to the TypeValidation test.
* ✅ Tweaking validation rules for arrays/objects and updating test cases
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
2023-05-31 02:56:09 -07:00
|
|
|
resourceMapper?: ResourceMapperTypeOptions;
|
2023-12-13 05:45:22 -08:00
|
|
|
filter?: FilterTypeOptions;
|
2022-02-05 13:55:43 -08:00
|
|
|
[key: string]: any;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
feat(editor): Implement Resource Mapper component (#6207)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* feat(Google Sheets Node): Implement Resource mapper in Google Sheets node (#5752)
* ✨ Added initial resource mapping support in google sheets node
* ✨ Wired mapping API endpoint with node-specific logic for fetching mapping fields
* ✨ Implementing mapping fields logic for google sheets
* ✨ Updating Google Sheets execute methods to support resource mapper fields
* 🚧 Added initial version of `ResourceLocator` component
* 👌 Added `update` mode to resource mapper modes
* 👌 Addressing PR feedback
* 👌 Removing leftover const reference
* 👕 Fixing lint errors
* :zap: singlton for conections
* :zap: credentials test fix, clean up
* feat(Postgres Node): Add resource mapper to new version of Postgres node (#5814)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* ✨ Updated Postgres node to use resource mapper component
* ✨ Implemented postgres <-> resource mapper type mapping
* ✨ Updated Postgres node execution to use resource mapper fields in v3
* 🔥 Removing unused import
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
* feat(core): Resource editor componend P0 (#5970)
* ✨ Added inital value of mapping mode dropdown
* ✨ Finished mapping mode selector
* ✨ Finished implementing mapping mode selector
* ✨ Implemented 'Columns to match on' dropdown
* ✨ Implemented `loadOptionsDependOn` support in resource mapper
* ✨ Implemented initial version of mapping fields
* ✨ Implementing dependant fields watcher in new component setup
* ✨ Generating correct resource mapper field types. Added `supportAutoMap` to node specification and UI. Not showing fields with `display=false`. Pre-selecting matching columns if it's the only one
* ✨ Handling matching columns correctly in UI
* ✨ Saving and loading resourceMapper values in component
* ✨ Implemented proper data saving and loading
* ✨ ResourceMapper component refactor, fixing value save/load
* ✨ Refactoring MatchingColumnSelect component. Updating Sheets node to use single key match and Postgres to use multi key
* ✨ Updated Google Sheets node to work with the new UI
* ✨ Updating Postgres Node to work with new UI
* ✨ Additional loading indicator that shown if there is no mapping mode selector
* ✨ Removing hard-coded values, fixing matching columns ordering, refactoring
* ✨ Updating field names in nodes
* ✨ Fixing minor UI issues
* ✨ Implemented matching fields filter logic
* ✨ Moving loading label outside of fields list
* ✅ Added initial unit tests for resource mapper
* ✅ Finished default rendering test
* ✅ Test refactoring
* ✅ Finished unit tests
* 🔨 Updating the way i18n is used in resource mapper components
* ✔️ Fixing value to match on logic for postgres node
* ✨ Hiding mapping fields when auto-map mode is selected
* ✨ Syncing selected mapping mode between components
* ✨ Fixing dateTime input rendering and adding update check to Postgres node
* ✨ Properly handling database connections. Sending null for empty string values.
* 💄 Updated wording in the error message for non-existing rows
* ✨ Fixing issues with selected matching values
* ✔️ Updating unit tests after matching logic update
* ✨ Updating matching columns when new fields are loaded
* ✨ Defaulting to null for empty parameter values
* ✨ Allowing zero as valid value for number imputs
* ✨ Updated list of types that use datepicker as widger
* ✨ Using text inputs for time types
* ✨ Initial mapping field rework
* ✨ Added new component for mapping fields, moved bit of logic from root component to matching selector, fixing some lint errors
* ✨ Added tooltip for columns that cannot be deleted
* ✨ Saving deleted values in parameter value
* ✨ Implemented control to add/remove mapping fields
* ✨ Syncing field list with add field dropdown when changing dependent values
* ✨ Not showing removed fields in matching columns selector. Updating wording in matching columns selector description
* ✨ Implementing disabled states for add/remove all fields options
* ✨ Saving removed columns separately, updating copy
* ✨ Implemented resource mapper values validation
* ✨ Updated validation logic and error input styling
* ✨ Validating resource mapper fields when new nodes are added
* ✨ Using node field words in validation, refactoring resource mapper component
* ✨ Implemented schema syncing and add/remove all fields
* ✨ Implemented custom parameter actions
* ✨ Implemented loading indicator in parameter options
* 🔨 Removing unnecessary constants and vue props
* ✨ Handling default values properly
* ✨ Fixing validation logic
* 👕 Fixing lint errors
* ⚡ Fixing type issues
* ⚡ Not showing fields by default if `addAllFields` is set to `false`
* ✨ Implemented field type validation in resource mapper
* ✨ Updated casing in copy, removed all/remove all option from bottom menu
* ✨ Added auto mapping mode notice
* ✨ Added support for more types in validation
* ✨ Added support for enumerated values
* ✨ Fixing imports after merging
* ✨ Not showing removed fields in matching columns selector. Refactoring validation logic.
* 👕 Fixing imports
* ✔️ Updating unit tests
* ✅ Added resource mapper schema tests
* ⚡ Removing `match` from resource mapper field definition, fixing matching columns loading
* ⚡ Fixed schema merging
* :zap: update operation return data fix
* :zap: review
* 🐛 Added missing import
* 💄 Updating parameter actions icon based on the ui review
* 💄 Updating word capitalisation in tooltips
* 💄 Added empty state to mapping fields list
* 💄 Removing asterisk from fields, updating tooltips for matching fields
* ⚡ Preventing matching fields from being removed by 'Remove All option'
* ⚡ Not showing hidden fields in the `Add field` dropdown
* ⚡ Added support for custom matching columns labels
* :zap: query optimization
* :zap: fix
* ⚡ Optimizing Postgres node enumeration logic
* ⚡ Added empty state for matching columns
* ⚡ Only fully loading fields if there is no schema fetched
* ⚡ Hiding mapping fields if there is no matching columns available in the schema
* ✔️ Fixing minor issues
* ✨ Implemented runtime type validation
* 🔨 Refactoring validation logic
* ✨ Implemented required check, added more custom messages
* ✨ Skipping boolean type in required check
* Type check improvements
* ✨ Only reloading fields if dependent values actually change
* ✨ Adding item index to validation error title
* ✨ Updating Postgres fetching logic, using resource mapper mode to determine if a field can be deleted
* ✨ Resetting field values when adding them via the addAll option
* ⚡ Using minor version (2.2) for new Postgres node
* ⚡ Implemented proper date validation and type casting
* 👕 Consolidating typing
* ✅ Added unit tests for type validations
* 👌 Addressing front-end review comments
* ⚡ More refactoring to address review changes
* ⚡ Updating leftover props
* ⚡ Added fallback for ISO dates with invalid timezones
* Added timestamp to datetime test cases
* ⚡ Reseting matching columns if operation changes
* ⚡ Not forcing auto-increment fields to be filled in in Postgres node. Handling null values
* 💄 Added a custom message for invalid dates
* ⚡ Better handling of JSON values
* ⚡ Updating codemirror readonly stauts based on component property, handling objects in json validation
* Deleting leftover console.log
* ⚡ Better time validation
* ⚡ Fixing build error after merging
* 👕 Fixing lint error
* ⚡ Updating node configuration values
* ⚡ Handling postgres arrays better
* ⚡ Handling SQL array syntax
* ⚡ Updating time validation rules to include timezone
* ⚡ Sending expressions that resolve to `null` or `undefined` by the resource mapper to delete cell content in Google Sheets
* ⚡ Allowing removed fields to be selected for match
* ⚡ Updated the query for fetching unique columns and primary keys
* ⚡ Optimizing the unique query
* ⚡ Setting timezone to all parsed dates
* ⚡ Addressing PR review feedback
* ⚡ Configuring Sheets node for production, minor vue component update
* New cases added to the TypeValidation test.
* ✅ Tweaking validation rules for arrays/objects and updating test cases
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
2023-05-31 02:56:09 -07:00
|
|
|
export interface ResourceMapperTypeOptions {
|
|
|
|
resourceMapperMethod: string;
|
|
|
|
mode: 'add' | 'update' | 'upsert';
|
2023-09-04 08:15:52 -07:00
|
|
|
valuesLabel?: string;
|
feat(editor): Implement Resource Mapper component (#6207)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* feat(Google Sheets Node): Implement Resource mapper in Google Sheets node (#5752)
* ✨ Added initial resource mapping support in google sheets node
* ✨ Wired mapping API endpoint with node-specific logic for fetching mapping fields
* ✨ Implementing mapping fields logic for google sheets
* ✨ Updating Google Sheets execute methods to support resource mapper fields
* 🚧 Added initial version of `ResourceLocator` component
* 👌 Added `update` mode to resource mapper modes
* 👌 Addressing PR feedback
* 👌 Removing leftover const reference
* 👕 Fixing lint errors
* :zap: singlton for conections
* :zap: credentials test fix, clean up
* feat(Postgres Node): Add resource mapper to new version of Postgres node (#5814)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* ✨ Updated Postgres node to use resource mapper component
* ✨ Implemented postgres <-> resource mapper type mapping
* ✨ Updated Postgres node execution to use resource mapper fields in v3
* 🔥 Removing unused import
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
* feat(core): Resource editor componend P0 (#5970)
* ✨ Added inital value of mapping mode dropdown
* ✨ Finished mapping mode selector
* ✨ Finished implementing mapping mode selector
* ✨ Implemented 'Columns to match on' dropdown
* ✨ Implemented `loadOptionsDependOn` support in resource mapper
* ✨ Implemented initial version of mapping fields
* ✨ Implementing dependant fields watcher in new component setup
* ✨ Generating correct resource mapper field types. Added `supportAutoMap` to node specification and UI. Not showing fields with `display=false`. Pre-selecting matching columns if it's the only one
* ✨ Handling matching columns correctly in UI
* ✨ Saving and loading resourceMapper values in component
* ✨ Implemented proper data saving and loading
* ✨ ResourceMapper component refactor, fixing value save/load
* ✨ Refactoring MatchingColumnSelect component. Updating Sheets node to use single key match and Postgres to use multi key
* ✨ Updated Google Sheets node to work with the new UI
* ✨ Updating Postgres Node to work with new UI
* ✨ Additional loading indicator that shown if there is no mapping mode selector
* ✨ Removing hard-coded values, fixing matching columns ordering, refactoring
* ✨ Updating field names in nodes
* ✨ Fixing minor UI issues
* ✨ Implemented matching fields filter logic
* ✨ Moving loading label outside of fields list
* ✅ Added initial unit tests for resource mapper
* ✅ Finished default rendering test
* ✅ Test refactoring
* ✅ Finished unit tests
* 🔨 Updating the way i18n is used in resource mapper components
* ✔️ Fixing value to match on logic for postgres node
* ✨ Hiding mapping fields when auto-map mode is selected
* ✨ Syncing selected mapping mode between components
* ✨ Fixing dateTime input rendering and adding update check to Postgres node
* ✨ Properly handling database connections. Sending null for empty string values.
* 💄 Updated wording in the error message for non-existing rows
* ✨ Fixing issues with selected matching values
* ✔️ Updating unit tests after matching logic update
* ✨ Updating matching columns when new fields are loaded
* ✨ Defaulting to null for empty parameter values
* ✨ Allowing zero as valid value for number imputs
* ✨ Updated list of types that use datepicker as widger
* ✨ Using text inputs for time types
* ✨ Initial mapping field rework
* ✨ Added new component for mapping fields, moved bit of logic from root component to matching selector, fixing some lint errors
* ✨ Added tooltip for columns that cannot be deleted
* ✨ Saving deleted values in parameter value
* ✨ Implemented control to add/remove mapping fields
* ✨ Syncing field list with add field dropdown when changing dependent values
* ✨ Not showing removed fields in matching columns selector. Updating wording in matching columns selector description
* ✨ Implementing disabled states for add/remove all fields options
* ✨ Saving removed columns separately, updating copy
* ✨ Implemented resource mapper values validation
* ✨ Updated validation logic and error input styling
* ✨ Validating resource mapper fields when new nodes are added
* ✨ Using node field words in validation, refactoring resource mapper component
* ✨ Implemented schema syncing and add/remove all fields
* ✨ Implemented custom parameter actions
* ✨ Implemented loading indicator in parameter options
* 🔨 Removing unnecessary constants and vue props
* ✨ Handling default values properly
* ✨ Fixing validation logic
* 👕 Fixing lint errors
* ⚡ Fixing type issues
* ⚡ Not showing fields by default if `addAllFields` is set to `false`
* ✨ Implemented field type validation in resource mapper
* ✨ Updated casing in copy, removed all/remove all option from bottom menu
* ✨ Added auto mapping mode notice
* ✨ Added support for more types in validation
* ✨ Added support for enumerated values
* ✨ Fixing imports after merging
* ✨ Not showing removed fields in matching columns selector. Refactoring validation logic.
* 👕 Fixing imports
* ✔️ Updating unit tests
* ✅ Added resource mapper schema tests
* ⚡ Removing `match` from resource mapper field definition, fixing matching columns loading
* ⚡ Fixed schema merging
* :zap: update operation return data fix
* :zap: review
* 🐛 Added missing import
* 💄 Updating parameter actions icon based on the ui review
* 💄 Updating word capitalisation in tooltips
* 💄 Added empty state to mapping fields list
* 💄 Removing asterisk from fields, updating tooltips for matching fields
* ⚡ Preventing matching fields from being removed by 'Remove All option'
* ⚡ Not showing hidden fields in the `Add field` dropdown
* ⚡ Added support for custom matching columns labels
* :zap: query optimization
* :zap: fix
* ⚡ Optimizing Postgres node enumeration logic
* ⚡ Added empty state for matching columns
* ⚡ Only fully loading fields if there is no schema fetched
* ⚡ Hiding mapping fields if there is no matching columns available in the schema
* ✔️ Fixing minor issues
* ✨ Implemented runtime type validation
* 🔨 Refactoring validation logic
* ✨ Implemented required check, added more custom messages
* ✨ Skipping boolean type in required check
* Type check improvements
* ✨ Only reloading fields if dependent values actually change
* ✨ Adding item index to validation error title
* ✨ Updating Postgres fetching logic, using resource mapper mode to determine if a field can be deleted
* ✨ Resetting field values when adding them via the addAll option
* ⚡ Using minor version (2.2) for new Postgres node
* ⚡ Implemented proper date validation and type casting
* 👕 Consolidating typing
* ✅ Added unit tests for type validations
* 👌 Addressing front-end review comments
* ⚡ More refactoring to address review changes
* ⚡ Updating leftover props
* ⚡ Added fallback for ISO dates with invalid timezones
* Added timestamp to datetime test cases
* ⚡ Reseting matching columns if operation changes
* ⚡ Not forcing auto-increment fields to be filled in in Postgres node. Handling null values
* 💄 Added a custom message for invalid dates
* ⚡ Better handling of JSON values
* ⚡ Updating codemirror readonly stauts based on component property, handling objects in json validation
* Deleting leftover console.log
* ⚡ Better time validation
* ⚡ Fixing build error after merging
* 👕 Fixing lint error
* ⚡ Updating node configuration values
* ⚡ Handling postgres arrays better
* ⚡ Handling SQL array syntax
* ⚡ Updating time validation rules to include timezone
* ⚡ Sending expressions that resolve to `null` or `undefined` by the resource mapper to delete cell content in Google Sheets
* ⚡ Allowing removed fields to be selected for match
* ⚡ Updated the query for fetching unique columns and primary keys
* ⚡ Optimizing the unique query
* ⚡ Setting timezone to all parsed dates
* ⚡ Addressing PR review feedback
* ⚡ Configuring Sheets node for production, minor vue component update
* New cases added to the TypeValidation test.
* ✅ Tweaking validation rules for arrays/objects and updating test cases
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
2023-05-31 02:56:09 -07:00
|
|
|
fieldWords?: { singular: string; plural: string };
|
|
|
|
addAllFields?: boolean;
|
|
|
|
noFieldsError?: string;
|
|
|
|
multiKeyMatch?: boolean;
|
|
|
|
supportAutoMap?: boolean;
|
|
|
|
matchingFieldsLabels?: {
|
|
|
|
title?: string;
|
|
|
|
description?: string;
|
|
|
|
hint?: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2023-12-13 05:45:22 -08:00
|
|
|
type NonEmptyArray<T> = [T, ...T[]];
|
|
|
|
|
|
|
|
export type FilterTypeCombinator = 'and' | 'or';
|
|
|
|
|
|
|
|
export type FilterTypeOptions = Partial<{
|
|
|
|
caseSensitive: boolean | string; // default = true
|
|
|
|
leftValue: string; // when set, user can't edit left side of condition
|
|
|
|
allowedCombinators: NonEmptyArray<FilterTypeCombinator>; // default = ['and', 'or']
|
|
|
|
maxConditions: number; // default = 10
|
|
|
|
typeValidation: 'strict' | 'loose' | {}; // default = strict, `| {}` is a TypeScript trick to allow custom strings, but still give autocomplete
|
|
|
|
}>;
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface IDisplayOptions {
|
|
|
|
hide?: {
|
2021-09-21 10:38:24 -07:00
|
|
|
[key: string]: NodeParameterValue[] | undefined;
|
2019-06-23 03:35:23 -07:00
|
|
|
};
|
|
|
|
show?: {
|
2023-10-05 05:57:47 -07:00
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
'@version'?: number[];
|
2021-09-21 10:38:24 -07:00
|
|
|
[key: string]: NodeParameterValue[] | undefined;
|
2019-06-23 03:35:23 -07:00
|
|
|
};
|
2023-07-18 02:43:28 -07:00
|
|
|
|
|
|
|
hideOnCloud?: boolean;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodeProperties {
|
|
|
|
displayName: string;
|
|
|
|
name: string;
|
|
|
|
type: NodePropertyTypes;
|
|
|
|
typeOptions?: INodePropertyTypeOptions;
|
2022-09-21 06:44:45 -07:00
|
|
|
default: NodeParameterValueType;
|
2019-06-23 03:35:23 -07:00
|
|
|
description?: string;
|
2022-01-27 22:55:25 -08:00
|
|
|
hint?: string;
|
2019-06-23 03:35:23 -07:00
|
|
|
displayOptions?: IDisplayOptions;
|
2021-02-20 04:51:06 -08:00
|
|
|
options?: Array<INodePropertyOptions | INodeProperties | INodePropertyCollection>;
|
2019-06-23 03:35:23 -07:00
|
|
|
placeholder?: string;
|
|
|
|
isNodeSetting?: boolean;
|
|
|
|
noDataExpression?: boolean;
|
|
|
|
required?: boolean;
|
2022-02-05 13:55:43 -08:00
|
|
|
routing?: INodePropertyRouting;
|
2022-05-24 02:36:19 -07:00
|
|
|
credentialTypes?: Array<
|
|
|
|
'extends:oAuth2Api' | 'extends:oAuth1Api' | 'has:authenticate' | 'has:genericAuth'
|
|
|
|
>;
|
2022-09-21 06:44:45 -07:00
|
|
|
extractValue?: INodePropertyValueExtractor;
|
|
|
|
modes?: INodePropertyMode[];
|
2023-01-30 03:42:08 -08:00
|
|
|
requiresDataPath?: 'single' | 'multiple';
|
2023-07-26 08:56:59 -07:00
|
|
|
doNotInherit?: boolean;
|
2023-09-19 03:16:35 -07:00
|
|
|
// set expected type for the value which would be used for validation and type casting
|
|
|
|
validateType?: FieldType;
|
|
|
|
// works only if validateType is set
|
|
|
|
// allows to skip validation during execution or set custom validation/casting logic inside node
|
|
|
|
// inline error messages would still be shown in UI
|
|
|
|
ignoreValidationDuringExecution?: boolean;
|
2022-09-21 06:44:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodePropertyModeTypeOptions {
|
|
|
|
searchListMethod?: string; // Supported by: options
|
|
|
|
searchFilterRequired?: boolean;
|
|
|
|
searchable?: boolean;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
2022-09-21 06:44:45 -07:00
|
|
|
|
|
|
|
export interface INodePropertyMode {
|
|
|
|
displayName: string;
|
|
|
|
name: string;
|
|
|
|
type: 'string' | 'list';
|
|
|
|
hint?: string;
|
|
|
|
validation?: Array<
|
|
|
|
INodePropertyModeValidation | { (this: IExecuteSingleFunctions, value: string): void }
|
|
|
|
>;
|
|
|
|
placeholder?: string;
|
|
|
|
url?: string;
|
|
|
|
extractValue?: INodePropertyValueExtractor;
|
|
|
|
initType?: string;
|
|
|
|
entryTypes?: {
|
|
|
|
[name: string]: {
|
|
|
|
selectable?: boolean;
|
|
|
|
hidden?: boolean;
|
|
|
|
queryable?: boolean;
|
|
|
|
data?: {
|
|
|
|
request?: IHttpRequestOptions;
|
|
|
|
output?: INodeRequestOutput;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
search?: INodePropertyRouting;
|
|
|
|
typeOptions?: INodePropertyModeTypeOptions;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodePropertyModeValidation {
|
|
|
|
type: string;
|
|
|
|
properties: {};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodePropertyRegexValidation extends INodePropertyModeValidation {
|
|
|
|
type: 'regex';
|
|
|
|
properties: {
|
|
|
|
regex: string;
|
|
|
|
errorMessage: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface INodePropertyOptions {
|
|
|
|
name: string;
|
2021-12-03 00:44:16 -08:00
|
|
|
value: string | number | boolean;
|
2022-07-04 12:54:56 -07:00
|
|
|
action?: string;
|
2019-06-23 03:35:23 -07:00
|
|
|
description?: string;
|
2022-02-05 13:55:43 -08:00
|
|
|
routing?: INodePropertyRouting;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2022-09-21 06:44:45 -07:00
|
|
|
export interface INodeListSearchItems extends INodePropertyOptions {
|
|
|
|
icon?: string;
|
|
|
|
url?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodeListSearchResult {
|
|
|
|
results: INodeListSearchItems[];
|
|
|
|
paginationToken?: unknown;
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface INodePropertyCollection {
|
|
|
|
displayName: string;
|
|
|
|
name: string;
|
|
|
|
values: INodeProperties[];
|
|
|
|
}
|
|
|
|
|
2022-09-21 06:44:45 -07:00
|
|
|
export interface INodePropertyValueExtractorBase {
|
|
|
|
type: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodePropertyValueExtractorRegex extends INodePropertyValueExtractorBase {
|
|
|
|
type: 'regex';
|
|
|
|
regex: string | RegExp;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodePropertyValueExtractorFunction {
|
2023-07-28 09:28:17 -07:00
|
|
|
(
|
|
|
|
this: IExecuteSingleFunctions,
|
|
|
|
value: string | NodeParameterValue,
|
|
|
|
): Promise<string | NodeParameterValue> | (string | NodeParameterValue);
|
2022-09-21 06:44:45 -07:00
|
|
|
}
|
|
|
|
export type INodePropertyValueExtractor = INodePropertyValueExtractorRegex;
|
|
|
|
|
2019-07-13 10:50:41 -07:00
|
|
|
export interface IParameterDependencies {
|
|
|
|
[key: string]: string[];
|
|
|
|
}
|
|
|
|
|
2023-01-20 08:07:28 -08:00
|
|
|
export type IParameterLabel = {
|
|
|
|
size?: 'small' | 'medium';
|
|
|
|
};
|
|
|
|
|
2019-12-31 12:19:37 -08:00
|
|
|
export interface IPollResponse {
|
|
|
|
closeFunction?: () => Promise<void>;
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface ITriggerResponse {
|
|
|
|
closeFunction?: () => Promise<void>;
|
|
|
|
// To manually trigger the run
|
|
|
|
manualTriggerFunction?: () => Promise<void>;
|
|
|
|
// Gets added automatically at manual workflow runs resolves with
|
|
|
|
// the first emitted data
|
|
|
|
manualTriggerResponse?: Promise<INodeExecutionData[][]>;
|
|
|
|
}
|
|
|
|
|
2023-03-17 04:25:31 -07:00
|
|
|
export type WebhookSetupMethodNames = 'checkExists' | 'create' | 'delete';
|
|
|
|
|
2023-08-01 08:32:30 -07:00
|
|
|
export namespace MultiPartFormData {
|
|
|
|
export interface File {
|
|
|
|
filepath: string;
|
|
|
|
mimetype?: string;
|
|
|
|
originalFilename?: string;
|
|
|
|
newFilename: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type Request = express.Request<
|
|
|
|
{},
|
|
|
|
{},
|
|
|
|
{
|
|
|
|
data: Record<string, string | string[]>;
|
|
|
|
files: Record<string, File | File[]>;
|
|
|
|
}
|
|
|
|
>;
|
|
|
|
}
|
|
|
|
|
2023-10-02 08:33:43 -07:00
|
|
|
export interface SupplyData {
|
|
|
|
metadata?: IDataObject;
|
|
|
|
response: unknown;
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface INodeType {
|
|
|
|
description: INodeTypeDescription;
|
2023-10-20 01:52:56 -07:00
|
|
|
supplyData?(this: IExecuteFunctions, itemIndex: number): Promise<SupplyData>;
|
2022-08-30 08:55:33 -07:00
|
|
|
execute?(
|
|
|
|
this: IExecuteFunctions,
|
|
|
|
): Promise<INodeExecutionData[][] | NodeExecutionWithMetadata[][] | null>;
|
2019-12-31 12:19:37 -08:00
|
|
|
poll?(this: IPollFunctions): Promise<INodeExecutionData[][] | null>;
|
2019-06-23 03:35:23 -07:00
|
|
|
trigger?(this: ITriggerFunctions): Promise<ITriggerResponse | undefined>;
|
2019-10-11 04:02:44 -07:00
|
|
|
webhook?(this: IWebhookFunctions): Promise<IWebhookResponseData>;
|
2019-06-23 03:35:23 -07:00
|
|
|
methods?: {
|
|
|
|
loadOptions?: {
|
|
|
|
[key: string]: (this: ILoadOptionsFunctions) => Promise<INodePropertyOptions[]>;
|
|
|
|
};
|
2022-09-21 06:44:45 -07:00
|
|
|
listSearch?: {
|
|
|
|
[key: string]: (
|
|
|
|
this: ILoadOptionsFunctions,
|
|
|
|
filter?: string,
|
|
|
|
paginationToken?: string,
|
|
|
|
) => Promise<INodeListSearchResult>;
|
|
|
|
};
|
2021-09-11 01:15:36 -07:00
|
|
|
credentialTest?: {
|
2022-09-02 07:13:17 -07:00
|
|
|
// Contains a group of functions that test credentials.
|
2022-02-05 13:55:43 -08:00
|
|
|
[functionName: string]: ICredentialTestFunction;
|
2021-09-11 01:15:36 -07:00
|
|
|
};
|
feat(editor): Implement Resource Mapper component (#6207)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* feat(Google Sheets Node): Implement Resource mapper in Google Sheets node (#5752)
* ✨ Added initial resource mapping support in google sheets node
* ✨ Wired mapping API endpoint with node-specific logic for fetching mapping fields
* ✨ Implementing mapping fields logic for google sheets
* ✨ Updating Google Sheets execute methods to support resource mapper fields
* 🚧 Added initial version of `ResourceLocator` component
* 👌 Added `update` mode to resource mapper modes
* 👌 Addressing PR feedback
* 👌 Removing leftover const reference
* 👕 Fixing lint errors
* :zap: singlton for conections
* :zap: credentials test fix, clean up
* feat(Postgres Node): Add resource mapper to new version of Postgres node (#5814)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* ✨ Updated Postgres node to use resource mapper component
* ✨ Implemented postgres <-> resource mapper type mapping
* ✨ Updated Postgres node execution to use resource mapper fields in v3
* 🔥 Removing unused import
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
* feat(core): Resource editor componend P0 (#5970)
* ✨ Added inital value of mapping mode dropdown
* ✨ Finished mapping mode selector
* ✨ Finished implementing mapping mode selector
* ✨ Implemented 'Columns to match on' dropdown
* ✨ Implemented `loadOptionsDependOn` support in resource mapper
* ✨ Implemented initial version of mapping fields
* ✨ Implementing dependant fields watcher in new component setup
* ✨ Generating correct resource mapper field types. Added `supportAutoMap` to node specification and UI. Not showing fields with `display=false`. Pre-selecting matching columns if it's the only one
* ✨ Handling matching columns correctly in UI
* ✨ Saving and loading resourceMapper values in component
* ✨ Implemented proper data saving and loading
* ✨ ResourceMapper component refactor, fixing value save/load
* ✨ Refactoring MatchingColumnSelect component. Updating Sheets node to use single key match and Postgres to use multi key
* ✨ Updated Google Sheets node to work with the new UI
* ✨ Updating Postgres Node to work with new UI
* ✨ Additional loading indicator that shown if there is no mapping mode selector
* ✨ Removing hard-coded values, fixing matching columns ordering, refactoring
* ✨ Updating field names in nodes
* ✨ Fixing minor UI issues
* ✨ Implemented matching fields filter logic
* ✨ Moving loading label outside of fields list
* ✅ Added initial unit tests for resource mapper
* ✅ Finished default rendering test
* ✅ Test refactoring
* ✅ Finished unit tests
* 🔨 Updating the way i18n is used in resource mapper components
* ✔️ Fixing value to match on logic for postgres node
* ✨ Hiding mapping fields when auto-map mode is selected
* ✨ Syncing selected mapping mode between components
* ✨ Fixing dateTime input rendering and adding update check to Postgres node
* ✨ Properly handling database connections. Sending null for empty string values.
* 💄 Updated wording in the error message for non-existing rows
* ✨ Fixing issues with selected matching values
* ✔️ Updating unit tests after matching logic update
* ✨ Updating matching columns when new fields are loaded
* ✨ Defaulting to null for empty parameter values
* ✨ Allowing zero as valid value for number imputs
* ✨ Updated list of types that use datepicker as widger
* ✨ Using text inputs for time types
* ✨ Initial mapping field rework
* ✨ Added new component for mapping fields, moved bit of logic from root component to matching selector, fixing some lint errors
* ✨ Added tooltip for columns that cannot be deleted
* ✨ Saving deleted values in parameter value
* ✨ Implemented control to add/remove mapping fields
* ✨ Syncing field list with add field dropdown when changing dependent values
* ✨ Not showing removed fields in matching columns selector. Updating wording in matching columns selector description
* ✨ Implementing disabled states for add/remove all fields options
* ✨ Saving removed columns separately, updating copy
* ✨ Implemented resource mapper values validation
* ✨ Updated validation logic and error input styling
* ✨ Validating resource mapper fields when new nodes are added
* ✨ Using node field words in validation, refactoring resource mapper component
* ✨ Implemented schema syncing and add/remove all fields
* ✨ Implemented custom parameter actions
* ✨ Implemented loading indicator in parameter options
* 🔨 Removing unnecessary constants and vue props
* ✨ Handling default values properly
* ✨ Fixing validation logic
* 👕 Fixing lint errors
* ⚡ Fixing type issues
* ⚡ Not showing fields by default if `addAllFields` is set to `false`
* ✨ Implemented field type validation in resource mapper
* ✨ Updated casing in copy, removed all/remove all option from bottom menu
* ✨ Added auto mapping mode notice
* ✨ Added support for more types in validation
* ✨ Added support for enumerated values
* ✨ Fixing imports after merging
* ✨ Not showing removed fields in matching columns selector. Refactoring validation logic.
* 👕 Fixing imports
* ✔️ Updating unit tests
* ✅ Added resource mapper schema tests
* ⚡ Removing `match` from resource mapper field definition, fixing matching columns loading
* ⚡ Fixed schema merging
* :zap: update operation return data fix
* :zap: review
* 🐛 Added missing import
* 💄 Updating parameter actions icon based on the ui review
* 💄 Updating word capitalisation in tooltips
* 💄 Added empty state to mapping fields list
* 💄 Removing asterisk from fields, updating tooltips for matching fields
* ⚡ Preventing matching fields from being removed by 'Remove All option'
* ⚡ Not showing hidden fields in the `Add field` dropdown
* ⚡ Added support for custom matching columns labels
* :zap: query optimization
* :zap: fix
* ⚡ Optimizing Postgres node enumeration logic
* ⚡ Added empty state for matching columns
* ⚡ Only fully loading fields if there is no schema fetched
* ⚡ Hiding mapping fields if there is no matching columns available in the schema
* ✔️ Fixing minor issues
* ✨ Implemented runtime type validation
* 🔨 Refactoring validation logic
* ✨ Implemented required check, added more custom messages
* ✨ Skipping boolean type in required check
* Type check improvements
* ✨ Only reloading fields if dependent values actually change
* ✨ Adding item index to validation error title
* ✨ Updating Postgres fetching logic, using resource mapper mode to determine if a field can be deleted
* ✨ Resetting field values when adding them via the addAll option
* ⚡ Using minor version (2.2) for new Postgres node
* ⚡ Implemented proper date validation and type casting
* 👕 Consolidating typing
* ✅ Added unit tests for type validations
* 👌 Addressing front-end review comments
* ⚡ More refactoring to address review changes
* ⚡ Updating leftover props
* ⚡ Added fallback for ISO dates with invalid timezones
* Added timestamp to datetime test cases
* ⚡ Reseting matching columns if operation changes
* ⚡ Not forcing auto-increment fields to be filled in in Postgres node. Handling null values
* 💄 Added a custom message for invalid dates
* ⚡ Better handling of JSON values
* ⚡ Updating codemirror readonly stauts based on component property, handling objects in json validation
* Deleting leftover console.log
* ⚡ Better time validation
* ⚡ Fixing build error after merging
* 👕 Fixing lint error
* ⚡ Updating node configuration values
* ⚡ Handling postgres arrays better
* ⚡ Handling SQL array syntax
* ⚡ Updating time validation rules to include timezone
* ⚡ Sending expressions that resolve to `null` or `undefined` by the resource mapper to delete cell content in Google Sheets
* ⚡ Allowing removed fields to be selected for match
* ⚡ Updated the query for fetching unique columns and primary keys
* ⚡ Optimizing the unique query
* ⚡ Setting timezone to all parsed dates
* ⚡ Addressing PR review feedback
* ⚡ Configuring Sheets node for production, minor vue component update
* New cases added to the TypeValidation test.
* ✅ Tweaking validation rules for arrays/objects and updating test cases
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
2023-05-31 02:56:09 -07:00
|
|
|
resourceMapping?: {
|
|
|
|
[functionName: string]: (this: ILoadOptionsFunctions) => Promise<ResourceMapperFields>;
|
|
|
|
};
|
2019-06-23 03:35:23 -07:00
|
|
|
};
|
|
|
|
webhookMethods?: {
|
2023-03-17 04:25:31 -07:00
|
|
|
[name in IWebhookDescription['name']]?: {
|
|
|
|
[method in WebhookSetupMethodNames]: (this: IHookFunctions) => Promise<boolean>;
|
|
|
|
};
|
2019-06-23 03:35:23 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2023-07-04 07:17:50 -07:00
|
|
|
/**
|
|
|
|
* This class serves as the base for all nodes using the new context API
|
|
|
|
* having this as a class enables us to identify these instances at runtime
|
|
|
|
*/
|
|
|
|
export abstract class Node {
|
|
|
|
abstract description: INodeTypeDescription;
|
|
|
|
execute?(context: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
|
|
webhook?(context: IWebhookFunctions): Promise<IWebhookResponseData>;
|
|
|
|
}
|
|
|
|
|
2022-10-25 12:33:12 -07:00
|
|
|
export interface IVersionedNodeType {
|
2021-09-21 10:38:24 -07:00
|
|
|
nodeVersions: {
|
|
|
|
[key: number]: INodeType;
|
|
|
|
};
|
|
|
|
currentVersion: number;
|
|
|
|
description: INodeTypeBaseDescription;
|
|
|
|
getNodeType: (version?: number) => INodeType;
|
|
|
|
}
|
2022-02-05 13:55:43 -08:00
|
|
|
export interface INodeCredentialTestResult {
|
2021-09-11 01:15:36 -07:00
|
|
|
status: 'OK' | 'Error';
|
|
|
|
message: string;
|
|
|
|
}
|
|
|
|
|
2022-02-05 13:55:43 -08:00
|
|
|
export interface INodeCredentialTestRequest {
|
2021-09-11 01:15:36 -07:00
|
|
|
credentials: ICredentialsDecrypted;
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface INodeCredentialDescription {
|
|
|
|
name: string;
|
|
|
|
required?: boolean;
|
|
|
|
displayOptions?: IDisplayOptions;
|
2022-02-05 13:55:43 -08:00
|
|
|
testedBy?: ICredentialTestRequest | string; // Name of a function inside `loadOptions.credentialTest`
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2023-10-02 08:33:43 -07:00
|
|
|
export type INodeIssueTypes = 'credentials' | 'execution' | 'input' | 'parameters' | 'typeUnknown';
|
2019-06-23 03:35:23 -07:00
|
|
|
|
|
|
|
export interface INodeIssueObjectProperty {
|
|
|
|
[key: string]: string[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodeIssueData {
|
|
|
|
node: string;
|
|
|
|
type: INodeIssueTypes;
|
|
|
|
value: boolean | string | string[] | INodeIssueObjectProperty;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodeIssues {
|
|
|
|
execution?: boolean;
|
|
|
|
credentials?: INodeIssueObjectProperty;
|
2023-10-02 08:33:43 -07:00
|
|
|
input?: INodeIssueObjectProperty;
|
2019-06-23 03:35:23 -07:00
|
|
|
parameters?: INodeIssueObjectProperty;
|
|
|
|
typeUnknown?: boolean;
|
|
|
|
[key: string]: undefined | boolean | INodeIssueObjectProperty;
|
|
|
|
}
|
|
|
|
|
2022-11-30 03:16:19 -08:00
|
|
|
export interface IWorkflowIssues {
|
2019-06-23 03:35:23 -07:00
|
|
|
[key: string]: INodeIssues;
|
|
|
|
}
|
|
|
|
|
2021-09-21 10:38:24 -07:00
|
|
|
export interface INodeTypeBaseDescription {
|
2019-06-23 03:35:23 -07:00
|
|
|
displayName: string;
|
|
|
|
name: string;
|
|
|
|
icon?: string;
|
2022-11-23 07:20:28 -08:00
|
|
|
iconUrl?: string;
|
2023-11-13 03:11:16 -08:00
|
|
|
badgeIconUrl?: string;
|
2019-06-23 03:35:23 -07:00
|
|
|
group: string[];
|
|
|
|
description: string;
|
2020-11-09 03:23:53 -08:00
|
|
|
documentationUrl?: string;
|
2021-09-21 10:38:24 -07:00
|
|
|
subtitle?: string;
|
|
|
|
defaultVersion?: number;
|
|
|
|
codex?: CodexData;
|
2022-10-13 05:28:02 -07:00
|
|
|
parameterPane?: 'wide';
|
2022-09-15 01:52:24 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether the node must be hidden in the node creator panel,
|
|
|
|
* due to deprecation or as a special case (e.g. Start node)
|
|
|
|
*/
|
|
|
|
hidden?: true;
|
2021-09-21 10:38:24 -07:00
|
|
|
}
|
|
|
|
|
2022-02-05 13:55:43 -08:00
|
|
|
export interface INodePropertyRouting {
|
|
|
|
operations?: IN8nRequestOperations; // Should be changed, does not sound right
|
|
|
|
output?: INodeRequestOutput;
|
2022-07-20 04:50:16 -07:00
|
|
|
request?: DeclarativeRestApiSettings.HttpRequestOptions;
|
2022-02-05 13:55:43 -08:00
|
|
|
send?: INodeRequestSend;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type PostReceiveAction =
|
|
|
|
| ((
|
|
|
|
this: IExecuteSingleFunctions,
|
|
|
|
items: INodeExecutionData[],
|
|
|
|
response: IN8nHttpFullResponse,
|
|
|
|
) => Promise<INodeExecutionData[]>)
|
|
|
|
| IPostReceiveBinaryData
|
2022-12-15 16:05:42 -08:00
|
|
|
| IPostReceiveFilter
|
2022-08-03 09:08:51 -07:00
|
|
|
| IPostReceiveLimit
|
2022-02-05 13:55:43 -08:00
|
|
|
| IPostReceiveRootProperty
|
|
|
|
| IPostReceiveSet
|
|
|
|
| IPostReceiveSetKeyValue
|
|
|
|
| IPostReceiveSort;
|
|
|
|
|
|
|
|
export type PreSendAction = (
|
|
|
|
this: IExecuteSingleFunctions,
|
|
|
|
requestOptions: IHttpRequestOptions,
|
|
|
|
) => Promise<IHttpRequestOptions>;
|
|
|
|
|
|
|
|
export interface INodeRequestOutput {
|
|
|
|
maxResults?: number | string;
|
|
|
|
postReceive?: PostReceiveAction[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodeRequestSend {
|
|
|
|
preSend?: PreSendAction[];
|
|
|
|
paginate?: boolean | string; // Where should this life?
|
|
|
|
property?: string; // Maybe: propertyName, destinationProperty?
|
|
|
|
propertyInDotNotation?: boolean; // Enabled by default
|
|
|
|
type?: 'body' | 'query';
|
|
|
|
value?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IPostReceiveBase {
|
|
|
|
type: string;
|
2022-07-26 05:43:36 -07:00
|
|
|
enabled?: boolean | string;
|
2022-02-05 13:55:43 -08:00
|
|
|
properties: {
|
2022-12-15 16:05:42 -08:00
|
|
|
[key: string]: string | number | boolean | IDataObject;
|
2022-02-05 13:55:43 -08:00
|
|
|
};
|
|
|
|
errorMessage?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IPostReceiveBinaryData extends IPostReceiveBase {
|
|
|
|
type: 'binaryData';
|
|
|
|
properties: {
|
|
|
|
destinationProperty: string;
|
2022-12-15 16:05:42 -08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IPostReceiveFilter extends IPostReceiveBase {
|
|
|
|
type: 'filter';
|
|
|
|
properties: {
|
|
|
|
pass: boolean | string;
|
2022-02-05 13:55:43 -08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2022-08-03 09:08:51 -07:00
|
|
|
export interface IPostReceiveLimit extends IPostReceiveBase {
|
|
|
|
type: 'limit';
|
|
|
|
properties: {
|
|
|
|
maxResults: number | string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2022-02-05 13:55:43 -08:00
|
|
|
export interface IPostReceiveRootProperty extends IPostReceiveBase {
|
|
|
|
type: 'rootProperty';
|
|
|
|
properties: {
|
|
|
|
property: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IPostReceiveSet extends IPostReceiveBase {
|
|
|
|
type: 'set';
|
|
|
|
properties: {
|
|
|
|
value: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IPostReceiveSetKeyValue extends IPostReceiveBase {
|
|
|
|
type: 'setKeyValue';
|
|
|
|
properties: {
|
|
|
|
[key: string]: string | number;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IPostReceiveSort extends IPostReceiveBase {
|
|
|
|
type: 'sort';
|
|
|
|
properties: {
|
|
|
|
key: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2023-10-02 08:33:43 -07:00
|
|
|
export type ConnectionTypes =
|
2023-11-28 07:47:28 -08:00
|
|
|
| 'ai_agent'
|
2023-10-02 08:33:43 -07:00
|
|
|
| 'ai_chain'
|
|
|
|
| 'ai_document'
|
|
|
|
| 'ai_embedding'
|
|
|
|
| 'ai_languageModel'
|
|
|
|
| 'ai_memory'
|
|
|
|
| 'ai_outputParser'
|
|
|
|
| 'ai_retriever'
|
|
|
|
| 'ai_textSplitter'
|
|
|
|
| 'ai_tool'
|
|
|
|
| 'ai_vectorRetriever'
|
|
|
|
| 'ai_vectorStore'
|
|
|
|
| 'main';
|
|
|
|
|
|
|
|
export const enum NodeConnectionType {
|
2023-11-28 07:47:28 -08:00
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
AiAgent = 'ai_agent',
|
2023-10-02 08:33:43 -07:00
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
AiChain = 'ai_chain',
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
AiDocument = 'ai_document',
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
AiEmbedding = 'ai_embedding',
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
AiLanguageModel = 'ai_languageModel',
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
AiMemory = 'ai_memory',
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
AiOutputParser = 'ai_outputParser',
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
AiRetriever = 'ai_retriever',
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
AiTextSplitter = 'ai_textSplitter',
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
AiTool = 'ai_tool',
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
AiVectorStore = 'ai_vectorStore',
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
|
|
Main = 'main',
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodeInputFilter {
|
|
|
|
// TODO: Later add more filter options like categories, subcatogries,
|
|
|
|
// regex, allow to exclude certain nodes, ... ?
|
|
|
|
// Potentially change totally after alpha/beta. Is not a breaking change after all.
|
|
|
|
nodes: string[]; // Allowed nodes
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodeInputConfiguration {
|
|
|
|
displayName?: string;
|
|
|
|
maxConnections?: number;
|
|
|
|
required?: boolean;
|
|
|
|
filter?: INodeInputFilter;
|
|
|
|
type: ConnectionTypes;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodeOutputConfiguration {
|
2023-10-30 10:42:47 -07:00
|
|
|
category?: string;
|
2023-10-02 08:33:43 -07:00
|
|
|
displayName?: string;
|
|
|
|
required?: boolean;
|
|
|
|
type: ConnectionTypes;
|
|
|
|
}
|
|
|
|
|
2021-09-21 10:38:24 -07:00
|
|
|
export interface INodeTypeDescription extends INodeTypeBaseDescription {
|
2022-04-28 10:04:09 -07:00
|
|
|
version: number | number[];
|
2021-09-21 10:38:24 -07:00
|
|
|
defaults: INodeParameters;
|
:sparkles: Improve Waiting Webhook call state in WF Canvas (#2430)
* N8N-2586 Improve Waiting Webhook call state in WF Canvas
* N8N-2586 Added watcher for showing Webhook's Node Tooltip on execution
* N8N-2586 Show helping tooltip for trigger node if wokrflow is running, it is a trigger node, if it is only one trigger node in WF
* N8N-2586 Rework/Move logic to computed property, Created getter for ActveTriggerNodesInWokrflow, Add style to trigger node's tooltip, remove comments
* N8N-2586 Added EventTriggerDescription prop in INodeTypeDescription Interface, Updated Logic for TriggerNode Tooltip based on the new prop
* N8N-2586 Add new use cases/watcher to show Trigger Nodes Tooltip / If has issues, if paused, if wokrlfow is running, Refactor Getter
* N8N-2586 Added z-index to tooltip, Added new Scenario for Tooltip if it is Draged&Droped on the WF
* N8N-2586 Refactor computed property for draged nodes
* N8N-2586 Fixed Conflicts
* N8N-2586 Fixed Tooltip
* N8N-2586 Dont show tooltip on core trigger nodes that execute automatically
* N8N-2586 Fixed Webhook tooltip when adding/deleting canvas during WF execution
* N8N-2586 Updated Logic, Simplify the code
* N8N-2586 Simplify Code
* N8N-2586 Added check for nodetype
* update dragging to use local state
* N8N-2586 Added eventTriggerDescription to Interval Node
* add comment, use new getter
* update to always check
Co-authored-by: Mutasem <mutdmour@gmail.com>
2021-11-25 14:33:41 -08:00
|
|
|
eventTriggerDescription?: string;
|
2022-01-21 09:00:00 -08:00
|
|
|
activationMessage?: string;
|
2023-10-02 08:33:43 -07:00
|
|
|
inputs: Array<ConnectionTypes | INodeInputConfiguration> | string;
|
2023-07-05 09:47:34 -07:00
|
|
|
requiredInputs?: string | number[] | number; // Ony available with executionOrder => "v1"
|
2019-08-02 06:56:05 -07:00
|
|
|
inputNames?: string[];
|
2023-10-02 08:33:43 -07:00
|
|
|
outputs: Array<ConnectionTypes | INodeInputConfiguration> | string;
|
2019-06-23 03:35:23 -07:00
|
|
|
outputNames?: string[];
|
|
|
|
properties: INodeProperties[];
|
|
|
|
credentials?: INodeCredentialDescription[];
|
|
|
|
maxNodes?: number; // How many nodes of that type can be created in a workflow
|
2023-11-22 08:49:56 -08:00
|
|
|
polling?: true | undefined;
|
|
|
|
supportsCORS?: true | undefined;
|
2022-07-20 04:50:16 -07:00
|
|
|
requestDefaults?: DeclarativeRestApiSettings.HttpRequestOptions;
|
2022-02-05 13:55:43 -08:00
|
|
|
requestOperations?: IN8nRequestOperations;
|
2019-06-23 03:35:23 -07:00
|
|
|
hooks?: {
|
|
|
|
[key: string]: INodeHookDescription[] | undefined;
|
|
|
|
activate?: INodeHookDescription[];
|
|
|
|
deactivate?: INodeHookDescription[];
|
|
|
|
};
|
|
|
|
webhooks?: IWebhookDescription[];
|
2021-11-15 02:19:43 -08:00
|
|
|
translation?: { [key: string]: object };
|
2022-06-20 12:39:24 -07:00
|
|
|
mockManualExecution?: true;
|
|
|
|
triggerPanel?: {
|
|
|
|
header?: string;
|
|
|
|
executionsHelp?:
|
|
|
|
| string
|
|
|
|
| {
|
|
|
|
active: string;
|
|
|
|
inactive: string;
|
|
|
|
};
|
|
|
|
activationHint?:
|
|
|
|
| string
|
|
|
|
| {
|
|
|
|
active: string;
|
|
|
|
inactive: string;
|
|
|
|
};
|
|
|
|
};
|
2023-11-13 03:11:16 -08:00
|
|
|
extendsCredential?: string;
|
2023-04-12 06:46:11 -07:00
|
|
|
__loadOptionsMethods?: string[]; // only for validation during build
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodeHookDescription {
|
|
|
|
method: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IWebhookData {
|
2023-08-01 08:32:30 -07:00
|
|
|
httpMethod: IHttpRequestMethods;
|
2019-06-23 03:35:23 -07:00
|
|
|
node: string;
|
|
|
|
path: string;
|
|
|
|
webhookDescription: IWebhookDescription;
|
2020-01-22 15:06:43 -08:00
|
|
|
workflowId: string;
|
2019-06-23 03:35:23 -07:00
|
|
|
workflowExecuteAdditionalData: IWorkflowExecuteAdditionalData;
|
2021-01-23 11:00:32 -08:00
|
|
|
webhookId?: string;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IWebhookDescription {
|
2023-08-01 08:32:30 -07:00
|
|
|
[key: string]: IHttpRequestMethods | WebhookResponseMode | boolean | string | undefined;
|
|
|
|
httpMethod: IHttpRequestMethods | string;
|
2020-06-10 06:39:15 -07:00
|
|
|
isFullPath?: boolean;
|
2023-03-17 04:25:31 -07:00
|
|
|
name: 'default' | 'setup';
|
2019-06-23 03:35:23 -07:00
|
|
|
path: string;
|
|
|
|
responseBinaryPropertyName?: string;
|
2019-10-16 05:01:39 -07:00
|
|
|
responseContentType?: string;
|
|
|
|
responsePropertyName?: string;
|
2019-08-28 08:16:09 -07:00
|
|
|
responseMode?: WebhookResponseMode | string;
|
|
|
|
responseData?: WebhookResponseData | string;
|
2021-08-21 05:11:32 -07:00
|
|
|
restartWebhook?: boolean;
|
2023-10-16 21:09:30 -07:00
|
|
|
ndvHideUrl?: boolean; // If true the webhook will not be displayed in the editor
|
|
|
|
ndvHideMethod?: boolean; // If true the method will not be displayed in the editor
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2023-04-19 04:09:46 -07:00
|
|
|
export interface ProxyInput {
|
|
|
|
all: () => INodeExecutionData[];
|
|
|
|
context: any;
|
|
|
|
first: () => INodeExecutionData | undefined;
|
|
|
|
item: INodeExecutionData | undefined;
|
|
|
|
last: () => INodeExecutionData | undefined;
|
|
|
|
params?: INodeParameters;
|
|
|
|
}
|
|
|
|
|
2019-09-04 05:53:39 -07:00
|
|
|
export interface IWorkflowDataProxyData {
|
2021-12-23 02:41:46 -08:00
|
|
|
[key: string]: any;
|
2023-04-19 04:09:46 -07:00
|
|
|
$binary: INodeExecutionData['binary'];
|
2019-09-04 05:53:39 -07:00
|
|
|
$data: any;
|
|
|
|
$env: any;
|
2023-04-19 04:09:46 -07:00
|
|
|
$evaluateExpression: (expression: string, itemIndex?: number) => NodeParameterValueType;
|
|
|
|
$item: (itemIndex: number, runIndex?: number) => IWorkflowDataProxyData;
|
|
|
|
$items: (nodeName?: string, outputIndex?: number, runIndex?: number) => INodeExecutionData[];
|
|
|
|
$json: INodeExecutionData['json'];
|
2019-09-04 05:53:39 -07:00
|
|
|
$node: any;
|
2023-04-19 04:09:46 -07:00
|
|
|
$parameter: INodeParameters;
|
|
|
|
$position: number;
|
2020-03-21 09:25:29 -07:00
|
|
|
$workflow: any;
|
2022-03-13 01:34:44 -08:00
|
|
|
$: any;
|
2023-04-19 04:09:46 -07:00
|
|
|
$input: ProxyInput;
|
2022-03-13 01:34:44 -08:00
|
|
|
$thisItem: any;
|
|
|
|
$thisRunIndex: number;
|
|
|
|
$thisItemIndex: number;
|
|
|
|
$now: any;
|
|
|
|
$today: any;
|
2023-10-30 10:42:47 -07:00
|
|
|
$getPairedItem: (
|
|
|
|
destinationNodeName: string,
|
|
|
|
incomingSourceData: ISourceData | null,
|
|
|
|
pairedItem: IPairedItemData,
|
|
|
|
) => INodeExecutionData | null;
|
2022-10-31 04:45:34 -07:00
|
|
|
constructor: any;
|
2019-09-04 05:53:39 -07:00
|
|
|
}
|
|
|
|
|
2022-02-05 13:55:43 -08:00
|
|
|
export type IWorkflowDataProxyAdditionalKeys = IDataObject;
|
2021-08-21 05:11:32 -07:00
|
|
|
|
2020-02-15 17:07:01 -08:00
|
|
|
export interface IWorkflowMetadata {
|
2023-01-02 08:42:32 -08:00
|
|
|
id?: string;
|
2020-02-15 17:07:01 -08:00
|
|
|
name?: string;
|
|
|
|
active: boolean;
|
|
|
|
}
|
|
|
|
|
2019-10-11 04:02:44 -07:00
|
|
|
export interface IWebhookResponseData {
|
2019-06-23 03:35:23 -07:00
|
|
|
workflowData?: INodeExecutionData[][];
|
|
|
|
webhookResponse?: any;
|
|
|
|
noWebhookResponse?: boolean;
|
|
|
|
}
|
|
|
|
|
2022-02-19 03:37:41 -08:00
|
|
|
export type WebhookResponseData = 'allEntries' | 'firstEntryJson' | 'firstEntryBinary' | 'noData';
|
2019-06-23 03:35:23 -07:00
|
|
|
export type WebhookResponseMode = 'onReceived' | 'lastNode';
|
|
|
|
|
|
|
|
export interface INodeTypes {
|
2022-11-30 01:28:18 -08:00
|
|
|
getByName(nodeType: string): INodeType | IVersionedNodeType;
|
|
|
|
getByNameAndVersion(nodeType: string, version?: number): INodeType;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2022-11-30 03:16:19 -08:00
|
|
|
export type LoadingDetails = {
|
2022-11-23 07:20:28 -08:00
|
|
|
className: string;
|
|
|
|
sourcePath: string;
|
|
|
|
};
|
|
|
|
|
2022-11-30 01:28:18 -08:00
|
|
|
export type CredentialLoadingDetails = LoadingDetails & {
|
2023-11-13 03:11:16 -08:00
|
|
|
supportedNodes?: string[];
|
2023-07-10 08:57:26 -07:00
|
|
|
extends?: string[];
|
2022-11-30 01:28:18 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
export type NodeLoadingDetails = LoadingDetails;
|
|
|
|
|
2022-11-23 07:20:28 -08:00
|
|
|
export type KnownNodesAndCredentials = {
|
2022-11-30 01:28:18 -08:00
|
|
|
nodes: Record<string, NodeLoadingDetails>;
|
|
|
|
credentials: Record<string, CredentialLoadingDetails>;
|
2022-11-23 07:20:28 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
export interface LoadedClass<T> {
|
|
|
|
sourcePath: string;
|
|
|
|
type: T;
|
2022-02-05 13:55:43 -08:00
|
|
|
}
|
|
|
|
|
2022-11-23 07:20:28 -08:00
|
|
|
type LoadedData<T> = Record<string, LoadedClass<T>>;
|
|
|
|
export type ICredentialTypeData = LoadedData<ICredentialType>;
|
|
|
|
export type INodeTypeData = LoadedData<INodeType | IVersionedNodeType>;
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface IRun {
|
|
|
|
data: IRunExecutionData;
|
|
|
|
finished?: boolean;
|
|
|
|
mode: WorkflowExecuteMode;
|
2023-03-30 02:12:29 -07:00
|
|
|
waitTill?: Date | null;
|
2019-07-22 11:29:06 -07:00
|
|
|
startedAt: Date;
|
2021-02-08 23:59:32 -08:00
|
|
|
stoppedAt?: Date;
|
2023-02-17 01:54:07 -08:00
|
|
|
status: ExecutionStatus;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Contains all the data which is needed to execute a workflow and so also to
|
|
|
|
// start restart it again after it did fail.
|
|
|
|
// The RunData, ExecuteData and WaitForExecution contain often the same data.
|
|
|
|
export interface IRunExecutionData {
|
|
|
|
startData?: {
|
|
|
|
destinationNode?: string;
|
|
|
|
runNodeFilter?: string[];
|
|
|
|
};
|
|
|
|
resultData: {
|
2021-04-16 09:33:36 -07:00
|
|
|
error?: ExecutionError;
|
2019-06-23 03:35:23 -07:00
|
|
|
runData: IRunData;
|
2022-07-22 03:19:45 -07:00
|
|
|
pinData?: IPinData;
|
2019-06-23 03:35:23 -07:00
|
|
|
lastNodeExecuted?: string;
|
2023-03-23 10:07:46 -07:00
|
|
|
metadata?: Record<string, string>;
|
2019-06-23 03:35:23 -07:00
|
|
|
};
|
|
|
|
executionData?: {
|
|
|
|
contextData: IExecuteContextData;
|
|
|
|
nodeExecutionStack: IExecuteData[];
|
2023-10-02 08:33:43 -07:00
|
|
|
metadata: {
|
|
|
|
// node-name: metadata by runIndex
|
|
|
|
[key: string]: ITaskMetadata[];
|
|
|
|
};
|
2019-06-23 03:35:23 -07:00
|
|
|
waitingExecution: IWaitingForExecution;
|
2022-06-03 08:25:07 -07:00
|
|
|
waitingExecutionSource: IWaitingForExecutionSource | null;
|
2019-06-23 03:35:23 -07:00
|
|
|
};
|
2021-08-21 05:11:32 -07:00
|
|
|
waitTill?: Date;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IRunData {
|
|
|
|
// node-name: result-data
|
|
|
|
[key: string]: ITaskData[];
|
|
|
|
}
|
|
|
|
|
2023-10-02 08:33:43 -07:00
|
|
|
export interface ITaskSubRunMetadata {
|
|
|
|
node: string;
|
|
|
|
runIndex: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ITaskMetadata {
|
|
|
|
subRun?: ITaskSubRunMetadata[];
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
// The data that gets returned when a node runs
|
|
|
|
export interface ITaskData {
|
|
|
|
startTime: number;
|
|
|
|
executionTime: number;
|
2023-02-17 01:54:07 -08:00
|
|
|
executionStatus?: ExecutionStatus;
|
2019-06-23 03:35:23 -07:00
|
|
|
data?: ITaskDataConnections;
|
2023-10-02 08:33:43 -07:00
|
|
|
inputOverride?: ITaskDataConnections;
|
2021-04-16 09:33:36 -07:00
|
|
|
error?: ExecutionError;
|
2022-06-03 08:25:07 -07:00
|
|
|
source: Array<ISourceData | null>; // Is an array as nodes have multiple inputs
|
2023-10-02 08:33:43 -07:00
|
|
|
metadata?: ITaskMetadata;
|
2022-06-03 08:25:07 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ISourceData {
|
|
|
|
previousNode: string;
|
|
|
|
previousNodeOutput?: number; // If undefined "0" gets used
|
|
|
|
previousNodeRun?: number; // If undefined "0" gets used
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2022-09-02 07:13:17 -07:00
|
|
|
// The data for all the different kind of connections (like main) and all the indexes
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface ITaskDataConnections {
|
|
|
|
// Key for each input type and because there can be multiple inputs of the same type it is an array
|
2022-09-02 07:13:17 -07:00
|
|
|
// null is also allowed because if we still need data for a later while executing the workflow set temporary to null
|
2019-06-23 03:35:23 -07:00
|
|
|
// the nodes get as input TaskDataConnections which is identical to this one except that no null is allowed.
|
|
|
|
[key: string]: Array<INodeExecutionData[] | null>;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Keeps data while workflow gets executed and allows when provided to restart execution
|
|
|
|
export interface IWaitingForExecution {
|
|
|
|
// Node name
|
|
|
|
[key: string]: {
|
|
|
|
// Run index
|
|
|
|
[key: number]: ITaskDataConnections;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2022-06-03 08:25:07 -07:00
|
|
|
export interface ITaskDataConnectionsSource {
|
|
|
|
// Key for each input type and because there can be multiple inputs of the same type it is an array
|
2022-09-02 07:13:17 -07:00
|
|
|
// null is also allowed because if we still need data for a later while executing the workflow set temporary to null
|
2022-06-03 08:25:07 -07:00
|
|
|
// the nodes get as input TaskDataConnections which is identical to this one except that no null is allowed.
|
|
|
|
[key: string]: Array<ISourceData | null>;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IWaitingForExecutionSource {
|
|
|
|
// Node name
|
|
|
|
[key: string]: {
|
|
|
|
// Run index
|
|
|
|
[key: number]: ITaskDataConnectionsSource;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-12-19 14:07:55 -08:00
|
|
|
export interface IWorkflowBase {
|
2023-01-02 08:42:32 -08:00
|
|
|
id?: string;
|
2019-12-19 14:07:55 -08:00
|
|
|
name: string;
|
|
|
|
active: boolean;
|
|
|
|
createdAt: Date;
|
|
|
|
updatedAt: Date;
|
|
|
|
nodes: INode[];
|
|
|
|
connections: IConnections;
|
|
|
|
settings?: IWorkflowSettings;
|
|
|
|
staticData?: IDataObject;
|
2022-07-22 03:19:45 -07:00
|
|
|
pinData?: IPinData;
|
2023-05-31 06:01:57 -07:00
|
|
|
versionId?: string;
|
2019-12-19 14:07:55 -08:00
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface IWorkflowCredentials {
|
2021-10-13 15:21:00 -07:00
|
|
|
[credentialType: string]: {
|
|
|
|
[id: string]: ICredentialsEncrypted;
|
2019-06-23 03:35:23 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IWorkflowExecuteHooks {
|
2019-08-08 11:38:25 -07:00
|
|
|
[key: string]: Array<(...args: any[]) => Promise<void>> | undefined;
|
2021-02-08 23:59:32 -08:00
|
|
|
nodeExecuteAfter?: Array<
|
|
|
|
(nodeName: string, data: ITaskData, executionData: IRunExecutionData) => Promise<void>
|
|
|
|
>;
|
2019-08-08 11:38:25 -07:00
|
|
|
nodeExecuteBefore?: Array<(nodeName: string) => Promise<void>>;
|
|
|
|
workflowExecuteAfter?: Array<(data: IRun, newStaticData: IDataObject) => Promise<void>>;
|
2020-11-13 14:31:27 -08:00
|
|
|
workflowExecuteBefore?: Array<(workflow: Workflow, data: IRunExecutionData) => Promise<void>>;
|
2021-11-05 09:45:51 -07:00
|
|
|
sendResponse?: Array<(response: IExecuteResponsePromiseData) => Promise<void>>;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IWorkflowExecuteAdditionalData {
|
2020-01-25 23:48:38 -08:00
|
|
|
credentialsHelper: ICredentialsHelper;
|
2021-02-20 04:51:06 -08:00
|
|
|
executeWorkflow: (
|
|
|
|
workflowInfo: IExecuteWorkflowInfo,
|
|
|
|
additionalData: IWorkflowExecuteAdditionalData,
|
2022-12-21 07:42:07 -08:00
|
|
|
options: {
|
2023-12-06 04:27:11 -08:00
|
|
|
node?: INode;
|
2022-08-12 05:31:11 -07:00
|
|
|
parentWorkflowId?: string;
|
|
|
|
inputData?: INodeExecutionData[];
|
|
|
|
parentExecutionId?: string;
|
|
|
|
loadedWorkflowData?: IWorkflowBase;
|
|
|
|
loadedRunData?: any;
|
|
|
|
parentWorkflowSettings?: IWorkflowSettings;
|
|
|
|
},
|
2021-02-20 04:51:06 -08:00
|
|
|
) => Promise<any>;
|
2021-08-21 05:11:32 -07:00
|
|
|
executionId?: string;
|
2023-04-06 01:18:19 -07:00
|
|
|
restartExecutionId?: string;
|
2019-12-19 14:07:55 -08:00
|
|
|
hooks?: WorkflowHooks;
|
2019-06-23 03:35:23 -07:00
|
|
|
httpResponse?: express.Response;
|
|
|
|
httpRequest?: express.Request;
|
2019-12-19 14:07:55 -08:00
|
|
|
restApiUrl: string;
|
2023-07-10 06:03:21 -07:00
|
|
|
instanceBaseUrl: string;
|
2023-02-17 01:54:07 -08:00
|
|
|
setExecutionStatus?: (status: ExecutionStatus) => void;
|
2023-10-02 08:33:43 -07:00
|
|
|
sendDataToUI?: (type: string, data: IDataObject | IDataObject[]) => void;
|
2019-06-23 03:35:23 -07:00
|
|
|
webhookBaseUrl: string;
|
2021-08-21 05:11:32 -07:00
|
|
|
webhookWaitingBaseUrl: string;
|
2019-06-23 03:35:23 -07:00
|
|
|
webhookTestBaseUrl: string;
|
2021-02-20 04:51:06 -08:00
|
|
|
currentNodeParameters?: INodeParameters;
|
2021-04-17 07:44:07 -07:00
|
|
|
executionTimeoutTimestamp?: number;
|
feat: Add User Management (#2636)
* ✅ adjust tests
* 🛠 refactor user invites to be indempotent (#2791)
* 🔐 Encrypt SMTP pass for user management backend (#2793)
* :package: Add crypto-js to /cli
* :package: Update package-lock.json
* :sparkles: Create type for SMTP config
* :zap: Encrypt SMTP pass
* :zap: Update format for `userManagement.emails.mode`
* :zap: Update format for `binaryDataManager.mode`
* :zap: Update format for `logs.level`
* :fire: Remove logging
* :shirt: Fix lint
* 👰 n8n 2826 um wedding FE<>BE (#2789)
* remove mocks
* update authorization func
* lock down default role
* 🐛 fix requiring authentication for OPTIONS requests
* :bug: fix cors and cookie issues in dev
* update setup route
Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>
* update telemetry
* 🐛 preload role for users
* :bug: remove auth for password reset routes
* 🐛 fix forgot-password flow
* :zap: allow workflow tag disabling
* update telemetry init
* add reset
* clear error notifications on signin
* remove load settings from node view
* remove user id from user state
* inherit existing user props
* go back in history on button click
* use replace to force redirect
* update stories
* :zap: add env check for tag create
* :test_tube: Add `/users` tests for user management backend (#2790)
* :zap: Refactor users namespace
* :zap: Adjust fillout endpoint
* :zap: Refactor initTestServer arg
* :pencil2: Specify agent type
* :pencil2: Specify role type
* :zap: Tighten `/users/:id` check
* :sparkles: Add initial tests
* :truck: Reposition init server map
* :zap: Set constants in `validatePassword()`
* :zap: Tighten `/users/:id` check
* :zap: Improve checks in `/users/:id`
* :sparkles: Add tests for `/users/:id`
* :package: Update package-lock.json
* :zap: Simplify expectation
* :zap: Reuse util for authless agent
* :truck: Make role names consistent
* :blue_book: Tighten namespaces map type
* :fire: Remove unneeded default arg
* :sparkles: Add tests for `POST /users`
* :blue_book: Create test SMTP account type
* :pencil2: Improve wording
* :art: Formatting
* :fire: Remove temp fix
* :zap: Replace helper with config call
* :zap: Fix failing tests
* :fire: Remove outdated test
* :fire: Remove unused helper
* :zap: Increase readability of domain fetcher
* :zap: Refactor payload validation
* :fire: Remove repetition
* :rewind: Restore logging
* :zap: Initialize logger in tests
* :fire: Remove redundancy from check
* :truck: Move `globalOwnerRole` fetching to global scope
* :fire: Remove unused imports
* :truck: Move random utils to own module
* :truck: Move test types to own module
* :pencil2: Add dividers to utils
* :pencil2: Reorder `initTestServer` param docstring
* :pencil2: Add TODO comment
* :zap: Dry up member creation
* :zap: Tighten search criteria
* :test_tube: Add expectation to `GET /users`
* :zap: Create role fetcher utils
* :zap: Create one more role fetch util
* :fire: Remove unneeded DB query
* :test_tube: Add expectation to `POST /users`
* :test_tube: Add expectation to `DELETE /users/:id`
* :test_tube: Add another expectation to `DELETE /users/:id`
* :test_tube: Add expectations to `DELETE /users/:id`
* :test_tube: Adjust expectations in `POST /users/:id`
* :test_tube: Add expectations to `DELETE /users/:id`
* :shirt: Fix build
* :zap: Update method
* :blue_book: Fix `userToDelete` type
* :zap: Refactor `createAgent()`
* :zap: Make role fetching global
* :zap: Optimize roles fetching
* :zap: Centralize member creation
* :zap: Refactor truncation helper
* :test_tube: Add teardown to `DELETE /users/:id`
* :test_tube: Add DB expectations to users tests
* :fire: Remove pass validation due to hash
* :pencil2: Improve pass validation error message
* :zap: Improve owner pass validation
* :zap: Create logger initialization helper
* :zap: Optimize helpers
* :zap: Restructure `getAllRoles` helper
* :test_tube: Add password reset flow tests for user management backend (#2807)
* :zap: Refactor users namespace
* :zap: Adjust fillout endpoint
* :zap: Refactor initTestServer arg
* :pencil2: Specify agent type
* :pencil2: Specify role type
* :zap: Tighten `/users/:id` check
* :sparkles: Add initial tests
* :truck: Reposition init server map
* :zap: Set constants in `validatePassword()`
* :zap: Tighten `/users/:id` check
* :zap: Improve checks in `/users/:id`
* :sparkles: Add tests for `/users/:id`
* :package: Update package-lock.json
* :zap: Simplify expectation
* :zap: Reuse util for authless agent
* :truck: Make role names consistent
* :blue_book: Tighten namespaces map type
* :fire: Remove unneeded default arg
* :sparkles: Add tests for `POST /users`
* :blue_book: Create test SMTP account type
* :pencil2: Improve wording
* :art: Formatting
* :fire: Remove temp fix
* :zap: Replace helper with config call
* :zap: Fix failing tests
* :fire: Remove outdated test
* :sparkles: Add tests for password reset flow
* :pencil2: Fix test wording
* :zap: Set password reset namespace
* :fire: Remove unused helper
* :zap: Increase readability of domain fetcher
* :zap: Refactor payload validation
* :fire: Remove repetition
* :rewind: Restore logging
* :zap: Initialize logger in tests
* :fire: Remove redundancy from check
* :truck: Move `globalOwnerRole` fetching to global scope
* :fire: Remove unused imports
* :truck: Move random utils to own module
* :truck: Move test types to own module
* :pencil2: Add dividers to utils
* :pencil2: Reorder `initTestServer` param docstring
* :pencil2: Add TODO comment
* :zap: Dry up member creation
* :zap: Tighten search criteria
* :test_tube: Add expectation to `GET /users`
* :zap: Create role fetcher utils
* :zap: Create one more role fetch util
* :fire: Remove unneeded DB query
* :test_tube: Add expectation to `POST /users`
* :test_tube: Add expectation to `DELETE /users/:id`
* :test_tube: Add another expectation to `DELETE /users/:id`
* :test_tube: Add expectations to `DELETE /users/:id`
* :test_tube: Adjust expectations in `POST /users/:id`
* :test_tube: Add expectations to `DELETE /users/:id`
* :blue_book: Add namespace name to type
* :truck: Adjust imports
* :zap: Optimize `globalOwnerRole` fetching
* :test_tube: Add expectations
* :shirt: Fix build
* :shirt: Fix build
* :zap: Update method
* :zap: Update method
* :test_tube: Fix `POST /change-password` test
* :blue_book: Fix `userToDelete` type
* :zap: Refactor `createAgent()`
* :zap: Make role fetching global
* :zap: Optimize roles fetching
* :zap: Centralize member creation
* :zap: Refactor truncation helper
* :test_tube: Add teardown to `DELETE /users/:id`
* :test_tube: Add DB expectations to users tests
* :zap: Refactor as in users namespace
* :test_tube: Add expectation to `POST /change-password`
* :fire: Remove pass validation due to hash
* :pencil2: Improve pass validation error message
* :zap: Improve owner pass validation
* :zap: Create logger initialization helper
* :zap: Optimize helpers
* :zap: Restructure `getAllRoles` helper
* :zap: Update `truncate` calls
* :bug: return 200 for non-existing user
* ✅ fix tests for forgot-password and user creation
* Update packages/editor-ui/src/components/MainSidebar.vue
Co-authored-by: Ahsan Virani <ahsan.virani@gmail.com>
* Update packages/editor-ui/src/components/Telemetry.vue
Co-authored-by: Ahsan Virani <ahsan.virani@gmail.com>
* Update packages/editor-ui/src/plugins/telemetry/index.ts
Co-authored-by: Ahsan Virani <ahsan.virani@gmail.com>
* Update packages/editor-ui/src/plugins/telemetry/index.ts
Co-authored-by: Ahsan Virani <ahsan.virani@gmail.com>
* Update packages/editor-ui/src/plugins/telemetry/index.ts
Co-authored-by: Ahsan Virani <ahsan.virani@gmail.com>
* :truck: Fix imports
* :zap: reset password just if password exists
* Fix validation at `PATCH /workfows/:id` (#2819)
* :bug: Validate entity only if workflow
* :shirt: Fix build
* 🔨 refactor response from user creation
* 🐛 um email invite fix (#2833)
* update users invite
* fix notificaitons stacking on top of each other
* remove unnessary check
* fix type issues
* update structure
* fix types
* 🐘 database migrations UM + password reset expiration (#2710)
* Add table prefix and assign existing workflows and credentials to owner for sqlite
* Added user management migration to MySQL
* Fixed some missing table prefixes and removed unnecessary user id
* Created migration for postgres and applies minor fixes
* Fixed migration for sqlite by removing the unnecessary index and for mysql by removing unnecessary user data
* Added password reset token expiration
* Addressing comments made by Ben
* ⚡️ add missing tablePrefix
* ✅ fix tests + add tests for expiring pw-reset-token
Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>
* :zap: treat skipped personalizationSurvey as not answered
* :bug: removing active workflows when deleting user, :bug: fix reinvite, :bug: fix resolve-signup-token, 🐘 remove workflowname uniqueness
* ✅ Add DB state check tests (#2841)
* :fire: Remove unneeded import
* :fire: Remove unneeded vars
* :pencil2: Improve naming
* :test_tube: Add expectations to `POST /owner`
* :test_tube: Add expectations to `PATCH /me`
* :test_tube: Add expectation to `PATCH /me/password`
* :pencil2: Clarify when owner is owner shell
* :test_tube: Add more expectations
* :rewind: Restore package-lock to parent branch state
* Add logging to user management endpoints v2 (#2836)
* :zap: Initialize logger in tests
* :zap: Add logs to mailer
* :zap: Add logs to middleware
* :zap: Add logs to me endpoints
* :zap: Add logs to owner endpoints
* :zap: Add logs to pass flow endpoints
* :zap: Add logs to users endpoints
* :blue_book: Improve typings
* :zap: Merge two logs into one
* :zap: Adjust log type
* :zap: Add password reset email log
* :pencil2: Reword log message
* :zap: Adjust log meta object
* :zap: Add total to log
* :pencil2: Add detail to log message
* :pencil2: Reword log message
* :pencil2: Reword log message
* :bug: Make total users to set up accurate
* :pencil2: Reword `Logger.debug()` messages
* :pencil2: Phrasing change for consistency
* :bug: Fix ID overridden in range query
* :hammer: small refactoring
* 🔐 add auth to push-connection
* 🛠 ✅ Create credentials namespace and add tests (#2831)
* :test_tube: Fix failing test
* :blue_book: Improve `createAgent` signature
* :truck: Fix `LoggerProxy` import
* :sparkles: Create credentials endpoints namespace
* :test_tube: Set up initial tests
* :zap: Add validation to model
* :zap: Adjust validation
* :test_tube: Add test
* :truck: Sort creds endpoints
* :pencil2: Plan out pending tests
* :test_tube: Add deletion tests
* :test_tube: Add patch tests
* :test_tube: Add get cred tests
* :truck: Hoist import
* :pencil2: Make test descriptions consistent
* :pencil2: Adjust description
* :test_tube: Add missing test
* :pencil2: Make get descriptions consistent
* :rewind: Undo line break
* :zap: Refactor to simplify `saveCredential`
* :test_tube: Add non-owned tests for owner
* :pencil2: Improve naming
* :pencil2: Add clarifying comments
* :truck: Improve imports
* :zap: Initialize config file
* :fire: Remove unneeded import
* :truck: Rename dir
* :zap: Adjust deletion call
* :zap: Adjust error code
* :pencil2: Touch up comment
* :zap: Optimize fetching with `@RelationId`
* :test_tube: Add expectations
* :zap: Simplify mock calls
* :blue_book: Set deep readonly to object constants
* :fire: Remove unused param and encryption key
* :zap: Add more `@RelationId` calls in models
* :rewind: Restore
* :bug: no auth for .svg
* 🛠 move auth cookie name to constant; 🐛 fix auth for push-connection
* ✅ Add auth middleware tests (#2853)
* :zap: Simplify existing suite
* :test_tube: Validate that auth cookie exists
* :pencil2: Move comment
* :fire: Remove unneeded imports
* :pencil2: Add clarifying comments
* :pencil2: Document auth endpoints
* :test_tube: Add middleware tests
* :pencil2: Fix typos
Co-authored-by: Ben Hesseldieck <1849459+BHesseldieck@users.noreply.github.com>
* 🔥 Remove test description wrappers (#2874)
* :fire: Remove /owner test wrappers
* :fire: Remove auth middleware test wrappers
* :fire: Remove auth endpoints test wrappers
* :fire: Remove overlooked middleware wrappers
* :fire: Remove me namespace test wrappers
Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>
* ✨ Runtime checks for credentials load and execute workflows (#2697)
* Runtime checks for credentials load and execute workflows
* Fixed from reviewers
* Changed runtime validation for credentials to be on start instead of on demand
* Refactored validations to use user id instead of whole User instance
* Removed user entity from workflow project because it is no longer needed
* General fixes and improvements to runtime checks
* Remove query builder and improve styling
* Fix lint issues
* :zap: remove personalizationAnswers when fetching all users
* ✅ fix failing get all users test
* ✅ check authorization routes also for authentication
* :bug: fix defaults in reset command
* 🛠 refactorings from walkthrough (#2856)
* :zap: Make `getTemplate` async
* :zap: Remove query builder from `getCredentials`
* :zap: Add save manual executions log message
* :rewind: Restore and hide migrations logs
* :zap: Centralize ignore paths check
* :shirt: Fix build
* :truck: Rename `hasOwner` to `isInstanceOwnerSetUp`
* :zap: Add `isSetUp` flag to `User`
* :zap: Add `isSetUp` to FE interface
* :zap: Adjust `isSetUp` checks on FE
* :shirt: Fix build
* :zap: Adjust `isPendingUser()` check
* :truck: Shorten helper name
* :zap: Refactor as `isPending` per feedback
* :pencil2: Update log message
* :zap: Broaden check
* :fire: Remove unneeded relation
* :zap: Refactor query
* :fire: Re-remove logs from migrations
* 🛠 set up credentials router (#2882)
* :zap: Refactor creds endpoints into router
* :test_tube: Refactor creds tests to use router
* :truck: Rename arg for consistency
* :truck: Move `credentials.api.ts` outside /public
* :truck: Rename constant for consistency
* :blue_book: Simplify types
* :fire: Remove unneeded arg
* :truck: Rename router to controller
* :zap: Shorten endpoint
* :zap: Update `initTestServer()` arg
* :zap: Mutate response body in GET /credentials
* 🏎 improve performance of type cast for FE
Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>
* :bug: remove GET /login from auth
* 🔀 merge master + FE update (#2905)
* :sparkles: Add Templates (#2720)
* Templates Bugs / Fixed Various Bugs / Multiply Api Request, Carousel Gradient, Core Nodes Filters ...
* Updated MainSidebar Paddings
* N8N-Templates Bugfixing - Remove Unnecesairy Icon (Shape), Refatctor infiniteScrollEnabled Prop + updated infiniterScroll functinality
* N8N-2853 Fixed Carousel Arrows Bug after Cleaning the SearchBar
* fix telemetry init
* fix search tracking issues
* N8N-2853 Created FilterTemplateNode Constant Array, Filter PlayButton and WebhookRespond from Nodes, Added Box for showing more nodes inside TemplateList, Updated NewWorkflowButton to primary, Fixed Markdown issue with Code
* N8N-2853 Removed Placeholder if Workflows Or Collections are not found, Updated the Logic
* fix telemetry events
* clean up session id
* update user inserted event
* N8N-2853 Fixed Categories to Moving if the names are long
* Add todos
* Update Routes on loading
* fix spacing
* Update Border Color
* Update Border Readius
* fix filter fn
* fix constant, console error
* N8N-2853 PR Fixes, Refactoring, Removing unnecesairy code ..
* N8N-2853 PR Fixes - Editor-ui Fixes, Refactoring, Removing Dead Code ...
* N8N-2853 Refactor Card to LongCard
* clean up spacing, replace css var
* clean up spacing
* set categories as optional in node
* replace vars
* refactor store
* remove unnesssary import
* fix error
* fix templates view to start
* add to cache
* fix coll view data
* fix categories
* fix category event
* fix collections carousel
* fix initial load and search
* fix infinite load
* fix query param
* fix scrolling issues
* fix scroll to top
* fix search
* fix collections search
* fix navigation bug
* rename view
* update package lock
* rename workflow view
* rename coll view
* update routes
* add wrapper component
* set session id
* fix search tracking
* fix session tracking
* remove deleted mutation
* remove check for unsupported nodes
* refactor filters
* lazy load template
* clean up types
* refactor infinte scroll
* fix end of search
* Fix spacing
* fix coll loading
* fix types
* fix coll view list
* fix navigation
* rename types
* rename state
* fix search responsiveness
* fix coll view spacing
* fix search view spacing
* clean up views
* set background color
* center page not vert
* fix workflow view
* remove import
* fix background color
* fix background
* clean props
* clean up imports
* refactor button
* update background color
* fix spacing issue
* rename event
* update telemetry event
* update endpoints, add loading view, check for endpoint health
* remove conolse log
* N8N-2853 Fixed Menu Items Padding
* replace endpoints
* fix type issues
* fix categories
* N8N-2853 Fixed ParameterInput Placeholder after ElementUI Upgrade
* update createdAt
* :zap: Fix placeholder in creds config modal
* :pencil2: Adjust docstring to `credText` placeholder version
* N8N-2853 Optimized
* N8N-2853 Optimized code
* :zap: Add deployment type to FE settings
* :zap: Add deployment type to interfaces
* N8N-2853 Removed Animated prop from components
* :zap: Add deployment type to store module
* :sparkles: Create hiring banner
* :zap: Display hiring banner
* :rewind: Undo unrelated change
* N8N-2853 Refactor TemplateFilters
* :zap: Fix indentation
* N8N-2853 Reorder items / TemplateList
* :shirt: Fix lint
* N8N-2853 Refactor TemplateFilters Component
* N8N-2853 Reorder TemplateList
* refactor template card
* update timeout
* fix removelistener
* fix spacing
* split enabled from offline
* add spacing to go back
* N8N-2853 Fixed Screens for Tablet & Mobile
* N8N-2853 Update Stores Order
* remove image componet
* remove placeholder changes
* N8N-2853 Fixed Chinnese Placeholders for El Select Component that comes from the Library Upgrade
* N8N-2853 Fixed Vue Agile Console Warnings
* N8N-2853 Update Collection Route
* :pencil2: Update jobs URL
* :truck: Move logging to root component
* :zap: Refactor `deploymentType` to `isInternalUser`
* :zap: Improve syntax
* fix cut bug in readonly view
* N8N-3012 Fixed Details section in templates with lots of description, Fixed Mardown Block with overflox-x
* N8N-3012 Increased Font-size, Spacing and Line-height of the Categories Items
* N8N-3012 Fixed Vue-agile client width error on resize
* only delay redirect for root path
* N8N-3012 Fixed Carousel Arrows that Disappear
* N8N-3012 Make Loading Screen same color as Templates
* N8N-3012 Markdown renders inline block as block code
* add offline warning
* hide log from workflow iframe
* update text
* make search button larger
* N8N-3012 Categories / Tags extended all the way in details section
* load data in cred modals
* remove deleted message
* add external hook
* remove import
* update env variable description
* fix markdown width issue
* disable telemetry for demo, add session id to template pages
* fix telemetery bugs
* N8N-3012 Not found Collections/Wokrkflow
* N8N-3012 Checkboxes change order when categories are changed
* N8N-3012 Refactor SortedCategories inside TemplateFilters component
* fix firefox bug
* add telemetry requirements
* add error check
* N8N-3012 Update GoBackButton to check if Route History is present
* N8N-3012 Fixed WF Nodes Icons
* hide workflow screenshots
* remove unnessary mixins
* rename prop
* fix design a bit
* rename data
* clear workspace on destroy
* fix copy paste bug
* fix disabled state
* N8N-3012 Fixed Saving/Leave without saving Modal
* fix telemetry issue
* fix telemetry issues, error bug
* fix error notification
* disable workflow menu items on templates
* fix i18n elementui issue
* Remove Emit - NodeType from HoverableNodeIcon component
* TechnicalFixes: NavigateTo passed down as function should be helper
* TechnicalFixes: Update NavigateTo function
* TechnicalFixes: Add FilterCoreNodes directly as function
* check for empty connecitions
* fix titles
* respect new lines
* increase categories to be sliced
* rename prop
* onUseWorkflow
* refactor click event
* fix bug, refactor
* fix loading story
* add default
* fix styles at right level of abstraction
* add wrapper with width
* remove loading blocks component
* add story
* rename prop
* fix spacing
* refactor tag, add story
* move margin to container
* fix tag redirect, remove unnessary check
* make version optional
* rename view
* move from workflows to templates store
* remove unnessary change
* remove unnessary css
* rename component
* refactor collection card
* add boolean to prevent shrink
* clean up carousel
* fix redirection bug on save
* remove listeners to fix multiple listeners bug
* remove unnessary types
* clean up boolean set
* fix node select bug
* rename component
* remove unnessary class
* fix redirection bug
* remove unnessary error
* fix typo
* fix blockquotes, pre
* refactor markdown rendering
* remove console log
* escape markdown
* fix safari bug
* load active workflows to fix modal bug
* :arrow_up: Update package-lock.json file
* :zap: Add n8n version as header
Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>
Co-authored-by: Mutasem <mutdmour@gmail.com>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
* :bookmark: Release n8n-workflow@0.88.0
* :arrow_up: Set n8n-workflow@0.88.0 on n8n-core
* :bookmark: Release n8n-core@0.106.0
* :arrow_up: Set n8n-core@0.106.0 and n8n-workflow@0.88.0 on n8n-node-dev
* :bookmark: Release n8n-node-dev@0.45.0
* :arrow_up: Set n8n-core@0.106.0 and n8n-workflow@0.88.0 on n8n-nodes-base
* :bookmark: Release n8n-nodes-base@0.163.0
* :bookmark: Release n8n-design-system@0.12.0
* :arrow_up: Set n8n-design-system@0.12.0 and n8n-workflow@0.88.0 on n8n-editor-ui
* :bookmark: Release n8n-editor-ui@0.132.0
* :arrow_up: Set n8n-core@0.106.0, n8n-editor-ui@0.132.0, n8n-nodes-base@0.163.0 and n8n-workflow@0.88.0 on n8n
* :bookmark: Release n8n@0.165.0
* fix default user bug
* fix bug
* update package lock
* fix duplicate import
* fix settings
* fix templates access
Co-authored-by: Oliver Trajceski <olivertrajceski@yahoo.com>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
* :zap: n8n 2952 personalisation (#2911)
* refactor/update survey
* update customers
* Fix up personalization survey
* fix recommendation logic
* set to false
* hide suggested nodes when empty
* use keys
* add missing logic
* switch types
* Fix logic
* remove unused constants
* add back constant
* refactor filtering inputs
* hide last input on personal
* fix other
* ✨ add current pw check for change password (#2912)
* fix back button
* Add current password input
* add to modal
* update package.json
* delete mock file
* delete mock file
* get settings func
* update router
* update package lock
* update package lock
* Fix invite text
* update error i18n
* open personalization on search if not set
* update error view i18n
* update change password
* update settings sidebar
* remove import
* fix sidebar
* :goal_net: fix error for credential/workflow not found
* update invite modal
* ✨ persist skipping owner setup (#2894)
* 🚧 added skipInstanceOwnerSetup to DB + route to save skipping
* ✨ skipping owner setup persists
* ✅ add tests for authorization and /owner/skip-setup
* 🛠 refactor FE settings getter
* 🛠 move setting setup stop to owner creation
* :bug: fix wrong setting of User.isPending
* :bug: fix isPending
* 🏷 add isPending to PublicUser
* :bug: fix unused import
* update delete modal
* change password modal
* remove _label
* sort keys
* remove key
* update key names
* fix test endpoint
* 🥅 Handle error workflows permissions (#2908)
* Handle error workflows permissions
* Fixed wrong query format
* 🛠 refactor query
Co-authored-by: Ben Hesseldieck <1849459+BHesseldieck@users.noreply.github.com>
* fix ts issue
* fix list after ispending changes
* fix error page bugs
* fix error redirect
* fix notification
* :bug: fix survey import in migration
* fix up spacing
* update keys spacing
* update keys
* add space
* update key
* fix up more spacing
* 🔐 add current password (#2919)
* add curr pass
* update key names
* :bug: stringify tag ids
* 🔐 check current password before update
* add package lock
* fix dep version
* update version
* 🐛 fix access for instance owner to credentials (#2927)
* 🛠 stringify tag id on entity
* 🔐 Update password requirements (#2920)
* :zap: Update password requirements
* :zap: Adjust random helpers
* ✅ fix tests for currentPassword check
* change redirection, add homepage
* fix error view redirection
* updated wording
* fix setup redirection
* update validator
* remove successfully
* update consumers
* update settings redirect
* on signup, redirect to homepage
* update empty state
* add space to emails
* remove brackets
* add opacity
* update spacing
* remove border from last user
* personal details updated
* update redirect on sign up
* prevent text wrap
* fix notification title line height
* remove console log
* 🐘 Support testing with Postgres and MySQL (#2886)
* :card_file_box: Fix Postgres migrations
* :zap: Add DB-specific scripts
* :sparkles: Set up test connections
* :zap: Add Postgres UUID check
* :test_tube: Make test adjustments for Postgres
* :zap: Refactor connection logic
* :sparkles: Set up double init for Postgres
* :pencil2: Add TODOs
* :zap: Refactor DB dropping logic
* :sparkles: Implement global teardown
* :sparkles: Create TypeORM wrappers
* :sparkles: Initial MySQL setup
* :zap: Clean up Postgres connection options
* :zap: Simplify by sharing bootstrap connection name
* :card_file_box: Fix MySQL migrations
* :fire: Remove comments
* :zap: Use ES6 imports
* :fire: Remove outdated comments
* :zap: Centralize bootstrap connection name handles
* :zap: Centralize database types
* :pencil2: Update comment
* :truck: Rename `findRepository`
* :construction: Attempt to truncate MySQL
* :sparkles: Implement creds router
* :bug: Fix duplicated MySQL bootstrap
* :bug: Fix misresolved merge conflict
* :card_file_box: Fix tags migration
* :card_file_box: Fix MySQL UM migration
* :bug: Fix MySQL parallelization issues
* :blue_book: Augment TypeORM to prevent error
* :fire: Remove comments
* :sparkles: Support one sqlite DB per suite run
* :truck: Move `testDb` to own module
* :fire: Deduplicate bootstrap Postgres logic
* :fire: Remove unneeded comment
* :zap: Make logger init calls consistent
* :pencil2: Improve comment
* :pencil2: Add dividers
* :art: Improve formatting
* :fire: Remove duplicate MySQL global setting
* :truck: Move comment
* :zap: Update default test script
* :fire: Remove unneeded helper
* :zap: Unmarshal answers from Postgres
* :bug: Phase out `isTestRun`
* :zap: Refactor `isEmailSetup`
* :fire: Remove unneeded imports
* :zap: Handle bootstrap connection errors
* :fire: Remove unneeded imports
* :fire: Remove outdated comments
* :pencil2: Fix typos
* :truck: Relocate `answersFormatter`
* :rewind: Undo package.json miscommit
* :fire: Remove unneeded import
* :zap: Refactor test DB prefixing
* :zap: Add no-leftover check to MySQL
* :package: Update package.json
* :zap: Autoincrement on simulated MySQL truncation
* :fire: Remove debugging queries
* ✏️ fix email template link expiry
* 🔥 remove unused import
* ✅ fix testing email not sent error
* fix duplicate import
* add package lock
* fix export
* change opacity
* fix text issue
* update action box
* update error title
* update forgot password
* update survey
* update product text
* remove unset fields
* add category to page events
* remove duplicate import
* update key
* update key
* update label type
* 🎨 um/fe review (#2946)
* :whale: Update Node.js versions of Docker images to 16
* :bug: Fix that some keyboard shortcuts did no longer work
* N8N-3057 Fixed Keyboard shortcuts no longer working on / Fixed callDebounced function
* N8N-3057 Update Debounce Function
* N8N-3057 Refactor callDebounce function
* N8N-3057 Update Dobounce Function
* :bug: Fix issue with tooltips getting displayed behind node details view
* fix tooltips z-index
* move all element ui components
* update package lock
* :bug: Fix credentials list load issue (#2931)
* always fetch credentials
* only fetch credentials once
* :zap: Allow to disable hiring banner (#2902)
* :sparkles: Add flag
* :zap: Adjust interfaces
* :zap: Adjust store module
* :zap: Adjust frontend settings
* :zap: Adjust frontend display
* :bug: Fix issue that ctrl + o did behave wrong on workflow templates page (#2934)
* N8N-3094 Workflow Templates cmd-o acts on the Preview/Iframe
* N8N-3094 Workflow Templates cmd-o acts on the Preview/Iframe
* disable shortcuts for preview
Co-authored-by: Mutasem <mutdmour@gmail.com>
* :arrow_up: Update package-lock.json file
* :bug: Fix sorting by field in Baserow Node (#2942)
This fixes a bug which currently leads to the "Sorting" option of the node to be ignored.
* :bug: Fix some i18n line break issues
* :sparkles: Add Odoo Node (#2601)
* added odoo scaffolding
* update getting data from odoo instance
* added scaffolding for main loop and request functions
* added functions for CRUD opperations
* improoved error handling for odooJSONRPCRequest
* updated odoo node and fixing nodelinter issues
* fixed alpabetical order
* fixed types in odoo node
* fixing linter errors
* fixing linter errors
* fixed data shape returned from man loop
* updated node input types, added fields list to models
* update when custom resource is selected options for fields list will be populated dynamicly
* minor fixes
* :hammer: fixed credential test, updating CRUD methods
* :hammer: added additional fields to crm resource
* :hammer: added descriptions, fixed credentials test bug
* :hammer: standardize node and descriptions design
* :hammer: removed comments
* :hammer: added pagination to getAll operation
* :zap: removed leftover function from previous implementation, removed required from optional fields
* :zap: fixed id field, added indication of type and if required to field description, replaced string input in filters to fetched list of fields
* :hammer: fetching list of models from odoo, added selection of fields to be returned to predefined models, fixes accordingly to review
* :zap: Small improvements
* :hammer: extracted adress fields into collection, changed fields to include in descriptions, minor tweaks
* :zap: Improvements
* :hammer: working on review
* :hammer: fixed linter errors
* :hammer: review wip
* :hammer: review wip
* :hammer: review wip
* :zap: updated display name for URL in credentials
* :hammer: added checks for valid id to delete and update
* :zap: Minor improvements
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
* :bug: Handle Wise SCA requests (#2734)
* :zap: Improve Wise error message after previous change
* fix duplicate import
* add package lock
* fix export
* change opacity
* fix text issue
* update action box
* update error title
* update forgot password
* update survey
* update product text
* remove unset fields
* add category to page events
* remove duplicate import
* update key
* update key
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
Co-authored-by: Oliver Trajceski <olivertrajceski@yahoo.com>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Tom <19203795+that-one-tom@users.noreply.github.com>
Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: pemontto <939704+pemontto@users.noreply.github.com>
* Move owner skip from settings
* 🐛 SMTP fixes (#2937)
* :fire: Remove `UM_` from SMTP env vars
* :fire: Remove SMTP host default value
* :zap: Update sender value
* :zap: Update invite template
* :zap: Update password reset template
* :zap: Update `N8N_EMAIL_MODE` default value
* :fire: Remove `EMAIL` from all SMTP vars
* :sparkles: Implement `verifyConnection()`
* :truck: Reposition comment
* :pencil2: Fix typo
* :pencil2: Minor env var documentation improvements
* :art: Fix spacing
* :art: Fix spacing
* :card_file_box: Remove SMTP settings cache
* :zap: Adjust log message
* :zap: Update error message
* :pencil2: Fix template typo
* :pencil2: Adjust wording
* :zap: Interpolate email into success toast
* :pencil2: Adjust base message in `verifyConnection()`
* :zap: Verify connection on password reset
* :zap: Bring up POST /users SMTP check
* :bug: remove cookie if cookie is not valid
* :zap: verify connection on instantiation
Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>
* 🔊 create logger helper for migrations (#2944)
* 🔥 remove unused database
* :loud_sound: add migration logging for sqlite
* 🔥 remove unnecessary index creation
* ⚡️ change log level to warn
* 🐛 Fix issue with workflow process to initialize db connection correctly (#2948)
* ✏️ update error messages for webhhook run/activation
* 📈 Implement telemetry events (#2868)
* Implement basic telemetry events
* Fixing user id as part of the telemetry data
* Added user id to be part of the tracked data
* :sparkles: Create telemetry mock
* :test_tube: Fix tests with telemetry mock
* :test_tube: Fix missing key in authless endpoint
* :blue_book: Create authless request type
* :fire: Remove log
* :bug: Fix `migration_strategy` assignment
* :blue_book: Remove `instance_id` from `ITelemetryUserDeletionData`
* :zap: Simplify concatenation
* :zap: Simplify `track()` call signature
* Fixed payload of telemetry to always include user_id
* Fixing minor issues
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
* 🔊 Added logs to credentials, executions and workflows (#2915)
* Added logs to credentials, executions and workflows
* Some updates according to ivov's feedback
* :zap: update log levels
* ✅ fix tests
Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>
* :bug: fix telemetry error
* fix conflicts with master
* fix duplicate
* add package-lock
* :bug: Um/fixes (#2952)
* add initials to avatar
* redirect to signin if invalid token
* update pluralization
* add auth page category
* data transferred
* touch up setup page
* update button to add cursor
* fix personalization modal not closing
* ✏️ fix environment name
* 🐛 fix disabling UM
* 🐛 fix email setup flag
* 🐛 FE fixes 1 (#2953)
* add initials to avatar
* redirect to signin if invalid token
* update pluralization
* add auth page category
* data transferred
* touch up setup page
* update button to add cursor
* fix personalization modal not closing
* capitalize labels, refactor text
* Fixed the issue with telemetry data missing for personalization survey
* Changed invite email text
* 🐛 Fix quotes issue with postgres migration (#2958)
* Changed text for invite link
* 🐛 fix reset command for mysql
* ✅ fix race condition in test DB creation
* 🔐 block user creation if UM is disabled
* 🥅 improve smtp setup issue error
* :zap: update error message
* refactor route rules
* set package lock
* fix access
* remove capitalize
* update input labels
* refactor heading
* change span to fragment
* add route types
* refactor views
* ✅ fix increase timeout for mysql
* :zap: correct logic of error message
* refactor view names
* :zap: update randomString
* 📈 Added missing event regarding failed emails (#2964)
* replace label with info
* 🛠 refactor JWT-secret creation
* remove duplicate key
* remove unused part
* remove semicolon
* fix up i18n pattern
* update translation keys
* update urls
* support i18n in nds
* fix how external keys are handled
* add source
* 💥 update timestamp of UM migration
* ✏️ small message updates
* fix tracking
* update notification line-height
* fix avatar opacity
* fix up empty state
* shift focus to input
* 🔐 Disable basic auth after owner has been set up (#2973)
* Disable basic auth after owner has been set up
* Remove unnecessary comparison
* rename modal title
* 🐛 use pgcrypto extension for uuid creation (#2977)
* 📧 Added public url variable for emails (#2967)
* Added public url variable for emails
* Fixed base url for reset password - the current implementation overrides possibly existing path
* Change variable name to editorUrl
* Using correct name editorUrl for emails
* Changed variable description
* Improved base url naming and appending path so it remains consistent
* Removed trailing slash from editor base url
* 🌐 fix i18n pattern (#2970)
* fix up i18n pattern
* update translation keys
* update urls
* support i18n in nds
* fix how external keys are handled
* add source
* Um/fixes 1000 (#2980)
* fix select issue
* 😫 hacky solution to circumvent pgcrypto (#2979)
* fix owner bug after transfer. always fetch latest credentials
* add confirmation modal to setup
* Use webhook url as fallback when editor url is not defined
* fix enter bug
* update modal
* update modal
* update modal text, fix bug in settings view
* Updating editor url to not append path
* rename keys
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>
Co-authored-by: Mutasem <mutdmour@gmail.com>
Co-authored-by: Ahsan Virani <ahsan.virani@gmail.com>
Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: Oliver Trajceski <olivertrajceski@yahoo.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
Co-authored-by: Tom <19203795+that-one-tom@users.noreply.github.com>
Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: pemontto <939704+pemontto@users.noreply.github.com>
2022-03-14 06:46:32 -07:00
|
|
|
userId: string;
|
2023-04-18 03:41:55 -07:00
|
|
|
variables: IDataObject;
|
2023-08-25 01:33:46 -07:00
|
|
|
secretsHelpers: SecretsHelpersBase;
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
2019-12-19 14:07:55 -08:00
|
|
|
export type WorkflowExecuteMode =
|
|
|
|
| 'cli'
|
|
|
|
| 'error'
|
|
|
|
| 'integrated'
|
|
|
|
| 'internal'
|
|
|
|
| 'manual'
|
|
|
|
| 'retry'
|
|
|
|
| 'trigger'
|
|
|
|
| 'webhook';
|
2023-11-07 04:48:48 -08:00
|
|
|
|
|
|
|
export type WorkflowActivateMode =
|
|
|
|
| 'init'
|
|
|
|
| 'create'
|
|
|
|
| 'update'
|
|
|
|
| 'activate'
|
|
|
|
| 'manual'
|
|
|
|
| 'leadershipChange';
|
2019-12-19 14:07:55 -08:00
|
|
|
|
|
|
|
export interface IWorkflowHooksOptionalParameters {
|
|
|
|
parentProcessMode?: string;
|
|
|
|
retryOf?: string;
|
|
|
|
sessionId?: string;
|
|
|
|
}
|
|
|
|
|
2023-03-24 05:11:48 -07:00
|
|
|
export namespace WorkflowSettings {
|
|
|
|
export type CallerPolicy = 'any' | 'none' | 'workflowsFromAList' | 'workflowsFromSameOwner';
|
|
|
|
export type SaveDataExecution = 'DEFAULT' | 'all' | 'none';
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
export interface IWorkflowSettings {
|
2023-03-24 05:11:48 -07:00
|
|
|
timezone?: 'DEFAULT' | string;
|
|
|
|
errorWorkflow?: string;
|
|
|
|
callerIds?: string;
|
|
|
|
callerPolicy?: WorkflowSettings.CallerPolicy;
|
|
|
|
saveDataErrorExecution?: WorkflowSettings.SaveDataExecution;
|
|
|
|
saveDataSuccessExecution?: WorkflowSettings.SaveDataExecution;
|
|
|
|
saveManualExecutions?: 'DEFAULT' | boolean;
|
|
|
|
saveExecutionProgress?: 'DEFAULT' | boolean;
|
|
|
|
executionTimeout?: number;
|
2023-07-05 09:47:34 -07:00
|
|
|
executionOrder?: 'v0' | 'v1';
|
2023-06-21 00:38:28 -07:00
|
|
|
}
|
|
|
|
|
2023-09-25 06:49:36 -07:00
|
|
|
export interface WorkflowFEMeta {
|
|
|
|
onboardingId?: string;
|
|
|
|
}
|
|
|
|
|
2023-06-21 00:38:28 -07:00
|
|
|
export interface WorkflowTestData {
|
|
|
|
description: string;
|
|
|
|
input: {
|
|
|
|
workflowData: {
|
|
|
|
nodes: INode[];
|
|
|
|
connections: IConnections;
|
|
|
|
settings?: IWorkflowSettings;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
output: {
|
|
|
|
nodeExecutionOrder?: string[];
|
|
|
|
nodeData: {
|
|
|
|
[key: string]: any[][];
|
|
|
|
};
|
|
|
|
};
|
2023-08-01 08:32:30 -07:00
|
|
|
trigger?: {
|
|
|
|
mode: WorkflowExecuteMode;
|
|
|
|
input: INodeExecutionData;
|
|
|
|
};
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
2021-04-16 09:33:36 -07:00
|
|
|
|
2023-10-25 07:35:22 -07:00
|
|
|
export type LogLevel = (typeof LOG_LEVELS)[number];
|
|
|
|
export type Logger = Record<Exclude<LogLevel, 'silent'>, (message: string, meta?: object) => void>;
|
2021-04-16 09:33:36 -07:00
|
|
|
|
|
|
|
export interface IStatusCodeMessages {
|
|
|
|
[key: string]: string;
|
|
|
|
}
|
2021-06-12 08:15:23 -07:00
|
|
|
|
2022-09-29 03:33:16 -07:00
|
|
|
export type DocumentationLink = {
|
|
|
|
url: string;
|
|
|
|
};
|
|
|
|
|
2021-06-17 22:58:26 -07:00
|
|
|
export type CodexData = {
|
|
|
|
categories?: string[];
|
|
|
|
subcategories?: { [category: string]: string[] };
|
2022-09-29 03:33:16 -07:00
|
|
|
resources?: {
|
|
|
|
credentialDocumentation?: DocumentationLink[];
|
|
|
|
primaryDocumentation?: DocumentationLink[];
|
|
|
|
};
|
2021-06-17 22:58:26 -07:00
|
|
|
alias?: string[];
|
|
|
|
};
|
|
|
|
|
2021-06-12 08:15:23 -07:00
|
|
|
export type JsonValue = string | number | boolean | null | JsonObject | JsonValue[];
|
|
|
|
|
|
|
|
export type JsonObject = { [key: string]: JsonValue };
|
2021-09-21 10:38:24 -07:00
|
|
|
|
|
|
|
export type AllEntities<M> = M extends { [key: string]: string } ? Entity<M, keyof M> : never;
|
|
|
|
|
|
|
|
export type Entity<M, K> = K extends keyof M ? { resource: K; operation: M[K] } : never;
|
|
|
|
|
|
|
|
export type PropertiesOf<M extends { resource: string; operation: string }> = Array<
|
|
|
|
Omit<INodeProperties, 'displayOptions'> & {
|
|
|
|
displayOptions?: {
|
|
|
|
[key in 'show' | 'hide']?: {
|
|
|
|
resource?: Array<M['resource']>;
|
|
|
|
operation?: Array<M['operation']>;
|
|
|
|
[otherKey: string]: NodeParameterValue[] | undefined;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
>;
|
2021-10-18 20:57:49 -07:00
|
|
|
|
|
|
|
// Telemetry
|
|
|
|
|
2022-07-09 23:53:04 -07:00
|
|
|
export interface ITelemetryTrackProperties {
|
|
|
|
user_id?: string;
|
|
|
|
[key: string]: GenericValue;
|
|
|
|
}
|
|
|
|
|
2021-10-18 20:57:49 -07:00
|
|
|
export interface INodesGraph {
|
|
|
|
node_types: string[];
|
|
|
|
node_connections: IDataObject[];
|
|
|
|
nodes: INodesGraphNode;
|
feat(editor): Add Workflow Stickies (Notes) (#3154)
* N8N-3029 Add Node Type for Wokrflow Stickies/Notes
* N8N-3029 Update Content, Update Aliasses
* N8N-3030 Created N8N Sticky Component in Design System
* N8N-3030 Fixed Code spaccing Sticky Component
* N8N-3030 Fixed Code spaccing StickyStories Component
* N8N-3030 Fixed Code spaccing Markdown Component
* N8N-3030 Added Sticky Colors Pallete into Storybook, Update Color Variables for Sticky Component
* N8N-3030 Added Unfocus Event
* N8N-3030 Update Default Placeholder, Markdown Styles, Fixed Edit State, Added Text to EditState, Fixed Height of Area, Turned off Resize of textarea
* N8N-3030 Update Sticky Overflow, Update Hover States, Updated Markdown Overflow
* N8N-3030, N8N-3031 - Add Resize to Sticky, Created N8n-Resize component
* N8N-3031 Fixed Importing Components in Editor-ui
* N8N-3031 Fixed Resize Component, Fixed Gradient
* N8N-3030, N8N-3031 Update Note Description
* N8N-3032 Hotfix Building Storybook
* N8N-3032 - Select Behaviour, Changes in Resize Component, Emit on Width/Height/Top/Left Change
* N8N-3032 Update Resize Component to emmit left/top, Update Dynamic Resize on Selected Background
* N8N-3032 Updated / Dragging vs Resizing, prevent open Modal for stickies
* N8N-3032 Added ID props to n8n-sticky // dynamic id for multi resizing in NodeView
* N8N-3033 Add dynamic size Tooltip on Sticky
* N8N-3033 Updated Z-index for Sticky Component
* N8N-3033 Updated N8N-Resize Component, Fixed SelectedBackround for Sticky Component
* N8N-3033 Refactor
* N8N-3033 Focus/Defocus on TextArea
* N8N-3033 Fixed Resizing on NW Point
* N8N-3030 Save content in vuex on input change
* N8N-3033 Fixed Resizer, Save Width and Height in Vue
* N8N-3033 Hide Sticky Footer on small height/width
* N8N-3033 Fixed Resizer
* N8N-3033 Dynamic Z-index for Stickies
* N8N-3033 Dynamic Z-index for Stickies
* N8N-3033 Removed static z-index for select sticky class
* N8N-3034 Added Telemetry
* N8N-3030 Formatter
* N8N-3030 Format code
* N8N-3030 Fixed Selecting Stickies
* N8N-3033 Fixed Notifications
* N8N-3030 Added new paddings for Default Stickies
* N8N-3033 Prevent Scrolling NodeView when Sticky is in Edit mode and Mouse is Over the TextArea
* N8N-3030 Prevent double clicking to switch state of Sticky component in Edit Mode
* N8N-3033 Fixed Z-index of Stickies
* N8N-3033 Prevent delete node when in EditMode
* N8N-3030 Prevent Delete Button to delete the Sticky while in Edit Mode
* N8N-3030 Change EditMode (emit) on keyboard shortucts, update Markdown Links & Images, Added new props
* N8N-3030 Sticky Component - No padding when hiding footer text
* N8N-3033 Fix Resizing enter into Edit Mode
* N8N-3033 Selecting different nodes - exit the edit mode
* N8N-3033 Auto Select Text in text-area by default - Sticky Component
* N8N-3033 Prevent Default behaviour for CTRL + X, CTRL + A when Sticky is Active && inEditMode
* N8N-3033 Refactor Resizer, Refactor Sticky, Update zIndex inEditMode
* N8N-3033 Updated Default Text // Node-base, Storybook
* N8N-3033 Add Resizing in EditMode - Components update
* N8N-3033 Fixed Footer - Show/Hide on Resize in EditMode
* N8N-3033 Fix ActiveSticky on Init
* N8N-3033 Refactor Sticky in Vuex, Fixed Init Sticky Tweaks, Prevent Modal Openning, Save on Keyboard shortcuts
* Stickies - Update Note node with new props
* N8N-3030 Updated Default Note text, Update the Markdown Link
* N8N-3030 CMD-C does not copy the text fix
* N8N-3030 Fix Max Zoom / Zoom out shortcuts disabled in editState
* N8N-3030 Z-index fixed during Edit Mode typing
* N8N-3030 Prevent Autoselect Text in Stickies if the text is not default
* N8N-3030 Fixed ReadOnly Bugs / Prevent showing Tooltip, Resizing
* N8N-3030 Added Sticky Creator Button
* N8N-3030 Update Icon / Sticky Creator Button
* N8N-3033 Update Sticky Icon / StickyCreator Button
* update package lock
* 🔩 update note props
* 🚿 clean props
* 🔧 linting
* :wrench: fix spacing
* remove resize component
* remove resize component
* ✂ clean up sticky
* revert back to height width
* revert back to height/width
* replace zindex property
* replace default text property
* use i18n to translate
* update package lock
* move resize
* clean up how height/width are set
* fix resize for sticky to support left/top
* clean up resize
* fix lasso/highlight bug
* remove unused props
* fix zoom to fit
* fix padding for demo view
* fix readonly
* remove iseditable, use active state
* clean up keyboard events
* chang button size, no edit on insert
* scale resizing correctly
* make active on resize
* fix select on resize/move
* use outline icon
* allow for multiple line breaks
* fix multi line bug
* fix edit mode outline
* keep edit open as one resizes
* respect multiple spaces
* fix scrolling bug
* clean up hover impl
* clean up references to note
* disable for rename
* fix drifting while drag
* fix mouse cursor on resize
* fix sticky min height
* refactor resize into component
* fix pulling too far bug
* fix delete/cut all bug
* fix padding bottom
* fix active change on resize
* add transition to button
* Fix sticky markdown click
* add solid fa icon
* update node graph, telemetry event
* add snapping
* change alt text
* update package lock
* fix bug in button hover
* add back transition
* clean up resize
* add grid size as param
* remove breaks
* clean up markdown
* lint fixes
* fix spacing
* clean up markdown colors
* clean up classes in resize
* clean up resize
* update sticky story
* fix spacing
* clean up classes
* revert change
* revert change
* revert change
* clean up sticky component
* remove unused component
* remove unnessary data
* remove unnessary data
* clean up actions
* clean up sticky size
* clean up unnessary border style
* fix bug
* replace sticky note name
* update description
* remove support for multi spaces
* update tracking name
* update telemetry reqs
* fix enter bug
* update alt text
* update sticky notes doc url
* fix readonly bug
* update class name
* update quote marks
Co-authored-by: SchnapsterDog <olivertrajceski@yahoo.com>
2022-04-25 03:38:37 -07:00
|
|
|
notes: INotesGraphNode;
|
2022-07-20 08:50:39 -07:00
|
|
|
is_pinned: boolean;
|
2021-10-18 20:57:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodesGraphNode {
|
|
|
|
[key: string]: INodeGraphItem;
|
|
|
|
}
|
|
|
|
|
feat(editor): Add Workflow Stickies (Notes) (#3154)
* N8N-3029 Add Node Type for Wokrflow Stickies/Notes
* N8N-3029 Update Content, Update Aliasses
* N8N-3030 Created N8N Sticky Component in Design System
* N8N-3030 Fixed Code spaccing Sticky Component
* N8N-3030 Fixed Code spaccing StickyStories Component
* N8N-3030 Fixed Code spaccing Markdown Component
* N8N-3030 Added Sticky Colors Pallete into Storybook, Update Color Variables for Sticky Component
* N8N-3030 Added Unfocus Event
* N8N-3030 Update Default Placeholder, Markdown Styles, Fixed Edit State, Added Text to EditState, Fixed Height of Area, Turned off Resize of textarea
* N8N-3030 Update Sticky Overflow, Update Hover States, Updated Markdown Overflow
* N8N-3030, N8N-3031 - Add Resize to Sticky, Created N8n-Resize component
* N8N-3031 Fixed Importing Components in Editor-ui
* N8N-3031 Fixed Resize Component, Fixed Gradient
* N8N-3030, N8N-3031 Update Note Description
* N8N-3032 Hotfix Building Storybook
* N8N-3032 - Select Behaviour, Changes in Resize Component, Emit on Width/Height/Top/Left Change
* N8N-3032 Update Resize Component to emmit left/top, Update Dynamic Resize on Selected Background
* N8N-3032 Updated / Dragging vs Resizing, prevent open Modal for stickies
* N8N-3032 Added ID props to n8n-sticky // dynamic id for multi resizing in NodeView
* N8N-3033 Add dynamic size Tooltip on Sticky
* N8N-3033 Updated Z-index for Sticky Component
* N8N-3033 Updated N8N-Resize Component, Fixed SelectedBackround for Sticky Component
* N8N-3033 Refactor
* N8N-3033 Focus/Defocus on TextArea
* N8N-3033 Fixed Resizing on NW Point
* N8N-3030 Save content in vuex on input change
* N8N-3033 Fixed Resizer, Save Width and Height in Vue
* N8N-3033 Hide Sticky Footer on small height/width
* N8N-3033 Fixed Resizer
* N8N-3033 Dynamic Z-index for Stickies
* N8N-3033 Dynamic Z-index for Stickies
* N8N-3033 Removed static z-index for select sticky class
* N8N-3034 Added Telemetry
* N8N-3030 Formatter
* N8N-3030 Format code
* N8N-3030 Fixed Selecting Stickies
* N8N-3033 Fixed Notifications
* N8N-3030 Added new paddings for Default Stickies
* N8N-3033 Prevent Scrolling NodeView when Sticky is in Edit mode and Mouse is Over the TextArea
* N8N-3030 Prevent double clicking to switch state of Sticky component in Edit Mode
* N8N-3033 Fixed Z-index of Stickies
* N8N-3033 Prevent delete node when in EditMode
* N8N-3030 Prevent Delete Button to delete the Sticky while in Edit Mode
* N8N-3030 Change EditMode (emit) on keyboard shortucts, update Markdown Links & Images, Added new props
* N8N-3030 Sticky Component - No padding when hiding footer text
* N8N-3033 Fix Resizing enter into Edit Mode
* N8N-3033 Selecting different nodes - exit the edit mode
* N8N-3033 Auto Select Text in text-area by default - Sticky Component
* N8N-3033 Prevent Default behaviour for CTRL + X, CTRL + A when Sticky is Active && inEditMode
* N8N-3033 Refactor Resizer, Refactor Sticky, Update zIndex inEditMode
* N8N-3033 Updated Default Text // Node-base, Storybook
* N8N-3033 Add Resizing in EditMode - Components update
* N8N-3033 Fixed Footer - Show/Hide on Resize in EditMode
* N8N-3033 Fix ActiveSticky on Init
* N8N-3033 Refactor Sticky in Vuex, Fixed Init Sticky Tweaks, Prevent Modal Openning, Save on Keyboard shortcuts
* Stickies - Update Note node with new props
* N8N-3030 Updated Default Note text, Update the Markdown Link
* N8N-3030 CMD-C does not copy the text fix
* N8N-3030 Fix Max Zoom / Zoom out shortcuts disabled in editState
* N8N-3030 Z-index fixed during Edit Mode typing
* N8N-3030 Prevent Autoselect Text in Stickies if the text is not default
* N8N-3030 Fixed ReadOnly Bugs / Prevent showing Tooltip, Resizing
* N8N-3030 Added Sticky Creator Button
* N8N-3030 Update Icon / Sticky Creator Button
* N8N-3033 Update Sticky Icon / StickyCreator Button
* update package lock
* 🔩 update note props
* 🚿 clean props
* 🔧 linting
* :wrench: fix spacing
* remove resize component
* remove resize component
* ✂ clean up sticky
* revert back to height width
* revert back to height/width
* replace zindex property
* replace default text property
* use i18n to translate
* update package lock
* move resize
* clean up how height/width are set
* fix resize for sticky to support left/top
* clean up resize
* fix lasso/highlight bug
* remove unused props
* fix zoom to fit
* fix padding for demo view
* fix readonly
* remove iseditable, use active state
* clean up keyboard events
* chang button size, no edit on insert
* scale resizing correctly
* make active on resize
* fix select on resize/move
* use outline icon
* allow for multiple line breaks
* fix multi line bug
* fix edit mode outline
* keep edit open as one resizes
* respect multiple spaces
* fix scrolling bug
* clean up hover impl
* clean up references to note
* disable for rename
* fix drifting while drag
* fix mouse cursor on resize
* fix sticky min height
* refactor resize into component
* fix pulling too far bug
* fix delete/cut all bug
* fix padding bottom
* fix active change on resize
* add transition to button
* Fix sticky markdown click
* add solid fa icon
* update node graph, telemetry event
* add snapping
* change alt text
* update package lock
* fix bug in button hover
* add back transition
* clean up resize
* add grid size as param
* remove breaks
* clean up markdown
* lint fixes
* fix spacing
* clean up markdown colors
* clean up classes in resize
* clean up resize
* update sticky story
* fix spacing
* clean up classes
* revert change
* revert change
* revert change
* clean up sticky component
* remove unused component
* remove unnessary data
* remove unnessary data
* clean up actions
* clean up sticky size
* clean up unnessary border style
* fix bug
* replace sticky note name
* update description
* remove support for multi spaces
* update tracking name
* update telemetry reqs
* fix enter bug
* update alt text
* update sticky notes doc url
* fix readonly bug
* update class name
* update quote marks
Co-authored-by: SchnapsterDog <olivertrajceski@yahoo.com>
2022-04-25 03:38:37 -07:00
|
|
|
export interface INotesGraphNode {
|
|
|
|
[key: string]: INoteGraphItem;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INoteGraphItem {
|
|
|
|
overlapping: boolean;
|
|
|
|
position: [number, number];
|
|
|
|
height: number;
|
|
|
|
width: number;
|
|
|
|
}
|
|
|
|
|
2021-10-18 20:57:49 -07:00
|
|
|
export interface INodeGraphItem {
|
2022-08-03 04:06:53 -07:00
|
|
|
id: string;
|
2021-10-18 20:57:49 -07:00
|
|
|
type: string;
|
2023-11-02 06:18:41 -07:00
|
|
|
version?: number;
|
2021-10-18 20:57:49 -07:00
|
|
|
resource?: string;
|
|
|
|
operation?: string;
|
2022-05-24 02:36:19 -07:00
|
|
|
domain?: string; // HTTP Request node v1
|
|
|
|
domain_base?: string; // HTTP Request node v2
|
|
|
|
domain_path?: string; // HTTP Request node v2
|
2022-01-07 08:14:59 -08:00
|
|
|
position: [number, number];
|
|
|
|
mode?: string;
|
2022-05-24 02:36:19 -07:00
|
|
|
credential_type?: string; // HTTP Request node v2
|
|
|
|
credential_set?: boolean; // HTTP Request node v2
|
|
|
|
method?: string; // HTTP Request node v2
|
2022-08-03 04:06:53 -07:00
|
|
|
src_node_id?: string;
|
|
|
|
src_instance_id?: string;
|
2021-10-18 20:57:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodeNameIndex {
|
|
|
|
[name: string]: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface INodesGraphResult {
|
|
|
|
nodeGraph: INodesGraph;
|
|
|
|
nameIndices: INodeNameIndex;
|
2022-07-09 23:53:04 -07:00
|
|
|
webhookNodeNames: string[];
|
2021-10-18 20:57:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ITelemetryClientConfig {
|
|
|
|
url: string;
|
|
|
|
key: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ITelemetrySettings {
|
|
|
|
enabled: boolean;
|
|
|
|
config?: ITelemetryClientConfig;
|
|
|
|
}
|
2022-05-23 08:56:15 -07:00
|
|
|
|
2023-02-21 00:35:35 -08:00
|
|
|
export interface FeatureFlags {
|
|
|
|
[featureFlag: string]: string | boolean | undefined;
|
|
|
|
}
|
|
|
|
|
2022-05-23 08:56:15 -07:00
|
|
|
export interface IConnectedNode {
|
|
|
|
name: string;
|
|
|
|
indicies: number[];
|
|
|
|
depth: number;
|
|
|
|
}
|
2022-06-13 22:27:19 -07:00
|
|
|
|
2023-04-21 04:23:15 -07:00
|
|
|
export const enum OAuth2GrantType {
|
2023-06-21 01:54:32 -07:00
|
|
|
pkce = 'pkce',
|
2022-06-13 22:27:19 -07:00
|
|
|
authorizationCode = 'authorizationCode',
|
|
|
|
clientCredentials = 'clientCredentials',
|
|
|
|
}
|
|
|
|
export interface IOAuth2Credentials {
|
2023-06-21 01:54:32 -07:00
|
|
|
grantType: 'authorizationCode' | 'clientCredentials' | 'pkce';
|
2022-06-13 22:27:19 -07:00
|
|
|
clientId: string;
|
|
|
|
clientSecret: string;
|
|
|
|
accessTokenUrl: string;
|
|
|
|
authUrl: string;
|
|
|
|
authQueryParameters: string;
|
|
|
|
authentication: 'body' | 'header';
|
|
|
|
scope: string;
|
|
|
|
oauthTokenData?: IDataObject;
|
|
|
|
}
|
2022-07-20 07:24:03 -07:00
|
|
|
|
|
|
|
export type PublicInstalledPackage = {
|
|
|
|
packageName: string;
|
|
|
|
installedVersion: string;
|
|
|
|
authorName?: string;
|
|
|
|
authorEmail?: string;
|
|
|
|
installedNodes: PublicInstalledNode[];
|
|
|
|
createdAt: Date;
|
|
|
|
updatedAt: Date;
|
|
|
|
updateAvailable?: string;
|
|
|
|
failedLoading?: boolean;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type PublicInstalledNode = {
|
|
|
|
name: string;
|
|
|
|
type: string;
|
|
|
|
latestVersion: string;
|
|
|
|
package: PublicInstalledPackage;
|
|
|
|
};
|
2022-08-30 08:55:33 -07:00
|
|
|
|
|
|
|
export interface NodeExecutionWithMetadata extends INodeExecutionData {
|
|
|
|
pairedItem: IPairedItemData | IPairedItemData[];
|
|
|
|
}
|
2023-02-17 01:54:07 -08:00
|
|
|
|
|
|
|
export interface IExecutionsSummary {
|
|
|
|
id: string;
|
|
|
|
finished?: boolean;
|
|
|
|
mode: WorkflowExecuteMode;
|
2023-07-04 00:42:58 -07:00
|
|
|
retryOf?: string | null;
|
|
|
|
retrySuccessId?: string | null;
|
2023-02-17 01:54:07 -08:00
|
|
|
waitTill?: Date;
|
|
|
|
startedAt: Date;
|
|
|
|
stoppedAt?: Date;
|
|
|
|
workflowId: string;
|
|
|
|
workflowName?: string;
|
|
|
|
status?: ExecutionStatus;
|
|
|
|
lastNodeExecuted?: string;
|
|
|
|
executionError?: ExecutionError;
|
|
|
|
nodeExecutionStatus?: {
|
2023-07-10 08:57:26 -07:00
|
|
|
[key: string]: IExecutionSummaryNodeExecutionResult;
|
2023-02-17 01:54:07 -08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2023-07-10 08:57:26 -07:00
|
|
|
export interface IExecutionSummaryNodeExecutionResult {
|
2023-02-17 01:54:07 -08:00
|
|
|
executionStatus: ExecutionStatus;
|
|
|
|
errors?: Array<{
|
|
|
|
name?: string;
|
|
|
|
message?: string;
|
|
|
|
description?: string;
|
|
|
|
}>;
|
|
|
|
}
|
2023-04-11 09:43:47 -07:00
|
|
|
|
feat(editor): Implement Resource Mapper component (#6207)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* feat(Google Sheets Node): Implement Resource mapper in Google Sheets node (#5752)
* ✨ Added initial resource mapping support in google sheets node
* ✨ Wired mapping API endpoint with node-specific logic for fetching mapping fields
* ✨ Implementing mapping fields logic for google sheets
* ✨ Updating Google Sheets execute methods to support resource mapper fields
* 🚧 Added initial version of `ResourceLocator` component
* 👌 Added `update` mode to resource mapper modes
* 👌 Addressing PR feedback
* 👌 Removing leftover const reference
* 👕 Fixing lint errors
* :zap: singlton for conections
* :zap: credentials test fix, clean up
* feat(Postgres Node): Add resource mapper to new version of Postgres node (#5814)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* ✨ Updated Postgres node to use resource mapper component
* ✨ Implemented postgres <-> resource mapper type mapping
* ✨ Updated Postgres node execution to use resource mapper fields in v3
* 🔥 Removing unused import
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
* feat(core): Resource editor componend P0 (#5970)
* ✨ Added inital value of mapping mode dropdown
* ✨ Finished mapping mode selector
* ✨ Finished implementing mapping mode selector
* ✨ Implemented 'Columns to match on' dropdown
* ✨ Implemented `loadOptionsDependOn` support in resource mapper
* ✨ Implemented initial version of mapping fields
* ✨ Implementing dependant fields watcher in new component setup
* ✨ Generating correct resource mapper field types. Added `supportAutoMap` to node specification and UI. Not showing fields with `display=false`. Pre-selecting matching columns if it's the only one
* ✨ Handling matching columns correctly in UI
* ✨ Saving and loading resourceMapper values in component
* ✨ Implemented proper data saving and loading
* ✨ ResourceMapper component refactor, fixing value save/load
* ✨ Refactoring MatchingColumnSelect component. Updating Sheets node to use single key match and Postgres to use multi key
* ✨ Updated Google Sheets node to work with the new UI
* ✨ Updating Postgres Node to work with new UI
* ✨ Additional loading indicator that shown if there is no mapping mode selector
* ✨ Removing hard-coded values, fixing matching columns ordering, refactoring
* ✨ Updating field names in nodes
* ✨ Fixing minor UI issues
* ✨ Implemented matching fields filter logic
* ✨ Moving loading label outside of fields list
* ✅ Added initial unit tests for resource mapper
* ✅ Finished default rendering test
* ✅ Test refactoring
* ✅ Finished unit tests
* 🔨 Updating the way i18n is used in resource mapper components
* ✔️ Fixing value to match on logic for postgres node
* ✨ Hiding mapping fields when auto-map mode is selected
* ✨ Syncing selected mapping mode between components
* ✨ Fixing dateTime input rendering and adding update check to Postgres node
* ✨ Properly handling database connections. Sending null for empty string values.
* 💄 Updated wording in the error message for non-existing rows
* ✨ Fixing issues with selected matching values
* ✔️ Updating unit tests after matching logic update
* ✨ Updating matching columns when new fields are loaded
* ✨ Defaulting to null for empty parameter values
* ✨ Allowing zero as valid value for number imputs
* ✨ Updated list of types that use datepicker as widger
* ✨ Using text inputs for time types
* ✨ Initial mapping field rework
* ✨ Added new component for mapping fields, moved bit of logic from root component to matching selector, fixing some lint errors
* ✨ Added tooltip for columns that cannot be deleted
* ✨ Saving deleted values in parameter value
* ✨ Implemented control to add/remove mapping fields
* ✨ Syncing field list with add field dropdown when changing dependent values
* ✨ Not showing removed fields in matching columns selector. Updating wording in matching columns selector description
* ✨ Implementing disabled states for add/remove all fields options
* ✨ Saving removed columns separately, updating copy
* ✨ Implemented resource mapper values validation
* ✨ Updated validation logic and error input styling
* ✨ Validating resource mapper fields when new nodes are added
* ✨ Using node field words in validation, refactoring resource mapper component
* ✨ Implemented schema syncing and add/remove all fields
* ✨ Implemented custom parameter actions
* ✨ Implemented loading indicator in parameter options
* 🔨 Removing unnecessary constants and vue props
* ✨ Handling default values properly
* ✨ Fixing validation logic
* 👕 Fixing lint errors
* ⚡ Fixing type issues
* ⚡ Not showing fields by default if `addAllFields` is set to `false`
* ✨ Implemented field type validation in resource mapper
* ✨ Updated casing in copy, removed all/remove all option from bottom menu
* ✨ Added auto mapping mode notice
* ✨ Added support for more types in validation
* ✨ Added support for enumerated values
* ✨ Fixing imports after merging
* ✨ Not showing removed fields in matching columns selector. Refactoring validation logic.
* 👕 Fixing imports
* ✔️ Updating unit tests
* ✅ Added resource mapper schema tests
* ⚡ Removing `match` from resource mapper field definition, fixing matching columns loading
* ⚡ Fixed schema merging
* :zap: update operation return data fix
* :zap: review
* 🐛 Added missing import
* 💄 Updating parameter actions icon based on the ui review
* 💄 Updating word capitalisation in tooltips
* 💄 Added empty state to mapping fields list
* 💄 Removing asterisk from fields, updating tooltips for matching fields
* ⚡ Preventing matching fields from being removed by 'Remove All option'
* ⚡ Not showing hidden fields in the `Add field` dropdown
* ⚡ Added support for custom matching columns labels
* :zap: query optimization
* :zap: fix
* ⚡ Optimizing Postgres node enumeration logic
* ⚡ Added empty state for matching columns
* ⚡ Only fully loading fields if there is no schema fetched
* ⚡ Hiding mapping fields if there is no matching columns available in the schema
* ✔️ Fixing minor issues
* ✨ Implemented runtime type validation
* 🔨 Refactoring validation logic
* ✨ Implemented required check, added more custom messages
* ✨ Skipping boolean type in required check
* Type check improvements
* ✨ Only reloading fields if dependent values actually change
* ✨ Adding item index to validation error title
* ✨ Updating Postgres fetching logic, using resource mapper mode to determine if a field can be deleted
* ✨ Resetting field values when adding them via the addAll option
* ⚡ Using minor version (2.2) for new Postgres node
* ⚡ Implemented proper date validation and type casting
* 👕 Consolidating typing
* ✅ Added unit tests for type validations
* 👌 Addressing front-end review comments
* ⚡ More refactoring to address review changes
* ⚡ Updating leftover props
* ⚡ Added fallback for ISO dates with invalid timezones
* Added timestamp to datetime test cases
* ⚡ Reseting matching columns if operation changes
* ⚡ Not forcing auto-increment fields to be filled in in Postgres node. Handling null values
* 💄 Added a custom message for invalid dates
* ⚡ Better handling of JSON values
* ⚡ Updating codemirror readonly stauts based on component property, handling objects in json validation
* Deleting leftover console.log
* ⚡ Better time validation
* ⚡ Fixing build error after merging
* 👕 Fixing lint error
* ⚡ Updating node configuration values
* ⚡ Handling postgres arrays better
* ⚡ Handling SQL array syntax
* ⚡ Updating time validation rules to include timezone
* ⚡ Sending expressions that resolve to `null` or `undefined` by the resource mapper to delete cell content in Google Sheets
* ⚡ Allowing removed fields to be selected for match
* ⚡ Updated the query for fetching unique columns and primary keys
* ⚡ Optimizing the unique query
* ⚡ Setting timezone to all parsed dates
* ⚡ Addressing PR review feedback
* ⚡ Configuring Sheets node for production, minor vue component update
* New cases added to the TypeValidation test.
* ✅ Tweaking validation rules for arrays/objects and updating test cases
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
2023-05-31 02:56:09 -07:00
|
|
|
export interface ResourceMapperFields {
|
|
|
|
fields: ResourceMapperField[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ResourceMapperField {
|
|
|
|
id: string;
|
|
|
|
displayName: string;
|
|
|
|
defaultMatch: boolean;
|
|
|
|
canBeUsedToMatch?: boolean;
|
|
|
|
required: boolean;
|
|
|
|
display: boolean;
|
|
|
|
type?: FieldType;
|
|
|
|
removed?: boolean;
|
|
|
|
options?: INodePropertyOptions[];
|
2023-07-17 09:42:30 -07:00
|
|
|
readOnly?: boolean;
|
feat(editor): Implement Resource Mapper component (#6207)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* feat(Google Sheets Node): Implement Resource mapper in Google Sheets node (#5752)
* ✨ Added initial resource mapping support in google sheets node
* ✨ Wired mapping API endpoint with node-specific logic for fetching mapping fields
* ✨ Implementing mapping fields logic for google sheets
* ✨ Updating Google Sheets execute methods to support resource mapper fields
* 🚧 Added initial version of `ResourceLocator` component
* 👌 Added `update` mode to resource mapper modes
* 👌 Addressing PR feedback
* 👌 Removing leftover const reference
* 👕 Fixing lint errors
* :zap: singlton for conections
* :zap: credentials test fix, clean up
* feat(Postgres Node): Add resource mapper to new version of Postgres node (#5814)
* :zap: scaffolding
* :zap: finished scaffolding
* :zap: renamed types
* :zap: updated subtitle
* :zap: renamed functions file, UI updates
* :zap: query parameters fixes, ui updates, refactoring
* :zap: fixes for credentials test, setup for error parsing
* :zap: rlc for schema and table, error handling tweaks
* :zap: delete operation, new options
* :zap: columns loader
* :zap: linter fixes
* :zap: where clauses setup
* :zap: logic for processing where clauses
* :zap: select operation
* :zap: refactoring
* :zap: data mode for insert and update, wip
* :zap: data mapping, insert update, skip on conflict option
* :zap: select columns with spaces fix
* :zap: update operation update, wip
* :zap: finished update operation
* :zap: upsert operation
* :zap: ui fixes
* Copy updates.
* Copy updates.
* :zap: option to convert empty strings to nulls, schema checks
* :zap: UI requested updates
* :zap: ssh setup WIP
* :zap: fixes, ssh WIP
* :zap: ssh fixes, credentials
* :zap: credentials testing update
* :zap: uncaught error fix
* :zap: clean up
* :zap: address in use fix
* :zap: improved error message
* :zap: tests setup
* :zap: unit tests wip
* :zap: config files clean up
* :zap: utils unit tests
* :zap: refactoring
* :zap: setup for testing operations, tests for deleteTable operation
* :zap: executeQuery and insert operations tests
* :zap: select, update, upsert operations tests
* :zap: runQueries tests setup
* :zap: hint to query
* Copy updates.
* :zap: ui fixes
* :zap: clean up
* :zap: error message update
* :zap: ui update
* Minor tweaks to query params decription.
* ✨ Updated Postgres node to use resource mapper component
* ✨ Implemented postgres <-> resource mapper type mapping
* ✨ Updated Postgres node execution to use resource mapper fields in v3
* 🔥 Removing unused import
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
* feat(core): Resource editor componend P0 (#5970)
* ✨ Added inital value of mapping mode dropdown
* ✨ Finished mapping mode selector
* ✨ Finished implementing mapping mode selector
* ✨ Implemented 'Columns to match on' dropdown
* ✨ Implemented `loadOptionsDependOn` support in resource mapper
* ✨ Implemented initial version of mapping fields
* ✨ Implementing dependant fields watcher in new component setup
* ✨ Generating correct resource mapper field types. Added `supportAutoMap` to node specification and UI. Not showing fields with `display=false`. Pre-selecting matching columns if it's the only one
* ✨ Handling matching columns correctly in UI
* ✨ Saving and loading resourceMapper values in component
* ✨ Implemented proper data saving and loading
* ✨ ResourceMapper component refactor, fixing value save/load
* ✨ Refactoring MatchingColumnSelect component. Updating Sheets node to use single key match and Postgres to use multi key
* ✨ Updated Google Sheets node to work with the new UI
* ✨ Updating Postgres Node to work with new UI
* ✨ Additional loading indicator that shown if there is no mapping mode selector
* ✨ Removing hard-coded values, fixing matching columns ordering, refactoring
* ✨ Updating field names in nodes
* ✨ Fixing minor UI issues
* ✨ Implemented matching fields filter logic
* ✨ Moving loading label outside of fields list
* ✅ Added initial unit tests for resource mapper
* ✅ Finished default rendering test
* ✅ Test refactoring
* ✅ Finished unit tests
* 🔨 Updating the way i18n is used in resource mapper components
* ✔️ Fixing value to match on logic for postgres node
* ✨ Hiding mapping fields when auto-map mode is selected
* ✨ Syncing selected mapping mode between components
* ✨ Fixing dateTime input rendering and adding update check to Postgres node
* ✨ Properly handling database connections. Sending null for empty string values.
* 💄 Updated wording in the error message for non-existing rows
* ✨ Fixing issues with selected matching values
* ✔️ Updating unit tests after matching logic update
* ✨ Updating matching columns when new fields are loaded
* ✨ Defaulting to null for empty parameter values
* ✨ Allowing zero as valid value for number imputs
* ✨ Updated list of types that use datepicker as widger
* ✨ Using text inputs for time types
* ✨ Initial mapping field rework
* ✨ Added new component for mapping fields, moved bit of logic from root component to matching selector, fixing some lint errors
* ✨ Added tooltip for columns that cannot be deleted
* ✨ Saving deleted values in parameter value
* ✨ Implemented control to add/remove mapping fields
* ✨ Syncing field list with add field dropdown when changing dependent values
* ✨ Not showing removed fields in matching columns selector. Updating wording in matching columns selector description
* ✨ Implementing disabled states for add/remove all fields options
* ✨ Saving removed columns separately, updating copy
* ✨ Implemented resource mapper values validation
* ✨ Updated validation logic and error input styling
* ✨ Validating resource mapper fields when new nodes are added
* ✨ Using node field words in validation, refactoring resource mapper component
* ✨ Implemented schema syncing and add/remove all fields
* ✨ Implemented custom parameter actions
* ✨ Implemented loading indicator in parameter options
* 🔨 Removing unnecessary constants and vue props
* ✨ Handling default values properly
* ✨ Fixing validation logic
* 👕 Fixing lint errors
* ⚡ Fixing type issues
* ⚡ Not showing fields by default if `addAllFields` is set to `false`
* ✨ Implemented field type validation in resource mapper
* ✨ Updated casing in copy, removed all/remove all option from bottom menu
* ✨ Added auto mapping mode notice
* ✨ Added support for more types in validation
* ✨ Added support for enumerated values
* ✨ Fixing imports after merging
* ✨ Not showing removed fields in matching columns selector. Refactoring validation logic.
* 👕 Fixing imports
* ✔️ Updating unit tests
* ✅ Added resource mapper schema tests
* ⚡ Removing `match` from resource mapper field definition, fixing matching columns loading
* ⚡ Fixed schema merging
* :zap: update operation return data fix
* :zap: review
* 🐛 Added missing import
* 💄 Updating parameter actions icon based on the ui review
* 💄 Updating word capitalisation in tooltips
* 💄 Added empty state to mapping fields list
* 💄 Removing asterisk from fields, updating tooltips for matching fields
* ⚡ Preventing matching fields from being removed by 'Remove All option'
* ⚡ Not showing hidden fields in the `Add field` dropdown
* ⚡ Added support for custom matching columns labels
* :zap: query optimization
* :zap: fix
* ⚡ Optimizing Postgres node enumeration logic
* ⚡ Added empty state for matching columns
* ⚡ Only fully loading fields if there is no schema fetched
* ⚡ Hiding mapping fields if there is no matching columns available in the schema
* ✔️ Fixing minor issues
* ✨ Implemented runtime type validation
* 🔨 Refactoring validation logic
* ✨ Implemented required check, added more custom messages
* ✨ Skipping boolean type in required check
* Type check improvements
* ✨ Only reloading fields if dependent values actually change
* ✨ Adding item index to validation error title
* ✨ Updating Postgres fetching logic, using resource mapper mode to determine if a field can be deleted
* ✨ Resetting field values when adding them via the addAll option
* ⚡ Using minor version (2.2) for new Postgres node
* ⚡ Implemented proper date validation and type casting
* 👕 Consolidating typing
* ✅ Added unit tests for type validations
* 👌 Addressing front-end review comments
* ⚡ More refactoring to address review changes
* ⚡ Updating leftover props
* ⚡ Added fallback for ISO dates with invalid timezones
* Added timestamp to datetime test cases
* ⚡ Reseting matching columns if operation changes
* ⚡ Not forcing auto-increment fields to be filled in in Postgres node. Handling null values
* 💄 Added a custom message for invalid dates
* ⚡ Better handling of JSON values
* ⚡ Updating codemirror readonly stauts based on component property, handling objects in json validation
* Deleting leftover console.log
* ⚡ Better time validation
* ⚡ Fixing build error after merging
* 👕 Fixing lint error
* ⚡ Updating node configuration values
* ⚡ Handling postgres arrays better
* ⚡ Handling SQL array syntax
* ⚡ Updating time validation rules to include timezone
* ⚡ Sending expressions that resolve to `null` or `undefined` by the resource mapper to delete cell content in Google Sheets
* ⚡ Allowing removed fields to be selected for match
* ⚡ Updated the query for fetching unique columns and primary keys
* ⚡ Optimizing the unique query
* ⚡ Setting timezone to all parsed dates
* ⚡ Addressing PR review feedback
* ⚡ Configuring Sheets node for production, minor vue component update
* New cases added to the TypeValidation test.
* ✅ Tweaking validation rules for arrays/objects and updating test cases
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
2023-05-31 02:56:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export type FieldType =
|
|
|
|
| 'string'
|
|
|
|
| 'number'
|
|
|
|
| 'dateTime'
|
|
|
|
| 'boolean'
|
|
|
|
| 'time'
|
|
|
|
| 'array'
|
|
|
|
| 'object'
|
|
|
|
| 'options';
|
|
|
|
|
|
|
|
export type ValidationResult = {
|
|
|
|
valid: boolean;
|
|
|
|
errorMessage?: string;
|
|
|
|
newValue?: string | number | boolean | object | null | undefined;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ResourceMapperValue = {
|
|
|
|
mappingMode: string;
|
|
|
|
value: { [key: string]: string | number | boolean | null } | null;
|
|
|
|
matchingColumns: string[];
|
|
|
|
schema: ResourceMapperField[];
|
|
|
|
};
|
2023-12-13 05:45:22 -08:00
|
|
|
|
|
|
|
export type FilterOperatorType =
|
|
|
|
| 'string'
|
|
|
|
| 'number'
|
|
|
|
| 'boolean'
|
|
|
|
| 'array'
|
|
|
|
| 'object'
|
|
|
|
| 'dateTime'
|
|
|
|
| 'any';
|
|
|
|
|
|
|
|
export interface FilterOperatorValue {
|
|
|
|
type: FilterOperatorType;
|
|
|
|
operation: string;
|
|
|
|
rightType?: FilterOperatorType;
|
|
|
|
singleValue?: boolean; // default = false
|
|
|
|
}
|
|
|
|
|
|
|
|
export type FilterConditionValue = {
|
|
|
|
id: string;
|
|
|
|
leftValue: unknown;
|
|
|
|
operator: FilterOperatorValue;
|
|
|
|
rightValue: unknown;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type FilterOptionsValue = {
|
|
|
|
caseSensitive: boolean;
|
|
|
|
leftValue: string;
|
|
|
|
typeValidation: 'strict' | 'loose';
|
|
|
|
};
|
|
|
|
|
|
|
|
export type FilterValue = {
|
|
|
|
options: FilterOptionsValue;
|
|
|
|
conditions: FilterConditionValue[];
|
|
|
|
combinator: FilterTypeCombinator;
|
|
|
|
};
|
|
|
|
|
2023-04-11 09:43:47 -07:00
|
|
|
export interface ExecutionOptions {
|
|
|
|
limit?: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ExecutionFilters {
|
|
|
|
finished?: boolean;
|
|
|
|
mode?: WorkflowExecuteMode[];
|
|
|
|
retryOf?: string;
|
|
|
|
retrySuccessId?: string;
|
|
|
|
status?: ExecutionStatus[];
|
|
|
|
waitTill?: boolean;
|
|
|
|
workflowId?: number | string;
|
|
|
|
}
|
2023-04-21 04:30:57 -07:00
|
|
|
|
|
|
|
export interface IVersionNotificationSettings {
|
|
|
|
enabled: boolean;
|
|
|
|
endpoint: string;
|
|
|
|
infoUrl: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IUserManagementSettings {
|
2023-07-12 05:11:46 -07:00
|
|
|
quota: number;
|
2023-04-21 04:30:57 -07:00
|
|
|
showSetupOnFirstLoad?: boolean;
|
|
|
|
smtpSetup: boolean;
|
|
|
|
authenticationMethod: AuthenticationMethod;
|
|
|
|
}
|
|
|
|
|
2023-05-30 03:52:02 -07:00
|
|
|
export interface IUserSettings {
|
|
|
|
isOnboarded?: boolean;
|
|
|
|
firstSuccessfulWorkflowId?: string;
|
|
|
|
userActivated?: boolean;
|
|
|
|
allowSSOManualLogin?: boolean;
|
|
|
|
}
|
|
|
|
|
2023-04-21 04:30:57 -07:00
|
|
|
export interface IPublicApiSettings {
|
|
|
|
enabled: boolean;
|
|
|
|
latestVersion: number;
|
|
|
|
path: string;
|
|
|
|
swaggerUi: {
|
|
|
|
enabled: boolean;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2023-09-21 05:57:45 -07:00
|
|
|
export type ExpressionEvaluatorType = 'tmpl' | 'tournament';
|
|
|
|
|
2023-04-21 04:30:57 -07:00
|
|
|
export interface IN8nUISettings {
|
|
|
|
endpointWebhook: string;
|
|
|
|
endpointWebhookTest: string;
|
|
|
|
saveDataErrorExecution: WorkflowSettings.SaveDataExecution;
|
|
|
|
saveDataSuccessExecution: WorkflowSettings.SaveDataExecution;
|
|
|
|
saveManualExecutions: boolean;
|
|
|
|
executionTimeout: number;
|
|
|
|
maxExecutionTimeout: number;
|
|
|
|
workflowCallerPolicyDefaultOption: WorkflowSettings.CallerPolicy;
|
|
|
|
oauthCallbackUrls: {
|
|
|
|
oauth1: string;
|
|
|
|
oauth2: string;
|
|
|
|
};
|
|
|
|
timezone: string;
|
|
|
|
urlBaseWebhook: string;
|
|
|
|
urlBaseEditor: string;
|
|
|
|
versionCli: string;
|
2023-10-03 11:49:04 -07:00
|
|
|
releaseChannel: 'stable' | 'beta' | 'nightly' | 'dev';
|
2023-04-21 04:30:57 -07:00
|
|
|
n8nMetadata?: {
|
2023-09-25 03:59:41 -07:00
|
|
|
userId?: string;
|
2023-04-21 04:30:57 -07:00
|
|
|
[key: string]: string | number | undefined;
|
|
|
|
};
|
|
|
|
versionNotifications: IVersionNotificationSettings;
|
|
|
|
instanceId: string;
|
|
|
|
telemetry: ITelemetrySettings;
|
|
|
|
posthog: {
|
|
|
|
enabled: boolean;
|
|
|
|
apiHost: string;
|
|
|
|
apiKey: string;
|
|
|
|
autocapture: boolean;
|
|
|
|
disableSessionRecording: boolean;
|
|
|
|
debug: boolean;
|
|
|
|
};
|
|
|
|
personalizationSurveyEnabled: boolean;
|
|
|
|
defaultLocale: string;
|
|
|
|
userManagement: IUserManagementSettings;
|
|
|
|
sso: {
|
|
|
|
saml: {
|
|
|
|
loginLabel: string;
|
|
|
|
loginEnabled: boolean;
|
|
|
|
};
|
|
|
|
ldap: {
|
|
|
|
loginLabel: string;
|
|
|
|
loginEnabled: boolean;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
publicApi: IPublicApiSettings;
|
|
|
|
workflowTagsDisabled: boolean;
|
2023-10-25 07:35:22 -07:00
|
|
|
logLevel: LogLevel;
|
2023-04-21 04:30:57 -07:00
|
|
|
hiringBannerEnabled: boolean;
|
|
|
|
templates: {
|
|
|
|
enabled: boolean;
|
|
|
|
host: string;
|
|
|
|
};
|
|
|
|
onboardingCallPromptEnabled: boolean;
|
|
|
|
missingPackages?: boolean;
|
|
|
|
executionMode: 'regular' | 'queue';
|
|
|
|
pushBackend: 'sse' | 'websocket';
|
|
|
|
communityNodesEnabled: boolean;
|
|
|
|
deployment: {
|
|
|
|
type: string | 'default' | 'n8n-internal' | 'cloud' | 'desktop_mac' | 'desktop_win';
|
|
|
|
};
|
|
|
|
isNpmAvailable: boolean;
|
|
|
|
allowedModules: {
|
|
|
|
builtIn?: string[];
|
|
|
|
external?: string[];
|
|
|
|
};
|
|
|
|
enterprise: {
|
|
|
|
sharing: boolean;
|
|
|
|
ldap: boolean;
|
|
|
|
saml: boolean;
|
|
|
|
logStreaming: boolean;
|
|
|
|
advancedExecutionFilters: boolean;
|
|
|
|
variables: boolean;
|
2023-06-20 10:13:18 -07:00
|
|
|
sourceControl: boolean;
|
2023-06-14 23:33:28 -07:00
|
|
|
auditLogs: boolean;
|
2023-08-25 01:33:46 -07:00
|
|
|
externalSecrets: boolean;
|
2023-08-16 01:05:03 -07:00
|
|
|
showNonProdBanner: boolean;
|
2023-08-09 07:38:17 -07:00
|
|
|
debugInEditor: boolean;
|
2023-10-13 04:16:43 -07:00
|
|
|
binaryDataS3: boolean;
|
2023-09-15 04:17:04 -07:00
|
|
|
workflowHistory: boolean;
|
2023-11-10 14:48:31 -08:00
|
|
|
workerView: boolean;
|
2023-11-29 06:56:35 -08:00
|
|
|
advancedPermissions: boolean;
|
2023-04-21 04:30:57 -07:00
|
|
|
};
|
|
|
|
hideUsagePage: boolean;
|
|
|
|
license: {
|
|
|
|
environment: 'development' | 'production' | 'staging';
|
|
|
|
};
|
|
|
|
variables: {
|
|
|
|
limit: number;
|
|
|
|
};
|
2023-09-21 05:57:45 -07:00
|
|
|
expressions: {
|
|
|
|
evaluator: ExpressionEvaluatorType;
|
|
|
|
};
|
2023-08-23 19:59:16 -07:00
|
|
|
mfa: {
|
|
|
|
enabled: boolean;
|
|
|
|
};
|
2023-06-19 07:23:57 -07:00
|
|
|
banners: {
|
2023-07-14 06:36:17 -07:00
|
|
|
dismissed: string[];
|
2023-06-19 07:23:57 -07:00
|
|
|
};
|
feat(editor): Ask AI in Code node (#6672)
* feat(editor): Ask AI tab and CLi connection
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Remove old getSchema util method
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Increase CSS specificity of the CodeNodeEditor global overrides
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* feat(editor): Magic Connect
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Improve AI controller, load conditionally, UX modal imporvements
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Extract-out AI curl
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Move loading phrases to locale, add support for ask ai experiment
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix build
* adjust communication
* fix: Remove duplicate source control preferences fetching (no-changelog) (#6675)
fix: remove duplicate source control preferences fetching (no-changelog)
* fix(Slack Node): Add UTM params to n8n reference in Slack message (no-changelog) (#6668)
fix(Slack Node): Add UTM params to n8n reference in Slack message
* fix(FileMaker Node): Improve returned error responses (#6585)
* fix(Microsoft Outlook Node): Fix issue with category not correctly applying (#6583)
* feat(Airtable Node): Overhaul (#6200)
* fix(core): Deleting manual executions should defer deleting binary data (#6680)
deleting manual executions should defer deleting binary data
* fix(editor): Add paywall state to non owner users for Variables (#6679)
* fix(editor): Add paywall state to non owner users for Variables
* fix(editor): Add variables view tests
* fix(editor): remove link from paywall state for non owner
* fix(editor): fix displaying logic
* refactor(core): Refactor WorkflowStatistics code (no-changelog) (#6617)
refactor(core): Refactor WorkflowStatistics code
* fix(editor): Hide Execute Node button for unknown nodes (#6684)
* feat: Allow hiding credential params on cloud (#6687)
* fix: Stop n8n from complaining about credentials when saving a new workflow form a template (#6671)
* fix(core): Upgrade semver to address CVE-2022-25883 (#6689)
* fix(core): Upgrade semver to address CVE-2022-25883
[GH Advisory](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw)
* enforce the patched version of semver everywhere in the dev setup
* ci: Fix test checker glob (no changelog) (#6682)
ci: Fix test checker glob
* fix(API): Do not add starting node on workflow creation (#6686)
* fix(API): Do not add starting node on workflow creation
* chore: Remove comment
* fix(core): Filter out workflows that failed to activate on startup (#6676)
* fix(core): Deactivate on init workflow that should not be retried
* fix(core): Filter out workflows with activation errors
* fix(core): Load SAML libraries dynamically (#6690)
load SAML dynamically
* fix(crowd.dev Node): Fix documentation urls for crowd.dev credentials and nodes (#6696)
* feat(Read PDF Node): Replace pdf-parse with pdfjs, and add support for streaming and encrypted PDFs (#6640)
* feat: Allow `eslint-config` to be externally consumable (#6694)
* feat: Allow `eslint-config` to be externally consumable
* refactor: Adjust import styles
* fix(Contentful Node): Fix typo in credential name (no-changelog) (#6692)
* fix(editor): Ensure default credential values are not detected as dirty state (#6677)
* fix(editor): Ensure default credential values are not detected as dirty state
* chore: Remove logging
* refactor: Improve comment
* feat(Google Cloud Storage Node): Use streaming for file uploads (#6462)
fix(Google Cloud Storage Node): Use streaming for file uploads
* fix(editor): Prevent RMC from loading schema if it's already cached (#6695)
* fix(editor): Prevent RMC from loading schema if it's already cached
* ✅ Adding new tests for RMC
* 👕 Fixing lint errors
* 👌 Updating inline loader styling
* fix(API): Fix issue with workflow setting not supporting newer nanoids (#6699)
* ci: Fix test workflows (no-changelog) (#6698)
* ci: Fix test workflows (no-changelog)
We removed `pdf-parse` in #6640, so we need to get these test PDF files from the `test-workflows` repo instead ([which has been updated to include these files](https://github.com/n8n-io/test-workflows/commit/0f6ef1c804e3f1e919b097bdf061ea9ea095b1e2))
* remove `\n` from ids and skipList text files
* fix(core): Banner dismissal should also work for users migrating to v1 (no-changelog) (#6700)
* fix(Postgres Node): For select queries, empty result should be be replaced with `{"success":true}` (#6703)
* fix(Postgres Node): For select queries, empty result should be be replaced with `{"success":true}`
* :zap: less checks
---------
Co-authored-by: Michael Kret <michael.k@radency.com>
* feat(editor): Removing `ph-no-capture` class from some elements (#6674)
* feat(editor): Remove `.ph-no-capture` class from some of the fields
* ✔️ Updating test snapshots
* ⚡ Redacting expressions preview in credentials form
* 🔧 Disable posthog input masking
* 🚨 Testing PostHog iFrame settings
* Reverting iframe test
* ⚡ Hiding API key in PostHog recordings
* ✅ Added tests for redacted values
* ✔️ Updating checkbox snapshots after label component update
* ✔️ Updating test snapshots in editor-ui
* 👕 Fix lint errors
* fix(editor): Remove global link styling in v1 banner (#6705)
* fix: Add missing indices on sqlite (#6673)
* fix: enforce tag name uniqueness on sqlite
* rename migration and add other missing indices
* add tags tests
* test: Move test timeout to `/cli` (no-changelog) (#6712)
* fix(core): Redirect user to previous url after SSO signin (#6710)
redirect user to previous url after SSO signin
* fix(FTP Node): List recursive ignore . and .. to prevent infinite loops (#6707)
ignore . and .. to prevent infinite loop
Co-authored-by: Michael Kret <michael.k@radency.com>
* ci: Fix running e2e tests in dev mode (no-changelog) (#6717)
* fix(Google BigQuery Node): Error description improvement (#6715)
* fix(GitLab Trigger Node): Fix trigger activation 404 error (#6711)
* fix webhook checkExists not deleting static data
* improve webhook checkExists not deleting static data
* fix(core): Support redis cluster in queue mode (#6708)
* support redis cluster
* cleanup, fix config schema
* set default prefix to bull
* fix(editor): Skip error line highlighting if out of range (#6721)
* fix(AwsS3 Node): Fix issue if bucket name contains a '.' (#6542)
* test(editor): Add canvas actions E2E tests (#6723)
* test(editor): Add canvas actions E2E tests
* test(editor): Open category items in node creator when category dropped on canvas
* test(editor): Have new position counted only once in drag
* test(editor): rename test
* feat(Rundeck Node): Add support for node filters (#5633)
* fix(Gmail Trigger Node): Early returns in case of no data (#6727)
* fix(core): Use JWT as reset password token (#6714)
* use jwt to reset password
* increase expiration time to 1d
* drop user id query string
* refactor
* use service instead of package in tests
* sqlite migration
* postgres migration
* mysql migration
* remove unused properties
* remove userId from FE
* fix test for users.api
* move migration to the common folder
* move type assertion to the jwt.service
* Add jwt secret as a readonly property
* use signData instead of sign in user.controller
* remove base class
* remove base class
* add tests
* ci: Fix tests on postgres (no-changelog)
* refactor(core): Prevent community packages queries if feature is disabled (#6728)
* feat(core): Add cache service (#6729)
* add cache service
* PR adjustments
* switch to maxSize for memory cache
* Revert "test(editor): Add canvas actions E2E tests" (#6736)
Revert "test(editor): Add canvas actions E2E tests (#6723)"
This reverts commit 052d82b2208c1b2e6f62c6004822c6278c15278b.
* fix(Postgres Node): Arrays in query replacement fix (#6718)
* fix(Telegram Trigger Node): Add guard to 'include' call on null or undefined (#6730)
* fix(core): Use `exec` in docker images to forward signals correctly (#6732)
* refactor(core): Move webhook DB access to repository (no-changelog) (#6706)
* refactor(core): Move webhook DB access to repository (no-changelog)
* make sure `DataSource` is initialized before it's dependencies
at some point I hope to replace `DataSource` with a custom `DatabaseConnection` service class that can then disconnect and reconnect from DB without having to update all repositories.
---------
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
* feat: Environments release using source control (#6653)
* initial telemetry setup and adjusted pull return
* quicksave before merge
* feat: add conflicting workflow list to pull modal
* feat: update source control pull modal
* fix: fix linting issue
* feat: add Enter keydown event for submitting source control push modal (no-changelog)
feat: add Enter keydown event for submitting source control push modal
* quicksave
* user workflow table for export
* improve telemetry data
* pull api telemetry
* fix lint
* Copy tweaks.
* remove authorName and authorEmail and pick from user
* rename owners.json to workflow_owners.json
* ignore credential conflicts on pull
* feat: several push/pull flow changes and design update
* pull and push return same data format
* fix: add One last step toast for successful pull
* feat: add up to date pull toast
* fix: add proper Learn more link for push and pull modals
* do not await tracking being sent
* fix import
* fix await
* add more sourcecontrolfile status
* Minor copy tweak for "More info".
* Minor copy tweak for "More info".
* ignore variable_stub conflicts on pull
* ignore whitespace differences
* do not show remote workflows that are not yet created
* fix telemetry
* fix toast when pulling deleted wf
* lint fix
* refactor and make some imports dynamic
* fix variable edit validation
* fix telemetry response
* improve telemetry
* fix unintenional delete commit
* fix status unknown issue
* fix up to date toast
* do not export active state and reapply versionid
* use update instead of upsert
* fix: show all workflows when clicking push to git
* feat: update Up to date pull translation
* fix: update read only env checks
* do not update versionid of only active flag changes
* feat: prevent access to new workflow and templates import when read only env
* feat: send only active state and version if workflow state is not dirty
* fix: Detect when only active state has changed and prevent generation a new version ID
* feat: improve readonly env messages
* make getPreferences public
* fix telemetry issue
* fix: add partial workflow update based on dirty state when changing active state
* update unit tests
* fix: remove unsaved changes check in readOnlyEnv
* fix: disable push to git button when read onyl env
* fix: update readonly toast duration
* fix: fix pinning and title input in protected mode
* initial commit (NOT working)
* working push
* cleanup and implement pull
* fix getstatus
* update import to new method
* var and tag diffs are no conflicts
* only show pull conflict for workflows
* refactor and ignore faulty credentials
* add sanitycheck for missing git folder
* prefer fetch over pull and limit depth to 1
* back to pull...
* fix setting branch on initial connect
* fix test
* remove clean workfolder
* refactor: Remove some unnecessary code
* Fixed links to docs.
* fix getstatus query params
* lint fix
* dialog to show local and remote name on conflict
* only show remote name on conflict
* fix credential expression export
* fix: Broken test
* dont show toast on pull with empty var/tags and refactor
* apply frontend changes from old branch
* fix tag with same name import
* fix buttons shown for non instance owners
* prepare local storage key for removal
* refactor: Change wording on pushing and pulling
* refactor: Change menu item
* test: Fix broken test
* Update packages/cli/src/environments/sourceControl/types/sourceControlPushWorkFolder.ts
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
---------
Co-authored-by: Alex Grozav <alex@grozav.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
* fix(core): Fix RemoveResetPasswordColumns migration for sqlite (no-changelog) (#6739)
* ci: Update changelog generation to work with node 18
* refactor: Remove webhook from `IDatabaseCollections` (no-changelog) (#6745)
* refactor: Remove webhook from `IDatabaseCollections`
* refactor: Remove also from `collections`
* :rocket: Release 1.1.0 (#6746)
Co-authored-by: netroy <netroy@users.noreply.github.com>
* fix(Lemlist Node): Fix pagination issues with campaigns and activities (#6734)
* ci: Fix linting issues (no-changelog) (#6747)
* fix(core): Allow ignoring SSL issues on generic oauth2 credentials (#6702)
* refactor: Remove all references to the resetPasswordToken field (no-changelog) (#6751)
refactor: remove all references to the resetPasswordToken field (no-changelog)
* refactor(core): Use mixins to delete redundant code between Entity classes (no-changelog) (#6616)
* db entities don't need an ID before they are inserted
* don't define constructors on entity classes, use repository.create instead
* use mixins to reduce duplicate code in db entity classes
* fix: Display source control buttons properly (#6756)
* feat(editor): Migrate Design System and Editor UI to Vue 3 (#6476)
* feat: remove vue-fragment (no-changelog)
* feat: partial design-system migration
* feat: migrate info-accordion and info-tip components
* feat: migrate several components to vue 3
* feat: migrated several components
* feat: migrate several components
* feat: migrate several components
* feat: migrate several components
* feat: re-exported all design system components
* fix: fix design for popper components
* fix: editor kind of working, lots of issues to fix
* fix: fix several vue 3 migration issues
* fix: replace @change with @update:modelValue in several places
* fix: fix translation linking
* fix: fix inline-edit input
* fix: fix ndv and dialog design
* fix: update parameter input event bindings
* fix: rename deprecated lifecycle methods
* fix: fix json view mapping
* build: update lock file
* fix(editor): revisit last conflict with master and fix issues
* fix(editor): revisit last conflict with master and fix issues
* fix: fix expression editor bug causing code mirror to no longer be reactive
* fix: fix resource locator bug
* fix: fix vue-agile integration
* fix: remove global import for vue-agile
* fix: replace element-plus buttons with n8n-buttons everywhere
* fix(editor): Fix various element-plus styles (#6571)
* fix(editor): Fix various element-plus styles
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Remove debugging code
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Address PR comments
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix(editor): Fix loading in production mode [Vue 3] (#6578)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix(editor): First round of e2e tests fixes with Vue 3 (#6579)
* fix(editor): Fix broken smoke and workflow list e2e tests
* ✔️ Fix failing canvas action tests. Updating some selectors used in credentials and workflow tests
* feat: add vue 3 eslint rules and fix issues
* fix: fix tags-dropdown
* fix: fix white-space issues caused by i18n-t
* fix: rename non-generic click events
* fix: fix search in resources list layout
* fix: fix datatable paginator
* fix: fix popper select caret and dropdown size
* fix: add width to action-dropdown
* fix: fix workflow settings icon not being hidden
* fix: refactor newly added code
* fix: fix merge issue
* fix: fix ndv credentials watcher
* fix: fix workflow saving and grabber notch
* fix: fix nodes list panel transition
* fix: fix node title visibility
* fix: fix data unpinning
* fix: fix value access
* fix: show input panel only if trigger panel enabled or not trigger node
* fix: fix tags dropdown and executions status spcing
* fix(editor): Prevent execution list to load back when leaving the route (#6697)
fix(editor): prevent execution list to load back when leaving the route
* fix: fix drawer visibility
* fix: fix expression toggle padding
* fix: fix expressions editor styling
* chore: prepare for testing
* fix: fix styling for el-button without patching
* test: fix unit tests in design-system
* test: fix most unit tests
* fix: remove import cycle.
* fix: fix personalization modal tests
* fix further resource mapper test adjustments
* fix: fix multiple tests and n8n-route attr duplication
* fix: fix source control tets
* fix: fixed remaining unit tests
* fix: fix workflows and credentials e2e tests
* fix: fix localizeNodeNames
* fix: update ndv e2e tests
* fix: fix popper left placement arrow
* fix: fix 5-ndv e2e tests
* fix: fix 6-code-node e2e tests
* fix(editor): Drop click outside directive from NodeCreator (#6716)
* fix(editor): Drop click outside directive from NodeCreator
* fix(editor): make sure mouseup outside is unbound at least before the component is unmounted
* fix: fix 10-settings-log-streaming e2e tests
* fix: fix node redrawing
* fix: fix tooltip buttons styling
* fix: fix varous e2e suites
* fix: fix 15-scheduler-node e2e suite
* fix: fix route watcher
* fix: fixed param name update and credential edit
* feat: update event names
* refactor: Remove deprecated `$data` (#6576)
Co-authored-by: Alex Grozav <alex@grozav.com>
* fix: fix 17-sharing e2e suite
* fix: fix tags dropdown
* fix: fix tags manager
* fix(editor): move :deep selectors to a separate scoped style block
* fix: fix sticky component and inline text edit
* fix: update e2e tests
* fix: remove button override references
* fix(editor): Adjust spacing in templates for Vue 3 (#6744)
* fix(editor): Adjust spacing in templates
* fix: Undo unneeded change
* fix: Undo unneeded change
* fix(editor): Adjust NDV height for Vue 3 (#6742)
fix(editor): Adjust NDV height
* fix(editor): Restore collapsed sidebar items for Vue 3 (#6743)
fix(editor): Restore collapsed sidebar items
* fix: fix linting issues
* fix: fix design-system deps
* fix: post-merge fixes
* fix: update tests
* fix: increase timeout for executionslist tets
* chore: fix linting issue
* fix: fix 14-mapping e2e tests in ci
* fix: re-enable tests
* fix: fix workflow duplication e2e tests after tags update
* fix(editor): Change component prop to be typed
* fix: fix tags dropdown in duplicate wf modal
* fix: fix focus behaviour in tags selector
* fix: fix tag creation
* fix: fix log streaming e2e race condition
* fix(editor): Fix Vue 3 linting issues (#6748)
* fix(editor): Fix Vue 3 linting issues
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix MainSidebar linter issues
* revert pnpm lock
* update pnpm lock file
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Alex Grozav <alex@grozav.com>
* fix(editor): Some css fixes for vue3 branch (#6749)
* ✨ Fixing filter button height
* ✨ Update input modal button position
* ✨ Updating tags styling
* ✨ Fix event logging settings spacing
* 👕 Fixing lint errors
* fix: fix linting issues
* Revert to `// eslint-disable-next-line @typescript-eslint/no-misused-promises` disabling of mixins init
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix: fix css issue
* fix(editor): Lint fix
* fix(editor): Fix settings initialisation (#6750)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix: fix initial settings loading
* fix: replace realClick with click force
* fix: fix randomly failing mapping e2e tests
* fix(editor): Fix menu item event handling
* fix: fix resource filters dropdown events (#6752)
* fix: fix resource filters dropdown events
* fix: remove teleported:false
* fix: fix event selection event naming (#6753)
* fix: removed console.log (#6754)
* fix: rever await nextTick changes
* fix: redo linting changes
* fix(editor): Redraw node connections if adding more than one node to canvas (#6755)
* fix(editor): Redraw node connections if adding more than one node to canvas
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Update position before connection two nodes
* Lint fix
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Alex Grozav <alex@grozav.com>
* fix(editor): Fix `ResourceMapper` unit tests (#6758)
* ✔️ Fix matching columns test
* ✔️ Fix multiple matching columns test
* ✔️ Removing `skip` from the last test
* fix: Allow pasting a big workflow (#6760)
* fix: pasting a big workflow
* chore: update comment
* refactor: move try/catch to function
* refactor: move try/catch to function
* fix(editor): Fix modal layer width
* fix: fix position changes
* fix: undo it.only
* fix: make undo/redo multiple steps more verbose
* fix: Fix value survey styles (#6764)
* fix: fix value survey styles
* fix: lint
* Revert "fix: lint"
72869c431f1448861df021be041b61c62f1e3118
* fix: lint
* fix(editor): Fix collapsed sub menu
* fix: Fix drawer animation (#6767)
fix: drawer animation
* fix(editor): Fix source control buttons (#6769)
* fix(editor): Fix App loading & auth (#6768)
* fix(editor): Fix App loading & auth
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Await promises
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Fix eslint error
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
Co-authored-by: OlegIvaniv <me@olegivaniv.com>
Co-authored-by: Milorad FIlipović <milorad@n8n.io>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>
* perf(editor): Memoize locale translate calls during actions generation (#6773)
performance(editor): Memoize locale translate calls during actions generation
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix(editor): Close tags dropdown when modal is opened (#6766)
* feat: remove vue-fragment (no-changelog)
* feat: partial design-system migration
* feat: migrate info-accordion and info-tip components
* feat: migrate several components to vue 3
* feat: migrated several components
* feat: migrate several components
* feat: migrate several components
* feat: migrate several components
* feat: re-exported all design system components
* fix: fix design for popper components
* fix: editor kind of working, lots of issues to fix
* fix: fix several vue 3 migration issues
* fix: replace @change with @update:modelValue in several places
* fix: fix translation linking
* fix: fix inline-edit input
* fix: fix ndv and dialog design
* fix: update parameter input event bindings
* fix: rename deprecated lifecycle methods
* fix: fix json view mapping
* build: update lock file
* fix(editor): revisit last conflict with master and fix issues
* fix(editor): revisit last conflict with master and fix issues
* fix: fix expression editor bug causing code mirror to no longer be reactive
* fix: fix resource locator bug
* fix: fix vue-agile integration
* fix: remove global import for vue-agile
* fix: replace element-plus buttons with n8n-buttons everywhere
* fix(editor): Fix various element-plus styles (#6571)
* fix(editor): Fix various element-plus styles
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Remove debugging code
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Address PR comments
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix(editor): Fix loading in production mode [Vue 3] (#6578)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix(editor): First round of e2e tests fixes with Vue 3 (#6579)
* fix(editor): Fix broken smoke and workflow list e2e tests
* ✔️ Fix failing canvas action tests. Updating some selectors used in credentials and workflow tests
* feat: add vue 3 eslint rules and fix issues
* fix: fix tags-dropdown
* fix: fix white-space issues caused by i18n-t
* fix: rename non-generic click events
* fix: fix search in resources list layout
* fix: fix datatable paginator
* fix: fix popper select caret and dropdown size
* fix: add width to action-dropdown
* fix: fix workflow settings icon not being hidden
* fix: refactor newly added code
* fix: fix merge issue
* fix: fix ndv credentials watcher
* fix: fix workflow saving and grabber notch
* fix: fix nodes list panel transition
* fix: fix node title visibility
* fix: fix data unpinning
* fix: fix value access
* fix: show input panel only if trigger panel enabled or not trigger node
* fix: fix tags dropdown and executions status spcing
* fix(editor): Prevent execution list to load back when leaving the route (#6697)
fix(editor): prevent execution list to load back when leaving the route
* fix: fix drawer visibility
* fix: fix expression toggle padding
* fix: fix expressions editor styling
* chore: prepare for testing
* fix: fix styling for el-button without patching
* test: fix unit tests in design-system
* test: fix most unit tests
* fix: remove import cycle.
* fix: fix personalization modal tests
* fix further resource mapper test adjustments
* fix: fix multiple tests and n8n-route attr duplication
* fix: fix source control tets
* fix: fixed remaining unit tests
* fix: fix workflows and credentials e2e tests
* fix: fix localizeNodeNames
* fix: update ndv e2e tests
* fix: fix popper left placement arrow
* fix: fix 5-ndv e2e tests
* fix: fix 6-code-node e2e tests
* fix(editor): Drop click outside directive from NodeCreator (#6716)
* fix(editor): Drop click outside directive from NodeCreator
* fix(editor): make sure mouseup outside is unbound at least before the component is unmounted
* fix: fix 10-settings-log-streaming e2e tests
* fix: fix node redrawing
* fix: fix tooltip buttons styling
* fix: fix varous e2e suites
* fix: fix 15-scheduler-node e2e suite
* fix: fix route watcher
* fix: fixed param name update and credential edit
* feat: update event names
* refactor: Remove deprecated `$data` (#6576)
Co-authored-by: Alex Grozav <alex@grozav.com>
* fix: fix 17-sharing e2e suite
* fix: fix tags dropdown
* fix: fix tags manager
* fix(editor): move :deep selectors to a separate scoped style block
* fix: fix sticky component and inline text edit
* fix: update e2e tests
* fix: remove button override references
* fix(editor): Adjust spacing in templates for Vue 3 (#6744)
* fix(editor): Adjust spacing in templates
* fix: Undo unneeded change
* fix: Undo unneeded change
* fix(editor): Adjust NDV height for Vue 3 (#6742)
fix(editor): Adjust NDV height
* fix(editor): Restore collapsed sidebar items for Vue 3 (#6743)
fix(editor): Restore collapsed sidebar items
* fix: fix linting issues
* fix: fix design-system deps
* fix: post-merge fixes
* fix: update tests
* fix: increase timeout for executionslist tets
* chore: fix linting issue
* fix: fix 14-mapping e2e tests in ci
* fix: re-enable tests
* fix: fix workflow duplication e2e tests after tags update
* fix(editor): Change component prop to be typed
* fix: fix tags dropdown in duplicate wf modal
* fix: fix focus behaviour in tags selector
* fix: fix tag creation
* fix: fix log streaming e2e race condition
* fix(editor): Fix Vue 3 linting issues (#6748)
* fix(editor): Fix Vue 3 linting issues
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix MainSidebar linter issues
* revert pnpm lock
* update pnpm lock file
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Alex Grozav <alex@grozav.com>
* fix(editor): Some css fixes for vue3 branch (#6749)
* ✨ Fixing filter button height
* ✨ Update input modal button position
* ✨ Updating tags styling
* ✨ Fix event logging settings spacing
* 👕 Fixing lint errors
* fix: fix linting issues
* Revert to `// eslint-disable-next-line @typescript-eslint/no-misused-promises` disabling of mixins init
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix: fix css issue
* fix(editor): Lint fix
* fix(editor): Fix settings initialisation (#6750)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix: fix initial settings loading
* fix: replace realClick with click force
* fix: fix randomly failing mapping e2e tests
* fix(editor): Fix menu item event handling
* fix: fix resource filters dropdown events (#6752)
* fix: fix resource filters dropdown events
* fix: remove teleported:false
* fix: fix event selection event naming (#6753)
* fix: removed console.log (#6754)
* fix: rever await nextTick changes
* fix: redo linting changes
* fix(editor): Redraw node connections if adding more than one node to canvas (#6755)
* fix(editor): Redraw node connections if adding more than one node to canvas
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Update position before connection two nodes
* Lint fix
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Alex Grozav <alex@grozav.com>
* fix(editor): Fix `ResourceMapper` unit tests (#6758)
* ✔️ Fix matching columns test
* ✔️ Fix multiple matching columns test
* ✔️ Removing `skip` from the last test
* fix: Allow pasting a big workflow (#6760)
* fix: pasting a big workflow
* chore: update comment
* refactor: move try/catch to function
* refactor: move try/catch to function
* fix(editor): Fix modal layer width
* fix: fix position changes
* fix: undo it.only
* fix: make undo/redo multiple steps more verbose
* fix: Fix value survey styles (#6764)
* fix: fix value survey styles
* fix: lint
* Revert "fix: lint"
72869c431f1448861df021be041b61c62f1e3118
* fix: lint
* fix(editor): Close tags dropdown when modal is opened
* ✔️ Updating tag selectors in e2e tests
* ✔️ Using tab to blur dropdown after adding tags
* ✔️ Clicking on the New Tab button instead of the tags dropdown to open it
* Reverting merge changes added by mistake
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Alex Grozav <alex@grozav.com>
Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
Co-authored-by: OlegIvaniv <me@olegivaniv.com>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>
* fix: Show NodeIcon tooltips by removing pointer-events: none (#6777)
fix: show NodeIcon tooltips by removing pointer-events: none
* fix: Respect set modal widths (#6771)
* feat: remove vue-fragment (no-changelog)
* feat: partial design-system migration
* feat: migrate info-accordion and info-tip components
* feat: migrate several components to vue 3
* feat: migrated several components
* feat: migrate several components
* feat: migrate several components
* feat: migrate several components
* feat: re-exported all design system components
* fix: fix design for popper components
* fix: editor kind of working, lots of issues to fix
* fix: fix several vue 3 migration issues
* fix: replace @change with @update:modelValue in several places
* fix: fix translation linking
* fix: fix inline-edit input
* fix: fix ndv and dialog design
* fix: update parameter input event bindings
* fix: rename deprecated lifecycle methods
* fix: fix json view mapping
* build: update lock file
* fix(editor): revisit last conflict with master and fix issues
* fix(editor): revisit last conflict with master and fix issues
* fix: fix expression editor bug causing code mirror to no longer be reactive
* fix: fix resource locator bug
* fix: fix vue-agile integration
* fix: remove global import for vue-agile
* fix: replace element-plus buttons with n8n-buttons everywhere
* fix(editor): Fix various element-plus styles (#6571)
* fix(editor): Fix various element-plus styles
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Remove debugging code
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Address PR comments
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix(editor): Fix loading in production mode [Vue 3] (#6578)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix(editor): First round of e2e tests fixes with Vue 3 (#6579)
* fix(editor): Fix broken smoke and workflow list e2e tests
* ✔️ Fix failing canvas action tests. Updating some selectors used in credentials and workflow tests
* feat: add vue 3 eslint rules and fix issues
* fix: fix tags-dropdown
* fix: fix white-space issues caused by i18n-t
* fix: rename non-generic click events
* fix: fix search in resources list layout
* fix: fix datatable paginator
* fix: fix popper select caret and dropdown size
* fix: add width to action-dropdown
* fix: fix workflow settings icon not being hidden
* fix: refactor newly added code
* fix: fix merge issue
* fix: fix ndv credentials watcher
* fix: fix workflow saving and grabber notch
* fix: fix nodes list panel transition
* fix: fix node title visibility
* fix: fix data unpinning
* fix: fix value access
* fix: show input panel only if trigger panel enabled or not trigger node
* fix: fix tags dropdown and executions status spcing
* fix(editor): Prevent execution list to load back when leaving the route (#6697)
fix(editor): prevent execution list to load back when leaving the route
* fix: fix drawer visibility
* fix: fix expression toggle padding
* fix: fix expressions editor styling
* chore: prepare for testing
* fix: fix styling for el-button without patching
* test: fix unit tests in design-system
* test: fix most unit tests
* fix: remove import cycle.
* fix: fix personalization modal tests
* fix further resource mapper test adjustments
* fix: fix multiple tests and n8n-route attr duplication
* fix: fix source control tets
* fix: fixed remaining unit tests
* fix: fix workflows and credentials e2e tests
* fix: fix localizeNodeNames
* fix: update ndv e2e tests
* fix: fix popper left placement arrow
* fix: fix 5-ndv e2e tests
* fix: fix 6-code-node e2e tests
* fix(editor): Drop click outside directive from NodeCreator (#6716)
* fix(editor): Drop click outside directive from NodeCreator
* fix(editor): make sure mouseup outside is unbound at least before the component is unmounted
* fix: fix 10-settings-log-streaming e2e tests
* fix: fix node redrawing
* fix: fix tooltip buttons styling
* fix: fix varous e2e suites
* fix: fix 15-scheduler-node e2e suite
* fix: fix route watcher
* fix: fixed param name update and credential edit
* feat: update event names
* refactor: Remove deprecated `$data` (#6576)
Co-authored-by: Alex Grozav <alex@grozav.com>
* fix: fix 17-sharing e2e suite
* fix: fix tags dropdown
* fix: fix tags manager
* fix(editor): move :deep selectors to a separate scoped style block
* fix: fix sticky component and inline text edit
* fix: update e2e tests
* fix: remove button override references
* fix(editor): Adjust spacing in templates for Vue 3 (#6744)
* fix(editor): Adjust spacing in templates
* fix: Undo unneeded change
* fix: Undo unneeded change
* fix(editor): Adjust NDV height for Vue 3 (#6742)
fix(editor): Adjust NDV height
* fix(editor): Restore collapsed sidebar items for Vue 3 (#6743)
fix(editor): Restore collapsed sidebar items
* fix: fix linting issues
* fix: fix design-system deps
* fix: post-merge fixes
* fix: update tests
* fix: increase timeout for executionslist tets
* chore: fix linting issue
* fix: fix 14-mapping e2e tests in ci
* fix: re-enable tests
* fix: fix workflow duplication e2e tests after tags update
* fix(editor): Change component prop to be typed
* fix: fix tags dropdown in duplicate wf modal
* fix: fix focus behaviour in tags selector
* fix: fix tag creation
* fix: fix log streaming e2e race condition
* fix(editor): Fix Vue 3 linting issues (#6748)
* fix(editor): Fix Vue 3 linting issues
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix MainSidebar linter issues
* revert pnpm lock
* update pnpm lock file
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Alex Grozav <alex@grozav.com>
* fix(editor): Some css fixes for vue3 branch (#6749)
* ✨ Fixing filter button height
* ✨ Update input modal button position
* ✨ Updating tags styling
* ✨ Fix event logging settings spacing
* 👕 Fixing lint errors
* fix: fix linting issues
* Revert to `// eslint-disable-next-line @typescript-eslint/no-misused-promises` disabling of mixins init
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix: fix css issue
* fix(editor): Lint fix
* fix(editor): Fix settings initialisation (#6750)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix: fix initial settings loading
* fix: replace realClick with click force
* fix: fix randomly failing mapping e2e tests
* fix(editor): Fix menu item event handling
* fix: fix resource filters dropdown events (#6752)
* fix: fix resource filters dropdown events
* fix: remove teleported:false
* fix: fix event selection event naming (#6753)
* fix: removed console.log (#6754)
* fix: rever await nextTick changes
* fix: redo linting changes
* fix(editor): Redraw node connections if adding more than one node to canvas (#6755)
* fix(editor): Redraw node connections if adding more than one node to canvas
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Update position before connection two nodes
* Lint fix
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Alex Grozav <alex@grozav.com>
* fix(editor): Fix `ResourceMapper` unit tests (#6758)
* ✔️ Fix matching columns test
* ✔️ Fix multiple matching columns test
* ✔️ Removing `skip` from the last test
* fix: Allow pasting a big workflow (#6760)
* fix: pasting a big workflow
* chore: update comment
* refactor: move try/catch to function
* refactor: move try/catch to function
* fix(editor): Fix modal layer width
* fix: fix position changes
* fix: undo it.only
* fix: make undo/redo multiple steps more verbose
* fix: Fix value survey styles (#6764)
* fix: fix value survey styles
* fix: lint
* Revert "fix: lint"
72869c431f1448861df021be041b61c62f1e3118
* fix: lint
* fix(editor): Fix collapsed sub menu
* fix: Fix drawer animation (#6767)
fix: drawer animation
* fix(editor): Fix source control buttons (#6769)
* fix: Respect modal width
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Alex Grozav <alex@grozav.com>
Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
Co-authored-by: OlegIvaniv <me@olegivaniv.com>
Co-authored-by: Milorad FIlipović <milorad@n8n.io>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
* fix(editor): Fix tooltip opening delay prop name (#6776)
fix(editor): fix tooltip opening delay prop name
* fix(editor): Fix collapsed sub menu elements (#6778)
* fix: Remove number input arrows (no-changelog) (#6782)
fix: remove number input arrows
* ci: Update most of the dev tooling (no-changelog) (#6780)
* fix(TheHive Node): Treat `ApiKey` as a secret (#6786)
* test(editor): Prevent node view unload by default in e2e run (#6787)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix(editor): Resolve vue 3 related console-warnings (#6779)
* fix(editor): Resolve vue 3 related console-warnings
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Use span as component wrapper instead of div
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Wrap popover component in span
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix(editor): Vue3 - Fix modal positioning and multi-select tag sizing (#6783)
* ✨ Updating modals positioning within the overlay
* 💄 Implemented multi-select variant with small tabs
* ✔️ Removing password link clicks while modal is open in e2e tests
* Set generous timeout for $paramter resolve
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Oleg Ivaniv <me@olegivaniv.com>
* ci: Fix linting issues (no-changelog) (#6788)
* ci: Fix linting (no-changelog)
* lintfix for nodes-base as well
* fix(editor): Fix code node highlight error (#6791)
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* feat(core): Credentials for popular SecOps services, Part 1 (#6775)
* refactor: Clear unused ESLint directives from BE packages (no-changelog) (#6798)
* refactor(core): Cache workflow ownership (#6738)
* refactor: Set up ownership service
* refactor: Specify cache keys and values
* refactor: Replace util with service calls
* test: Mock service in tests
* refactor: Use dependency injection
* test: Write tests
* refactor: Apply feedback from Omar and Micha
* test: Fix tests
* test: Fix missing spot
* refactor: Return user entity from cache
* refactor: More dependency injection!
* fix(editor): Prevent text edit dialog from re-opening in same tick (#6781)
* fix: prevent reopenning textedit dialog in same tick
* fix: add same logic for code edit dialog
* fix: remove stop modifier
* fix: blur input field when closing modal, removing default element-plus behaviour
* test(editor): Do not chain invoke calls after assertions in 24-ndv-paired-item e2e spec (no-changelog) (#6800)
* test(editor): Do not chaing invoke calls after assertions in 24-ndv-paired-item e2e spec
* Do not chaing realHover after assertion
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Remove .only
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix(Todoist Node): Fix issue with section id being ignored (#6799)
* test(editor): Add canvas actions E2E tests (#6723) (#6790)
* test(editor): Add canvas actions E2E tests (#6723)
* test(editor): Add canvas actions E2E tests
* test(editor): Open category items in node creator when category dropped on canvas
* test(editor): Have new position counted only once in drag
* test(editor): rename test
(cherry picked from commit 052d82b2208c1b2e6f62c6004822c6278c15278b)
* test: fix drag positioning
* fix(core): Add missing primary key on the `execution_data` table on postgres (#6797)
* fix: Review fixes
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* fix: Fin locales
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Fix merging errors
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Map erros based on statusCode
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Fix code replacing
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Fix code formatting
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Address review points
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Optionally access total_tokens
* Clean-up Ask AI modal
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Store prompt in sessionStorage
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Improve schema generation, only get parent nodes
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Send error messages to telemetry, aske before switching tabs
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Add locale
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Post-merge cleanup
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Move Ask AI into separate folder
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Lint fix
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Constants lint fix
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Add Ask AI e2e tests and fix linting issues
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Move CircleLoader to design-lib
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Replace circle-lodaer and move el-tabs styles to n8n theme
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Fix placeholder & e2e tests
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
* Remove old CircleLoader
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
---------
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Alex Grozav <alex@grozav.com>
Co-authored-by: Romain Dunand <romain@1-more-thing.com>
Co-authored-by: Jon <jonathan.bennetts@gmail.com>
Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: Michael Auerswald <michael.auerswald@gmail.com>
Co-authored-by: Milorad FIlipović <milorad@n8n.io>
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Val <68596159+valya@users.noreply.github.com>
Co-authored-by: Marcus <56945030+maspio@users.noreply.github.com>
Co-authored-by: Jordan Hall <Jordan@libertyware.co.uk>
Co-authored-by: qg-horie <36725144+qg-horie@users.noreply.github.com>
Co-authored-by: Ricardo Espinoza <ricardo@n8n.io>
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
Co-authored-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>
2023-08-16 04:08:10 -07:00
|
|
|
ai: {
|
|
|
|
enabled: boolean;
|
|
|
|
};
|
2023-10-04 05:57:21 -07:00
|
|
|
workflowHistory: {
|
|
|
|
pruneTime: number;
|
|
|
|
licensePruneTime: number;
|
|
|
|
};
|
2023-04-21 04:30:57 -07:00
|
|
|
}
|
2023-07-14 06:36:17 -07:00
|
|
|
|
2023-08-25 01:33:46 -07:00
|
|
|
export interface SecretsHelpersBase {
|
|
|
|
update(): Promise<void>;
|
|
|
|
waitForInit(): Promise<void>;
|
|
|
|
|
|
|
|
getSecret(provider: string, name: string): IDataObject | undefined;
|
|
|
|
hasSecret(provider: string, name: string): boolean;
|
|
|
|
hasProvider(provider: string): boolean;
|
|
|
|
listProviders(): string[];
|
|
|
|
listSecrets(provider: string): string[];
|
|
|
|
}
|
|
|
|
|
2023-09-21 00:47:21 -07:00
|
|
|
export type BannerName =
|
|
|
|
| 'V1'
|
|
|
|
| 'TRIAL_OVER'
|
|
|
|
| 'TRIAL'
|
|
|
|
| 'NON_PRODUCTION_LICENSE'
|
|
|
|
| 'EMAIL_CONFIRMATION';
|
2023-11-27 06:33:21 -08:00
|
|
|
|
2023-11-28 07:47:28 -08:00
|
|
|
export type Functionality = 'regular' | 'configuration-node';
|