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