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 : {
2022-08-17 08:50:24 -07:00
resource : [ 'sms' ] ,
2020-02-13 07:43:59 -08:00
} ,
} ,
options : [
{
name : 'Send' ,
value : 'send' ,
description : 'Send a sms' ,
2022-07-10 13:50:51 -07:00
action : 'Send an SMS' ,
2020-02-13 07:43:59 -08:00
} ,
] ,
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 [ ] = [
2022-08-17 08:50:24 -07:00
/* -------------------------------------------------------------------------- */
/* sms:send */
/* -------------------------------------------------------------------------- */
2020-02-13 07:43:59 -08:00
{
displayName : 'From' ,
name : 'from' ,
type : 'string' ,
required : true ,
default : '' ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'sms' ] ,
operation : [ 'send' ] ,
2020-02-13 07:43:59 -08:00
} ,
} ,
2022-08-17 08:50:24 -07: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 : {
2022-08-17 08:50:24 -07:00
resource : [ 'sms' ] ,
operation : [ 'send' ] ,
2020-02-13 07:43:59 -08:00
} ,
} ,
2022-08-17 08:50:24 -07: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 ,
typeOptions : {
alwaysOpenEditWindow : true ,
} ,
default : '' ,
displayOptions : {
show : {
2022-08-17 08:50:24 -07:00
resource : [ 'sms' ] ,
operation : [ 'send' ] ,
2020-02-13 07:43:59 -08:00
} ,
} ,
} ,
2021-12-03 00:44:16 -08:00
] ;