@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,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierGetDescription = void 0;
|
|
4
|
+
exports.supplierGetDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Supplier ID',
|
|
7
|
+
name: 'supplierId',
|
|
8
|
+
type: 'string',
|
|
9
|
+
required: true,
|
|
10
|
+
displayOptions: { show: { operation: ['get'], resource: ['supplier'] } },
|
|
11
|
+
default: '',
|
|
12
|
+
description: 'The ID of the supplier to retrieve',
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/supplier/get.ts"],"names":[],"mappings":";;;AAEa,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE;QACxE,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oCAAoC;KACjD;CACD,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierDescription = void 0;
|
|
4
|
+
const get_1 = require("./get");
|
|
5
|
+
const create_1 = require("./create");
|
|
6
|
+
const list_categories_1 = require("./list-categories");
|
|
7
|
+
const categorize_1 = require("./categorize");
|
|
8
|
+
const operations_1 = require("../shared/operations");
|
|
9
|
+
exports.supplierDescription = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true,
|
|
12
|
+
displayOptions: { show: { resource: ['supplier'] } },
|
|
13
|
+
options: [
|
|
14
|
+
{ name: 'Categorize', value: 'categorize', action: 'Categorize a supplier', description: 'Link one or more categories to a supplier', routing: { request: { method: 'PUT', url: '=/suppliers/{{$parameter.supplierIdToCategorize}}/categories', body: '={{ ($parameter.categories?.category ?? []).map((c) => ({ id: parseInt(c.id, 10), weight: c.weight })) }}' } } },
|
|
15
|
+
{ name: 'Create', value: 'create', action: 'Create a supplier', description: 'Create a new supplier', routing: { request: { method: 'POST', url: '/suppliers', body: {
|
|
16
|
+
name: '={{$parameter.name}}',
|
|
17
|
+
reg_no: '={{$parameter.regNo}}',
|
|
18
|
+
establishment_no: '={{$parameter.establishmentNo}}',
|
|
19
|
+
vat_number: '={{$parameter.vatNumber}}',
|
|
20
|
+
emails: '={{ $parameter.emails ? $parameter.emails.split(",").map((e) => e.trim()).filter((e) => e) : undefined }}',
|
|
21
|
+
iban: '={{$parameter.iban}}',
|
|
22
|
+
postal_address: {
|
|
23
|
+
address: '={{$parameter.postalAddressLine1}}',
|
|
24
|
+
postal_code: '={{$parameter.postalAddressPostalCode}}',
|
|
25
|
+
city: '={{$parameter.postalAddressCity}}',
|
|
26
|
+
country_alpha2: '={{$parameter.postalAddressCountry}}',
|
|
27
|
+
},
|
|
28
|
+
supplier_payment_method: '={{$parameter.paymentMethod}}',
|
|
29
|
+
supplier_due_date_delay: '={{$parameter.dueDateDelay}}',
|
|
30
|
+
supplier_due_date_rule: '={{$parameter.dueDateRule}}',
|
|
31
|
+
external_reference: '={{$parameter.externalReference}}',
|
|
32
|
+
} } } },
|
|
33
|
+
{ name: 'Get', value: 'get', action: 'Get a supplier', description: 'Retrieve a single supplier by ID', routing: { request: { method: 'GET', url: '=/suppliers/{{$parameter.supplierId}}' } } },
|
|
34
|
+
{ name: 'Get Many', value: 'getAll', action: 'Get suppliers', description: 'Retrieve a list of suppliers', routing: { request: { method: 'GET', url: '/suppliers' } } },
|
|
35
|
+
{ name: 'List Categories', value: 'listCategories', action: 'List supplier categories', description: 'Retrieve the categories linked to a supplier', routing: { request: { method: 'GET', url: '=/suppliers/{{$parameter.supplierIdForCategories}}/categories' } } },
|
|
36
|
+
{ name: 'Update', value: 'update', action: 'Update a supplier', description: 'Update an existing supplier', routing: { request: { method: 'PUT', url: '=/suppliers/{{$parameter.supplierIdToUpdate}}', body: {
|
|
37
|
+
name: '={{$parameter.name}}',
|
|
38
|
+
reg_no: '={{$parameter.regNo}}',
|
|
39
|
+
establishment_no: '={{$parameter.establishmentNo}}',
|
|
40
|
+
vat_number: '={{$parameter.vatNumber}}',
|
|
41
|
+
emails: '={{ $parameter.emails ? $parameter.emails.split(",").map((e) => e.trim()).filter((e) => e) : undefined }}',
|
|
42
|
+
iban: '={{$parameter.iban}}',
|
|
43
|
+
postal_address: {
|
|
44
|
+
address: '={{$parameter.postalAddressLine1}}',
|
|
45
|
+
postal_code: '={{$parameter.postalAddressPostalCode}}',
|
|
46
|
+
city: '={{$parameter.postalAddressCity}}',
|
|
47
|
+
country_alpha2: '={{$parameter.postalAddressCountry}}',
|
|
48
|
+
},
|
|
49
|
+
supplier_payment_method: '={{$parameter.paymentMethod}}',
|
|
50
|
+
supplier_due_date_delay: '={{$parameter.dueDateDelay}}',
|
|
51
|
+
supplier_due_date_rule: '={{$parameter.dueDateRule}}',
|
|
52
|
+
external_reference: '={{$parameter.externalReference}}',
|
|
53
|
+
} } } },
|
|
54
|
+
],
|
|
55
|
+
default: 'getAll',
|
|
56
|
+
},
|
|
57
|
+
...get_1.supplierGetDescription,
|
|
58
|
+
...(0, operations_1.buildGetAllDescription)('supplier'),
|
|
59
|
+
...create_1.supplierCreateDescription,
|
|
60
|
+
{ displayName: 'Supplier ID', name: 'supplierIdToUpdate', type: 'string', required: true, displayOptions: { show: { operation: ['update'], resource: ['supplier'] } }, default: '', description: 'The ID of the supplier to update' },
|
|
61
|
+
...list_categories_1.supplierListCategoriesDescription,
|
|
62
|
+
...categorize_1.supplierCategorizeDescription,
|
|
63
|
+
];
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/supplier/index.ts"],"names":[],"mappings":";;;AACA,+BAA+C;AAC/C,qCAAqD;AACrD,uDAAsE;AACtE,6CAA6D;AAC7D,qDAA8D;AAEjD,QAAA,mBAAmB,GAAsB;IACrD;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,UAAU,CAAC,EAAE,EAAE;QACpD,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,uBAAuB,EAAE,WAAW,EAAE,2CAA2C,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,8DAA8D,EAAE,IAAI,EAAE,2GAA2G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,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierListCategoriesDescription = void 0;
|
|
4
|
+
const showForSupplierListCategories = { operation: ['listCategories'], resource: ['supplier'] };
|
|
5
|
+
exports.supplierListCategoriesDescription = [
|
|
6
|
+
{ displayName: 'Supplier ID', name: 'supplierIdForCategories', type: 'string', required: true, default: '', displayOptions: { show: showForSupplierListCategories }, description: 'The ID of the supplier whose categories to list' },
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Return All', name: 'returnAllCategories', type: 'boolean', default: false,
|
|
9
|
+
displayOptions: { show: showForSupplierListCategories },
|
|
10
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
11
|
+
routing: { send: { paginate: '={{ $value }}' }, operations: { pagination: { type: 'generic', properties: { continue: '={{ $response.body.has_more }}', request: { qs: { cursor: '={{ $response.body.next_cursor }}' } } } } } },
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
displayName: 'Limit', name: 'limitCategories', type: 'number', typeOptions: { minValue: 1, maxValue: 100 }, default: 20,
|
|
15
|
+
displayOptions: { show: { ...showForSupplierListCategories, returnAllCategories: [false] } },
|
|
16
|
+
description: 'Max number of categories to return',
|
|
17
|
+
routing: { send: { type: 'query', property: 'limit' }, output: { maxResults: '={{$value}}' } },
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=list-categories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-categories.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/supplier/list-categories.ts"],"names":[],"mappings":";;;AAEA,MAAM,6BAA6B,GAAG,EAAE,SAAS,EAAE,CAAC,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AAEnF,QAAA,iCAAiC,GAAsB;IACnE,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,yBAAyB,E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
+
const showForSupplierInvoiceCategorize = { operation: ['categorize'], resource: ['supplierInvoice'] };
|
|
5
|
+
exports.supplierInvoiceCategorizeDescription = [
|
|
6
|
+
{ displayName: 'Invoice ID', name: 'supplierInvoiceIdToCategorize', type: 'string', required: true, default: '', displayOptions: { show: showForSupplierInvoiceCategorize }, description: 'The ID of the supplier invoice to categorize' },
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Categories', name: 'categories', type: 'fixedCollection', default: {}, required: true,
|
|
9
|
+
displayOptions: { show: showForSupplierInvoiceCategorize },
|
|
10
|
+
description: 'Categories to link to the invoice. Weights of categories sharing the same category group must sum to 1.',
|
|
11
|
+
typeOptions: { multipleValues: true },
|
|
12
|
+
options: [{ name: 'category', displayName: 'Category', values: [
|
|
13
|
+
{ displayName: 'Category ID', name: 'id', type: 'string', required: true, default: '', displayOptions: { show: showForSupplierInvoiceCategorize }, description: 'The ID of the category to link' },
|
|
14
|
+
{ displayName: 'Weight', name: 'weight', type: 'string', required: true, default: '1', displayOptions: { show: showForSupplierInvoiceCategorize }, description: 'A number between 0 and 1 (inclusive), up to 7 decimals. E.g. "0.85" means 85%. Weights of categories in the same category group must sum to 1.' },
|
|
15
|
+
] }],
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
//# sourceMappingURL=categorize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categorize.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/supplier-invoice/categorize.ts"],"names":[],"mappings":";;;AAEA,MAAM,gCAAgC,GAAG,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;AAEzF,QAAA,oCAAoC,GAAsB;IACtE,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,+BAA+B,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,gCAAgC,EAAE,EAAE,WAAW,EAAE,8CAA8C,EAAE;IAC1O;QACC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI;QACnG,cAAc,EAAE,EAAE,IAAI,EAAE,gCAAgC,EAAE;QAC1D,WAAW,EAAE,yGAAyG;QACtH,WAAW,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE;QACrC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE;oBAC9D,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,gCAAgC,EAAE,EAAE,WAAW,EAAE,gCAAgC,EAAE;oBAClM,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,gCAAgC,EAAE,EAAE,WAAW,EAAE,gJAAgJ,EAAE;iBAClT,EAAC,CAAC;KACH;CACD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierInvoiceGetDescription = void 0;
|
|
4
|
+
exports.supplierInvoiceGetDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Invoice ID',
|
|
7
|
+
name: 'invoiceId',
|
|
8
|
+
type: 'string',
|
|
9
|
+
required: true,
|
|
10
|
+
displayOptions: { show: { operation: ['get'], resource: ['supplierInvoice'] } },
|
|
11
|
+
default: '',
|
|
12
|
+
description: 'The ID of the supplier invoice to retrieve',
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/supplier-invoice/get.ts"],"names":[],"mappings":";;;AAEa,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE;QAC/E,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4CAA4C;KACzD;CACD,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IExecuteSingleFunctions, IHttpRequestOptions, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare function importEInvoicePreSend(this: IExecuteSingleFunctions, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions>;
|
|
3
|
+
export declare const supplierInvoiceImportEInvoiceDescription: INodeProperties[];
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierInvoiceImportEInvoiceDescription = void 0;
|
|
4
|
+
exports.importEInvoicePreSend = importEInvoicePreSend;
|
|
5
|
+
const showForSupplierInvoiceImportEInvoice = { operation: ['importEInvoice'], resource: ['supplierInvoice'] };
|
|
6
|
+
async function importEInvoicePreSend(requestOptions) {
|
|
7
|
+
var _a;
|
|
8
|
+
const propertyName = this.getNodeParameter('eInvoiceBinaryPropertyName');
|
|
9
|
+
const binaryData = this.helpers.assertBinaryData(propertyName);
|
|
10
|
+
const buffer = await this.helpers.getBinaryDataBuffer(propertyName);
|
|
11
|
+
const supplierId = this.getNodeParameter('eInvoiceSupplierId', '');
|
|
12
|
+
const lines = this.getNodeParameter('eInvoiceInvoiceLines.line', []);
|
|
13
|
+
const invoiceOptions = {};
|
|
14
|
+
if (supplierId) {
|
|
15
|
+
invoiceOptions.supplier_id = parseInt(supplierId, 10);
|
|
16
|
+
}
|
|
17
|
+
if (Array.isArray(lines) && lines.length > 0) {
|
|
18
|
+
invoiceOptions.invoice_lines = lines.map((line) => ({
|
|
19
|
+
e_invoice_line_id: line.eInvoiceLineId,
|
|
20
|
+
ledger_account_id: line.ledgerAccountId ? parseInt(line.ledgerAccountId, 10) : undefined,
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
const boundary = `----n8nFormBoundary${Date.now().toString(16)}${Math.random().toString(16).slice(2)}`;
|
|
24
|
+
const filename = ((_a = binaryData.fileName) !== null && _a !== void 0 ? _a : 'file').replace(/"/g, '');
|
|
25
|
+
const contentType = binaryData.mimeType || 'application/octet-stream';
|
|
26
|
+
const parts = [
|
|
27
|
+
Buffer.from(`--${boundary}\r\nContent-Disposition: form-data; name="file"; filename="${filename}"\r\nContent-Type: ${contentType}\r\n\r\n`, 'utf-8'),
|
|
28
|
+
buffer,
|
|
29
|
+
Buffer.from('\r\n', 'utf-8'),
|
|
30
|
+
];
|
|
31
|
+
if (Object.keys(invoiceOptions).length > 0) {
|
|
32
|
+
parts.push(Buffer.from(`--${boundary}\r\nContent-Disposition: form-data; name="invoice_options"\r\nContent-Type: application/json\r\n\r\n${JSON.stringify(invoiceOptions)}\r\n`, 'utf-8'));
|
|
33
|
+
}
|
|
34
|
+
parts.push(Buffer.from(`--${boundary}--\r\n`, 'utf-8'));
|
|
35
|
+
requestOptions.body = Buffer.concat(parts);
|
|
36
|
+
requestOptions.headers = {
|
|
37
|
+
...requestOptions.headers,
|
|
38
|
+
'Content-Type': `multipart/form-data; boundary=${boundary}`,
|
|
39
|
+
};
|
|
40
|
+
return requestOptions;
|
|
41
|
+
}
|
|
42
|
+
exports.supplierInvoiceImportEInvoiceDescription = [
|
|
43
|
+
{ displayName: 'Input Binary Field', name: 'eInvoiceBinaryPropertyName', type: 'string', default: 'data', required: true, displayOptions: { show: showForSupplierInvoiceImportEInvoice }, description: 'Name of the binary property containing the e-invoice file to import. Must be a Factur-X PDF, a UBL XML invoice, or a CII XML invoice.' },
|
|
44
|
+
{ displayName: 'Supplier ID', name: 'eInvoiceSupplierId', type: 'string', default: '', displayOptions: { show: showForSupplierInvoiceImportEInvoice }, description: 'Optional: the ID of the supplier for the imported invoice' },
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Invoice Lines', name: 'eInvoiceInvoiceLines', type: 'fixedCollection', default: {}, displayOptions: { show: showForSupplierInvoiceImportEInvoice },
|
|
47
|
+
description: 'Optional line-level enrichment data, matched to the e-invoice by line ID',
|
|
48
|
+
typeOptions: { multipleValues: true },
|
|
49
|
+
options: [{ name: 'line', displayName: 'Invoice Line', values: [
|
|
50
|
+
{ displayName: 'E-Invoice Line ID', name: 'eInvoiceLineId', type: 'string', required: true, default: '', displayOptions: { show: showForSupplierInvoiceImportEInvoice }, description: 'The Factur-X/UBL/CII line identifier (e.g. Factur-X BT-126 LineID) to enrich' },
|
|
51
|
+
{ displayName: 'Ledger Account ID', name: 'ledgerAccountId', type: 'string', default: '', displayOptions: { show: showForSupplierInvoiceImportEInvoice }, description: 'The ledger account ID to assign to this line' },
|
|
52
|
+
] }],
|
|
53
|
+
},
|
|
54
|
+
];
|
|
55
|
+
//# sourceMappingURL=import-e-invoice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-e-invoice.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/supplier-invoice/import-e-invoice.ts"],"names":[],"mappings":";;;AAOA,sDA0DC;AA/DD,MAAM,oCAAoC,GAAG,EAAE,SAAS,EAAE,CAAC,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;AAKvG,KAAK,UAAU,qBAA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EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,oCAAoC,EAAE,EAAE,WAAW,EAAE,2DAA2D,EAAE;IACjO;QACC,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,sBAAsB,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,oCAAoC,EAAE;QAChK,WAAW,EAAE,0EAA0E;QACvF,WAAW,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE;QACrC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,EAAE;oBAC9D,EAAE,WAAW,EAAE,mBAAmB,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,oCAAoC,EAAE,EAAE,WAAW,EAAE,8EAA8E,EAAE;oBACtQ,EAAE,WAAW,EAAE,mBAAmB,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,oCAAoC,EAAE,EAAE,WAAW,EAAE,8CAA8C,EAAE;iBACvN,EAAC,CAAC;KACH;CACD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierInvoiceImportDescription = void 0;
|
|
4
|
+
const showForSupplierInvoiceImport = { operation: ['import'], resource: ['supplierInvoice'] };
|
|
5
|
+
exports.supplierInvoiceImportDescription = [
|
|
6
|
+
{ displayName: 'File Attachment ID', name: 'fileAttachmentId', type: 'string', required: true, default: '', displayOptions: { show: showForSupplierInvoiceImport }, description: 'The ID obtained from a prior File Attachment Upload operation' },
|
|
7
|
+
{ displayName: 'Currency Amount', name: 'currencyAmount', type: 'string', default: '', displayOptions: { show: showForSupplierInvoiceImport }, description: 'Total amount including tax' },
|
|
8
|
+
{ displayName: 'Currency Amount Before Tax', name: 'currencyAmountBeforeTax', type: 'string', default: '', displayOptions: { show: showForSupplierInvoiceImport }, description: 'Total amount excluding tax' },
|
|
9
|
+
{ displayName: 'Currency Tax', name: 'currencyTax', type: 'string', default: '', displayOptions: { show: showForSupplierInvoiceImport }, description: 'Total tax amount' },
|
|
10
|
+
{ displayName: 'Date', name: 'date', type: 'string', default: '', displayOptions: { show: showForSupplierInvoiceImport }, description: 'Invoice date (ISO 8601)', placeholder: '2026-07-07' },
|
|
11
|
+
{ displayName: 'Deadline', name: 'deadline', type: 'string', default: '', displayOptions: { show: showForSupplierInvoiceImport }, description: 'Payment deadline date (ISO 8601)', placeholder: '2026-08-06' },
|
|
12
|
+
{ displayName: 'Supplier ID', name: 'supplierId', type: 'string', default: '', displayOptions: { show: showForSupplierInvoiceImport }, description: 'The ID of the supplier for this invoice' },
|
|
13
|
+
{ displayName: 'Invoice Lines', name: 'invoiceLines', type: 'fixedCollection', default: {}, displayOptions: { show: showForSupplierInvoiceImport }, description: 'Line items', options: [{ name: 'line', displayName: 'Invoice Line', values: [
|
|
14
|
+
{ displayName: 'Currency Amount', name: 'currencyAmount', type: 'string', default: '', displayOptions: { show: showForSupplierInvoiceImport } },
|
|
15
|
+
{ displayName: 'Currency Tax', name: 'currencyTax', type: 'string', default: '', displayOptions: { show: showForSupplierInvoiceImport } },
|
|
16
|
+
{ displayName: 'Ledger Account ID', name: 'ledgerAccountId', type: 'string', default: '', displayOptions: { show: showForSupplierInvoiceImport } },
|
|
17
|
+
{ displayName: 'VAT Rate', name: 'vatRate', type: 'string', default: 'FR_200', displayOptions: { show: showForSupplierInvoiceImport }, description: 'VAT rate identifier' },
|
|
18
|
+
] }] },
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=import.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3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,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,4BAA4B,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE;iBAC3K,EAAC,CAAC,EAAE;CACL,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierInvoiceDescription = void 0;
|
|
4
|
+
const get_1 = require("./get");
|
|
5
|
+
const import_1 = require("./import");
|
|
6
|
+
const list_invoice_lines_1 = require("./list-invoice-lines");
|
|
7
|
+
const list_categories_1 = require("./list-categories");
|
|
8
|
+
const list_payments_1 = require("./list-payments");
|
|
9
|
+
const list_matched_transactions_1 = require("./list-matched-transactions");
|
|
10
|
+
const link_purchase_request_1 = require("./link-purchase-request");
|
|
11
|
+
const import_e_invoice_1 = require("./import-e-invoice");
|
|
12
|
+
const update_1 = require("./update");
|
|
13
|
+
const categorize_1 = require("./categorize");
|
|
14
|
+
const validate_accounting_1 = require("./validate-accounting");
|
|
15
|
+
const update_e_invoice_status_1 = require("./update-e-invoice-status");
|
|
16
|
+
const operations_1 = require("../shared/operations");
|
|
17
|
+
exports.supplierInvoiceDescription = [
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true,
|
|
20
|
+
displayOptions: { show: { resource: ['supplierInvoice'] } },
|
|
21
|
+
options: [
|
|
22
|
+
{ name: 'Categorize', value: 'categorize', action: 'Categorize an invoice', description: 'Link one or more categories to a supplier invoice', routing: { request: { method: 'PUT', url: '=/supplier_invoices/{{$parameter.supplierInvoiceIdToCategorize}}/categories', body: '={{ ($parameter.categories?.category ?? []).map((c) => ({ id: parseInt(c.id, 10), weight: c.weight })) }}' } } },
|
|
23
|
+
{ name: 'Get', value: 'get', action: 'Get an invoice', description: 'Retrieve a single supplier invoice by ID', routing: { request: { method: 'GET', url: '=/supplier_invoices/{{$parameter.invoiceId}}' } } },
|
|
24
|
+
{ name: 'Get Many', value: 'getAll', action: 'Get invoices', description: 'Retrieve a list of supplier invoices', routing: { request: { method: 'GET', url: '/supplier_invoices' } } },
|
|
25
|
+
{ name: 'Import', value: 'import', action: 'Import an invoice', description: 'Import a supplier invoice with a file attachment. Use File Attachment Upload first. Recommended: Factur-X PDF.', routing: { request: { method: 'POST', url: '/supplier_invoices/import', body: { file_attachment_id: '={{ $parameter.fileAttachmentId }}', supplier_id: '={{ $parameter.supplierId }}', date: '={{ $parameter.date }}', deadline: '={{ $parameter.deadline }}', currency_amount_before_tax: '={{ $parameter.currencyAmountBeforeTax }}', currency_tax: '={{ $parameter.currencyTax }}', currency_amount: '={{ $parameter.currencyAmount }}', invoice_lines: '={{ ($parameter.invoiceLines?.line ?? []).map(l => ({ ledger_account_id: l.ledgerAccountId ? parseInt(l.ledgerAccountId, 10) : undefined, currency_amount: l.currencyAmount, currency_tax: l.currencyTax, vat_rate: l.vatRate })) }}' } } } },
|
|
26
|
+
{ name: 'Import E-Invoice', value: 'importEInvoice', action: 'Import an e invoice', description: 'Import a supplier e-invoice (Factur-X PDF, UBL XML, or CII XML) from a binary file', routing: { request: { method: 'POST', url: '/supplier_invoices/e_invoices/imports' }, send: { preSend: [import_e_invoice_1.importEInvoicePreSend] } } },
|
|
27
|
+
{ name: 'Link Purchase Request', value: 'linkPurchaseRequest', action: 'Link a purchase request', description: 'Link a purchase request to a supplier invoice', routing: { request: { method: 'POST', url: '=/supplier_invoices/{{$parameter.supplierInvoiceIdForLinkPurchaseRequest}}/linked_purchase_requests', body: { purchase_request_id: '={{ parseInt($parameter.purchaseRequestId, 10) }}' } } } },
|
|
28
|
+
{ name: 'List Categories', value: 'listCategories', action: 'List categories', description: 'Retrieve the categories linked to a supplier invoice', routing: { request: { method: 'GET', url: '=/supplier_invoices/{{$parameter.supplierInvoiceIdForCategories}}/categories' } } },
|
|
29
|
+
{ name: 'List Invoice Lines', value: 'listInvoiceLines', action: 'List invoice lines', description: 'Retrieve the invoice lines for a supplier invoice', routing: { request: { method: 'GET', url: '=/supplier_invoices/{{$parameter.supplierInvoiceIdForInvoiceLines}}/invoice_lines' } } },
|
|
30
|
+
{ name: 'List Matched Transactions', value: 'listMatchedTransactions', action: 'List matched transactions', description: 'Retrieve the bank transactions matched to a supplier invoice', routing: { request: { method: 'GET', url: '=/supplier_invoices/{{$parameter.supplierInvoiceIdForMatchedTransactions}}/matched_transactions' } } },
|
|
31
|
+
{ name: 'List Payments', value: 'listPayments', action: 'List payments', description: 'Retrieve the payments recorded against a supplier invoice', routing: { request: { method: 'GET', url: '=/supplier_invoices/{{$parameter.supplierInvoiceIdForPayments}}/payments' } } },
|
|
32
|
+
{ name: 'Update', value: 'update', action: 'Update an invoice', description: 'Update an existing supplier invoice', routing: { request: { method: 'PUT', url: '=/supplier_invoices/{{$parameter.supplierInvoiceIdToUpdate}}', body: {
|
|
33
|
+
supplier_id: '={{ $parameter.updateSupplierId ? parseInt($parameter.updateSupplierId, 10) : undefined }}',
|
|
34
|
+
date: '={{ $parameter.updateDate || undefined }}',
|
|
35
|
+
deadline: '={{ $parameter.updateDeadline || undefined }}',
|
|
36
|
+
invoice_number: '={{ $parameter.updateInvoiceNumber || undefined }}',
|
|
37
|
+
label: '={{ $parameter.updateLabel || undefined }}',
|
|
38
|
+
currency: '={{ $parameter.updateCurrency || undefined }}',
|
|
39
|
+
currency_amount: '={{ $parameter.updateCurrencyAmount || undefined }}',
|
|
40
|
+
currency_amount_before_tax: '={{ $parameter.updateCurrencyAmountBeforeTax || undefined }}',
|
|
41
|
+
currency_tax: '={{ $parameter.updateCurrencyTax || undefined }}',
|
|
42
|
+
amount: '={{ $parameter.updateAmount || undefined }}',
|
|
43
|
+
tax: '={{ $parameter.updateTax || undefined }}',
|
|
44
|
+
external_reference: '={{ $parameter.updateExternalReference || undefined }}',
|
|
45
|
+
transaction_reference: '={{ $parameter.updateTransactionReference?.reference?.providerFieldValue ? { banking_provider: $parameter.updateTransactionReference.reference.bankingProvider, provider_field_name: $parameter.updateTransactionReference.reference.providerFieldName, provider_field_value: $parameter.updateTransactionReference.reference.providerFieldValue } : undefined }}',
|
|
46
|
+
invoice_lines: '={{ (($parameter.updateInvoiceLinesCreate?.line?.length ?? 0) > 0 || ($parameter.updateInvoiceLinesUpdate?.line?.length ?? 0) > 0 || ($parameter.updateInvoiceLinesDelete?.line?.length ?? 0) > 0) ? { create: ($parameter.updateInvoiceLinesCreate?.line ?? []).map((l) => ({ label: l.label, currency_amount: l.currencyAmount, currency_tax: l.currencyTax, vat_rate: l.vatRate, description: l.description || undefined, ledger_account_id: l.ledgerAccountId ? parseInt(l.ledgerAccountId, 10) : undefined })), update: ($parameter.updateInvoiceLinesUpdate?.line ?? []).map((l) => ({ id: parseInt(l.id, 10), label: l.label || undefined, currency_amount: l.currencyAmount || undefined, currency_tax: l.currencyTax || undefined, vat_rate: l.vatRate || undefined, description: l.description || undefined, ledger_account_id: l.ledgerAccountId ? parseInt(l.ledgerAccountId, 10) : undefined })), delete: ($parameter.updateInvoiceLinesDelete?.line ?? []).map((l) => ({ id: parseInt(l.id, 10) })) } : undefined }}',
|
|
47
|
+
} } } },
|
|
48
|
+
{ name: 'Update E-Invoice Status', value: 'updateEInvoiceStatus', action: 'Update e invoice status', description: 'Approve, dispute, or refuse a received supplier e-invoice', routing: { request: { method: 'PUT', url: '=/supplier_invoices/{{$parameter.supplierInvoiceIdForEInvoiceStatus}}/e_invoice_status', body: {
|
|
49
|
+
status: '={{ $parameter.eInvoiceStatus }}',
|
|
50
|
+
reason: '={{ $parameter.eInvoiceStatus === "disputed" ? $parameter.eInvoiceDisputeReason : ($parameter.eInvoiceStatus === "refused" ? $parameter.eInvoiceRefusalReason : undefined) }}',
|
|
51
|
+
} } } },
|
|
52
|
+
{ name: 'Update Payment Status', value: 'updatePaymentStatus', action: 'Update invoice payment status', description: 'Set a supplier invoice as paid or to be paid', routing: { request: { method: 'PUT', url: '=/supplier_invoices/{{$parameter.supplierInvoiceIdForPaymentStatus}}/payment_status', body: { payment_status: '={{ $parameter.paymentStatus }}' } } } },
|
|
53
|
+
{ name: 'Validate Accounting', value: 'validateAccounting', action: 'Validate the accounting', description: 'Validate the accounting of a supplier invoice, transitioning it to "complete"', routing: { request: { method: 'PUT', url: '=/supplier_invoices/{{$parameter.supplierInvoiceIdForValidateAccounting}}/validate_accounting' } } },
|
|
54
|
+
],
|
|
55
|
+
default: 'getAll',
|
|
56
|
+
},
|
|
57
|
+
...get_1.supplierInvoiceGetDescription,
|
|
58
|
+
...(0, operations_1.buildGetAllDescription)('supplierInvoice'),
|
|
59
|
+
...import_1.supplierInvoiceImportDescription,
|
|
60
|
+
...import_e_invoice_1.supplierInvoiceImportEInvoiceDescription,
|
|
61
|
+
...list_invoice_lines_1.supplierInvoiceListInvoiceLinesDescription,
|
|
62
|
+
...list_categories_1.supplierInvoiceListCategoriesDescription,
|
|
63
|
+
...list_payments_1.supplierInvoiceListPaymentsDescription,
|
|
64
|
+
...list_matched_transactions_1.supplierInvoiceListMatchedTransactionsDescription,
|
|
65
|
+
...link_purchase_request_1.supplierInvoiceLinkPurchaseRequestDescription,
|
|
66
|
+
...update_1.supplierInvoiceUpdateDescription,
|
|
67
|
+
...categorize_1.supplierInvoiceCategorizeDescription,
|
|
68
|
+
...validate_accounting_1.supplierInvoiceValidateAccountingDescription,
|
|
69
|
+
...update_e_invoice_status_1.supplierInvoiceUpdateEInvoiceStatusDescription,
|
|
70
|
+
{ displayName: 'Invoice ID', name: 'supplierInvoiceIdForPaymentStatus', type: 'string', required: true, displayOptions: { show: { operation: ['updatePaymentStatus'], resource: ['supplierInvoice'] } }, default: '', description: 'The ID of the supplier invoice to update' },
|
|
71
|
+
{ displayName: 'Payment Status', name: 'paymentStatus', type: 'options', required: true, displayOptions: { show: { operation: ['updatePaymentStatus'], resource: ['supplierInvoice'] } }, options: [{ name: 'Paid', value: 'paid' }, { name: 'To Be Paid', value: 'to_be_paid' }], default: 'paid', description: 'The new payment status of the supplier invoice' },
|
|
72
|
+
];
|
|
73
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/supplier-invoice/index.ts"],"names":[],"mappings":";;;AACA,+BAAsD;AACtD,qCAA4D;AAC5D,6DAAkF;AAClF,uDAA6E;AAC7E,mDAAyE;AACzE,2EAAgG;AAChG,mEAAwF;AACxF,yDAAqG;AACrG,qCAA4D;AAC5D,6CAAoE;AACpE,+DAAqF;AACrF,uEAA2F;AAC3F,qDAA8D;AAEjD,QAAA,0BAA0B,GAAsB;IAC5D;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,iBAAiB,CAAC,EAAE,EAAE;QAC3D,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,uBAAuB,EAAE,WAAW,EAAE,mDAAmD,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,6EAA6E,EAAE,IAAI,EAAE,2GAA2G,EAAE,EAAE,EAAE;YAC9X,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,0CAA0C,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,8CAA8C,EAAE,EAAE,EAAE;YAC9M,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,sCAAsC,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GA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Y,EAAE,IAAI,EAAE,mCAAmC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,qBAAqB,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,0CAA0C,EAAE;IAC/Q,EAAE,WAAW,EAAE,gBAAgB,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,qBAAqB,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,gDAAgD,EAAE;CACnW,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierInvoiceLinkPurchaseRequestDescription = void 0;
|
|
4
|
+
const showForSupplierInvoiceLinkPurchaseRequest = { operation: ['linkPurchaseRequest'], resource: ['supplierInvoice'] };
|
|
5
|
+
exports.supplierInvoiceLinkPurchaseRequestDescription = [
|
|
6
|
+
{ displayName: 'Invoice ID', name: 'supplierInvoiceIdForLinkPurchaseRequest', type: 'string', required: true, default: '', displayOptions: { show: showForSupplierInvoiceLinkPurchaseRequest }, description: 'The ID of the supplier invoice to link the purchase request to' },
|
|
7
|
+
{ displayName: 'Purchase Request ID', name: 'purchaseRequestId', type: 'string', required: true, default: '', displayOptions: { show: showForSupplierInvoiceLinkPurchaseRequest }, description: 'The ID of the purchase request to link to this invoice' },
|
|
8
|
+
];
|
|
9
|
+
//# sourceMappingURL=link-purchase-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-purchase-request.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/supplier-invoice/link-purchase-request.ts"],"names":[],"mappings":";;;AAEA,MAAM,yCAAyC,GAAG,EAAE,SAAS,EAAE,CAAC,qBAAqB,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;AAE3G,QAAA,6CAA6C,GAAsB;IAC/E,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,yCAAyC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,yCAAyC,EAAE,EAAE,WAAW,EAAE,gEAAgE,EAAE;IAC/Q,EAAE,WAAW,EAAE,qBAAqB,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,yCAAyC,EAAE,EAAE,WAAW,EAAE,wDAAwD,EAAE;CAC1P,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierInvoiceListCategoriesDescription = void 0;
|
|
4
|
+
const showForSupplierInvoiceListCategories = { operation: ['listCategories'], resource: ['supplierInvoice'] };
|
|
5
|
+
exports.supplierInvoiceListCategoriesDescription = [
|
|
6
|
+
{ displayName: 'Invoice ID', name: 'supplierInvoiceIdForCategories', type: 'string', required: true, default: '', displayOptions: { show: showForSupplierInvoiceListCategories }, description: 'The ID of the supplier invoice whose categories should be retrieved' },
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Return All', name: 'returnAllCategories', type: 'boolean', default: false,
|
|
9
|
+
displayOptions: { show: showForSupplierInvoiceListCategories }, description: 'Whether to return all results or only up to a given limit',
|
|
10
|
+
routing: {
|
|
11
|
+
send: { paginate: '={{ $value }}' },
|
|
12
|
+
operations: {
|
|
13
|
+
pagination: {
|
|
14
|
+
type: 'generic',
|
|
15
|
+
properties: {
|
|
16
|
+
continue: '={{ $response.body.has_more }}',
|
|
17
|
+
request: { qs: { cursor: '={{ $response.body.next_cursor }}' } },
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Limit', name: 'limitCategories', type: 'number', typeOptions: { minValue: 1, maxValue: 100 }, default: 20,
|
|
25
|
+
displayOptions: { show: { ...showForSupplierInvoiceListCategories, returnAllCategories: [false] } }, description: 'Max number of categories to return',
|
|
26
|
+
routing: {
|
|
27
|
+
send: { type: 'query', property: 'limit' },
|
|
28
|
+
output: { maxResults: '={{$value}}' },
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
//# sourceMappingURL=list-categories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-categories.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/supplier-invoice/list-categories.ts"],"names":[],"mappings":";;;AAEA,MAAM,oCAAoC,GAAG,EAAE,SAAS,EAAE,CAAC,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;AAEjG,QAAA,wCAAwC,GAAsB;IAC1E,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,gCAAgC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,oCAAoC,EAAE,EAAE,WAAW,EAAE,qEAAqE,EAAE;IACtQ;QACC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK;QACvF,cAAc,EAAE,EAAE,IAAI,EAAE,oCAAoC,EAAE,EAAE,WAAW,EAAE,2DAA2D;QACxI,OAAO,EAAE;YACR,IAAI,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE;YACnC,UAAU,EAAE;gBACX,UAAU,EAAE;oBACX,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE;wBACX,QAAQ,EAAE,gCAAgC;wBAC1C,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,mCAAmC,EAAE,EAAE;qBAChE;iBACD;aACD;SACD;KACD;IACD;QACC,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE;QACvH,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,oCAAoC,EAAE,mBAAmB,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,oCAAoC;QACtJ,OAAO,EAAE;YACR,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE;YAC1C,MAAM,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE;SACrC;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierInvoiceListInvoiceLinesDescription = void 0;
|
|
4
|
+
const showForSupplierInvoiceListInvoiceLines = { operation: ['listInvoiceLines'], resource: ['supplierInvoice'] };
|
|
5
|
+
exports.supplierInvoiceListInvoiceLinesDescription = [
|
|
6
|
+
{ displayName: 'Invoice ID', name: 'supplierInvoiceIdForInvoiceLines', type: 'string', required: true, default: '', displayOptions: { show: showForSupplierInvoiceListInvoiceLines }, description: 'The ID of the supplier invoice whose invoice lines should be retrieved' },
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Sort', name: 'sortInvoiceLines', type: 'options', default: '-id',
|
|
9
|
+
displayOptions: { show: showForSupplierInvoiceListInvoiceLines }, description: 'Sort order for the results',
|
|
10
|
+
options: [
|
|
11
|
+
{ name: 'ID Ascending', value: 'id' },
|
|
12
|
+
{ name: 'ID Descending', value: '-id' },
|
|
13
|
+
],
|
|
14
|
+
routing: { send: { type: 'query', property: 'sort' } },
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Return All', name: 'returnAllInvoiceLines', type: 'boolean', default: false,
|
|
18
|
+
displayOptions: { show: showForSupplierInvoiceListInvoiceLines }, description: 'Whether to return all results or only up to a given limit',
|
|
19
|
+
routing: {
|
|
20
|
+
send: { paginate: '={{ $value }}' },
|
|
21
|
+
operations: {
|
|
22
|
+
pagination: {
|
|
23
|
+
type: 'generic',
|
|
24
|
+
properties: {
|
|
25
|
+
continue: '={{ $response.body.has_more }}',
|
|
26
|
+
request: { qs: { cursor: '={{ $response.body.next_cursor }}' } },
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Limit', name: 'limitInvoiceLines', type: 'number', typeOptions: { minValue: 1, maxValue: 100 }, default: 20,
|
|
34
|
+
displayOptions: { show: { ...showForSupplierInvoiceListInvoiceLines, returnAllInvoiceLines: [false] } }, description: 'Max number of results to return',
|
|
35
|
+
routing: {
|
|
36
|
+
send: { type: 'query', property: 'limit' },
|
|
37
|
+
output: { maxResults: '={{$value}}' },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
//# sourceMappingURL=list-invoice-lines.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-invoice-lines.js","sourceRoot":"","sources":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,EAAE,EAAE,EAAE,MAAM,EAAE,mCAAmC,EAAE,EAAE;qBAChE;iBACD;aACD;SACD;KACD;IACD;QACC,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE;QACzH,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,sCAAsC,EAAE,qBAAqB,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,iCAAiC;QACvJ,OAAO,EAAE;YACR,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE;YAC1C,MAAM,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE;SACrC;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierInvoiceListMatchedTransactionsDescription = void 0;
|
|
4
|
+
const showForSupplierInvoiceListMatchedTransactions = { operation: ['listMatchedTransactions'], resource: ['supplierInvoice'] };
|
|
5
|
+
exports.supplierInvoiceListMatchedTransactionsDescription = [
|
|
6
|
+
{ displayName: 'Invoice ID', name: 'supplierInvoiceIdForMatchedTransactions', type: 'string', required: true, default: '', displayOptions: { show: showForSupplierInvoiceListMatchedTransactions }, description: 'The ID of the supplier invoice whose matched bank transactions should be retrieved' },
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Sort', name: 'sortMatchedTransactions', type: 'options', default: '-id',
|
|
9
|
+
displayOptions: { show: showForSupplierInvoiceListMatchedTransactions }, description: 'Sort order for the results',
|
|
10
|
+
options: [
|
|
11
|
+
{ name: 'ID Ascending', value: 'id' },
|
|
12
|
+
{ name: 'ID Descending', value: '-id' },
|
|
13
|
+
],
|
|
14
|
+
routing: { send: { type: 'query', property: 'sort' } },
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Return All', name: 'returnAllMatchedTransactions', type: 'boolean', default: false,
|
|
18
|
+
displayOptions: { show: showForSupplierInvoiceListMatchedTransactions }, description: 'Whether to return all results or only up to a given limit',
|
|
19
|
+
routing: {
|
|
20
|
+
send: { paginate: '={{ $value }}' },
|
|
21
|
+
operations: {
|
|
22
|
+
pagination: {
|
|
23
|
+
type: 'generic',
|
|
24
|
+
properties: {
|
|
25
|
+
continue: '={{ $response.body.has_more }}',
|
|
26
|
+
request: { qs: { cursor: '={{ $response.body.next_cursor }}' } },
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Limit', name: 'limitMatchedTransactions', type: 'number', typeOptions: { minValue: 1, maxValue: 100 }, default: 20,
|
|
34
|
+
displayOptions: { show: { ...showForSupplierInvoiceListMatchedTransactions, returnAllMatchedTransactions: [false] } }, description: 'Max number of matched transactions to return',
|
|
35
|
+
routing: {
|
|
36
|
+
send: { type: 'query', property: 'limit' },
|
|
37
|
+
output: { maxResults: '={{$value}}' },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
//# sourceMappingURL=list-matched-transactions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-matched-transactions.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/supplier-invoice/list-matched-transactions.ts"],"names":[],"mappings":";;;AAEA,MAAM,6CAA6C,GAAG,EAAE,SAAS,EAAE,CAAC,yBAAyB,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;AAEnH,QAAA,iDAAiD,GAAsB;IACnF,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,yCAAyC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO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