Skip to content

Commit

Permalink
Format additional files in nodes A-F (#3811)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov authored Aug 1, 2022
1 parent 9b49340 commit efce537
Show file tree
Hide file tree
Showing 143 changed files with 4,156 additions and 6,522 deletions.
3 changes: 2 additions & 1 deletion packages/nodes-base/credentials/ERPNextApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export class ERPNextApi implements ICredentialType {
};
test: ICredentialTestRequest = {
request: {
baseURL: '={{$credentials.environment === "cloudHosted" ? "https://" + $credentials.subdomain + ".erpnext.com" : $credentials.domain}}',
baseURL:
'={{$credentials.environment === "cloudHosted" ? "https://" + $credentials.subdomain + ".erpnext.com" : $credentials.domain}}',
url: '/api/resource/Doctype',
skipSslCertificateValidation: '={{ $credentials.allowUnauthorizedCerts }}',
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';

import {
makeSimpleField,
} from './SharedFields';
import { makeSimpleField } from './SharedFields';

export const attendanceOperations: INodeProperties[] = [
{
Expand All @@ -14,9 +10,7 @@ export const attendanceOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'attendance',
],
resource: ['attendance'],
},
},
options: [
Expand Down Expand Up @@ -53,12 +47,8 @@ export const attendanceFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'attendance',
],
operation: [
'create',
],
resource: ['attendance'],
operation: ['create'],
},
},
},
Expand All @@ -71,12 +61,8 @@ export const attendanceFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'attendance',
],
operation: [
'create',
],
resource: ['attendance'],
operation: ['create'],
},
},
},
Expand All @@ -94,12 +80,8 @@ export const attendanceFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'attendance',
],
operation: [
'get',
],
resource: ['attendance'],
operation: ['get'],
},
},
},
Expand All @@ -112,12 +94,8 @@ export const attendanceFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'attendance',
],
operation: [
'get',
],
resource: ['attendance'],
operation: ['get'],
},
},
},
Expand All @@ -135,12 +113,8 @@ export const attendanceFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'attendance',
],
operation: [
'getAll',
],
resource: ['attendance'],
operation: ['getAll'],
},
},
},
Expand All @@ -152,12 +126,8 @@ export const attendanceFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
'attendance',
],
operation: [
'getAll',
],
resource: ['attendance'],
operation: ['getAll'],
},
},
},
Expand All @@ -172,15 +142,9 @@ export const attendanceFields: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'attendance',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['attendance'],
operation: ['getAll'],
returnAll: [false],
},
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';

import {
eventAdditionalFieldsOptions,
makeSimpleField,
} from './SharedFields';
import { eventAdditionalFieldsOptions, makeSimpleField } from './SharedFields';

export const eventOperations: INodeProperties[] = [
{
Expand All @@ -15,9 +10,7 @@ export const eventOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'event',
],
resource: ['event'],
},
},
options: [
Expand Down Expand Up @@ -54,12 +47,8 @@ export const eventFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'event',
],
operation: [
'create',
],
resource: ['event'],
operation: ['create'],
},
},
},
Expand All @@ -72,12 +61,8 @@ export const eventFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'event',
],
operation: [
'create',
],
resource: ['event'],
operation: ['create'],
},
},
},
Expand All @@ -90,12 +75,8 @@ export const eventFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'event',
],
operation: [
'create',
],
resource: ['event'],
operation: ['create'],
},
},
options: eventAdditionalFieldsOptions,
Expand All @@ -113,12 +94,8 @@ export const eventFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'event',
],
operation: [
'get',
],
resource: ['event'],
operation: ['get'],
},
},
},
Expand All @@ -135,12 +112,8 @@ export const eventFields: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
'event',
],
operation: [
'getAll',
],
resource: ['event'],
operation: ['getAll'],
},
},
},
Expand All @@ -155,15 +128,9 @@ export const eventFields: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'event',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['event'],
operation: ['getAll'],
returnAll: [false],
},
},
},
Expand Down
Loading

0 comments on commit efce537

Please sign in to comment.