@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,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerGetContactsDescription = void 0;
|
|
4
|
+
const showForCustomerGetContacts = {
|
|
5
|
+
operation: ['getContacts'],
|
|
6
|
+
resource: ['customer'],
|
|
7
|
+
};
|
|
8
|
+
exports.customerGetContactsDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Customer ID',
|
|
11
|
+
name: 'customerId',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
default: '',
|
|
15
|
+
displayOptions: { show: showForCustomerGetContacts },
|
|
16
|
+
description: 'The ID of the customer whose contacts should be retrieved',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Return All',
|
|
20
|
+
name: 'returnAll',
|
|
21
|
+
type: 'boolean',
|
|
22
|
+
default: false,
|
|
23
|
+
displayOptions: { show: showForCustomerGetContacts },
|
|
24
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
25
|
+
routing: {
|
|
26
|
+
send: {
|
|
27
|
+
paginate: '={{ $value }}',
|
|
28
|
+
},
|
|
29
|
+
operations: {
|
|
30
|
+
pagination: {
|
|
31
|
+
type: 'generic',
|
|
32
|
+
properties: {
|
|
33
|
+
continue: '={{ $response.body.has_more }}',
|
|
34
|
+
request: {
|
|
35
|
+
qs: {
|
|
36
|
+
cursor: '={{ $response.body.next_cursor }}',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Limit',
|
|
46
|
+
name: 'limit',
|
|
47
|
+
type: 'number',
|
|
48
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
49
|
+
default: 50,
|
|
50
|
+
displayOptions: { show: { ...showForCustomerGetContacts, returnAll: [false] } },
|
|
51
|
+
description: 'Max number of results to return',
|
|
52
|
+
routing: {
|
|
53
|
+
send: {
|
|
54
|
+
type: 'query',
|
|
55
|
+
property: 'limit',
|
|
56
|
+
},
|
|
57
|
+
output: {
|
|
58
|
+
maxResults: '={{$value}}',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
//# sourceMappingURL=getContacts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getContacts.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/customer/getContacts.ts"],"names":[],"mappings":";;;AAEA,MAAM,0BAA0B,GAAG;IAClC,SAAS,EAAE,CAAC,aAAa,CAAC;IAC1B,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC;AAEW,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE;QACpD,WAAW,EAAE,2DAA2D;KACxE;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE;QACpD,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,0BAA0B,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;QAC/E,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,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerDescription = void 0;
|
|
4
|
+
const get_1 = require("./get");
|
|
5
|
+
const getAll_1 = require("./getAll");
|
|
6
|
+
const create_1 = require("./create");
|
|
7
|
+
const createIndividual_1 = require("./createIndividual");
|
|
8
|
+
const update_1 = require("./update");
|
|
9
|
+
const getContacts_1 = require("./getContacts");
|
|
10
|
+
const getCategories_1 = require("./getCategories");
|
|
11
|
+
const categorize_1 = require("./categorize");
|
|
12
|
+
const showOnlyForCustomers = { resource: ['customer'] };
|
|
13
|
+
exports.customerDescription = [
|
|
14
|
+
{
|
|
15
|
+
displayName: 'Operation',
|
|
16
|
+
name: 'operation',
|
|
17
|
+
type: 'options',
|
|
18
|
+
noDataExpression: true,
|
|
19
|
+
displayOptions: { show: showOnlyForCustomers },
|
|
20
|
+
options: [
|
|
21
|
+
{
|
|
22
|
+
name: 'Get',
|
|
23
|
+
value: 'get',
|
|
24
|
+
action: 'Get a customer',
|
|
25
|
+
description: 'Retrieve a single customer by ID',
|
|
26
|
+
routing: { request: { method: 'GET', url: '=/customers/{{$parameter.customerId}}' } },
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get Many',
|
|
30
|
+
value: 'getAll',
|
|
31
|
+
action: 'Get customers',
|
|
32
|
+
description: 'Retrieve a list of customers with optional filters',
|
|
33
|
+
routing: { request: { method: 'GET', url: '/customers' } },
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Create',
|
|
37
|
+
value: 'create',
|
|
38
|
+
action: 'Create a customer',
|
|
39
|
+
description: 'Create a new company customer',
|
|
40
|
+
routing: {
|
|
41
|
+
request: {
|
|
42
|
+
method: 'POST',
|
|
43
|
+
url: '/company_customers',
|
|
44
|
+
body: {
|
|
45
|
+
name: '={{$parameter.name}}',
|
|
46
|
+
reg_no: '={{$parameter.regNo}}',
|
|
47
|
+
vat_number: '={{$parameter.vatNumber}}',
|
|
48
|
+
phone: '={{$parameter.phone}}',
|
|
49
|
+
emails: '={{ $parameter.emails ? $parameter.emails.split(",").map((e) => e.trim()).filter((e) => e) : undefined }}',
|
|
50
|
+
recipient: '={{$parameter.recipient}}',
|
|
51
|
+
billing_address: {
|
|
52
|
+
address: '={{$parameter.billingAddressLine1}}',
|
|
53
|
+
postal_code: '={{$parameter.billingAddressPostalCode}}',
|
|
54
|
+
city: '={{$parameter.billingAddressCity}}',
|
|
55
|
+
country_alpha2: '={{$parameter.billingAddressCountry}}',
|
|
56
|
+
},
|
|
57
|
+
payment_conditions: '={{$parameter.paymentConditions}}',
|
|
58
|
+
billing_language: '={{$parameter.billingLanguage}}',
|
|
59
|
+
billing_iban: '={{$parameter.billingIban}}',
|
|
60
|
+
reference: '={{$parameter.reference}}',
|
|
61
|
+
notes: '={{$parameter.notes}}',
|
|
62
|
+
external_reference: '={{$parameter.externalReference}}',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'Create Individual Customer',
|
|
69
|
+
value: 'createIndividual',
|
|
70
|
+
action: 'Create an individual customer',
|
|
71
|
+
description: 'Create a new individual (natural person) customer',
|
|
72
|
+
routing: {
|
|
73
|
+
request: {
|
|
74
|
+
method: 'POST',
|
|
75
|
+
url: '/individual_customers',
|
|
76
|
+
body: {
|
|
77
|
+
first_name: '={{$parameter.firstName}}',
|
|
78
|
+
last_name: '={{$parameter.lastName}}',
|
|
79
|
+
phone: '={{$parameter.phone}}',
|
|
80
|
+
emails: '={{ $parameter.emails ? $parameter.emails.split(",").map((e) => e.trim()).filter((e) => e) : undefined }}',
|
|
81
|
+
recipient: '={{$parameter.recipient}}',
|
|
82
|
+
billing_address: {
|
|
83
|
+
address: '={{$parameter.billingAddressLine1}}',
|
|
84
|
+
postal_code: '={{$parameter.billingAddressPostalCode}}',
|
|
85
|
+
city: '={{$parameter.billingAddressCity}}',
|
|
86
|
+
country_alpha2: '={{$parameter.billingAddressCountry}}',
|
|
87
|
+
},
|
|
88
|
+
delivery_address: '={{ $parameter.deliveryAddressLine1 ? { address: $parameter.deliveryAddressLine1, postal_code: $parameter.deliveryAddressPostalCode, city: $parameter.deliveryAddressCity, country_alpha2: $parameter.deliveryAddressCountry } : undefined }}',
|
|
89
|
+
payment_conditions: '={{$parameter.paymentConditions}}',
|
|
90
|
+
billing_language: '={{$parameter.billingLanguage}}',
|
|
91
|
+
billing_iban: '={{$parameter.billingIban}}',
|
|
92
|
+
reference: '={{$parameter.reference}}',
|
|
93
|
+
notes: '={{$parameter.notes}}',
|
|
94
|
+
external_reference: '={{$parameter.externalReference}}',
|
|
95
|
+
ledger_account: '={{ $parameter.ledgerAccountNumber ? { number: $parameter.ledgerAccountNumber } : undefined }}',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'Update',
|
|
102
|
+
value: 'update',
|
|
103
|
+
action: 'Update a customer',
|
|
104
|
+
description: 'Update an existing company or individual customer',
|
|
105
|
+
routing: {
|
|
106
|
+
request: {
|
|
107
|
+
method: 'PUT',
|
|
108
|
+
url: '=/{{$parameter.customerType === "individual" ? "individual_customers" : "company_customers"}}/{{$parameter.customerId}}',
|
|
109
|
+
body: {
|
|
110
|
+
name: '={{$parameter.customerType === "company" ? $parameter.name : undefined}}',
|
|
111
|
+
reg_no: '={{$parameter.customerType === "company" ? $parameter.regNo : undefined}}',
|
|
112
|
+
vat_number: '={{$parameter.customerType === "company" ? $parameter.vatNumber : undefined}}',
|
|
113
|
+
first_name: '={{$parameter.customerType === "individual" ? $parameter.firstName : undefined}}',
|
|
114
|
+
last_name: '={{$parameter.customerType === "individual" ? $parameter.lastName : undefined}}',
|
|
115
|
+
phone: '={{$parameter.phone}}',
|
|
116
|
+
emails: '={{ $parameter.emails ? $parameter.emails.split(",").map((e) => e.trim()).filter((e) => e) : undefined }}',
|
|
117
|
+
recipient: '={{$parameter.recipient}}',
|
|
118
|
+
billing_address: '={{ $parameter.billingAddressLine1 ? { address: $parameter.billingAddressLine1, postal_code: $parameter.billingAddressPostalCode, city: $parameter.billingAddressCity, country_alpha2: $parameter.billingAddressCountry } : undefined }}',
|
|
119
|
+
delivery_address: '={{ $parameter.deliveryAddressLine1 ? { address: $parameter.deliveryAddressLine1, postal_code: $parameter.deliveryAddressPostalCode, city: $parameter.deliveryAddressCity, country_alpha2: $parameter.deliveryAddressCountry } : undefined }}',
|
|
120
|
+
payment_conditions: '={{$parameter.paymentConditions}}',
|
|
121
|
+
billing_language: '={{$parameter.billingLanguage}}',
|
|
122
|
+
billing_iban: '={{$parameter.billingIban}}',
|
|
123
|
+
reference: '={{$parameter.reference}}',
|
|
124
|
+
notes: '={{$parameter.notes}}',
|
|
125
|
+
external_reference: '={{$parameter.externalReference}}',
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'List Contacts',
|
|
132
|
+
value: 'getContacts',
|
|
133
|
+
action: 'List contacts',
|
|
134
|
+
description: 'Retrieve the contacts for a customer',
|
|
135
|
+
routing: { request: { method: 'GET', url: '=/customers/{{$parameter.customerId}}/contacts' } },
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'List Categories',
|
|
139
|
+
value: 'getCategories',
|
|
140
|
+
action: 'List categories',
|
|
141
|
+
description: 'Retrieve the categories linked to a customer',
|
|
142
|
+
routing: { request: { method: 'GET', url: '=/customers/{{$parameter.customerId}}/categories' } },
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'Categorize',
|
|
146
|
+
value: 'categorize',
|
|
147
|
+
action: 'Categorize a customer',
|
|
148
|
+
description: 'Link one or more categories (with weights) to a customer',
|
|
149
|
+
routing: {
|
|
150
|
+
request: { method: 'PUT', url: '=/customers/{{$parameter.customerId}}/categories' },
|
|
151
|
+
send: { preSend: [categorize_1.applyCustomerCategorizePreSend] },
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
default: 'getAll',
|
|
156
|
+
},
|
|
157
|
+
...get_1.customerGetDescription,
|
|
158
|
+
...getAll_1.customerGetAllDescription,
|
|
159
|
+
...create_1.customerCreateDescription,
|
|
160
|
+
...createIndividual_1.customerCreateIndividualDescription,
|
|
161
|
+
...update_1.customerUpdateDescription,
|
|
162
|
+
...getContacts_1.customerGetContactsDescription,
|
|
163
|
+
...getCategories_1.customerGetCategoriesDescription,
|
|
164
|
+
...categorize_1.customerCategorizeDescription,
|
|
165
|
+
];
|
|
166
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/customer/index.ts"],"names":[],"mappings":";;;AACA,+BAA+C;AAC/C,qCAAqD;AACrD,qCAAqD;AACrD,yDAAyE;AACzE,qCAAqD;AACrD,+CAA+D;AAC/D,mDAAmE;AACnE,6CAA6F;AAE7F,MAAM,oBAAoB,GAAG,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AAE3C,QAAA,mBAAmB,GAAsB;IACrD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE;QAC9C,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EAAE,kCAAkC;gBAC/C,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,uCAAuC,EAAE,EAAE;aACrF;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,eAAe;gBACvB,WAAW,EAAE,oDAAoD;gBACjE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE;aAC1D;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,mBAAmB;gBAC3B,WAAW,EAAE,+BAA+B;gBAC5C,OAAO,EAAE;oBACR,OAAO,EAAE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;YACD;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,uBAAuB;gBAC/B,WAAW,EAAE,0DAA0D;gBACvE,OAAO,EAAE;oBACR,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,kDAAkD,EAAE;oBACnF,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,2CAA8B,CAAC,EAAE;iBACnD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,4BAAsB;IACzB,GAAG,kCAAyB;IAC5B,GAAG,kCAAyB;IAC5B,GAAG,sDAAmC;IACtC,GAAG,kCAAyB;IAC5B,GAAG,4CAA8B;IACjC,GAAG,gDAAgC;IACnC,GAAG,0CAA6B;CAChC,CAAC"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerUpdateDescription = void 0;
|
|
4
|
+
const showForCustomerUpdate = {
|
|
5
|
+
operation: ['update'],
|
|
6
|
+
resource: ['customer'],
|
|
7
|
+
};
|
|
8
|
+
const showForCustomerUpdateCompany = {
|
|
9
|
+
operation: ['update'],
|
|
10
|
+
resource: ['customer'],
|
|
11
|
+
customerType: ['company'],
|
|
12
|
+
};
|
|
13
|
+
const showForCustomerUpdateIndividual = {
|
|
14
|
+
operation: ['update'],
|
|
15
|
+
resource: ['customer'],
|
|
16
|
+
customerType: ['individual'],
|
|
17
|
+
};
|
|
18
|
+
exports.customerUpdateDescription = [
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Customer Type',
|
|
21
|
+
name: 'customerType',
|
|
22
|
+
type: 'options',
|
|
23
|
+
required: true,
|
|
24
|
+
default: 'company',
|
|
25
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
26
|
+
description: 'Whether the customer being updated is a company or an individual. Determines which API endpoint and fields are used.',
|
|
27
|
+
options: [
|
|
28
|
+
{ name: 'Company', value: 'company' },
|
|
29
|
+
{ name: 'Individual', value: 'individual' },
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Customer ID',
|
|
34
|
+
name: 'customerId',
|
|
35
|
+
type: 'string',
|
|
36
|
+
required: true,
|
|
37
|
+
default: '',
|
|
38
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
39
|
+
description: 'The ID of the customer to update',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Name',
|
|
43
|
+
name: 'name',
|
|
44
|
+
type: 'string',
|
|
45
|
+
default: '',
|
|
46
|
+
displayOptions: { show: showForCustomerUpdateCompany },
|
|
47
|
+
description: 'Company name',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Reg No (SIRET/SIREN)',
|
|
51
|
+
name: 'regNo',
|
|
52
|
+
type: 'string',
|
|
53
|
+
default: '',
|
|
54
|
+
displayOptions: { show: showForCustomerUpdateCompany },
|
|
55
|
+
description: 'Company registration number (SIRET or SIREN)',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
displayName: 'VAT Number',
|
|
59
|
+
name: 'vatNumber',
|
|
60
|
+
type: 'string',
|
|
61
|
+
default: '',
|
|
62
|
+
displayOptions: { show: showForCustomerUpdateCompany },
|
|
63
|
+
description: 'EU VAT number (e.g. FR32123456789)',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'First Name',
|
|
67
|
+
name: 'firstName',
|
|
68
|
+
type: 'string',
|
|
69
|
+
default: '',
|
|
70
|
+
displayOptions: { show: showForCustomerUpdateIndividual },
|
|
71
|
+
description: 'First name of the individual customer',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
displayName: 'Last Name',
|
|
75
|
+
name: 'lastName',
|
|
76
|
+
type: 'string',
|
|
77
|
+
default: '',
|
|
78
|
+
displayOptions: { show: showForCustomerUpdateIndividual },
|
|
79
|
+
description: 'Last name of the individual customer',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Phone',
|
|
83
|
+
name: 'phone',
|
|
84
|
+
type: 'string',
|
|
85
|
+
default: '',
|
|
86
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
87
|
+
description: 'Customer phone number',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
displayName: 'Emails',
|
|
91
|
+
name: 'emails',
|
|
92
|
+
type: 'string',
|
|
93
|
+
placeholder: 'name@email.com, other@email.com',
|
|
94
|
+
default: '',
|
|
95
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
96
|
+
description: 'Customer email addresses, comma-separated',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Recipient',
|
|
100
|
+
name: 'recipient',
|
|
101
|
+
type: 'string',
|
|
102
|
+
default: '',
|
|
103
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
104
|
+
description: 'Name of the person to whom the invoice is addressed',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
displayName: 'Billing Address Line 1',
|
|
108
|
+
name: 'billingAddressLine1',
|
|
109
|
+
type: 'string',
|
|
110
|
+
default: '',
|
|
111
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
112
|
+
description: 'Street address. The billing address is only sent if this field is filled in — leave it blank to leave the existing address untouched.',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
displayName: 'Billing Address Postal Code',
|
|
116
|
+
name: 'billingAddressPostalCode',
|
|
117
|
+
type: 'string',
|
|
118
|
+
default: '',
|
|
119
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
120
|
+
description: 'Postal / ZIP code',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
displayName: 'Billing Address City',
|
|
124
|
+
name: 'billingAddressCity',
|
|
125
|
+
type: 'string',
|
|
126
|
+
default: '',
|
|
127
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
128
|
+
description: 'City name',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
displayName: 'Billing Address Country',
|
|
132
|
+
name: 'billingAddressCountry',
|
|
133
|
+
type: 'string',
|
|
134
|
+
default: 'FR',
|
|
135
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
136
|
+
description: 'Country code (ISO 3166-1 alpha-2, e.g. FR)',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
displayName: 'Delivery Address Line 1',
|
|
140
|
+
name: 'deliveryAddressLine1',
|
|
141
|
+
type: 'string',
|
|
142
|
+
default: '',
|
|
143
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
144
|
+
description: 'Street address for delivery. Only sent if this field is filled in.',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
displayName: 'Delivery Address Postal Code',
|
|
148
|
+
name: 'deliveryAddressPostalCode',
|
|
149
|
+
type: 'string',
|
|
150
|
+
default: '',
|
|
151
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
152
|
+
description: 'Postal / ZIP code for delivery',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
displayName: 'Delivery Address City',
|
|
156
|
+
name: 'deliveryAddressCity',
|
|
157
|
+
type: 'string',
|
|
158
|
+
default: '',
|
|
159
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
160
|
+
description: 'City name for delivery',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
displayName: 'Delivery Address Country',
|
|
164
|
+
name: 'deliveryAddressCountry',
|
|
165
|
+
type: 'string',
|
|
166
|
+
default: 'FR',
|
|
167
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
168
|
+
description: 'Country code (ISO 3166-1 alpha-2, e.g. FR) for delivery',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
displayName: 'Payment Conditions',
|
|
172
|
+
name: 'paymentConditions',
|
|
173
|
+
type: 'options',
|
|
174
|
+
default: '30_days',
|
|
175
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
176
|
+
description: 'Default payment conditions for this customer',
|
|
177
|
+
options: [
|
|
178
|
+
{ name: '15 Days', value: '15_days' },
|
|
179
|
+
{ name: '30 Days', value: '30_days' },
|
|
180
|
+
{ name: '30 Days End of Month', value: '30_days_end_of_month' },
|
|
181
|
+
{ name: '45 Days', value: '45_days' },
|
|
182
|
+
{ name: '45 Days End of Month', value: '45_days_end_of_month' },
|
|
183
|
+
{ name: '60 Days', value: '60_days' },
|
|
184
|
+
{ name: '7 Days', value: '7_days' },
|
|
185
|
+
{ name: 'Custom', value: 'custom' },
|
|
186
|
+
{ name: 'Upon Receipt', value: 'upon_receipt' },
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
displayName: 'Billing Language',
|
|
191
|
+
name: 'billingLanguage',
|
|
192
|
+
type: 'options',
|
|
193
|
+
default: 'fr_FR',
|
|
194
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
195
|
+
description: 'The language in which the customer will receive invoices',
|
|
196
|
+
options: [
|
|
197
|
+
{ name: 'French (FR)', value: 'fr_FR' },
|
|
198
|
+
{ name: 'English (GB)', value: 'en_GB' },
|
|
199
|
+
{ name: 'German (DE)', value: 'de_DE' },
|
|
200
|
+
],
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
displayName: 'IBAN',
|
|
204
|
+
name: 'billingIban',
|
|
205
|
+
type: 'string',
|
|
206
|
+
default: '',
|
|
207
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
208
|
+
description: 'Billing IBAN (for SEPA mandates)',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
displayName: 'Reference',
|
|
212
|
+
name: 'reference',
|
|
213
|
+
type: 'string',
|
|
214
|
+
default: '',
|
|
215
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
216
|
+
description: 'Internal reference for this customer',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
displayName: 'Notes',
|
|
220
|
+
name: 'notes',
|
|
221
|
+
type: 'string',
|
|
222
|
+
default: '',
|
|
223
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
224
|
+
description: 'Notes about this customer',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
displayName: 'External Reference',
|
|
228
|
+
name: 'externalReference',
|
|
229
|
+
type: 'string',
|
|
230
|
+
default: '',
|
|
231
|
+
displayOptions: { show: showForCustomerUpdate },
|
|
232
|
+
description: 'Your external reference (e.g. CRM/e-commerce ID). Must be unique.',
|
|
233
|
+
},
|
|
234
|
+
];
|
|
235
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/customer/update.ts"],"names":[],"mappings":";;;AAEA,MAAM,qBAAqB,GAAG;IAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC;AAEF,MAAM,4BAA4B,GAAG;IACpC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,YAAY,EAAE,CAAC,SAAS,CAAC;CACzB,CAAC;AAEF,MAAM,+BAA+B,GAAG;IACvC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,YAAY,EAAE,CAAC,YAAY,CAAC;CAC5B,CAAC;AAEW,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,SAAS;QAClB,cAAc,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE;QAC/C,WAAW,EAAE,sHAAsH;QACnI,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;YACrC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;SAC3C;KACD;IACD;Q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AE,oBAAoB;QACjC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE;QAC/C,WAAW,EAAE,mEAAmE;KAChF;CACD,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IExecuteSingleFunctions, IHttpRequestOptions, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare function applyCustomerInvoiceCategorizePreSend(this: IExecuteSingleFunctions, requestOptions: IHttpRequestOptions): Promise<IHttpRequestOptions>;
|
|
3
|
+
export declare const customerInvoiceCategorizeDescription: INodeProperties[];
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerInvoiceCategorizeDescription = void 0;
|
|
4
|
+
exports.applyCustomerInvoiceCategorizePreSend = applyCustomerInvoiceCategorizePreSend;
|
|
5
|
+
const showForCustomerInvoiceCategorize = {
|
|
6
|
+
operation: ['categorize'],
|
|
7
|
+
resource: ['customerInvoice'],
|
|
8
|
+
};
|
|
9
|
+
async function applyCustomerInvoiceCategorizePreSend(requestOptions) {
|
|
10
|
+
const categories = this.getNodeParameter('categories.category', []);
|
|
11
|
+
requestOptions.body = (Array.isArray(categories) ? categories : []).map(({ categoryId, weight }) => ({
|
|
12
|
+
id: parseInt(categoryId, 10),
|
|
13
|
+
weight,
|
|
14
|
+
}));
|
|
15
|
+
return requestOptions;
|
|
16
|
+
}
|
|
17
|
+
exports.customerInvoiceCategorizeDescription = [
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Invoice ID',
|
|
20
|
+
name: 'invoiceId',
|
|
21
|
+
type: 'string',
|
|
22
|
+
required: true,
|
|
23
|
+
default: '',
|
|
24
|
+
displayOptions: { show: showForCustomerInvoiceCategorize },
|
|
25
|
+
description: 'The ID of the customer invoice to link categories to',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Categories',
|
|
29
|
+
name: 'categories',
|
|
30
|
+
type: 'fixedCollection',
|
|
31
|
+
default: {},
|
|
32
|
+
required: true,
|
|
33
|
+
placeholder: 'Add Category',
|
|
34
|
+
description: 'Categories to link to this invoice, with their weight (a value between 0 and 1, up to 7 decimals). Categories belonging to the same category group must have weights summing to exactly 1. Draft invoices always return an empty categories list.',
|
|
35
|
+
typeOptions: { multipleValues: true },
|
|
36
|
+
displayOptions: { show: showForCustomerInvoiceCategorize },
|
|
37
|
+
options: [
|
|
38
|
+
{
|
|
39
|
+
name: 'category',
|
|
40
|
+
displayName: 'Category',
|
|
41
|
+
values: [
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Category ID',
|
|
44
|
+
name: 'categoryId',
|
|
45
|
+
type: 'string',
|
|
46
|
+
required: true,
|
|
47
|
+
default: '',
|
|
48
|
+
description: 'The ID of the category to link',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Weight',
|
|
52
|
+
name: 'weight',
|
|
53
|
+
type: 'string',
|
|
54
|
+
required: true,
|
|
55
|
+
default: '1',
|
|
56
|
+
description: 'Weight allocated to this category, e.g. "0.5". Weights within the same category group must sum to 1.',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
//# sourceMappingURL=categorize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categorize.js","sourceRoot":"","sources":["../../../../../nodes/Pennylane/resources/customer-invoice/categorize.ts"],"names":[],"mappings":";;;AAWA,sFAeC;AAxBD,MAAM,gCAAgC,GAAG;IACxC,SAAS,EAAE,CAAC,YAAY,CAAC;IACzB,QAAQ,EAAE,CAAC,iBAAiB,CAAC;CAC7B,CAAC;AAMK,KAAK,UAAU,qCAAqC,CAE1D,cAAmC;IAEnC,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,C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