👕 Fix typo: IWebhookResonseData->IWebhookResponseData

This commit is contained in:
Jan Margeta 2019-10-11 13:02:44 +02:00
parent 8fc94b8324
commit 50a342b2fb
11 changed files with 23 additions and 23 deletions

View file

@ -6,7 +6,7 @@ import {
IDataObject,
INodeTypeDescription,
INodeType,
IWebhookResonseData,
IWebhookResponseData,
} from 'n8n-workflow';
@ -48,7 +48,7 @@ export class ClassNameReplace implements INodeType {
};
async webhook(this: IWebhookFunctions): Promise<IWebhookResonseData> {
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
// The data to return and so start the workflow with
const returnData: IDataObject[] = [];

View file

@ -7,7 +7,7 @@ import {
IDataObject,
INodeTypeDescription,
INodeType,
IWebhookResonseData,
IWebhookResponseData,
} from 'n8n-workflow';
import {
@ -138,7 +138,7 @@ export class AsanaTrigger implements INodeType {
async webhook(this: IWebhookFunctions): Promise<IWebhookResonseData> {
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
const bodyData = this.getBodyData() as IDataObject;
const headerData = this.getHeaderData() as IDataObject;
const req = this.getRequestObject();

View file

@ -6,7 +6,7 @@ import {
IDataObject,
INodeTypeDescription,
INodeType,
IWebhookResonseData,
IWebhookResponseData,
} from 'n8n-workflow';
@ -222,7 +222,7 @@ export class ChargebeeTrigger implements INodeType {
};
async webhook(this: IWebhookFunctions): Promise<IWebhookResonseData> {
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
const bodyData = this.getBodyData() as IDataObject;
const req = this.getRequestObject();

View file

@ -7,7 +7,7 @@ import {
IDataObject,
INodeTypeDescription,
INodeType,
IWebhookResonseData,
IWebhookResponseData,
} from 'n8n-workflow';
import {
@ -403,7 +403,7 @@ export class GithubTrigger implements INodeType {
async webhook(this: IWebhookFunctions): Promise<IWebhookResonseData> {
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
const bodyData = this.getBodyData();
// Check if the webhook is only the ping from Github to confirm if it workshook_id

View file

@ -6,7 +6,7 @@ import {
import {
INodeTypeDescription,
INodeType,
IWebhookResonseData,
IWebhookResponseData,
} from 'n8n-workflow';
import {
@ -278,7 +278,7 @@ export class PipedriveTrigger implements INodeType {
async webhook(this: IWebhookFunctions): Promise<IWebhookResonseData> {
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
const req = this.getRequestObject();
const resp = this.getResponseObject();
const realm = 'Webhook';

View file

@ -6,7 +6,7 @@ import {
import {
INodeTypeDescription,
INodeType,
IWebhookResonseData,
IWebhookResponseData,
} from 'n8n-workflow';
import {
@ -151,7 +151,7 @@ export class TelegramTrigger implements INodeType {
async webhook(this: IWebhookFunctions): Promise<IWebhookResonseData> {
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
const bodyData = this.getBodyData();
return {

View file

@ -7,7 +7,7 @@ import {
IDataObject,
INodeTypeDescription,
INodeType,
IWebhookResonseData,
IWebhookResponseData,
} from 'n8n-workflow';
import {
@ -179,7 +179,7 @@ export class TrelloTrigger implements INodeType {
async webhook(this: IWebhookFunctions): Promise<IWebhookResonseData> {
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
const webhookName = this.getWebhookName();
if (webhookName === 'setup') {

View file

@ -6,7 +6,7 @@ import {
import {
INodeTypeDescription,
INodeType,
IWebhookResonseData,
IWebhookResponseData,
IDataObject,
} from 'n8n-workflow';
@ -158,7 +158,7 @@ export class TypeformTrigger implements INodeType {
async webhook(this: IWebhookFunctions): Promise<IWebhookResonseData> {
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
const bodyData = this.getBodyData();
const simplifyAnswers = this.getNodeParameter('simplifyAnswers') as boolean;

View file

@ -6,7 +6,7 @@ import {
IDataObject,
INodeTypeDescription,
INodeType,
IWebhookResonseData,
IWebhookResponseData,
} from 'n8n-workflow';
import * as basicAuth from 'basic-auth';
@ -207,7 +207,7 @@ export class Webhook implements INodeType {
};
async webhook(this: IWebhookFunctions): Promise<IWebhookResonseData> {
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
const authentication = this.getNodeParameter('authentication', 0) as string;
const req = this.getRequestObject();
const resp = this.getResponseObject();

View file

@ -369,7 +369,7 @@ export interface INodeType {
execute?(this: IExecuteFunctions): Promise<INodeExecutionData[][] | null>;
executeSingle?(this: IExecuteSingleFunctions): Promise<INodeExecutionData>;
trigger?(this: ITriggerFunctions): Promise<ITriggerResponse | undefined>;
webhook?(this: IWebhookFunctions): Promise<IWebhookResonseData>;
webhook?(this: IWebhookFunctions): Promise<IWebhookResponseData>;
hooks?: {
[key: string]: (this: IHookFunctions) => Promise<boolean>;
};
@ -481,7 +481,7 @@ export interface IWorkflowDataProxyData {
export type WebhookHttpMethod = 'GET' | 'POST';
export interface IWebhookResonseData {
export interface IWebhookResponseData {
workflowData?: INodeExecutionData[][];
webhookResponse?: any; // tslint:disable-line:no-any
noWebhookResponse?: boolean;

View file

@ -17,7 +17,7 @@ import {
ITaskDataConnections,
ITriggerResponse,
IWebhookData,
IWebhookResonseData,
IWebhookResponseData,
WebhookSetupMethodNames,
WorkflowDataProxy,
IWorfklowIssues,
@ -1002,10 +1002,10 @@ export class Workflow {
* @param {IWorkflowExecuteAdditionalData} additionalData
* @param {INodeExecuteFunctions} nodeExecuteFunctions
* @param {WorkflowExecuteMode} mode
* @returns {Promise<IWebhookResonseData>}
* @returns {Promise<IWebhookResponseData>}
* @memberof Workflow
*/
async runWebhook(webhookData: IWebhookData, node: INode, additionalData: IWorkflowExecuteAdditionalData, nodeExecuteFunctions: INodeExecuteFunctions, mode: WorkflowExecuteMode): Promise<IWebhookResonseData> {
async runWebhook(webhookData: IWebhookData, node: INode, additionalData: IWorkflowExecuteAdditionalData, nodeExecuteFunctions: INodeExecuteFunctions, mode: WorkflowExecuteMode): Promise<IWebhookResponseData> {
const nodeType = this.nodeTypes.getByName(node.type);
if (nodeType === undefined) {
throw new Error(`The type of the webhook node "${node.name}" is not known.`);