refactor: Phase out TSLint in nodes-base (no-changelog) (#4798)

* 🔥 Remove TSLint scripts

* 🔥 Remove TSLint config

* 🔥 Remove TSLint exceptions

* 👕 Adjust lint config

* ✏️ Add story numbers
This commit is contained in:
Iván Ovejero
2022-12-02 15:25:21 +01:00
committed by GitHub
parent 632f573021
commit cfd32d2642
272 changed files with 367 additions and 926 deletions

View File

@@ -124,8 +124,16 @@ const config = (module.exports = {
'undefined', 'undefined',
], ],
/**
* https://eslint.org/docs/latest/rules/no-void
*/
'no-void': ['error', { allowAsStatement: true }], 'no-void': ['error', { allowAsStatement: true }],
/**
* https://eslint.org/docs/latest/rules/sort-imports
*/
'sort-imports': 'off', // @TECH_DEBT: Enable, prefs to be decided - N8N-5821
// ---------------------------------- // ----------------------------------
// @typescript-eslint // @typescript-eslint
// ---------------------------------- // ----------------------------------
@@ -185,11 +193,6 @@ const config = (module.exports = {
*/ */
'@typescript-eslint/consistent-type-assertions': 'error', '@typescript-eslint/consistent-type-assertions': 'error',
/**
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md
*/
'@typescript-eslint/explicit-member-accessibility': ['error', { accessibility: 'no-public' }],
/** /**
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-delimiter-style.md * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-delimiter-style.md
*/ */
@@ -299,6 +302,11 @@ const config = (module.exports = {
*/ */
'@typescript-eslint/promise-function-async': 'error', '@typescript-eslint/promise-function-async': 'error',
/**
* https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/triple-slash-reference.md
*/
'@typescript-eslint/triple-slash-reference': 'off', // @TECH_DEBT: Enable, disallowing in all cases - N8N-5820
// ---------------------------------- // ----------------------------------
// eslint-plugin-import // eslint-plugin-import
// ---------------------------------- // ----------------------------------

View File

@@ -21,7 +21,6 @@ export async function activeCampaignApiRequest(
body: IDataObject, body: IDataObject,
query?: IDataObject, query?: IDataObject,
dataKey?: string, dataKey?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('activeCampaignApi'); const credentials = await this.getCredentials('activeCampaignApi');
@@ -75,7 +74,6 @@ export async function activeCampaignApiRequestAllItems(
body: IDataObject, body: IDataObject,
query?: IDataObject, query?: IDataObject,
dataKey?: string, dataKey?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
if (query === undefined) { if (query === undefined) {
query = {}; query = {};

View File

@@ -17,12 +17,10 @@ export async function acuitySchedulingApiRequest(
| IWebhookFunctions, | IWebhookFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
_option: IDataObject = {}, _option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const authenticationMethod = this.getNodeParameter('authentication', 0); const authenticationMethod = this.getNodeParameter('authentication', 0);

View File

@@ -8,12 +8,10 @@ export async function affinityApiRequest(
this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('affinityApi'); const credentials = await this.getCredentials('affinityApi');
@@ -51,10 +49,8 @@ export async function affinityApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -17,12 +17,10 @@ export async function agileCrmApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
uri?: string, uri?: string,
sendAsForm?: boolean, sendAsForm?: boolean,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('agileCrmApi'); const credentials = await this.getCredentials('agileCrmApi');
const options: OptionsWithUri = { const options: OptionsWithUri = {
@@ -60,12 +58,10 @@ export async function agileCrmApiRequestAllItems(
this: IHookFunctions | ILoadOptionsFunctions | IExecuteFunctions, this: IHookFunctions | ILoadOptionsFunctions | IExecuteFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
uri?: string, uri?: string,
sendAsForm?: boolean, sendAsForm?: boolean,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
// https://github.com/agilecrm/rest-api#11-listing-contacts- // https://github.com/agilecrm/rest-api#11-listing-contacts-
@@ -101,11 +97,9 @@ export async function agileCrmApiRequestUpdate(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method = 'PUT', method = 'PUT',
endpoint?: string, endpoint?: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
_query: IDataObject = {}, _query: IDataObject = {},
uri?: string, uri?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('agileCrmApi'); const credentials = await this.getCredentials('agileCrmApi');
const baseUri = `https://${credentials.subdomain}.agilecrm.com/dev/`; const baseUri = `https://${credentials.subdomain}.agilecrm.com/dev/`;
@@ -124,7 +118,7 @@ export async function agileCrmApiRequestUpdate(
}; };
const successfulUpdates = []; const successfulUpdates = [];
let lastSuccesfulUpdateReturn: any; // tslint:disable-line:no-any let lastSuccesfulUpdateReturn: any;
const payload: IContactUpdate = body; const payload: IContactUpdate = body;
try { try {
@@ -135,7 +129,6 @@ export async function agileCrmApiRequestUpdate(
lastSuccesfulUpdateReturn = await this.helpers.request!(options); lastSuccesfulUpdateReturn = await this.helpers.request!(options);
// Iterate trough properties and show them as individial updates instead of only vague "properties" // Iterate trough properties and show them as individial updates instead of only vague "properties"
// tslint:disable-next-line:no-any
payload.properties?.map((property: any) => { payload.properties?.map((property: any) => {
successfulUpdates.push(`${property.name}`); successfulUpdates.push(`${property.name}`);
}); });
@@ -186,7 +179,6 @@ export async function agileCrmApiRequestUpdate(
} }
} }
// tslint:disable-next-line:no-any
export function validateJSON(json: string | undefined): any { export function validateJSON(json: string | undefined): any {
let result; let result;
try { try {

View File

@@ -538,7 +538,6 @@ export class Airtable implements INodeType {
if (addAllFields === true) { if (addAllFields === true) {
// Add all the fields the item has // Add all the fields the item has
row.fields = { ...items[i].json }; row.fields = { ...items[i].json };
// tslint:disable-next-line: no-any
delete (row.fields! as any).id; delete (row.fields! as any).id;
} else { } else {
// Add only the specified fields // Add only the specified fields
@@ -742,7 +741,6 @@ export class Airtable implements INodeType {
// Update all the fields the item has // Update all the fields the item has
row.fields = { ...items[i].json }; row.fields = { ...items[i].json };
// remove id field // remove id field
// tslint:disable-next-line: no-any
delete (row.fields! as any).id; delete (row.fields! as any).id;
if (options.ignoreFields && options.ignoreFields !== '') { if (options.ignoreFields && options.ignoreFields !== '') {

View File

@@ -33,7 +33,6 @@ export async function apiRequest(
query?: IDataObject, query?: IDataObject,
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
query = query || {}; query = query || {};
@@ -75,7 +74,6 @@ export async function apiRequestAllItems(
endpoint: string, endpoint: string,
body: IDataObject, body: IDataObject,
query?: IDataObject, query?: IDataObject,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
if (query === undefined) { if (query === undefined) {
query = {}; query = {};

View File

@@ -107,7 +107,7 @@ export class Amqp implements INodeType {
const containerReconnect = (options.reconnect as boolean) || true; const containerReconnect = (options.reconnect as boolean) || true;
const containerReconnectLimit = (options.reconnectLimit as number) || 50; const containerReconnectLimit = (options.reconnectLimit as number) || 50;
let headerProperties: Dictionary<any>; // tslint:disable-line:no-any let headerProperties: Dictionary<any>;
if (typeof applicationProperties === 'string' && applicationProperties !== '') { if (typeof applicationProperties === 'string' && applicationProperties !== '') {
headerProperties = JSON.parse(applicationProperties); headerProperties = JSON.parse(applicationProperties);
} else { } else {

View File

@@ -197,7 +197,7 @@ export class AmqpTrigger implements INodeType {
data = data.body; data = data.body;
} }
self.emit([self.helpers.returnJsonArray([data as any])]); // tslint:disable-line:no-any self.emit([self.helpers.returnJsonArray([data as any])]);
if (!context.receiver?.has_credit()) { if (!context.receiver?.has_credit()) {
setTimeout(() => { setTimeout(() => {
@@ -264,7 +264,7 @@ export class AmqpTrigger implements INodeType {
if (Object.keys(message)[0] === 'body' && Object.keys(message).length === 1) { if (Object.keys(message)[0] === 'body' && Object.keys(message).length === 1) {
self.emit([self.helpers.returnJsonArray([message.body])]); self.emit([self.helpers.returnJsonArray([message.body])]);
} else { } else {
self.emit([self.helpers.returnJsonArray([message as any])]); // tslint:disable-line:no-any self.emit([self.helpers.returnJsonArray([message as any])]);
} }
clearTimeout(timeoutHandler); clearTimeout(timeoutHandler);
resolve(true); resolve(true);

View File

@@ -60,7 +60,6 @@ export async function loadResource(this: ILoadOptionsFunctions, resource: 'image
})); }));
} }
// tslint:disable-next-line:no-any
export function validateJSON(json: string | object | undefined): any { export function validateJSON(json: string | object | undefined): any {
let result; let result;
if (typeof json === 'object') { if (typeof json === 'object') {

View File

@@ -20,7 +20,6 @@ export async function asanaApiRequest(
body: object, body: object,
query?: IDataObject, query?: IDataObject,
uri?: string | undefined, uri?: string | undefined,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const authenticationMethod = this.getNodeParameter('authentication', 0) as string; const authenticationMethod = this.getNodeParameter('authentication', 0) as string;
@@ -41,10 +40,9 @@ export async function asanaApiRequestAllItems(
this: IExecuteFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | ILoadOptionsFunctions,
method: IHttpRequestMethods, method: IHttpRequestMethods,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -8,11 +8,10 @@ export async function automizyApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
path: string, path: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
option = {}, option = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = (await this.getCredentials('automizyApi')) as IDataObject; const credentials = (await this.getCredentials('automizyApi')) as IDataObject;
@@ -49,10 +48,9 @@ export async function automizyApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -8,12 +8,11 @@ export async function autopilotApiRequest(
this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
uri?: string, uri?: string,
_option: IDataObject = {}, _option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = (await this.getCredentials('autopilotApi')) as IDataObject; const credentials = (await this.getCredentials('autopilotApi')) as IDataObject;
@@ -51,10 +50,9 @@ export async function autopilotApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];
const returnAll = this.getNodeParameter('returnAll', 0, false) as boolean; const returnAll = this.getNodeParameter('returnAll', 0, false) as boolean;

View File

@@ -17,7 +17,6 @@ export async function awsApiRequest(
body?: string | Buffer, body?: string | Buffer,
query: IDataObject = {}, query: IDataObject = {},
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('aws'); const credentials = await this.getCredentials('aws');
@@ -49,7 +48,6 @@ export async function awsApiRequestREST(
body?: string, body?: string,
query: IDataObject = {}, query: IDataObject = {},
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call(this, service, method, path, body, query, headers); const response = await awsApiRequest.call(this, service, method, path, body, query, headers);
try { try {
@@ -68,7 +66,6 @@ export async function awsApiRequestAllItems(
body?: string, body?: string,
query: IDataObject = {}, query: IDataObject = {},
headers: IDataObject = {}, headers: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];
@@ -77,7 +74,6 @@ export async function awsApiRequestAllItems(
do { do {
responseData = await awsApiRequestREST.call(this, service, method, path, body, query, headers); responseData = await awsApiRequestREST.call(this, service, method, path, body, query, headers);
if (responseData.NextToken) { if (responseData.NextToken) {
// tslint:disable-next-line:no-any
const data = jsonParse<any>(body as string, { const data = jsonParse<any>(body as string, {
errorMessage: 'Response body is not valid JSON', errorMessage: 'Response body is not valid JSON',
}); });

View File

@@ -16,7 +16,6 @@ export async function awsApiRequest(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('aws'); const credentials = await this.getCredentials('aws');
@@ -41,7 +40,6 @@ export async function awsApiRequestREST(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call(this, service, method, path, body, headers); const response = await awsApiRequest.call(this, service, method, path, body, headers);
try { try {
@@ -58,7 +56,6 @@ export async function awsApiRequestSOAP(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call(this, service, method, path, body, headers); const response = await awsApiRequest.call(this, service, method, path, body, headers);
try { try {

View File

@@ -175,7 +175,6 @@ export class AwsDynamoDB implements INodeType {
// https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteItem.html // https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteItem.html
// tslint:disable-next-line: no-any
const body: { [key: string]: any } = { const body: { [key: string]: any } = {
TableName: this.getNodeParameter('tableName', i) as string, TableName: this.getNodeParameter('tableName', i) as string,
Key: {}, Key: {},
@@ -252,7 +251,6 @@ export class AwsDynamoDB implements INodeType {
[], [],
) as IAttributeNameUi[]; ) as IAttributeNameUi[];
// tslint:disable-next-line: no-any
const body: { [key: string]: any } = { const body: { [key: string]: any } = {
TableName: tableName, TableName: tableName,
Key: {}, Key: {},

View File

@@ -16,7 +16,6 @@ export async function awsApiRequest(
path: string, path: string,
body?: object | IRequestBody, body?: object | IRequestBody,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('aws'); const credentials = await this.getCredentials('aws');
const requestOptions = { const requestOptions = {
@@ -63,7 +62,6 @@ export async function awsApiRequestAllItems(
path: string, path: string,
body?: IRequestBody, body?: IRequestBody,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -86,7 +86,6 @@ function decodeAttribute(type: AttributeValueType, attribute: string) {
} }
} }
// tslint:disable-next-line: no-any
export function validateJSON(input: any): object { export function validateJSON(input: any): object {
try { try {
return JSON.parse(input); return JSON.parse(input);

View File

@@ -16,7 +16,6 @@ export async function awsApiRequest(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('aws'); const credentials = await this.getCredentials('aws');
const requestOptions = { const requestOptions = {
@@ -45,7 +44,6 @@ export async function awsApiRequestREST(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call(this, service, method, path, body, headers); const response = await awsApiRequest.call(this, service, method, path, body, headers);
try { try {
@@ -62,7 +60,6 @@ export async function awsApiRequestSOAP(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call(this, service, method, path, body, headers); const response = await awsApiRequest.call(this, service, method, path, body, headers);
try { try {

View File

@@ -23,7 +23,6 @@ export async function awsApiRequest(
headers?: object, headers?: object,
option: IDataObject = {}, option: IDataObject = {},
_region?: string, _region?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('aws'); const credentials = await this.getCredentials('aws');
@@ -55,7 +54,6 @@ export async function awsApiRequestREST(
headers?: object, headers?: object,
options: IDataObject = {}, options: IDataObject = {},
region?: string, region?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call( const response = await awsApiRequest.call(
this, this,
@@ -85,7 +83,6 @@ export async function awsApiRequestSOAP(
headers?: object, headers?: object,
option: IDataObject = {}, option: IDataObject = {},
region?: string, region?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call( const response = await awsApiRequest.call(
this, this,
@@ -123,7 +120,6 @@ export async function awsApiRequestSOAPAllItems(
headers: IDataObject = {}, headers: IDataObject = {},
option: IDataObject = {}, option: IDataObject = {},
region?: string, region?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -21,7 +21,6 @@ export async function awsApiRequest(
headers?: object, headers?: object,
option: IDataObject = {}, option: IDataObject = {},
_region?: string, _region?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const requestOptions = { const requestOptions = {
qs: { qs: {
@@ -53,7 +52,6 @@ export async function awsApiRequestREST(
headers?: object, headers?: object,
options: IDataObject = {}, options: IDataObject = {},
region?: string, region?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call( const response = await awsApiRequest.call(
this, this,
@@ -83,7 +81,6 @@ export async function awsApiRequestSOAP(
headers?: object, headers?: object,
option: IDataObject = {}, option: IDataObject = {},
region?: string, region?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call( const response = await awsApiRequest.call(
this, this,
@@ -121,7 +118,6 @@ export async function awsApiRequestSOAPAllItems(
headers: IDataObject = {}, headers: IDataObject = {},
option: IDataObject = {}, option: IDataObject = {},
region?: string, region?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -18,7 +18,6 @@ export async function awsApiRequest(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('aws'); const credentials = await this.getCredentials('aws');
@@ -48,7 +47,6 @@ export async function awsApiRequestREST(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call(this, service, method, path, body, headers); const response = await awsApiRequest.call(this, service, method, path, body, headers);
try { try {
@@ -65,7 +63,6 @@ export async function awsApiRequestSOAP(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call(this, service, method, path, body, headers); const response = await awsApiRequest.call(this, service, method, path, body, headers);
try { try {
@@ -93,7 +90,6 @@ export async function awsApiRequestSOAPAllItems(
_headers: IDataObject = {}, _headers: IDataObject = {},
_option: IDataObject = {}, _option: IDataObject = {},
_region?: string, _region?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -42,7 +42,6 @@ export async function awsApiRequest(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('aws'); const credentials = await this.getCredentials('aws');
@@ -83,7 +82,6 @@ export async function awsApiRequestREST(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call(this, service, method, path, body, headers); const response = await awsApiRequest.call(this, service, method, path, body, headers);
try { try {
@@ -100,7 +98,6 @@ export async function awsApiRequestSOAP(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call(this, service, method, path, body, headers); const response = await awsApiRequest.call(this, service, method, path, body, headers);
try { try {
@@ -145,7 +142,6 @@ export async function validateCredentials(
this: ICredentialTestFunctions, this: ICredentialTestFunctions,
decryptedCredentials: ICredentialDataDecryptedObject, decryptedCredentials: ICredentialDataDecryptedObject,
service: string, service: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = decryptedCredentials; const credentials = decryptedCredentials;

View File

@@ -37,7 +37,6 @@ export async function awsApiRequest(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('aws'); const credentials = await this.getCredentials('aws');
@@ -77,7 +76,6 @@ export async function awsApiRequestREST(
path: string, path: string,
body?: string, body?: string,
headers?: object, headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const response = await awsApiRequest.call(this, service, method, path, body, headers); const response = await awsApiRequest.call(this, service, method, path, body, headers);
try { try {
@@ -98,7 +96,6 @@ export async function awsApiRequestRESTAllItems(
_headers: IDataObject = {}, _headers: IDataObject = {},
_option: IDataObject = {}, _option: IDataObject = {},
_region?: string, _region?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -28,7 +28,6 @@ export async function bambooHrApiCredentialTest(
async function validateCredentials( async function validateCredentials(
this: ICredentialTestFunctions, this: ICredentialTestFunctions,
decryptedCredentials: ICredentialDataDecryptedObject, decryptedCredentials: ICredentialDataDecryptedObject,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = decryptedCredentials; const credentials = decryptedCredentials;

View File

@@ -10,12 +10,11 @@ export async function bannerbearApiRequest(
this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
uri?: string, uri?: string,
headers: IDataObject = {}, headers: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('bannerbearApi'); const credentials = await this.getCredentials('bannerbearApi');

View File

@@ -10,10 +10,9 @@ export async function beeminderApiRequest(
this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const options: OptionsWithUri = { const options: OptionsWithUri = {
method, method,
@@ -38,10 +37,9 @@ export async function beeminderApiRequestAllItems(
this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions, this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -11,12 +11,11 @@ export async function bitbucketApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('bitbucketApi'); const credentials = await this.getCredentials('bitbucketApi');
let options: OptionsWithUri = { let options: OptionsWithUri = {
@@ -51,10 +50,9 @@ export async function bitbucketApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -13,12 +13,11 @@ export async function bitlyApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const authenticationMethod = this.getNodeParameter('authentication', 0) as string; const authenticationMethod = this.getNodeParameter('authentication', 0) as string;
let options: OptionsWithUri = { let options: OptionsWithUri = {
@@ -59,10 +58,9 @@ export async function bitlyApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -19,7 +19,6 @@ export async function bitwardenApiRequest(
qs: IDataObject, qs: IDataObject,
body: IDataObject, body: IDataObject,
token: string, token: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const baseUrl = await getBaseUrl.call(this); const baseUrl = await getBaseUrl.call(this);
const options: OptionsWithUri = { const options: OptionsWithUri = {
@@ -55,7 +54,6 @@ export async function bitwardenApiRequest(
*/ */
export async function getAccessToken( export async function getAccessToken(
this: IExecuteFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | ILoadOptionsFunctions,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('bitwardenApi'); const credentials = await this.getCredentials('bitwardenApi');

View File

@@ -226,7 +226,7 @@ export class Box implements INodeType {
const role = this.getNodeParameter('role', i) as string; const role = this.getNodeParameter('role', i) as string;
const accessibleBy = this.getNodeParameter('accessibleBy', i) as string; const accessibleBy = this.getNodeParameter('accessibleBy', i) as string;
const options = this.getNodeParameter('options', i); const options = this.getNodeParameter('options', i);
// tslint:disable-next-line: no-any
const body: { accessible_by: IDataObject; [key: string]: any } = { const body: { accessible_by: IDataObject; [key: string]: any } = {
accessible_by: {}, accessible_by: {},
item: { item: {
@@ -460,7 +460,7 @@ export class Box implements INodeType {
const role = this.getNodeParameter('role', i) as string; const role = this.getNodeParameter('role', i) as string;
const accessibleBy = this.getNodeParameter('accessibleBy', i) as string; const accessibleBy = this.getNodeParameter('accessibleBy', i) as string;
const options = this.getNodeParameter('options', i); const options = this.getNodeParameter('options', i);
// tslint:disable-next-line: no-any
const body: { accessible_by: IDataObject; [key: string]: any } = { const body: { accessible_by: IDataObject; [key: string]: any } = {
accessible_by: {}, accessible_by: {},
item: { item: {

View File

@@ -13,12 +13,11 @@ export async function boxApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IHookFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IHookFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
let options: OptionsWithUri = { let options: OptionsWithUri = {
headers: { headers: {
@@ -53,10 +52,9 @@ export async function boxApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -13,12 +13,11 @@ export async function brandfetchApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
try { try {
const credentials = await this.getCredentials('brandfetchApi'); const credentials = await this.getCredentials('brandfetchApi');

View File

@@ -77,7 +77,6 @@ export async function bubbleApiRequestAllItems(
return returnData; return returnData;
} }
// tslint:disable-next-line:no-any
export function validateJSON(json: string | undefined): any { export function validateJSON(json: string | undefined): any {
let result; let result;
try { try {

View File

@@ -14,11 +14,10 @@ export async function calApiRequest(
this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions,
method: IHttpRequestMethods, method: IHttpRequestMethods,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('calApi'); const credentials = await this.getCredentials('calApi');

View File

@@ -14,12 +14,11 @@ export async function calendlyApiRequest(
this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const { apiKey } = (await this.getCredentials('calendlyApi')) as { apiKey: string }; const { apiKey } = (await this.getCredentials('calendlyApi')) as { apiKey: string };
@@ -64,7 +63,6 @@ export function getAuthenticationType(data: string): 'accessToken' | 'apiKey' {
export async function validateCredentials( export async function validateCredentials(
this: ICredentialTestFunctions, this: ICredentialTestFunctions,
decryptedCredentials: ICredentialDataDecryptedObject, decryptedCredentials: ICredentialDataDecryptedObject,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = decryptedCredentials; const credentials = decryptedCredentials;

View File

@@ -13,12 +13,11 @@ export async function circleciApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('circleCiApi'); const credentials = await this.getCredentials('circleCiApi');
let options: OptionsWithUri = { let options: OptionsWithUri = {
@@ -52,10 +51,9 @@ export async function circleciApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -18,12 +18,11 @@ export async function webexApiRequest(
this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions | IWebhookFunctions, this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions | IWebhookFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
let options: OptionsWithUri = { let options: OptionsWithUri = {
method, method,
@@ -56,11 +55,10 @@ export async function webexApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
options: IDataObject = {}, options: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];
@@ -140,7 +138,6 @@ export function getAttachemnts(attachements: IDataObject[]) {
const actions: IDataObject[] = []; const actions: IDataObject[] = [];
for (const element of ((attachment?.elementsUi as IDataObject) for (const element of ((attachment?.elementsUi as IDataObject)
.elementValues as IDataObject[]) || []) { .elementValues as IDataObject[]) || []) {
// tslint:disable-next-line: no-any
const { type, ...rest } = element as { type: string; [key: string]: any }; const { type, ...rest } = element as { type: string; [key: string]: any };
if (type.startsWith('input')) { if (type.startsWith('input')) {
body.push({ body.push({
@@ -153,7 +150,6 @@ export function getAttachemnts(attachements: IDataObject[]) {
} }
for (const action of ((attachment?.actionsUi as IDataObject).actionValues as IDataObject[]) || for (const action of ((attachment?.actionsUi as IDataObject).actionValues as IDataObject[]) ||
[]) { []) {
// tslint:disable-next-line: no-any
const { type, ...rest } = action as { type: string; [key: string]: any }; const { type, ...rest } = action as { type: string; [key: string]: any };
actions.push({ type: `Action.${upperFirst(type)}`, ...removeEmptyProperties(rest) }); actions.push({ type: `Action.${upperFirst(type)}`, ...removeEmptyProperties(rest) });
} }
@@ -628,7 +624,6 @@ export function getInputTextProperties(): INodeProperties[] {
]; ];
} }
// tslint:disable-next-line: no-any
function removeEmptyProperties(rest: { [key: string]: any }) { function removeEmptyProperties(rest: { [key: string]: any }) {
return Object.keys(rest) return Object.keys(rest)
.filter((k) => rest[k] !== '') .filter((k) => rest[k] !== '')

View File

@@ -18,7 +18,6 @@ export async function citrixADCApiRequest(
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const { url } = (await this.getCredentials('citrixAdcApi')) as { url: string }; const { url } = (await this.getCredentials('citrixAdcApi')) as { url: string };

View File

@@ -14,12 +14,11 @@ export async function clearbitApiRequest(
method: string, method: string,
api: string, api: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('clearbitApi'); const credentials = await this.getCredentials('clearbitApi');
let options: OptionsWithUri = { let options: OptionsWithUri = {

View File

@@ -19,12 +19,11 @@ export async function clickupApiRequest(
| IWebhookFunctions, | IWebhookFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
_option: IDataObject = {}, _option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const options: OptionsWithUri = { const options: OptionsWithUri = {
headers: { headers: {
@@ -65,10 +64,9 @@ export async function clickupApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];
@@ -86,7 +84,6 @@ export async function clickupApiRequestAllItems(
return returnData; return returnData;
} }
// tslint:disable-next-line:no-any
export function validateJSON(json: string | undefined): any { export function validateJSON(json: string | undefined): any {
let result; let result;
try { try {

View File

@@ -25,7 +25,7 @@ export interface IMembershipDto {
export interface ITagDto { export interface ITagDto {
id: string; id: string;
name: any; // tslint:disable-line:no-any name: any;
workspaceId: string; workspaceId: string;
archived: boolean; archived: boolean;
} }
@@ -34,7 +34,7 @@ export interface ITaskDto {
assigneeIds: object; assigneeIds: object;
estimate: string; estimate: string;
id: string; id: string;
name: any; // tslint:disable-line:no-any name: any;
workspaceId: string; workspaceId: string;
projectId: string; projectId: string;
'is-active': boolean; 'is-active': boolean;

View File

@@ -8,12 +8,11 @@ export async function clockifyApiRequest(
this: ILoadOptionsFunctions | IPollFunctions | IExecuteFunctions, this: ILoadOptionsFunctions | IPollFunctions | IExecuteFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
_option: IDataObject = {}, _option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const BASE_URL = 'https://api.clockify.me/api/v1'; const BASE_URL = 'https://api.clockify.me/api/v1';
@@ -35,10 +34,9 @@ export async function clockifyApiRequestAllItems(
this: IExecuteFunctions | IPollFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IPollFunctions | ILoadOptionsFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -17,7 +17,6 @@ export async function cloudflareApiRequest(
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
headers: IDataObject = {}, headers: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const options: OptionsWithUri = { const options: OptionsWithUri = {
method, method,
@@ -47,7 +46,6 @@ export async function cloudflareApiRequestAllItems(
endpoint: string, endpoint: string,
body: IDataObject = {}, body: IDataObject = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -8,7 +8,6 @@ export async function createCollectionEntry(
resourceName: string, resourceName: string,
data: IDataObject, data: IDataObject,
id?: string, id?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const body: ICollection = { const body: ICollection = {
data, data,
@@ -28,7 +27,6 @@ export async function getAllCollectionEntries(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
resourceName: string, resourceName: string,
options: IDataObject, options: IDataObject,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const body: ICollection = {}; const body: ICollection = {};

View File

@@ -6,11 +6,10 @@ export async function cockpitApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('cockpitApi'); const credentials = await this.getCredentials('cockpitApi');
let options: OptionsWithUri = { let options: OptionsWithUri = {

View File

@@ -4,7 +4,6 @@ import { cockpitApiRequest } from './GenericFunctions';
export async function getSingleton( export async function getSingleton(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
resourceName: string, resourceName: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
return cockpitApiRequest.call(this, 'get', `/singletons/get/${resourceName}`); return cockpitApiRequest.call(this, 'get', `/singletons/get/${resourceName}`);
} }

View File

@@ -6,12 +6,11 @@ export async function codaApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('codaApi'); const credentials = await this.getCredentials('codaApi');
@@ -44,10 +43,9 @@ export async function codaApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -254,7 +254,7 @@ export class Sandbox extends NodeVM {
export function getSandboxContext(this: IExecuteFunctions, index?: number) { export function getSandboxContext(this: IExecuteFunctions, index?: number) {
const sandboxContext: Record<string, unknown> & { const sandboxContext: Record<string, unknown> & {
$item: (i: number) => IWorkflowDataProxyData; $item: (i: number) => IWorkflowDataProxyData;
$input: any; // tslint:disable-line: no-any $input: any;
} = { } = {
// from NodeExecuteFunctions // from NodeExecuteFunctions
$getNodeParameter: this.getNodeParameter, $getNodeParameter: this.getNodeParameter,

View File

@@ -8,12 +8,11 @@ export async function coinGeckoApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
let options: OptionsWithUri = { let options: OptionsWithUri = {
headers: { headers: {
@@ -46,10 +45,9 @@ export async function coinGeckoRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -194,7 +194,7 @@ export class Contentful implements INodeType {
if (!rawData) { if (!rawData) {
const assets: IDataObject[] = []; const assets: IDataObject[] = [];
// tslint:disable-next-line: no-any
responseData.map((asset: any) => { responseData.map((asset: any) => {
assets.push(asset.fields); assets.push(asset.fields);
}); });
@@ -214,7 +214,7 @@ export class Contentful implements INodeType {
if (!rawData) { if (!rawData) {
const assets: IDataObject[] = []; const assets: IDataObject[] = [];
// tslint:disable-next-line: no-any
responseData.map((asset: any) => { responseData.map((asset: any) => {
assets.push(asset.fields); assets.push(asset.fields);
}); });
@@ -293,7 +293,7 @@ export class Contentful implements INodeType {
if (!rawData) { if (!rawData) {
const assets: IDataObject[] = []; const assets: IDataObject[] = [];
// tslint:disable-next-line: no-any
responseData.map((asset: any) => { responseData.map((asset: any) => {
assets.push(asset.fields); assets.push(asset.fields);
}); });
@@ -313,7 +313,7 @@ export class Contentful implements INodeType {
if (!rawData) { if (!rawData) {
const assets: IDataObject[] = []; const assets: IDataObject[] = [];
// tslint:disable-next-line: no-any
responseData.map((asset: any) => { responseData.map((asset: any) => {
assets.push(asset.fields); assets.push(asset.fields);
}); });

View File

@@ -8,12 +8,11 @@ export async function contentfulApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
_option: IDataObject = {}, _option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('contentfulApi'); const credentials = await this.getCredentials('contentfulApi');
const source = this.getNodeParameter('source', 0) as string; const source = this.getNodeParameter('source', 0) as string;
@@ -45,10 +44,9 @@ export async function contenfulApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -8,12 +8,11 @@ export async function convertKitApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IHookFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IHookFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('convertKitApi'); const credentials = await this.getCredentials('convertKitApi');

View File

@@ -15,12 +15,11 @@ export async function cortexApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('cortexApi'); const credentials = await this.getCredentials('cortexApi');

View File

@@ -171,7 +171,7 @@ export class CustomerIo implements INodeType {
const additionalFields = this.getNodeParameter('additionalFields', i); const additionalFields = this.getNodeParameter('additionalFields', i);
if (additionalFields.customProperties) { if (additionalFields.customProperties) {
const data: any = {}; // tslint:disable-line:no-any const data: any = {};
//@ts-ignore //@ts-ignore
additionalFields.customProperties.customProperty.map((property) => { additionalFields.customProperties.customProperty.map((property) => {
data[property.key] = property.value; data[property.key] = property.value;
@@ -238,7 +238,7 @@ export class CustomerIo implements INodeType {
} }
} else { } else {
const additionalFields = this.getNodeParameter('additionalFields', i); const additionalFields = this.getNodeParameter('additionalFields', i);
const data: any = {}; // tslint:disable-line:no-any const data: any = {};
if (additionalFields.customAttributes) { if (additionalFields.customAttributes) {
//@ts-ignore //@ts-ignore
@@ -287,7 +287,7 @@ export class CustomerIo implements INodeType {
} }
} else { } else {
const additionalFields = this.getNodeParameter('additionalFields', i); const additionalFields = this.getNodeParameter('additionalFields', i);
const data: any = {}; // tslint:disable-line:no-any const data: any = {};
if (additionalFields.customAttributes) { if (additionalFields.customAttributes) {
//@ts-ignore //@ts-ignore

View File

@@ -46,7 +46,6 @@ export function eventExists(currentEvents: string[], webhookEvents: IDataObject)
return true; return true;
} }
// tslint:disable-next-line:no-any
export function validateJSON(json: string | undefined): any { export function validateJSON(json: string | undefined): any {
let result; let result;
try { try {

View File

@@ -13,12 +13,11 @@ export async function demioApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
try { try {
const credentials = await this.getCredentials('demioApi'); const credentials = await this.getCredentials('demioApi');

View File

@@ -18,12 +18,11 @@ export async function dhlApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
path: string, path: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = (await this.getCredentials('dhlApi')) as { apiKey: string }; const credentials = (await this.getCredentials('dhlApi')) as { apiKey: string };
@@ -52,7 +51,6 @@ export async function dhlApiRequest(
export async function validateCredentials( export async function validateCredentials(
this: ICredentialTestFunctions, this: ICredentialTestFunctions,
decryptedCredentials: ICredentialDataDecryptedObject, decryptedCredentials: ICredentialDataDecryptedObject,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = decryptedCredentials; const credentials = decryptedCredentials;

View File

@@ -1,5 +1,3 @@
// tslint:disable: no-any
export interface DiscordWebhook { export interface DiscordWebhook {
content?: string; content?: string;
username?: string; username?: string;

View File

@@ -8,11 +8,10 @@ export async function discourseApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
path: string, path: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
_option = {}, _option = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = (await this.getCredentials('discourseApi')) as { url: string }; const credentials = (await this.getCredentials('discourseApi')) as { url: string };
@@ -38,10 +37,9 @@ export async function discourseApiRequestAllItems(
this: IExecuteFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | ILoadOptionsFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -14,7 +14,6 @@ export async function disqusApiRequest(
uri?: string, uri?: string,
body: IDataObject = {}, body: IDataObject = {},
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = (await this.getCredentials('disqusApi')) as IDataObject; const credentials = (await this.getCredentials('disqusApi')) as IDataObject;
qs.api_key = credentials.accessToken; qs.api_key = credentials.accessToken;
@@ -60,7 +59,6 @@ export async function disqusApiRequestAllItems(
uri?: string, uri?: string,
body: IDataObject = {}, body: IDataObject = {},
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -8,12 +8,11 @@ export async function driftApiRequest(
this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
let options: OptionsWithUri = { let options: OptionsWithUri = {
headers: {}, headers: {},

View File

@@ -16,7 +16,6 @@ export async function dropboxApiRequest(
query: IDataObject = {}, query: IDataObject = {},
headers: object = {}, headers: object = {},
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const options: OptionsWithUri = { const options: OptionsWithUri = {
headers, headers,
@@ -51,11 +50,10 @@ export async function dropboxpiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
headers: IDataObject = {}, headers: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const resource = this.getNodeParameter('resource', 0) as string; const resource = this.getNodeParameter('resource', 0) as string;

View File

@@ -243,7 +243,7 @@ export class Dropcontact implements INodeType {
const entryData = this.getInputData(); const entryData = this.getInputData();
const resource = this.getNodeParameter('resource', 0); const resource = this.getNodeParameter('resource', 0);
const operation = this.getNodeParameter('operation', 0); const operation = this.getNodeParameter('operation', 0);
// tslint:disable-next-line: no-any
let responseData: any; let responseData: any;
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];
@@ -287,7 +287,7 @@ export class Dropcontact implements INodeType {
if (simplify === false) { if (simplify === false) {
const waitTime = this.getNodeParameter('options.waitTime', 0, 45) as number; const waitTime = this.getNodeParameter('options.waitTime', 0, 45) as number;
// tslint:disable-next-line: no-any
const delay = (ms: any) => new Promise((res) => setTimeout(res, ms * 1000)); const delay = (ms: any) => new Promise((res) => setTimeout(res, ms * 1000));
await delay(waitTime); await delay(waitTime);
responseData = await dropcontactApiRequest.call( responseData = await dropcontactApiRequest.call(

View File

@@ -62,7 +62,6 @@ export async function erpNextApiRequestAllItems(
body: IDataObject, body: IDataObject,
query: IDataObject = {}, query: IDataObject = {},
) { ) {
// tslint:disable-next-line: no-any
const returnData: any[] = []; const returnData: any[] = [];
let responseData; let responseData;

View File

@@ -31,11 +31,10 @@ export async function egoiApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
_headers?: object, _headers?: object,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('egoiApi'); const credentials = await this.getCredentials('egoiApi');
@@ -67,10 +66,9 @@ export async function egoiApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];
@@ -101,7 +99,6 @@ export async function simplify(this: IExecuteFunctions, contacts: IContact[], li
for (const contact of contacts) { for (const contact of contacts) {
const extras = contact.extra.reduce( const extras = contact.extra.reduce(
// tslint:disable-next-line:no-any
(acumulator: IDataObject, currentValue: IDataObject): any => { (acumulator: IDataObject, currentValue: IDataObject): any => {
const key = fieldsKeyValue[currentValue.field_id as string] as string; const key = fieldsKeyValue[currentValue.field_id as string] as string;
return { [key]: currentValue.value, ...acumulator }; return { [key]: currentValue.value, ...acumulator };

View File

@@ -63,7 +63,7 @@ export async function elasticSecurityApiRequestAllItems(
) { ) {
let _page = 1; let _page = 1;
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];
let responseData: any; // tslint:disable-line let responseData: any;
const resource = this.getNodeParameter('resource', 0) as 'case' | 'caseComment'; const resource = this.getNodeParameter('resource', 0) as 'case' | 'caseComment';

View File

@@ -46,7 +46,6 @@ export async function elasticsearchApiRequestAllItems(
indexId: string, indexId: string,
body: IDataObject = {}, body: IDataObject = {},
qs: IDataObject = {}, qs: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
//https://www.elastic.co/guide/en/elasticsearch/reference/7.16/paginate-search-results.html#search-after //https://www.elastic.co/guide/en/elasticsearch/reference/7.16/paginate-search-results.html#search-after
try { try {

View File

@@ -246,7 +246,7 @@ export class EmailReadImapV1 implements INodeType {
let connection: ImapSimple; let connection: ImapSimple;
// Returns the email text // Returns the email text
// tslint:disable-next-line:no-any
const getText = async (parts: any[], message: Message, subtype: string) => { const getText = async (parts: any[], message: Message, subtype: string) => {
if (!message.attributes.struct) { if (!message.attributes.struct) {
return ''; return '';
@@ -272,7 +272,7 @@ export class EmailReadImapV1 implements INodeType {
// Returns the email attachments // Returns the email attachments
const getAttachment = async ( const getAttachment = async (
connection: ImapSimple, connection: ImapSimple,
// tslint:disable-next-line:no-any
parts: any[], parts: any[],
message: Message, message: Message,
): Promise<IBinaryData[]> => { ): Promise<IBinaryData[]> => {

View File

@@ -253,7 +253,7 @@ export class EmailReadImapV2 implements INodeType {
let isCurrentlyReconnecting = false; let isCurrentlyReconnecting = false;
// Returns the email text // Returns the email text
// tslint:disable-next-line:no-any
const getText = async (parts: any[], message: Message, subtype: string) => { const getText = async (parts: any[], message: Message, subtype: string) => {
if (!message.attributes.struct) { if (!message.attributes.struct) {
return ''; return '';
@@ -279,7 +279,7 @@ export class EmailReadImapV2 implements INodeType {
// Returns the email attachments // Returns the email attachments
const getAttachment = async ( const getAttachment = async (
connection: ImapSimple, connection: ImapSimple,
// tslint:disable-next-line:no-any
parts: any[], parts: any[],
message: Message, message: Message,
): Promise<IBinaryData[]> => { ): Promise<IBinaryData[]> => {

View File

@@ -19,12 +19,11 @@ export async function eventbriteApiRequest(
| IWebhookFunctions, | IWebhookFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
let options: OptionsWithUri = { let options: OptionsWithUri = {
headers: {}, headers: {},
@@ -64,10 +63,9 @@ export async function eventbriteApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -293,7 +293,7 @@ export class FacebookGraphApi implements INodeType {
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> { async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const items = this.getInputData(); const items = this.getInputData();
let response: any; // tslint:disable-line:no-any let response: any;
const returnItems: INodeExecutionData[] = []; const returnItems: INodeExecutionData[] = [];
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) { for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {

View File

@@ -21,12 +21,11 @@ export async function facebookApiRequest(
| IWebhookFunctions, | IWebhookFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
_option: IDataObject = {}, _option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
let credentials; let credentials;
@@ -549,7 +548,6 @@ export function getFields(object: string) {
value: 'account_update', value: 'account_update',
}, },
], ],
// tslint:disable-next-line: no-any
} as { [key: string]: any }; } as { [key: string]: any };
return [{ name: '*', value: '*' }] return [{ name: '*', value: '*' }]

View File

@@ -13,12 +13,11 @@ export async function figmaApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
_qs: IDataObject = {}, _qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('figmaApi'); const credentials = await this.getCredentials('figmaApi');

View File

@@ -31,7 +31,6 @@ interface ScriptObject {
export async function layoutsApiRequest( export async function layoutsApiRequest(
this: ILoadOptionsFunctions | IExecuteFunctions | IExecuteSingleFunctions, this: ILoadOptionsFunctions | IExecuteFunctions | IExecuteSingleFunctions,
): Promise<INodePropertyOptions[]> { ): Promise<INodePropertyOptions[]> {
// tslint:disable-line:no-any
const token = await getToken.call(this); const token = await getToken.call(this);
const credentials = await this.getCredentials('fileMaker'); const credentials = await this.getCredentials('fileMaker');
@@ -77,10 +76,7 @@ function parseLayouts(layouts: LayoutObject[]): INodePropertyOptions[] {
* Make an API request to ActiveCampaign * Make an API request to ActiveCampaign
* *
*/ */
export async function getFields( export async function getFields(this: ILoadOptionsFunctions): Promise<any> {
this: ILoadOptionsFunctions,
// tslint:disable-next-line:no-any
): Promise<any> {
const token = await getToken.call(this); const token = await getToken.call(this);
const credentials = await this.getCredentials('fileMaker'); const credentials = await this.getCredentials('fileMaker');
const layout = this.getCurrentNodeParameter('layout') as string; const layout = this.getCurrentNodeParameter('layout') as string;
@@ -111,10 +107,7 @@ export async function getFields(
* Make an API request to ActiveCampaign * Make an API request to ActiveCampaign
* *
*/ */
export async function getPortals( export async function getPortals(this: ILoadOptionsFunctions): Promise<any> {
this: ILoadOptionsFunctions,
// tslint:disable-next-line:no-any
): Promise<any> {
const token = await getToken.call(this); const token = await getToken.call(this);
const credentials = await this.getCredentials('fileMaker'); const credentials = await this.getCredentials('fileMaker');
const layout = this.getCurrentNodeParameter('layout') as string; const layout = this.getCurrentNodeParameter('layout') as string;
@@ -145,10 +138,7 @@ export async function getPortals(
* Make an API request to ActiveCampaign * Make an API request to ActiveCampaign
* *
*/ */
export async function getScripts( export async function getScripts(this: ILoadOptionsFunctions): Promise<any> {
this: ILoadOptionsFunctions,
// tslint:disable-next-line:no-any
): Promise<any> {
const token = await getToken.call(this); const token = await getToken.call(this);
const credentials = await this.getCredentials('fileMaker'); const credentials = await this.getCredentials('fileMaker');
@@ -193,7 +183,6 @@ function parseScriptsList(scripts: ScriptObject[]): INodePropertyOptions[] {
export async function getToken( export async function getToken(
this: ILoadOptionsFunctions | IExecuteFunctions | IExecuteSingleFunctions, this: ILoadOptionsFunctions | IExecuteFunctions | IExecuteSingleFunctions,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('fileMaker'); const credentials = await this.getCredentials('fileMaker');
@@ -246,7 +235,6 @@ export async function getToken(
export async function logout( export async function logout(
this: ILoadOptionsFunctions | IExecuteFunctions | IExecuteSingleFunctions, this: ILoadOptionsFunctions | IExecuteFunctions | IExecuteSingleFunctions,
token: string, token: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('fileMaker'); const credentials = await this.getCredentials('fileMaker');

View File

@@ -11,12 +11,11 @@ export async function flowApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = await this.getCredentials('flowApi'); const credentials = await this.getCredentials('flowApi');
@@ -49,10 +48,9 @@ export async function FlowApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -139,7 +139,6 @@ export class FormIoTrigger implements INodeType {
if ( if (
action.settings.url === webhookUrl && action.settings.url === webhookUrl &&
action.method.length === method.length && action.method.length === method.length &&
// tslint:disable-next-line:no-any
action.method.every((value: any) => method.includes(value)) action.method.every((value: any) => method.includes(value))
) { ) {
webhookData.webhookId = action._id; webhookData.webhookId = action._id;

View File

@@ -52,7 +52,6 @@ export async function formIoApiRequest(
endpoint: string, endpoint: string,
body = {}, body = {},
qs = {}, qs = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const credentials = (await this.getCredentials('formIoApi')) as unknown as IFormIoCredentials; const credentials = (await this.getCredentials('formIoApi')) as unknown as IFormIoCredentials;

View File

@@ -53,7 +53,6 @@ export async function apiRequest(
endpoint: string, endpoint: string,
body: IDataObject = {}, body: IDataObject = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const authenticationMethod = this.getNodeParameter('authentication', 0); const authenticationMethod = this.getNodeParameter('authentication', 0);
@@ -97,7 +96,6 @@ export async function apiRequestAllItems(
body: IDataObject, body: IDataObject,
dataKey: string, dataKey: string,
query?: IDataObject, query?: IDataObject,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
if (query === undefined) { if (query === undefined) {
query = {}; query = {};

View File

@@ -8,7 +8,7 @@ export async function freshdeskApiRequest(
this: IExecuteFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
uri?: string, uri?: string,
@@ -49,7 +49,7 @@ export async function freshdeskApiRequestAllItems(
this: IExecuteFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | ILoadOptionsFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
) { ) {
@@ -73,7 +73,6 @@ export async function freshdeskApiRequestAllItems(
return returnData; return returnData;
} }
// tslint:disable-next-line:no-any
export function validateJSON(json: string | undefined): any { export function validateJSON(json: string | undefined): any {
let result; let result;
try { try {

View File

@@ -232,7 +232,7 @@ export class Freshservice implements INodeType {
)) as { )) as {
asset_type_fields: [{ fields: LoadedResource[] }]; asset_type_fields: [{ fields: LoadedResource[] }];
}; };
// tslint:disable-next-line: no-any
let fields: any[] = []; let fields: any[] = [];
fields = fields fields = fields
.concat(...asset_type_fields.map((data) => data.fields)) .concat(...asset_type_fields.map((data) => data.fields))

View File

@@ -83,7 +83,7 @@ export async function freshworksCrmApiRequestAllItems(
qs: IDataObject = {}, qs: IDataObject = {},
) { ) {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];
let response: any; // tslint:disable-line: no-any let response: any;
qs.page = 1; qs.page = 1;

View File

@@ -755,7 +755,6 @@ async function callRecursiveList(
let index = 0; let index = 0;
do { do {
// tslint:disable-next-line: array-type
const returnData: sftpClient.FileInfo[] | (string | ftpClient.ListingElement)[] = const returnData: sftpClient.FileInfo[] | (string | ftpClient.ListingElement)[] =
await client.list(pathArray[index]); await client.list(pathArray[index]);

View File

@@ -13,12 +13,11 @@ export async function getresponseApiRequest(
this: IWebhookFunctions | IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, this: IWebhookFunctions | IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const authentication = this.getNodeParameter('authentication', 0, 'apiKey') as string; const authentication = this.getNodeParameter('authentication', 0, 'apiKey') as string;
@@ -53,10 +52,9 @@ export async function getResponseApiRequestAllItems(
this: IExecuteFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | ILoadOptionsFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -13,11 +13,10 @@ export async function ghostApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
uri?: string, uri?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const source = this.getNodeParameter('source', 0) as string; const source = this.getNodeParameter('source', 0) as string;
@@ -52,10 +51,9 @@ export async function ghostApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];
@@ -72,7 +70,6 @@ export async function ghostApiRequestAllItems(
return returnData; return returnData;
} }
// tslint:disable-next-line:no-any
export function validateJSON(json: string | undefined): any { export function validateJSON(json: string | undefined): any {
let result; let result;
try { try {

View File

@@ -15,7 +15,6 @@ export async function githubApiRequest(
body: object, body: object,
query?: object, query?: object,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const options: OptionsWithUri = { const options: OptionsWithUri = {
method, method,
@@ -71,7 +70,6 @@ export async function getFileSha(
repository: string, repository: string,
filePath: string, filePath: string,
branch?: string, branch?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const getBody: IDataObject = {}; const getBody: IDataObject = {};
if (branch !== undefined) { if (branch !== undefined) {
@@ -90,10 +88,9 @@ export async function githubApiRequestAllItems(
this: IHookFunctions | IExecuteFunctions, this: IHookFunctions | IExecuteFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -14,7 +14,6 @@ export async function gitlabApiRequest(
body: object, body: object,
query?: object, query?: object,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const options: OptionsWithUri = { const options: OptionsWithUri = {
method, method,
@@ -55,10 +54,9 @@ export async function gitlabApiRequestAllItems(
this: IHookFunctions | IExecuteFunctions, this: IHookFunctions | IExecuteFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -276,7 +276,6 @@ export async function loadRegistranMultiChoiceQuestions(this: ILoadOptionsFuncti
return returnData; return returnData;
} }
// tslint:disable-next-line: no-any
function convertLosslessNumber(key: any, value: any) { function convertLosslessNumber(key: any, value: any) {
if (value && value.isLosslessNumber) { if (value && value.isLosslessNumber) {
return value.toString(); return value.toString();

View File

@@ -8,12 +8,11 @@ export async function googleApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
let options: OptionsWithUri = { let options: OptionsWithUri = {
headers: { headers: {
@@ -47,11 +46,10 @@ export async function googleApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
uri?: string, uri?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];
@@ -75,7 +73,6 @@ export async function googleApiRequestAllItems(
return returnData; return returnData;
} }
// tslint:disable-next-line:no-any
export function simplify(responseData: any | [any]) { export function simplify(responseData: any | [any]) {
const response = []; const response = [];
for (const { for (const {
@@ -102,7 +99,6 @@ export function simplify(responseData: any | [any]) {
return response; return response;
} }
// tslint:disable-next-line:no-any
export function merge(responseData: [any]) { export function merge(responseData: [any]) {
const response: { columnHeader: IDataObject; data: { rows: [] } } = { const response: { columnHeader: IDataObject; data: { rows: [] } } = {
columnHeader: responseData[0].columnHeader, columnHeader: responseData[0].columnHeader,

View File

@@ -12,12 +12,11 @@ export async function googleApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
headers: IDataObject = {}, headers: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const authenticationMethod = this.getNodeParameter( const authenticationMethod = this.getNodeParameter(
'authentication', 'authentication',
@@ -72,10 +71,9 @@ export async function googleApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -19,12 +19,11 @@ export async function googleApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
headers: IDataObject = {}, headers: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const authenticationMethod = this.getNodeParameter( const authenticationMethod = this.getNodeParameter(
'authentication', 'authentication',
@@ -81,10 +80,9 @@ export async function googleApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -16,12 +16,11 @@ export async function googleApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IPollFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IPollFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
headers: IDataObject = {}, headers: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const options: OptionsWithUri = { const options: OptionsWithUri = {
headers: { headers: {
@@ -52,10 +51,9 @@ export async function googleApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -25,13 +25,12 @@ export async function googleApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
noCredentials = false, noCredentials = false,
encoding?: null | undefined, encoding?: null | undefined,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const options: OptionsWithUri = { const options: OptionsWithUri = {
headers: { headers: {
@@ -87,10 +86,9 @@ export async function googleApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];
@@ -160,7 +158,6 @@ export function getAccessToken(
return this.helpers.request(options); return this.helpers.request(options);
} }
// tslint:disable-next-line:no-any
export function validateJSON(json: string | undefined): any { export function validateJSON(json: string | undefined): any {
let result; let result;
try { try {

View File

@@ -8,12 +8,11 @@ export async function googleApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
let options: OptionsWithUri = { let options: OptionsWithUri = {
headers: { headers: {

View File

@@ -8,12 +8,11 @@ export async function googleApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
headers: IDataObject = {}, headers: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const options: OptionsWithUri = { const options: OptionsWithUri = {
headers: { headers: {
@@ -45,10 +44,9 @@ export async function googleApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];
@@ -91,7 +89,6 @@ export const allFields = [
'userDefined', 'userDefined',
]; ];
// tslint:disable-next-line:no-any
export function cleanData(responseData: any) { export function cleanData(responseData: any) {
const fields = ['emailAddresses', 'phoneNumbers', 'relations', 'events', 'addresses']; const fields = ['emailAddresses', 'phoneNumbers', 'relations', 'events', 'addresses'];
const newResponseData = []; const newResponseData = [];
@@ -99,7 +96,7 @@ export function cleanData(responseData: any) {
responseData = [responseData]; responseData = [responseData];
} }
for (let y = 0; y < responseData.length; y++) { for (let y = 0; y < responseData.length; y++) {
const object: { [key: string]: any } = {}; // tslint:disable-line:no-any const object: { [key: string]: any } = {};
for (const key of Object.keys(responseData[y])) { for (const key of Object.keys(responseData[y])) {
if (key === 'metadata') { if (key === 'metadata') {
continue; continue;
@@ -129,7 +126,7 @@ export function cleanData(responseData: any) {
} }
} }
if (fields.includes(key)) { if (fields.includes(key)) {
const value: { [key: string]: any } = {}; // tslint:disable-line:no-any const value: { [key: string]: any } = {};
for (const data of responseData[y][key]) { for (const data of responseData[y][key]) {
let result; let result;
if (value[data.type] === undefined) { if (value[data.type] === undefined) {

View File

@@ -71,7 +71,6 @@ export async function googleApiRequestAllItems(
body: IDataObject = {}, body: IDataObject = {},
qs?: IDataObject, qs?: IDataObject,
uri?: string, uri?: string,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -19,12 +19,11 @@ export async function googleApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IPollFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IPollFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
option: IDataObject = {}, option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const authenticationMethod = this.getNodeParameter( const authenticationMethod = this.getNodeParameter(
'authentication', 'authentication',
@@ -78,10 +77,9 @@ export async function googleApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -10,11 +10,10 @@ export async function googleApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri: string | null = null, uri: string | null = null,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const options: OptionsWithUri = { const options: OptionsWithUri = {
headers: { headers: {
@@ -50,11 +49,10 @@ export async function googleApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
uri: string | null = null, uri: string | null = null,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -9,12 +9,11 @@ export async function googleApiRequest(
projectId: string, projectId: string,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
headers: IDataObject = {}, headers: IDataObject = {},
uri: string | null = null, uri: string | null = null,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const { region } = (await this.getCredentials( const { region } = (await this.getCredentials(
'googleFirebaseRealtimeDatabaseOAuth2Api', 'googleFirebaseRealtimeDatabaseOAuth2Api',
@@ -54,12 +53,11 @@ export async function googleApiRequestAllItems(
projectId: string, projectId: string,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
_headers: IDataObject = {}, _headers: IDataObject = {},
uri: string | null = null, uri: string | null = null,
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

View File

@@ -8,12 +8,11 @@ export async function googleApiRequest(
this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
method: string, method: string,
resource: string, resource: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
qs: IDataObject = {}, qs: IDataObject = {},
uri?: string, uri?: string,
headers: IDataObject = {}, headers: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const options: OptionsWithUri = { const options: OptionsWithUri = {
headers: { headers: {
@@ -44,10 +43,9 @@ export async function googleApiRequestAllItems(
propertyName: string, propertyName: string,
method: string, method: string,
endpoint: string, endpoint: string,
// tslint:disable-next-line:no-any
body: any = {}, body: any = {},
query: IDataObject = {}, query: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> { ): Promise<any> {
const returnData: IDataObject[] = []; const returnData: IDataObject[] = [];

Some files were not shown because too many files have changed in this diff Show More