mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Format nodes-base package (A-F) (#3800)
* 🔨 prettier formated nodes - A * 🔨 prettier formated nodes - B * ⚡ prettier formated nodes - C * ⚡ prettier formated nodes - D * ⚡ prettier formated nodes - E-F * 🎨 Adjust nodes-base formatting command (#3805) * Format additional files in nodes A-F (#3811) * ⚡ fixes * 🎨 Add Mindee to ignored dirs Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
IExecuteFunctions,
|
||||
} from 'n8n-core';
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
IDataObject,
|
||||
@@ -11,15 +9,9 @@ import {
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
linkFields,
|
||||
linkOperations
|
||||
} from './LinkDescription';
|
||||
import { linkFields, linkOperations } from './LinkDescription';
|
||||
|
||||
import {
|
||||
bitlyApiRequest,
|
||||
bitlyApiRequestAllItems,
|
||||
} from './GenericFunctions';
|
||||
import { bitlyApiRequest, bitlyApiRequestAllItems } from './GenericFunctions';
|
||||
|
||||
export class Bitly implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
@@ -41,9 +33,7 @@ export class Bitly implements INodeType {
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
authentication: [
|
||||
'accessToken',
|
||||
],
|
||||
authentication: ['accessToken'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -52,9 +42,7 @@ export class Bitly implements INodeType {
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
authentication: [
|
||||
'oAuth2',
|
||||
],
|
||||
authentication: ['oAuth2'],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -116,7 +104,12 @@ export class Bitly implements INodeType {
|
||||
async getTags(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
const groupId = this.getCurrentNodeParameter('group') as string;
|
||||
const returnData: INodePropertyOptions[] = [];
|
||||
const tags = await bitlyApiRequestAllItems.call(this, 'tags', 'GET', `groups/${groupId}/tags`);
|
||||
const tags = await bitlyApiRequestAllItems.call(
|
||||
this,
|
||||
'tags',
|
||||
'GET',
|
||||
`groups/${groupId}/tags`,
|
||||
);
|
||||
for (const tag of tags) {
|
||||
const tagName = tag;
|
||||
const tagId = tag;
|
||||
@@ -159,7 +152,8 @@ export class Bitly implements INodeType {
|
||||
if (additionalFields.tags) {
|
||||
body.tags = additionalFields.tags as string[];
|
||||
}
|
||||
const deeplinks = (this.getNodeParameter('deeplink', i) as IDataObject).deeplinkUi as IDataObject[];
|
||||
const deeplinks = (this.getNodeParameter('deeplink', i) as IDataObject)
|
||||
.deeplinkUi as IDataObject[];
|
||||
if (deeplinks) {
|
||||
for (const deeplink of deeplinks) {
|
||||
//@ts-ignore
|
||||
@@ -192,7 +186,8 @@ export class Bitly implements INodeType {
|
||||
if (updateFields.tags) {
|
||||
body.tags = updateFields.tags as string[];
|
||||
}
|
||||
const deeplinks = (this.getNodeParameter('deeplink', i) as IDataObject).deeplinkUi as IDataObject[];
|
||||
const deeplinks = (this.getNodeParameter('deeplink', i) as IDataObject)
|
||||
.deeplinkUi as IDataObject[];
|
||||
if (deeplinks) {
|
||||
for (const deeplink of deeplinks) {
|
||||
//@ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user