n8n-nodes-everest-tms
Version:
Everest TMS n8n integration
177 lines • 5.39 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.notificationFields = exports.notificationOperations = void 0;
exports.notificationOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['notification'],
},
},
options: [
{
name: 'Send SMS',
value: 'sendSms',
description: 'Send SMS notifications to multiple phone numbers',
action: 'Send SMS notifications',
},
{
name: 'Send Email',
value: 'sendEmail',
description: 'Send email notifications to multiple email addresses',
action: 'Send email notifications',
},
{
name: 'Send Push Notification',
value: 'sendPushNotification',
description: 'Send push notification to a specific agent',
action: 'Send push notification',
},
],
default: 'sendSms',
},
];
exports.notificationFields = [
// Send SMS operation
{
displayName: 'Phone Numbers',
name: 'tels',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['notification'],
operation: ['sendSms'],
},
},
default: '',
description: 'Phone numbers to send SMS to (comma-separated)',
placeholder: '0600000000,0611111111',
},
{
displayName: 'Message Text',
name: 'text',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['notification'],
operation: ['sendSms'],
},
},
default: '',
description: 'SMS message text. You can use [mission_ref] placeholder',
placeholder: 'Your mission [mission_ref] has been updated',
},
{
displayName: 'Mission Reference',
name: 'mission_ref',
type: 'string',
displayOptions: {
show: {
resource: ['notification'],
operation: ['sendSms'],
},
},
default: '',
description: 'Mission reference to replace [mission_ref] placeholder in the text',
placeholder: 'ABC123XXX',
},
// Send Email operation
{
displayName: 'Email Addresses',
name: 'emails',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['notification'],
operation: ['sendEmail'],
},
},
default: '',
description: 'Email addresses to send notifications to (comma-separated)',
placeholder: 'john@example.com,jane@example.com',
},
{
displayName: 'Message Text',
name: 'text',
type: 'string',
typeOptions: {
rows: 4,
},
required: true,
displayOptions: {
show: {
resource: ['notification'],
operation: ['sendEmail'],
},
},
default: '',
description: 'Email message text with line breaks support. You can use placeholders like [mission_ref], [client_lastname], etc.',
placeholder: 'Dear [client_lastname],\n\nYour mission [mission_ref] has been updated.\n\nBest regards,\nThe Team',
},
{
displayName: 'Mission Reference',
name: 'mission_ref',
type: 'string',
displayOptions: {
show: {
resource: ['notification'],
operation: ['sendEmail'],
},
},
default: '',
description: 'Mission reference to replace [mission_ref] placeholder in the text',
placeholder: 'ABC123XXX',
},
// Send Push Notification operation
{
displayName: 'Agent ID',
name: 'agent_id',
type: 'number',
required: true,
displayOptions: {
show: {
resource: ['notification'],
operation: ['sendPushNotification'],
},
},
default: 0,
description: 'ID of the agent to send push notification to',
},
{
displayName: 'Message Text',
name: 'text',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['notification'],
operation: ['sendPushNotification'],
},
},
default: '',
description: 'Push notification message text. You can use [mission_ref] placeholder',
placeholder: 'You have a new mission [mission_ref]',
},
{
displayName: 'Mission Reference',
name: 'mission_ref',
type: 'string',
displayOptions: {
show: {
resource: ['notification'],
operation: ['sendPushNotification'],
},
},
default: '',
description: 'Mission reference to replace [mission_ref] placeholder in the text',
placeholder: 'ABC123XXX',
},
];
//# sourceMappingURL=NotificationDescription.js.map