👕 Fix lint issue

This commit is contained in:
Jan Oberhauser
2020-10-22 15:46:03 +02:00
parent 5b7efd67ca
commit 40c2acd77b
491 changed files with 4045 additions and 3936 deletions

View File

@@ -51,7 +51,7 @@ export const collectionFields = [
},
},
required: true,
description: 'Name of the collection to operate on.'
description: 'Name of the collection to operate on.',
},
// Collection:entry:getAll
@@ -109,7 +109,7 @@ export const collectionFields = [
],
operation: [
'getAll',
]
],
},
},
options: [
@@ -189,7 +189,7 @@ export const collectionFields = [
],
operation: [
'update',
]
],
},
},
description: 'The entry ID.',
@@ -210,7 +210,7 @@ export const collectionFields = [
operation: [
'create',
'update',
]
],
},
},
description: 'If new entry fields should be set via the value-key pair UI or JSON.',
@@ -234,7 +234,7 @@ export const collectionFields = [
operation: [
'create',
'update',
]
],
},
},
description: 'Entry data to send as JSON.',
@@ -258,7 +258,7 @@ export const collectionFields = [
operation: [
'create',
'update',
]
],
},
},
options: [

View File

@@ -15,7 +15,7 @@ export async function createCollectionEntry(this: IExecuteFunctions | IExecuteSi
if (id) {
body.data = {
_id: id,
...body.data
...body.data,
};
}

View File

@@ -22,7 +22,7 @@ export const formOperations = [
],
default: 'submit',
description: 'The operation to perform.',
}
},
] as INodeProperties[];
export const formFields = [
@@ -39,7 +39,7 @@ export const formFields = [
},
default: '',
required: true,
description: 'Name of the form to operate on.'
description: 'Name of the form to operate on.',
},
// Form:submit
@@ -55,7 +55,7 @@ export const formFields = [
],
operation: [
'submit',
]
],
},
},
description: 'If form fields should be set via the value-key pair UI or JSON.',
@@ -78,7 +78,7 @@ export const formFields = [
],
operation: [
'submit',
]
],
},
},
description: 'Form data to send as JSON.',
@@ -101,7 +101,7 @@ export const formFields = [
],
operation: [
'submit',
]
],
},
},
options: [

View File

@@ -9,7 +9,7 @@ import { cockpitApiRequest } from './GenericFunctions';
export async function submitForm(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, resourceName: string, form: IDataObject) {
const body: IForm = {
form
form,
};
return cockpitApiRequest.call(this, 'post', `/forms/submit/${resourceName}`, body);

View File

@@ -20,11 +20,11 @@ export async function cockpitApiRequest(this: IExecuteFunctions | IExecuteSingle
},
method,
qs: {
token: credentials!.accessToken
token: credentials!.accessToken,
},
body,
uri: uri || `${credentials!.url}/api${resource}`,
json: true
json: true,
};
options = Object.assign({}, options, option);

View File

@@ -21,7 +21,7 @@ export const singletonOperations = [
],
default: 'get',
description: 'The operation to perform.',
}
},
] as INodeProperties[];
export const singletonFields = [
@@ -41,6 +41,6 @@ export const singletonFields = [
},
},
required: true,
description: 'Name of the singleton to operate on.'
description: 'Name of the singleton to operate on.',
},
] as INodeProperties[];