1
0
Fork 0
mirror of https://github.com/n8n-io/n8n.git synced 2025-03-05 20:50:17 -08:00
n8n/packages/nodes-base/nodes/HomeAssistant/LogDescription.ts
Iván Ovejero 0448feec56
refactor: Apply eslint-plugin-n8n-nodes-base autofixable rules ()
*  Initial setup

* 👕 Update `.eslintignore`

* 👕 Autofix node-param-default-missing ()

* 🔥 Remove duplicate key

* 👕 Add exceptions

* 📦 Update package-lock.json

* 👕 Apply `node-class-description-inputs-wrong-trigger-node` ()

* 👕 Apply `node-class-description-inputs-wrong-regular-node` ()

* 👕 Apply `node-class-description-outputs-wrong` ()

* 👕 Apply `node-execute-block-double-assertion-for-items` ()

* 👕 Apply `node-param-default-wrong-for-collection` ()

* 👕 Apply node-param-default-wrong-for-boolean ()

* Autofixed default missing

* Autofixed booleans, worked well

*  Fix params

*  Undo exempted autofixes

* 📦 Update package-lock.json

* 👕 Apply node-class-description-missing-subtitle ()

*  Fix missing comma

* 👕 Apply `node-param-default-wrong-for-fixed-collection` ()

* 👕 Add exception for `node-class-description-missing-subtitle`

* 👕 Apply `node-param-default-wrong-for-multi-options` ()

* 👕 Apply `node-param-collection-type-unsorted-items` ()

* Missing coma

* 👕 Apply `node-param-default-wrong-for-simplify` ()

* 👕 Apply `node-param-description-comma-separated-hyphen` ()

* 👕 Apply `node-param-description-empty-string` ()

* 👕 Apply `node-param-description-excess-inner-whitespace` ()

* Rule looks good

* Add whitespace rule in eslint config

* :zao: fix

* 👕 Apply `node-param-description-identical-to-display-name` ()

* 👕 Apply `node-param-description-missing-for-ignore-ssl-issues` ()

*  Revert ":zao: fix"

This reverts commit ef8a76f3df.

* 👕 Apply `node-param-description-missing-for-simplify`  ()

* 👕 Apply `node-param-description-missing-final-period` ()

* Rule working as intended

* Add rule to eslint

* 👕 Apply node-param-description-missing-for-return-all ()

*  Restore `lintfix` command

Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com>
Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: agobrech <ael.gobrecht@gmail.com>
Co-authored-by: Michael Kret <michael.k@radency.com>
2022-04-22 18:29:51 +02:00

78 lines
1.5 KiB
TypeScript

import {
INodeProperties
} from 'n8n-workflow';
export const logOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'log',
],
},
},
options: [
{
name: 'Get Error Logs',
value: 'getErroLogs',
description: 'Get a log for a specific entity',
},
{
name: 'Get Logbook Entries',
value: 'getLogbookEntries',
description: 'Get all logs',
},
],
default: 'getErroLogs',
description: 'The operation to perform.',
},
];
export const logFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* log:getLogbookEntries */
/* -------------------------------------------------------------------------- */
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: [
'log',
],
operation: [
'getLogbookEntries',
],
},
},
options: [
{
displayName: 'End Time',
name: 'endTime',
type: 'dateTime',
default: '',
description: 'The end of the period.',
},
{
displayName: 'Entity ID',
name: 'entityId',
type: 'string',
default: '',
},
{
displayName: 'Start Time',
name: 'startTime',
type: 'dateTime',
default: '',
description: 'The beginning of the period.',
},
],
},
];