Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format additional files in nodes A-F #3811

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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