n8n-workflow
Advanced tools
Comparing version 0.71.0 to 0.72.0
@@ -32,5 +32,6 @@ /// <reference types="node" /> | ||
export interface IGetCredentials { | ||
get(type: string, name: string): Promise<ICredentialsEncrypted>; | ||
get(type: string, id: string | null): Promise<ICredentialsEncrypted>; | ||
} | ||
export declare abstract class ICredentials { | ||
id?: string; | ||
name: string; | ||
@@ -40,3 +41,3 @@ type: string; | ||
nodesAccess: ICredentialNodeAccess[]; | ||
constructor(name: string, type: string, nodesAccess: ICredentialNodeAccess[], data?: string); | ||
constructor(nodeCredentials: INodeCredentialsDetails, type: string, nodesAccess: ICredentialNodeAccess[], data?: string); | ||
abstract getData(encryptionKey: string, nodeType?: string): ICredentialDataDecryptedObject; | ||
@@ -55,2 +56,3 @@ abstract getDataKey(key: string, encryptionKey: string, nodeType?: string): CredentialInformation; | ||
export interface ICredentialsDecrypted { | ||
id: string | number; | ||
name: string; | ||
@@ -62,2 +64,3 @@ type: string; | ||
export interface ICredentialsEncrypted { | ||
id?: string | number; | ||
name: string; | ||
@@ -79,5 +82,5 @@ type: string; | ||
constructor(encryptionKey: string); | ||
abstract getCredentials(name: string, type: string): Promise<ICredentials>; | ||
abstract getDecrypted(name: string, type: string, mode: WorkflowExecuteMode, raw?: boolean, expressionResolveValues?: ICredentialsExpressionResolveValues): Promise<ICredentialDataDecryptedObject>; | ||
abstract updateCredentials(name: string, type: string, data: ICredentialDataDecryptedObject): Promise<void>; | ||
abstract getCredentials(nodeCredentials: INodeCredentialsDetails, type: string): Promise<ICredentials>; | ||
abstract getDecrypted(nodeCredentials: INodeCredentialsDetails, type: string, mode: WorkflowExecuteMode, raw?: boolean, expressionResolveValues?: ICredentialsExpressionResolveValues): Promise<ICredentialDataDecryptedObject>; | ||
abstract updateCredentials(nodeCredentials: INodeCredentialsDetails, type: string, data: ICredentialDataDecryptedObject): Promise<void>; | ||
} | ||
@@ -104,2 +107,3 @@ export interface ICredentialType { | ||
export interface ICredentialData { | ||
id?: string; | ||
name: string; | ||
@@ -328,4 +332,8 @@ data: string; | ||
} | ||
export interface INodeCredentialsDetails { | ||
id: string | null; | ||
name: string; | ||
} | ||
export interface INodeCredentials { | ||
[key: string]: string; | ||
[key: string]: INodeCredentialsDetails; | ||
} | ||
@@ -660,4 +668,4 @@ export interface INode { | ||
export interface IWorkflowCredentials { | ||
[key: string]: { | ||
[key: string]: ICredentialsEncrypted; | ||
[credentialType: string]: { | ||
[id: string]: ICredentialsEncrypted; | ||
}; | ||
@@ -664,0 +672,0 @@ } |
@@ -5,4 +5,5 @@ "use strict"; | ||
class ICredentials { | ||
constructor(name, type, nodesAccess, data) { | ||
this.name = name; | ||
constructor(nodeCredentials, type, nodesAccess, data) { | ||
this.id = nodeCredentials.id || undefined; | ||
this.name = nodeCredentials.name; | ||
this.type = type; | ||
@@ -9,0 +10,0 @@ this.nodesAccess = nodesAccess; |
{ | ||
"name": "n8n-workflow", | ||
"version": "0.71.0", | ||
"version": "0.72.0", | ||
"description": "Workflow base code of n8n", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.md", |
Sorry, the diff of this file is not supported yet
467208
7347