n8n-nodes-everest-tms
Version:
Everest TMS n8n integration
312 lines • 8.96 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.webhookFields = exports.webhookOperations = void 0;
exports.webhookOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['webhook'],
},
},
options: [
{
name: 'Subscribe',
value: 'subscribe',
description: 'Subscribe to a webhook event',
action: 'Subscribe to webhook',
},
{
name: 'Unsubscribe',
value: 'unsubscribe',
description: 'Unsubscribe from a webhook event',
action: 'Unsubscribe from webhook',
},
],
default: 'subscribe',
},
];
exports.webhookFields = [
// Subscribe and Unsubscribe operations
{
displayName: 'Webhook URL',
name: 'url',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['webhook'],
operation: ['subscribe', 'unsubscribe'],
},
},
default: '',
description: 'The URL to receive webhook notifications',
placeholder: 'https://yourhookurl.com/0m9p8znha20i21iwu4e2b2ba283',
},
{
displayName: 'Event',
name: 'event',
type: 'options',
required: true,
displayOptions: {
show: {
resource: ['webhook'],
operation: ['subscribe', 'unsubscribe'],
},
},
options: [
// User events
{
name: 'Backend Auth',
value: 'backend_auth',
},
{
name: 'User Created',
value: 'user_created',
},
{
name: 'User Updated',
value: 'user_updated',
},
{
name: 'User Deleted',
value: 'user_deleted',
},
// Mission events
{
name: 'Mission Created',
value: 'mission_created',
},
{
name: 'Mission Updated',
value: 'mission_updated',
},
{
name: 'Mission Deleted',
value: 'mission_deleted',
},
{
name: 'Mission Cancelled',
value: 'mission_cancelled',
},
{
name: 'Mission Finished',
value: 'mission_finished',
},
{
name: 'Mission Failed',
value: 'mission_failed',
},
{
name: 'Mission Success',
value: 'mission_success',
},
{
name: 'Mission Picked Up',
value: 'mission_pickedup',
},
{
name: 'Mission Dispatched',
value: 'mission_dispatched',
},
{
name: 'Mission Status Changed',
value: 'mission_status',
},
{
name: 'Mission Rescheduled',
value: 'mission_rescheduled',
},
{
name: 'Mission Price Updated',
value: 'mission_price_updated',
},
{
name: 'Missions Imported',
value: 'missions_imported',
},
// Client events
{
name: 'Client Created',
value: 'client_created',
},
{
name: 'Client Updated',
value: 'client_updated',
},
{
name: 'Client Deleted',
value: 'client_deleted',
},
{
name: 'Client Tariffs Updated',
value: 'client_tariffs_updated',
},
{
name: 'Client API Updated',
value: 'client_api_updated',
},
// Agent events
{
name: 'Agent Created',
value: 'agent_created',
},
{
name: 'Agent Updated',
value: 'agent_updated',
},
{
name: 'Agent Location Updated',
value: 'agent_location_updated',
},
{
name: 'Agent Deleted',
value: 'agent_deleted',
},
{
name: 'Agent File Created',
value: 'agent_file_created',
},
{
name: 'Agent File Updated',
value: 'agent_file_updated',
},
{
name: 'Agent File Deleted',
value: 'agent_file_deleted',
},
// Invoice events
{
name: 'Invoice Created',
value: 'invoice_created',
},
{
name: 'Invoice Updated',
value: 'invoice_updated',
},
{
name: 'Invoice Deleted',
value: 'invoice_deleted',
},
{
name: 'Refund Created',
value: 'refund_created',
},
// Contact events
{
name: 'Contact Created',
value: 'contact_created',
},
{
name: 'Contact Updated',
value: 'contact_updated',
},
{
name: 'Contact Deleted',
value: 'contact_deleted',
},
// Comment events
{
name: 'Comment Created',
value: 'comment_created',
},
{
name: 'Comment Updated',
value: 'comment_updated',
},
// Platform events
{
name: 'Service Created',
value: 'service_created',
},
{
name: 'Service Updated',
value: 'service_updated',
},
{
name: 'Status Created',
value: 'status_created',
},
{
name: 'Status Updated',
value: 'status_updated',
},
{
name: 'Vehicle Created',
value: 'vehicle_created',
},
{
name: 'Vehicle Updated',
value: 'vehicle_updated',
},
{
name: 'Platform Global Settings Updated',
value: 'platform_global_settings_updated',
},
{
name: 'Platform Invoicing Updated',
value: 'platform_invoicing_updated',
},
{
name: 'Area of Service Created',
value: 'area_of_service_created',
},
{
name: 'Area of Service Updated',
value: 'area_of_service_updated',
},
{
name: 'Tariff Policy Updated',
value: 'tariff_politic_updated',
},
{
name: 'Dispatch Rules Updated',
value: 'dispatch_rules_updated',
},
{
name: 'Role Created',
value: 'role_created',
},
{
name: 'Role Updated',
value: 'role_updated',
},
{
name: 'Availabilities Updated',
value: 'availabilities_updated',
},
{
name: 'Establishment Created',
value: 'establishment_created',
},
{
name: 'Establishment Updated',
value: 'establishment_updated',
},
{
name: 'Establishment Deleted',
value: 'establishment_deleted',
},
// Form events
{
name: 'Form Created',
value: 'form_created',
},
{
name: 'Form Updated',
value: 'form_updated',
},
// Support events
{
name: 'Support Email Sent',
value: 'support_email_sent',
},
],
default: 'mission_created',
description: 'The event to subscribe to',
},
];
//# sourceMappingURL=WebhookDescription.js.map