2020-02-13 07:43:59 -08:00
import { INodeProperties } from 'n8n-workflow' ;
2021-12-03 00:44:16 -08:00
export const smsOperations : INodeProperties [ ] = [
2020-02-13 07:43:59 -08:00
{
displayName : 'Operation' ,
name : 'operation' ,
type : 'options' ,
2022-05-15 11:39:54 -07:00
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' ,
} ,
2021-12-03 00:44:16 -08:00
] ;
2020-02-13 07:43:59 -08:00
2021-12-03 00:44:16 -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
} ,
} ,
} ,
2021-12-03 00:44:16 -08:00
] ;