Improved HelpScout-Nodes

This commit is contained in:
Jan Oberhauser
2020-03-29 19:10:54 +02:00
parent 6e6bb7781b
commit 83e6e8bf11
13 changed files with 1259 additions and 1256 deletions

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from "n8n-workflow";
import { INodeProperties } from 'n8n-workflow';
export const customerOperations = [
{
@@ -18,11 +18,6 @@ export const customerOperations = [
value: 'create',
description: 'Create a new customer',
},
{
name: 'Properties',
value: 'properties',
description: 'Get customer property definitions',
},
{
name: 'Get',
value: 'get',
@@ -33,6 +28,11 @@ export const customerOperations = [
value: 'getAll',
description: 'Get all customers',
},
{
name: 'Properties',
value: 'properties',
description: 'Get customer property definitions',
},
{
name: 'Update',
value: 'update',
@@ -92,16 +92,6 @@ export const customerFields = [
default: 1,
description: `Customers age`,
},
{
displayName: 'Notes',
name: 'background',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: `Notes`,
},
{
displayName: 'First Name',
name: 'firstName',
@@ -151,6 +141,16 @@ export const customerFields = [
default: '',
description: 'Location of the customer.',
},
{
displayName: 'Notes',
name: 'background',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: `Notes`,
},
{
displayName: 'Organization',
name: 'organization',
@@ -267,39 +267,39 @@ export const customerFields = [
type: 'options',
options: [
{
name: 'aim',
name: 'AIM',
value: 'aim',
},
{
name: 'gtalk',
name: 'Google Talk',
value: 'gtalk',
},
{
name: 'icq',
name: 'ICQ',
value: 'icq',
},
{
name: 'msn',
name: 'MSN',
value: 'msn',
},
{
name: 'other',
name: 'Other',
value: 'other',
},
{
name: 'qq',
name: 'QQ',
value: 'qq',
},
{
name: 'skype',
name: 'Skype',
value: 'skype',
},
{
name: 'xmpp',
name: 'XMPP',
value: 'xmpp',
},
{
name: 'yahoo',
name: 'Yahoo',
value: 'yahoo',
},
],
@@ -584,13 +584,6 @@ export const customerFields = [
},
},
options: [
{
displayName: 'Mailbox ID',
name: 'mailbox',
type: 'string',
default: '',
description: 'Filters customers from a specific mailbox',
},
{
displayName: 'First Name',
name: 'firstName',
@@ -605,6 +598,13 @@ export const customerFields = [
default: '',
description: 'Filters customers by last name',
},
{
displayName: 'Mailbox ID',
name: 'mailbox',
type: 'string',
default: '',
description: 'Filters customers from a specific mailbox',
},
{
displayName: 'Modified Since',
name: 'modifiedSince',
@@ -733,16 +733,6 @@ export const customerFields = [
default: 1,
description: `Customers age`,
},
{
displayName: 'Notes',
name: 'background',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: `Notes`,
},
{
displayName: 'First Name',
name: 'firstName',
@@ -792,6 +782,16 @@ export const customerFields = [
default: '',
description: 'Location of the customer.',
},
{
displayName: 'Notes',
name: 'background',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: `Notes`,
},
{
displayName: 'Organization',
name: 'organization',
@@ -806,6 +806,6 @@ export const customerFields = [
default: '',
description: 'URL of the customers photo',
},
]
],
},
] as INodeProperties[];