Deactivate not properly "working" types on Vonage-Node

This commit is contained in:
Jan Oberhauser 2020-10-13 08:57:06 +02:00
parent 0c820d80d2
commit d9d9c2fa7e

View file

@ -102,49 +102,49 @@ export class Vonage implements INodeType {
default: '', default: '',
description: `The number that the message should be sent to. Numbers are specified in E.164 format.`, description: `The number that the message should be sent to. Numbers are specified in E.164 format.`,
}, },
{ // {
displayName: 'Type', // displayName: 'Type',
name: 'type', // name: 'type',
type: 'options', // type: 'options',
displayOptions: { // displayOptions: {
show: { // show: {
resource: [ // resource: [
'sms', // 'sms',
], // ],
operation: [ // operation: [
'send', // 'send',
], // ],
}, // },
}, // },
options: [ // options: [
{ // {
name: 'Binary', // name: 'Binary',
value: 'binary', // value: 'binary',
}, // },
{ // {
name: 'Text', // name: 'Text',
value: 'text', // value: 'text',
}, // },
{ // {
name: 'Wappush', // name: 'Wappush',
value: 'wappush', // value: 'wappush',
}, // },
{ // {
name: 'Unicode', // name: 'Unicode',
value: 'unicode', // value: 'unicode',
}, // },
{ // {
name: 'VCAL', // name: 'VCAL',
value: 'vcal', // value: 'vcal',
}, // },
{ // {
name: 'VCARD', // name: 'VCARD',
value: 'vcard', // value: 'vcard',
}, // },
], // ],
default: 'text', // default: 'text',
description: 'The format of the message body', // description: 'The format of the message body',
}, // },
// { // {
// displayName: 'Binary Property', // displayName: 'Binary Property',
// name: 'binaryPropertyName', // name: 'binaryPropertyName',
@ -166,106 +166,106 @@ export class Vonage implements INodeType {
// description: 'Object property name which holds binary data.', // description: 'Object property name which holds binary data.',
// required: true, // required: true,
// }, // },
{ // {
displayName: 'Body', // displayName: 'Body',
name: 'body', // name: 'body',
type: 'string', // type: 'string',
displayOptions: { // displayOptions: {
show: { // show: {
resource: [ // resource: [
'sms', // 'sms',
], // ],
operation: [ // operation: [
'send', // 'send',
], // ],
type: [ // type: [
'binary', // 'binary',
], // ],
}, // },
}, // },
default: '', // default: '',
description: 'Hex encoded binary data', // description: 'Hex encoded binary data',
}, // },
{ // {
displayName: 'UDH', // displayName: 'UDH',
name: 'udh', // name: 'udh',
type: 'string', // type: 'string',
displayOptions: { // displayOptions: {
show: { // show: {
resource: [ // resource: [
'sms', // 'sms',
], // ],
operation: [ // operation: [
'send', // 'send',
], // ],
type: [ // type: [
'binary', // 'binary',
], // ],
}, // },
}, // },
default: '', // default: '',
description: 'Your custom Hex encoded User Data Header', // description: 'Your custom Hex encoded User Data Header',
}, // },
{ // {
displayName: 'Title', // displayName: 'Title',
name: 'title', // name: 'title',
displayOptions: { // displayOptions: {
show: { // show: {
resource: [ // resource: [
'sms', // 'sms',
], // ],
operation: [ // operation: [
'send', // 'send',
], // ],
type: [ // type: [
'wappush', // 'wappush',
], // ],
}, // },
}, // },
type: 'string', // type: 'string',
default: '', // default: '',
description: 'The title for a wappush SMS', // description: 'The title for a wappush SMS',
}, // },
{ // {
displayName: 'URL', // displayName: 'URL',
name: 'url', // name: 'url',
type: 'string', // type: 'string',
displayOptions: { // displayOptions: {
show: { // show: {
resource: [ // resource: [
'sms', // 'sms',
], // ],
operation: [ // operation: [
'send', // 'send',
], // ],
type: [ // type: [
'wappush', // 'wappush',
], // ],
}, // },
}, // },
default: '', // default: '',
description: 'The URL of your website', // description: 'The URL of your website',
}, // },
{ // {
displayName: 'Validity (in minutes)', // displayName: 'Validity (in minutes)',
name: 'validity', // name: 'validity',
type: 'number', // type: 'number',
default: 0, // default: 0,
displayOptions: { // displayOptions: {
show: { // show: {
resource: [ // resource: [
'sms', // 'sms',
], // ],
operation: [ // operation: [
'send', // 'send',
], // ],
type: [ // type: [
'wappush', // 'wappush',
], // ],
}, // },
}, // },
description: 'The availability for an SMS in minutes', // description: 'The availability for an SMS in minutes',
}, // },
{ {
displayName: 'Message', displayName: 'Message',
name: 'message', name: 'message',
@ -278,55 +278,55 @@ export class Vonage implements INodeType {
operation: [ operation: [
'send', 'send',
], ],
type: [ // type: [
'text', // 'text',
'unicode', // 'unicode',
], // ],
}, },
}, },
default: '', default: '',
description: `The body of the message being sent`, description: `The body of the message being sent`,
}, },
{ // {
displayName: 'VCard', // displayName: 'VCard',
name: 'vcard', // name: 'vcard',
type: 'string', // type: 'string',
displayOptions: { // displayOptions: {
show: { // show: {
resource: [ // resource: [
'sms', // 'sms',
], // ],
operation: [ // operation: [
'send', // 'send',
], // ],
type: [ // type: [
'vcard', // 'vcard',
], // ],
}, // },
}, // },
default: '', // default: '',
description: 'A business card in vCard format', // description: 'A business card in vCard format',
}, // },
{ // {
displayName: 'VCal', // displayName: 'VCal',
name: 'vcal', // name: 'vcal',
type: 'string', // type: 'string',
displayOptions: { // displayOptions: {
show: { // show: {
resource: [ // resource: [
'sms', // 'sms',
], // ],
operation: [ // operation: [
'send', // 'send',
], // ],
type: [ // type: [
'vcal', // 'vcal',
], // ],
}, // },
}, // },
default: '', // default: '',
description: 'A calendar event in vCal format', // description: 'A calendar event in vCal format',
}, // },
{ {
displayName: 'Additional Fields', displayName: 'Additional Fields',
name: 'additionalFields', name: 'additionalFields',
@ -434,7 +434,7 @@ export class Vonage implements INodeType {
const to = this.getNodeParameter('to', i) as string; const to = this.getNodeParameter('to', i) as string;
const type = this.getNodeParameter('type', i) as string; const type = this.getNodeParameter('type', i, 'text') as string;
const body: IDataObject = { const body: IDataObject = {
from, from,
@ -456,7 +456,6 @@ export class Vonage implements INodeType {
body.udh = udh; body.udh = udh;
body.body = data; body.body = data;
} }
if (type === 'wappush') { if (type === 'wappush') {