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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.6 KiB
TypeScript
Raw Normal View History

import type { INodeProperties } from 'n8n-workflow';
2020-02-13 07:43:59 -08:00
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'],
2020-02-13 07:43:59 -08:00
},
},
options: [
{
name: 'Send',
value: 'send',
description: 'Send a sms',
action: 'Send an SMS',
2020-02-13 07:43:59 -08:00
},
],
default: 'send',
},
];
2020-02-13 07:43:59 -08:00
export const smsFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* sms:send */
/* -------------------------------------------------------------------------- */
2020-02-13 07:43:59 -08:00
{
displayName: 'From',
name: 'from',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['sms'],
operation: ['send'],
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.',
2020-02-13 07:43:59 -08:00
},
{
displayName: 'To',
name: 'to',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['sms'],
operation: ['send'],
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.',
2020-02-13 07:43:59 -08:00
},
{
displayName: 'Text',
name: 'text',
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['sms'],
operation: ['send'],
2020-02-13 07:43:59 -08:00
},
},
},
];