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:
Michael Kret
2022-08-01 23:47:55 +03:00
committed by GitHub
parent 2c17e6f3ca
commit 0ecbb4a19d
411 changed files with 12906 additions and 20148 deletions

View File

@@ -1,6 +1,4 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';
export const bucketOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const bucketOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'bucket',
],
resource: ['bucket'],
},
},
options: [
@@ -46,10 +42,9 @@ export const bucketOperations: INodeProperties[] = [
];
export const bucketFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* bucket:create */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* bucket:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Name',
name: 'name',
@@ -58,12 +53,8 @@ export const bucketFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'bucket',
],
operation: [
'create',
],
resource: ['bucket'],
operation: ['create'],
},
},
description: 'A succinct description of the nature, symptoms, cause, or effect of the bucket',
@@ -75,12 +66,8 @@ export const bucketFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
resource: [
'bucket',
],
operation: [
'create',
],
resource: ['bucket'],
operation: ['create'],
},
},
default: {},
@@ -122,7 +109,8 @@ export const bucketFields: INodeProperties[] = [
name: 'grantFullControl',
type: 'boolean',
default: false,
description: 'Whether to allow grantee the read, write, read ACP, and write ACP permissions on the bucket',
description:
'Whether to allow grantee the read, write, read ACP, and write ACP permissions on the bucket',
},
{
displayName: 'Grant Read',
@@ -143,7 +131,8 @@ export const bucketFields: INodeProperties[] = [
name: 'grantWrite',
type: 'boolean',
default: false,
description: 'Whether to allow grantee to create, overwrite, and delete any object in the bucket',
description:
'Whether to allow grantee to create, overwrite, and delete any object in the bucket',
},
{
displayName: 'Grant Write ACP',
@@ -157,14 +146,15 @@ export const bucketFields: INodeProperties[] = [
name: 'region',
type: 'string',
default: '',
description: 'Region you want to create the bucket in, by default the buckets are created on the region defined on the credentials',
description:
'Region you want to create the bucket in, by default the buckets are created on the region defined on the credentials',
},
],
},
/* -------------------------------------------------------------------------- */
/* bucket:delete */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* bucket:delete */
/* -------------------------------------------------------------------------- */
{
displayName: 'Name',
name: 'name',
@@ -173,32 +163,24 @@ export const bucketFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'bucket',
],
operation: [
'delete',
],
resource: ['bucket'],
operation: ['delete'],
},
},
description: 'Name of the AWS S3 bucket to delete',
},
/* -------------------------------------------------------------------------- */
/* bucket:getAll */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* bucket:getAll */
/* -------------------------------------------------------------------------- */
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'bucket',
],
operation: ['getAll'],
resource: ['bucket'],
},
},
default: false,
@@ -210,15 +192,9 @@ export const bucketFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'bucket',
],
returnAll: [
false,
],
operation: ['getAll'],
resource: ['bucket'],
returnAll: [false],
},
},
typeOptions: {
@@ -228,9 +204,9 @@ export const bucketFields: INodeProperties[] = [
default: 100,
description: 'Max number of results to return',
},
/* -------------------------------------------------------------------------- */
/* bucket:search */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* bucket:search */
/* -------------------------------------------------------------------------- */
{
displayName: 'Bucket Name',
name: 'bucketName',
@@ -239,12 +215,8 @@ export const bucketFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'bucket',
],
operation: [
'search',
],
resource: ['bucket'],
operation: ['search'],
},
},
},
@@ -254,12 +226,8 @@ export const bucketFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
operation: [
'search',
],
resource: [
'bucket',
],
operation: ['search'],
resource: ['bucket'],
},
},
default: false,
@@ -271,15 +239,9 @@ export const bucketFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
operation: [
'search',
],
resource: [
'bucket',
],
returnAll: [
false,
],
operation: ['search'],
resource: ['bucket'],
returnAll: [false],
},
},
typeOptions: {
@@ -296,12 +258,8 @@ export const bucketFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
resource: [
'bucket',
],
operation: [
'search',
],
resource: ['bucket'],
operation: ['search'],
},
},
default: {},
@@ -332,7 +290,8 @@ export const bucketFields: INodeProperties[] = [
type: 'boolean',
default: false,
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
description: 'The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true',
description:
'The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true',
},
{
displayName: 'Prefix',
@@ -346,14 +305,16 @@ export const bucketFields: INodeProperties[] = [
name: 'requesterPays',
type: 'boolean',
default: false,
description: 'Whether the requester will pay for requests and data transfer. While Requester Pays is enabled, anonymous access to this bucket is disabled.',
description:
'Whether the requester will pay for requests and data transfer. While Requester Pays is enabled, anonymous access to this bucket is disabled.',
},
{
displayName: 'Start After',
name: 'startAfter',
type: 'string',
default: '',
description: 'StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key.',
description:
'StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key.',
},
],
},