UNPKG

n8n-nodes-everest-tms

Version:

Everest TMS n8n integration

211 lines 5.71 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.alertFields = exports.alertOperations = void 0; exports.alertOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['alert'], }, }, options: [ { name: 'Create', value: 'create', description: 'Create a new alert', action: 'Create an alert', }, { name: 'Get Many', value: 'getMany', description: 'Get multiple alerts', action: 'Get many alerts', }, ], default: 'getMany', }, ]; exports.alertFields = [ // Create operation - Required fields { displayName: 'Icon', name: 'icon', type: 'string', required: true, displayOptions: { show: { resource: ['alert'], operation: ['create'], }, }, default: '', description: 'Icon identifier for the alert', placeholder: 'invoice', }, { displayName: 'Category', name: 'category', type: 'options', required: true, displayOptions: { show: { resource: ['alert'], operation: ['create'], }, }, options: [ { name: 'Success', value: 'success', }, { name: 'Warning', value: 'warning', }, { name: 'Danger', value: 'danger', }, { name: 'Info', value: 'info', }, ], default: 'info', description: 'Alert category', }, { displayName: 'Text', name: 'text', type: 'string', required: true, displayOptions: { show: { resource: ['alert'], operation: ['create'], }, }, default: '', description: 'Alert message text', placeholder: 'Invoice awaiting payment', }, { displayName: 'Created For', name: 'created_for', type: 'string', required: true, displayOptions: { show: { resource: ['alert'], operation: ['create'], }, }, default: '', description: 'Target for the alert (platform or client:ID)', placeholder: 'client:123', }, // Create operation - Optional fields { displayName: 'Additional Fields', name: 'additionalFields', type: 'collection', placeholder: 'Add Field', default: {}, displayOptions: { show: { resource: ['alert'], operation: ['create'], }, }, options: [ { displayName: 'URL', name: 'url', type: 'string', default: '', description: 'URL to redirect when alert is clicked', placeholder: '/client/invoices', }, { displayName: 'Status', name: 'status', type: 'options', options: [ { name: 'Unread', value: 0, }, { name: 'Read', value: 1, }, ], default: 0, description: 'Alert status: 0 for unread, 1 for read', }, ], }, // Get Many - Options { displayName: 'Options', name: 'options', type: 'collection', placeholder: 'Add Option', default: {}, displayOptions: { show: { resource: ['alert'], operation: ['getMany'], }, }, options: [ { displayName: 'Limit', name: 'limit', type: 'number', default: 50, description: 'Max number of results to return', }, { displayName: 'Limit Start', name: 'limit_start', type: 'number', default: 0, description: 'Starting offset for pagination (0-based index)', }, { displayName: 'Search', name: 'search', type: 'string', default: '', description: 'Search term to filter alerts by text (minimum 3 characters)', }, { displayName: 'Status', name: 'status', type: 'options', options: [ { name: 'All', value: '', }, { name: 'Unread', value: 0, }, { name: 'Read', value: 1, }, ], default: '', description: 'Filter by alert status', }, ], }, ]; //# sourceMappingURL=AlertDescription.js.map