mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-17 18:14:05 -08:00
62 lines
1.1 KiB
TypeScript
62 lines
1.1 KiB
TypeScript
|
import {
|
||
|
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',
|
||
|
icon: 'file:syncromsp.png',
|
||
|
group: ['output'],
|
||
|
version: 1,
|
||
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||
|
description: 'Gets data from SyncroMSP',
|
||
|
defaults: {
|
||
|
name: 'SyncroMSP',
|
||
|
color: '#08a4ab',
|
||
|
},
|
||
|
inputs: ['main'],
|
||
|
outputs: ['main'],
|
||
|
credentials: [
|
||
|
{
|
||
|
name: 'syncroMspApi',
|
||
|
required: true,
|
||
|
testedBy: 'syncroMspApiCredentialTest',
|
||
|
},
|
||
|
],
|
||
|
properties: [
|
||
|
{
|
||
|
displayName: 'Resource',
|
||
|
name: 'resource',
|
||
|
type: 'options',
|
||
|
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,
|
||
|
],
|
||
|
};
|