n8n-nodes-everest-tms
Version:
Everest TMS n8n integration
233 lines • 7.33 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.generalFields = exports.generalOperations = void 0;
exports.generalOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['general'],
},
},
options: [
{
name: 'Get Platform Info',
value: 'getPlatformInfo',
description: 'Get information about the platform',
action: 'Get platform information',
},
{
name: 'Get Current User',
value: 'getCurrentUser',
description: 'Get information about the current authenticated user',
action: 'Get current user info',
},
{
name: 'Get Services',
value: 'getServices',
description: 'Get list of available services',
action: 'Get services',
},
{
name: 'Get Skills',
value: 'getSkills',
description: 'Get list of platform skills',
action: 'Get skills',
},
{
name: 'Get Statuses',
value: 'getStatuses',
description: 'Get list of mission statuses',
action: 'Get statuses',
},
{
name: 'Get Vehicle Types',
value: 'getVehicleTypes',
description: 'Get list of vehicle types',
action: 'Get vehicle types',
},
{
name: 'Get Areas of Service',
value: 'getAreasOfService',
description: 'Get list of service areas',
action: 'Get areas of service',
},
{
name: 'Get Available Slots',
value: 'getAvailableSlots',
description: 'Get available time slots for mission creation',
action: 'Get available slots',
},
{
name: 'Get Availabilities',
value: 'getAvailabilities',
description: 'Get platform availability hours',
action: 'Get platform availabilities',
},
{
name: 'Check Address',
value: 'checkAddress',
description: 'Check if an address is handled by the platform',
action: 'Check if address is handled',
},
],
default: 'getPlatformInfo',
},
];
exports.generalFields = [
// Get Services, Skills, Areas of Service, Availabilities - Options
{
displayName: 'Options',
name: 'options',
type: 'collection',
placeholder: 'Add Option',
default: {},
displayOptions: {
show: {
resource: ['general'],
operation: ['getServices', 'getSkills', 'getAreasOfService', 'getAvailabilities'],
},
},
options: [
{
displayName: 'Search',
name: 'search',
type: 'string',
default: '',
description: 'Search term to filter results',
placeholder: 'driving',
displayOptions: {
show: {
'/operation': ['getSkills'],
},
},
},
{
displayName: 'Establishment',
name: 'establishment_id',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getEstablishments',
},
default: '',
description: 'Filter by establishment',
displayOptions: {
show: {
'/operation': ['getServices', 'getAreasOfService', 'getAvailabilities'],
},
},
},
],
},
// Get Available Slots - Required fields
{
displayName: 'Service',
name: 'service_id',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getServices',
},
required: true,
displayOptions: {
show: {
resource: ['general'],
operation: ['getAvailableSlots'],
},
},
default: '',
description: 'Service to get slots for',
},
// Get Available Slots - Additional fields
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['general'],
operation: ['getAvailableSlots'],
},
},
options: [
{
displayName: 'Establishment',
name: 'establishment_id',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getEstablishments',
},
default: '',
description: 'Establishment to get slots for',
},
{
displayName: 'From Time',
name: 'from_time',
type: 'dateTime',
default: '',
description: 'Start time to search slots from',
},
{
displayName: 'Maximum Days',
name: 'max_days',
type: 'number',
default: 7,
description: 'Maximum number of days to search',
},
],
},
// Check Address - Required fields
{
displayName: 'Address',
name: 'address',
type: 'string',
required: true,
displayOptions: {
show: {
resource: ['general'],
operation: ['checkAddress'],
},
},
default: '',
description: 'Address to check',
placeholder: '42 fake street, 75001 Paris',
},
// Check Address - Additional fields
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: ['general'],
operation: ['checkAddress'],
},
},
options: [
{
displayName: 'Start Date',
name: 'start_date',
type: 'dateTime',
default: '',
description: 'Scheduled start date for the mission',
},
{
displayName: 'Service',
name: 'service_id',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getServices',
},
default: '',
description: 'Service to check for',
},
],
},
];
//# sourceMappingURL=GeneralDescription.js.map