@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,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sepaMandateGetAllDescription = void 0;
|
|
4
|
+
const showForSepaMandateGetAll = {
|
|
5
|
+
operation: ['getAll'],
|
|
6
|
+
resource: ['sepaMandate'],
|
|
7
|
+
};
|
|
8
|
+
const SEPA_MANDATE_FILTER_FIELDS = [
|
|
9
|
+
{ name: 'ID', value: 'id' },
|
|
10
|
+
{ name: 'Customer ID', value: 'customer_id' },
|
|
11
|
+
];
|
|
12
|
+
const SEPA_MANDATE_FILTER_OPERATORS = [
|
|
13
|
+
{ name: 'Equals', value: 'eq' },
|
|
14
|
+
{ name: 'Not Equals', value: 'not_eq' },
|
|
15
|
+
{ name: 'Greater Than', value: 'gt' },
|
|
16
|
+
{ name: 'Greater Than or Equal', value: 'gteq' },
|
|
17
|
+
{ name: 'Less Than', value: 'lt' },
|
|
18
|
+
{ name: 'Less Than or Equal', value: 'lteq' },
|
|
19
|
+
{ name: 'In', value: 'in' },
|
|
20
|
+
{ name: 'Not In', value: 'not_in' },
|
|
21
|
+
];
|
|
22
|
+
async function applySepaMandateFilterPreSend(requestOptions) {
|
|
23
|
+
var _a;
|
|
24
|
+
const filters = this.getNodeParameter('filters.filter', []);
|
|
25
|
+
if (!Array.isArray(filters) || filters.length === 0) {
|
|
26
|
+
return requestOptions;
|
|
27
|
+
}
|
|
28
|
+
const payload = filters.map(({ field, operator, value }) => ({
|
|
29
|
+
field,
|
|
30
|
+
operator,
|
|
31
|
+
value: operator === 'in' || operator === 'not_in'
|
|
32
|
+
? value
|
|
33
|
+
.split(',')
|
|
34
|
+
.map((v) => v.trim())
|
|
35
|
+
.filter((v) => v.length > 0)
|
|
36
|
+
: value,
|
|
37
|
+
}));
|
|
38
|
+
requestOptions.qs = (_a = requestOptions.qs) !== null && _a !== void 0 ? _a : {};
|
|
39
|
+
requestOptions.qs.filter = JSON.stringify(payload);
|
|
40
|
+
return requestOptions;
|
|
41
|
+
}
|
|
42
|
+
exports.sepaMandateGetAllDescription = [
|
|
43
|
+
{
|
|
44
|
+
displayName: 'Filters',
|
|
45
|
+
name: 'filters',
|
|
46
|
+
type: 'fixedCollection',
|
|
47
|
+
default: {},
|
|
48
|
+
placeholder: 'Add Filter',
|
|
49
|
+
description: 'Filter results by field, operator, and value. For the "In" / "Not In" operators, separate multiple values with a comma.',
|
|
50
|
+
typeOptions: { multipleValues: true },
|
|
51
|
+
displayOptions: { show: showForSepaMandateGetAll },
|
|
52
|
+
options: [
|
|
53
|
+
{
|
|
54
|
+
name: 'filter',
|
|
55
|
+
displayName: 'Filter Condition',
|
|
56
|
+
values: [
|
|
57
|
+
{
|
|
58
|
+
displayName: 'Field',
|
|
59
|
+
name: 'field',
|
|
60
|
+
type: 'options',
|
|
61
|
+
options: SEPA_MANDATE_FILTER_FIELDS,
|
|
62
|
+
default: 'id',
|
|
63
|
+
description: 'The field to filter on',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Operator',
|
|
67
|
+
name: 'operator',
|
|
68
|
+
type: 'options',
|
|
69
|
+
options: SEPA_MANDATE_FILTER_OPERATORS,
|
|
70
|
+
default: 'eq',
|
|
71
|
+
description: 'Filter operator to apply',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
displayName: 'Value',
|
|
75
|
+
name: 'value',
|
|
76
|
+
type: 'string',
|
|
77
|
+
default: '',
|
|
78
|
+
description: 'The filter value. For "In" / "Not In", separate multiple values with a comma.',
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
routing: {
|
|
84
|
+
send: {
|
|
85
|
+
preSend: [applySepaMandateFilterPreSend],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
displayName: 'Sort',
|
|
91
|
+
name: 'sort',
|
|
92
|
+
type: 'options',
|
|
93
|
+
default: '-id',
|
|
94
|
+
displayOptions: { show: showForSepaMandateGetAll },
|
|
95
|
+
description: 'Sort order for the results',
|
|
96
|
+
options: [
|
|
97
|
+
{ name: 'ID Ascending', value: 'id' },
|
|
98
|
+
{ name: 'ID Descending', value: '-id' },
|
|
99
|
+
],
|
|
100
|
+
routing: {
|
|
101
|
+
send: {
|
|
102
|
+
type: 'query',
|
|
103
|
+
property: 'sort',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
displayName: 'Return All',
|
|
109
|
+
name: 'returnAll',
|
|
110
|
+
type: 'boolean',
|
|
111
|
+
default: false,
|
|
112
|
+
displayOptions: { show: showForSepaMandateGetAll },
|
|
113
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
114
|
+
routing: {
|
|
115
|
+
send: {
|
|
116
|
+
paginate: '={{ $value }}',
|
|
117
|
+
},
|
|
118
|
+
operations: {
|
|
119
|
+
pagination: {
|
|
120
|
+
type: 'generic',
|
|
121
|
+
properties: {
|
|
122
|
+
continue: '={{ $response.body.has_more }}',
|
|
123
|
+
request: {
|
|
124
|
+
qs: {
|
|
125
|
+
cursor: '={{ $response.body.next_cursor }}',
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
displayName: 'Limit',
|
|
135
|
+
name: 'limit',
|
|
136
|
+
type: 'number',
|
|
137
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
138
|
+
default: 50,
|
|
139
|
+
displayOptions: { show: { ...showForSepaMandateGetAll, returnAll: [false] } },
|
|
140
|
+
description: 'Max number of results to return',
|
|
141
|
+
routing: {
|
|
142
|
+
send: {
|
|
143
|
+
type: 'query',
|
|
144
|
+
property: 'limit',
|
|
145
|
+
},
|
|
146
|
+
output: {
|
|
147
|
+
maxResults: '={{$value}}',
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
];
|
|
152
|
+
//# sourceMappingURL=getAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/sepa-mandate/getAll.ts"],"names":[],"mappings":";;;AAEA,MAAM,wBAAwB,GAAG;IAChC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,aAAa,CAAC;CACzB,CAAC;AAMF,MAAM,0BAA0B,GAA2C;IAC1E,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;IAC3B,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;CAC7C,CAAC;AAEF,MAAM,6BAA6B,GAA2C;IAC7E,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;IAC/B,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE;IACvC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE;IACrC,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,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE;SACvC;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE;QAClD,WAAW,EAAE,2DAA2D;QACxE,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,QAAQ,EAAE,eAAe;aACzB;YACD,UAAU,EAAE;gBACX,UAAU,EAAE;oBACX,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE;wBACX,QAAQ,EAAE,gCAAgC;wBAC1C,OAAO,EAAE;4BACR,EAAE,EAAE;gCACH,MAAM,EAAE,mCAAmC;6BAC3C;yBACD;qBACD;iBACD;aACD;SACD;KACD;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE;QAC3C,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,wBAAwB,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;QAC7E,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,OAAO;aACjB;YACD,MAAM,EAAE;gBACP,UAAU,EAAE,aAAa;aACzB;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sepaMandateDescription = void 0;
|
|
4
|
+
const get_1 = require("./get");
|
|
5
|
+
const getAll_1 = require("./getAll");
|
|
6
|
+
const create_1 = require("./create");
|
|
7
|
+
const update_1 = require("./update");
|
|
8
|
+
const delete_1 = require("./delete");
|
|
9
|
+
const showOnlyForSepaMandates = { resource: ['sepaMandate'] };
|
|
10
|
+
exports.sepaMandateDescription = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Operation',
|
|
13
|
+
name: 'operation',
|
|
14
|
+
type: 'options',
|
|
15
|
+
noDataExpression: true,
|
|
16
|
+
displayOptions: { show: showOnlyForSepaMandates },
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
name: 'Create',
|
|
20
|
+
value: 'create',
|
|
21
|
+
action: 'Create a SEPA mandate',
|
|
22
|
+
description: 'Create a new SEPA direct debit mandate for a customer',
|
|
23
|
+
routing: {
|
|
24
|
+
request: {
|
|
25
|
+
method: 'POST',
|
|
26
|
+
url: '/sepa_mandates',
|
|
27
|
+
body: {
|
|
28
|
+
customer_id: '={{ $parameter.customerId }}',
|
|
29
|
+
bic: '={{ $parameter.bic }}',
|
|
30
|
+
iban: '={{ $parameter.iban }}',
|
|
31
|
+
signed_at: '={{ $parameter.signedAt }}',
|
|
32
|
+
identifier: '={{ $parameter.identifier }}',
|
|
33
|
+
bank: '={{ $parameter.bank || undefined }}',
|
|
34
|
+
sequence_type: '={{ $parameter.sequenceType || undefined }}',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Delete',
|
|
41
|
+
value: 'delete',
|
|
42
|
+
action: 'Delete a SEPA mandate',
|
|
43
|
+
description: 'Delete an existing SEPA mandate',
|
|
44
|
+
routing: { request: { method: 'DELETE', url: '=/sepa_mandates/{{$parameter.sepaMandateIdToDelete}}' } },
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Get',
|
|
48
|
+
value: 'get',
|
|
49
|
+
action: 'Get a SEPA mandate',
|
|
50
|
+
description: 'Retrieve a single SEPA mandate by ID',
|
|
51
|
+
routing: { request: { method: 'GET', url: '=/sepa_mandates/{{$parameter.sepaMandateId}}' } },
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Get Many',
|
|
55
|
+
value: 'getAll',
|
|
56
|
+
action: 'Get SEPA mandates',
|
|
57
|
+
description: 'Retrieve a list of SEPA mandates with optional filters',
|
|
58
|
+
routing: { request: { method: 'GET', url: '/sepa_mandates' } },
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Update',
|
|
62
|
+
value: 'update',
|
|
63
|
+
action: 'Update a SEPA mandate',
|
|
64
|
+
description: 'Update an existing SEPA mandate',
|
|
65
|
+
routing: {
|
|
66
|
+
request: {
|
|
67
|
+
method: 'PUT',
|
|
68
|
+
url: '=/sepa_mandates/{{$parameter.sepaMandateIdToUpdate}}',
|
|
69
|
+
body: {
|
|
70
|
+
customer_id: '={{ $parameter.customerId ? parseInt($parameter.customerId, 10) : undefined }}',
|
|
71
|
+
bic: '={{ $parameter.bic || undefined }}',
|
|
72
|
+
iban: '={{ $parameter.iban || undefined }}',
|
|
73
|
+
signed_at: '={{ $parameter.signedAt || undefined }}',
|
|
74
|
+
identifier: '={{ $parameter.identifier || undefined }}',
|
|
75
|
+
bank: '={{ $parameter.bank || undefined }}',
|
|
76
|
+
sequence_type: '={{ $parameter.sequenceType || undefined }}',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
default: 'getAll',
|
|
83
|
+
},
|
|
84
|
+
...get_1.sepaMandateGetDescription,
|
|
85
|
+
...getAll_1.sepaMandateGetAllDescription,
|
|
86
|
+
...create_1.sepaMandateCreateDescription,
|
|
87
|
+
...update_1.sepaMandateUpdateDescription,
|
|
88
|
+
...delete_1.sepaMandateDeleteDescription,
|
|
89
|
+
];
|
|
90
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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E,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,8CAA8C,EAAE,EAAE;aAC5F;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,mBAAmB;gBAC3B,WAAW,EAAE,wDAAwD;gBACrE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,gBAAgB,EAAE,EAAE;aAC9D;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,uBAAuB;gBAC/B,WAAW,EAAE,iCAAiC;gBAC9C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,sDAAsD;wBAC3D,IAAI,EAAE;4BACL,WAAW,EAAE,gFAAgF;4BAC7F,GAAG,EAAE,oCAAoC;4BACzC,IAAI,EAAE,qCAAqC;4BAC3C,SAAS,EAAE,yCAAyC;4BACpD,UAAU,EAAE,2CAA2C;4BACvD,IAAI,EAAE,qCAAqC;4BAC3C,aAAa,EAAE,6CAA6C;yBAC5D;qBACD;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,+BAAyB;IAC5B,GAAG,qCAA4B;IAC/B,GAAG,qCAA4B;IAC/B,GAAG,qCAA4B;IAC/B,GAAG,qCAA4B;CAC/B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sepaMandateUpdateDescription = void 0;
|
|
4
|
+
const showForSepaMandateUpdate = { operation: ['update'], resource: ['sepaMandate'] };
|
|
5
|
+
exports.sepaMandateUpdateDescription = [
|
|
6
|
+
{ displayName: 'SEPA Mandate ID', name: 'sepaMandateIdToUpdate', type: 'string', required: true, default: '', displayOptions: { show: showForSepaMandateUpdate }, description: 'The ID of the SEPA mandate to update' },
|
|
7
|
+
{ displayName: 'Customer ID', name: 'customerId', type: 'string', default: '', displayOptions: { show: showForSepaMandateUpdate }, description: 'The ID of the customer for which the mandate is created. Leave empty to keep unchanged.' },
|
|
8
|
+
{ displayName: 'BIC', name: 'bic', type: 'string', default: '', displayOptions: { show: showForSepaMandateUpdate }, description: "Bank Identifier Code (BIC) of the customer's bank. Leave empty to keep unchanged." },
|
|
9
|
+
{ displayName: 'IBAN', name: 'iban', type: 'string', default: '', displayOptions: { show: showForSepaMandateUpdate }, description: 'International Bank Account Number (IBAN) of the customer. Leave empty to keep unchanged.' },
|
|
10
|
+
{ displayName: 'Signed At', name: 'signedAt', type: 'string', default: '', displayOptions: { show: showForSepaMandateUpdate }, description: 'Date when the mandate was signed (ISO 8601, e.g. 2026-07-07). Leave empty to keep unchanged.', placeholder: '2026-07-07' },
|
|
11
|
+
{ displayName: 'Identifier', name: 'identifier', type: 'string', default: '', displayOptions: { show: showForSepaMandateUpdate }, description: 'Unique identifier for the mandate. Leave empty to keep unchanged.' },
|
|
12
|
+
{ displayName: 'Bank', name: 'bank', type: 'string', default: '', displayOptions: { show: showForSepaMandateUpdate }, description: "Name of the customer's bank. Leave empty to keep unchanged." },
|
|
13
|
+
{
|
|
14
|
+
displayName: 'Sequence Type', name: 'sequenceType', type: 'options', default: '',
|
|
15
|
+
displayOptions: { show: showForSepaMandateUpdate }, description: 'SEPA mandate sequence type that defines the payment process. Leave as "- Not Set -" to keep unchanged.',
|
|
16
|
+
options: [
|
|
17
|
+
{ name: '- Not Set -', value: '' },
|
|
18
|
+
{ name: 'Final', value: 'FNAL' },
|
|
19
|
+
{ name: 'First', value: 'FRST' },
|
|
20
|
+
{ name: 'One-Off', value: 'OOFF' },
|
|
21
|
+
{ name: 'Recurring', value: 'RCUR' },
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRo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,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,EAAE,WAAW,EAAE,mEAAmE,EAAE;IACpN,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,EAAE,WAAW,EAAE,6DAA6D,EAAE;IAClM;QACC,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;QAChF,cAAc,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,EAAE,WAAW,EAAE,wGAAwG;QACzK,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,EAAE;YAClC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE;YAChC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE;YAChC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE;YAClC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE;SACpC;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildGetAllDescription = buildGetAllDescription;
|
|
4
|
+
const OPERATOR_LABELS = {
|
|
5
|
+
eq: 'Equals',
|
|
6
|
+
gt: 'Greater Than',
|
|
7
|
+
gteq: 'Greater Than or Equal',
|
|
8
|
+
in: 'In',
|
|
9
|
+
lt: 'Less Than',
|
|
10
|
+
lteq: 'Less Than or Equal',
|
|
11
|
+
not_eq: 'Not Equals',
|
|
12
|
+
not_in: 'Not In',
|
|
13
|
+
start_with: 'Starts With',
|
|
14
|
+
};
|
|
15
|
+
function toOperatorOptions(values) {
|
|
16
|
+
return values.map((value) => ({ name: OPERATOR_LABELS[value], value }));
|
|
17
|
+
}
|
|
18
|
+
const FILTER_FIELDS = {
|
|
19
|
+
bankTransaction: [
|
|
20
|
+
{ name: 'ID', value: 'id' },
|
|
21
|
+
{ name: 'Bank Account ID', value: 'bank_account_id' },
|
|
22
|
+
{ name: 'Journal ID', value: 'journal_id' },
|
|
23
|
+
{ name: 'Date', value: 'date' },
|
|
24
|
+
],
|
|
25
|
+
billingSubscription: [
|
|
26
|
+
{ name: 'ID', value: 'id' },
|
|
27
|
+
{ name: 'Start Date', value: 'start' },
|
|
28
|
+
{ name: 'Customer ID', value: 'customer_id' },
|
|
29
|
+
{ name: 'Status', value: 'status' },
|
|
30
|
+
],
|
|
31
|
+
customer: [
|
|
32
|
+
{ name: 'ID', value: 'id' },
|
|
33
|
+
{ name: 'Name', value: 'name' },
|
|
34
|
+
{ name: 'Reg No (SIREN)', value: 'reg_no' },
|
|
35
|
+
{ name: 'Emails', value: 'emails' },
|
|
36
|
+
{ name: 'External Reference', value: 'external_reference' },
|
|
37
|
+
{ name: 'Customer Type', value: 'customer_type' },
|
|
38
|
+
{ name: 'Ledger Account ID', value: 'ledger_account_id' },
|
|
39
|
+
],
|
|
40
|
+
customerInvoice: [
|
|
41
|
+
{ name: 'ID', value: 'id' },
|
|
42
|
+
{ name: 'Date', value: 'date' },
|
|
43
|
+
{ name: 'Customer ID', value: 'customer_id' },
|
|
44
|
+
{ name: 'Billing Subscription ID', value: 'billing_subscription_id' },
|
|
45
|
+
{ name: 'Quote ID', value: 'quote_id' },
|
|
46
|
+
{ name: 'Invoice Number', value: 'invoice_number' },
|
|
47
|
+
{ name: 'Draft', value: 'draft' },
|
|
48
|
+
{ name: 'Credit Note', value: 'credit_note' },
|
|
49
|
+
{ name: 'External Reference', value: 'external_reference' },
|
|
50
|
+
{ name: 'Flow ID', value: 'flow_id' },
|
|
51
|
+
{ name: 'Category ID', value: 'category_id' },
|
|
52
|
+
],
|
|
53
|
+
ledgerAccount: [
|
|
54
|
+
{ name: 'ID', value: 'id' },
|
|
55
|
+
{ name: 'Number', value: 'number' },
|
|
56
|
+
{ name: 'Enabled', value: 'enabled' },
|
|
57
|
+
],
|
|
58
|
+
journal: [{ name: 'Type', value: 'type' }],
|
|
59
|
+
ledgerEntry: [
|
|
60
|
+
{ name: 'ID', value: 'id' },
|
|
61
|
+
{ name: 'Date', value: 'date' },
|
|
62
|
+
{ name: 'Journal ID', value: 'journal_id' },
|
|
63
|
+
],
|
|
64
|
+
quote: [
|
|
65
|
+
{ name: 'ID', value: 'id' },
|
|
66
|
+
{ name: 'Customer ID', value: 'customer_id' },
|
|
67
|
+
{ name: 'Status', value: 'status' },
|
|
68
|
+
],
|
|
69
|
+
product: [
|
|
70
|
+
{ name: 'ID', value: 'id' },
|
|
71
|
+
{ name: 'Label', value: 'label' },
|
|
72
|
+
{ name: 'Reference', value: 'reference' },
|
|
73
|
+
{ name: 'External Reference', value: 'external_reference' },
|
|
74
|
+
],
|
|
75
|
+
purchaseRequest: [
|
|
76
|
+
{ name: 'ID', value: 'id' },
|
|
77
|
+
{ name: 'Reviewed By ID', value: 'reviewed_by_id' },
|
|
78
|
+
{ name: 'User ID', value: 'user_id' },
|
|
79
|
+
{ name: 'Supplier ID', value: 'supplier_id' },
|
|
80
|
+
],
|
|
81
|
+
supplier: [
|
|
82
|
+
{ name: 'ID', value: 'id' },
|
|
83
|
+
{ name: 'Ledger Account ID', value: 'ledger_account_id' },
|
|
84
|
+
{ name: 'Name', value: 'name' },
|
|
85
|
+
{ name: 'External Reference', value: 'external_reference' },
|
|
86
|
+
{ name: 'Emails', value: 'emails' },
|
|
87
|
+
],
|
|
88
|
+
supplierInvoice: [
|
|
89
|
+
{ name: 'ID', value: 'id' },
|
|
90
|
+
{ name: 'Supplier ID', value: 'supplier_id' },
|
|
91
|
+
{ name: 'Date', value: 'date' },
|
|
92
|
+
{ name: 'Invoice Number', value: 'invoice_number' },
|
|
93
|
+
{ name: 'Category ID', value: 'category_id' },
|
|
94
|
+
{ name: 'External Reference', value: 'external_reference' },
|
|
95
|
+
{ name: 'Payment Status', value: 'payment_status' },
|
|
96
|
+
{ name: 'Flow ID', value: 'flow_id' },
|
|
97
|
+
],
|
|
98
|
+
};
|
|
99
|
+
const FILTER_OPERATORS = {
|
|
100
|
+
bankTransaction: ['eq', 'not_eq', 'gt', 'gteq', 'lt', 'lteq', 'in', 'not_in'],
|
|
101
|
+
billingSubscription: ['eq', 'not_eq', 'gt', 'gteq', 'lt', 'lteq', 'in', 'not_in'],
|
|
102
|
+
customer: ['eq', 'not_eq', 'gt', 'gteq', 'lt', 'lteq', 'in', 'not_in', 'start_with'],
|
|
103
|
+
customerInvoice: ['eq', 'not_eq', 'gt', 'gteq', 'lt', 'lteq', 'in', 'not_in'],
|
|
104
|
+
journal: ['eq', 'not_eq', 'in', 'not_in'],
|
|
105
|
+
ledgerAccount: ['eq', 'not_eq', 'gt', 'gteq', 'lt', 'lteq', 'in', 'not_in', 'start_with'],
|
|
106
|
+
ledgerEntry: ['eq', 'not_eq', 'gt', 'gteq', 'lt', 'lteq', 'in', 'not_in'],
|
|
107
|
+
quote: ['eq', 'not_eq', 'gt', 'gteq', 'lt', 'lteq', 'in', 'not_in'],
|
|
108
|
+
product: ['eq', 'not_eq', 'gt', 'gteq', 'lt', 'lteq', 'in', 'not_in'],
|
|
109
|
+
purchaseRequest: ['eq', 'not_eq', 'gt', 'gteq', 'lt', 'lteq', 'in', 'not_in'],
|
|
110
|
+
supplier: ['eq', 'not_eq', 'gt', 'gteq', 'lt', 'lteq', 'in', 'not_in', 'start_with'],
|
|
111
|
+
supplierInvoice: ['eq', 'not_eq', 'gt', 'gteq', 'lt', 'lteq', 'in', 'not_in'],
|
|
112
|
+
};
|
|
113
|
+
const LIMIT_MAX = {
|
|
114
|
+
ledgerAccount: 1000,
|
|
115
|
+
};
|
|
116
|
+
async function applyFilterPreSend(requestOptions) {
|
|
117
|
+
var _a;
|
|
118
|
+
const filters = this.getNodeParameter('filters.filter', []);
|
|
119
|
+
if (!Array.isArray(filters) || filters.length === 0) {
|
|
120
|
+
return requestOptions;
|
|
121
|
+
}
|
|
122
|
+
const payload = filters.map(({ field, operator, value }) => ({
|
|
123
|
+
field,
|
|
124
|
+
operator,
|
|
125
|
+
value: operator === 'in' || operator === 'not_in'
|
|
126
|
+
? value
|
|
127
|
+
.split(',')
|
|
128
|
+
.map((v) => v.trim())
|
|
129
|
+
.filter((v) => v.length > 0)
|
|
130
|
+
: value,
|
|
131
|
+
}));
|
|
132
|
+
requestOptions.qs = (_a = requestOptions.qs) !== null && _a !== void 0 ? _a : {};
|
|
133
|
+
requestOptions.qs.filter = JSON.stringify(payload);
|
|
134
|
+
return requestOptions;
|
|
135
|
+
}
|
|
136
|
+
function buildFilterFields(resource, show) {
|
|
137
|
+
const fields = FILTER_FIELDS[resource];
|
|
138
|
+
const operatorValues = FILTER_OPERATORS[resource];
|
|
139
|
+
if (!fields || !operatorValues) {
|
|
140
|
+
throw new Error(`No filter fields/operators defined for resource "${resource}"`);
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
displayName: 'Filters',
|
|
144
|
+
name: 'filters',
|
|
145
|
+
type: 'fixedCollection',
|
|
146
|
+
default: {},
|
|
147
|
+
placeholder: 'Add Filter',
|
|
148
|
+
description: 'Filter results by field, operator, and value. Not every operator is valid for every field — check the Pennylane API docs for valid combinations. For the "In" / "Not In" operators, separate multiple values with a comma.',
|
|
149
|
+
typeOptions: { multipleValues: true },
|
|
150
|
+
displayOptions: { show },
|
|
151
|
+
options: [
|
|
152
|
+
{
|
|
153
|
+
name: 'filter',
|
|
154
|
+
displayName: 'Filter Condition',
|
|
155
|
+
values: [
|
|
156
|
+
{
|
|
157
|
+
displayName: 'Field',
|
|
158
|
+
name: 'field',
|
|
159
|
+
type: 'options',
|
|
160
|
+
options: fields,
|
|
161
|
+
default: 'id',
|
|
162
|
+
description: 'The field to filter on',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
displayName: 'Operator',
|
|
166
|
+
name: 'operator',
|
|
167
|
+
type: 'options',
|
|
168
|
+
options: toOperatorOptions(operatorValues),
|
|
169
|
+
default: 'eq',
|
|
170
|
+
description: 'Filter operator (not every operator is valid for every field)',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
displayName: 'Value',
|
|
174
|
+
name: 'value',
|
|
175
|
+
type: 'string',
|
|
176
|
+
default: '',
|
|
177
|
+
description: 'The filter value. For "In" / "Not In", separate multiple values with a comma.',
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
routing: {
|
|
183
|
+
send: {
|
|
184
|
+
preSend: [applyFilterPreSend],
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function buildGetAllDescription(resource) {
|
|
190
|
+
var _a;
|
|
191
|
+
const show = { operation: ['getAll'], resource: [resource] };
|
|
192
|
+
const maxLimit = (_a = LIMIT_MAX[resource]) !== null && _a !== void 0 ? _a : 100;
|
|
193
|
+
return [
|
|
194
|
+
buildFilterFields(resource, show),
|
|
195
|
+
{
|
|
196
|
+
displayName: 'Return All',
|
|
197
|
+
name: 'returnAll',
|
|
198
|
+
type: 'boolean',
|
|
199
|
+
default: false,
|
|
200
|
+
displayOptions: { show },
|
|
201
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
202
|
+
routing: {
|
|
203
|
+
send: {
|
|
204
|
+
paginate: '={{ $value }}',
|
|
205
|
+
},
|
|
206
|
+
operations: {
|
|
207
|
+
pagination: {
|
|
208
|
+
type: 'generic',
|
|
209
|
+
properties: {
|
|
210
|
+
continue: '={{ $response.body.has_more }}',
|
|
211
|
+
request: {
|
|
212
|
+
qs: {
|
|
213
|
+
cursor: '={{ $response.body.next_cursor }}',
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
displayName: 'Limit',
|
|
223
|
+
name: 'limit',
|
|
224
|
+
type: 'number',
|
|
225
|
+
typeOptions: { minValue: 1, maxValue: maxLimit },
|
|
226
|
+
default: 50,
|
|
227
|
+
displayOptions: { show: { ...show, returnAll: [false] } },
|
|
228
|
+
description: 'Max number of results to return',
|
|
229
|
+
routing: {
|
|
230
|
+
send: {
|
|
231
|
+
type: 'query',
|
|
232
|
+
property: 'limit',
|
|
233
|
+
},
|
|
234
|
+
output: {
|
|
235
|
+
maxResults: '={{$value}}',
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
];
|
|
240
|
+
}
|
|
241
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/shared/operations.ts"],"names":[],"mappings":";;AAmNA,wDAmDC;AApQD,MAAM,eAAe,GAA2B;IAC/C,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,uBAAuB;IAC7B,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,oBAAoB;IAC1B,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,aAAa;CACzB,CAAC;AAEF,SAAS,iBAAiB,CAAC,MAAgB;IAC1C,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;AACzE,CAAC;AAGD,MAAM,aAAa,GAA2D;IAC7E,eAAe,EAAE;QAChB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;QA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AAM,EAAE;oBACP,UAAU,EAAE,aAAa;iBACzB;aACD;SACD;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierCategorizeDescription = void 0;
|
|
4
|
+
const showForSupplierCategorize = { operation: ['categorize'], resource: ['supplier'] };
|
|
5
|
+
exports.supplierCategorizeDescription = [
|
|
6
|
+
{ displayName: 'Supplier ID', name: 'supplierIdToCategorize', type: 'string', required: true, default: '', displayOptions: { show: showForSupplierCategorize }, description: 'The ID of the supplier to categorize' },
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Categories', name: 'categories', type: 'fixedCollection', default: {}, required: true,
|
|
9
|
+
displayOptions: { show: showForSupplierCategorize },
|
|
10
|
+
description: 'Categories to link to the supplier. 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: showForSupplierCategorize }, description: 'The ID of the category to link' },
|
|
14
|
+
{ displayName: 'Weight', name: 'weight', type: 'string', required: true, default: '1', displayOptions: { show: showForSupplierCategorize }, 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/categorize.ts"],"names":[],"mappings":";;;AAEA,MAAM,yBAAyB,GAAG,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AAE3E,QAAA,6BAA6B,GAAsB;IAC/D,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,wBAAwB,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE,EAAE,WAAW,EAAE,sCAAsC,EAAE;IACrN;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,yBAAyB,EAAE;QACnD,WAAW,EAAE,0GAA0G;QACvH,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,yBAAyB,EAAE,EAAE,WAAW,EAAE,gCAAgC,EAAE;oBAC3L,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,yBAAyB,EAAE,EAAE,WAAW,EAAE,gJAAgJ,EAAE;iBAC3S,EAAC,CAAC;KACH;CACD,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supplierCreateDescription = void 0;
|
|
4
|
+
const showForSupplierCreate = { operation: ['create'], resource: ['supplier'] };
|
|
5
|
+
exports.supplierCreateDescription = [
|
|
6
|
+
{ displayName: 'Name', name: 'name', type: 'string', required: true, default: '', displayOptions: { show: showForSupplierCreate }, description: 'Supplier company name' },
|
|
7
|
+
{ displayName: 'Reg No (SIREN)', name: 'regNo', type: 'string', default: '', displayOptions: { show: showForSupplierCreate }, description: 'Supplier registration number (9-digit SIREN)' },
|
|
8
|
+
{ displayName: 'Establishment No (SIRET)', name: 'establishmentNo', type: 'string', default: '', displayOptions: { show: showForSupplierCreate }, description: 'Supplier identification number (14-digit SIRET)' },
|
|
9
|
+
{ displayName: 'VAT Number', name: 'vatNumber', type: 'string', default: '', displayOptions: { show: showForSupplierCreate }, description: 'EU VAT number (e.g. FR32123456789)' },
|
|
10
|
+
{ displayName: 'Emails', name: 'emails', type: 'string', placeholder: 'name@email.com, other@email.com', default: '', displayOptions: { show: showForSupplierCreate }, description: 'Supplier email addresses, comma-separated' },
|
|
11
|
+
{ displayName: 'IBAN', name: 'iban', type: 'string', default: '', displayOptions: { show: showForSupplierCreate }, description: 'Supplier IBAN' },
|
|
12
|
+
{ displayName: 'Postal Address Line 1', name: 'postalAddressLine1', type: 'string', default: '', displayOptions: { show: showForSupplierCreate }, description: 'Street address' },
|
|
13
|
+
{ displayName: 'Postal Address Postal Code', name: 'postalAddressPostalCode', type: 'string', default: '', displayOptions: { show: showForSupplierCreate }, description: 'Postal / ZIP code' },
|
|
14
|
+
{ displayName: 'Postal Address City', name: 'postalAddressCity', type: 'string', default: '', displayOptions: { show: showForSupplierCreate }, description: 'City name' },
|
|
15
|
+
{ displayName: 'Postal Address Country', name: 'postalAddressCountry', type: 'string', default: 'FR', displayOptions: { show: showForSupplierCreate }, description: 'Country code (ISO 3166-1 alpha-2, e.g. FR)' },
|
|
16
|
+
{ displayName: 'Payment Method', name: 'paymentMethod', type: 'options', default: 'automatic_transfer', displayOptions: { show: showForSupplierCreate }, description: 'Supplier payment method', options: [
|
|
17
|
+
{ name: 'Automatic Debiting', value: 'automatic_debiting' },
|
|
18
|
+
{ name: 'Automatic Transfer', value: 'automatic_transfer' },
|
|
19
|
+
{ name: 'Bill of Exchange', value: 'bill_of_exchange' },
|
|
20
|
+
{ name: 'Card', value: 'card' },
|
|
21
|
+
{ name: 'Cash', value: 'cash' },
|
|
22
|
+
{ name: 'Check', value: 'check' },
|
|
23
|
+
{ name: 'Manual Transfer', value: 'manual_transfer' },
|
|
24
|
+
{ name: 'Other', value: 'other' },
|
|
25
|
+
] },
|
|
26
|
+
{ displayName: 'Due Date Delay (Days)', name: 'dueDateDelay', type: 'number', default: 30, displayOptions: { show: showForSupplierCreate }, description: 'Number of days before payment is due' },
|
|
27
|
+
{ displayName: 'Due Date Rule', name: 'dueDateRule', type: 'options', default: 'days', displayOptions: { show: showForSupplierCreate }, description: 'How the due date is calculated', options: [
|
|
28
|
+
{ name: 'Days', value: 'days' },
|
|
29
|
+
{ name: 'Days or End of Month', value: 'days_or_end_of_month' },
|
|
30
|
+
] },
|
|
31
|
+
{ displayName: 'External Reference', name: 'externalReference', type: 'string', default: '', displayOptions: { show: showForSupplierCreate }, description: 'Your external reference. Must be unique if provided.' },
|
|
32
|
+
];
|
|
33
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/supplier/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,qBAAqB,GAAG,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AAEnE,QAAA,yBAAyB,GAAsB;IAC3D,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,EAAE,WAAW,EAAE,uBAAuB,EAAE;IACzK,EAAE,WAAW,EAAE,gBAAgB,EAAE,IAAI,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