mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Fix some typos (no-changelog) (#5616)
This commit is contained in:
committed by
GitHub
parent
4e244937c9
commit
3c57062571
1
.vscode/extensions.json
vendored
1
.vscode/extensions.json
vendored
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
|
"streetsidesoftware.code-spell-checker",
|
||||||
"dangmai.workspace-default-settings",
|
"dangmai.workspace-default-settings",
|
||||||
"dbaeumer.vscode-eslint",
|
"dbaeumer.vscode-eslint",
|
||||||
"EditorConfig.EditorConfig",
|
"EditorConfig.EditorConfig",
|
||||||
|
|||||||
@@ -173,9 +173,9 @@ export class MessageEventBusDestinationWebhook
|
|||||||
acc: Promise<{ [key: string]: any }>,
|
acc: Promise<{ [key: string]: any }>,
|
||||||
cur: { name: string; value: string; parameterType?: string; inputDataFieldName?: string },
|
cur: { name: string; value: string; parameterType?: string; inputDataFieldName?: string },
|
||||||
) => {
|
) => {
|
||||||
const acumulator = await acc;
|
const accumulator = await acc;
|
||||||
acumulator[cur.name] = cur.value;
|
accumulator[cur.name] = cur.value;
|
||||||
return acumulator;
|
return accumulator;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Get parameters defined in the UI
|
// Get parameters defined in the UI
|
||||||
|
|||||||
@@ -620,7 +620,7 @@ export default mixins(
|
|||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.resetWorkspace();
|
this.resetWorkspace();
|
||||||
// Make sure the event listeners get removed again else we
|
// Make sure the event listeners get removed again else we
|
||||||
// could add up with them registred multiple times
|
// could add up with them registered multiple times
|
||||||
document.removeEventListener('keydown', this.keyDown);
|
document.removeEventListener('keydown', this.keyDown);
|
||||||
document.removeEventListener('keyup', this.keyUp);
|
document.removeEventListener('keyup', this.keyUp);
|
||||||
this.unregisterCustomAction('showNodeCreator');
|
this.unregisterCustomAction('showNodeCreator');
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ export class AffinityTrigger implements INodeType {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ export class AsanaTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
delete webhookData.webhookEvents;
|
delete webhookData.webhookEvents;
|
||||||
delete webhookData.hookSecret;
|
delete webhookData.hookSecret;
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ export class BoxTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ export class CalTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ export class CalendlyTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -569,7 +569,7 @@ export class CiscoWebexTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -100,9 +100,9 @@ export async function simplify(this: IExecuteFunctions, contacts: IContact[], li
|
|||||||
|
|
||||||
for (const contact of contacts) {
|
for (const contact of contacts) {
|
||||||
const extras = contact.extra.reduce(
|
const extras = contact.extra.reduce(
|
||||||
(acumulator: IDataObject, currentValue: IDataObject): any => {
|
(accumulator: IDataObject, currentValue: IDataObject): any => {
|
||||||
const key = fieldsKeyValue[currentValue.field_id as string] as string;
|
const key = fieldsKeyValue[currentValue.field_id as string] as string;
|
||||||
return { [key]: currentValue.value, ...acumulator };
|
return { [key]: currentValue.value, ...accumulator };
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ export class FigmaTrigger implements INodeType {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ export class FormstackTrigger implements INodeType {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -564,7 +564,7 @@ export class GithubTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
delete webhookData.webhookEvents;
|
delete webhookData.webhookEvents;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ export class GitlabTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
delete webhookData.webhookEvents;
|
delete webhookData.webhookEvents;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ export class HelpScoutTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
delete webhookData.secret;
|
delete webhookData.secret;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -335,13 +335,13 @@ export class Html implements INodeType {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// Itterate over all the defined values which should be extracted
|
// Iterate over all the defined values which should be extracted
|
||||||
let htmlElement;
|
let htmlElement;
|
||||||
for (const valueData of extractionValues.values as IValueData[]) {
|
for (const valueData of extractionValues.values as IValueData[]) {
|
||||||
htmlElement = $(valueData.cssSelector);
|
htmlElement = $(valueData.cssSelector);
|
||||||
|
|
||||||
if (valueData.returnArray) {
|
if (valueData.returnArray) {
|
||||||
// An array should be returned so itterate over one
|
// An array should be returned so iterate over one
|
||||||
// value at a time
|
// value at a time
|
||||||
newItem.json[valueData.key] = [];
|
newItem.json[valueData.key] = [];
|
||||||
htmlElement.each((i, el) => {
|
htmlElement.each((i, el) => {
|
||||||
|
|||||||
@@ -271,13 +271,13 @@ export class HtmlExtract implements INodeType {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// Itterate over all the defined values which should be extracted
|
// Iterate over all the defined values which should be extracted
|
||||||
let htmlElement;
|
let htmlElement;
|
||||||
for (const valueData of extractionValues.values as IValueData[]) {
|
for (const valueData of extractionValues.values as IValueData[]) {
|
||||||
htmlElement = $(valueData.cssSelector);
|
htmlElement = $(valueData.cssSelector);
|
||||||
|
|
||||||
if (valueData.returnArray) {
|
if (valueData.returnArray) {
|
||||||
// An array should be returned so itterate over one
|
// An array should be returned so iterate over one
|
||||||
// value at a time
|
// value at a time
|
||||||
newItem.json[valueData.key] = [];
|
newItem.json[valueData.key] = [];
|
||||||
htmlElement.each((i, el) => {
|
htmlElement.each((i, el) => {
|
||||||
|
|||||||
@@ -318,7 +318,7 @@ export class HttpRequestV1 implements INodeType {
|
|||||||
name: 'fullResponse',
|
name: 'fullResponse',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Whether to return the full reponse data instead of only the body',
|
description: 'Whether to return the full response data instead of only the body',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Follow All Redirects',
|
displayName: 'Follow All Redirects',
|
||||||
@@ -598,7 +598,7 @@ export class HttpRequestV1 implements INodeType {
|
|||||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||||
const items = this.getInputData();
|
const items = this.getInputData();
|
||||||
|
|
||||||
const fullReponseProperties = ['body', 'headers', 'statusCode', 'statusMessage'];
|
const fullResponseProperties = ['body', 'headers', 'statusCode', 'statusMessage'];
|
||||||
|
|
||||||
const responseFormat = this.getNodeParameter('responseFormat', 0) as string;
|
const responseFormat = this.getNodeParameter('responseFormat', 0) as string;
|
||||||
|
|
||||||
@@ -1035,7 +1035,7 @@ export class HttpRequestV1 implements INodeType {
|
|||||||
|
|
||||||
if (fullResponse) {
|
if (fullResponse) {
|
||||||
const returnItem: IDataObject = {};
|
const returnItem: IDataObject = {};
|
||||||
for (const property of fullReponseProperties) {
|
for (const property of fullResponseProperties) {
|
||||||
if (property === 'body') {
|
if (property === 'body') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -1063,7 +1063,7 @@ export class HttpRequestV1 implements INodeType {
|
|||||||
|
|
||||||
if (fullResponse) {
|
if (fullResponse) {
|
||||||
const returnItem: IDataObject = {};
|
const returnItem: IDataObject = {};
|
||||||
for (const property of fullReponseProperties) {
|
for (const property of fullResponseProperties) {
|
||||||
if (property === 'body') {
|
if (property === 'body') {
|
||||||
returnItem[dataPropertyName] = response![property];
|
returnItem[dataPropertyName] = response![property];
|
||||||
continue;
|
continue;
|
||||||
@@ -1091,7 +1091,7 @@ export class HttpRequestV1 implements INodeType {
|
|||||||
// responseFormat: 'json'
|
// responseFormat: 'json'
|
||||||
if (fullResponse) {
|
if (fullResponse) {
|
||||||
const returnItem: IDataObject = {};
|
const returnItem: IDataObject = {};
|
||||||
for (const property of fullReponseProperties) {
|
for (const property of fullResponseProperties) {
|
||||||
returnItem[property] = response![property];
|
returnItem[property] = response![property];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ export class HttpRequestV2 implements INodeType {
|
|||||||
name: 'fullResponse',
|
name: 'fullResponse',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Whether to return the full reponse data instead of only the body',
|
description: 'Whether to return the full response data instead of only the body',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Follow All Redirects',
|
displayName: 'Follow All Redirects',
|
||||||
@@ -610,7 +610,7 @@ export class HttpRequestV2 implements INodeType {
|
|||||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||||
const items = this.getInputData();
|
const items = this.getInputData();
|
||||||
|
|
||||||
const fullReponseProperties = ['body', 'headers', 'statusCode', 'statusMessage'];
|
const fullResponseProperties = ['body', 'headers', 'statusCode', 'statusMessage'];
|
||||||
|
|
||||||
let authentication;
|
let authentication;
|
||||||
|
|
||||||
@@ -1086,7 +1086,7 @@ export class HttpRequestV2 implements INodeType {
|
|||||||
|
|
||||||
if (fullResponse) {
|
if (fullResponse) {
|
||||||
const returnItem: IDataObject = {};
|
const returnItem: IDataObject = {};
|
||||||
for (const property of fullReponseProperties) {
|
for (const property of fullResponseProperties) {
|
||||||
if (property === 'body') {
|
if (property === 'body') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -1114,7 +1114,7 @@ export class HttpRequestV2 implements INodeType {
|
|||||||
|
|
||||||
if (fullResponse) {
|
if (fullResponse) {
|
||||||
const returnItem: IDataObject = {};
|
const returnItem: IDataObject = {};
|
||||||
for (const property of fullReponseProperties) {
|
for (const property of fullResponseProperties) {
|
||||||
if (property === 'body') {
|
if (property === 'body') {
|
||||||
returnItem[dataPropertyName] = response![property];
|
returnItem[dataPropertyName] = response![property];
|
||||||
continue;
|
continue;
|
||||||
@@ -1142,7 +1142,7 @@ export class HttpRequestV2 implements INodeType {
|
|||||||
// responseFormat: 'json'
|
// responseFormat: 'json'
|
||||||
if (fullResponse) {
|
if (fullResponse) {
|
||||||
const returnItem: IDataObject = {};
|
const returnItem: IDataObject = {};
|
||||||
for (const property of fullReponseProperties) {
|
for (const property of fullResponseProperties) {
|
||||||
returnItem[property] = response![property];
|
returnItem[property] = response![property];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -798,7 +798,7 @@ export class HttpRequestV3 implements INodeType {
|
|||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description:
|
description:
|
||||||
'Whether to return the full reponse (headers and response status code) data instead of only the body',
|
'Whether to return the full response (headers and response status code) data instead of only the body',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Never Error',
|
displayName: 'Never Error',
|
||||||
@@ -879,7 +879,7 @@ export class HttpRequestV3 implements INodeType {
|
|||||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||||
const items = this.getInputData();
|
const items = this.getInputData();
|
||||||
|
|
||||||
const fullReponseProperties = ['body', 'headers', 'statusCode', 'statusMessage'];
|
const fullResponseProperties = ['body', 'headers', 'statusCode', 'statusMessage'];
|
||||||
|
|
||||||
let authentication;
|
let authentication;
|
||||||
|
|
||||||
@@ -1061,14 +1061,14 @@ export class HttpRequestV3 implements INodeType {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const parmetersToKeyValue = async (
|
const parametersToKeyValue = async (
|
||||||
acc: Promise<{ [key: string]: any }>,
|
acc: Promise<{ [key: string]: any }>,
|
||||||
cur: { name: string; value: string; parameterType?: string; inputDataFieldName?: string },
|
cur: { name: string; value: string; parameterType?: string; inputDataFieldName?: string },
|
||||||
) => {
|
) => {
|
||||||
const acumulator = await acc;
|
const accumulator = await acc;
|
||||||
if (cur.parameterType === 'formBinaryData') {
|
if (cur.parameterType === 'formBinaryData') {
|
||||||
const binaryDataOnInput = items[itemIndex]?.binary;
|
const binaryDataOnInput = items[itemIndex]?.binary;
|
||||||
if (!cur.inputDataFieldName) return acumulator;
|
if (!cur.inputDataFieldName) return accumulator;
|
||||||
|
|
||||||
if (!binaryDataOnInput?.[cur.inputDataFieldName]) {
|
if (!binaryDataOnInput?.[cur.inputDataFieldName]) {
|
||||||
throw new NodeOperationError(
|
throw new NodeOperationError(
|
||||||
@@ -1080,29 +1080,29 @@ export class HttpRequestV3 implements INodeType {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!cur.inputDataFieldName) return acumulator;
|
if (!cur.inputDataFieldName) return accumulator;
|
||||||
|
|
||||||
const binaryData = binaryDataOnInput[cur.inputDataFieldName];
|
const binaryData = binaryDataOnInput[cur.inputDataFieldName];
|
||||||
const buffer = await this.helpers.getBinaryDataBuffer(itemIndex, cur.inputDataFieldName);
|
const buffer = await this.helpers.getBinaryDataBuffer(itemIndex, cur.inputDataFieldName);
|
||||||
|
|
||||||
acumulator[cur.name] = {
|
accumulator[cur.name] = {
|
||||||
value: buffer,
|
value: buffer,
|
||||||
options: {
|
options: {
|
||||||
filename: binaryData.fileName,
|
filename: binaryData.fileName,
|
||||||
contentType: binaryData.mimeType,
|
contentType: binaryData.mimeType,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
return acumulator;
|
return accumulator;
|
||||||
}
|
}
|
||||||
acumulator[cur.name] = cur.value;
|
accumulator[cur.name] = cur.value;
|
||||||
return acumulator;
|
return accumulator;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Get parameters defined in the UI
|
// Get parameters defined in the UI
|
||||||
if (sendBody && bodyParameters) {
|
if (sendBody && bodyParameters) {
|
||||||
if (specifyBody === 'keypair' || bodyContentType === 'multipart-form-data') {
|
if (specifyBody === 'keypair' || bodyContentType === 'multipart-form-data') {
|
||||||
requestOptions.body = await bodyParameters.reduce(
|
requestOptions.body = await bodyParameters.reduce(
|
||||||
parmetersToKeyValue,
|
parametersToKeyValue,
|
||||||
Promise.resolve({}),
|
Promise.resolve({}),
|
||||||
);
|
);
|
||||||
} else if (specifyBody === 'json') {
|
} else if (specifyBody === 'json') {
|
||||||
@@ -1156,7 +1156,7 @@ export class HttpRequestV3 implements INodeType {
|
|||||||
if (sendQuery && queryParameters) {
|
if (sendQuery && queryParameters) {
|
||||||
if (specifyQuery === 'keypair') {
|
if (specifyQuery === 'keypair') {
|
||||||
requestOptions.qs = await queryParameters.reduce(
|
requestOptions.qs = await queryParameters.reduce(
|
||||||
parmetersToKeyValue,
|
parametersToKeyValue,
|
||||||
Promise.resolve({}),
|
Promise.resolve({}),
|
||||||
);
|
);
|
||||||
} else if (specifyQuery === 'json') {
|
} else if (specifyQuery === 'json') {
|
||||||
@@ -1181,7 +1181,7 @@ export class HttpRequestV3 implements INodeType {
|
|||||||
if (sendHeaders && headerParameters) {
|
if (sendHeaders && headerParameters) {
|
||||||
if (specifyHeaders === 'keypair') {
|
if (specifyHeaders === 'keypair') {
|
||||||
requestOptions.headers = await headerParameters.reduce(
|
requestOptions.headers = await headerParameters.reduce(
|
||||||
parmetersToKeyValue,
|
parametersToKeyValue,
|
||||||
Promise.resolve({}),
|
Promise.resolve({}),
|
||||||
);
|
);
|
||||||
} else if (specifyHeaders === 'json') {
|
} else if (specifyHeaders === 'json') {
|
||||||
@@ -1399,7 +1399,7 @@ export class HttpRequestV3 implements INodeType {
|
|||||||
|
|
||||||
if (fullResponse) {
|
if (fullResponse) {
|
||||||
const returnItem: IDataObject = {};
|
const returnItem: IDataObject = {};
|
||||||
for (const property of fullReponseProperties) {
|
for (const property of fullResponseProperties) {
|
||||||
if (property === 'body') {
|
if (property === 'body') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -1430,7 +1430,7 @@ export class HttpRequestV3 implements INodeType {
|
|||||||
) as string;
|
) as string;
|
||||||
if (fullResponse) {
|
if (fullResponse) {
|
||||||
const returnItem: IDataObject = {};
|
const returnItem: IDataObject = {};
|
||||||
for (const property of fullReponseProperties) {
|
for (const property of fullResponseProperties) {
|
||||||
if (property === 'body') {
|
if (property === 'body') {
|
||||||
returnItem[outputPropertyName] = toText(response![property]);
|
returnItem[outputPropertyName] = toText(response![property]);
|
||||||
continue;
|
continue;
|
||||||
@@ -1458,7 +1458,7 @@ export class HttpRequestV3 implements INodeType {
|
|||||||
// responseFormat: 'json'
|
// responseFormat: 'json'
|
||||||
if (requestOptions.resolveWithFullResponse === true) {
|
if (requestOptions.resolveWithFullResponse === true) {
|
||||||
const returnItem: IDataObject = {};
|
const returnItem: IDataObject = {};
|
||||||
for (const property of fullReponseProperties) {
|
for (const property of fullResponseProperties) {
|
||||||
returnItem[property] = response![property];
|
returnItem[property] = response![property];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -421,7 +421,7 @@ export class If implements INodeType {
|
|||||||
// The different dataTypes to check the values in
|
// The different dataTypes to check the values in
|
||||||
const dataTypes = ['boolean', 'dateTime', 'number', 'string'];
|
const dataTypes = ['boolean', 'dateTime', 'number', 'string'];
|
||||||
|
|
||||||
// Itterate over all items to check which ones should be output as via output "true" and
|
// Iterate over all items to check which ones should be output as via output "true" and
|
||||||
// which ones via output "false"
|
// which ones via output "false"
|
||||||
let dataType: string;
|
let dataType: string;
|
||||||
let compareOperationResult: boolean;
|
let compareOperationResult: boolean;
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ export class InvoiceNinjaTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -467,7 +467,7 @@ export class JiraTrigger implements INodeType {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ export class KeapTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ export class LinearTrigger implements INodeType {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -49,13 +49,13 @@ export class MailchimpTrigger implements INodeType {
|
|||||||
{
|
{
|
||||||
name: 'setup',
|
name: 'setup',
|
||||||
httpMethod: 'GET',
|
httpMethod: 'GET',
|
||||||
reponseMode: 'onReceived',
|
responseMode: 'onReceived',
|
||||||
path: 'webhook',
|
path: 'webhook',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'default',
|
name: 'default',
|
||||||
httpMethod: 'POST',
|
httpMethod: 'POST',
|
||||||
reponseMode: 'onReceived',
|
responseMode: 'onReceived',
|
||||||
path: 'webhook',
|
path: 'webhook',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ export class MailerLiteTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export class PayPalTrigger implements INodeType {
|
|||||||
{
|
{
|
||||||
name: 'default',
|
name: 'default',
|
||||||
httpMethod: 'POST',
|
httpMethod: 'POST',
|
||||||
reponseMode: 'onReceived',
|
responseMode: 'onReceived',
|
||||||
path: 'webhook',
|
path: 'webhook',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ export function pipedriveResolveCustomProperties(
|
|||||||
|
|
||||||
const json = item.json as IDataObject;
|
const json = item.json as IDataObject;
|
||||||
|
|
||||||
// Itterate over all keys and replace the custom ones
|
// Iterate over all keys and replace the custom ones
|
||||||
for (const key of Object.keys(json)) {
|
for (const key of Object.keys(json)) {
|
||||||
if (customProperties[key] !== undefined) {
|
if (customProperties[key] !== undefined) {
|
||||||
// Is a custom property
|
// Is a custom property
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ export class PipedriveTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
delete webhookData.webhookEvents;
|
delete webhookData.webhookEvents;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { INodeProperties } from 'n8n-workflow';
|
import type { INodeProperties } from 'n8n-workflow';
|
||||||
|
|
||||||
import { buildBinAPIURL, transformBinReponse } from './GenericFunctions';
|
import { buildBinAPIURL, transformBinResponse } from './GenericFunctions';
|
||||||
|
|
||||||
// Operations for the `Bin` resource:
|
// Operations for the `Bin` resource:
|
||||||
export const binOperations: INodeProperties[] = [
|
export const binOperations: INodeProperties[] = [
|
||||||
@@ -25,7 +25,7 @@ export const binOperations: INodeProperties[] = [
|
|||||||
url: '/developers/postbin/api/bin',
|
url: '/developers/postbin/api/bin',
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
postReceive: [transformBinReponse],
|
postReceive: [transformBinResponse],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
action: 'Create a bin',
|
action: 'Create a bin',
|
||||||
@@ -39,7 +39,7 @@ export const binOperations: INodeProperties[] = [
|
|||||||
method: 'GET',
|
method: 'GET',
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
postReceive: [transformBinReponse],
|
postReceive: [transformBinResponse],
|
||||||
},
|
},
|
||||||
send: {
|
send: {
|
||||||
preSend: [
|
preSend: [
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ export async function buildRequestURL(
|
|||||||
* Converts the bin response data and adds additional properties
|
* Converts the bin response data and adds additional properties
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export async function transformBinReponse(
|
export async function transformBinResponse(
|
||||||
this: IExecuteSingleFunctions,
|
this: IExecuteSingleFunctions,
|
||||||
items: INodeExecutionData[],
|
items: INodeExecutionData[],
|
||||||
_response: IN8nHttpFullResponse,
|
_response: IN8nHttpFullResponse,
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ export class PostmarkTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
delete webhookData.webhookEvents;
|
delete webhookData.webhookEvents;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ export class PushcutTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -426,7 +426,7 @@ const sendHtmlTemplateEmailFields: INodeProperties[] = [
|
|||||||
values: [
|
values: [
|
||||||
{
|
{
|
||||||
displayName: 'Parameter',
|
displayName: 'Parameter',
|
||||||
name: 'parmeters',
|
name: 'parameters',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
placeholder: 'key=value',
|
placeholder: 'key=value',
|
||||||
|
|||||||
@@ -266,8 +266,8 @@ export namespace SendInBlueNode {
|
|||||||
'additionalFields.templateParameters.parameterValues',
|
'additionalFields.templateParameters.parameterValues',
|
||||||
);
|
);
|
||||||
const { body } = requestOptions;
|
const { body } = requestOptions;
|
||||||
const { parmeters } = parameterData as JsonObject;
|
const { parameters } = parameterData as JsonObject;
|
||||||
const params = (parmeters as string)
|
const params = (parameters as string)
|
||||||
.split(',')
|
.split(',')
|
||||||
.filter((parameter) => {
|
.filter((parameter) => {
|
||||||
return parameter.split('=').length === 2;
|
return parameter.split('=').length === 2;
|
||||||
|
|||||||
@@ -268,7 +268,7 @@ export class SendInBlueTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
delete webhookData.webhookEvents;
|
delete webhookData.webhookEvents;
|
||||||
delete webhookData.hookSecret;
|
delete webhookData.hookSecret;
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ export class StravaTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export class StripeTrigger implements INodeType {
|
|||||||
{
|
{
|
||||||
name: 'default',
|
name: 'default',
|
||||||
httpMethod: 'POST',
|
httpMethod: 'POST',
|
||||||
reponseMode: 'onReceived',
|
responseMode: 'onReceived',
|
||||||
path: 'webhook',
|
path: 'webhook',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -908,7 +908,7 @@ export class StripeTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
delete webhookData.webhookEvents;
|
delete webhookData.webhookEvents;
|
||||||
delete webhookData.webhookSecret;
|
delete webhookData.webhookSecret;
|
||||||
|
|||||||
@@ -459,7 +459,7 @@ export class SurveyMonkeyTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -618,7 +618,7 @@ export class Switch implements INodeType {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Itterate over all items to check to which output they should be routed to
|
// Iterate over all items to check to which output they should be routed to
|
||||||
itemLoop: for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
itemLoop: for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
||||||
try {
|
try {
|
||||||
item = items[itemIndex];
|
item = items[itemIndex];
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export class TheHiveTrigger implements INodeType {
|
|||||||
{
|
{
|
||||||
name: 'default',
|
name: 'default',
|
||||||
httpMethod: 'POST',
|
httpMethod: 'POST',
|
||||||
reponseMode: 'onReceived',
|
responseMode: 'onReceived',
|
||||||
path: 'webhook',
|
path: 'webhook',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ export class TrelloTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ export class TypeformTrigger implements INodeType {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -240,16 +240,16 @@ export class TypeformTrigger implements INodeType {
|
|||||||
const answers = (bodyData.form_response as IDataObject).answers as ITypeformAnswer[];
|
const answers = (bodyData.form_response as IDataObject).answers as ITypeformAnswer[];
|
||||||
|
|
||||||
// Some fields contain lower level fields of which we are only interested of the values
|
// Some fields contain lower level fields of which we are only interested of the values
|
||||||
const subvalueKeys = ['label', 'labels'];
|
const subValueKeys = ['label', 'labels'];
|
||||||
|
|
||||||
if (simplifyAnswers) {
|
if (simplifyAnswers) {
|
||||||
// Convert the answers to simple key -> value pairs
|
// Convert the answers to simple key -> value pairs
|
||||||
const definition = (bodyData.form_response as IDataObject).definition as ITypeformDefinition;
|
const definition = (bodyData.form_response as IDataObject).definition as ITypeformDefinition;
|
||||||
|
|
||||||
// Create a dictionary to get the field title by its ID
|
// Create a dictionary to get the field title by its ID
|
||||||
const defintitionsById: { [key: string]: string } = {};
|
const definitionsById: { [key: string]: string } = {};
|
||||||
for (const field of definition.fields) {
|
for (const field of definition.fields) {
|
||||||
defintitionsById[field.id] = field.title.replace(/\{\{/g, '[').replace(/\}\}/g, ']');
|
definitionsById[field.id] = field.title.replace(/\{\{/g, '[').replace(/\}\}/g, ']');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert the answers to key -> value pair
|
// Convert the answers to key -> value pair
|
||||||
@@ -257,14 +257,14 @@ export class TypeformTrigger implements INodeType {
|
|||||||
for (const answer of answers) {
|
for (const answer of answers) {
|
||||||
let value = answer[answer.type];
|
let value = answer[answer.type];
|
||||||
if (typeof value === 'object') {
|
if (typeof value === 'object') {
|
||||||
for (const key of subvalueKeys) {
|
for (const key of subValueKeys) {
|
||||||
if ((value as IDataObject)[key] !== undefined) {
|
if ((value as IDataObject)[key] !== undefined) {
|
||||||
value = (value as ITypeformAnswerField)[key];
|
value = (value as ITypeformAnswerField)[key];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
convertedAnswers[defintitionsById[answer.field.id]] = value;
|
convertedAnswers[definitionsById[answer.field.id]] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (onlyAnswers) {
|
if (onlyAnswers) {
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ export class VenafiTlsProtectCloudTrigger implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -607,7 +607,7 @@ export class Wait implements INodeType {
|
|||||||
};
|
};
|
||||||
|
|
||||||
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
|
async webhook(this: IWebhookFunctions): Promise<IWebhookResponseData> {
|
||||||
// INFO: Currently (20.06.2021) 100% identical with Webook-Node
|
// INFO: Currently (20.06.2021) 100% identical with Webhook-Node
|
||||||
const incomingAuthentication = this.getNodeParameter('incomingAuthentication') as string;
|
const incomingAuthentication = this.getNodeParameter('incomingAuthentication') as string;
|
||||||
const options = this.getNodeParameter('options', {}) as IDataObject;
|
const options = this.getNodeParameter('options', {}) as IDataObject;
|
||||||
const req = this.getRequestObject();
|
const req = this.getRequestObject();
|
||||||
|
|||||||
@@ -1100,7 +1100,7 @@ export const messageTypeFields: INodeProperties[] = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
//{
|
//{
|
||||||
// // Search for ISO6391.getCode(language) in the Twitter node. Pehaps, we can use the same library?
|
// // Search for ISO6391.getCode(language) in the Twitter node. Perhaps, we can use the same library?
|
||||||
// //TODO: would be nice to change this to a searchable dropdown with all the possible language codes
|
// //TODO: would be nice to change this to a searchable dropdown with all the possible language codes
|
||||||
// displayName: 'Language Code',
|
// displayName: 'Language Code',
|
||||||
// name: 'templateLanguageCode',
|
// name: 'templateLanguageCode',
|
||||||
|
|||||||
@@ -419,11 +419,11 @@ export class Wordpress implements INodeType {
|
|||||||
responseData = await wordpressApiRequest.call(this, 'DELETE', '/users/me', {}, qs);
|
responseData = await wordpressApiRequest.call(this, 'DELETE', '/users/me', {}, qs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const exectutionData = this.helpers.constructExecutionMetaData(
|
const executionData = this.helpers.constructExecutionMetaData(
|
||||||
this.helpers.returnJsonArray(responseData as IDataObject[]),
|
this.helpers.returnJsonArray(responseData as IDataObject[]),
|
||||||
{ itemData: { item: i } },
|
{ itemData: { item: i } },
|
||||||
);
|
);
|
||||||
returnData.push(...exectutionData);
|
returnData.push(...executionData);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (this.continueOnFail()) {
|
if (this.continueOnFail()) {
|
||||||
returnData.push({ json: { error: error.message } });
|
returnData.push({ json: { error: error.message } });
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ export class WorkableTrigger implements INodeType {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Remove from the static workflow data so that it is clear
|
// Remove from the static workflow data so that it is clear
|
||||||
// that no webhooks are registred anymore
|
// that no webhooks are registered anymore
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ export const organizationFields: INodeProperties[] = [
|
|||||||
name: 'details',
|
name: 'details',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Details obout the organization, such as the address',
|
description: 'Details about the organization, such as the address',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Domain Names',
|
displayName: 'Domain Names',
|
||||||
@@ -192,7 +192,7 @@ export const organizationFields: INodeProperties[] = [
|
|||||||
name: 'details',
|
name: 'details',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Details obout the organization, such as the address',
|
description: 'Details about the organization, such as the address',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Domain Names',
|
displayName: 'Domain Names',
|
||||||
|
|||||||
@@ -213,12 +213,12 @@ export const triggerPlaceholders = [
|
|||||||
description: 'Your notes, stored in your profile',
|
description: 'Your notes, stored in your profile',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Satisfation Current Rating',
|
name: 'Satisfaction Current Rating',
|
||||||
value: 'satisfaction.current_rating',
|
value: 'satisfaction.current_rating',
|
||||||
description: 'The text of the current satisfaction rating',
|
description: 'The text of the current satisfaction rating',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Satisfation Current Comment',
|
name: 'Satisfaction Current Comment',
|
||||||
value: 'satisfaction.current_comment',
|
value: 'satisfaction.current_comment',
|
||||||
description: 'The text of the current satisfaction rating comment',
|
description: 'The text of the current satisfaction rating comment',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ export const dealFields: INodeProperties[] = [
|
|||||||
name: 'Lead_Conversion_Time',
|
name: 'Lead_Conversion_Time',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Averge number of days to convert the lead into a deal',
|
description: 'Average number of days to convert the lead into a deal',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Next Step',
|
displayName: 'Next Step',
|
||||||
@@ -172,7 +172,7 @@ export const dealFields: INodeProperties[] = [
|
|||||||
name: 'Overall_Sales_Duration',
|
name: 'Overall_Sales_Duration',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Averge number of days to convert the lead into a deal and to win the deal',
|
description: 'Average number of days to convert the lead into a deal and to win the deal',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Probability',
|
displayName: 'Probability',
|
||||||
@@ -190,7 +190,7 @@ export const dealFields: INodeProperties[] = [
|
|||||||
name: 'Sales_Cycle_Duration',
|
name: 'Sales_Cycle_Duration',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
default: 0,
|
default: 0,
|
||||||
description: 'Averge number of days for the deal to be won',
|
description: 'Average number of days for the deal to be won',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -304,7 +304,7 @@ export const dealFields: INodeProperties[] = [
|
|||||||
name: 'Lead_Conversion_Time',
|
name: 'Lead_Conversion_Time',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Averge number of days to convert the lead into a deal',
|
description: 'Average number of days to convert the lead into a deal',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Next Step',
|
displayName: 'Next Step',
|
||||||
@@ -318,7 +318,7 @@ export const dealFields: INodeProperties[] = [
|
|||||||
name: 'Overall_Sales_Duration',
|
name: 'Overall_Sales_Duration',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Averge number of days to convert the lead into a deal and to win the deal',
|
description: 'Average number of days to convert the lead into a deal and to win the deal',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Probability',
|
displayName: 'Probability',
|
||||||
@@ -336,7 +336,7 @@ export const dealFields: INodeProperties[] = [
|
|||||||
name: 'Sales_Cycle_Duration',
|
name: 'Sales_Cycle_Duration',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
default: 0,
|
default: 0,
|
||||||
description: 'Averge number of days to win the deal',
|
description: 'Average number of days to win the deal',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Stage Name or ID',
|
displayName: 'Stage Name or ID',
|
||||||
|
|||||||
@@ -199,8 +199,8 @@ export const meetingRegistrantFields: INodeProperties[] = [
|
|||||||
value: 'Evaluator/Recommender',
|
value: 'Evaluator/Recommender',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Influener',
|
name: 'Influencer',
|
||||||
value: 'Influener',
|
value: 'Influencer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Not Involved',
|
name: 'Not Involved',
|
||||||
|
|||||||
Reference in New Issue
Block a user