n8n/packages/nodes-base/nodes/SyncroMSP/v1/actions/versionDescription.ts
Iván Ovejero b03e358a12
refactor: Integrate consistent-type-imports in nodes-base (no-changelog) (#5267)
* 👕 Enable `consistent-type-imports` for nodes-base

* 👕 Apply to nodes-base

*  Undo unrelated changes

* 🚚 Move to `.eslintrc.js` in nodes-base

*  Revert "Enable `consistent-type-imports` for nodes-base"

This reverts commit 529ad72b05.

* 👕 Fix severity
2023-01-27 12:22:44 +01:00

62 lines
1.3 KiB
TypeScript

/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import type { INodeTypeDescription } from 'n8n-workflow';
import * as customer from './customer';
import * as ticket from './ticket';
import * as contact from './contact';
import * as rmm from './rmm';
export const versionDescription: INodeTypeDescription = {
displayName: 'SyncroMSP',
name: 'syncroMsp',
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
icon: 'file:syncromsp.png',
group: ['output'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Gets data from SyncroMSP',
defaults: {
name: 'SyncroMSP',
},
inputs: ['main'],
outputs: ['main'],
credentials: [
{
name: 'syncroMspApi',
required: true,
testedBy: 'syncroMspApiCredentialTest',
},
],
properties: [
{
displayName: 'Resource',
name: 'resource',
type: 'options',
noDataExpression: true,
options: [
{
name: 'Contact',
value: 'contact',
},
{
name: 'Customer',
value: 'customer',
},
{
name: 'RMM',
value: 'rmm',
},
{
name: 'Ticket',
value: 'ticket',
},
],
default: 'contact',
},
...customer.descriptions,
...ticket.descriptions,
...contact.descriptions,
...rmm.descriptions,
],
};