👕 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, IDataObject,
INodeTypeDescription, INodeTypeDescription,
INodeType, INodeType,
IWebhookResonseData, IWebhookResponseData,
} from 'n8n-workflow'; } 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 // The data to return and so start the workflow with
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View file

@ -7,7 +7,7 @@ import {
IDataObject, IDataObject,
INodeTypeDescription, INodeTypeDescription,
INodeType, INodeType,
IWebhookResonseData, IWebhookResponseData,
} from 'n8n-workflow'; } from 'n8n-workflow';
import { 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 bodyData = this.getBodyData() as IDataObject;
const headerData = this.getHeaderData() as IDataObject; const headerData = this.getHeaderData() as IDataObject;
const req = this.getRequestObject(); const req = this.getRequestObject();

View file

@ -6,7 +6,7 @@ import {
IDataObject, IDataObject,
INodeTypeDescription, INodeTypeDescription,
INodeType, INodeType,
IWebhookResonseData, IWebhookResponseData,
} from 'n8n-workflow'; } 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 bodyData = this.getBodyData() as IDataObject;
const req = this.getRequestObject(); const req = this.getRequestObject();

View file

@ -7,7 +7,7 @@ import {
IDataObject, IDataObject,
INodeTypeDescription, INodeTypeDescription,
INodeType, INodeType,
IWebhookResonseData, IWebhookResponseData,
} from 'n8n-workflow'; } from 'n8n-workflow';
import { 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(); const bodyData = this.getBodyData();
// Check if the webhook is only the ping from Github to confirm if it workshook_id // Check if the webhook is only the ping from Github to confirm if it workshook_id

View file

@ -6,7 +6,7 @@ import {
import { import {
INodeTypeDescription, INodeTypeDescription,
INodeType, INodeType,
IWebhookResonseData, IWebhookResponseData,
} from 'n8n-workflow'; } from 'n8n-workflow';
import { 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 req = this.getRequestObject();
const resp = this.getResponseObject(); const resp = this.getResponseObject();
const realm = 'Webhook'; const realm = 'Webhook';

View file

@ -6,7 +6,7 @@ import {
import { import {
INodeTypeDescription, INodeTypeDescription,
INodeType, INodeType,
IWebhookResonseData, IWebhookResponseData,
} from 'n8n-workflow'; } from 'n8n-workflow';
import { 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(); const bodyData = this.getBodyData();
return { return {

View file

@ -7,7 +7,7 @@ import {
IDataObject, IDataObject,
INodeTypeDescription, INodeTypeDescription,
INodeType, INodeType,
IWebhookResonseData, IWebhookResponseData,
} from 'n8n-workflow'; } from 'n8n-workflow';
import { 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(); const webhookName = this.getWebhookName();
if (webhookName === 'setup') { if (webhookName === 'setup') {

View file

@ -6,7 +6,7 @@ import {
import { import {
INodeTypeDescription, INodeTypeDescription,
INodeType, INodeType,
IWebhookResonseData, IWebhookResponseData,
IDataObject, IDataObject,
} from 'n8n-workflow'; } 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 bodyData = this.getBodyData();
const simplifyAnswers = this.getNodeParameter('simplifyAnswers') as boolean; const simplifyAnswers = this.getNodeParameter('simplifyAnswers') as boolean;

View file

@ -6,7 +6,7 @@ import {
IDataObject, IDataObject,
INodeTypeDescription, INodeTypeDescription,
INodeType, INodeType,
IWebhookResonseData, IWebhookResponseData,
} from 'n8n-workflow'; } from 'n8n-workflow';
import * as basicAuth from 'basic-auth'; 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 authentication = this.getNodeParameter('authentication', 0) as string;
const req = this.getRequestObject(); const req = this.getRequestObject();
const resp = this.getResponseObject(); const resp = this.getResponseObject();

View file

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

View file

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