2022-07-04 02:12:08 -07:00
|
|
|
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
2023-01-27 03:22:44 -08:00
|
|
|
import type { INodeTypeDescription } from 'n8n-workflow';
|
2022-01-07 09:19:24 -08:00
|
|
|
|
|
|
|
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',
|
2022-06-20 07:54:01 -07:00
|
|
|
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
2022-01-07 09:19:24 -08:00
|
|
|
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',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2022-01-07 09:19:24 -08:00
|
|
|
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,
|
|
|
|
],
|
|
|
|
};
|