mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
👕 Fix typo: IWebhookResonseData->IWebhookResponseData
This commit is contained in:
parent
8fc94b8324
commit
50a342b2fb
|
@ -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[] = [];
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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') {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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.`);
|
||||||
|
|
Loading…
Reference in a new issue