mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
🔀 Merge pull request #65 from jmargeta/fix_typos
Fix typo in IWebhookResonseData
This commit is contained in:
commit
291d405a12
|
@ -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[] = [];
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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.`);
|
||||
|
|
Loading…
Reference in a new issue