[
  {
    "displayName": "Resource",
    "name": "resource",
    "type": "options",
    "noDataExpression": true,
    "options": [
      {
        "name": "General",
        "value": "general"
      },
      {
        "name": "Mission",
        "value": "mission"
      },
      {
        "name": "Client",
        "value": "client"
      },
      {
        "name": "Agent",
        "value": "agent"
      },
      {
        "name": "Invoice",
        "value": "invoice"
      },
      {
        "name": "Contact",
        "value": "contact"
      },
      {
        "name": "Alert",
        "value": "alert"
      },
      {
        "name": "Walter",
        "value": "walter"
      },
      {
        "name": "Notification",
        "value": "notification"
      },
      {
        "name": "Webhook",
        "value": "webhook"
      },
      {
        "name": "Route",
        "value": "route"
      },
      {
        "name": "Export",
        "value": "export"
      }
    ],
    "default": "mission"
  },
  {
    "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"
  },
  {
    "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"
            ]
          }
        }
      }
    ]
  },
  {
    "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"
  },
  {
    "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"
      }
    ]
  },
  {
    "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"
  },
  {
    "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"
      }
    ]
  },
  {
    "displayName": "Operation",
    "name": "operation",
    "type": "options",
    "noDataExpression": true,
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ]
      }
    },
    "options": [
      {
        "name": "Create",
        "value": "create",
        "description": "Create a new mission",
        "action": "Create a mission"
      },
      {
        "name": "Delete",
        "value": "delete",
        "description": "Delete a mission",
        "action": "Delete a mission"
      },
      {
        "name": "Get",
        "value": "get",
        "description": "Get a mission by reference",
        "action": "Get a mission"
      },
      {
        "name": "Get Many",
        "value": "getMany",
        "description": "Get multiple missions",
        "action": "Get many missions"
      },
      {
        "name": "Get Many by References",
        "value": "getManyByRefs",
        "description": "Get multiple missions by their references",
        "action": "Get many missions by refs"
      },
      {
        "name": "Update",
        "value": "update",
        "description": "Update a mission",
        "action": "Update a mission"
      },
      {
        "name": "Estimate",
        "value": "estimate",
        "description": "Get pricing estimate for a mission",
        "action": "Estimate mission cost"
      },
      {
        "name": "Cancel",
        "value": "cancel",
        "description": "Cancel a mission",
        "action": "Cancel a mission"
      },
      {
        "name": "Accept",
        "value": "accept",
        "description": "Accept a mission (for agents)",
        "action": "Accept a mission"
      },
      {
        "name": "Set Status",
        "value": "setStatus",
        "description": "Update mission status",
        "action": "Set mission status"
      },
      {
        "name": "Mark as Seen",
        "value": "markSeen",
        "description": "Mark mission as seen by agent",
        "action": "Mark mission as seen"
      }
    ],
    "default": "get"
  },
  {
    "displayName": "Mission Reference",
    "name": "ref",
    "type": "string",
    "required": false,
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "get",
          "delete",
          "cancel",
          "markSeen"
        ]
      }
    },
    "default": "",
    "description": "The reference of the mission to retrieve"
  },
  {
    "displayName": "Mission References",
    "name": "refs",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "getManyByRefs"
        ]
      }
    },
    "default": "",
    "description": "Mission references (comma-separated)",
    "placeholder": "XXXXXXXX,XXXXXXXX,XXXXXXXX"
  },
  {
    "displayName": "Mission Reference",
    "name": "ref",
    "type": "string",
    "required": false,
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "update"
        ]
      }
    },
    "default": "",
    "description": "The reference of the mission to update"
  },
  {
    "displayName": "Service",
    "name": "service_id",
    "type": "options",
    "typeOptions": {
      "loadOptionsMethod": "getServices"
    },
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "create",
          "estimate"
        ]
      }
    },
    "default": "",
    "description": "Service for this mission"
  },
  {
    "displayName": "Start Address",
    "name": "address_start",
    "type": "string",
    "required": false,
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "create",
          "update",
          "estimate"
        ]
      }
    },
    "default": "",
    "description": "Starting address for the mission",
    "placeholder": "42 fake street, 75001 Paris"
  },
  {
    "displayName": "End Address",
    "name": "address_end",
    "type": "string",
    "required": false,
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "create",
          "update",
          "estimate"
        ]
      }
    },
    "default": "",
    "description": "Destination address for the mission",
    "placeholder": "42 fake street, 75001 Paris"
  },
  {
    "displayName": "Additional Fields",
    "name": "additionalFields",
    "type": "collection",
    "placeholder": "Add Field",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "create",
          "update"
        ]
      }
    },
    "options": [
      {
        "displayName": "Start Date",
        "name": "start_date",
        "type": "dateTime",
        "default": "",
        "description": "Scheduled start date and time for the mission"
      },
      {
        "displayName": "Client",
        "name": "client_id",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getClients"
        },
        "default": "",
        "description": "Client who created the mission"
      },
      {
        "displayName": "Agent",
        "name": "agent_id",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getAgents"
        },
        "default": "",
        "description": "Agent assigned to the mission"
      },
      {
        "displayName": "Client Reference",
        "name": "client_ref",
        "type": "string",
        "default": "",
        "description": "Client's internal reference for this mission"
      },
      {
        "displayName": "Comment",
        "name": "comment",
        "type": "string",
        "default": "",
        "description": "Additional comments for the mission"
      },
      {
        "displayName": "Weight (kg)",
        "name": "weight",
        "type": "number",
        "default": 0,
        "description": "Weight of the shipment in kilograms"
      },
      {
        "displayName": "Volume (m³)",
        "name": "volume",
        "type": "number",
        "default": 0,
        "description": "Volume of the shipment in cubic meters"
      },
      {
        "displayName": "Price Excluding Tax",
        "name": "price_excl",
        "type": "number",
        "default": 0,
        "description": "Price of the mission excluding taxes"
      },
      {
        "displayName": "Agent Price Excluding Tax",
        "name": "agent_price_excl",
        "type": "number",
        "default": 0,
        "description": "Price paid to the agent excluding taxes"
      },
      {
        "displayName": "Status",
        "name": "status",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getStatuses"
        },
        "default": "",
        "description": "Status of the mission"
      },
      {
        "displayName": "Check Date",
        "name": "check_date",
        "type": "boolean",
        "default": false,
        "description": "Whether to validate the scheduled date"
      },
      {
        "displayName": "Check Addresses",
        "name": "check_addresses",
        "type": "boolean",
        "default": false,
        "description": "Whether to validate the addresses"
      },
      {
        "displayName": "Establishment",
        "name": "establishment_id",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getEstablishments"
        },
        "default": "",
        "description": "Establishment for this mission"
      }
    ]
  },
  {
    "displayName": "Start Address Details",
    "name": "startAddressDetails",
    "type": "collection",
    "placeholder": "Add Detail",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "create",
          "update"
        ]
      }
    },
    "options": [
      {
        "displayName": "Contact Name",
        "name": "address_start_name",
        "type": "string",
        "default": "",
        "description": "Name of the contact person at start address"
      },
      {
        "displayName": "Company",
        "name": "address_start_company",
        "type": "string",
        "default": "",
        "description": "Company name at start address"
      },
      {
        "displayName": "Email",
        "name": "address_start_email",
        "type": "string",
        "default": "",
        "description": "Email of the contact at start address"
      },
      {
        "displayName": "Phone",
        "name": "address_start_tel",
        "type": "string",
        "default": "",
        "description": "Phone number of the contact at start address"
      },
      {
        "displayName": "Comment",
        "name": "address_start_comment",
        "type": "string",
        "default": "",
        "description": "Special instructions for the start address"
      }
    ]
  },
  {
    "displayName": "End Address Details",
    "name": "endAddressDetails",
    "type": "collection",
    "placeholder": "Add Detail",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "create",
          "update"
        ]
      }
    },
    "options": [
      {
        "displayName": "Contact Name",
        "name": "address_end_name",
        "type": "string",
        "default": "",
        "description": "Name of the contact person at end address"
      },
      {
        "displayName": "Company",
        "name": "address_end_company",
        "type": "string",
        "default": "",
        "description": "Company name at end address"
      },
      {
        "displayName": "Email",
        "name": "address_end_email",
        "type": "string",
        "default": "",
        "description": "Email of the contact at end address"
      },
      {
        "displayName": "Phone",
        "name": "address_end_tel",
        "type": "string",
        "default": "",
        "description": "Phone number of the contact at end address"
      },
      {
        "displayName": "Comment",
        "name": "address_end_comment",
        "type": "string",
        "default": "",
        "description": "Special instructions for the end address"
      }
    ]
  },
  {
    "displayName": "Custom Information",
    "name": "custom_infos",
    "type": "fixedCollection",
    "default": {},
    "placeholder": "Add Custom Info",
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "create",
          "update"
        ]
      }
    },
    "typeOptions": {
      "multipleValues": true
    },
    "options": [
      {
        "name": "info",
        "displayName": "Custom Info",
        "values": [
          {
            "displayName": "Name",
            "name": "name",
            "type": "string",
            "default": "",
            "description": "The name of the custom field"
          },
          {
            "displayName": "Value",
            "name": "value",
            "type": "string",
            "default": "",
            "description": "The value of the custom field"
          }
        ]
      }
    ]
  },
  {
    "displayName": "Packages",
    "name": "packages",
    "type": "fixedCollection",
    "default": {},
    "placeholder": "Add Package",
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "create",
          "update"
        ]
      }
    },
    "typeOptions": {
      "multipleValues": true
    },
    "options": [
      {
        "name": "package",
        "displayName": "Package",
        "values": [
          {
            "displayName": "Name",
            "name": "name",
            "type": "string",
            "default": "",
            "description": "Name of the package"
          },
          {
            "displayName": "Weight (kg)",
            "name": "weight",
            "type": "number",
            "default": 0,
            "description": "Weight of the package in kilograms"
          },
          {
            "displayName": "Volume (m³)",
            "name": "volume",
            "type": "number",
            "default": 0,
            "description": "Volume of the package in cubic meters"
          },
          {
            "displayName": "Length (cm)",
            "name": "length",
            "type": "number",
            "default": 0,
            "description": "Length of the package in centimeters"
          },
          {
            "displayName": "Width (cm)",
            "name": "width",
            "type": "number",
            "default": 0,
            "description": "Width of the package in centimeters"
          },
          {
            "displayName": "Depth (cm)",
            "name": "depth",
            "type": "number",
            "default": 0,
            "description": "Depth of the package in centimeters"
          },
          {
            "displayName": "Reference",
            "name": "ref",
            "type": "string",
            "default": "",
            "description": "Reference number of the package"
          },
          {
            "displayName": "Quantity",
            "name": "quantity",
            "type": "number",
            "default": 1,
            "description": "Quantity of this package"
          },
          {
            "displayName": "Is Scannable",
            "name": "is_scannable",
            "type": "boolean",
            "default": false,
            "description": "Whether this package has a scannable code"
          }
        ]
      }
    ]
  },
  {
    "displayName": "Options",
    "name": "options",
    "type": "collection",
    "placeholder": "Add Option",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "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": "Client",
        "name": "client",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getClients"
        },
        "default": "",
        "description": "Filter by client"
      },
      {
        "displayName": "Agent",
        "name": "agent",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getAgents"
        },
        "default": "",
        "description": "Filter by agent"
      },
      {
        "displayName": "Service",
        "name": "service",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getServices"
        },
        "default": "",
        "description": "Filter by service"
      },
      {
        "displayName": "Search",
        "name": "search",
        "type": "string",
        "default": "",
        "description": "Search term to filter missions"
      },
      {
        "displayName": "Hide Finished Missions",
        "name": "hide_finished",
        "type": "boolean",
        "default": false,
        "description": "Whether to hide finished missions and only return ongoing ones"
      },
      {
        "displayName": "Statuses",
        "name": "statuses",
        "type": "string",
        "default": "",
        "description": "Filter by specific statuses (comma-separated status slugs)",
        "placeholder": "delivery-ok,pickup,cancelled"
      },
      {
        "displayName": "Start Date From",
        "name": "date_between_start",
        "type": "dateTime",
        "default": "",
        "description": "Filter missions with start date from this date/time (Europe/Paris timezone)",
        "placeholder": "2025-06-26 09:40"
      },
      {
        "displayName": "Start Date To",
        "name": "date_between_end",
        "type": "dateTime",
        "default": "",
        "description": "Filter missions with start date until this date/time (Europe/Paris timezone)",
        "placeholder": "2025-06-26 18:00"
      },
      {
        "displayName": "Order By",
        "name": "order_by",
        "type": "options",
        "options": [
          {
            "name": "Date Created",
            "value": "date_created"
          },
          {
            "name": "Date Modified",
            "value": "date_modified"
          },
          {
            "name": "Last Status Date",
            "value": "last_status_date"
          },
          {
            "name": "Start Date",
            "value": "start_date"
          },
          {
            "name": "Distance",
            "value": "distance"
          },
          {
            "name": "Duration",
            "value": "duration"
          }
        ],
        "default": "start_date",
        "description": "Field to order results by"
      },
      {
        "displayName": "Order Direction",
        "name": "order_by_order",
        "type": "options",
        "options": [
          {
            "name": "Ascending",
            "value": "ASC"
          },
          {
            "name": "Descending",
            "value": "DESC"
          }
        ],
        "default": "DESC",
        "description": "Order direction"
      }
    ]
  },
  {
    "displayName": "Mission Reference",
    "name": "ref",
    "type": "string",
    "required": false,
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "accept"
        ]
      }
    },
    "default": "",
    "description": "The reference of the mission to accept"
  },
  {
    "displayName": "Agent",
    "name": "agent_id",
    "type": "options",
    "typeOptions": {
      "loadOptionsMethod": "getAgents"
    },
    "required": false,
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "accept"
        ]
      }
    },
    "default": "",
    "description": "Agent accepting the mission"
  },
  {
    "displayName": "Mission References",
    "name": "refs",
    "type": "string",
    "required": false,
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "setStatus"
        ]
      }
    },
    "default": "",
    "description": "Mission references (comma-separated for multiple)",
    "placeholder": "ABC123XXX,DEF456YYY,GHI789ZZZ"
  },
  {
    "displayName": "Status",
    "name": "status",
    "type": "options",
    "typeOptions": {
      "loadOptionsMethod": "getStatuses"
    },
    "required": false,
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "setStatus"
        ]
      }
    },
    "default": "",
    "description": "New status for the mission(s)"
  },
  {
    "displayName": "Status Details",
    "name": "statusDetails",
    "type": "collection",
    "placeholder": "Add Detail",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "mission"
        ],
        "operation": [
          "setStatus"
        ]
      }
    },
    "options": [
      {
        "displayName": "Comment",
        "name": "comment",
        "type": "string",
        "default": "",
        "description": "Comment for the status change"
      },
      {
        "displayName": "Signature (Base64)",
        "name": "signature",
        "type": "string",
        "default": "",
        "description": "Base64 encoded signature image"
      },
      {
        "displayName": "Latitude",
        "name": "lat",
        "type": "string",
        "default": "",
        "description": "GPS latitude of the status update"
      },
      {
        "displayName": "Longitude",
        "name": "lng",
        "type": "string",
        "default": "",
        "description": "GPS longitude of the status update"
      }
    ]
  },
  {
    "displayName": "Operation",
    "name": "operation",
    "type": "options",
    "noDataExpression": true,
    "displayOptions": {
      "show": {
        "resource": [
          "client"
        ]
      }
    },
    "options": [
      {
        "name": "Create",
        "value": "create",
        "description": "Create a new client",
        "action": "Create a client"
      },
      {
        "name": "Delete",
        "value": "delete",
        "description": "Delete a client",
        "action": "Delete a client"
      },
      {
        "name": "Get",
        "value": "get",
        "description": "Get a client by ID",
        "action": "Get a client"
      },
      {
        "name": "Get Many",
        "value": "getMany",
        "description": "Get multiple clients",
        "action": "Get many clients"
      },
      {
        "name": "Update",
        "value": "update",
        "description": "Update a client",
        "action": "Update a client"
      }
    ],
    "default": "get"
  },
  {
    "displayName": "Client ID",
    "name": "id",
    "type": "number",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "client"
        ],
        "operation": [
          "get",
          "delete",
          "update"
        ]
      }
    },
    "default": 0,
    "description": "The ID of the client"
  },
  {
    "displayName": "Email",
    "name": "email",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "client"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Email address of the client",
    "placeholder": "client@company.com"
  },
  {
    "displayName": "First Name",
    "name": "first_name",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "client"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "First name of the client"
  },
  {
    "displayName": "Last Name",
    "name": "last_name",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "client"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Last name of the client"
  },
  {
    "displayName": "Phone",
    "name": "tel",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "client"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Phone number of the client"
  },
  {
    "displayName": "Password",
    "name": "password",
    "type": "string",
    "typeOptions": {
      "password": true
    },
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "client"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Password for the client account"
  },
  {
    "displayName": "Confirm Password",
    "name": "password_repeat",
    "type": "string",
    "typeOptions": {
      "password": true
    },
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "client"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Confirm the password"
  },
  {
    "displayName": "Additional Fields",
    "name": "additionalFields",
    "type": "collection",
    "placeholder": "Add Field",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "client"
        ],
        "operation": [
          "create",
          "update"
        ]
      }
    },
    "options": [
      {
        "displayName": "Internal Code",
        "name": "internal_code",
        "type": "string",
        "default": "",
        "description": "Internal reference code for the client"
      },
      {
        "displayName": "Accounting Code",
        "name": "accounting_code",
        "type": "string",
        "default": "",
        "description": "Accounting reference code for the client"
      },
      {
        "displayName": "VAT Rate (%)",
        "name": "vat",
        "type": "number",
        "default": 20,
        "description": "VAT rate applied to this client"
      },
      {
        "displayName": "VAT Number",
        "name": "vat_number",
        "type": "string",
        "default": "",
        "description": "VAT identification number"
      },
      {
        "displayName": "Address Line 1",
        "name": "address_line1",
        "type": "string",
        "default": "",
        "description": "Primary address line"
      },
      {
        "displayName": "Address Line 2",
        "name": "address_line2",
        "type": "string",
        "default": "",
        "description": "Secondary address line"
      },
      {
        "displayName": "Billing Name",
        "name": "billing_name",
        "type": "string",
        "default": "",
        "description": "Company name for billing"
      },
      {
        "displayName": "Billing Email",
        "name": "billing_email",
        "type": "string",
        "default": "",
        "description": "Email address for billing"
      },
      {
        "displayName": "Billing Address",
        "name": "billing_address",
        "type": "string",
        "default": "",
        "description": "Address for billing"
      },
      {
        "displayName": "Billing Complementary Info",
        "name": "billing_complementary",
        "type": "string",
        "default": "",
        "description": "Additional billing information"
      },
      {
        "displayName": "Fuel Surcharge",
        "name": "fuel_surcharge",
        "type": "number",
        "default": 0,
        "description": "Fuel surcharge percentage applied to missions"
      },
      {
        "displayName": "Photo (Base64)",
        "name": "photo",
        "type": "string",
        "default": "",
        "description": "Base64 encoded profile photo"
      },
      {
        "displayName": "Periodic Invoicing",
        "name": "is_periodic_invoiced",
        "type": "boolean",
        "default": false,
        "description": "Whether client is invoiced periodically"
      },
      {
        "displayName": "Invoice Period",
        "name": "invoice_period",
        "type": "options",
        "options": [
          {
            "name": "1st of Month",
            "value": "1st_of_month"
          }
        ],
        "default": "1st_of_month",
        "description": "Invoicing period for periodic invoicing"
      },
      {
        "displayName": "Invoice Period Extra",
        "name": "invoice_period_extra",
        "type": "number",
        "default": 0,
        "description": "Additional parameter for invoicing period"
      },
      {
        "displayName": "Status",
        "name": "status",
        "type": "options",
        "options": [
          {
            "name": "Active",
            "value": 1
          },
          {
            "name": "Inactive",
            "value": 0
          }
        ],
        "default": 1,
        "description": "Client account status"
      },
      {
        "displayName": "Establishment",
        "name": "establishment_id",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getEstablishments"
        },
        "default": "",
        "description": "Establishment this client belongs to"
      }
    ]
  },
  {
    "displayName": "Update Fields",
    "name": "updateFields",
    "type": "collection",
    "placeholder": "Add Field",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "client"
        ],
        "operation": [
          "update"
        ]
      }
    },
    "options": [
      {
        "displayName": "Email",
        "name": "email",
        "type": "string",
        "default": "",
        "description": "Email address of the client"
      },
      {
        "displayName": "First Name",
        "name": "first_name",
        "type": "string",
        "default": "",
        "description": "First name of the client"
      },
      {
        "displayName": "Last Name",
        "name": "last_name",
        "type": "string",
        "default": "",
        "description": "Last name of the client"
      },
      {
        "displayName": "Phone",
        "name": "tel",
        "type": "string",
        "default": "",
        "description": "Phone number of the client"
      },
      {
        "displayName": "Password",
        "name": "password",
        "type": "string",
        "typeOptions": {
          "password": true
        },
        "default": "",
        "description": "New password for the client"
      },
      {
        "displayName": "Confirm Password",
        "name": "password_repeat",
        "type": "string",
        "typeOptions": {
          "password": true
        },
        "default": "",
        "description": "Confirm the new password"
      }
    ]
  },
  {
    "displayName": "Custom Information Requirements",
    "name": "custom_infos",
    "type": "fixedCollection",
    "default": {},
    "placeholder": "Add Custom Info",
    "displayOptions": {
      "show": {
        "resource": [
          "client"
        ],
        "operation": [
          "create",
          "update"
        ]
      }
    },
    "typeOptions": {
      "multipleValues": true
    },
    "options": [
      {
        "name": "info",
        "displayName": "Custom Info",
        "values": [
          {
            "displayName": "Name",
            "name": "name",
            "type": "string",
            "default": "",
            "description": "Name of the custom information field"
          },
          {
            "displayName": "Mandatory",
            "name": "mandatory",
            "type": "boolean",
            "default": false,
            "description": "Whether this field is mandatory when creating missions"
          }
        ]
      }
    ]
  },
  {
    "displayName": "Options",
    "name": "options",
    "type": "collection",
    "placeholder": "Add Option",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "client"
        ],
        "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 clients"
      },
      {
        "displayName": "Start Date From",
        "name": "date_between_start",
        "type": "dateTime",
        "default": "",
        "description": "Filter clients who had missions from this date/time (Europe/Paris timezone)",
        "placeholder": "2025-01-01 00:00"
      },
      {
        "displayName": "Start Date To",
        "name": "date_between_end",
        "type": "dateTime",
        "default": "",
        "description": "Filter clients who had missions until this date/time (Europe/Paris timezone)",
        "placeholder": "2025-12-31 23:59"
      },
      {
        "displayName": "With Missions Only",
        "name": "with_missions",
        "type": "boolean",
        "default": false,
        "description": "If true, returns only clients who have missions (can be used without date filters)"
      }
    ]
  },
  {
    "displayName": "Operation",
    "name": "operation",
    "type": "options",
    "noDataExpression": true,
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ]
      }
    },
    "options": [
      {
        "name": "Create",
        "value": "create",
        "description": "Create a new agent",
        "action": "Create an agent"
      },
      {
        "name": "Delete",
        "value": "delete",
        "description": "Delete an agent",
        "action": "Delete an agent"
      },
      {
        "name": "Get",
        "value": "get",
        "description": "Get an agent by ID",
        "action": "Get an agent"
      },
      {
        "name": "Get Many",
        "value": "getMany",
        "description": "Get multiple agents",
        "action": "Get many agents"
      },
      {
        "name": "Update",
        "value": "update",
        "description": "Update an agent",
        "action": "Update an agent"
      },
      {
        "name": "Update Location",
        "value": "updateLocation",
        "description": "Update agent location",
        "action": "Update agent location"
      }
    ],
    "default": "get"
  },
  {
    "displayName": "Agent ID",
    "name": "id",
    "type": "number",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "operation": [
          "get",
          "delete",
          "update"
        ]
      }
    },
    "default": 0,
    "description": "The ID of the agent"
  },
  {
    "displayName": "Email",
    "name": "email",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Email address of the agent",
    "placeholder": "agent@company.com"
  },
  {
    "displayName": "First Name",
    "name": "first_name",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "First name of the agent"
  },
  {
    "displayName": "Last Name",
    "name": "last_name",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Last name of the agent"
  },
  {
    "displayName": "Address Line 1",
    "name": "address_line1",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Primary address of the agent"
  },
  {
    "displayName": "Password",
    "name": "password",
    "type": "string",
    "typeOptions": {
      "password": true
    },
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Password for the agent account"
  },
  {
    "displayName": "Confirm Password",
    "name": "password_repeat",
    "type": "string",
    "typeOptions": {
      "password": true
    },
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Confirm the password"
  },
  {
    "displayName": "Additional Fields",
    "name": "additionalFields",
    "type": "collection",
    "placeholder": "Add Field",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "operation": [
          "create",
          "update"
        ]
      }
    },
    "options": [
      {
        "displayName": "Phone",
        "name": "tel",
        "type": "string",
        "default": "",
        "description": "Phone number of the agent"
      },
      {
        "displayName": "Address Line 2",
        "name": "address_line2",
        "type": "string",
        "default": "",
        "description": "Secondary address line"
      },
      {
        "displayName": "Billing Name",
        "name": "billing_name",
        "type": "string",
        "default": "",
        "description": "Company name for billing"
      },
      {
        "displayName": "Billing Address",
        "name": "billing_address",
        "type": "string",
        "default": "",
        "description": "Address for billing"
      },
      {
        "displayName": "Company Number",
        "name": "company_number",
        "type": "string",
        "default": "",
        "description": "Company registration number"
      },
      {
        "displayName": "Minimum Price",
        "name": "price_min",
        "type": "number",
        "default": 0,
        "description": "Minimum price the agent accepts for missions"
      },
      {
        "displayName": "Maximum Price",
        "name": "price_max",
        "type": "number",
        "default": 0,
        "description": "Maximum price the agent accepts for missions"
      },
      {
        "displayName": "Maximum Distance (km)",
        "name": "dist_max",
        "type": "number",
        "default": 0,
        "description": "Maximum distance the agent is willing to travel"
      },
      {
        "displayName": "Latitude",
        "name": "lat",
        "type": "string",
        "default": "",
        "description": "GPS latitude of the agent"
      },
      {
        "displayName": "Longitude",
        "name": "lng",
        "type": "string",
        "default": "",
        "description": "GPS longitude of the agent"
      },
      {
        "displayName": "Photo (Base64)",
        "name": "photo",
        "type": "string",
        "default": "",
        "description": "Base64 encoded profile photo"
      },
      {
        "displayName": "Available",
        "name": "available",
        "type": "boolean",
        "default": true,
        "description": "Whether the agent is available for missions"
      },
      {
        "displayName": "Status",
        "name": "status",
        "type": "options",
        "options": [
          {
            "name": "Active",
            "value": 1
          },
          {
            "name": "Inactive",
            "value": 0
          }
        ],
        "default": 1,
        "description": "Agent account status"
      },
      {
        "displayName": "Establishment",
        "name": "establishment_id",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getEstablishments"
        },
        "default": "",
        "description": "Establishment this agent belongs to"
      }
    ]
  },
  {
    "displayName": "Update Fields",
    "name": "updateFields",
    "type": "collection",
    "placeholder": "Add Field",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "operation": [
          "update"
        ]
      }
    },
    "options": [
      {
        "displayName": "Email",
        "name": "email",
        "type": "string",
        "default": "",
        "description": "Email address of the agent"
      },
      {
        "displayName": "First Name",
        "name": "first_name",
        "type": "string",
        "default": "",
        "description": "First name of the agent"
      },
      {
        "displayName": "Last Name",
        "name": "last_name",
        "type": "string",
        "default": "",
        "description": "Last name of the agent"
      },
      {
        "displayName": "Password",
        "name": "password",
        "type": "string",
        "typeOptions": {
          "password": true
        },
        "default": "",
        "description": "New password for the agent"
      },
      {
        "displayName": "Confirm Password",
        "name": "password_repeat",
        "type": "string",
        "typeOptions": {
          "password": true
        },
        "default": "",
        "description": "Confirm the new password"
      }
    ]
  },
  {
    "displayName": "Agent ID",
    "name": "id",
    "type": "number",
    "required": false,
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "operation": [
          "updateLocation"
        ]
      }
    },
    "default": 0,
    "description": "The ID of the agent (optional, will use authenticated agent if not provided)"
  },
  {
    "displayName": "Latitude",
    "name": "lat",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "operation": [
          "updateLocation"
        ]
      }
    },
    "default": "",
    "description": "GPS latitude of the agent"
  },
  {
    "displayName": "Longitude",
    "name": "lng",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "operation": [
          "updateLocation"
        ]
      }
    },
    "default": "",
    "description": "GPS longitude of the agent"
  },
  {
    "displayName": "Options",
    "name": "options",
    "type": "collection",
    "placeholder": "Add Option",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "agent"
        ],
        "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 agents by name, email, or phone"
      },
      {
        "displayName": "Available Only",
        "name": "available",
        "type": "boolean",
        "default": false,
        "description": "Filter to show only available agents"
      },
      {
        "displayName": "Active Only",
        "name": "active",
        "type": "boolean",
        "default": false,
        "description": "Filter to show only active agent accounts"
      }
    ]
  },
  {
    "displayName": "Operation",
    "name": "operation",
    "type": "options",
    "noDataExpression": true,
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ]
      }
    },
    "options": [
      {
        "name": "Create",
        "value": "create",
        "description": "Create a new invoice",
        "action": "Create an invoice"
      },
      {
        "name": "Delete",
        "value": "delete",
        "description": "Delete an invoice",
        "action": "Delete an invoice"
      },
      {
        "name": "Get",
        "value": "get",
        "description": "Get an invoice by ID",
        "action": "Get an invoice"
      },
      {
        "name": "Get Many",
        "value": "getMany",
        "description": "Get multiple invoices",
        "action": "Get many invoices"
      },
      {
        "name": "Update",
        "value": "update",
        "description": "Update an invoice",
        "action": "Update an invoice"
      }
    ],
    "default": "get"
  },
  {
    "displayName": "Invoice ID",
    "name": "id",
    "type": "number",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "operation": [
          "get",
          "delete",
          "update"
        ]
      }
    },
    "default": 0,
    "description": "The ID of the invoice"
  },
  {
    "displayName": "Type",
    "name": "type",
    "type": "options",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "options": [
      {
        "name": "Estimate",
        "value": 0
      },
      {
        "name": "Invoice",
        "value": 1
      }
    ],
    "default": 1,
    "description": "Type of invoice: 0 for estimate, 1 for invoice"
  },
  {
    "displayName": "Title",
    "name": "title",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Title of the invoice",
    "placeholder": "Invoice for XXXX"
  },
  {
    "displayName": "Description",
    "name": "description",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Description of the invoice",
    "placeholder": "Invoice for missions done from XXXX-XX-XX to XXXX-XX-XX [...]"
  },
  {
    "displayName": "Name or Company",
    "name": "name_or_company",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Company name for the invoice",
    "placeholder": "JohnDoe Inc."
  },
  {
    "displayName": "Address",
    "name": "address",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Address for the invoice",
    "placeholder": "42 fake street, 75001 Paris"
  },
  {
    "displayName": "Amount Excluding Tax",
    "name": "amount_excl",
    "type": "number",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": 0,
    "description": "Amount excluding taxes"
  },
  {
    "displayName": "Amount Including Tax",
    "name": "amount_incl",
    "type": "number",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": 0,
    "description": "Amount including taxes"
  },
  {
    "displayName": "Created For",
    "name": "created_for",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Who the invoice is created for (e.g., client:123)",
    "placeholder": "client:123"
  },
  {
    "displayName": "Additional Fields",
    "name": "additionalFields",
    "type": "collection",
    "placeholder": "Add Field",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "options": [
      {
        "displayName": "Created By",
        "name": "created_by",
        "type": "string",
        "default": "platform",
        "description": "Who created the invoice"
      },
      {
        "displayName": "Validated",
        "name": "validated",
        "type": "options",
        "options": [
          {
            "name": "Yes",
            "value": 1
          },
          {
            "name": "No",
            "value": 0
          }
        ],
        "default": 1,
        "description": "Whether the invoice is validated"
      },
      {
        "displayName": "Status",
        "name": "status",
        "type": "options",
        "options": [
          {
            "name": "Paid",
            "value": 1
          },
          {
            "name": "Unpaid",
            "value": 0
          }
        ],
        "default": 0,
        "description": "Payment status of the invoice"
      },
      {
        "displayName": "Date Paid",
        "name": "date_paid",
        "type": "dateTime",
        "default": "",
        "description": "Date when the invoice was paid"
      }
    ]
  },
  {
    "displayName": "Mission References",
    "name": "missions",
    "type": "string",
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Mission references (comma-separated)",
    "placeholder": "XXXXXXXX,XXXXXXXX,XXXXXXXX"
  },
  {
    "displayName": "Update Fields",
    "name": "updateFields",
    "type": "collection",
    "placeholder": "Add Field",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "operation": [
          "update"
        ]
      }
    },
    "options": [
      {
        "displayName": "Type",
        "name": "type",
        "type": "options",
        "options": [
          {
            "name": "Estimate",
            "value": 0
          },
          {
            "name": "Invoice",
            "value": 1
          }
        ],
        "default": 1,
        "description": "Type of invoice"
      },
      {
        "displayName": "Title",
        "name": "title",
        "type": "string",
        "default": "",
        "description": "Title of the invoice"
      },
      {
        "displayName": "Description",
        "name": "description",
        "type": "string",
        "default": "",
        "description": "Description of the invoice"
      },
      {
        "displayName": "Name or Company",
        "name": "name_or_company",
        "type": "string",
        "default": "",
        "description": "Company name for the invoice"
      },
      {
        "displayName": "Address",
        "name": "address",
        "type": "string",
        "default": "",
        "description": "Address for the invoice"
      },
      {
        "displayName": "Amount Excluding Tax",
        "name": "amount_excl",
        "type": "number",
        "default": 0,
        "description": "Amount excluding taxes"
      },
      {
        "displayName": "Amount Including Tax",
        "name": "amount_incl",
        "type": "number",
        "default": 0,
        "description": "Amount including taxes"
      },
      {
        "displayName": "Created For",
        "name": "created_for",
        "type": "string",
        "default": "",
        "description": "Who the invoice is created for"
      },
      {
        "displayName": "Created By",
        "name": "created_by",
        "type": "string",
        "default": "",
        "description": "Who created the invoice"
      },
      {
        "displayName": "Validated",
        "name": "validated",
        "type": "options",
        "options": [
          {
            "name": "Yes",
            "value": 1
          },
          {
            "name": "No",
            "value": 0
          }
        ],
        "default": 1,
        "description": "Whether the invoice is validated"
      },
      {
        "displayName": "Status",
        "name": "status",
        "type": "options",
        "options": [
          {
            "name": "Paid",
            "value": 1
          },
          {
            "name": "Unpaid",
            "value": 0
          }
        ],
        "default": 0,
        "description": "Payment status of the invoice"
      },
      {
        "displayName": "Date Paid",
        "name": "date_paid",
        "type": "dateTime",
        "default": "",
        "description": "Date when the invoice was paid"
      },
      {
        "displayName": "Mission References",
        "name": "missions",
        "type": "string",
        "default": "",
        "description": "Mission references (comma-separated)"
      }
    ]
  },
  {
    "displayName": "Options",
    "name": "options",
    "type": "collection",
    "placeholder": "Add Option",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "invoice"
        ],
        "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 invoices"
      }
    ]
  },
  {
    "displayName": "Operation",
    "name": "operation",
    "type": "options",
    "noDataExpression": true,
    "displayOptions": {
      "show": {
        "resource": [
          "contact"
        ]
      }
    },
    "options": [
      {
        "name": "Create",
        "value": "create",
        "description": "Create a new CRM contact",
        "action": "Create a contact"
      },
      {
        "name": "Create Event",
        "value": "createEvent",
        "description": "Create an event for a contact",
        "action": "Create contact event"
      },
      {
        "name": "Delete",
        "value": "delete",
        "description": "Delete a contact",
        "action": "Delete a contact"
      },
      {
        "name": "Get",
        "value": "get",
        "description": "Get a contact by ID",
        "action": "Get a contact"
      },
      {
        "name": "Get Many",
        "value": "getMany",
        "description": "Get multiple contacts",
        "action": "Get many contacts"
      },
      {
        "name": "Update",
        "value": "update",
        "description": "Update a contact",
        "action": "Update a contact"
      }
    ],
    "default": "get"
  },
  {
    "displayName": "Contact ID",
    "name": "id",
    "type": "number",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "contact"
        ],
        "operation": [
          "get",
          "delete",
          "update",
          "createEvent"
        ]
      }
    },
    "default": 0,
    "description": "The ID of the contact"
  },
  {
    "displayName": "Email",
    "name": "email",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "contact"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Email address of the contact",
    "placeholder": "johndoe@domain.tld"
  },
  {
    "displayName": "Phone",
    "name": "tel",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "contact"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Phone number of the contact",
    "placeholder": "0033123456789"
  },
  {
    "displayName": "Additional Fields",
    "name": "additionalFields",
    "type": "collection",
    "placeholder": "Add Field",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "contact"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "options": [
      {
        "displayName": "First Name",
        "name": "first_name",
        "type": "string",
        "default": "",
        "description": "First name of the contact"
      },
      {
        "displayName": "Last Name",
        "name": "last_name",
        "type": "string",
        "default": "",
        "description": "Last name of the contact"
      },
      {
        "displayName": "Company",
        "name": "company",
        "type": "string",
        "default": "",
        "description": "Company of the contact"
      },
      {
        "displayName": "Job",
        "name": "job",
        "type": "string",
        "default": "",
        "description": "Job title of the contact"
      },
      {
        "displayName": "Points",
        "name": "points",
        "type": "number",
        "default": 0,
        "description": "CRM points for this contact"
      }
    ]
  },
  {
    "displayName": "Update Fields",
    "name": "updateFields",
    "type": "collection",
    "placeholder": "Add Field",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "contact"
        ],
        "operation": [
          "update"
        ]
      }
    },
    "options": [
      {
        "displayName": "Email",
        "name": "email",
        "type": "string",
        "default": "",
        "description": "Email address of the contact"
      },
      {
        "displayName": "Phone",
        "name": "tel",
        "type": "string",
        "default": "",
        "description": "Phone number of the contact"
      },
      {
        "displayName": "First Name",
        "name": "first_name",
        "type": "string",
        "default": "",
        "description": "First name of the contact"
      },
      {
        "displayName": "Last Name",
        "name": "last_name",
        "type": "string",
        "default": "",
        "description": "Last name of the contact"
      },
      {
        "displayName": "Company",
        "name": "company",
        "type": "string",
        "default": "",
        "description": "Company of the contact"
      },
      {
        "displayName": "Job",
        "name": "job",
        "type": "string",
        "default": "",
        "description": "Job title of the contact"
      },
      {
        "displayName": "Points",
        "name": "points",
        "type": "number",
        "default": 0,
        "description": "CRM points for this contact"
      }
    ]
  },
  {
    "displayName": "Event Type",
    "name": "type",
    "type": "options",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "contact"
        ],
        "operation": [
          "createEvent"
        ]
      }
    },
    "options": [
      {
        "name": "Contact Created",
        "value": "contact_created"
      },
      {
        "name": "Contact Updated",
        "value": "contact_updated"
      },
      {
        "name": "Email Sent",
        "value": "email_sent"
      },
      {
        "name": "Email Opened",
        "value": "email_opened"
      },
      {
        "name": "Form Submitted",
        "value": "form_submitted"
      },
      {
        "name": "Custom",
        "value": "custom"
      },
      {
        "name": "Phone Call Incoming",
        "value": "phone_call_incoming"
      },
      {
        "name": "Phone Call Outgoing",
        "value": "phone_call_outgoing"
      }
    ],
    "default": "custom",
    "description": "Type of event to create"
  },
  {
    "displayName": "Description",
    "name": "desc",
    "type": "string",
    "displayOptions": {
      "show": {
        "resource": [
          "contact"
        ],
        "operation": [
          "createEvent"
        ]
      }
    },
    "default": "",
    "description": "Description of the event",
    "placeholder": "Just had a conversation with this contact [...]"
  },
  {
    "displayName": "Options",
    "name": "options",
    "type": "collection",
    "placeholder": "Add Option",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "contact"
        ],
        "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 contacts"
      }
    ]
  },
  {
    "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"
  },
  {
    "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"
  },
  {
    "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"
      }
    ]
  },
  {
    "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"
      }
    ]
  },
  {
    "displayName": "Operation",
    "name": "operation",
    "type": "options",
    "noDataExpression": true,
    "displayOptions": {
      "show": {
        "resource": [
          "walter"
        ]
      }
    },
    "options": [
      {
        "name": "Send Prompt",
        "value": "prompt",
        "description": "Send a question or command to Walter AI assistant",
        "action": "Send prompt to Walter"
      },
      {
        "name": "Send Message",
        "value": "say",
        "description": "Send a message from Walter to user conversation history",
        "action": "Send message from Walter"
      },
      {
        "name": "Get Commands",
        "value": "getCommands",
        "description": "Get a list of all available commands that Walter can execute",
        "action": "Get Walter commands"
      }
    ],
    "default": "prompt"
  },
  {
    "displayName": "Question",
    "name": "question",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "walter"
        ],
        "operation": [
          "prompt"
        ]
      }
    },
    "default": "",
    "description": "Question or command to send to Walter",
    "placeholder": "Show me today's missions"
  },
  {
    "displayName": "User ID",
    "name": "user_id",
    "type": "number",
    "displayOptions": {
      "show": {
        "resource": [
          "walter"
        ],
        "operation": [
          "prompt"
        ]
      }
    },
    "default": 0,
    "description": "ID of the user for whom Walter should respond (optional, defaults to authenticated user)"
  },
  {
    "displayName": "Save to History",
    "name": "save_to_history",
    "type": "boolean",
    "displayOptions": {
      "show": {
        "resource": [
          "walter"
        ],
        "operation": [
          "prompt"
        ]
      }
    },
    "default": true,
    "description": "Whether to save this interaction to conversation history"
  },
  {
    "displayName": "Message",
    "name": "message",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "walter"
        ],
        "operation": [
          "say"
        ]
      }
    },
    "default": "",
    "description": "Message content from Walter",
    "placeholder": "Hello! I have an update for you."
  },
  {
    "displayName": "User ID",
    "name": "user_id",
    "type": "number",
    "displayOptions": {
      "show": {
        "resource": [
          "walter"
        ],
        "operation": [
          "say"
        ]
      }
    },
    "default": 0,
    "description": "ID of the user to whom Walter should send the message (optional, defaults to authenticated user)"
  },
  {
    "displayName": "Save to History",
    "name": "save_to_history",
    "type": "boolean",
    "displayOptions": {
      "show": {
        "resource": [
          "walter"
        ],
        "operation": [
          "say"
        ]
      }
    },
    "default": true,
    "description": "Whether to save this message to conversation history"
  },
  {
    "displayName": "Commands",
    "name": "commands",
    "type": "fixedCollection",
    "default": {},
    "placeholder": "Add Command",
    "displayOptions": {
      "show": {
        "resource": [
          "walter"
        ],
        "operation": [
          "say"
        ]
      }
    },
    "typeOptions": {
      "multipleValues": true
    },
    "options": [
      {
        "name": "command",
        "displayName": "Command",
        "values": [
          {
            "displayName": "Command Name",
            "name": "command",
            "type": "string",
            "default": "",
            "description": "The command name",
            "placeholder": "get_missions"
          },
          {
            "displayName": "Parameters",
            "name": "parameters",
            "type": "string",
            "default": "",
            "description": "Command parameters (comma-separated)",
            "placeholder": "date_start,date_end"
          }
        ]
      }
    ]
  },
  {
    "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"
  },
  {
    "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"
  },
  {
    "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"
  },
  {
    "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"
  },
  {
    "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"
  },
  {
    "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": [
      {
        "name": "Backend Auth",
        "value": "backend_auth"
      },
      {
        "name": "User Created",
        "value": "user_created"
      },
      {
        "name": "User Updated",
        "value": "user_updated"
      },
      {
        "name": "User Deleted",
        "value": "user_deleted"
      },
      {
        "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"
      },
      {
        "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"
      },
      {
        "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"
      },
      {
        "name": "Invoice Created",
        "value": "invoice_created"
      },
      {
        "name": "Invoice Updated",
        "value": "invoice_updated"
      },
      {
        "name": "Invoice Deleted",
        "value": "invoice_deleted"
      },
      {
        "name": "Refund Created",
        "value": "refund_created"
      },
      {
        "name": "Contact Created",
        "value": "contact_created"
      },
      {
        "name": "Contact Updated",
        "value": "contact_updated"
      },
      {
        "name": "Contact Deleted",
        "value": "contact_deleted"
      },
      {
        "name": "Comment Created",
        "value": "comment_created"
      },
      {
        "name": "Comment Updated",
        "value": "comment_updated"
      },
      {
        "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"
      },
      {
        "name": "Form Created",
        "value": "form_created"
      },
      {
        "name": "Form Updated",
        "value": "form_updated"
      },
      {
        "name": "Support Email Sent",
        "value": "support_email_sent"
      }
    ],
    "default": "mission_created",
    "description": "The event to subscribe to"
  },
  {
    "displayName": "Operation",
    "name": "operation",
    "type": "options",
    "noDataExpression": true,
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ]
      }
    },
    "options": [
      {
        "name": "Create",
        "value": "create",
        "description": "Create a new optimized route",
        "action": "Create a route"
      },
      {
        "name": "Delete",
        "value": "delete",
        "description": "Delete a route",
        "action": "Delete a route"
      },
      {
        "name": "Get",
        "value": "get",
        "description": "Get a route by ID",
        "action": "Get a route"
      },
      {
        "name": "Get Many",
        "value": "getMany",
        "description": "Get multiple routes",
        "action": "Get many routes"
      },
      {
        "name": "Optimize",
        "value": "optimize",
        "description": "Optimize routes for vehicles and shipments",
        "action": "Optimize routes"
      },
      {
        "name": "Update",
        "value": "update",
        "description": "Update an existing route",
        "action": "Update a route"
      }
    ],
    "default": "getMany"
  },
  {
    "displayName": "Route ID",
    "name": "id",
    "type": "number",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "get",
          "delete",
          "update"
        ]
      }
    },
    "default": 0,
    "description": "The ID of the route"
  },
  {
    "displayName": "Mission References",
    "name": "mission_refs",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Mission references to include in the route (comma-separated)",
    "placeholder": "ABC123XXX,DEF456YYY,GHI789ZZZ"
  },
  {
    "displayName": "Vehicles",
    "name": "vehicles",
    "type": "string",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Platform vehicle IDs to use for the route (comma-separated)",
    "placeholder": "1,2,3"
  },
  {
    "displayName": "Additional Fields",
    "name": "additionalFields",
    "type": "collection",
    "placeholder": "Add Field",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "create",
          "update"
        ]
      }
    },
    "options": [
      {
        "displayName": "Name",
        "name": "name",
        "type": "string",
        "default": "",
        "description": "Name of the route",
        "placeholder": "Route du matin - Secteur Nord"
      },
      {
        "displayName": "Color",
        "name": "color",
        "type": "string",
        "default": "",
        "description": "Route color in hexadecimal format",
        "placeholder": "#FF5733"
      },
      {
        "displayName": "Agent",
        "name": "agent_id",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getAgents"
        },
        "default": "",
        "description": "Agent to assign to the route"
      },
      {
        "displayName": "Agent Vehicle ID",
        "name": "agent_vehicle_id",
        "type": "number",
        "default": 0,
        "description": "Specific agent vehicle ID to use"
      },
      {
        "displayName": "Start Address",
        "name": "address_start",
        "type": "string",
        "default": "",
        "description": "Starting address for the vehicle",
        "placeholder": "16 avenue Reille, 75014 Paris"
      },
      {
        "displayName": "End Address",
        "name": "address_end",
        "type": "string",
        "default": "",
        "description": "Ending address for the vehicle",
        "placeholder": "16 avenue Reille, 75014 Paris"
      },
      {
        "displayName": "Router",
        "name": "router",
        "type": "options",
        "options": [
          {
            "name": "Auto",
            "value": "auto"
          },
          {
            "name": "Manual",
            "value": "manual"
          },
          {
            "name": "VROOM",
            "value": "vroom"
          },
          {
            "name": "OSRM",
            "value": "osrm"
          }
        ],
        "default": "auto",
        "description": "Routing engine to use"
      },
      {
        "displayName": "Split Per Day",
        "name": "split_per_day",
        "type": "boolean",
        "default": true,
        "description": "Whether to split routes per day for multi-day planning"
      },
      {
        "displayName": "Early Departure",
        "name": "early_departure",
        "type": "boolean",
        "default": false,
        "description": "Whether to allow early departure"
      },
      {
        "displayName": "Distribute Fairly",
        "name": "distribute_fairly",
        "type": "boolean",
        "default": true,
        "description": "Whether to distribute tasks fairly among vehicles"
      },
      {
        "displayName": "Status",
        "name": "status",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getStatuses"
        },
        "default": "",
        "description": "Status to apply to all missions in the route"
      }
    ]
  },
  {
    "displayName": "Update Fields",
    "name": "updateFields",
    "type": "collection",
    "placeholder": "Add Field",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "update"
        ]
      }
    },
    "options": [
      {
        "displayName": "Mission References",
        "name": "mission_refs",
        "type": "string",
        "default": "",
        "description": "Updated mission references (comma-separated)",
        "placeholder": "ABC123XXX,DEF456YYY,NEW789ZZZ"
      },
      {
        "displayName": "Vehicles",
        "name": "vehicles",
        "type": "string",
        "default": "",
        "description": "Updated platform vehicle IDs (comma-separated)",
        "placeholder": "2,3"
      },
      {
        "displayName": "Optimize",
        "name": "optimize",
        "type": "boolean",
        "default": false,
        "description": "Whether to re-optimize the route"
      }
    ]
  },
  {
    "displayName": "Time Window Constraint",
    "name": "constraint_time_window",
    "type": "fixedCollection",
    "default": {},
    "placeholder": "Add Time Window Constraint",
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "options": [
      {
        "name": "window",
        "displayName": "Time Constraint",
        "values": [
          {
            "displayName": "Start Date & Time",
            "name": "start_datetime",
            "type": "dateTime",
            "default": "",
            "description": "Start date and time for the constraint (Europe/Paris timezone)",
            "placeholder": "2025-01-20 08:00"
          },
          {
            "displayName": "End Date & Time",
            "name": "end_datetime",
            "type": "dateTime",
            "default": "",
            "description": "End date and time for the constraint (Europe/Paris timezone)",
            "placeholder": "2025-01-20 18:00"
          }
        ]
      }
    ]
  },
  {
    "displayName": "Status Extras",
    "name": "status_extras",
    "type": "string",
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "default": "",
    "description": "Additional status information (comma-separated)",
    "placeholder": "extra_info_1,extra_info_2"
  },
  {
    "displayName": "Options",
    "name": "options",
    "type": "collection",
    "placeholder": "Add Option",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "getMany"
        ]
      }
    },
    "options": [
      {
        "displayName": "Limit",
        "name": "limit",
        "type": "number",
        "default": 10,
        "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": "Agent",
        "name": "agent",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getAgents"
        },
        "default": "",
        "description": "Filter by agent"
      },
      {
        "displayName": "Service",
        "name": "service",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getServices"
        },
        "default": "",
        "description": "Filter by service"
      },
      {
        "displayName": "Search",
        "name": "search",
        "type": "string",
        "default": "",
        "description": "Search term to filter routes"
      },
      {
        "displayName": "Hide Finished Routes",
        "name": "hide_finished",
        "type": "boolean",
        "default": false,
        "description": "Whether to hide finished routes and only return ongoing ones"
      },
      {
        "displayName": "Statuses",
        "name": "statuses",
        "type": "string",
        "default": "",
        "description": "Filter by specific statuses (comma-separated status slugs)",
        "placeholder": "delivery-ok,pickup,cancelled"
      },
      {
        "displayName": "Start Date From",
        "name": "date_between_start",
        "type": "dateTime",
        "default": "",
        "description": "Filter routes with start date from this date/time (Europe/Paris timezone)",
        "placeholder": "2025-06-26 09:40"
      },
      {
        "displayName": "Start Date To",
        "name": "date_between_end",
        "type": "dateTime",
        "default": "",
        "description": "Filter routes with start date until this date/time (Europe/Paris timezone)",
        "placeholder": "2025-06-26 18:00"
      },
      {
        "displayName": "Order By",
        "name": "order_by",
        "type": "options",
        "options": [
          {
            "name": "Date Created",
            "value": "date_created"
          },
          {
            "name": "Date Modified",
            "value": "date_modified"
          },
          {
            "name": "Last Status Date",
            "value": "last_status_date"
          },
          {
            "name": "Start Date",
            "value": "start_date"
          },
          {
            "name": "Distance",
            "value": "distance"
          },
          {
            "name": "Duration",
            "value": "duration"
          }
        ],
        "default": "start_date",
        "description": "Field to order results by"
      },
      {
        "displayName": "Order Direction",
        "name": "order_by_order",
        "type": "options",
        "options": [
          {
            "name": "Ascending",
            "value": "ASC"
          },
          {
            "name": "Descending",
            "value": "DESC"
          }
        ],
        "default": "DESC",
        "description": "Order direction"
      }
    ]
  },
  {
    "displayName": "Shipments",
    "name": "shipments",
    "type": "fixedCollection",
    "required": true,
    "default": {},
    "placeholder": "Add Shipment",
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "optimize"
        ]
      }
    },
    "typeOptions": {
      "multipleValues": true
    },
    "options": [
      {
        "name": "shipment",
        "displayName": "Shipment",
        "values": [
          {
            "displayName": "Pickup",
            "name": "pickup",
            "type": "collection",
            "default": {},
            "placeholder": "Add Pickup Details",
            "options": [
              {
                "displayName": "ID",
                "name": "id",
                "type": "number",
                "default": 1,
                "description": "Unique identifier for the pickup point"
              },
              {
                "displayName": "Description",
                "name": "description",
                "type": "string",
                "default": "",
                "description": "Description of the pickup location"
              },
              {
                "displayName": "Location",
                "name": "location",
                "type": "fixedCollection",
                "default": {},
                "options": [
                  {
                    "name": "coordinates",
                    "displayName": "Coordinates",
                    "values": [
                      {
                        "displayName": "Longitude",
                        "name": "lng",
                        "type": "number",
                        "default": 0,
                        "description": "Longitude of pickup location"
                      },
                      {
                        "displayName": "Latitude",
                        "name": "lat",
                        "type": "number",
                        "default": 0,
                        "description": "Latitude of pickup location"
                      }
                    ]
                  }
                ]
              },
              {
                "displayName": "Setup Time (seconds)",
                "name": "setup",
                "type": "number",
                "default": 60,
                "description": "Setup time at pickup in seconds"
              },
              {
                "displayName": "Service Time (seconds)",
                "name": "service",
                "type": "number",
                "default": 300,
                "description": "Service time at pickup in seconds"
              },
              {
                "displayName": "Duration (seconds)",
                "name": "duration",
                "type": "number",
                "default": 0,
                "description": "Total duration override (optional, calculated if not provided)"
              },
              {
                "displayName": "Time Windows",
                "name": "time_windows",
                "type": "fixedCollection",
                "default": {},
                "placeholder": "Add Time Window",
                "typeOptions": {
                  "multipleValues": true
                },
                "options": [
                  {
                    "name": "window",
                    "displayName": "Time Window",
                    "values": [
                      {
                        "displayName": "Start Date & Time",
                        "name": "start_datetime",
                        "type": "dateTime",
                        "default": "",
                        "description": "Start date and time for the pickup window (Europe/Paris timezone)",
                        "placeholder": "2025-01-20 09:00"
                      },
                      {
                        "displayName": "End Date & Time",
                        "name": "end_datetime",
                        "type": "dateTime",
                        "default": "",
                        "description": "End date and time for the pickup window (Europe/Paris timezone)",
                        "placeholder": "2025-01-20 17:00"
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "displayName": "Delivery",
            "name": "delivery",
            "type": "collection",
            "default": {},
            "placeholder": "Add Delivery Details",
            "options": [
              {
                "displayName": "ID",
                "name": "id",
                "type": "number",
                "default": 2,
                "description": "Unique identifier for the delivery point"
              },
              {
                "displayName": "Description",
                "name": "description",
                "type": "string",
                "default": "",
                "description": "Description of the delivery location"
              },
              {
                "displayName": "Location",
                "name": "location",
                "type": "fixedCollection",
                "default": {},
                "options": [
                  {
                    "name": "coordinates",
                    "displayName": "Coordinates",
                    "values": [
                      {
                        "displayName": "Longitude",
                        "name": "lng",
                        "type": "number",
                        "default": 0,
                        "description": "Longitude of delivery location"
                      },
                      {
                        "displayName": "Latitude",
                        "name": "lat",
                        "type": "number",
                        "default": 0,
                        "description": "Latitude of delivery location"
                      }
                    ]
                  }
                ]
              },
              {
                "displayName": "Setup Time (seconds)",
                "name": "setup",
                "type": "number",
                "default": 60,
                "description": "Setup time at delivery in seconds"
              },
              {
                "displayName": "Service Time (seconds)",
                "name": "service",
                "type": "number",
                "default": 300,
                "description": "Service time at delivery in seconds"
              },
              {
                "displayName": "Duration (seconds)",
                "name": "duration",
                "type": "number",
                "default": 0,
                "description": "Total duration override (optional, calculated if not provided)"
              },
              {
                "displayName": "Time Windows",
                "name": "time_windows",
                "type": "fixedCollection",
                "default": {},
                "placeholder": "Add Time Window",
                "typeOptions": {
                  "multipleValues": true
                },
                "options": [
                  {
                    "name": "window",
                    "displayName": "Time Window",
                    "values": [
                      {
                        "displayName": "Start Date & Time",
                        "name": "start_datetime",
                        "type": "dateTime",
                        "default": "",
                        "description": "Start date and time for the delivery window (Europe/Paris timezone)",
                        "placeholder": "2025-01-20 10:00"
                      },
                      {
                        "displayName": "End Date & Time",
                        "name": "end_datetime",
                        "type": "dateTime",
                        "default": "",
                        "description": "End date and time for the delivery window (Europe/Paris timezone)",
                        "placeholder": "2025-01-20 18:00"
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "displayName": "Amount",
            "name": "amount",
            "type": "number",
            "default": 1,
            "description": "Number of items in the shipment"
          },
          {
            "displayName": "Volume (m³)",
            "name": "volume",
            "type": "number",
            "default": 0,
            "description": "Volume of the shipment in cubic meters"
          },
          {
            "displayName": "Weight (kg)",
            "name": "weight",
            "type": "number",
            "default": 0,
            "description": "Weight of the shipment in kilograms"
          },
          {
            "displayName": "Priority",
            "name": "priority",
            "type": "number",
            "default": 1,
            "description": "Priority level of the shipment (higher means more priority)"
          },
          {
            "displayName": "Skills",
            "name": "skills",
            "type": "multiOptions",
            "typeOptions": {
              "loadOptionsMethod": "getSkills"
            },
            "default": [],
            "description": "Required skills for this shipment"
          },
          {
            "displayName": "Metadata",
            "name": "metas",
            "type": "fixedCollection",
            "default": {},
            "placeholder": "Add Metadata",
            "typeOptions": {
              "multipleValues": true
            },
            "options": [
              {
                "name": "meta",
                "displayName": "Metadata",
                "values": [
                  {
                    "displayName": "Key",
                    "name": "key",
                    "type": "string",
                    "default": "",
                    "description": "Metadata key"
                  },
                  {
                    "displayName": "Value",
                    "name": "value",
                    "type": "string",
                    "default": "",
                    "description": "Metadata value"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  },
  {
    "displayName": "Vehicles",
    "name": "vehicles",
    "type": "fixedCollection",
    "required": true,
    "default": {},
    "placeholder": "Add Vehicle",
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "optimize"
        ]
      }
    },
    "typeOptions": {
      "multipleValues": true
    },
    "options": [
      {
        "name": "vehicle",
        "displayName": "Vehicle",
        "values": [
          {
            "displayName": "Vehicle ID",
            "name": "id",
            "type": "number",
            "default": 1,
            "description": "Unique identifier for the vehicle"
          },
          {
            "displayName": "Profile",
            "name": "profile",
            "type": "options",
            "options": [
              {
                "name": "Car",
                "value": "car"
              },
              {
                "name": "Truck",
                "value": "truck"
              },
              {
                "name": "Bike",
                "value": "bike"
              },
              {
                "name": "Walk",
                "value": "walk"
              }
            ],
            "default": "car",
            "description": "Vehicle profile type"
          },
          {
            "displayName": "Description",
            "name": "description",
            "type": "string",
            "default": "",
            "description": "Human-readable description of the vehicle"
          },
          {
            "displayName": "Start Location",
            "name": "start",
            "type": "fixedCollection",
            "default": {},
            "options": [
              {
                "name": "coordinates",
                "displayName": "Start Coordinates",
                "values": [
                  {
                    "displayName": "Longitude",
                    "name": "lng",
                    "type": "number",
                    "default": 0,
                    "description": "Starting longitude coordinates"
                  },
                  {
                    "displayName": "Latitude",
                    "name": "lat",
                    "type": "number",
                    "default": 0,
                    "description": "Starting latitude coordinates"
                  }
                ]
              }
            ]
          },
          {
            "displayName": "End Location",
            "name": "end",
            "type": "fixedCollection",
            "default": {},
            "options": [
              {
                "name": "coordinates",
                "displayName": "End Coordinates",
                "values": [
                  {
                    "displayName": "Longitude",
                    "name": "lng",
                    "type": "number",
                    "default": 0,
                    "description": "Ending longitude coordinates (optional)"
                  },
                  {
                    "displayName": "Latitude",
                    "name": "lat",
                    "type": "number",
                    "default": 0,
                    "description": "Ending latitude coordinates (optional)"
                  }
                ]
              }
            ]
          },
          {
            "displayName": "Capacity (items)",
            "name": "capacity",
            "type": "number",
            "default": 10,
            "description": "Maximum number of items the vehicle can carry"
          },
          {
            "displayName": "Weight Capacity (kg)",
            "name": "weight",
            "type": "number",
            "default": 250,
            "description": "Maximum weight capacity in kilograms"
          },
          {
            "displayName": "Volume Capacity (m³)",
            "name": "volume",
            "type": "number",
            "default": 1.3,
            "description": "Maximum volume capacity in cubic meters"
          },
          {
            "displayName": "Max Tasks",
            "name": "max_tasks",
            "type": "number",
            "default": 0,
            "description": "Maximum number of tasks (0 for unlimited)"
          },
          {
            "displayName": "Max Travel Time (seconds)",
            "name": "max_travel_time",
            "type": "number",
            "default": 0,
            "description": "Maximum travel time (0 for unlimited)"
          },
          {
            "displayName": "Max Distance (meters)",
            "name": "max_distance",
            "type": "number",
            "default": 0,
            "description": "Maximum distance (0 for unlimited)"
          },
          {
            "displayName": "Speed Factor",
            "name": "speed_factor",
            "type": "number",
            "default": 1,
            "description": "Speed factor relative to normal traffic"
          },
          {
            "displayName": "Priority",
            "name": "priority",
            "type": "number",
            "default": 1,
            "description": "Priority level (higher means more priority)"
          },
          {
            "displayName": "Skills",
            "name": "skills",
            "type": "multiOptions",
            "typeOptions": {
              "loadOptionsMethod": "getSkills"
            },
            "default": [],
            "description": "Skills that this vehicle possesses"
          },
          {
            "displayName": "Time Window",
            "name": "time_window",
            "type": "fixedCollection",
            "default": {},
            "options": [
              {
                "name": "window",
                "displayName": "Availability Window",
                "values": [
                  {
                    "displayName": "Start Date & Time",
                    "name": "start_datetime",
                    "type": "dateTime",
                    "default": "",
                    "description": "Start date and time for vehicle availability (Europe/Paris timezone)",
                    "placeholder": "2025-01-20 08:00"
                  },
                  {
                    "displayName": "End Date & Time",
                    "name": "end_datetime",
                    "type": "dateTime",
                    "default": "",
                    "description": "End date and time for vehicle availability (Europe/Paris timezone)",
                    "placeholder": "2025-01-20 18:00"
                  }
                ]
              }
            ]
          },
          {
            "displayName": "Show Start",
            "name": "show_start",
            "type": "boolean",
            "default": false,
            "description": "Whether to display the start location in outputs"
          },
          {
            "displayName": "Show End",
            "name": "show_end",
            "type": "boolean",
            "default": false,
            "description": "Whether to display the end location in outputs"
          },
          {
            "displayName": "Breaks",
            "name": "breaks",
            "type": "fixedCollection",
            "default": {},
            "placeholder": "Add Break",
            "typeOptions": {
              "multipleValues": true
            },
            "options": [
              {
                "name": "break",
                "displayName": "Break",
                "values": [
                  {
                    "displayName": "ID",
                    "name": "id",
                    "type": "number",
                    "default": 1,
                    "description": "Unique identifier for the break"
                  },
                  {
                    "displayName": "Description",
                    "name": "description",
                    "type": "string",
                    "default": "",
                    "description": "Description of the break"
                  },
                  {
                    "displayName": "Service Time (seconds)",
                    "name": "service",
                    "type": "number",
                    "default": 1800,
                    "description": "Service time required for the break in seconds"
                  },
                  {
                    "displayName": "Is Every Day",
                    "name": "is_every_day",
                    "type": "boolean",
                    "default": false,
                    "description": "Whether this break applies every day"
                  },
                  {
                    "displayName": "Time Windows",
                    "name": "time_windows",
                    "type": "fixedCollection",
                    "default": {},
                    "placeholder": "Add Time Window",
                    "typeOptions": {
                      "multipleValues": true
                    },
                    "options": [
                      {
                        "name": "window",
                        "displayName": "Time Window",
                        "values": [
                          {
                            "displayName": "Start Date & Time",
                            "name": "start_datetime",
                            "type": "dateTime",
                            "default": "",
                            "description": "Start date and time for the break window (Europe/Paris timezone)",
                            "placeholder": "2025-01-20 12:00"
                          },
                          {
                            "displayName": "End Date & Time",
                            "name": "end_datetime",
                            "type": "dateTime",
                            "default": "",
                            "description": "End date and time for the break window (Europe/Paris timezone)",
                            "placeholder": "2025-01-20 13:00"
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          },
          {
            "displayName": "Costs",
            "name": "costs",
            "type": "collection",
            "default": {},
            "placeholder": "Add Cost Details",
            "options": [
              {
                "displayName": "Fixed Cost",
                "name": "fixed",
                "type": "number",
                "default": 0,
                "description": "Fixed cost for using this vehicle"
              },
              {
                "displayName": "Cost Per Hour",
                "name": "per_hour",
                "type": "number",
                "default": 0,
                "description": "Cost per hour of operation"
              },
              {
                "displayName": "Cost Per Kilometer",
                "name": "per_km",
                "type": "number",
                "default": 0,
                "description": "Cost per kilometer traveled"
              }
            ]
          },
          {
            "displayName": "Metadata",
            "name": "metas",
            "type": "fixedCollection",
            "default": {},
            "placeholder": "Add Metadata",
            "typeOptions": {
              "multipleValues": true
            },
            "options": [
              {
                "name": "meta",
                "displayName": "Metadata",
                "values": [
                  {
                    "displayName": "Key",
                    "name": "key",
                    "type": "string",
                    "default": "",
                    "description": "Metadata key"
                  },
                  {
                    "displayName": "Value",
                    "name": "value",
                    "type": "string",
                    "default": "",
                    "description": "Metadata value"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  },
  {
    "displayName": "Matrices",
    "name": "matrices",
    "type": "fixedCollection",
    "default": {},
    "placeholder": "Add Matrix",
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "optimize"
        ]
      }
    },
    "typeOptions": {
      "multipleValues": true
    },
    "options": [
      {
        "name": "matrix",
        "displayName": "Matrix",
        "values": [
          {
            "displayName": "Profile",
            "name": "profile",
            "type": "options",
            "options": [
              {
                "name": "Car",
                "value": "car"
              },
              {
                "name": "Truck",
                "value": "truck"
              },
              {
                "name": "Bike",
                "value": "bike"
              }
            ],
            "default": "car",
            "description": "Vehicle profile for this matrix"
          },
          {
            "displayName": "Durations (JSON)",
            "name": "durations",
            "type": "string",
            "default": "",
            "description": "Durations matrix as JSON array (e.g., [[0,100],[100,0]])",
            "placeholder": "[[0,100,200],[100,0,150],[200,150,0]]"
          },
          {
            "displayName": "Distances (JSON)",
            "name": "distances",
            "type": "string",
            "default": "",
            "description": "Distances matrix as JSON array (e.g., [[0,1000],[1000,0]])",
            "placeholder": "[[0,1000,2000],[1000,0,1500],[2000,1500,0]]"
          },
          {
            "displayName": "Costs (JSON)",
            "name": "costs",
            "type": "string",
            "default": "",
            "description": "Costs matrix as JSON array (e.g., [[0,10],[10,0]])",
            "placeholder": "[[0,10,20],[10,0,15],[20,15,0]]"
          }
        ]
      }
    ]
  },
  {
    "displayName": "Time Window Constraint",
    "name": "time_window_constraint",
    "type": "fixedCollection",
    "default": {},
    "placeholder": "Add Time Window Constraint",
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "optimize"
        ]
      }
    },
    "typeOptions": {
      "multipleValues": true
    },
    "options": [
      {
        "name": "constraint",
        "displayName": "Time Constraint",
        "values": [
          {
            "displayName": "Start Date & Time",
            "name": "start_datetime",
            "type": "dateTime",
            "default": "",
            "description": "Start date and time for the constraint (Europe/Paris timezone)",
            "placeholder": "2025-01-20 08:00"
          },
          {
            "displayName": "End Date & Time",
            "name": "end_datetime",
            "type": "dateTime",
            "default": "",
            "description": "End date and time for the constraint (Europe/Paris timezone)",
            "placeholder": "2025-01-20 18:00"
          }
        ]
      }
    ]
  },
  {
    "displayName": "Options",
    "name": "options",
    "type": "collection",
    "placeholder": "Add Option",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "route"
        ],
        "operation": [
          "optimize"
        ]
      }
    },
    "options": [
      {
        "displayName": "Split Per Day",
        "name": "split_per_day",
        "type": "boolean",
        "default": true,
        "description": "Whether to split routes per day when dealing with multi-day planning"
      },
      {
        "displayName": "Distribute Fairly",
        "name": "distribute_fairly",
        "type": "boolean",
        "default": true,
        "description": "Whether to distribute tasks fairly among vehicles"
      }
    ]
  },
  {
    "displayName": "Operation",
    "name": "operation",
    "type": "options",
    "noDataExpression": true,
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ]
      }
    },
    "options": [
      {
        "name": "Create Export",
        "value": "create",
        "description": "Generate and export data in various formats",
        "action": "Create data export"
      }
    ],
    "default": "create"
  },
  {
    "displayName": "Export Type",
    "name": "type",
    "type": "options",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "options": [
      {
        "name": "Missions",
        "value": "missions"
      },
      {
        "name": "Routes",
        "value": "routes"
      },
      {
        "name": "Waybills",
        "value": "waybills"
      },
      {
        "name": "Status",
        "value": "status"
      },
      {
        "name": "Clients",
        "value": "clients"
      },
      {
        "name": "Agents",
        "value": "agents"
      },
      {
        "name": "Users",
        "value": "users"
      },
      {
        "name": "Invoices",
        "value": "invoices"
      },
      {
        "name": "Establishments",
        "value": "establishments"
      },
      {
        "name": "Contacts",
        "value": "contacts"
      },
      {
        "name": "Services",
        "value": "services"
      }
    ],
    "default": "missions",
    "description": "Type of entity to export"
  },
  {
    "displayName": "Export Format",
    "name": "format",
    "type": "options",
    "required": true,
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "options": [
      {
        "name": "CSV",
        "value": "csv"
      },
      {
        "name": "JSON",
        "value": "json"
      },
      {
        "name": "Excel (XLSX)",
        "value": "xlsx"
      },
      {
        "name": "ZIP Archive",
        "value": "zip"
      }
    ],
    "default": "xlsx",
    "description": "Export format"
  },
  {
    "displayName": "Fields to Export",
    "name": "fields",
    "type": "multiOptions",
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ],
        "type": [
          "missions"
        ]
      }
    },
    "options": [
      {
        "name": "Reference",
        "value": "ref"
      },
      {
        "name": "Start Date",
        "value": "start_date"
      },
      {
        "name": "Start Date Max",
        "value": "start_date_max"
      },
      {
        "name": "Service ID",
        "value": "service_id"
      },
      {
        "name": "Service Name",
        "value": "service_name"
      },
      {
        "name": "Additional Services",
        "value": "additional_services"
      },
      {
        "name": "Establishment ID",
        "value": "establishment_id"
      },
      {
        "name": "Establishment Name",
        "value": "establishment_name"
      },
      {
        "name": "Client Reference",
        "value": "client_ref"
      },
      {
        "name": "Client ID",
        "value": "client_id"
      },
      {
        "name": "Client Name",
        "value": "client_name"
      },
      {
        "name": "Client Billing Name",
        "value": "client_billing_name"
      },
      {
        "name": "Client Internal Code",
        "value": "client_internal_code"
      },
      {
        "name": "Client Accounting Code",
        "value": "client_accounting_code"
      },
      {
        "name": "Client Note",
        "value": "client_note"
      },
      {
        "name": "Agent ID",
        "value": "agent_id"
      },
      {
        "name": "Agent Name",
        "value": "agent_name"
      },
      {
        "name": "Agent Billing Name",
        "value": "agent_billing_name"
      },
      {
        "name": "Agent Internal Code",
        "value": "agent_internal_code"
      },
      {
        "name": "Start Address",
        "value": "address_start"
      },
      {
        "name": "Start Address Latitude",
        "value": "address_start_lat"
      },
      {
        "name": "Start Address Longitude",
        "value": "address_start_lng"
      },
      {
        "name": "Start Address Country",
        "value": "address_start_country"
      },
      {
        "name": "Start Address Contact Name",
        "value": "address_start_name"
      },
      {
        "name": "Start Address Company",
        "value": "address_start_company"
      },
      {
        "name": "Start Address Phone",
        "value": "address_start_tel"
      },
      {
        "name": "Start Address Email",
        "value": "address_start_email"
      },
      {
        "name": "Start Address Comment",
        "value": "address_start_comment"
      },
      {
        "name": "Start Address Area",
        "value": "address_start_area"
      },
      {
        "name": "End Address",
        "value": "address_end"
      },
      {
        "name": "End Address Latitude",
        "value": "address_end_lat"
      },
      {
        "name": "End Address Longitude",
        "value": "address_end_lng"
      },
      {
        "name": "End Address Country",
        "value": "address_end_country"
      },
      {
        "name": "End Address Contact Name",
        "value": "address_end_name"
      },
      {
        "name": "End Address Company",
        "value": "address_end_company"
      },
      {
        "name": "End Address Phone",
        "value": "address_end_tel"
      },
      {
        "name": "End Address Email",
        "value": "address_end_email"
      },
      {
        "name": "End Address Comment",
        "value": "address_end_comment"
      },
      {
        "name": "End Address Area",
        "value": "address_end_area"
      },
      {
        "name": "Expected Distance",
        "value": "expected_distance"
      },
      {
        "name": "Expected Duration",
        "value": "expected_duration"
      },
      {
        "name": "Comment",
        "value": "comment"
      },
      {
        "name": "Requires Return",
        "value": "requires_return"
      },
      {
        "name": "Volume",
        "value": "volume"
      },
      {
        "name": "Weight",
        "value": "weight"
      },
      {
        "name": "Vouchers",
        "value": "vouchers"
      },
      {
        "name": "Price HT",
        "value": "price_ht"
      },
      {
        "name": "Price Fuel HT",
        "value": "price_fuel_ht"
      },
      {
        "name": "Price HT Without Fuel",
        "value": "price_ht_without_fuel"
      },
      {
        "name": "Price TTC",
        "value": "price_ttc"
      },
      {
        "name": "Agent Price HT",
        "value": "agent_price_ht"
      },
      {
        "name": "Agent Price TTC",
        "value": "agent_price_ttc"
      },
      {
        "name": "Custom Infos",
        "value": "custom_infos"
      },
      {
        "name": "Products Count",
        "value": "products_count"
      },
      {
        "name": "Products",
        "value": "products"
      },
      {
        "name": "Comments",
        "value": "comments"
      },
      {
        "name": "Additional Costs",
        "value": "additional_costs"
      },
      {
        "name": "Skills",
        "value": "skills"
      },
      {
        "name": "Status",
        "value": "status"
      },
      {
        "name": "Status Extras",
        "value": "status_extras"
      },
      {
        "name": "Status Date",
        "value": "status_date"
      },
      {
        "name": "Late Minutes",
        "value": "late_mins"
      },
      {
        "name": "Date Created",
        "value": "date_created"
      },
      {
        "name": "Route ID",
        "value": "route_id"
      },
      {
        "name": "Route Order",
        "value": "route_order"
      },
      {
        "name": "Route Distance",
        "value": "route_distance"
      },
      {
        "name": "Route Duration",
        "value": "route_duration"
      },
      {
        "name": "Route Name",
        "value": "route_name"
      },
      {
        "name": "Invoice ID",
        "value": "invoice_id"
      },
      {
        "name": "Invoice Reference",
        "value": "invoice_ref"
      },
      {
        "name": "CO2",
        "value": "co2"
      },
      {
        "name": "Is Finished",
        "value": "is_finished"
      },
      {
        "name": "Is Success",
        "value": "is_success"
      },
      {
        "name": "Is Cancelled",
        "value": "is_cancelled"
      }
    ],
    "default": [],
    "description": "List of fields to include in the export. If empty, all fields (*) will be exported"
  },
  {
    "displayName": "Fields to Export",
    "name": "fields",
    "type": "multiOptions",
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ],
        "type": [
          "routes"
        ]
      }
    },
    "options": [
      {
        "name": "Mission Route ID",
        "value": "mission_route_id"
      },
      {
        "name": "Name",
        "value": "name"
      },
      {
        "name": "Vehicle",
        "value": "vehicle"
      },
      {
        "name": "Routing Profile",
        "value": "routing_profile"
      },
      {
        "name": "Capacity",
        "value": "capacity"
      },
      {
        "name": "Volume",
        "value": "volume"
      },
      {
        "name": "Weight",
        "value": "weight"
      },
      {
        "name": "Speed Factor",
        "value": "speed_factor"
      },
      {
        "name": "Priority",
        "value": "priority"
      },
      {
        "name": "Start Date",
        "value": "start_date"
      },
      {
        "name": "Expected Distance",
        "value": "expected_distance"
      },
      {
        "name": "Expected Duration",
        "value": "expected_duration"
      },
      {
        "name": "Color",
        "value": "color"
      },
      {
        "name": "Solution",
        "value": "solution"
      },
      {
        "name": "Departure",
        "value": "departure"
      },
      {
        "name": "End",
        "value": "end"
      },
      {
        "name": "Total Service Time",
        "value": "total_service_time"
      },
      {
        "name": "Total Setup Time",
        "value": "total_setup_time"
      },
      {
        "name": "Total Wait Time",
        "value": "total_wait_time"
      },
      {
        "name": "Travel Duration",
        "value": "travel_duration"
      },
      {
        "name": "Date Created",
        "value": "date_created"
      },
      {
        "name": "Date Modified",
        "value": "date_modified"
      }
    ],
    "default": [],
    "description": "List of fields to include in the export. If empty, all fields (*) will be exported"
  },
  {
    "displayName": "Fields to Export",
    "name": "fields",
    "type": "multiOptions",
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ],
        "type": [
          "waybills"
        ]
      }
    },
    "options": [
      {
        "name": "Reference",
        "value": "ref"
      },
      {
        "name": "Start Date",
        "value": "start_date"
      },
      {
        "name": "Service ID",
        "value": "service_id"
      },
      {
        "name": "Additional Services",
        "value": "additional_services"
      },
      {
        "name": "Establishment ID",
        "value": "establishment_id"
      },
      {
        "name": "Client ID",
        "value": "client_id"
      },
      {
        "name": "Client Note",
        "value": "client_note"
      },
      {
        "name": "Agent ID",
        "value": "agent_id"
      },
      {
        "name": "Start Address",
        "value": "address_start"
      },
      {
        "name": "Start Address Latitude",
        "value": "address_start_lat"
      },
      {
        "name": "Start Address Longitude",
        "value": "address_start_lng"
      },
      {
        "name": "Start Address Country",
        "value": "address_start_country"
      },
      {
        "name": "Start Address Contact Name",
        "value": "address_start_name"
      },
      {
        "name": "Start Address Company",
        "value": "address_start_company"
      },
      {
        "name": "Start Address Phone",
        "value": "address_start_tel"
      },
      {
        "name": "Start Address Email",
        "value": "address_start_email"
      },
      {
        "name": "Start Address Comment",
        "value": "address_start_comment"
      },
      {
        "name": "End Address",
        "value": "address_end"
      },
      {
        "name": "End Address Latitude",
        "value": "address_end_lat"
      },
      {
        "name": "End Address Longitude",
        "value": "address_end_lng"
      },
      {
        "name": "End Address Country",
        "value": "address_end_country"
      },
      {
        "name": "End Address Contact Name",
        "value": "address_end_name"
      },
      {
        "name": "End Address Company",
        "value": "address_end_company"
      },
      {
        "name": "End Address Phone",
        "value": "address_end_tel"
      },
      {
        "name": "End Address Email",
        "value": "address_end_email"
      },
      {
        "name": "End Address Comment",
        "value": "address_end_comment"
      },
      {
        "name": "Expected Distance",
        "value": "expected_distance"
      },
      {
        "name": "Expected Duration",
        "value": "expected_duration"
      },
      {
        "name": "Comment",
        "value": "comment"
      },
      {
        "name": "Requires Return",
        "value": "requires_return"
      },
      {
        "name": "Vouchers",
        "value": "vouchers"
      },
      {
        "name": "Price HT",
        "value": "price_ht"
      },
      {
        "name": "Price TTC",
        "value": "price_ttc"
      },
      {
        "name": "Agent Price HT",
        "value": "agent_price_ht"
      },
      {
        "name": "Agent Price TTC",
        "value": "agent_price_ttc"
      },
      {
        "name": "Date Created",
        "value": "date_created"
      },
      {
        "name": "Invoice ID",
        "value": "invoice_id"
      }
    ],
    "default": [],
    "description": "List of fields to include in the export. If empty, all fields (*) will be exported"
  },
  {
    "displayName": "Fields to Export",
    "name": "fields",
    "type": "multiOptions",
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ],
        "type": [
          "status"
        ]
      }
    },
    "options": [
      {
        "name": "Mission Status ID",
        "value": "mission_status_id"
      },
      {
        "name": "Reference",
        "value": "ref"
      },
      {
        "name": "Status",
        "value": "status"
      },
      {
        "name": "Comment",
        "value": "comment"
      },
      {
        "name": "Latitude",
        "value": "lat"
      },
      {
        "name": "Longitude",
        "value": "lng"
      },
      {
        "name": "User ID",
        "value": "user_id"
      },
      {
        "name": "Agent ID",
        "value": "agent_id"
      },
      {
        "name": "Agent Name",
        "value": "agent_name"
      },
      {
        "name": "Establishment Name",
        "value": "establishment_name"
      },
      {
        "name": "Status Extras",
        "value": "status_extras"
      },
      {
        "name": "Status Fields",
        "value": "status_fields"
      },
      {
        "name": "Signature",
        "value": "signature"
      },
      {
        "name": "Photos",
        "value": "photos"
      },
      {
        "name": "Date Created",
        "value": "date_created"
      },
      {
        "name": "Client ID",
        "value": "client_id"
      }
    ],
    "default": [],
    "description": "List of fields to include in the export. If empty, all fields (*) will be exported"
  },
  {
    "displayName": "Fields to Export",
    "name": "fields",
    "type": "multiOptions",
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ],
        "type": [
          "clients"
        ]
      }
    },
    "options": [
      {
        "name": "Client ID",
        "value": "client_id"
      },
      {
        "name": "First Name",
        "value": "first_name"
      },
      {
        "name": "Last Name",
        "value": "last_name"
      },
      {
        "name": "Photo",
        "value": "photo"
      },
      {
        "name": "Address Line 1",
        "value": "address_line1"
      },
      {
        "name": "Address Line 2",
        "value": "address_line2"
      },
      {
        "name": "Phone",
        "value": "tel"
      },
      {
        "name": "Email",
        "value": "email"
      },
      {
        "name": "Billing Name",
        "value": "billing_name"
      },
      {
        "name": "Billing Email",
        "value": "billing_email"
      },
      {
        "name": "Billing Address",
        "value": "billing_address"
      },
      {
        "name": "SIRET",
        "value": "siret"
      },
      {
        "name": "VAT",
        "value": "vat"
      },
      {
        "name": "VAT Number",
        "value": "vat_number"
      },
      {
        "name": "Internal Code",
        "value": "internal_code"
      },
      {
        "name": "Accounting Code",
        "value": "accounting_code"
      },
      {
        "name": "Invoices Period",
        "value": "invoices_period"
      },
      {
        "name": "API Access",
        "value": "api_access"
      },
      {
        "name": "Status",
        "value": "status"
      },
      {
        "name": "Today Missions",
        "value": "today_missions"
      },
      {
        "name": "Total Missions",
        "value": "total_missions"
      },
      {
        "name": "Missions This Year",
        "value": "missions_this_year"
      },
      {
        "name": "Yearly Earnings",
        "value": "yearly_earnings"
      },
      {
        "name": "Establishment ID",
        "value": "establishment_id"
      },
      {
        "name": "Establishment Name",
        "value": "establishment_name"
      },
      {
        "name": "Date Created",
        "value": "date_created"
      },
      {
        "name": "Date Last Login",
        "value": "date_last_login"
      },
      {
        "name": "SMS Previous Month",
        "value": "sms_prev_month"
      },
      {
        "name": "SMS This Month",
        "value": "sms_this_month"
      },
      {
        "name": "SMS Total",
        "value": "sms_total"
      }
    ],
    "default": [],
    "description": "List of fields to include in the export. If empty, all fields (*) will be exported"
  },
  {
    "displayName": "Fields to Export",
    "name": "fields",
    "type": "multiOptions",
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ],
        "type": [
          "agents"
        ]
      }
    },
    "options": [
      {
        "name": "Agent ID",
        "value": "agent_id"
      },
      {
        "name": "First Name",
        "value": "first_name"
      },
      {
        "name": "Last Name",
        "value": "last_name"
      },
      {
        "name": "Photo",
        "value": "photo"
      },
      {
        "name": "Address Line 1",
        "value": "address_line1"
      },
      {
        "name": "Address Line 2",
        "value": "address_line2"
      },
      {
        "name": "Phone",
        "value": "tel"
      },
      {
        "name": "Email",
        "value": "email"
      },
      {
        "name": "Available",
        "value": "available"
      },
      {
        "name": "Self Billing",
        "value": "self_billing"
      },
      {
        "name": "Is Provider",
        "value": "is_provider"
      },
      {
        "name": "Billing Name",
        "value": "billing_name"
      },
      {
        "name": "Billing Address",
        "value": "billing_address"
      },
      {
        "name": "Internal Code",
        "value": "internal_code"
      },
      {
        "name": "SIRET",
        "value": "siret"
      },
      {
        "name": "VAT Number",
        "value": "vat_number"
      },
      {
        "name": "Price Min",
        "value": "price_min"
      },
      {
        "name": "Price Max",
        "value": "price_max"
      },
      {
        "name": "Distance Max",
        "value": "dist_max"
      },
      {
        "name": "Vehicles",
        "value": "vehicles"
      },
      {
        "name": "Status",
        "value": "status"
      },
      {
        "name": "Latitude",
        "value": "lat"
      },
      {
        "name": "Longitude",
        "value": "lng"
      },
      {
        "name": "Today Missions",
        "value": "today_missions"
      },
      {
        "name": "Total Missions",
        "value": "total_missions"
      },
      {
        "name": "Missions This Year",
        "value": "missions_this_year"
      },
      {
        "name": "Yearly Earnings",
        "value": "yearly_earnings"
      },
      {
        "name": "Establishment ID",
        "value": "establishment_id"
      },
      {
        "name": "Establishment Name",
        "value": "establishment_name"
      },
      {
        "name": "Date Created",
        "value": "date_created"
      },
      {
        "name": "Date Last Login",
        "value": "date_last_login"
      },
      {
        "name": "Date Last Geo",
        "value": "date_last_geo"
      }
    ],
    "default": [],
    "description": "List of fields to include in the export. If empty, all fields (*) will be exported"
  },
  {
    "displayName": "Fields to Export",
    "name": "fields",
    "type": "multiOptions",
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ],
        "type": [
          "users"
        ]
      }
    },
    "options": [
      {
        "name": "User ID",
        "value": "user_id"
      },
      {
        "name": "First Name",
        "value": "first_name"
      },
      {
        "name": "Last Name",
        "value": "last_name"
      },
      {
        "name": "Photo",
        "value": "photo"
      },
      {
        "name": "Phone",
        "value": "tel"
      },
      {
        "name": "Email",
        "value": "email"
      },
      {
        "name": "Language",
        "value": "language"
      },
      {
        "name": "Roles",
        "value": "roles"
      },
      {
        "name": "Status",
        "value": "status"
      },
      {
        "name": "Establishments",
        "value": "establishments"
      },
      {
        "name": "Date Created",
        "value": "date_created"
      },
      {
        "name": "Date Last Login",
        "value": "date_last_login"
      }
    ],
    "default": [],
    "description": "List of fields to include in the export. If empty, all fields (*) will be exported"
  },
  {
    "displayName": "Fields to Export",
    "name": "fields",
    "type": "multiOptions",
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ],
        "type": [
          "invoices"
        ]
      }
    },
    "options": [
      {
        "name": "Reference",
        "value": "ref"
      },
      {
        "name": "Type",
        "value": "type"
      },
      {
        "name": "Title",
        "value": "title"
      },
      {
        "name": "Description",
        "value": "description"
      },
      {
        "name": "Name or Company",
        "value": "name_or_company"
      },
      {
        "name": "Address",
        "value": "address"
      },
      {
        "name": "Amount HT",
        "value": "amount_ht"
      },
      {
        "name": "Amount TTC",
        "value": "amount_ttc"
      },
      {
        "name": "Status",
        "value": "status"
      },
      {
        "name": "Created For",
        "value": "created_for"
      },
      {
        "name": "Created By",
        "value": "created_by"
      },
      {
        "name": "Invoice URI",
        "value": "invoice_uri"
      },
      {
        "name": "Date Created",
        "value": "date_created"
      },
      {
        "name": "Date Modified",
        "value": "date_modified"
      },
      {
        "name": "Date Paid",
        "value": "date_paid"
      },
      {
        "name": "Payment Infos",
        "value": "payment_infos"
      },
      {
        "name": "Payment Mean",
        "value": "payment_mean"
      },
      {
        "name": "Payment Reference",
        "value": "payment_ref"
      },
      {
        "name": "Accounting Code",
        "value": "accounting_code"
      },
      {
        "name": "Invoice ID",
        "value": "invoice_id"
      }
    ],
    "default": [],
    "description": "List of fields to include in the export. If empty, all fields (*) will be exported"
  },
  {
    "displayName": "Fields to Export",
    "name": "fields",
    "type": "multiOptions",
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ],
        "type": [
          "establishments"
        ]
      }
    },
    "options": [
      {
        "name": "Establishment ID",
        "value": "establishment_id"
      },
      {
        "name": "Title",
        "value": "title"
      },
      {
        "name": "Language",
        "value": "language"
      },
      {
        "name": "Country",
        "value": "country"
      },
      {
        "name": "Address Line 1",
        "value": "address_line1"
      },
      {
        "name": "Address Line 2",
        "value": "address_line2"
      },
      {
        "name": "Address Latitude",
        "value": "address_lat"
      },
      {
        "name": "Address Longitude",
        "value": "address_lng"
      },
      {
        "name": "Address Country",
        "value": "address_country"
      },
      {
        "name": "Logo",
        "value": "logo"
      },
      {
        "name": "Phone",
        "value": "tel"
      },
      {
        "name": "Email",
        "value": "email"
      },
      {
        "name": "Status",
        "value": "status"
      },
      {
        "name": "Users Count",
        "value": "users_count"
      },
      {
        "name": "Clients Count",
        "value": "clients_count"
      },
      {
        "name": "Total Missions",
        "value": "total_missions"
      },
      {
        "name": "This Year Missions Count",
        "value": "this_year_missions_count"
      },
      {
        "name": "Date Created",
        "value": "date_created"
      }
    ],
    "default": [],
    "description": "List of fields to include in the export. If empty, all fields (*) will be exported"
  },
  {
    "displayName": "Fields to Export",
    "name": "fields",
    "type": "multiOptions",
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ],
        "type": [
          "contacts"
        ]
      }
    },
    "options": [
      {
        "name": "CRM Contact ID",
        "value": "crm_contact_id"
      },
      {
        "name": "First Name",
        "value": "first_name"
      },
      {
        "name": "Last Name",
        "value": "last_name"
      },
      {
        "name": "Phone",
        "value": "tel"
      },
      {
        "name": "Email",
        "value": "email"
      },
      {
        "name": "Company",
        "value": "company"
      },
      {
        "name": "Job",
        "value": "job"
      },
      {
        "name": "Category",
        "value": "category"
      },
      {
        "name": "Date Created",
        "value": "date_created"
      },
      {
        "name": "Date Modified",
        "value": "date_modified"
      }
    ],
    "default": [],
    "description": "List of fields to include in the export. If empty, all fields (*) will be exported"
  },
  {
    "displayName": "Fields to Export",
    "name": "fields",
    "type": "multiOptions",
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ],
        "type": [
          "services"
        ]
      }
    },
    "options": [
      {
        "name": "Service ID",
        "value": "service_id"
      },
      {
        "name": "Name",
        "value": "name"
      },
      {
        "name": "Code",
        "value": "code"
      },
      {
        "name": "Description",
        "value": "description"
      },
      {
        "name": "Color",
        "value": "color"
      },
      {
        "name": "VAT",
        "value": "vat"
      },
      {
        "name": "Delay",
        "value": "delay"
      },
      {
        "name": "Handling Time",
        "value": "handling_time"
      },
      {
        "name": "Mission Time",
        "value": "mission_time"
      },
      {
        "name": "Setup Time",
        "value": "setup_time"
      },
      {
        "name": "Tolerance Time",
        "value": "tolerance_time"
      },
      {
        "name": "Notice Delay",
        "value": "notice_delay"
      },
      {
        "name": "Ignore Optim Addr Start",
        "value": "ignore_optim_addr_start"
      },
      {
        "name": "Ignore Optim Addr End",
        "value": "ignore_optim_addr_end"
      },
      {
        "name": "Additional Services",
        "value": "additional_services"
      },
      {
        "name": "Allowed Statuses",
        "value": "allowed_statuses"
      },
      {
        "name": "Is Flat Price",
        "value": "is_flat_price"
      },
      {
        "name": "Vehicle Profile",
        "value": "vehicle_profile"
      },
      {
        "name": "Max Per Slot",
        "value": "max_per_slot"
      },
      {
        "name": "Is Clients Default",
        "value": "is_clients_default"
      },
      {
        "name": "Is Agents Default",
        "value": "is_agents_default"
      }
    ],
    "default": [],
    "description": "List of fields to include in the export. If empty, all fields (*) will be exported"
  },
  {
    "displayName": "Filters",
    "name": "filters",
    "type": "collection",
    "placeholder": "Add Filter",
    "default": {},
    "displayOptions": {
      "show": {
        "resource": [
          "export"
        ],
        "operation": [
          "create"
        ]
      }
    },
    "options": [
      {
        "displayName": "Statuses",
        "name": "statuses",
        "type": "multiOptions",
        "typeOptions": {
          "loadOptionsMethod": "getStatuses"
        },
        "default": [],
        "description": "Filter by specific statuses"
      },
      {
        "displayName": "Services",
        "name": "services",
        "type": "multiOptions",
        "typeOptions": {
          "loadOptionsMethod": "getServices"
        },
        "default": [],
        "description": "Filter by specific services"
      },
      {
        "displayName": "Agent",
        "name": "agent",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getAgents"
        },
        "default": "",
        "description": "Filter by agent"
      },
      {
        "displayName": "Client",
        "name": "client",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getClients"
        },
        "default": "",
        "description": "Filter by client"
      },
      {
        "displayName": "Establishment",
        "name": "establishment",
        "type": "options",
        "typeOptions": {
          "loadOptionsMethod": "getEstablishments"
        },
        "default": "",
        "description": "Filter by establishment"
      },
      {
        "displayName": "Date Field",
        "name": "date_field",
        "type": "options",
        "options": [
          {
            "name": "Date Created",
            "value": "date_created"
          },
          {
            "name": "Start Date",
            "value": "start_date"
          },
          {
            "name": "Status Date Created",
            "value": "status_date_created"
          }
        ],
        "default": "date_created",
        "description": "Date field to use for date range filtering"
      },
      {
        "displayName": "Date From",
        "name": "date_between_start",
        "type": "dateTime",
        "default": "",
        "description": "Filter data from this date/time (Europe/Paris timezone)",
        "placeholder": "2025-06-26 09:40"
      },
      {
        "displayName": "Date To",
        "name": "date_between_end",
        "type": "dateTime",
        "default": "",
        "description": "Filter data until this date/time (Europe/Paris timezone)",
        "placeholder": "2025-06-26 18:00"
      },
      {
        "displayName": "Search",
        "name": "search",
        "type": "string",
        "default": "",
        "description": "Search keywords to filter data",
        "placeholder": "Search keywords"
      }
    ]
  }
]