mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Remove linting exceptions in nodes-base (#4794)
* ⚡ enabled array-type * ⚡ await-thenable on * ⚡ ban-types on * ⚡ default-param-last on * ⚡ dot-notation on * ⚡ member-delimiter-style on * ⚡ no-duplicate-imports on * ⚡ no-empty-interface on * ⚡ no-floating-promises on * ⚡ no-for-in-array on * ⚡ no-invalid-void-type on * ⚡ no-loop-func on * ⚡ no-shadow on * ⚡ ban-ts-comment re enabled * ⚡ @typescript-eslint/lines-between-class-members on * address my own comment * @typescript-eslint/return-await on * @typescript-eslint/promise-function-async on * @typescript-eslint/no-unnecessary-boolean-literal-compare on * @typescript-eslint/no-unnecessary-type-assertion on * prefer-const on * @typescript-eslint/prefer-optional-chain on Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -3763,7 +3763,7 @@ export class Pipedrive implements INodeType {
|
||||
'GET',
|
||||
'/filters',
|
||||
{},
|
||||
{ type: type[resource] as string },
|
||||
{ type: type[resource] },
|
||||
);
|
||||
for (const filter of data) {
|
||||
returnData.push({
|
||||
@@ -4052,7 +4052,7 @@ export class Pipedrive implements INodeType {
|
||||
getCustomProperties = this.getNodeParameter('resolveProperties', 0, false) as boolean;
|
||||
}
|
||||
|
||||
if (getCustomProperties === true) {
|
||||
if (getCustomProperties) {
|
||||
customProperties = await pipedriveGetCustomProperties.call(this, resource);
|
||||
}
|
||||
}
|
||||
@@ -4106,7 +4106,7 @@ export class Pipedrive implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i);
|
||||
}
|
||||
|
||||
@@ -4194,7 +4194,7 @@ export class Pipedrive implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i);
|
||||
}
|
||||
const filters = this.getNodeParameter('filters', i);
|
||||
@@ -4227,7 +4227,7 @@ export class Pipedrive implements INodeType {
|
||||
qs.term = this.getNodeParameter('term', i) as string;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
qs.exact_match = this.getNodeParameter('exactMatch', i) as boolean;
|
||||
if (returnAll === false) {
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i);
|
||||
}
|
||||
|
||||
@@ -4265,7 +4265,7 @@ export class Pipedrive implements INodeType {
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
if (returnAll === false) {
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i);
|
||||
}
|
||||
|
||||
@@ -4275,7 +4275,7 @@ export class Pipedrive implements INodeType {
|
||||
qs.exclude = additionalFields.exclude as string;
|
||||
}
|
||||
|
||||
if (additionalFields && additionalFields.done !== undefined) {
|
||||
if (additionalFields?.done !== undefined) {
|
||||
qs.done = additionalFields.done === true ? 1 : 0;
|
||||
}
|
||||
|
||||
@@ -4437,7 +4437,7 @@ export class Pipedrive implements INodeType {
|
||||
endpoint = `/notes`;
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i);
|
||||
}
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
@@ -4536,7 +4536,7 @@ export class Pipedrive implements INodeType {
|
||||
// https://developers.pipedrive.com/docs/api/v1/Leads#getLeads
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i);
|
||||
}
|
||||
|
||||
@@ -4627,7 +4627,7 @@ export class Pipedrive implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i);
|
||||
}
|
||||
|
||||
@@ -4668,7 +4668,7 @@ export class Pipedrive implements INodeType {
|
||||
|
||||
qs.term = this.getNodeParameter('term', i) as string;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i);
|
||||
}
|
||||
|
||||
@@ -4724,7 +4724,7 @@ export class Pipedrive implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i);
|
||||
}
|
||||
|
||||
@@ -4748,7 +4748,7 @@ export class Pipedrive implements INodeType {
|
||||
|
||||
qs.term = this.getNodeParameter('term', i) as string;
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i);
|
||||
}
|
||||
|
||||
@@ -4797,7 +4797,7 @@ export class Pipedrive implements INodeType {
|
||||
requestMethod = 'GET';
|
||||
|
||||
returnAll = this.getNodeParameter('returnAll', i);
|
||||
if (returnAll === false) {
|
||||
if (!returnAll) {
|
||||
qs.limit = this.getNodeParameter('limit', i);
|
||||
}
|
||||
|
||||
@@ -4810,7 +4810,7 @@ export class Pipedrive implements INodeType {
|
||||
}
|
||||
|
||||
let responseData;
|
||||
if (returnAll === true) {
|
||||
if (returnAll) {
|
||||
responseData = await pipedriveApiRequestAllItems.call(
|
||||
this,
|
||||
requestMethod,
|
||||
@@ -4820,7 +4820,7 @@ export class Pipedrive implements INodeType {
|
||||
);
|
||||
} else {
|
||||
if (customProperties !== undefined) {
|
||||
pipedriveEncodeCustomProperties(customProperties!, body);
|
||||
pipedriveEncodeCustomProperties(customProperties, body);
|
||||
}
|
||||
|
||||
responseData = await pipedriveApiRequest.call(
|
||||
|
||||
Reference in New Issue
Block a user