From 89ec97dc8b8ce55ee1b1f7c9d056ac5e53d9d29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Fern=C3=A1ndez=20Fern=C3=A1ndez?= Date: Mon, 10 Jul 2023 18:38:03 +0200 Subject: [PATCH] style: format code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raúl Fernández Fernández --- credentials/SplitwiseApi.credentials.ts | 18 +++++++++--------- credentials/SplitwiseOAuth2Api.credentials.ts | 5 +---- nodes/Splitwise/ExpenseDescription.ts | 11 +++++++---- nodes/Splitwise/GenericFunctions.ts | 14 ++++++++++---- nodes/Splitwise/Splitwise.node.ts | 15 +++++++++++---- 5 files changed, 38 insertions(+), 25 deletions(-) diff --git a/credentials/SplitwiseApi.credentials.ts b/credentials/SplitwiseApi.credentials.ts index 8df140d..dae4fdc 100644 --- a/credentials/SplitwiseApi.credentials.ts +++ b/credentials/SplitwiseApi.credentials.ts @@ -1,6 +1,6 @@ import { IAuthenticateGeneric, - ICredentialTestRequest, + ICredentialTestRequest, ICredentialType, INodeProperties, } from 'n8n-workflow'; @@ -21,15 +21,15 @@ export class SplitwiseApi implements ICredentialType { authenticate: IAuthenticateGeneric = { type: 'generic', properties: { - headers: { - Authorization: '=Bearer {{$credentials.apiKey}}' + headers: { + Authorization: '=Bearer {{$credentials.apiKey}}', }, }, }; - test: ICredentialTestRequest = { - request: { - baseURL: 'https://secure.splitwise.com/api/v3.0', - url: '/get_current_user', - }, - }; + test: ICredentialTestRequest = { + request: { + baseURL: 'https://secure.splitwise.com/api/v3.0', + url: '/get_current_user', + }, + }; } diff --git a/credentials/SplitwiseOAuth2Api.credentials.ts b/credentials/SplitwiseOAuth2Api.credentials.ts index 32ec721..34f05de 100644 --- a/credentials/SplitwiseOAuth2Api.credentials.ts +++ b/credentials/SplitwiseOAuth2Api.credentials.ts @@ -1,7 +1,4 @@ -import { - ICredentialType, - INodeProperties, -} from 'n8n-workflow'; +import { ICredentialType, INodeProperties } from 'n8n-workflow'; export class SplitwiseOAuth2Api implements ICredentialType { name = 'splitwiseOAuth2Api'; diff --git a/nodes/Splitwise/ExpenseDescription.ts b/nodes/Splitwise/ExpenseDescription.ts index 82ee82c..3a04456 100644 --- a/nodes/Splitwise/ExpenseDescription.ts +++ b/nodes/Splitwise/ExpenseDescription.ts @@ -61,7 +61,8 @@ const createExpenseFields: INodeProperties[] = [ displayName: 'Group Name or ID', name: 'group_id', type: 'options', - description: 'Name or ID of the group to add the expense to. Choose from the list, or specify an ID using an expression.', + description: + 'Name or ID of the group to add the expense to. Choose from the list, or specify an ID using an expression.', default: '', required: true, displayOptions: { @@ -78,7 +79,8 @@ const createExpenseFields: INodeProperties[] = [ displayName: 'Currency Code Name or ID', name: 'currency_code', type: 'options', - description: 'Currency code of the expense (the ID is the Code). Choose from the list, or specify an ID using an expression.', + description: + 'Currency code of the expense (the ID is the Code). Choose from the list, or specify an ID using an expression.', default: '', required: true, displayOptions: { @@ -95,7 +97,8 @@ const createExpenseFields: INodeProperties[] = [ displayName: 'Category Name or ID', name: 'category_id', type: 'options', - description: 'Category of the expense. Choose from the list, or specify an ID using an expression.', + description: + 'Category of the expense. Choose from the list, or specify an ID using an expression.', default: '', required: true, displayOptions: { @@ -179,7 +182,7 @@ const createExpenseFields: INodeProperties[] = [ ], }, ], - } + }, ]; export const expenseFields: INodeProperties[] = [...createExpenseFields]; diff --git a/nodes/Splitwise/GenericFunctions.ts b/nodes/Splitwise/GenericFunctions.ts index fd68e55..7f8e4e9 100644 --- a/nodes/Splitwise/GenericFunctions.ts +++ b/nodes/Splitwise/GenericFunctions.ts @@ -7,7 +7,7 @@ import { INodePropertyOptions, JsonObject, NodeApiError, -} from "n8n-workflow"; +} from 'n8n-workflow'; export async function splitwiseApiRequest( this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, @@ -41,7 +41,9 @@ export async function getCurrencies(this: ILoadOptionsFunctions): Promise { const items = this.getInputData();