2023-01-27 03:22:44 -08:00
|
|
|
import type { INodeProperties } from 'n8n-workflow';
|
2021-03-23 15:49:08 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const mmsOperations: INodeProperties[] = [
|
2021-03-23 15:49:08 -07:00
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2021-03-23 15:49:08 -07:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['mms'],
|
2021-03-23 15:49:08 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Send',
|
|
|
|
value: 'send',
|
|
|
|
description: 'Send an MMS message (US/Canada only)',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Send an MMS',
|
2021-03-23 15:49:08 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'send',
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|
2021-03-23 15:49:08 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const mmsFields: INodeProperties[] = [
|
2021-03-23 15:49:08 -07:00
|
|
|
// ----------------------------------
|
|
|
|
// mms: send
|
|
|
|
// ----------------------------------
|
|
|
|
{
|
|
|
|
displayName: 'From',
|
|
|
|
name: 'from',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Plivo Number to send the MMS from',
|
2021-03-23 15:49:08 -07:00
|
|
|
placeholder: '+14156667777',
|
|
|
|
required: true,
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['mms'],
|
|
|
|
operation: ['send'],
|
2021-03-23 15:49:08 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'To',
|
|
|
|
name: 'to',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Phone number to send the MMS to',
|
2021-03-23 15:49:08 -07:00
|
|
|
placeholder: '+14156667778',
|
|
|
|
required: true,
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['send'],
|
|
|
|
resource: ['mms'],
|
2021-03-23 15:49:08 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Message',
|
|
|
|
name: 'message',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Message to send',
|
2021-03-23 15:49:08 -07:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['mms'],
|
|
|
|
operation: ['send'],
|
2021-03-23 15:49:08 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Media URLs',
|
|
|
|
name: 'media_urls',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['mms'],
|
|
|
|
operation: ['send'],
|
2021-03-23 15:49:08 -07:00
|
|
|
},
|
|
|
|
},
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Comma-separated list of media URLs of the files from your file server',
|
2021-03-23 15:49:08 -07:00
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|