n8n-nodes-sevdesk-v2
Version:
n8n community node for SevDesk API v2 integration with 24 production-ready workflow templates. Direct API access without external dependencies - simplified, secure, and optimized for German accounting automation (n8n 1.101.1 compatible).
184 lines (183 loc) • 5.94 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reportFields = exports.reportOperations = void 0;
exports.reportOperations = [
{
displayName: "Operation",
name: "operation",
type: "options",
noDataExpression: true,
displayOptions: {
show: {
resource: ["report"],
},
},
options: [
{
name: "Invoice List",
value: "invoiceList",
action: "Get invoice list report",
routing: {
request: {
method: "GET",
url: "/Report/invoicelist",
qs: {
download: "={{$parameter.download}}",
type: "={{$parameter.type}}",
sevQuery: "={{$parameter.sevQuery}}",
},
},
output: {
postReceive: [
{
type: "rootProperty",
properties: {
property: "objects",
},
},
],
},
},
},
{
name: "Order List",
value: "orderList",
action: "Get order list report",
routing: {
request: {
method: "GET",
url: "/Report/orderlist",
qs: {
download: "={{$parameter.download}}",
type: "={{$parameter.type}}",
sevQuery: "={{$parameter.sevQuery}}",
},
},
output: {
postReceive: [
{
type: "rootProperty",
properties: {
property: "objects",
},
},
],
},
},
},
{
name: "Contact List",
value: "contactList",
action: "Get contact list report",
routing: {
request: {
method: "GET",
url: "/Report/contactlist",
qs: {
download: "={{$parameter.download}}",
sevQuery: "={{$parameter.sevQuery}}",
},
},
output: {
postReceive: [
{
type: "rootProperty",
properties: {
property: "objects",
},
},
],
},
},
},
{
name: "Voucher List",
value: "voucherList",
action: "Get voucher list report",
routing: {
request: {
method: "GET",
url: "/Report/voucherlist",
qs: {
download: "={{$parameter.download}}",
sevQuery: "={{$parameter.sevQuery}}",
},
},
output: {
postReceive: [
{
type: "rootProperty",
properties: {
property: "objects",
},
},
],
},
},
},
],
default: "invoiceList",
},
];
exports.reportFields = [
{
displayName: "Download",
name: "download",
type: "boolean",
displayOptions: {
show: {
resource: ["report"],
},
},
default: false,
description: "Whether the report will be downloaded as a file",
},
{
displayName: "Type",
name: "type",
type: "string",
displayOptions: {
show: {
resource: ["report"],
operation: ["invoiceList", "orderList"],
},
},
default: "",
description: 'Type of report. e.g. "VRE" for invoice list, "all" for order list.',
},
{
displayName: "Additional Fields",
name: "sevQuery",
type: "collection",
placeholder: "Add Field",
default: {},
displayOptions: {
show: {
resource: ["report"],
},
},
options: [
{
displayName: "Contact",
name: "contact",
type: "string",
default: "",
description: "Retrieve all invoices of this contact",
},
{
displayName: "Start Date",
name: "startDate",
type: "string",
default: "",
description: "Retrieve all invoices with a date equal or higher",
},
{
displayName: "End Date",
name: "endDate",
type: "string",
default: "",
description: "Retrieve all invoices with a date equal or lower",
},
],
},
];