@delmalih/n8n-nodes-pennylane 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -0
- package/dist/credentials/PennylaneApi.credentials.d.ts +10 -0
- package/dist/credentials/PennylaneApi.credentials.js +39 -0
- package/dist/credentials/PennylaneApi.credentials.js.map +1 -0
- package/dist/credentials/pennylane.dark.png +0 -0
- package/dist/credentials/pennylane.png +0 -0
- package/dist/nodes/Pennylane/Pennylane.node.d.ts +4 -0
- package/dist/nodes/Pennylane/Pennylane.node.js +126 -0
- package/dist/nodes/Pennylane/Pennylane.node.js.map +1 -0
- package/dist/nodes/Pennylane/Pennylane.node.json +10 -0
- package/dist/nodes/Pennylane/pennylane.dark.png +0 -0
- package/dist/nodes/Pennylane/pennylane.png +0 -0
- package/dist/nodes/Pennylane/resources/analytical-general-ledger-export/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/analytical-general-ledger-export/index.js +27 -0
- package/dist/nodes/Pennylane/resources/analytical-general-ledger-export/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/bank-account/create.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/bank-account/create.js +70 -0
- package/dist/nodes/Pennylane/resources/bank-account/create.js.map +1 -0
- package/dist/nodes/Pennylane/resources/bank-account/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/bank-account/get.js +15 -0
- package/dist/nodes/Pennylane/resources/bank-account/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/bank-account/getAll.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/bank-account/getAll.js +54 -0
- package/dist/nodes/Pennylane/resources/bank-account/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/bank-account/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/bank-account/index.js +59 -0
- package/dist/nodes/Pennylane/resources/bank-account/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/bank-establishment/getAll.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/bank-establishment/getAll.js +121 -0
- package/dist/nodes/Pennylane/resources/bank-establishment/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/bank-establishment/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/bank-establishment/index.js +26 -0
- package/dist/nodes/Pennylane/resources/bank-establishment/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/bank-transaction/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/bank-transaction/index.js +95 -0
- package/dist/nodes/Pennylane/resources/bank-transaction/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/create.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/create.js +69 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/create.js.map +1 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/get.js +15 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/index.js +51 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/invoice-line-sections.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/invoice-line-sections.js +41 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/invoice-line-sections.js.map +1 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/invoice-lines.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/invoice-lines.js +41 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/invoice-lines.js.map +1 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/update.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/update.js +79 -0
- package/dist/nodes/Pennylane/resources/billing-subscription/update.js.map +1 -0
- package/dist/nodes/Pennylane/resources/category/create.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/category/create.js +49 -0
- package/dist/nodes/Pennylane/resources/category/create.js.map +1 -0
- package/dist/nodes/Pennylane/resources/category/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/category/get.js +15 -0
- package/dist/nodes/Pennylane/resources/category/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/category/getAll.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/category/getAll.js +155 -0
- package/dist/nodes/Pennylane/resources/category/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/category/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/category/index.js +76 -0
- package/dist/nodes/Pennylane/resources/category/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/category/update.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/category/update.js +48 -0
- package/dist/nodes/Pennylane/resources/category/update.js.map +1 -0
- package/dist/nodes/Pennylane/resources/category-group/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/category-group/get.js +15 -0
- package/dist/nodes/Pennylane/resources/category-group/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/category-group/getAll.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/category-group/getAll.js +54 -0
- package/dist/nodes/Pennylane/resources/category-group/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/category-group/getCategories.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/category-group/getCategories.js +63 -0
- package/dist/nodes/Pennylane/resources/category-group/getCategories.js.map +1 -0
- package/dist/nodes/Pennylane/resources/category-group/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/category-group/index.js +51 -0
- package/dist/nodes/Pennylane/resources/category-group/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/changelog/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/changelog/index.js +18 -0
- package/dist/nodes/Pennylane/resources/changelog/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/commercial-document/appendices.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/commercial-document/appendices.js +52 -0
- package/dist/nodes/Pennylane/resources/commercial-document/appendices.js.map +1 -0
- package/dist/nodes/Pennylane/resources/commercial-document/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/commercial-document/get.js +15 -0
- package/dist/nodes/Pennylane/resources/commercial-document/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/commercial-document/getAll.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/commercial-document/getAll.js +153 -0
- package/dist/nodes/Pennylane/resources/commercial-document/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/commercial-document/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/commercial-document/index.js +94 -0
- package/dist/nodes/Pennylane/resources/commercial-document/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/commercial-document/invoice-line-sections.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/commercial-document/invoice-line-sections.js +65 -0
- package/dist/nodes/Pennylane/resources/commercial-document/invoice-line-sections.js.map +1 -0
- package/dist/nodes/Pennylane/resources/commercial-document/invoice-lines.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/commercial-document/invoice-lines.js +65 -0
- package/dist/nodes/Pennylane/resources/commercial-document/invoice-lines.js.map +1 -0
- package/dist/nodes/Pennylane/resources/commercial-document/upload-appendix.d.ts +3 -0
- package/dist/nodes/Pennylane/resources/commercial-document/upload-appendix.js +50 -0
- package/dist/nodes/Pennylane/resources/commercial-document/upload-appendix.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer/categorize.d.ts +3 -0
- package/dist/nodes/Pennylane/resources/customer/categorize.js +63 -0
- package/dist/nodes/Pennylane/resources/customer/categorize.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer/create.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer/create.js +155 -0
- package/dist/nodes/Pennylane/resources/customer/create.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer/createIndividual.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer/createIndividual.js +193 -0
- package/dist/nodes/Pennylane/resources/customer/createIndividual.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer/get.js +15 -0
- package/dist/nodes/Pennylane/resources/customer/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer/getAll.d.ts +1 -0
- package/dist/nodes/Pennylane/resources/customer/getAll.js +6 -0
- package/dist/nodes/Pennylane/resources/customer/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer/getCategories.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer/getCategories.js +63 -0
- package/dist/nodes/Pennylane/resources/customer/getCategories.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer/getContacts.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer/getContacts.js +63 -0
- package/dist/nodes/Pennylane/resources/customer/getContacts.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer/index.js +166 -0
- package/dist/nodes/Pennylane/resources/customer/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer/update.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer/update.js +235 -0
- package/dist/nodes/Pennylane/resources/customer/update.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/categorize.d.ts +3 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/categorize.js +63 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/categorize.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/create.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/create.js +93 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/create.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/deleteInvoice.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/deleteInvoice.js +16 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/deleteInvoice.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/eInvoiceImport.d.ts +3 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/eInvoiceImport.js +80 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/eInvoiceImport.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/finalize.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/finalize.js +16 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/finalize.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/get.js +15 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/getAll.d.ts +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/getAll.js +6 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/import.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/import.js +100 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/import.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/index.js +71 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/linkCreditNote.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/linkCreditNote.js +25 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/linkCreditNote.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/markAsPaid.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/markAsPaid.js +16 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/markAsPaid.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/sendByEmail.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/sendByEmail.js +25 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/sendByEmail.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/sendToPA.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/sendToPA.js +16 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/sendToPA.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/subLists.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/subLists.js +72 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/subLists.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/update.d.ts +3 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/update.js +450 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/update.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/updateImported.d.ts +3 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/updateImported.js +308 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/updateImported.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/uploadAppendix.d.ts +3 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/uploadAppendix.js +47 -0
- package/dist/nodes/Pennylane/resources/customer-invoice/uploadAppendix.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice-template/getAll.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice-template/getAll.js +66 -0
- package/dist/nodes/Pennylane/resources/customer-invoice-template/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/customer-invoice-template/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/customer-invoice-template/index.js +34 -0
- package/dist/nodes/Pennylane/resources/customer-invoice-template/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/fec-export/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/fec-export/index.js +18 -0
- package/dist/nodes/Pennylane/resources/fec-export/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/file-attachment/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/file-attachment/index.js +40 -0
- package/dist/nodes/Pennylane/resources/file-attachment/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/fiscal-year/getAll.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/fiscal-year/getAll.js +68 -0
- package/dist/nodes/Pennylane/resources/fiscal-year/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/fiscal-year/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/fiscal-year/index.js +34 -0
- package/dist/nodes/Pennylane/resources/fiscal-year/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/general-ledger-export/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/general-ledger-export/index.js +18 -0
- package/dist/nodes/Pennylane/resources/general-ledger-export/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/associate.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/associate.js +28 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/associate.js.map +1 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/cancel.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/cancel.js +19 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/cancel.js.map +1 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/get.js +15 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/getAll.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/getAll.js +153 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/index.js +90 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/sendMailRequest.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/sendMailRequest.js +46 -0
- package/dist/nodes/Pennylane/resources/gocardless-mandate/sendMailRequest.js.map +1 -0
- package/dist/nodes/Pennylane/resources/journal/create.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/journal/create.js +28 -0
- package/dist/nodes/Pennylane/resources/journal/create.js.map +1 -0
- package/dist/nodes/Pennylane/resources/journal/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/journal/get.js +15 -0
- package/dist/nodes/Pennylane/resources/journal/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/journal/getAll.d.ts +1 -0
- package/dist/nodes/Pennylane/resources/journal/getAll.js +6 -0
- package/dist/nodes/Pennylane/resources/journal/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/journal/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/journal/index.js +55 -0
- package/dist/nodes/Pennylane/resources/journal/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-account/create.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-account/create.js +44 -0
- package/dist/nodes/Pennylane/resources/ledger-account/create.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-account/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-account/get.js +15 -0
- package/dist/nodes/Pennylane/resources/ledger-account/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-account/getAll.d.ts +1 -0
- package/dist/nodes/Pennylane/resources/ledger-account/getAll.js +6 -0
- package/dist/nodes/Pennylane/resources/ledger-account/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-account/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-account/index.js +75 -0
- package/dist/nodes/Pennylane/resources/ledger-account/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-account/update.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-account/update.js +35 -0
- package/dist/nodes/Pennylane/resources/ledger-account/update.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/create.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/create.js +19 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/create.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/get.js +15 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/getLines.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/getLines.js +41 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/getLines.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/index.js +28 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/update.d.ts +3 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/update.js +132 -0
- package/dist/nodes/Pennylane/resources/ledger-entry/update.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/categorize.d.ts +3 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/categorize.js +63 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/categorize.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/get.js +15 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/getAll.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/getAll.js +156 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/getCategories.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/getCategories.js +41 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/getCategories.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/getLettered.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/getLettered.js +43 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/getLettered.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/index.js +101 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/letter.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/letter.js +30 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/letter.js.map +1 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/unletter.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/unletter.js +30 -0
- package/dist/nodes/Pennylane/resources/ledger-entry-line/unletter.js.map +1 -0
- package/dist/nodes/Pennylane/resources/me/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/me/index.js +30 -0
- package/dist/nodes/Pennylane/resources/me/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/pa-registration/getAll.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/pa-registration/getAll.js +54 -0
- package/dist/nodes/Pennylane/resources/pa-registration/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/pa-registration/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/pa-registration/index.js +31 -0
- package/dist/nodes/Pennylane/resources/pa-registration/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/getAll.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/getAll.js +148 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/index.js +71 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/mandateRequest.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/mandateRequest.js +15 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/mandateRequest.js.map +1 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/migrate.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/migrate.js +17 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/migrate.js.map +1 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/migrationCandidates.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/migrationCandidates.js +152 -0
- package/dist/nodes/Pennylane/resources/pro-account-mandate/migrationCandidates.js.map +1 -0
- package/dist/nodes/Pennylane/resources/product/create.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/product/create.js +85 -0
- package/dist/nodes/Pennylane/resources/product/create.js.map +1 -0
- package/dist/nodes/Pennylane/resources/product/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/product/get.js +15 -0
- package/dist/nodes/Pennylane/resources/product/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/product/getAll.d.ts +1 -0
- package/dist/nodes/Pennylane/resources/product/getAll.js +6 -0
- package/dist/nodes/Pennylane/resources/product/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/product/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/product/index.js +84 -0
- package/dist/nodes/Pennylane/resources/product/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/product/update.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/product/update.js +91 -0
- package/dist/nodes/Pennylane/resources/product/update.js.map +1 -0
- package/dist/nodes/Pennylane/resources/purchase-request/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/purchase-request/get.js +15 -0
- package/dist/nodes/Pennylane/resources/purchase-request/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/purchase-request/getAll.d.ts +1 -0
- package/dist/nodes/Pennylane/resources/purchase-request/getAll.js +6 -0
- package/dist/nodes/Pennylane/resources/purchase-request/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/purchase-request/import.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/purchase-request/import.js +139 -0
- package/dist/nodes/Pennylane/resources/purchase-request/import.js.map +1 -0
- package/dist/nodes/Pennylane/resources/purchase-request/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/purchase-request/index.js +71 -0
- package/dist/nodes/Pennylane/resources/purchase-request/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/quote/appendices.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/quote/appendices.js +32 -0
- package/dist/nodes/Pennylane/resources/quote/appendices.js.map +1 -0
- package/dist/nodes/Pennylane/resources/quote/create.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/quote/create.js +24 -0
- package/dist/nodes/Pennylane/resources/quote/create.js.map +1 -0
- package/dist/nodes/Pennylane/resources/quote/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/quote/get.js +15 -0
- package/dist/nodes/Pennylane/resources/quote/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/quote/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/quote/index.js +60 -0
- package/dist/nodes/Pennylane/resources/quote/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/quote/invoice-line-sections.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/quote/invoice-line-sections.js +41 -0
- package/dist/nodes/Pennylane/resources/quote/invoice-line-sections.js.map +1 -0
- package/dist/nodes/Pennylane/resources/quote/invoice-lines.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/quote/invoice-lines.js +41 -0
- package/dist/nodes/Pennylane/resources/quote/invoice-lines.js.map +1 -0
- package/dist/nodes/Pennylane/resources/quote/send-by-email.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/quote/send-by-email.js +13 -0
- package/dist/nodes/Pennylane/resources/quote/send-by-email.js.map +1 -0
- package/dist/nodes/Pennylane/resources/quote/update-status.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/quote/update-status.js +19 -0
- package/dist/nodes/Pennylane/resources/quote/update-status.js.map +1 -0
- package/dist/nodes/Pennylane/resources/quote/update.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/quote/update.js +66 -0
- package/dist/nodes/Pennylane/resources/quote/update.js.map +1 -0
- package/dist/nodes/Pennylane/resources/quote/upload-appendix.d.ts +3 -0
- package/dist/nodes/Pennylane/resources/quote/upload-appendix.js +35 -0
- package/dist/nodes/Pennylane/resources/quote/upload-appendix.js.map +1 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/create.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/create.js +23 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/create.js.map +1 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/delete.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/delete.js +15 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/delete.js.map +1 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/get.js +15 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/getAll.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/getAll.js +152 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/getAll.js.map +1 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/index.js +90 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/update.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/update.js +25 -0
- package/dist/nodes/Pennylane/resources/sepa-mandate/update.js.map +1 -0
- package/dist/nodes/Pennylane/resources/shared/operations.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/shared/operations.js +241 -0
- package/dist/nodes/Pennylane/resources/shared/operations.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier/categorize.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier/categorize.js +18 -0
- package/dist/nodes/Pennylane/resources/supplier/categorize.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier/create.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier/create.js +33 -0
- package/dist/nodes/Pennylane/resources/supplier/create.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier/get.js +15 -0
- package/dist/nodes/Pennylane/resources/supplier/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier/index.js +64 -0
- package/dist/nodes/Pennylane/resources/supplier/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier/list-categories.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier/list-categories.js +20 -0
- package/dist/nodes/Pennylane/resources/supplier/list-categories.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/categorize.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/categorize.js +18 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/categorize.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/get.js +15 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/import-e-invoice.d.ts +3 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/import-e-invoice.js +55 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/import-e-invoice.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/import.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/import.js +20 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/import.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/index.js +73 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/index.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/link-purchase-request.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/link-purchase-request.js +9 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/link-purchase-request.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/list-categories.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/list-categories.js +32 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/list-categories.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/list-invoice-lines.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/list-invoice-lines.js +41 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/list-invoice-lines.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/list-matched-transactions.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/list-matched-transactions.js +41 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/list-matched-transactions.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/list-payments.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/list-payments.js +41 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/list-payments.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/update-e-invoice-status.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/update-e-invoice-status.js +48 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/update-e-invoice-status.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/update.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/update.js +153 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/update.js.map +1 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/validate-accounting.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/validate-accounting.js +8 -0
- package/dist/nodes/Pennylane/resources/supplier-invoice/validate-accounting.js.map +1 -0
- package/dist/nodes/Pennylane/resources/trial-balance/get.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/trial-balance/get.js +82 -0
- package/dist/nodes/Pennylane/resources/trial-balance/get.js.map +1 -0
- package/dist/nodes/Pennylane/resources/trial-balance/index.d.ts +2 -0
- package/dist/nodes/Pennylane/resources/trial-balance/index.js +36 -0
- package/dist/nodes/Pennylane/resources/trial-balance/index.js.map +1 -0
- package/dist/package.json +53 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerInvoiceUpdateImportedDescription = void 0;
|
|
4
|
+
exports.applyCustomerInvoiceUpdateImportedPreSend = applyCustomerInvoiceUpdateImportedPreSend;
|
|
5
|
+
const showForCustomerInvoiceUpdateImported = { operation: ['updateImported'], resource: ['customerInvoice'] };
|
|
6
|
+
async function applyCustomerInvoiceUpdateImportedPreSend(requestOptions) {
|
|
7
|
+
const date = this.getNodeParameter('date', '');
|
|
8
|
+
const deadline = this.getNodeParameter('deadline', '');
|
|
9
|
+
const customerId = this.getNodeParameter('customerId', '');
|
|
10
|
+
const invoiceNumber = this.getNodeParameter('invoiceNumber', '');
|
|
11
|
+
const currency = this.getNodeParameter('currency', '');
|
|
12
|
+
const currencyAmountBeforeTax = this.getNodeParameter('currencyAmountBeforeTax', '');
|
|
13
|
+
const currencyAmount = this.getNodeParameter('currencyAmount', '');
|
|
14
|
+
const amount = this.getNodeParameter('amount', '');
|
|
15
|
+
const currencyTax = this.getNodeParameter('currencyTax', '');
|
|
16
|
+
const tax = this.getNodeParameter('tax', '');
|
|
17
|
+
const externalReference = this.getNodeParameter('externalReference', '');
|
|
18
|
+
const bankingProvider = this.getNodeParameter('bankingProvider', '');
|
|
19
|
+
const providerFieldName = this.getNodeParameter('providerFieldName', '');
|
|
20
|
+
const providerFieldValue = this.getNodeParameter('providerFieldValue', '');
|
|
21
|
+
const body = {};
|
|
22
|
+
if (date)
|
|
23
|
+
body.date = date;
|
|
24
|
+
if (deadline)
|
|
25
|
+
body.deadline = deadline;
|
|
26
|
+
if (customerId)
|
|
27
|
+
body.customer_id = customerId;
|
|
28
|
+
if (invoiceNumber)
|
|
29
|
+
body.invoice_number = invoiceNumber;
|
|
30
|
+
if (currency)
|
|
31
|
+
body.currency = currency;
|
|
32
|
+
if (currencyAmountBeforeTax)
|
|
33
|
+
body.currency_amount_before_tax = currencyAmountBeforeTax;
|
|
34
|
+
if (currencyAmount)
|
|
35
|
+
body.currency_amount = currencyAmount;
|
|
36
|
+
if (amount)
|
|
37
|
+
body.amount = amount;
|
|
38
|
+
if (currencyTax)
|
|
39
|
+
body.currency_tax = currencyTax;
|
|
40
|
+
if (tax)
|
|
41
|
+
body.tax = tax;
|
|
42
|
+
if (externalReference)
|
|
43
|
+
body.external_reference = externalReference;
|
|
44
|
+
if (bankingProvider && providerFieldName && providerFieldValue) {
|
|
45
|
+
body.transaction_reference = {
|
|
46
|
+
banking_provider: bankingProvider,
|
|
47
|
+
provider_field_name: providerFieldName,
|
|
48
|
+
provider_field_value: providerFieldValue,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
const createLines = this.getNodeParameter('linesToCreate.line', []);
|
|
52
|
+
const updateLines = this.getNodeParameter('linesToUpdate.line', []);
|
|
53
|
+
const deleteIds = this.getNodeParameter('lineIdsToDelete', '');
|
|
54
|
+
const invoiceLines = {};
|
|
55
|
+
if (Array.isArray(createLines) && createLines.length > 0) {
|
|
56
|
+
invoiceLines.create = createLines.map((line) => ({
|
|
57
|
+
label: line.label || undefined,
|
|
58
|
+
quantity: line.quantity,
|
|
59
|
+
unit: line.unit,
|
|
60
|
+
raw_currency_unit_price: line.unitPrice,
|
|
61
|
+
vat_rate: line.vatRate,
|
|
62
|
+
currency_amount: line.currencyAmount,
|
|
63
|
+
currency_tax: line.currencyTax,
|
|
64
|
+
ledger_account_id: line.ledgerAccountId ? parseInt(line.ledgerAccountId, 10) : undefined,
|
|
65
|
+
product_id: line.productId ? parseInt(line.productId, 10) : undefined,
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
if (Array.isArray(updateLines) && updateLines.length > 0) {
|
|
69
|
+
invoiceLines.update = updateLines.map((line) => ({
|
|
70
|
+
id: parseInt(line.lineId, 10),
|
|
71
|
+
label: line.label || undefined,
|
|
72
|
+
quantity: line.quantity || undefined,
|
|
73
|
+
unit: line.unit || undefined,
|
|
74
|
+
raw_currency_unit_price: line.unitPrice || undefined,
|
|
75
|
+
vat_rate: line.vatRate || undefined,
|
|
76
|
+
currency_amount: line.currencyAmount || undefined,
|
|
77
|
+
currency_tax: line.currencyTax || undefined,
|
|
78
|
+
ledger_account_id: line.ledgerAccountId ? parseInt(line.ledgerAccountId, 10) : undefined,
|
|
79
|
+
product_id: line.productId ? parseInt(line.productId, 10) : undefined,
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
if (deleteIds) {
|
|
83
|
+
invoiceLines.delete = deleteIds
|
|
84
|
+
.split(',')
|
|
85
|
+
.map((id) => id.trim())
|
|
86
|
+
.filter((id) => id.length > 0)
|
|
87
|
+
.map((id) => ({ id: parseInt(id, 10) }));
|
|
88
|
+
}
|
|
89
|
+
if (Object.keys(invoiceLines).length > 0)
|
|
90
|
+
body.invoice_lines = invoiceLines;
|
|
91
|
+
requestOptions.body = body;
|
|
92
|
+
return requestOptions;
|
|
93
|
+
}
|
|
94
|
+
exports.customerInvoiceUpdateImportedDescription = [
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Invoice ID',
|
|
97
|
+
name: 'invoiceId',
|
|
98
|
+
type: 'string',
|
|
99
|
+
required: true,
|
|
100
|
+
default: '',
|
|
101
|
+
displayOptions: { show: showForCustomerInvoiceUpdateImported },
|
|
102
|
+
description: 'The ID of the imported customer invoice or credit note to update. Not applicable to draft invoices.',
|
|
103
|
+
},
|
|
104
|
+
{ displayName: 'Date', name: 'date', type: 'string', default: '', displayOptions: { show: showForCustomerInvoiceUpdateImported }, description: 'Invoice issue date (ISO 8601)', placeholder: '2026-07-07' },
|
|
105
|
+
{ displayName: 'Deadline', name: 'deadline', type: 'string', default: '', displayOptions: { show: showForCustomerInvoiceUpdateImported }, description: 'Payment deadline date (ISO 8601)', placeholder: '2026-08-06' },
|
|
106
|
+
{ displayName: 'Customer ID', name: 'customerId', type: 'string', default: '', displayOptions: { show: showForCustomerInvoiceUpdateImported }, description: 'The ID of the customer for this invoice' },
|
|
107
|
+
{ displayName: 'Invoice Number', name: 'invoiceNumber', type: 'string', default: '', displayOptions: { show: showForCustomerInvoiceUpdateImported } },
|
|
108
|
+
{ displayName: 'Currency', name: 'currency', type: 'string', default: '', displayOptions: { show: showForCustomerInvoiceUpdateImported }, description: 'ISO 4217 currency code (defaults to EUR)' },
|
|
109
|
+
{ displayName: 'Currency Amount Before Tax', name: 'currencyAmountBeforeTax', type: 'string', default: '', displayOptions: { show: showForCustomerInvoiceUpdateImported }, description: 'Total amount excluding tax, in invoice currency' },
|
|
110
|
+
{ displayName: 'Currency Amount', name: 'currencyAmount', type: 'string', default: '', displayOptions: { show: showForCustomerInvoiceUpdateImported }, description: 'Total amount including tax, in invoice currency' },
|
|
111
|
+
{ displayName: 'Amount', name: 'amount', type: 'string', default: '', displayOptions: { show: showForCustomerInvoiceUpdateImported }, description: 'Total amount including tax, in euros' },
|
|
112
|
+
{ displayName: 'Currency Tax', name: 'currencyTax', type: 'string', default: '', displayOptions: { show: showForCustomerInvoiceUpdateImported }, description: 'Total tax amount, in invoice currency' },
|
|
113
|
+
{ displayName: 'Tax', name: 'tax', type: 'string', default: '', displayOptions: { show: showForCustomerInvoiceUpdateImported }, description: 'Total tax amount, in euros' },
|
|
114
|
+
{ displayName: 'External Reference', name: 'externalReference', type: 'string', default: '', displayOptions: { show: showForCustomerInvoiceUpdateImported }, description: 'Your external reference for this invoice. Must be unique.' },
|
|
115
|
+
{
|
|
116
|
+
displayName: 'Banking Provider',
|
|
117
|
+
name: 'bankingProvider',
|
|
118
|
+
type: 'options',
|
|
119
|
+
default: '',
|
|
120
|
+
displayOptions: { show: showForCustomerInvoiceUpdateImported },
|
|
121
|
+
description: 'Banking provider used for automatic payment matching. Leave as-is to not change the transaction reference.',
|
|
122
|
+
options: [
|
|
123
|
+
{ name: 'Bank', value: 'bank' },
|
|
124
|
+
{ name: 'Budget Insight', value: 'budgetinsight' },
|
|
125
|
+
{ name: 'GoCardless', value: 'gocardless' },
|
|
126
|
+
{ name: 'None', value: '' },
|
|
127
|
+
{ name: 'Stripe', value: 'stripe' },
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
displayName: 'Provider Field Name',
|
|
132
|
+
name: 'providerFieldName',
|
|
133
|
+
type: 'options',
|
|
134
|
+
default: 'payment_id',
|
|
135
|
+
displayOptions: { show: { ...showForCustomerInvoiceUpdateImported, bankingProvider: ['stripe', 'gocardless', 'bank', 'budgetinsight'] } },
|
|
136
|
+
options: [
|
|
137
|
+
{ name: 'Charge ID', value: 'charge_id' },
|
|
138
|
+
{ name: 'Label', value: 'label' },
|
|
139
|
+
{ name: 'Payment ID', value: 'payment_id' },
|
|
140
|
+
{ name: 'Report ID', value: 'report_id' },
|
|
141
|
+
{ name: 'Web ID', value: 'webid' },
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
displayName: 'Provider Field Value',
|
|
146
|
+
name: 'providerFieldValue',
|
|
147
|
+
type: 'string',
|
|
148
|
+
default: '',
|
|
149
|
+
displayOptions: { show: { ...showForCustomerInvoiceUpdateImported, bankingProvider: ['stripe', 'gocardless', 'bank', 'budgetinsight'] } },
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
displayName: 'Lines to Create',
|
|
153
|
+
name: 'linesToCreate',
|
|
154
|
+
type: 'fixedCollection',
|
|
155
|
+
default: {},
|
|
156
|
+
typeOptions: { multipleValues: true },
|
|
157
|
+
displayOptions: { show: showForCustomerInvoiceUpdateImported },
|
|
158
|
+
description: 'New invoice lines to add',
|
|
159
|
+
options: [{
|
|
160
|
+
name: 'line',
|
|
161
|
+
displayName: 'Invoice Line',
|
|
162
|
+
values: [
|
|
163
|
+
{
|
|
164
|
+
displayName: 'Currency Amount',
|
|
165
|
+
name: 'currencyAmount',
|
|
166
|
+
type: 'string',
|
|
167
|
+
default: '',
|
|
168
|
+
description: 'Line total including tax, in invoice currency',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
displayName: 'Currency Tax',
|
|
172
|
+
name: 'currencyTax',
|
|
173
|
+
type: 'string',
|
|
174
|
+
default: '',
|
|
175
|
+
description: 'Line tax amount, in invoice currency',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
displayName: 'Label',
|
|
179
|
+
name: 'label',
|
|
180
|
+
type: 'string',
|
|
181
|
+
default: '',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
displayName: 'Ledger Account ID',
|
|
185
|
+
name: 'ledgerAccountId',
|
|
186
|
+
type: 'string',
|
|
187
|
+
default: '',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
displayName: 'Product ID',
|
|
191
|
+
name: 'productId',
|
|
192
|
+
type: 'string',
|
|
193
|
+
default: '',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
displayName: 'Quantity',
|
|
197
|
+
name: 'quantity',
|
|
198
|
+
type: 'number',
|
|
199
|
+
default: 1
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
displayName: 'Unit',
|
|
203
|
+
name: 'unit',
|
|
204
|
+
type: 'string',
|
|
205
|
+
default: 'piece',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
displayName: 'Unit Price (Excl. Tax)',
|
|
209
|
+
name: 'unitPrice',
|
|
210
|
+
type: 'string',
|
|
211
|
+
default: '',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
displayName: 'VAT Rate',
|
|
215
|
+
name: 'vatRate',
|
|
216
|
+
type: 'string',
|
|
217
|
+
default: 'FR_200',
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
}],
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
displayName: 'Lines to Update',
|
|
224
|
+
name: 'linesToUpdate',
|
|
225
|
+
type: 'fixedCollection',
|
|
226
|
+
default: {},
|
|
227
|
+
typeOptions: { multipleValues: true },
|
|
228
|
+
displayOptions: { show: showForCustomerInvoiceUpdateImported },
|
|
229
|
+
description: 'Existing invoice lines to modify',
|
|
230
|
+
options: [{
|
|
231
|
+
name: 'line',
|
|
232
|
+
displayName: 'Invoice Line',
|
|
233
|
+
values: [
|
|
234
|
+
{
|
|
235
|
+
displayName: 'Currency Amount',
|
|
236
|
+
name: 'currencyAmount',
|
|
237
|
+
type: 'string',
|
|
238
|
+
default: '',
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
displayName: 'Currency Tax',
|
|
242
|
+
name: 'currencyTax',
|
|
243
|
+
type: 'string',
|
|
244
|
+
default: '',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
displayName: 'Label',
|
|
248
|
+
name: 'label',
|
|
249
|
+
type: 'string',
|
|
250
|
+
default: '',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
displayName: 'Ledger Account ID',
|
|
254
|
+
name: 'ledgerAccountId',
|
|
255
|
+
type: 'string',
|
|
256
|
+
default: '',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
displayName: 'Line ID',
|
|
260
|
+
name: 'lineId',
|
|
261
|
+
type: 'string',
|
|
262
|
+
required: true,
|
|
263
|
+
default: '',
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
displayName: 'Product ID',
|
|
267
|
+
name: 'productId',
|
|
268
|
+
type: 'string',
|
|
269
|
+
default: '',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
displayName: 'Quantity',
|
|
273
|
+
name: 'quantity',
|
|
274
|
+
type: 'number',
|
|
275
|
+
default: 1
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
displayName: 'Unit',
|
|
279
|
+
name: 'unit',
|
|
280
|
+
type: 'string',
|
|
281
|
+
default: '',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
displayName: 'Unit Price (Excl. Tax)',
|
|
285
|
+
name: 'unitPrice',
|
|
286
|
+
type: 'string',
|
|
287
|
+
default: '',
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
displayName: 'VAT Rate',
|
|
291
|
+
name: 'vatRate',
|
|
292
|
+
type: 'string',
|
|
293
|
+
default: '',
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
}],
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
displayName: 'Line IDs to Delete',
|
|
300
|
+
name: 'lineIdsToDelete',
|
|
301
|
+
type: 'string',
|
|
302
|
+
default: '',
|
|
303
|
+
placeholder: '123, 456',
|
|
304
|
+
displayOptions: { show: showForCustomerInvoiceUpdateImported },
|
|
305
|
+
description: 'Comma-separated IDs of invoice lines to remove',
|
|
306
|
+
},
|
|
307
|
+
];
|
|
308
|
+
//# sourceMappingURL=updateImported.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateImported.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/customer-invoice/updateImported.ts"],"names":[],"mappings":";;;AAyBA,8FAkFC;AApGD,MAAM,oCAAoC,GAAG,EAAE,SAAS,EAAE,CAAC,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,CA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AW;wBACjB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;qBACX;oBACD;wBACC,WAAW,EAAE,UAAU;wBACvB,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;qBACX;iBACD;aACD,CAAC;KACF;IACD;QACC,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,UAAU;QACvB,cAAc,EAAE,EAAE,IAAI,EAAE,oCAAoC,EAAE;QAC9D,WAAW,EAAE,gDAAgD;KAC7D;CACD,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IExecuteSingleFunctions, IHttpRequestOptions, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare function applyCustomerInvoiceUploadAppendixPreSend(this: IExecuteSingleFunctions, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions>;
|
|
3
|
+
export declare const customerInvoiceUploadAppendixDescription: INodeProperties[];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerInvoiceUploadAppendixDescription = void 0;
|
|
4
|
+
exports.applyCustomerInvoiceUploadAppendixPreSend = applyCustomerInvoiceUploadAppendixPreSend;
|
|
5
|
+
const showForCustomerInvoiceUploadAppendix = { operation: ['uploadAppendix'], resource: ['customerInvoice'] };
|
|
6
|
+
async function applyCustomerInvoiceUploadAppendixPreSend(requestOptions) {
|
|
7
|
+
var _a;
|
|
8
|
+
const propertyName = this.getNodeParameter('binaryPropertyName');
|
|
9
|
+
const binaryData = this.helpers.assertBinaryData(propertyName);
|
|
10
|
+
const buffer = await this.helpers.getBinaryDataBuffer(propertyName);
|
|
11
|
+
const boundary = `----n8nFormBoundary${Date.now().toString(16)}${Math.random().toString(16).slice(2)}`;
|
|
12
|
+
const filename = ((_a = binaryData.fileName) !== null && _a !== void 0 ? _a : 'file').replace(/"/g, '');
|
|
13
|
+
const contentType = binaryData.mimeType || 'application/octet-stream';
|
|
14
|
+
const preamble = `--${boundary}\r\nContent-Disposition: form-data; name="file"; filename="${filename}"\r\nContent-Type: ${contentType}\r\n\r\n`;
|
|
15
|
+
const epilogue = `\r\n--${boundary}--\r\n`;
|
|
16
|
+
requestOptions.body = Buffer.concat([
|
|
17
|
+
Buffer.from(preamble, 'utf-8'),
|
|
18
|
+
buffer,
|
|
19
|
+
Buffer.from(epilogue, 'utf-8'),
|
|
20
|
+
]);
|
|
21
|
+
requestOptions.headers = {
|
|
22
|
+
...requestOptions.headers,
|
|
23
|
+
'Content-Type': `multipart/form-data; boundary=${boundary}`,
|
|
24
|
+
};
|
|
25
|
+
return requestOptions;
|
|
26
|
+
}
|
|
27
|
+
exports.customerInvoiceUploadAppendixDescription = [
|
|
28
|
+
{
|
|
29
|
+
displayName: 'Invoice ID',
|
|
30
|
+
name: 'invoiceId',
|
|
31
|
+
type: 'string',
|
|
32
|
+
required: true,
|
|
33
|
+
default: '',
|
|
34
|
+
displayOptions: { show: showForCustomerInvoiceUploadAppendix },
|
|
35
|
+
description: 'The ID of the customer invoice to attach the appendix to',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Input Binary Field',
|
|
39
|
+
name: 'binaryPropertyName',
|
|
40
|
+
type: 'string',
|
|
41
|
+
default: 'data',
|
|
42
|
+
required: true,
|
|
43
|
+
displayOptions: { show: showForCustomerInvoiceUploadAppendix },
|
|
44
|
+
description: 'Name of the binary property containing the file to upload (PDF, PNG, JPEG, TIFF, BMP, or GIF)',
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
//# sourceMappingURL=uploadAppendix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadAppendix.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/customer-invoice/uploadAppendix.ts"],"names":[],"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AAE;KAC3D,CAAC;IAEF,OAAO,cAAc,CAAC;AACvB,CAAC;AAEY,QAAA,wCAAwC,GAAsB;IAC1E;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,oCAAoC,EAAE;QAC9D,WAAW,EAAE,0DAA0D;KACvE;IACD;QACC,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,oCAAoC,EAAE;QAC9D,WAAW,EAAE,+FAA+F;KAC5G;CACD,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerInvoiceTemplateGetAllDescription = void 0;
|
|
4
|
+
const showForCustomerInvoiceTemplateGetAll = {
|
|
5
|
+
operation: ['getAll'],
|
|
6
|
+
resource: ['customerInvoiceTemplate'],
|
|
7
|
+
};
|
|
8
|
+
exports.customerInvoiceTemplateGetAllDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Sort',
|
|
11
|
+
name: 'sort',
|
|
12
|
+
type: 'options',
|
|
13
|
+
default: '-id',
|
|
14
|
+
displayOptions: { show: showForCustomerInvoiceTemplateGetAll },
|
|
15
|
+
description: 'Sort order for the results',
|
|
16
|
+
options: [
|
|
17
|
+
{ name: 'ID (Ascending)', value: 'id' },
|
|
18
|
+
{ name: 'ID (Descending)', value: '-id' },
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Return All',
|
|
23
|
+
name: 'returnAll',
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
default: false,
|
|
26
|
+
displayOptions: { show: showForCustomerInvoiceTemplateGetAll },
|
|
27
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
28
|
+
routing: {
|
|
29
|
+
send: {
|
|
30
|
+
paginate: '={{ $value }}',
|
|
31
|
+
},
|
|
32
|
+
operations: {
|
|
33
|
+
pagination: {
|
|
34
|
+
type: 'generic',
|
|
35
|
+
properties: {
|
|
36
|
+
continue: '={{ $response.body.has_more }}',
|
|
37
|
+
request: {
|
|
38
|
+
qs: {
|
|
39
|
+
cursor: '={{ $response.body.next_cursor }}',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Limit',
|
|
49
|
+
name: 'limit',
|
|
50
|
+
type: 'number',
|
|
51
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
52
|
+
default: 50,
|
|
53
|
+
displayOptions: { show: { ...showForCustomerInvoiceTemplateGetAll, returnAll: [false] } },
|
|
54
|
+
description: 'Max number of results to return',
|
|
55
|
+
routing: {
|
|
56
|
+
send: {
|
|
57
|
+
type: 'query',
|
|
58
|
+
property: 'limit',
|
|
59
|
+
},
|
|
60
|
+
output: {
|
|
61
|
+
maxResults: '={{$value}}',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
];
|
|
66
|
+
//# sourceMappingURL=getAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/customer-invoice-template/getAll.ts"],"names":[],"mappings":";;;AAEA,MAAM,oCAAoC,GAAG;IAC5C,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,yBAAyB,CAAC;CACrC,CAAC;AAMW,QAAA,wCAAwC,GAAsB;IAC1E;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,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
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerInvoiceTemplateDescription = void 0;
|
|
4
|
+
const getAll_1 = require("./getAll");
|
|
5
|
+
const showOnlyForCustomerInvoiceTemplates = { resource: ['customerInvoiceTemplate'] };
|
|
6
|
+
exports.customerInvoiceTemplateDescription = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Operation',
|
|
9
|
+
name: 'operation',
|
|
10
|
+
type: 'options',
|
|
11
|
+
noDataExpression: true,
|
|
12
|
+
displayOptions: { show: showOnlyForCustomerInvoiceTemplates },
|
|
13
|
+
options: [
|
|
14
|
+
{
|
|
15
|
+
name: 'Get Many',
|
|
16
|
+
value: 'getAll',
|
|
17
|
+
action: 'Get customer invoice templates',
|
|
18
|
+
description: "Retrieve the company's customer invoice templates",
|
|
19
|
+
routing: {
|
|
20
|
+
request: {
|
|
21
|
+
method: 'GET',
|
|
22
|
+
url: '/customer_invoice_templates',
|
|
23
|
+
qs: {
|
|
24
|
+
sort: '={{ $parameter.sort }}',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
default: 'getAll',
|
|
31
|
+
},
|
|
32
|
+
...getAll_1.customerInvoiceTemplateGetAllDescription,
|
|
33
|
+
];
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/customer-invoice-template/index.ts"],"names":[],"mappings":";;;AACA,qCAAoE;AAEpE,MAAM,mCAAmC,GAAG,EAAE,QAAQ,EAAE,CAAC,yBAAyB,CAAC,EAAE,CAAC;AAEzE,QAAA,kCAAkC,GAAsB;IACpE;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,mCAAmC,EAAE;QAC7D,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,gCAAgC;gBACxC,WAAW,EAAE,mDAAmD;gBAChE,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,6BAA6B;wBAClC,EAAE,EAAE;4BACH,IAAI,EAAE,wBAAwB;yBAC9B;qBACD;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,iDAAwC;CAC3C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fecExportDescription = void 0;
|
|
4
|
+
exports.fecExportDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true,
|
|
7
|
+
displayOptions: { show: { resource: ['fecExport'] } },
|
|
8
|
+
options: [
|
|
9
|
+
{ name: 'Get', value: 'get', action: 'Get an export', description: 'Retrieve a generated FEC export by ID', routing: { request: { method: 'GET', url: '=/exports/fecs/{{$parameter.exportId}}' } } },
|
|
10
|
+
{ name: 'Generate', value: 'create', action: 'Generate an export', description: 'Generate a FEC export file. May be asynchronous — poll with Get.', routing: { request: { method: 'POST', url: '/exports/fecs', body: { period_start: '={{ $parameter.periodStart }}', period_end: '={{ $parameter.periodEnd }}' } } } },
|
|
11
|
+
],
|
|
12
|
+
default: 'create',
|
|
13
|
+
},
|
|
14
|
+
{ displayName: 'Export ID', name: 'exportId', type: 'string', required: true, displayOptions: { show: { operation: ['get'], resource: ['fecExport'] } }, default: '', description: 'The ID of the FEC export to retrieve' },
|
|
15
|
+
{ displayName: 'Period Start', name: 'periodStart', type: 'string', required: true, displayOptions: { show: { operation: ['create'], resource: ['fecExport'] } }, default: '', description: 'Start date of the export period (YYYY-MM-DD)', placeholder: '2026-01-01' },
|
|
16
|
+
{ displayName: 'Period End', name: 'periodEnd', type: 'string', required: true, displayOptions: { show: { operation: ['create'], resource: ['fecExport'] } }, default: '', description: 'End date of the export period (YYYY-MM-DD)', placeholder: '2026-12-31' },
|
|
17
|
+
];
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/fec-export/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAsB;IACtD;QACC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,IAAI;QACpF,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE;QACrD,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,uCAAuC,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,wCAAwC,EAAE,EAAE,EAAE;YACpM,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,oBAAoB,EAAE,WAAW,EAAE,kEAAkE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,+BAA+B,EAAE,UAAU,EAAE,6BAA6B,EAAE,EAAE,EAAE,EAAE;SACxT;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,sCAAsC,EAAE;IAC3N,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,8CAA8C,EAAE,WAAW,EAAE,YAAY,EAAE;IACvQ,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,4CAA4C,EAAE,WAAW,EAAE,YAAY,EAAE;CACjQ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fileAttachmentDescription = void 0;
|
|
4
|
+
async function uploadFilePreSend(requestOptions) {
|
|
5
|
+
var _a;
|
|
6
|
+
const propertyName = this.getNodeParameter('binaryPropertyName');
|
|
7
|
+
const binaryData = this.helpers.assertBinaryData(propertyName);
|
|
8
|
+
const buffer = await this.helpers.getBinaryDataBuffer(propertyName);
|
|
9
|
+
const boundary = `----n8nFormBoundary${Date.now().toString(16)}${Math.random().toString(16).slice(2)}`;
|
|
10
|
+
const filename = ((_a = binaryData.fileName) !== null && _a !== void 0 ? _a : 'file').replace(/"/g, '');
|
|
11
|
+
const contentType = binaryData.mimeType || 'application/octet-stream';
|
|
12
|
+
const preamble = `--${boundary}\r\nContent-Disposition: form-data; name="file"; filename="${filename}"\r\nContent-Type: ${contentType}\r\n\r\n`;
|
|
13
|
+
const epilogue = `\r\n--${boundary}--\r\n`;
|
|
14
|
+
requestOptions.body = Buffer.concat([
|
|
15
|
+
Buffer.from(preamble, 'utf-8'),
|
|
16
|
+
buffer,
|
|
17
|
+
Buffer.from(epilogue, 'utf-8'),
|
|
18
|
+
]);
|
|
19
|
+
requestOptions.headers = {
|
|
20
|
+
...requestOptions.headers,
|
|
21
|
+
'Content-Type': `multipart/form-data; boundary=${boundary}`,
|
|
22
|
+
};
|
|
23
|
+
return requestOptions;
|
|
24
|
+
}
|
|
25
|
+
exports.fileAttachmentDescription = [
|
|
26
|
+
{
|
|
27
|
+
displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true,
|
|
28
|
+
displayOptions: { show: { resource: ['fileAttachment'] } },
|
|
29
|
+
options: [
|
|
30
|
+
{ name: 'Upload', value: 'upload', action: 'Upload a file', description: 'Upload a file for later use (e.g. invoice import). Max 100MB. PDF required for invoice imports.', routing: { request: { method: 'POST', url: '/file_attachments' }, send: { preSend: [uploadFilePreSend] } } },
|
|
31
|
+
],
|
|
32
|
+
default: 'upload',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Input Binary Field', name: 'binaryPropertyName', type: 'string', default: 'data', required: true,
|
|
36
|
+
displayOptions: { show: { operation: ['upload'], resource: ['fileAttachment'] } },
|
|
37
|
+
description: 'Name of the binary property containing the file to upload',
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/file-attachment/index.ts"],"names":[],"mappings":";;;AAIA,KAAK,UAAU,iBAAiB,CAE/B,cAAmC;;IAEnC,MAAM,YAAY,GAAG,IAAI,CAAC,gB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