n8n-workflow 0.95.0 → 0.96.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/Interfaces.d.ts +16 -8
- package/package.json +1 -1
package/dist/src/Interfaces.d.ts
CHANGED
|
@@ -144,9 +144,17 @@ export interface IAuthenticateRuleResponseCode extends IAuthenticateRuleBase {
|
|
|
144
144
|
message: string;
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
+
export interface IAuthenticateRuleResponseSuccessBody extends IAuthenticateRuleBase {
|
|
148
|
+
type: 'responseSuccessBody';
|
|
149
|
+
properties: {
|
|
150
|
+
message: string;
|
|
151
|
+
key: string;
|
|
152
|
+
value: any;
|
|
153
|
+
};
|
|
154
|
+
}
|
|
147
155
|
export interface ICredentialTestRequest {
|
|
148
156
|
request: IHttpRequestOptions;
|
|
149
|
-
rules?: IAuthenticateRuleResponseCode[];
|
|
157
|
+
rules?: IAuthenticateRuleResponseCode[] | IAuthenticateRuleResponseSuccessBody[];
|
|
150
158
|
}
|
|
151
159
|
export interface ICredentialTestRequestData {
|
|
152
160
|
nodeType?: INodeType;
|
|
@@ -284,7 +292,7 @@ export interface IExecuteFunctions {
|
|
|
284
292
|
evaluateExpression(expression: string, itemIndex: number): NodeParameterValue | INodeParameters | NodeParameterValue[] | INodeParameters[];
|
|
285
293
|
executeWorkflow(workflowInfo: IExecuteWorkflowInfo, inputData?: INodeExecutionData[]): Promise<any>;
|
|
286
294
|
getContext(type: string): IContextObject;
|
|
287
|
-
getCredentials(type: string, itemIndex?: number): Promise<ICredentialDataDecryptedObject
|
|
295
|
+
getCredentials(type: string, itemIndex?: number): Promise<ICredentialDataDecryptedObject>;
|
|
288
296
|
getInputData(inputIndex?: number, inputName?: string): INodeExecutionData[];
|
|
289
297
|
getMode(): WorkflowExecuteMode;
|
|
290
298
|
getNode(): INode;
|
|
@@ -311,7 +319,7 @@ export interface IExecuteSingleFunctions {
|
|
|
311
319
|
continueOnFail(): boolean;
|
|
312
320
|
evaluateExpression(expression: string, itemIndex: number | undefined): NodeParameterValue | INodeParameters | NodeParameterValue[] | INodeParameters[];
|
|
313
321
|
getContext(type: string): IContextObject;
|
|
314
|
-
getCredentials(type: string): Promise<ICredentialDataDecryptedObject
|
|
322
|
+
getCredentials(type: string): Promise<ICredentialDataDecryptedObject>;
|
|
315
323
|
getInputData(inputIndex?: number, inputName?: string): INodeExecutionData;
|
|
316
324
|
getMode(): WorkflowExecuteMode;
|
|
317
325
|
getNode(): INode;
|
|
@@ -341,7 +349,7 @@ export interface ICredentialTestFunctions {
|
|
|
341
349
|
};
|
|
342
350
|
}
|
|
343
351
|
export interface ILoadOptionsFunctions {
|
|
344
|
-
getCredentials(type: string): Promise<ICredentialDataDecryptedObject
|
|
352
|
+
getCredentials(type: string): Promise<ICredentialDataDecryptedObject>;
|
|
345
353
|
getNode(): INode;
|
|
346
354
|
getNodeParameter(parameterName: string, fallbackValue?: any): NodeParameterValue | INodeParameters | NodeParameterValue[] | INodeParameters[] | object;
|
|
347
355
|
getCurrentNodeParameter(parameterName: string): NodeParameterValue | INodeParameters | NodeParameterValue[] | INodeParameters[] | object | undefined;
|
|
@@ -356,7 +364,7 @@ export interface ILoadOptionsFunctions {
|
|
|
356
364
|
};
|
|
357
365
|
}
|
|
358
366
|
export interface IHookFunctions {
|
|
359
|
-
getCredentials(type: string): Promise<ICredentialDataDecryptedObject
|
|
367
|
+
getCredentials(type: string): Promise<ICredentialDataDecryptedObject>;
|
|
360
368
|
getMode(): WorkflowExecuteMode;
|
|
361
369
|
getActivationMode(): WorkflowActivateMode;
|
|
362
370
|
getNode(): INode;
|
|
@@ -375,7 +383,7 @@ export interface IHookFunctions {
|
|
|
375
383
|
}
|
|
376
384
|
export interface IPollFunctions {
|
|
377
385
|
__emit(data: INodeExecutionData[][]): void;
|
|
378
|
-
getCredentials(type: string): Promise<ICredentialDataDecryptedObject
|
|
386
|
+
getCredentials(type: string): Promise<ICredentialDataDecryptedObject>;
|
|
379
387
|
getMode(): WorkflowExecuteMode;
|
|
380
388
|
getActivationMode(): WorkflowActivateMode;
|
|
381
389
|
getNode(): INode;
|
|
@@ -393,7 +401,7 @@ export interface IPollFunctions {
|
|
|
393
401
|
export interface ITriggerFunctions {
|
|
394
402
|
emit(data: INodeExecutionData[][], responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>): void;
|
|
395
403
|
emitError(error: Error, responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>): void;
|
|
396
|
-
getCredentials(type: string): Promise<ICredentialDataDecryptedObject
|
|
404
|
+
getCredentials(type: string): Promise<ICredentialDataDecryptedObject>;
|
|
397
405
|
getMode(): WorkflowExecuteMode;
|
|
398
406
|
getActivationMode(): WorkflowActivateMode;
|
|
399
407
|
getNode(): INode;
|
|
@@ -410,7 +418,7 @@ export interface ITriggerFunctions {
|
|
|
410
418
|
}
|
|
411
419
|
export interface IWebhookFunctions {
|
|
412
420
|
getBodyData(): IDataObject;
|
|
413
|
-
getCredentials(type: string): Promise<ICredentialDataDecryptedObject
|
|
421
|
+
getCredentials(type: string): Promise<ICredentialDataDecryptedObject>;
|
|
414
422
|
getHeaderData(): object;
|
|
415
423
|
getMode(): WorkflowExecuteMode;
|
|
416
424
|
getNode(): INode;
|