n8n/packages/nodes-base/nodes/Mailjet/SmsDescription.ts

89 lines
1.7 KiB
TypeScript
Raw Normal View History

2020-02-13 07:43:59 -08:00
import { INodeProperties } from 'n8n-workflow';
export const smsOperations: INodeProperties[] = [
2020-02-13 07:43:59 -08:00
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
2020-02-13 07:43:59 -08:00
displayOptions: {
show: {
resource: [
'sms',
],
},
},
options: [
{
name: 'Send',
value: 'send',
description: 'Send a sms',
},
],
default: 'send',
},
];
2020-02-13 07:43:59 -08:00
export const smsFields: INodeProperties[] = [
2020-02-13 07:43:59 -08:00
/* -------------------------------------------------------------------------- */
/* sms:send */
/* -------------------------------------------------------------------------- */
{
displayName: 'From',
name: 'from',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: [
'sms',
],
operation: [
'send',
2020-10-22 06:46:03 -07:00
],
2020-02-13 07:43:59 -08:00
},
},
description: 'Customizable sender name. Should be between 3 and 11 characters in length, only alphanumeric characters are allowed.',
},
{
displayName: 'To',
name: 'to',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: [
'sms',
],
operation: [
'send',
2020-10-22 06:46:03 -07:00
],
2020-02-13 07:43:59 -08:00
},
},
description: 'Message recipient. Should be between 3 and 15 characters in length. The number always starts with a plus sign followed by a country code, followed by the number. Phone numbers are expected to comply with the E.164 format.',
},
{
displayName: 'Text',
name: 'text',
type: 'string',
required: true,
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
displayOptions: {
show: {
resource: [
'sms',
],
operation: [
'send',
2020-10-22 06:46:03 -07:00
],
2020-02-13 07:43:59 -08:00
},
},
},
];