mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor(core): Introduce overload for boolean-type node parameter (no-changelog) (#4647)
* 📘 Set up overloads * 📘 Add temporary assertion * 🔥 Remove inferrable boolean assertions * ⏪ Undo autoformatting
This commit is contained in:
@@ -2423,7 +2423,7 @@ export function getExecuteFunctions(
|
||||
constructExecutionMetaData,
|
||||
},
|
||||
};
|
||||
})(workflow, runExecutionData, connectionInputData, inputData, node);
|
||||
})(workflow, runExecutionData, connectionInputData, inputData, node) as IExecuteFunctions;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -383,7 +383,7 @@ export class ActiveCampaign implements INodeType {
|
||||
|
||||
requestMethod = 'GET';
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
const simple = this.getNodeParameter('simple', i, true) as boolean;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
||||
@@ -470,7 +470,7 @@ export class ActiveCampaign implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
const simple = this.getNodeParameter('simple', i, true) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||
}
|
||||
@@ -637,7 +637,7 @@ export class ActiveCampaign implements INodeType {
|
||||
|
||||
requestMethod = 'GET';
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
const simple = this.getNodeParameter('simple', i, true) as boolean;
|
||||
|
||||
if (returnAll === false) {
|
||||
@@ -695,7 +695,7 @@ export class ActiveCampaign implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
const simple = this.getNodeParameter('simple', i, true) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||
}
|
||||
@@ -802,7 +802,7 @@ export class ActiveCampaign implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
const simple = this.getNodeParameter('simple', i, true) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||
}
|
||||
@@ -901,7 +901,7 @@ export class ActiveCampaign implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
const simple = this.getNodeParameter('simple', i, true) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||
}
|
||||
@@ -1001,7 +1001,7 @@ export class ActiveCampaign implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
const simple = this.getNodeParameter('simple', i, true) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||
}
|
||||
@@ -1090,7 +1090,7 @@ export class ActiveCampaign implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
const simple = this.getNodeParameter('simple', i, true) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||
}
|
||||
@@ -1136,7 +1136,7 @@ export class ActiveCampaign implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
const simple = this.getNodeParameter('simple', i, true) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ export class Affinity implements INodeType {
|
||||
}
|
||||
//https://api-docs.affinity.co/#get-all-lists
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
responseData = await affinityApiRequest.call(this, 'GET', `/lists`, {}, qs);
|
||||
if (returnAll === false) {
|
||||
const limit = this.getNodeParameter('limit', i) as number;
|
||||
@@ -201,7 +201,7 @@ export class Affinity implements INodeType {
|
||||
}
|
||||
//https://api-docs.affinity.co/#get-all-list-entries
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const listId = this.getNodeParameter('listId', i) as string;
|
||||
if (returnAll === true) {
|
||||
responseData = await affinityApiRequestAllItems.call(
|
||||
@@ -290,7 +290,7 @@ export class Affinity implements INodeType {
|
||||
}
|
||||
//https://api-docs.affinity.co/#search-for-persons
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.term) {
|
||||
qs.term = options.term as string;
|
||||
@@ -378,7 +378,7 @@ export class Affinity implements INodeType {
|
||||
}
|
||||
//https://api-docs.affinity.co/#search-for-organizations
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.term) {
|
||||
qs.term = options.term as string;
|
||||
|
||||
@@ -112,7 +112,7 @@ export class AgileCrm implements INodeType {
|
||||
responseData = await agileCrmApiRequest.call(this, 'DELETE', endpoint, {});
|
||||
} else if (operation === 'getAll') {
|
||||
const simple = this.getNodeParameter('simple', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const filterType = this.getNodeParameter('filterType', i) as string;
|
||||
const sort = this.getNodeParameter('options.sort.sort', i, {}) as {
|
||||
direction: string;
|
||||
@@ -195,7 +195,7 @@ export class AgileCrm implements INodeType {
|
||||
responseData = simplifyResponse(responseData);
|
||||
}
|
||||
} else if (operation === 'create') {
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
const body: IContact = {};
|
||||
const properties: IDataObject[] = [];
|
||||
|
||||
@@ -347,7 +347,7 @@ export class AgileCrm implements INodeType {
|
||||
} else if (operation === 'update') {
|
||||
const contactId = this.getNodeParameter(idGetter, i) as string;
|
||||
const contactUpdatePayload: IContactUpdate = { id: contactId };
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
const body: IContact = {};
|
||||
const properties: IDataObject[] = [];
|
||||
|
||||
@@ -510,7 +510,7 @@ export class AgileCrm implements INodeType {
|
||||
const endpoint = `api/opportunity/${contactId}`;
|
||||
responseData = await agileCrmApiRequest.call(this, 'DELETE', endpoint, {});
|
||||
} else if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const endpoint = 'api/opportunity';
|
||||
|
||||
if (returnAll) {
|
||||
@@ -525,7 +525,7 @@ export class AgileCrm implements INodeType {
|
||||
});
|
||||
}
|
||||
} else if (operation === 'create') {
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
|
||||
const body: IDeal = {};
|
||||
|
||||
@@ -565,7 +565,7 @@ export class AgileCrm implements INodeType {
|
||||
const endpoint = 'api/opportunity';
|
||||
responseData = await agileCrmApiRequest.call(this, 'POST', endpoint, body);
|
||||
} else if (operation === 'update') {
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
|
||||
const body: IDeal = {};
|
||||
|
||||
|
||||
@@ -631,9 +631,9 @@ export class Airtable implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
endpoint = `${application}/${table}`;
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const downloadAttachments = this.getNodeParameter('downloadAttachments', 0) as boolean;
|
||||
const downloadAttachments = this.getNodeParameter('downloadAttachments', 0);
|
||||
|
||||
const additionalOptions = this.getNodeParameter('additionalOptions', 0, {}) as IDataObject;
|
||||
|
||||
|
||||
@@ -383,12 +383,12 @@ export class ApiTemplateIo implements INodeType {
|
||||
// image: create
|
||||
// ----------------------------------
|
||||
|
||||
const download = this.getNodeParameter('download', 0) as boolean;
|
||||
const download = this.getNodeParameter('download', 0);
|
||||
|
||||
// https://docs.apitemplate.io/reference/api-reference.html#create-an-image-jpeg-and-png
|
||||
for (let i = 0; i < length; i++) {
|
||||
try {
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
|
||||
let options: IDataObject = {};
|
||||
if (download) {
|
||||
@@ -475,11 +475,11 @@ export class ApiTemplateIo implements INodeType {
|
||||
// ----------------------------------
|
||||
|
||||
// https://docs.apitemplate.io/reference/api-reference.html#create-a-pdf
|
||||
const download = this.getNodeParameter('download', 0) as boolean;
|
||||
const download = this.getNodeParameter('download', 0);
|
||||
|
||||
for (let i = 0; i < length; i++) {
|
||||
try {
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
|
||||
let options: IDataObject = {};
|
||||
if (download) {
|
||||
|
||||
@@ -1953,7 +1953,7 @@ export class Asana implements INodeType {
|
||||
// ----------------------------------
|
||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
|
||||
@@ -2032,7 +2032,7 @@ export class Asana implements INodeType {
|
||||
// ----------------------------------
|
||||
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
requestMethod = 'GET';
|
||||
endpoint = `/tasks`;
|
||||
@@ -2341,7 +2341,7 @@ export class Asana implements INodeType {
|
||||
// ----------------------------------
|
||||
const workspaceId = this.getNodeParameter('workspace', i) as string;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
requestMethod = 'GET';
|
||||
endpoint = `/projects`;
|
||||
|
||||
@@ -192,7 +192,7 @@ export class Automizy implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const listId = this.getNodeParameter('listId', i) as string;
|
||||
|
||||
@@ -302,7 +302,7 @@ export class Automizy implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@ export class Autopilot implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (returnAll === false) {
|
||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||
@@ -251,7 +251,7 @@ export class Autopilot implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const listId = this.getNodeParameter('listId', i) as string;
|
||||
|
||||
@@ -284,7 +284,7 @@ export class Autopilot implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (returnAll === false) {
|
||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||
|
||||
@@ -104,7 +104,7 @@ export class AwsCertificateManager implements INodeType {
|
||||
|
||||
//https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html
|
||||
if (operation === 'getMany') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
|
||||
const body: { Includes: IDataObject; CertificateStatuses: string[]; MaxItems: number } = {
|
||||
|
||||
@@ -307,7 +307,7 @@ export class AwsDynamoDB implements INodeType {
|
||||
const eavUi = this.getNodeParameter('eavUi.eavValues', i, []) as IAttributeValueUi[];
|
||||
const simple = this.getNodeParameter('simple', 0, false) as boolean;
|
||||
const select = this.getNodeParameter('select', 0) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const scan = this.getNodeParameter('scan', 0) as boolean;
|
||||
const eanUi = this.getNodeParameter(
|
||||
'options.eanUi.eanValues',
|
||||
|
||||
@@ -251,7 +251,7 @@ export class AwsElb implements INodeType {
|
||||
if (operation === 'getMany') {
|
||||
const params = ['Version=2015-12-01'];
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const listenerId = this.getNodeParameter('listenerId', i) as string;
|
||||
|
||||
@@ -385,7 +385,7 @@ export class AwsElb implements INodeType {
|
||||
if (operation === 'getMany') {
|
||||
const params = ['Version=2015-12-01'];
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (returnAll) {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
|
||||
@@ -412,7 +412,7 @@ export class AwsRekognition implements INodeType {
|
||||
body.Filters.WordFilter = keysTPascalCase(wordFilter);
|
||||
}
|
||||
|
||||
const binaryData = this.getNodeParameter('binaryData', 0) as boolean;
|
||||
const binaryData = this.getNodeParameter('binaryData', 0);
|
||||
|
||||
if (binaryData) {
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', 0) as string;
|
||||
|
||||
@@ -172,7 +172,7 @@ export class AwsS3 implements INodeType {
|
||||
|
||||
//https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
if (returnAll) {
|
||||
responseData = await awsApiRequestSOAPAllItems.call(
|
||||
this,
|
||||
@@ -200,7 +200,7 @@ export class AwsS3 implements INodeType {
|
||||
//https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html
|
||||
if (operation === 'search') {
|
||||
const bucketName = this.getNodeParameter('bucketName', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', 0) as IDataObject;
|
||||
|
||||
if (additionalFields.prefix) {
|
||||
@@ -391,7 +391,7 @@ export class AwsS3 implements INodeType {
|
||||
//https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html
|
||||
if (operation === 'getAll') {
|
||||
const bucketName = this.getNodeParameter('bucketName', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const options = this.getNodeParameter('options', 0) as IDataObject;
|
||||
|
||||
if (options.folderKey) {
|
||||
@@ -656,7 +656,7 @@ export class AwsS3 implements INodeType {
|
||||
//https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html
|
||||
if (operation === 'getAll') {
|
||||
const bucketName = this.getNodeParameter('bucketName', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const options = this.getNodeParameter('options', 0) as IDataObject;
|
||||
|
||||
if (options.folderKey) {
|
||||
@@ -720,7 +720,7 @@ export class AwsS3 implements INodeType {
|
||||
if (operation === 'upload') {
|
||||
const bucketName = this.getNodeParameter('bucketName', i) as string;
|
||||
const fileName = this.getNodeParameter('fileName', i) as string;
|
||||
const isBinaryData = this.getNodeParameter('binaryData', i) as boolean;
|
||||
const isBinaryData = this.getNodeParameter('binaryData', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const tagsValues = (this.getNodeParameter('tagsUi', i) as IDataObject)
|
||||
.tagsValues as IDataObject[];
|
||||
|
||||
@@ -909,7 +909,7 @@ export class AwsSes implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (returnAll === true) {
|
||||
responseData = await awsApiRequestSOAPAllItems.call(
|
||||
@@ -1237,7 +1237,7 @@ export class AwsSes implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (returnAll === true) {
|
||||
responseData = await awsApiRequestSOAPAllItems.call(
|
||||
|
||||
@@ -490,7 +490,7 @@ export class AwsTranscribe implements INodeType {
|
||||
}
|
||||
//https://docs.aws.amazon.com/transcribe/latest/dg/API_ListTranscriptionJobs.html
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const action = 'Transcribe.ListTranscriptionJobs';
|
||||
const body: IDataObject = {};
|
||||
|
||||
@@ -323,7 +323,7 @@ export class Beeminder implements INodeType {
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} else if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as INodeParameters;
|
||||
const data: IDataObject = {
|
||||
goalName,
|
||||
|
||||
@@ -98,7 +98,7 @@ export async function handleGetAll(
|
||||
token: string,
|
||||
) {
|
||||
const responseData = await bitwardenApiRequest.call(this, method, endpoint, qs, body, token);
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (returnAll) {
|
||||
return responseData.data;
|
||||
|
||||
@@ -172,7 +172,7 @@ export class Box implements INodeType {
|
||||
// https://developer.box.com/reference/get-search/
|
||||
if (operation === 'search') {
|
||||
const query = this.getNodeParameter('query', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const timezone = this.getTimezone();
|
||||
qs.type = 'file';
|
||||
@@ -267,7 +267,7 @@ export class Box implements INodeType {
|
||||
// https://developer.box.com/reference/post-files-content
|
||||
if (operation === 'upload') {
|
||||
const parentId = this.getNodeParameter('parentId', i) as string;
|
||||
const isBinaryData = this.getNodeParameter('binaryData', i) as boolean;
|
||||
const isBinaryData = this.getNodeParameter('binaryData', i);
|
||||
const fileName = this.getNodeParameter('fileName', i) as string;
|
||||
|
||||
const attributes: IDataObject = {};
|
||||
@@ -406,7 +406,7 @@ export class Box implements INodeType {
|
||||
// https://developer.box.com/reference/get-search/
|
||||
if (operation === 'search') {
|
||||
const query = this.getNodeParameter('query', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const timezone = this.getTimezone();
|
||||
qs.type = 'folder';
|
||||
|
||||
@@ -151,7 +151,7 @@ export class Brandfetch implements INodeType {
|
||||
try {
|
||||
if (operation === 'logo') {
|
||||
const domain = this.getNodeParameter('domain', i) as string;
|
||||
const download = this.getNodeParameter('download', i) as boolean;
|
||||
const download = this.getNodeParameter('download', i);
|
||||
|
||||
const body: IDataObject = {
|
||||
domain,
|
||||
|
||||
@@ -115,7 +115,7 @@ export class Bubble implements INodeType {
|
||||
// object: getAll
|
||||
// ----------------------------------
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const typeNameInput = this.getNodeParameter('typeName', i) as string;
|
||||
const typeName = typeNameInput.replace(/\s/g, '').toLowerCase();
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ export class CircleCi implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
const vcs = this.getNodeParameter('vcs', i) as string;
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
let slug = this.getNodeParameter('projectSlug', i) as string;
|
||||
|
||||
slug = slug.replace(new RegExp(/\//g), '%2F');
|
||||
|
||||
@@ -254,7 +254,7 @@ export class CiscoWebex implements INodeType {
|
||||
roomId: this.getNodeParameter('roomId', i),
|
||||
};
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (Object.keys(filters).length) {
|
||||
Object.assign(qs, filters);
|
||||
@@ -401,7 +401,7 @@ export class CiscoWebex implements INodeType {
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const qs: IDataObject = {
|
||||
...filters,
|
||||
@@ -543,7 +543,7 @@ export class CiscoWebex implements INodeType {
|
||||
// try {
|
||||
// const meetingId = this.getNodeParameter('meetingId', i) as string;
|
||||
// const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
// const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
// const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
// const qs: IDataObject = {
|
||||
// meetingId,
|
||||
|
||||
@@ -1017,7 +1017,7 @@ export class ClickUp implements INodeType {
|
||||
responseData = await clickupApiRequest.call(this, 'GET', `/task/${taskId}`);
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
if (filters.archived) {
|
||||
qs.archived = filters.archived as boolean;
|
||||
@@ -1101,7 +1101,7 @@ export class ClickUp implements INodeType {
|
||||
}
|
||||
if (operation === 'member') {
|
||||
const taskId = this.getNodeParameter('id', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === true) {
|
||||
responseData = await clickupApiRequest.call(
|
||||
this,
|
||||
@@ -1276,7 +1276,7 @@ export class ClickUp implements INodeType {
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const teamId = this.getNodeParameter('team', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const timezone = this.getTimezone();
|
||||
Object.assign(qs, filters);
|
||||
@@ -1410,7 +1410,7 @@ export class ClickUp implements INodeType {
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const teamId = this.getNodeParameter('team', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
responseData = await clickupApiRequest.call(
|
||||
this,
|
||||
'GET',
|
||||
@@ -1473,7 +1473,7 @@ export class ClickUp implements INodeType {
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const spaceId = this.getNodeParameter('space', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
responseData = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/tag`);
|
||||
responseData = responseData.tags;
|
||||
if (returnAll === false) {
|
||||
@@ -1544,7 +1544,7 @@ export class ClickUp implements INodeType {
|
||||
}
|
||||
if (operation === 'member') {
|
||||
const listId = this.getNodeParameter('id', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === true) {
|
||||
responseData = await clickupApiRequest.call(
|
||||
this,
|
||||
|
||||
@@ -320,7 +320,7 @@ export class Clockify implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const workspaceId = this.getNodeParameter('workspaceId', i) as string;
|
||||
|
||||
@@ -410,7 +410,7 @@ export class Clockify implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const workspaceId = this.getNodeParameter('workspaceId', i) as string;
|
||||
|
||||
@@ -504,7 +504,7 @@ export class Clockify implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const workspaceId = this.getNodeParameter('workspaceId', i) as string;
|
||||
|
||||
@@ -619,7 +619,7 @@ export class Clockify implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const workspaceId = this.getNodeParameter('workspaceId', i) as string;
|
||||
|
||||
@@ -792,7 +792,7 @@ export class Clockify implements INodeType {
|
||||
|
||||
if (resource === 'user') {
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const workspaceId = this.getNodeParameter('workspaceId', i) as string;
|
||||
|
||||
@@ -826,7 +826,7 @@ export class Clockify implements INodeType {
|
||||
|
||||
if (resource === 'workspace') {
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
responseData = await clockifyApiRequest.call(this, 'GET', '/workspaces', {}, qs);
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||
|
||||
@@ -109,7 +109,7 @@ export class Cloudflare implements INodeType {
|
||||
//https://api.cloudflare.com/#zone-level-authenticated-origin-pulls-list-certificates
|
||||
if (operation === 'getMany') {
|
||||
const zoneId = this.getNodeParameter('zoneId', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i, {}) as IDataObject;
|
||||
|
||||
Object.assign(qs, filters);
|
||||
|
||||
@@ -118,7 +118,7 @@ export class Cockpit implements INodeType {
|
||||
responseData = await createCollectionEntry.call(this, collectionName, data);
|
||||
} else if (operation === 'getAll') {
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (!returnAll) {
|
||||
options.limit = this.getNodeParameter('limit', i) as number;
|
||||
|
||||
@@ -360,7 +360,7 @@ export class Coda implements INodeType {
|
||||
// https://coda.io/developers/apis/v1beta1#operation/listRows
|
||||
if (operation === 'getAllRows') {
|
||||
const docId = this.getNodeParameter('docId', 0) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const tableId = this.getNodeParameter('tableId', 0) as string;
|
||||
const options = this.getNodeParameter('options', 0) as IDataObject;
|
||||
const endpoint = `/docs/${docId}/tables/${tableId}/rows`;
|
||||
@@ -503,7 +503,7 @@ export class Coda implements INodeType {
|
||||
if (operation === 'getAllColumns') {
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
try {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const docId = this.getNodeParameter('docId', i) as string;
|
||||
const tableId = this.getNodeParameter('tableId', i) as string;
|
||||
const endpoint = `/docs/${docId}/tables/${tableId}/columns`;
|
||||
@@ -566,7 +566,7 @@ export class Coda implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
try {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const docId = this.getNodeParameter('docId', i) as string;
|
||||
const endpoint = `/docs/${docId}/formulas`;
|
||||
if (returnAll) {
|
||||
@@ -628,7 +628,7 @@ export class Coda implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
try {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const docId = this.getNodeParameter('docId', i) as string;
|
||||
const endpoint = `/docs/${docId}/controls`;
|
||||
if (returnAll) {
|
||||
@@ -678,7 +678,7 @@ export class Coda implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
try {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const docId = this.getNodeParameter('docId', i) as string;
|
||||
const endpoint = `/docs/${docId}/tables?tableTypes=view`;
|
||||
if (returnAll) {
|
||||
@@ -709,7 +709,7 @@ export class Coda implements INodeType {
|
||||
}
|
||||
if (operation === 'getAllViewRows') {
|
||||
const docId = this.getNodeParameter('docId', 0) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const viewId = this.getNodeParameter('viewId', 0) as string;
|
||||
const options = this.getNodeParameter('options', 0) as IDataObject;
|
||||
const endpoint = `/docs/${docId}/tables/${viewId}/rows`;
|
||||
@@ -821,7 +821,7 @@ export class Coda implements INodeType {
|
||||
if (operation === 'getAllViewColumns') {
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
try {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const docId = this.getNodeParameter('docId', i) as string;
|
||||
const viewId = this.getNodeParameter('viewId', i) as string;
|
||||
const endpoint = `/docs/${docId}/tables/${viewId}/columns`;
|
||||
|
||||
@@ -191,7 +191,7 @@ export class CoinGecko implements INodeType {
|
||||
}
|
||||
//https://www.coingecko.com/api/documentations/v3#/coins/get_coins_list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
let limit;
|
||||
|
||||
@@ -205,7 +205,7 @@ export class CoinGecko implements INodeType {
|
||||
|
||||
//https://www.coingecko.com/api/documentations/v3#/coins/get_coins_list
|
||||
if (operation === 'market') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const baseCurrency = this.getNodeParameter('baseCurrency', i) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
|
||||
@@ -272,7 +272,7 @@ export class CoinGecko implements INodeType {
|
||||
|
||||
//https://www.coingecko.com/api/documentations/v3#/coins/get_coins__id__tickers
|
||||
if (operation === 'ticker') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const coinId = this.getNodeParameter('coinId', i) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
|
||||
@@ -410,7 +410,7 @@ export class CoinGecko implements INodeType {
|
||||
if (resource === 'event') {
|
||||
//https://www.coingecko.com/api/documentations/v3#/events/get_events
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
|
||||
Object.assign(qs, options);
|
||||
|
||||
@@ -148,7 +148,7 @@ export class Contentful implements INodeType {
|
||||
} else if (operation === 'getAll') {
|
||||
const credentials = await this.getCredentials('contentfulApi');
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const rawData = additionalFields.rawData;
|
||||
@@ -247,7 +247,7 @@ export class Contentful implements INodeType {
|
||||
} else if (operation === 'getAll') {
|
||||
const credentials = await this.getCredentials('contentfulApi');
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const rawData = additionalFields.rawData;
|
||||
@@ -326,7 +326,7 @@ export class Contentful implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
const credentials = await this.getCredentials('contentfulApi');
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const env = this.getNodeParameter('environmentId', i) as string;
|
||||
|
||||
|
||||
@@ -187,7 +187,7 @@ export class ConvertKit implements INodeType {
|
||||
responseData = await convertKitApiRequest.call(this, 'GET', `/custom_fields/${id}`);
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
responseData = await convertKitApiRequest.call(this, 'GET', `/custom_fields`);
|
||||
|
||||
@@ -254,7 +254,7 @@ export class ConvertKit implements INodeType {
|
||||
responseData = subscription;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
responseData = await convertKitApiRequest.call(this, 'GET', `/forms`);
|
||||
|
||||
@@ -269,7 +269,7 @@ export class ConvertKit implements INodeType {
|
||||
if (operation === 'getSubscriptions') {
|
||||
const formId = this.getNodeParameter('id', i) as string;
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
||||
@@ -337,7 +337,7 @@ export class ConvertKit implements INodeType {
|
||||
responseData = subscription;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
responseData = await convertKitApiRequest.call(this, 'GET', `/sequences`);
|
||||
|
||||
@@ -352,7 +352,7 @@ export class ConvertKit implements INodeType {
|
||||
if (operation === 'getSubscriptions') {
|
||||
const sequenceId = this.getNodeParameter('id', i) as string;
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
||||
@@ -392,7 +392,7 @@ export class ConvertKit implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
responseData = await convertKitApiRequest.call(this, 'GET', `/tags`);
|
||||
|
||||
@@ -447,7 +447,7 @@ export class ConvertKit implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
const tagId = this.getNodeParameter('tagId', i) as string;
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
responseData = await convertKitApiRequest.call(
|
||||
this,
|
||||
|
||||
@@ -101,7 +101,7 @@ export class CustomerIo implements INodeType {
|
||||
|
||||
if (operation === 'getMetrics') {
|
||||
const campaignId = this.getNodeParameter('campaignId', i) as number;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
|
||||
if (jsonParameters) {
|
||||
const additionalFieldsJson = this.getNodeParameter(
|
||||
@@ -148,7 +148,7 @@ export class CustomerIo implements INodeType {
|
||||
if (resource === 'customer') {
|
||||
if (operation === 'upsert') {
|
||||
const id = this.getNodeParameter('id', i) as number;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
|
||||
if (jsonParameters) {
|
||||
const additionalFieldsJson = this.getNodeParameter(
|
||||
@@ -215,7 +215,7 @@ export class CustomerIo implements INodeType {
|
||||
if (operation === 'track') {
|
||||
const customerId = this.getNodeParameter('customerId', i) as number;
|
||||
const eventName = this.getNodeParameter('eventName', i) as string;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
|
||||
body.name = eventName;
|
||||
|
||||
@@ -264,7 +264,7 @@ export class CustomerIo implements INodeType {
|
||||
|
||||
if (operation === 'trackAnonymous') {
|
||||
const eventName = this.getNodeParameter('eventName', i) as string;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
|
||||
body.name = eventName;
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ export class Demio implements INodeType {
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
Object.assign(qs, filters);
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ export class Discourse implements INodeType {
|
||||
}
|
||||
//https://docs.discourse.org/#tag/Categories/paths/~1categories.json/get
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
responseData = await discourseApiRequest.call(this, 'GET', `/categories.json`, {}, qs);
|
||||
|
||||
@@ -197,7 +197,7 @@ export class Discourse implements INodeType {
|
||||
}
|
||||
//https://docs.discourse.org/#tag/Groups/paths/~1groups.json/get
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
responseData = await discourseApiRequest.call(this, 'GET', `/groups.json`, {}, qs);
|
||||
|
||||
@@ -247,7 +247,7 @@ export class Discourse implements INodeType {
|
||||
}
|
||||
//https://docs.discourse.org/#tag/Posts/paths/~1posts.json/get
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const limit = this.getNodeParameter('limit', i, 0) as number;
|
||||
|
||||
responseData = await discourseApiRequest.call(this, 'GET', `/posts.json`, {}, qs);
|
||||
@@ -370,7 +370,7 @@ export class Discourse implements INodeType {
|
||||
}
|
||||
//https://docs.discourse.org/#tag/Users/paths/~1admin~1users~1{id}.json/delete
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const flag = this.getNodeParameter('flag', i) as boolean;
|
||||
|
||||
responseData = await discourseApiRequest.call(
|
||||
|
||||
@@ -625,7 +625,7 @@ export class Disqus implements INodeType {
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
Object.assign(qs, additionalFields);
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
qs.forum = id;
|
||||
qs.limit = 100;
|
||||
@@ -662,7 +662,7 @@ export class Disqus implements INodeType {
|
||||
endpoint = 'forums/listCategories.json';
|
||||
|
||||
const id = this.getNodeParameter('id', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
Object.assign(qs, additionalFields);
|
||||
|
||||
@@ -707,7 +707,7 @@ export class Disqus implements INodeType {
|
||||
endpoint = 'forums/listThreads.json';
|
||||
|
||||
const id = this.getNodeParameter('id', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
qs.forum = id;
|
||||
qs.limit = 100;
|
||||
|
||||
@@ -802,7 +802,7 @@ export class Dropbox implements INodeType {
|
||||
// list
|
||||
// ----------------------------------
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
|
||||
@@ -829,7 +829,7 @@ export class Dropbox implements INodeType {
|
||||
// query
|
||||
// ----------------------------------
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
simple = this.getNodeParameter('simple', 0) as boolean;
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ export class ERPNext implements INodeType {
|
||||
);
|
||||
}
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (!returnAll) {
|
||||
const limit = this.getNodeParameter('limit', i) as number;
|
||||
|
||||
@@ -551,7 +551,7 @@ export class Egoi implements INodeType {
|
||||
|
||||
const email = this.getNodeParameter('email', i) as string;
|
||||
|
||||
const resolveData = this.getNodeParameter('resolveData', i) as boolean;
|
||||
const resolveData = this.getNodeParameter('resolveData', i);
|
||||
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
||||
@@ -648,7 +648,7 @@ export class Egoi implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
const listId = this.getNodeParameter('list', i) as string;
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const simple = this.getNodeParameter('simple', i) as boolean;
|
||||
|
||||
@@ -682,7 +682,7 @@ export class Egoi implements INodeType {
|
||||
if (operation === 'update') {
|
||||
const listId = this.getNodeParameter('list', i) as string;
|
||||
const contactId = this.getNodeParameter('contactId', i) as string;
|
||||
const resolveData = this.getNodeParameter('resolveData', i) as boolean;
|
||||
const resolveData = this.getNodeParameter('resolveData', i);
|
||||
|
||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
||||
const body: ICreateMemberBody = {
|
||||
|
||||
@@ -86,7 +86,7 @@ export async function handleListing(
|
||||
body: IDataObject = {},
|
||||
qs: IDataObject = {},
|
||||
) {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (returnAll) {
|
||||
return await elasticSecurityApiRequestAllItems.call(this, method, endpoint, body, qs);
|
||||
|
||||
@@ -211,7 +211,7 @@ export class Flow implements INodeType {
|
||||
}
|
||||
//https://developer.getflow.com/api/#tasks_get-tasks
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
qs.organization_id = credentials.organizationId as number;
|
||||
if (filters.include) {
|
||||
|
||||
@@ -1285,7 +1285,7 @@ export class Freshdesk implements INodeType {
|
||||
}
|
||||
//https://developers.freshdesk.com/api/#list_all_tickets
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.requesterId) {
|
||||
qs.requester_id = options.requesterId as string;
|
||||
|
||||
@@ -99,7 +99,7 @@ export async function handleListing(
|
||||
body: IDataObject = {},
|
||||
qs: IDataObject = {},
|
||||
) {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (returnAll) {
|
||||
return await freshserviceApiRequestAllItems.call(this, method, endpoint, body, qs);
|
||||
|
||||
@@ -104,7 +104,7 @@ export async function handleListing(
|
||||
body: IDataObject = {},
|
||||
qs: IDataObject = {},
|
||||
) {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (returnAll) {
|
||||
return await freshworksCrmApiRequestAllItems.call(this, method, endpoint, body, qs);
|
||||
|
||||
@@ -211,7 +211,7 @@ export class GetResponse implements INodeType {
|
||||
}
|
||||
//https://apireference.getresponse.com/?_ga=2.160836350.2102802044.1604719933-1897033509.1604598019#operation/getContactList
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ export class Ghost implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
|
||||
@@ -259,7 +259,7 @@ export class Ghost implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
|
||||
|
||||
@@ -1931,7 +1931,7 @@ export class Github implements INodeType {
|
||||
|
||||
endpoint = `/repos/${owner}/${repository}/releases`;
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (returnAll === false) {
|
||||
qs.per_page = this.getNodeParameter('limit', 0) as number;
|
||||
@@ -1994,7 +1994,7 @@ export class Github implements INodeType {
|
||||
|
||||
endpoint = `/repos/${owner}/${repository}/issues`;
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (returnAll === false) {
|
||||
qs.per_page = this.getNodeParameter('limit', 0) as number;
|
||||
@@ -2018,7 +2018,7 @@ export class Github implements INodeType {
|
||||
// ----------------------------------
|
||||
requestMethod = 'GET';
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const pullRequestNumber = this.getNodeParameter('pullRequestNumber', i) as string;
|
||||
|
||||
@@ -2066,7 +2066,7 @@ export class Github implements INodeType {
|
||||
|
||||
endpoint = `/users/${owner}/repos`;
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (returnAll === false) {
|
||||
qs.per_page = this.getNodeParameter('limit', 0) as number;
|
||||
@@ -2090,7 +2090,7 @@ export class Github implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
endpoint = `/orgs/${owner}/repos`;
|
||||
returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (returnAll === false) {
|
||||
qs.per_page = this.getNodeParameter('limit', 0) as number;
|
||||
|
||||
@@ -1175,7 +1175,7 @@ export class Gitlab implements INodeType {
|
||||
|
||||
qs = this.getNodeParameter('additionalFields', i, {}) as IDataObject;
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (returnAll === false) {
|
||||
qs.per_page = this.getNodeParameter('limit', 0) as number;
|
||||
|
||||
@@ -123,7 +123,7 @@ export async function handleGetAll(
|
||||
body: IDataObject,
|
||||
resource: string,
|
||||
) {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', 0) as number;
|
||||
|
||||
@@ -443,7 +443,7 @@ export class GoToWebinar implements INodeType {
|
||||
|
||||
const qs = {} as IDataObject;
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', 0) as number;
|
||||
@@ -563,7 +563,7 @@ export class GoToWebinar implements INodeType {
|
||||
|
||||
const qs = {} as IDataObject;
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', 0) as number;
|
||||
|
||||
@@ -156,7 +156,7 @@ export class GoogleAnalytics implements INodeType {
|
||||
method = 'POST';
|
||||
endpoint = '/v4/reports:batchGet';
|
||||
const viewId = this.getNodeParameter('viewId', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const simple = this.getNodeParameter('simple', i) as boolean;
|
||||
|
||||
@@ -249,7 +249,7 @@ export class GoogleAnalytics implements INodeType {
|
||||
endpoint = '/v4/userActivity:search';
|
||||
const viewId = this.getNodeParameter('viewId', i);
|
||||
const userId = this.getNodeParameter('userId', i);
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const body: IDataObject = {
|
||||
viewId,
|
||||
|
||||
@@ -213,7 +213,7 @@ export class GoogleBigQuery implements INodeType {
|
||||
|
||||
// https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/get
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const projectId = this.getNodeParameter('projectId', 0) as string;
|
||||
const datasetId = this.getNodeParameter('datasetId', 0) as string;
|
||||
const tableId = this.getNodeParameter('tableId', 0) as string;
|
||||
|
||||
@@ -358,7 +358,7 @@ export class GoogleBooks implements INodeType {
|
||||
responseData = await googleApiRequest.call(this, 'GET', `v1/volumes/${volumeId}`, {});
|
||||
} else if (operation === 'getAll') {
|
||||
const searchQuery = this.getNodeParameter('searchQuery', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll) {
|
||||
responseData = await googleApiRequestAllItems.call(
|
||||
this,
|
||||
@@ -396,7 +396,7 @@ export class GoogleBooks implements INodeType {
|
||||
responseData = await googleApiRequest.call(this, 'GET', endpoint, {});
|
||||
} else if (operation === 'getAll') {
|
||||
const myLibrary = this.getNodeParameter('myLibrary', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
let endpoint;
|
||||
if (myLibrary === false) {
|
||||
const userId = this.getNodeParameter('userId', i) as string;
|
||||
@@ -446,7 +446,7 @@ export class GoogleBooks implements INodeType {
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const shelfId = this.getNodeParameter('shelfId', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const myLibrary = this.getNodeParameter('myLibrary', i) as boolean;
|
||||
let endpoint;
|
||||
if (myLibrary === false) {
|
||||
|
||||
@@ -386,7 +386,7 @@ export class GoogleCalendar implements INodeType {
|
||||
}
|
||||
//https://developers.google.com/calendar/v3/reference/events/list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const calendarId = this.getNodeParameter('calendar', i) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.iCalUID) {
|
||||
|
||||
@@ -268,7 +268,7 @@ export class GoogleChat implements INodeType {
|
||||
|
||||
// https://developers.google.com/chat/reference/rest/v1/spaces/list
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
if (returnAll) {
|
||||
responseData = await googleApiRequestAllItems.call(
|
||||
this,
|
||||
@@ -304,7 +304,7 @@ export class GoogleChat implements INodeType {
|
||||
|
||||
const spaceId = this.getNodeParameter('spaceId', i) as string;
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
if (returnAll) {
|
||||
responseData = await googleApiRequestAllItems.call(
|
||||
this,
|
||||
@@ -348,7 +348,7 @@ export class GoogleChat implements INodeType {
|
||||
}
|
||||
|
||||
let message: IMessage = {};
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
if (jsonParameters) {
|
||||
const messageJson = this.getNodeParameter('messageJson', i);
|
||||
|
||||
@@ -423,7 +423,7 @@ export class GoogleChat implements INodeType {
|
||||
const messageId = this.getNodeParameter('messageId', i) as string;
|
||||
|
||||
let message: IMessage = {};
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
if (jsonParameters) {
|
||||
const updateFieldsJson = this.getNodeParameter('updateFieldsJson', i);
|
||||
|
||||
@@ -498,7 +498,7 @@ export class GoogleChat implements INodeType {
|
||||
}
|
||||
|
||||
let message: IMessage = {};
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
if (jsonParameters) {
|
||||
const messageJson = this.getNodeParameter('messageJson', i);
|
||||
|
||||
|
||||
@@ -244,7 +244,7 @@ export class GoogleContacts implements INodeType {
|
||||
if (operation === 'get') {
|
||||
const contactId = this.getNodeParameter('contactId', i) as string;
|
||||
const fields = this.getNodeParameter('fields', i) as string[];
|
||||
const rawData = this.getNodeParameter('rawData', i) as boolean;
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
|
||||
if (fields.includes('*')) {
|
||||
qs.personFields = allFields.join(',');
|
||||
@@ -263,10 +263,10 @@ export class GoogleContacts implements INodeType {
|
||||
//https://developers.google.com/people/api/rest/v1/people.connections/list
|
||||
//https://developers.google.com/people/api/rest/v1/people/searchContacts
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const fields = this.getNodeParameter('fields', i) as string[];
|
||||
const options = this.getNodeParameter('options', i, {}) as IDataObject;
|
||||
const rawData = this.getNodeParameter('rawData', i) as boolean;
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
const useQuery = this.getNodeParameter('useQuery', i) as boolean;
|
||||
|
||||
const endpoint = useQuery ? ':searchContacts' : '/me/connections';
|
||||
|
||||
@@ -2198,7 +2198,7 @@ export class GoogleDrive implements INodeType {
|
||||
// ----------------------------------
|
||||
// list
|
||||
// ----------------------------------
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const qs: IDataObject = {};
|
||||
|
||||
@@ -2509,7 +2509,7 @@ export class GoogleDrive implements INodeType {
|
||||
// ----------------------------------
|
||||
// upload
|
||||
// ----------------------------------
|
||||
const resolveData = this.getNodeParameter('resolveData', 0) as boolean;
|
||||
const resolveData = this.getNodeParameter('resolveData', 0);
|
||||
|
||||
let mimeType = 'text/plain';
|
||||
let body;
|
||||
|
||||
@@ -181,7 +181,7 @@ export class GoogleFirebaseCloudFirestore implements INodeType {
|
||||
const projectId = this.getNodeParameter('projectId', 0) as string;
|
||||
const database = this.getNodeParameter('database', 0) as string;
|
||||
const collection = this.getNodeParameter('collection', 0) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const simple = this.getNodeParameter('simple', 0) as boolean;
|
||||
|
||||
if (returnAll) {
|
||||
@@ -374,7 +374,7 @@ export class GoogleFirebaseCloudFirestore implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
const projectId = this.getNodeParameter('projectId', 0) as string;
|
||||
const database = this.getNodeParameter('database', 0) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (returnAll) {
|
||||
const getAllResponse = await googleApiRequestAllItems.call(
|
||||
|
||||
@@ -160,7 +160,7 @@ export class GSuiteAdmin implements INodeType {
|
||||
|
||||
//https://developers.google.com/admin-sdk/directory/v1/reference/groups/list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
|
||||
@@ -314,7 +314,7 @@ export class GSuiteAdmin implements INodeType {
|
||||
|
||||
//https://developers.google.com/admin-sdk/directory/v1/reference/users/list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const projection = this.getNodeParameter('projection', i) as string;
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ export class GmailV1 implements INodeType {
|
||||
responseData = await googleApiRequest.call(this, method, endpoint, body, qs);
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
responseData = await googleApiRequest.call(
|
||||
this,
|
||||
@@ -516,7 +516,7 @@ export class GmailV1 implements INodeType {
|
||||
responseData = nodeExecutionData;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
Object.assign(qs, additionalFields);
|
||||
|
||||
@@ -740,7 +740,7 @@ export class GmailV1 implements INodeType {
|
||||
responseData = { success: true };
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
Object.assign(qs, additionalFields);
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ export class GmailV2 implements INodeType {
|
||||
responseData = await googleApiRequest.call(this, 'GET', endpoint);
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
responseData = await googleApiRequest.call(this, 'GET', `/gmail/v1/users/me/labels`);
|
||||
|
||||
@@ -379,7 +379,7 @@ export class GmailV2 implements INodeType {
|
||||
responseData = [nodeExecutionData];
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i, {}) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i, {}) as IDataObject;
|
||||
const qs: IDataObject = {};
|
||||
@@ -605,7 +605,7 @@ export class GmailV2 implements INodeType {
|
||||
responseData = { success: true };
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const qs: IDataObject = {};
|
||||
Object.assign(qs, options);
|
||||
@@ -705,7 +705,7 @@ export class GmailV2 implements INodeType {
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
//https://developers.google.com/gmail/api/reference/rest/v1/users.threads/list
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const qs: IDataObject = {};
|
||||
Object.assign(qs, prepareQuery.call(this, filters));
|
||||
|
||||
@@ -431,7 +431,7 @@ export class GoogleSlides implements INodeType {
|
||||
`/presentations/${presentationId}/pages/${pageObjectId}/thumbnail`,
|
||||
);
|
||||
|
||||
const download = this.getNodeParameter('download', 0) as boolean;
|
||||
const download = this.getNodeParameter('download', 0);
|
||||
if (download === true) {
|
||||
const binaryProperty = this.getNodeParameter('binaryProperty', i) as string;
|
||||
|
||||
@@ -510,7 +510,7 @@ export class GoogleSlides implements INodeType {
|
||||
// ----------------------------------
|
||||
// presentation: getSlides
|
||||
// ----------------------------------
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const presentationId = this.getNodeParameter('presentationId', i) as string;
|
||||
responseData = await googleApiRequest.call(
|
||||
this,
|
||||
|
||||
@@ -157,7 +157,7 @@ export class GoogleTasks implements INodeType {
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
//https://developers.google.com/tasks/v1/reference/tasks/list
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const taskListId = this.getNodeParameter('task', i) as string;
|
||||
const {
|
||||
showCompleted = true,
|
||||
|
||||
@@ -223,7 +223,7 @@ export class YouTube implements INodeType {
|
||||
}
|
||||
//https://developers.google.com/youtube/v3/docs/channels/list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
let part = this.getNodeParameter('part', i) as string[];
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
@@ -476,7 +476,7 @@ export class YouTube implements INodeType {
|
||||
}
|
||||
//https://developers.google.com/youtube/v3/docs/playlists/list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
let part = this.getNodeParameter('part', i) as string[];
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
@@ -660,7 +660,7 @@ export class YouTube implements INodeType {
|
||||
}
|
||||
//https://developers.google.com/youtube/v3/docs/playlistItems/list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
let part = this.getNodeParameter('part', i) as string[];
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const playlistId = this.getNodeParameter('playlistId', i) as string;
|
||||
@@ -774,7 +774,7 @@ export class YouTube implements INodeType {
|
||||
if (resource === 'video') {
|
||||
//https://developers.google.com/youtube/v3/docs/search/list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
|
||||
@@ -1075,7 +1075,7 @@ export class YouTube implements INodeType {
|
||||
if (resource === 'videoCategory') {
|
||||
//https://developers.google.com/youtube/v3/docs/videoCategories/list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const regionCode = this.getNodeParameter('regionCode', i) as string;
|
||||
|
||||
qs.regionCode = regionCode;
|
||||
|
||||
@@ -189,7 +189,7 @@ export class Gotify implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (returnAll) {
|
||||
responseData = await gotifyApiRequestAllItems.call(
|
||||
|
||||
@@ -197,7 +197,7 @@ export class Grafana implements INodeType {
|
||||
Object.assign(qs, filters);
|
||||
}
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (!returnAll) {
|
||||
const limit = this.getNodeParameter('limit', i) as number;
|
||||
@@ -321,7 +321,7 @@ export class Grafana implements INodeType {
|
||||
responseData = await grafanaApiRequest.call(this, 'GET', '/teams/search', {}, qs);
|
||||
responseData = responseData.teams;
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (!returnAll) {
|
||||
const limit = this.getNodeParameter('limit', i) as number;
|
||||
@@ -404,7 +404,7 @@ export class Grafana implements INodeType {
|
||||
const endpoint = `/teams/${teamId}/members`;
|
||||
responseData = await grafanaApiRequest.call(this, 'GET', endpoint);
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (!returnAll) {
|
||||
const limit = this.getNodeParameter('limit', i) as number;
|
||||
@@ -447,7 +447,7 @@ export class Grafana implements INodeType {
|
||||
|
||||
responseData = await grafanaApiRequest.call(this, 'GET', '/org/users');
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (!returnAll) {
|
||||
const limit = this.getNodeParameter('limit', i) as number;
|
||||
|
||||
@@ -220,7 +220,7 @@ export class Grist implements INodeType {
|
||||
|
||||
const qs: IDataObject = {};
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||
|
||||
@@ -286,7 +286,7 @@ export class HackerNews implements INodeType {
|
||||
tags: tags ? tags.join() : '',
|
||||
};
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (!returnAll) {
|
||||
qs.hitsPerPage = this.getNodeParameter('limit', i) as number;
|
||||
|
||||
@@ -284,7 +284,7 @@ export class HaloPSA implements INodeType {
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const simplify = this.getNodeParameter('simplify', i) as boolean;
|
||||
const qs: IDataObject = {};
|
||||
let response;
|
||||
@@ -392,7 +392,7 @@ export class HaloPSA implements INodeType {
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const simplify = this.getNodeParameter('simplify', i) as boolean;
|
||||
const qs: IDataObject = {};
|
||||
let response;
|
||||
@@ -502,7 +502,7 @@ export class HaloPSA implements INodeType {
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const simplify = this.getNodeParameter('simplify', i) as boolean;
|
||||
const qs: IDataObject = {};
|
||||
let response;
|
||||
@@ -611,7 +611,7 @@ export class HaloPSA implements INodeType {
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const simplify = this.getNodeParameter('simplify', i) as boolean;
|
||||
const qs: IDataObject = {};
|
||||
let response;
|
||||
|
||||
@@ -96,7 +96,7 @@ export async function getAllResource(
|
||||
qs.per_page = 100;
|
||||
|
||||
const additionalFields = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
Object.assign(qs, additionalFields);
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ export class HelpScout implements INodeType {
|
||||
const status = this.getNodeParameter('status', i) as string;
|
||||
const subject = this.getNodeParameter('subject', i) as string;
|
||||
const type = this.getNodeParameter('type', i) as string;
|
||||
const resolveData = this.getNodeParameter('resolveData', i) as boolean;
|
||||
const resolveData = this.getNodeParameter('resolveData', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const threads = (this.getNodeParameter('threadsUi', i) as IDataObject)
|
||||
.threadsValues as IDataObject[];
|
||||
@@ -246,7 +246,7 @@ export class HelpScout implements INodeType {
|
||||
}
|
||||
//https://developer.helpscout.com/mailbox-api/endpoints/conversations/list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
Object.assign(qs, options);
|
||||
if (returnAll) {
|
||||
@@ -275,7 +275,7 @@ export class HelpScout implements INodeType {
|
||||
if (resource === 'customer') {
|
||||
//https://developer.helpscout.com/mailbox-api/endpoints/customers/create
|
||||
if (operation === 'create') {
|
||||
const resolveData = this.getNodeParameter('resolveData', i) as boolean;
|
||||
const resolveData = this.getNodeParameter('resolveData', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const chats = (this.getNodeParameter('chatsUi', i) as IDataObject)
|
||||
.chatsValues as IDataObject[];
|
||||
@@ -360,7 +360,7 @@ export class HelpScout implements INodeType {
|
||||
}
|
||||
//https://developer.helpscout.com/mailbox-api/endpoints/customers/list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
Object.assign(qs, options);
|
||||
if (returnAll) {
|
||||
@@ -425,7 +425,7 @@ export class HelpScout implements INodeType {
|
||||
}
|
||||
//https://developer.helpscout.com/mailbox-api/endpoints/mailboxes/list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll) {
|
||||
responseData = await helpscoutApiRequestAllItems.call(
|
||||
this,
|
||||
@@ -534,7 +534,7 @@ export class HelpScout implements INodeType {
|
||||
}
|
||||
//https://developer.helpscout.com/mailbox-api/endpoints/conversations/threads/list
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const conversationId = this.getNodeParameter('conversationId', i) as string;
|
||||
if (returnAll) {
|
||||
responseData = await helpscoutApiRequestAllItems.call(
|
||||
|
||||
@@ -200,7 +200,7 @@ export class HomeAssistant implements INodeType {
|
||||
}
|
||||
} else if (resource === 'service') {
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
responseData = (await homeAssistantApiRequest.call(
|
||||
this,
|
||||
'GET',
|
||||
@@ -240,7 +240,7 @@ export class HomeAssistant implements INodeType {
|
||||
}
|
||||
} else if (resource === 'state') {
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
responseData = (await homeAssistantApiRequest.call(
|
||||
this,
|
||||
'GET',
|
||||
@@ -283,7 +283,7 @@ export class HomeAssistant implements INodeType {
|
||||
}
|
||||
} else if (resource === 'event') {
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
responseData = (await homeAssistantApiRequest.call(
|
||||
this,
|
||||
'GET',
|
||||
@@ -355,7 +355,7 @@ export class HomeAssistant implements INodeType {
|
||||
}
|
||||
} else if (resource === 'history') {
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
let endpoint = '/history/period';
|
||||
|
||||
|
||||
@@ -992,7 +992,7 @@ export class Hubspot implements INodeType {
|
||||
//https://developers.hubspot.com/docs/methods/companies/create_company
|
||||
if (operation === 'upsert') {
|
||||
const email = this.getNodeParameter('email', i) as string;
|
||||
const resolveData = this.getNodeParameter('resolveData', i) as boolean;
|
||||
const resolveData = this.getNodeParameter('resolveData', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const body: IDataObject[] = [];
|
||||
if (additionalFields.annualRevenue) {
|
||||
@@ -1339,7 +1339,7 @@ export class Hubspot implements INodeType {
|
||||
//https://developers.hubspot.com/docs/methods/contacts/get_contacts
|
||||
if (operation === 'getAll') {
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
if (additionalFields.formSubmissionMode) {
|
||||
qs.formSubmissionMode = additionalFields.formSubmissionMode as string;
|
||||
}
|
||||
@@ -1371,7 +1371,7 @@ export class Hubspot implements INodeType {
|
||||
//https://developers.hubspot.com/docs/methods/contacts/get_recently_created_contacts
|
||||
if (operation === 'getRecentlyCreatedUpdated') {
|
||||
let endpoint;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
if (filters.formSubmissionMode) {
|
||||
qs.formSubmissionMode = filters.formSubmissionMode as string;
|
||||
@@ -1412,7 +1412,7 @@ export class Hubspot implements INodeType {
|
||||
//https://developers.hubspot.com/docs/api/crm/search
|
||||
if (operation === 'search') {
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const filtersGroupsUi = this.getNodeParameter('filterGroupsUi', i) as IDataObject;
|
||||
const sortBy = additionalFields.sortBy || 'createdate';
|
||||
const direction = additionalFields.direction || 'DESCENDING';
|
||||
@@ -1931,7 +1931,7 @@ export class Hubspot implements INodeType {
|
||||
//https://developers.hubspot.com/docs/methods/companies/get-all-companies
|
||||
if (operation === 'getAll') {
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
if (options.includeMergeAudits) {
|
||||
qs.includeMergeAudits = options.includeMergeAudits as boolean;
|
||||
}
|
||||
@@ -1960,7 +1960,7 @@ export class Hubspot implements INodeType {
|
||||
//https://developers.hubspot.com/docs/methods/companies/get_companies_modified
|
||||
if (operation === 'getRecentlyCreated' || operation === 'getRecentlyModified') {
|
||||
let endpoint;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
if (operation === 'getRecentlyCreated') {
|
||||
endpoint = `/companies/v2/companies/recent/created`;
|
||||
} else {
|
||||
@@ -1989,7 +1989,7 @@ export class Hubspot implements INodeType {
|
||||
if (operation === 'searchByDomain') {
|
||||
const domain = this.getNodeParameter('domain', i) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const body: IDataObject = {
|
||||
requestOptions: {},
|
||||
};
|
||||
@@ -2163,7 +2163,7 @@ export class Hubspot implements INodeType {
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
if (filters.includeAssociations) {
|
||||
qs.includeAssociations = filters.includeAssociations as boolean;
|
||||
}
|
||||
@@ -2198,7 +2198,7 @@ export class Hubspot implements INodeType {
|
||||
if (operation === 'getRecentlyCreated' || operation === 'getRecentlyModified') {
|
||||
let endpoint;
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
if (filters.since) {
|
||||
qs.since = new Date(filters.since as string).getTime();
|
||||
}
|
||||
@@ -2233,7 +2233,7 @@ export class Hubspot implements INodeType {
|
||||
//https://developers.hubspot.com/docs/api/crm/search
|
||||
if (operation === 'search') {
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const filtersGroupsUi = this.getNodeParameter('filterGroupsUi', i) as IDataObject;
|
||||
const sortBy = additionalFields.sortBy || 'createdate';
|
||||
const direction = additionalFields.direction || 'DESCENDING';
|
||||
@@ -2353,7 +2353,7 @@ export class Hubspot implements INodeType {
|
||||
}
|
||||
//https://legacydocs.hubspot.com/docs/methods/engagements/get-all-engagements
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const endpoint = `/engagements/v1/engagements/paged`;
|
||||
if (returnAll) {
|
||||
responseData = await hubspotApiRequestAllItems.call(
|
||||
@@ -2573,7 +2573,7 @@ export class Hubspot implements INodeType {
|
||||
//https://developers.hubspot.com/docs/methods/tickets/get-all-tickets
|
||||
if (operation === 'getAll') {
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
if (additionalFields.properties) {
|
||||
qs.properties = additionalFields.properties as string[];
|
||||
}
|
||||
|
||||
@@ -277,7 +277,7 @@ export class Hunter implements INodeType {
|
||||
const operation = this.getNodeParameter('operation', 0) as string;
|
||||
//https://hunter.io/api-documentation/v2#domain-search
|
||||
if (operation === 'domainSearch') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const domain = this.getNodeParameter('domain', i) as string;
|
||||
const onlyEmails = this.getNodeParameter('onlyEmails', i, false) as boolean;
|
||||
|
||||
@@ -114,7 +114,7 @@ export class Intercom implements INodeType {
|
||||
if (resource === 'lead') {
|
||||
if (operation === 'create' || operation === 'update') {
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i);
|
||||
const body: ILead = {};
|
||||
if (operation === 'create') {
|
||||
body.email = this.getNodeParameter('email', i) as string;
|
||||
@@ -229,7 +229,7 @@ export class Intercom implements INodeType {
|
||||
}
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
Object.assign(qs, filters);
|
||||
|
||||
@@ -271,7 +271,7 @@ export class Intercom implements INodeType {
|
||||
if (resource === 'user') {
|
||||
if (operation === 'create' || operation === 'update') {
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i);
|
||||
const body: IUser = {};
|
||||
|
||||
if (operation === 'create') {
|
||||
@@ -404,7 +404,7 @@ export class Intercom implements INodeType {
|
||||
}
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
Object.assign(qs, filters);
|
||||
|
||||
@@ -445,7 +445,7 @@ export class Intercom implements INodeType {
|
||||
if (operation === 'create' || operation === 'update') {
|
||||
const id = this.getNodeParameter('companyId', i) as string;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i);
|
||||
const body: ICompany = {
|
||||
company_id: id,
|
||||
};
|
||||
@@ -528,7 +528,7 @@ export class Intercom implements INodeType {
|
||||
}
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
Object.assign(qs, filters);
|
||||
|
||||
@@ -558,7 +558,7 @@ export class Intercom implements INodeType {
|
||||
if (operation === 'users') {
|
||||
const listBy = this.getNodeParameter('listBy', 0) as string;
|
||||
const value = this.getNodeParameter('value', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (listBy === 'companyId') {
|
||||
qs.company_id = value;
|
||||
|
||||
@@ -363,7 +363,7 @@ export class InvoiceNinja implements INodeType {
|
||||
responseData = responseData.data;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.include) {
|
||||
qs.include = options.include as string;
|
||||
@@ -521,7 +521,7 @@ export class InvoiceNinja implements INodeType {
|
||||
responseData = responseData.data;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.include) {
|
||||
qs.include = options.include as string;
|
||||
@@ -617,7 +617,7 @@ export class InvoiceNinja implements INodeType {
|
||||
responseData = responseData.data;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.include) {
|
||||
qs.include = options.include as string;
|
||||
@@ -689,7 +689,7 @@ export class InvoiceNinja implements INodeType {
|
||||
responseData = responseData.data;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.include) {
|
||||
qs.include = options.include as string;
|
||||
@@ -794,7 +794,7 @@ export class InvoiceNinja implements INodeType {
|
||||
responseData = responseData.data;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
if (returnAll === true) {
|
||||
responseData = await invoiceNinjaApiRequestAllItems.call(
|
||||
this,
|
||||
@@ -951,7 +951,7 @@ export class InvoiceNinja implements INodeType {
|
||||
responseData = responseData.data;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.include) {
|
||||
qs.include = options.include as string;
|
||||
|
||||
@@ -625,7 +625,7 @@ export class Jenkins implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
const job = this.getNodeParameter('job', i) as string;
|
||||
let endpoint = `/job/${job}/api/json?tree=builds[*]`;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (!returnAll) {
|
||||
const limit = this.getNodeParameter('limit', i) as number;
|
||||
|
||||
@@ -734,7 +734,7 @@ export class Jira implements INodeType {
|
||||
//https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-search-post
|
||||
if (operation === 'getAll') {
|
||||
for (let i = 0; i < length; i++) {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const body: IDataObject = {};
|
||||
if (options.fields) {
|
||||
@@ -782,7 +782,7 @@ export class Jira implements INodeType {
|
||||
if (operation === 'changelog') {
|
||||
for (let i = 0; i < length; i++) {
|
||||
const issueKey = this.getNodeParameter('issueKey', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll) {
|
||||
responseData = await jiraSoftwareCloudApiRequestAllItems.call(
|
||||
this,
|
||||
@@ -1047,7 +1047,7 @@ export class Jira implements INodeType {
|
||||
}
|
||||
//https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-attachment-id-get
|
||||
if (operation === 'get') {
|
||||
const download = this.getNodeParameter('download', 0) as boolean;
|
||||
const download = this.getNodeParameter('download', 0);
|
||||
for (let i = 0; i < length; i++) {
|
||||
const attachmentId = this.getNodeParameter('attachmentId', i) as string;
|
||||
responseData = await jiraSoftwareCloudApiRequest.call(
|
||||
@@ -1092,10 +1092,10 @@ export class Jira implements INodeType {
|
||||
}
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const download = this.getNodeParameter('download', 0) as boolean;
|
||||
const download = this.getNodeParameter('download', 0);
|
||||
for (let i = 0; i < length; i++) {
|
||||
const issueKey = this.getNodeParameter('issueKey', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const {
|
||||
fields: { attachment },
|
||||
} = await jiraSoftwareCloudApiRequest.call(
|
||||
@@ -1241,7 +1241,7 @@ export class Jira implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
for (let i = 0; i < length; i++) {
|
||||
const issueKey = this.getNodeParameter('issueKey', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const body: IDataObject = {};
|
||||
Object.assign(qs, options);
|
||||
|
||||
@@ -350,7 +350,7 @@ export class Kafka implements INodeType {
|
||||
|
||||
const topic = this.getNodeParameter('topic', i) as string;
|
||||
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
|
||||
const useKey = this.getNodeParameter('useKey', i) as boolean;
|
||||
|
||||
|
||||
@@ -281,7 +281,7 @@ export class Keap implements INodeType {
|
||||
}
|
||||
//https://developer.infusionsoft.com/docs/rest/#!/Company/listCompaniesUsingGET
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
keysToSnakeCase(options);
|
||||
Object.assign(qs, options);
|
||||
@@ -415,7 +415,7 @@ export class Keap implements INodeType {
|
||||
}
|
||||
//https://developer.infusionsoft.com/docs/rest/#!/Contact/listContactsUsingGET
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.email) {
|
||||
qs.email = options.email as boolean;
|
||||
@@ -484,7 +484,7 @@ export class Keap implements INodeType {
|
||||
}
|
||||
//https://developer.infusionsoft.com/docs/rest/#!/Note/listNotesUsingGET
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
keysToSnakeCase(filters);
|
||||
Object.assign(qs, filters);
|
||||
@@ -547,7 +547,7 @@ export class Keap implements INodeType {
|
||||
}
|
||||
//https://developer.infusionsoft.com/docs/rest/#!/Contact/listAppliedTagsUsingGET
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const contactId = parseInt(this.getNodeParameter('contactId', i) as string, 10);
|
||||
if (returnAll) {
|
||||
responseData = await keapApiRequestAllItems.call(
|
||||
@@ -615,7 +615,7 @@ export class Keap implements INodeType {
|
||||
}
|
||||
//https://developer.infusionsoft.com/docs/rest/#!/E-Commerce/listOrdersUsingGET
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
keysToSnakeCase(options);
|
||||
Object.assign(qs, options);
|
||||
@@ -660,7 +660,7 @@ export class Keap implements INodeType {
|
||||
}
|
||||
//https://developer.infusionsoft.com/docs/rest/#!/Product/listProductsUsingGET
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
keysToSnakeCase(filters);
|
||||
Object.assign(qs, filters);
|
||||
@@ -702,7 +702,7 @@ export class Keap implements INodeType {
|
||||
}
|
||||
//https://developer.infusionsoft.com/docs/rest/#!/Email/listEmailsUsingGET
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
keysToSnakeCase(filters);
|
||||
Object.assign(qs, filters);
|
||||
@@ -787,7 +787,7 @@ export class Keap implements INodeType {
|
||||
}
|
||||
//https://developer.infusionsoft.com/docs/rest/#!/File/listFilesUsingGET
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
keysToSnakeCase(filters);
|
||||
Object.assign(qs, filters);
|
||||
@@ -817,7 +817,7 @@ export class Keap implements INodeType {
|
||||
}
|
||||
//https://developer.infusionsoft.com/docs/rest/#!/File/createFileUsingPOST
|
||||
if (operation === 'upload') {
|
||||
const binaryData = this.getNodeParameter('binaryData', i) as boolean;
|
||||
const binaryData = this.getNodeParameter('binaryData', i);
|
||||
const fileAssociation = this.getNodeParameter('fileAssociation', i) as string;
|
||||
const isPublic = this.getNodeParameter('isPublic', i) as boolean;
|
||||
const body: IFile = {
|
||||
|
||||
@@ -123,7 +123,7 @@ export class Lemlist implements INodeType {
|
||||
|
||||
// https://developer.lemlist.com/#activities
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const qs = {} as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i);
|
||||
|
||||
@@ -205,7 +205,7 @@ export class Linear implements INodeType {
|
||||
responseData = responseData.data?.issues?.nodes[0];
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const body: IGraphqlBody = {
|
||||
query: query.getIssues(),
|
||||
variables: {
|
||||
|
||||
@@ -407,7 +407,7 @@ export class Magento2 implements INodeType {
|
||||
const sort = this.getNodeParameter('options.sort', i, {}) as {
|
||||
sort: [{ direction: string; field: string }];
|
||||
};
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
let qs: Search = {};
|
||||
|
||||
if (filterType === 'manual') {
|
||||
@@ -588,7 +588,7 @@ export class Magento2 implements INodeType {
|
||||
const sort = this.getNodeParameter('options.sort', i, {}) as {
|
||||
sort: [{ direction: string; field: string }];
|
||||
};
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
let qs: Search = {};
|
||||
|
||||
if (filterType === 'manual') {
|
||||
@@ -710,7 +710,7 @@ export class Magento2 implements INodeType {
|
||||
const sort = this.getNodeParameter('options.sort', i, {}) as {
|
||||
sort: [{ direction: string; field: string }];
|
||||
};
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
let qs: Search = {};
|
||||
|
||||
if (filterType === 'manual') {
|
||||
|
||||
@@ -1688,7 +1688,7 @@ export class Mailchimp implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
const listId = this.getNodeParameter('list', i) as string;
|
||||
const categoryId = this.getNodeParameter('groupCategory', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (returnAll === true) {
|
||||
responseData = await mailchimpApiRequestAllItems.call(
|
||||
@@ -1719,7 +1719,7 @@ export class Mailchimp implements INodeType {
|
||||
const email = this.getNodeParameter('email', i) as string;
|
||||
const status = this.getNodeParameter('status', i) as Status;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i) as IDataObject;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i);
|
||||
|
||||
const body: ICreateMemberBody = {
|
||||
listId,
|
||||
@@ -1850,7 +1850,7 @@ export class Mailchimp implements INodeType {
|
||||
//https://mailchimp.com/developer/reference/lists/list-members/#get_/lists/-list_id-/members
|
||||
if (operation === 'getAll') {
|
||||
const listId = this.getNodeParameter('list', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
|
||||
if (options.beforeLastChanged) {
|
||||
@@ -1904,7 +1904,7 @@ export class Mailchimp implements INodeType {
|
||||
const listId = this.getNodeParameter('list', i) as string;
|
||||
const email = this.getNodeParameter('email', i) as string;
|
||||
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i) as IDataObject;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i);
|
||||
const body: ICreateMemberBody = {
|
||||
listId,
|
||||
email_address: email,
|
||||
@@ -2071,7 +2071,7 @@ export class Mailchimp implements INodeType {
|
||||
if (resource === 'campaign') {
|
||||
//https://mailchimp.com/developer/api/marketing/campaigns/list-campaigns/
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.status) {
|
||||
qs.status = options.status as string;
|
||||
|
||||
@@ -126,7 +126,7 @@ export class MailerLite implements INodeType {
|
||||
}
|
||||
//https://developers.mailerlite.com/reference#subscribers
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ export class Mailjet implements INodeType {
|
||||
const subject = this.getNodeParameter('subject', i) as string;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const toEmail = (this.getNodeParameter('toEmail', i) as string).split(',') as string[];
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
|
||||
const body: IMessage = {
|
||||
From: {
|
||||
@@ -205,7 +205,7 @@ export class Mailjet implements INodeType {
|
||||
const subject = this.getNodeParameter('subject', i) as string;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const toEmail = (this.getNodeParameter('toEmail', i) as string).split(',') as string[];
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonParameters = this.getNodeParameter('jsonParameters', i);
|
||||
|
||||
const body: IMessage = {
|
||||
From: {
|
||||
|
||||
@@ -723,7 +723,7 @@ export class Mandrill implements INodeType {
|
||||
const options = this.getNodeParameter('options', i) as Options;
|
||||
const fromEmail = this.getNodeParameter('fromEmail', i) as string;
|
||||
const toEmail = this.getNodeParameter('toEmail', i) as string;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i);
|
||||
const toEmailArray = getToEmailArray(toEmail);
|
||||
|
||||
const message: Message = {
|
||||
|
||||
@@ -552,7 +552,7 @@ export class Mautic implements INodeType {
|
||||
}
|
||||
//https://developer.mautic.org/#list-contact-companies
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const simple = this.getNodeParameter('simple', i) as boolean;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
qs = Object.assign(qs, additionalFields);
|
||||
@@ -601,7 +601,7 @@ export class Mautic implements INodeType {
|
||||
if (operation === 'create') {
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i) as boolean;
|
||||
const jsonActive = this.getNodeParameter('jsonParameters', i);
|
||||
let body: IDataObject = {};
|
||||
if (!jsonActive) {
|
||||
body.email = this.getNodeParameter('email', i) as string;
|
||||
@@ -833,7 +833,7 @@ export class Mautic implements INodeType {
|
||||
}
|
||||
//https://developer.mautic.org/?php#list-contacts
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
qs = Object.assign(qs, options);
|
||||
if (qs.orderBy) {
|
||||
|
||||
@@ -493,7 +493,7 @@ export class Medium implements INodeType {
|
||||
// publication:getAll
|
||||
// ----------------------------------
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const user = await mediumApiRequest.call(this, 'GET', `/me`);
|
||||
|
||||
|
||||
@@ -214,7 +214,7 @@ export class MicrosoftDynamicsCrm implements INodeType {
|
||||
|
||||
if (operation === 'getAll') {
|
||||
//https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/query-data-web-api
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
if (options.returnFields) {
|
||||
|
||||
@@ -260,8 +260,8 @@ export class MicrosoftExcel implements INodeType {
|
||||
const workbookId = this.getNodeParameter('workbook', i) as string;
|
||||
const worksheetId = this.getNodeParameter('worksheet', i) as string;
|
||||
const tableId = this.getNodeParameter('table', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const rawData = this.getNodeParameter('rawData', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
if (rawData) {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
if (filters.fields) {
|
||||
@@ -322,8 +322,8 @@ export class MicrosoftExcel implements INodeType {
|
||||
const workbookId = this.getNodeParameter('workbook', i) as string;
|
||||
const worksheetId = this.getNodeParameter('worksheet', i) as string;
|
||||
const tableId = this.getNodeParameter('table', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const rawData = this.getNodeParameter('rawData', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
if (rawData) {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
if (filters.fields) {
|
||||
@@ -519,7 +519,7 @@ export class MicrosoftExcel implements INodeType {
|
||||
);
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
if (filters.fields) {
|
||||
qs['$select'] = filters.fields;
|
||||
@@ -580,7 +580,7 @@ export class MicrosoftExcel implements INodeType {
|
||||
try {
|
||||
//https://docs.microsoft.com/en-us/graph/api/workbook-list-worksheets?view=graph-rest-1.0&tabs=http
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const workbookId = this.getNodeParameter('workbook', i) as string;
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
if (filters.fields) {
|
||||
@@ -612,7 +612,7 @@ export class MicrosoftExcel implements INodeType {
|
||||
const workbookId = this.getNodeParameter('workbook', i) as string;
|
||||
const worksheetId = this.getNodeParameter('worksheet', i) as string;
|
||||
const range = this.getNodeParameter('range', i) as string;
|
||||
const rawData = this.getNodeParameter('rawData', i) as boolean;
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
if (rawData) {
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
if (filters.fields) {
|
||||
|
||||
@@ -111,7 +111,7 @@ export class MicrosoftGraphSecurity implements INodeType {
|
||||
qs.$filter = tolerateDoubleQuotes(filter);
|
||||
}
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (!returnAll) {
|
||||
qs.$count = true;
|
||||
@@ -161,7 +161,7 @@ export class MicrosoftGraphSecurity implements INodeType {
|
||||
qs.$filter = tolerateDoubleQuotes(filter);
|
||||
}
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (!returnAll) {
|
||||
qs.$count = true;
|
||||
|
||||
@@ -195,7 +195,7 @@ export class MicrosoftOneDrive implements INodeType {
|
||||
//https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_put_content?view=odsp-graph-online#example-upload-a-new-file
|
||||
if (operation === 'upload') {
|
||||
const parentId = this.getNodeParameter('parentId', i) as string;
|
||||
const isBinaryData = this.getNodeParameter('binaryData', i) as boolean;
|
||||
const isBinaryData = this.getNodeParameter('binaryData', i);
|
||||
const fileName = this.getNodeParameter('fileName', i) as string;
|
||||
|
||||
if (isBinaryData) {
|
||||
|
||||
@@ -478,7 +478,7 @@ export class MicrosoftOutlook implements INodeType {
|
||||
let additionalFields: IDataObject = {};
|
||||
for (let i = 0; i < length; i++) {
|
||||
try {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
||||
if (additionalFields.fields) {
|
||||
@@ -838,7 +838,7 @@ export class MicrosoftOutlook implements INodeType {
|
||||
for (let i = 0; i < length; i++) {
|
||||
try {
|
||||
const messageId = this.getNodeParameter('messageId', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
||||
// Have sane defaults so we don't fetch attachment data in this operation
|
||||
@@ -969,7 +969,7 @@ export class MicrosoftOutlook implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
for (let i = 0; i < length; i++) {
|
||||
try {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
||||
if (additionalFields.fields) {
|
||||
@@ -1009,7 +1009,7 @@ export class MicrosoftOutlook implements INodeType {
|
||||
for (let i = 0; i < length; i++) {
|
||||
try {
|
||||
const folderId = this.getNodeParameter('folderId', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
||||
if (additionalFields.fields) {
|
||||
@@ -1083,7 +1083,7 @@ export class MicrosoftOutlook implements INodeType {
|
||||
try {
|
||||
if (operation === 'getAll') {
|
||||
const folderId = this.getNodeParameter('folderId', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
||||
if (additionalFields.fields) {
|
||||
|
||||
@@ -313,7 +313,7 @@ export class MicrosoftTeams implements INodeType {
|
||||
//https://docs.microsoft.com/en-us/graph/api/channel-list?view=graph-rest-beta&tabs=http
|
||||
if (operation === 'getAll') {
|
||||
const teamId = this.getNodeParameter('teamId', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll) {
|
||||
responseData = await microsoftApiRequestAllItems.call(
|
||||
this,
|
||||
@@ -392,7 +392,7 @@ export class MicrosoftTeams implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
const teamId = this.getNodeParameter('teamId', i) as string;
|
||||
const channelId = this.getNodeParameter('channelId', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll) {
|
||||
responseData = await microsoftApiRequestAllItems.call(
|
||||
this,
|
||||
@@ -445,7 +445,7 @@ export class MicrosoftTeams implements INodeType {
|
||||
// https://docs.microsoft.com/en-us/graph/api/chat-list-messages?view=graph-rest-1.0&tabs=http
|
||||
if (operation === 'getAll') {
|
||||
const chatId = this.getNodeParameter('chatId', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll) {
|
||||
responseData = await microsoftApiRequestAllItems.call(
|
||||
this,
|
||||
@@ -533,7 +533,7 @@ export class MicrosoftTeams implements INodeType {
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const tasksFor = this.getNodeParameter('tasksFor', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (tasksFor === 'member') {
|
||||
//https://docs.microsoft.com/en-us/graph/api/planneruser-list-tasks?view=graph-rest-1.0&tabs=http
|
||||
const memberId = this.getNodeParameter('memberId', i) as string;
|
||||
|
||||
@@ -152,7 +152,7 @@ export class MicrosoftToDo implements INodeType {
|
||||
} else if (operation === 'getAll') {
|
||||
const taskListId = this.getNodeParameter('taskListId', i) as string;
|
||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (returnAll === true) {
|
||||
responseData = await microsoftApiRequestAllItems.call(
|
||||
@@ -260,7 +260,7 @@ export class MicrosoftToDo implements INodeType {
|
||||
// https://docs.microsoft.com/en-us/graph/api/todotasklist-list-tasks?view=graph-rest-1.0&tabs=http
|
||||
} else if (operation === 'getAll') {
|
||||
const taskListId = this.getNodeParameter('taskListId', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (returnAll === true) {
|
||||
responseData = await microsoftApiRequestAllItems.call(
|
||||
@@ -353,7 +353,7 @@ export class MicrosoftToDo implements INodeType {
|
||||
|
||||
// https://docs.microsoft.com/en-us/graph/api/todo-list-lists?view=graph-rest-1.0&tabs=http
|
||||
} else if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === true) {
|
||||
responseData = await microsoftApiRequestAllItems.call(
|
||||
this,
|
||||
|
||||
@@ -163,7 +163,7 @@ export class Mindee implements INodeType {
|
||||
if (operation === 'predict') {
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i) as string;
|
||||
|
||||
const rawData = this.getNodeParameter('rawData', i) as boolean;
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
|
||||
if (items[i].binary === undefined) {
|
||||
throw new NodeOperationError(this.getNode(), 'No binary data exists on item!', {
|
||||
@@ -234,7 +234,7 @@ export class Mindee implements INodeType {
|
||||
if (operation === 'predict') {
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i) as string;
|
||||
|
||||
const rawData = this.getNodeParameter('rawData', i) as boolean;
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
|
||||
if (items[i].binary === undefined) {
|
||||
throw new NodeOperationError(this.getNode(), 'No binary data exists on item!', {
|
||||
|
||||
@@ -69,7 +69,7 @@ export async function mispApiRequest(
|
||||
|
||||
export async function mispApiRequestAllItems(this: IExecuteFunctions, endpoint: string) {
|
||||
const responseData = await mispApiRequest.call(this, 'GET', endpoint);
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (!returnAll) {
|
||||
const limit = this.getNodeParameter('limit', 0) as number;
|
||||
|
||||
@@ -600,7 +600,7 @@ export class Misp implements INodeType {
|
||||
|
||||
responseData = (await mispApiRequest.call(this, 'GET', '/tags')) as LoadedTags;
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (!returnAll) {
|
||||
const limit = this.getNodeParameter('limit', 0) as number;
|
||||
@@ -717,7 +717,7 @@ export class Misp implements INodeType {
|
||||
Warninglists: Array<{ Warninglist: unknown }>;
|
||||
};
|
||||
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
if (!returnAll) {
|
||||
const limit = this.getNodeParameter('limit', 0) as number;
|
||||
|
||||
@@ -302,7 +302,7 @@ export class MondayCom implements INodeType {
|
||||
responseData = responseData.data.boards;
|
||||
}
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const body: IGraphqlBody = {
|
||||
query: `query ($page: Int, $limit: Int) {
|
||||
@@ -620,7 +620,7 @@ export class MondayCom implements INodeType {
|
||||
if (operation === 'getAll') {
|
||||
const boardId = parseInt(this.getNodeParameter('boardId', i) as string, 10);
|
||||
const groupId = this.getNodeParameter('groupId', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const body: IGraphqlBody = {
|
||||
query: `query ($boardId: [Int], $groupId: [String], $page: Int, $limit: Int) {
|
||||
@@ -666,7 +666,7 @@ export class MondayCom implements INodeType {
|
||||
const boardId = parseInt(this.getNodeParameter('boardId', i) as string, 10);
|
||||
const columnId = this.getNodeParameter('columnId', i) as string;
|
||||
const columnValue = this.getNodeParameter('columnValue', i) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
const body: IGraphqlBody = {
|
||||
query: `query ($boardId: Int!, $columnId: String!, $columnValue: String!, $page: Int, $limit: Int ){
|
||||
|
||||
@@ -122,7 +122,7 @@ export class N8nTrainingCustomerDatastore implements INodeType {
|
||||
}
|
||||
|
||||
if (operation === 'getAllPeople') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (returnAll === true) {
|
||||
responseData = data;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user