n8n-nodes-cashwerk 1.0.0
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/LICENSE +21 -0
- package/README.md +177 -0
- package/dist/credentials/CashwerkApi.credentials.d.ts +10 -0
- package/dist/credentials/CashwerkApi.credentials.d.ts.map +1 -0
- package/dist/credentials/CashwerkApi.credentials.js +87 -0
- package/dist/credentials/CashwerkApi.credentials.js.map +1 -0
- package/dist/credentials/CashwerkOAuth2Api.credentials.d.ts +9 -0
- package/dist/credentials/CashwerkOAuth2Api.credentials.d.ts.map +1 -0
- package/dist/credentials/CashwerkOAuth2Api.credentials.js +103 -0
- package/dist/credentials/CashwerkOAuth2Api.credentials.js.map +1 -0
- package/dist/nodes/Cashwerk/Cashwerk.node.d.ts +24 -0
- package/dist/nodes/Cashwerk/Cashwerk.node.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/Cashwerk.node.js +499 -0
- package/dist/nodes/Cashwerk/Cashwerk.node.js.map +1 -0
- package/dist/nodes/Cashwerk/CashwerkTrigger.node.d.ts +13 -0
- package/dist/nodes/Cashwerk/CashwerkTrigger.node.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/CashwerkTrigger.node.js +249 -0
- package/dist/nodes/Cashwerk/CashwerkTrigger.node.js.map +1 -0
- package/dist/nodes/Cashwerk/GenericFunctions.d.ts +60 -0
- package/dist/nodes/Cashwerk/GenericFunctions.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/GenericFunctions.js +318 -0
- package/dist/nodes/Cashwerk/GenericFunctions.js.map +1 -0
- package/dist/nodes/Cashwerk/cashwerk.png +0 -0
- package/dist/nodes/Cashwerk/constants.d.ts +14 -0
- package/dist/nodes/Cashwerk/constants.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/constants.js +17 -0
- package/dist/nodes/Cashwerk/constants.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/AbsenceDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/AbsenceDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/AbsenceDescription.js +253 -0
- package/dist/nodes/Cashwerk/descriptions/AbsenceDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/AssetGroupDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/AssetGroupDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/AssetGroupDescription.js +83 -0
- package/dist/nodes/Cashwerk/descriptions/AssetGroupDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/AssetServiceDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/AssetServiceDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/AssetServiceDescription.js +194 -0
- package/dist/nodes/Cashwerk/descriptions/AssetServiceDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/AssetUnitDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/AssetUnitDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/AssetUnitDescription.js +95 -0
- package/dist/nodes/Cashwerk/descriptions/AssetUnitDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/CalendarDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/CalendarDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/CalendarDescription.js +89 -0
- package/dist/nodes/Cashwerk/descriptions/CalendarDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/CalendarEventDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/CalendarEventDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/CalendarEventDescription.js +224 -0
- package/dist/nodes/Cashwerk/descriptions/CalendarEventDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/CancellationInvoiceDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/CancellationInvoiceDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/CancellationInvoiceDescription.js +171 -0
- package/dist/nodes/Cashwerk/descriptions/CancellationInvoiceDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/CompanyDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/CompanyDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/CompanyDescription.js +775 -0
- package/dist/nodes/Cashwerk/descriptions/CompanyDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/ContactDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/ContactDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/ContactDescription.js +832 -0
- package/dist/nodes/Cashwerk/descriptions/ContactDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/CrmMetricsDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/CrmMetricsDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/CrmMetricsDescription.js +38 -0
- package/dist/nodes/Cashwerk/descriptions/CrmMetricsDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/DealDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/DealDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/DealDescription.js +344 -0
- package/dist/nodes/Cashwerk/descriptions/DealDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/DriveDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/DriveDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/DriveDescription.js +185 -0
- package/dist/nodes/Cashwerk/descriptions/DriveDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/DriveFileDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/DriveFileDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/DriveFileDescription.js +88 -0
- package/dist/nodes/Cashwerk/descriptions/DriveFileDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/DriveFolderDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/DriveFolderDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/DriveFolderDescription.js +93 -0
- package/dist/nodes/Cashwerk/descriptions/DriveFolderDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/DriveSharingDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/DriveSharingDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/DriveSharingDescription.js +135 -0
- package/dist/nodes/Cashwerk/descriptions/DriveSharingDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/IncomingPaymentDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/IncomingPaymentDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/IncomingPaymentDescription.js +112 -0
- package/dist/nodes/Cashwerk/descriptions/IncomingPaymentDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/InvoiceDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/InvoiceDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/InvoiceDescription.js +342 -0
- package/dist/nodes/Cashwerk/descriptions/InvoiceDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/MachineDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/MachineDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/MachineDescription.js +205 -0
- package/dist/nodes/Cashwerk/descriptions/MachineDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/MailConnectionDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/MailConnectionDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/MailConnectionDescription.js +18 -0
- package/dist/nodes/Cashwerk/descriptions/MailConnectionDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/MaterialDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/MaterialDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/MaterialDescription.js +204 -0
- package/dist/nodes/Cashwerk/descriptions/MaterialDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/OfferDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/OfferDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/OfferDescription.js +244 -0
- package/dist/nodes/Cashwerk/descriptions/OfferDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/OrganizationDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/OrganizationDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/OrganizationDescription.js +20 -0
- package/dist/nodes/Cashwerk/descriptions/OrganizationDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/PipelineDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/PipelineDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/PipelineDescription.js +128 -0
- package/dist/nodes/Cashwerk/descriptions/PipelineDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/PortfolioDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/PortfolioDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/PortfolioDescription.js +245 -0
- package/dist/nodes/Cashwerk/descriptions/PortfolioDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/ProjectDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/ProjectDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/ProjectDescription.js +381 -0
- package/dist/nodes/Cashwerk/descriptions/ProjectDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/SalesTaxRegulationDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/SalesTaxRegulationDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/SalesTaxRegulationDescription.js +132 -0
- package/dist/nodes/Cashwerk/descriptions/SalesTaxRegulationDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/ShiftPlanDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/ShiftPlanDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/ShiftPlanDescription.js +179 -0
- package/dist/nodes/Cashwerk/descriptions/ShiftPlanDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/SubcontractDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/SubcontractDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/SubcontractDescription.js +203 -0
- package/dist/nodes/Cashwerk/descriptions/SubcontractDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TaskBoardColumnDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/TaskBoardColumnDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TaskBoardColumnDescription.js +99 -0
- package/dist/nodes/Cashwerk/descriptions/TaskBoardColumnDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TaskBoardDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/TaskBoardDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TaskBoardDescription.js +290 -0
- package/dist/nodes/Cashwerk/descriptions/TaskBoardDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TaskCommentDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/TaskCommentDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TaskCommentDescription.js +51 -0
- package/dist/nodes/Cashwerk/descriptions/TaskCommentDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TaskDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/TaskDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TaskDescription.js +349 -0
- package/dist/nodes/Cashwerk/descriptions/TaskDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TaxRateDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/TaxRateDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TaxRateDescription.js +132 -0
- package/dist/nodes/Cashwerk/descriptions/TaxRateDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TimeEntryDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/TimeEntryDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TimeEntryDescription.js +98 -0
- package/dist/nodes/Cashwerk/descriptions/TimeEntryDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TimeTrackingDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/TimeTrackingDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TimeTrackingDescription.js +299 -0
- package/dist/nodes/Cashwerk/descriptions/TimeTrackingDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TrackingCategoryDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/TrackingCategoryDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/TrackingCategoryDescription.js +87 -0
- package/dist/nodes/Cashwerk/descriptions/TrackingCategoryDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/UserDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/UserDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/UserDescription.js +51 -0
- package/dist/nodes/Cashwerk/descriptions/UserDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/WorkReportDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/WorkReportDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/WorkReportDescription.js +183 -0
- package/dist/nodes/Cashwerk/descriptions/WorkReportDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/WorkTimeDescription.d.ts +4 -0
- package/dist/nodes/Cashwerk/descriptions/WorkTimeDescription.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/descriptions/WorkTimeDescription.js +56 -0
- package/dist/nodes/Cashwerk/descriptions/WorkTimeDescription.js.map +1 -0
- package/dist/nodes/Cashwerk/executors/assetManager.d.ts +8 -0
- package/dist/nodes/Cashwerk/executors/assetManager.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/executors/assetManager.js +237 -0
- package/dist/nodes/Cashwerk/executors/assetManager.js.map +1 -0
- package/dist/nodes/Cashwerk/executors/calendar.d.ts +4 -0
- package/dist/nodes/Cashwerk/executors/calendar.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/executors/calendar.js +94 -0
- package/dist/nodes/Cashwerk/executors/calendar.js.map +1 -0
- package/dist/nodes/Cashwerk/executors/crm.d.ts +6 -0
- package/dist/nodes/Cashwerk/executors/crm.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/executors/crm.js +214 -0
- package/dist/nodes/Cashwerk/executors/crm.js.map +1 -0
- package/dist/nodes/Cashwerk/executors/drive.d.ts +6 -0
- package/dist/nodes/Cashwerk/executors/drive.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/executors/drive.js +236 -0
- package/dist/nodes/Cashwerk/executors/drive.js.map +1 -0
- package/dist/nodes/Cashwerk/executors/invoicing.d.ts +8 -0
- package/dist/nodes/Cashwerk/executors/invoicing.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/executors/invoicing.js +345 -0
- package/dist/nodes/Cashwerk/executors/invoicing.js.map +1 -0
- package/dist/nodes/Cashwerk/executors/mailing.d.ts +3 -0
- package/dist/nodes/Cashwerk/executors/mailing.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/executors/mailing.js +11 -0
- package/dist/nodes/Cashwerk/executors/mailing.js.map +1 -0
- package/dist/nodes/Cashwerk/executors/organization.d.ts +3 -0
- package/dist/nodes/Cashwerk/executors/organization.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/executors/organization.js +23 -0
- package/dist/nodes/Cashwerk/executors/organization.js.map +1 -0
- package/dist/nodes/Cashwerk/executors/projectManager.d.ts +3 -0
- package/dist/nodes/Cashwerk/executors/projectManager.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/executors/projectManager.js +114 -0
- package/dist/nodes/Cashwerk/executors/projectManager.js.map +1 -0
- package/dist/nodes/Cashwerk/executors/salesPipeline.d.ts +4 -0
- package/dist/nodes/Cashwerk/executors/salesPipeline.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/executors/salesPipeline.js +97 -0
- package/dist/nodes/Cashwerk/executors/salesPipeline.js.map +1 -0
- package/dist/nodes/Cashwerk/executors/taskManager.d.ts +6 -0
- package/dist/nodes/Cashwerk/executors/taskManager.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/executors/taskManager.js +220 -0
- package/dist/nodes/Cashwerk/executors/taskManager.js.map +1 -0
- package/dist/nodes/Cashwerk/executors/users.d.ts +4 -0
- package/dist/nodes/Cashwerk/executors/users.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/executors/users.js +68 -0
- package/dist/nodes/Cashwerk/executors/users.js.map +1 -0
- package/dist/nodes/Cashwerk/executors/workManager.d.ts +7 -0
- package/dist/nodes/Cashwerk/executors/workManager.d.ts.map +1 -0
- package/dist/nodes/Cashwerk/executors/workManager.js +314 -0
- package/dist/nodes/Cashwerk/executors/workManager.js.map +1 -0
- package/package.json +68 -0
- package/templates/cashwerk_test_all.json +10637 -0
- package/templates/daily-invoice-summary.json +78 -0
- package/templates/deal-to-project-pipeline.json +119 -0
- package/templates/deal-won-to-invoice.json +103 -0
- package/templates/sync-contacts-from-csv.json +70 -0
- package/templates/webhook-contact-to-slack.json +69 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 cashwerk
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# n8n-nodes-cashwerk
|
|
2
|
+
|
|
3
|
+
n8n community node for the **cashwerk** API. Provides full CRUD operations across 38 resources spanning CRM, Invoicing, Project Management, Drive, Calendar, Asset Management, Work & Time Tracking, Task Management and Sales Pipeline -- plus a webhook-based trigger node for real-time event automation.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
### Community Node (recommended)
|
|
8
|
+
|
|
9
|
+
1. Open **Settings > Community Nodes** in your n8n instance
|
|
10
|
+
2. Click **Install a community node**
|
|
11
|
+
3. Enter `n8n-nodes-cashwerk`
|
|
12
|
+
4. Click **Install**
|
|
13
|
+
|
|
14
|
+
### npm
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install n8n-nodes-cashwerk
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Credentials
|
|
21
|
+
|
|
22
|
+
This package supports two authentication methods:
|
|
23
|
+
|
|
24
|
+
### API Key
|
|
25
|
+
|
|
26
|
+
1. In n8n, go to **Credentials > New Credential > cashwerk API**
|
|
27
|
+
2. Enter your **API Key** (starts with `cw_live_` or `cw_test_`)
|
|
28
|
+
3. Select the **Environment** (Production or Staging)
|
|
29
|
+
4. Click **Test** to verify the connection
|
|
30
|
+
|
|
31
|
+
### OAuth2
|
|
32
|
+
|
|
33
|
+
1. In n8n, go to **Credentials > New Credential > cashwerk OAuth2 API**
|
|
34
|
+
2. Select the **Environment** (Production or Staging)
|
|
35
|
+
3. Follow the OAuth2 authorization flow
|
|
36
|
+
4. Optionally specify **Scopes** (space-separated, e.g. `contacts:read invoices:read`)
|
|
37
|
+
|
|
38
|
+
API keys and OAuth applications can be managed in the cashwerk web app under **Settings > API & Integrations**.
|
|
39
|
+
|
|
40
|
+
## Nodes
|
|
41
|
+
|
|
42
|
+
### cashwerk (Action Node)
|
|
43
|
+
|
|
44
|
+
Perform operations on cashwerk entities. Supports 38 resources with 200+ operations.
|
|
45
|
+
|
|
46
|
+
#### CRM
|
|
47
|
+
|
|
48
|
+
| Resource | Operations |
|
|
49
|
+
|---|---|
|
|
50
|
+
| **Contact** | Get, Get Many, Create, Update, Archive, Archive Many, Restore, Restore Many, Unlink Company, Link Companies, Upload Avatar, Export CSV, Export PDF, Get Deals, Get Invoices, Get Offers, Get Projects, Get Tasks, Get Cancellation Invoices |
|
|
51
|
+
| **Company** | Get, Get Many, Create, Update, Archive, Archive Many, Restore, Restore Many, Add Contacts, Remove Contact, Upload Logo, Export CSV, Export PDF, Get Deals, Get Invoices, Get Offers, Get Projects, Get Tasks, Get Cancellation Invoices |
|
|
52
|
+
| **Portfolio** | Get, Get Many, Create, Update, Delete |
|
|
53
|
+
| **CRM Metrics** | Get Contact Metrics, Get Company Metrics |
|
|
54
|
+
|
|
55
|
+
#### Invoicing & Finance
|
|
56
|
+
|
|
57
|
+
| Resource | Operations |
|
|
58
|
+
|---|---|
|
|
59
|
+
| **Invoice** | Get, Get Many, Create, Update, Archive, Restore, Book, Cancel, Cancellation, Mark as Paid, Revert Committed, Send, Get Dashboard, Create XInvoice, Create ZUGFeRD, Validate XInvoice |
|
|
60
|
+
| **Offer** | Get, Get Many, Create, Update, Archive, Restore, Book, Cancel, Send, Convert to Invoice, Create from Deal |
|
|
61
|
+
| **Cancellation Invoice** | Get, Get Many, Create, Update, Archive, Restore, Create XInvoice, Create ZUGFeRD |
|
|
62
|
+
| **Incoming Payment** | Get by Invoice, Total, Create for Invoice, Delete |
|
|
63
|
+
| **Tax Rate** | Get, Get Many, Create, Update, Delete, Delete Many |
|
|
64
|
+
| **Sales Tax Regulation** | Get, Get Many, Create, Update, Delete, Delete Many |
|
|
65
|
+
|
|
66
|
+
#### Project Management
|
|
67
|
+
|
|
68
|
+
| Resource | Operations |
|
|
69
|
+
|---|---|
|
|
70
|
+
| **Project** | Get, Create, Query, Archive, Restore, Customer, Add Assignees, Update Assignees, Get Assignees, Add Contact Persons, Get Dashboard, Get Statuses, Update Address with Portfolio, Update Default Task Board, Upload Image |
|
|
71
|
+
|
|
72
|
+
#### Task Management
|
|
73
|
+
|
|
74
|
+
| Resource | Operations |
|
|
75
|
+
|---|---|
|
|
76
|
+
| **Task Board** | Get, Get Many, Create, Activate, Archive, Create Column, Invite User, Remove User, Update Due Date, Update Project, Update Title |
|
|
77
|
+
| **Task Board Column** | Delete, Create Task, Update Name |
|
|
78
|
+
| **Task** | Get, Get Many, Delete, Add Collaborator, Remove Collaborator, Add Companies, Add Contacts, Add Tag, Remove Tag, Create Comment, Create Subtask, Remove Subtask, Mark as Completed, Mark as Incomplete, Update Assignee, Update Description, Update Due Date, Update Title |
|
|
79
|
+
| **Task Comment** | Update, Delete |
|
|
80
|
+
|
|
81
|
+
#### Sales Pipeline
|
|
82
|
+
|
|
83
|
+
| Resource | Operations |
|
|
84
|
+
|---|---|
|
|
85
|
+
| **Deal** | Get, Get by Pipeline, Create, Update, Delete, Add Companies, Add Contacts, Add Tag, Stage, Update Lines |
|
|
86
|
+
| **Pipeline** | Get, Get Many, Create, Update, Archive, Restore |
|
|
87
|
+
|
|
88
|
+
#### Drive (File Management)
|
|
89
|
+
|
|
90
|
+
| Resource | Operations |
|
|
91
|
+
|---|---|
|
|
92
|
+
| **Drive** | Get, Get Many, Search, Init, Create Folder, Get Contents, Get Folders, Get Trash, Get View, Upload Direct, Clear |
|
|
93
|
+
| **Drive File** | Update, Delete, Get Details, Move, Move to Trash, Restore, Update Tags |
|
|
94
|
+
| **Drive Folder** | Get, Update, Delete, Get Details, Get Size, Get Subfolders, Move, Move to Trash, Restore, Update Tags, Zip |
|
|
95
|
+
| **Drive Sharing** | Get Shared Items, Get Shared File, Get Shared Folder, Get Folder Contents, Share Folder, Share File, Unshare Folder, Unshare File, Update Access, Delete Access, Update Share |
|
|
96
|
+
|
|
97
|
+
#### Calendar
|
|
98
|
+
|
|
99
|
+
| Resource | Operations |
|
|
100
|
+
|---|---|
|
|
101
|
+
| **Calendar** | Get, Get Many, Create, Update, Delete |
|
|
102
|
+
| **Calendar Event** | Get, Get Many, Create, Update, Delete, Check Busy, Update Response |
|
|
103
|
+
|
|
104
|
+
#### Work & Time Tracking
|
|
105
|
+
|
|
106
|
+
| Resource | Operations |
|
|
107
|
+
|---|---|
|
|
108
|
+
| **Time Tracking** | Get, Update, Get by Date Range, Get Running, Start Tracker, Stop Tracker, Pause Tracker, Resume Tracker, Breaks, Trackings |
|
|
109
|
+
| **Tracking Category** | Get, Get Many, Create, Update |
|
|
110
|
+
| **Absence** | Get, Get Many, Create, Update, Delete, Approve, Reject, Get by Date Range, Get Meta, Get Pending |
|
|
111
|
+
| **Shift Plan** | Get, Get Many, Create, Update, Delete, Duplicate, Get by Date Range |
|
|
112
|
+
| **Work Report** | Get User Summary, Get User Report, Get User Monthly, Get Week Stats, Get Working Days, Query Trackings, Get Org Summary, Get Org Report, Export CSV, Export PDF |
|
|
113
|
+
| **Work Time** | Get, For User |
|
|
114
|
+
|
|
115
|
+
#### Asset Management
|
|
116
|
+
|
|
117
|
+
| Resource | Operations |
|
|
118
|
+
|---|---|
|
|
119
|
+
| **Asset Unit** | Get, Get Many, Create, Update, Delete, Search |
|
|
120
|
+
| **Asset Group** | Get, Get Many, Create, Update, Delete |
|
|
121
|
+
| **Material** | Get, Get Many, Create, Update, Delete, Delete Many, Query, Upload Image |
|
|
122
|
+
| **Machine** | Get, Get Many, Create, Update, Delete, Delete Many, Query, Upload Image |
|
|
123
|
+
| **Asset Service** | Get, Get Many, Create, Update, Delete, Delete Many, Query, Upload Image |
|
|
124
|
+
| **Subcontract** | Get, Get Many, Create, Update, Delete, Delete Many, Query, Upload Image |
|
|
125
|
+
|
|
126
|
+
#### Organization & Users
|
|
127
|
+
|
|
128
|
+
| Resource | Operations |
|
|
129
|
+
|---|---|
|
|
130
|
+
| **Organization** | Get |
|
|
131
|
+
| **User** | Get, Get Many, Get Active |
|
|
132
|
+
| **Mail Connection** | Get Many |
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
### cashwerk Trigger
|
|
137
|
+
|
|
138
|
+
Starts a workflow when a cashwerk event occurs. Events are delivered in real-time via webhooks with HMAC-SHA256 signature verification.
|
|
139
|
+
|
|
140
|
+
Webhook subscriptions are automatically registered when the workflow is activated and removed on deactivation.
|
|
141
|
+
|
|
142
|
+
**Available events (89 events + wildcard):**
|
|
143
|
+
|
|
144
|
+
| Category | Events |
|
|
145
|
+
|---|---|
|
|
146
|
+
| **All** | `*` (wildcard) |
|
|
147
|
+
| **Absence** | `absence.create`, `absence.update`, `absence.delete`, `absence.approve`, `absence.reject` |
|
|
148
|
+
| **Asset Manager** | `material.create/update/delete`, `machine.create/update/delete`, `asset_service.create/update/delete`, `subcontract.create/update/delete` |
|
|
149
|
+
| **Calendar** | `calendar.create/update/delete`, `calendar_event.create/update/delete` |
|
|
150
|
+
| **CRM** | `contact.create/update/delete/archive/restore`, `company.create/update/delete/archive/restore`, `portfolio.create/update/delete` |
|
|
151
|
+
| **Deal** | `deal.create`, `deal.update`, `deal.delete`, `deal.stage_changed` |
|
|
152
|
+
| **Drive** | `drive.file.upload/update/delete`, `drive.folder.create/delete` |
|
|
153
|
+
| **Invoice** | `invoice.create/update/delete/book/paid/send/cancel` |
|
|
154
|
+
| **Cancellation Invoice** | `cancellation_invoice.create/update` |
|
|
155
|
+
| **Payment** | `incoming_payment.create/delete` |
|
|
156
|
+
| **Offer** | `offer.create/update/delete/send/book/cancel` |
|
|
157
|
+
| **Organization** | `organization.update` |
|
|
158
|
+
| **Pipeline** | `pipeline.create/update/delete` |
|
|
159
|
+
| **Project** | `project.create/update/delete/archive` |
|
|
160
|
+
| **Shift Plan** | `shift_plan.create/update/delete` |
|
|
161
|
+
| **Task** | `task.create/update/delete/complete`, `task_board.create/delete` |
|
|
162
|
+
| **Time Tracking** | `time_entry.create/update/delete`, `tracker.start/stop` |
|
|
163
|
+
| **User** | `user.create/update/delete/archive/activate` |
|
|
164
|
+
|
|
165
|
+
## Workflow Templates
|
|
166
|
+
|
|
167
|
+
The package ships with example workflow templates:
|
|
168
|
+
|
|
169
|
+
- **Daily Invoice Summary** -- Scheduled report of daily invoices sent via email
|
|
170
|
+
- **Deal Won to Invoice** -- Automatically create an invoice when a deal is won
|
|
171
|
+
- **Deal to Project Pipeline** -- Auto-create project and tasks from won deals
|
|
172
|
+
- **Sync Contacts from CSV** -- Bulk import contacts from a CSV file
|
|
173
|
+
- **New Contact to Slack** -- Real-time Slack notification when a contact is created
|
|
174
|
+
|
|
175
|
+
## License
|
|
176
|
+
|
|
177
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class CashwerkApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
properties: INodeProperties[];
|
|
7
|
+
authenticate: IAuthenticateGeneric;
|
|
8
|
+
test: ICredentialTestRequest;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=CashwerkApi.credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CashwerkApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/CashwerkApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EAClB,MAAM,cAAc,CAAC;AAEtB,qBAAa,WAAY,YAAW,eAAe;IAC/C,IAAI,SAAiB;IACrB,WAAW,SAAkB;IAC7B,gBAAgB,SAAkC;IAElD,UAAU,EAAE,eAAe,EAAE,CAuD3B;IAEF,YAAY,EAAE,oBAAoB,CAOhC;IAEF,IAAI,EAAE,sBAAsB,CAW1B;CACL"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CashwerkApi = void 0;
|
|
4
|
+
class CashwerkApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'cashwerkApi';
|
|
7
|
+
this.displayName = 'cashwerk API';
|
|
8
|
+
this.documentationUrl = 'https://docs.cashwerk.io/api';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'API Key',
|
|
12
|
+
name: 'apiKey',
|
|
13
|
+
type: 'string',
|
|
14
|
+
typeOptions: { password: true },
|
|
15
|
+
default: '',
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'Your cashwerk API key (starts with cw_live_ or cw_test_)',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Environment',
|
|
21
|
+
name: 'environment',
|
|
22
|
+
type: 'options',
|
|
23
|
+
default: 'production',
|
|
24
|
+
options: [
|
|
25
|
+
{
|
|
26
|
+
name: 'Production (Live)',
|
|
27
|
+
value: 'production',
|
|
28
|
+
description: 'production.cashwerk.io',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Staging (Sandbox)',
|
|
32
|
+
value: 'staging',
|
|
33
|
+
description: 'cloud-staging.cashwerk.io – test environment',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Local Development',
|
|
37
|
+
value: 'local',
|
|
38
|
+
description: 'localhost:3000 – use when n8n runs natively (npx n8n)',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Local (Docker)',
|
|
42
|
+
value: 'docker',
|
|
43
|
+
description: 'host.docker.internal:3000 – use when n8n runs in Docker',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Custom',
|
|
47
|
+
value: 'custom',
|
|
48
|
+
description: 'Enter a custom base URL',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Custom Base URL',
|
|
54
|
+
name: 'customBaseUrl',
|
|
55
|
+
type: 'string',
|
|
56
|
+
default: '',
|
|
57
|
+
required: true,
|
|
58
|
+
displayOptions: {
|
|
59
|
+
show: { environment: ['custom'] },
|
|
60
|
+
},
|
|
61
|
+
placeholder: 'https://my-cashwerk.example.com',
|
|
62
|
+
description: 'Full base URL including protocol (for self-hosted cashwerk instances)',
|
|
63
|
+
},
|
|
64
|
+
];
|
|
65
|
+
this.authenticate = {
|
|
66
|
+
type: 'generic',
|
|
67
|
+
properties: {
|
|
68
|
+
headers: {
|
|
69
|
+
'X-API-Key': '={{$credentials.apiKey}}',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
this.test = {
|
|
74
|
+
request: {
|
|
75
|
+
baseURL: '={{$credentials.environment === "custom" ? $credentials.customBaseUrl : ' +
|
|
76
|
+
'($credentials.environment === "local" ? "http://localhost:3000" : ' +
|
|
77
|
+
'($credentials.environment === "docker" ? "http://host.docker.internal:3000" : ' +
|
|
78
|
+
'($credentials.environment === "staging" ? "https://cloud-staging.cashwerk.io" : ' +
|
|
79
|
+
'"https://production.cashwerk.io")))}}',
|
|
80
|
+
url: '/api/v1/api-platform/me',
|
|
81
|
+
method: 'GET',
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.CashwerkApi = CashwerkApi;
|
|
87
|
+
//# sourceMappingURL=CashwerkApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CashwerkApi.credentials.js","sourceRoot":"","sources":["../../credentials/CashwerkApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,WAAW;IAAxB;QACI,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,cAAc,CAAC;QAC7B,qBAAgB,GAAG,8BAA8B,CAAC;QAElD,eAAU,GAAsB;YAC5B;gBACI,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,0DAA0D;aAC1E;YACD;gBACI,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,YAAY;gBACrB,OAAO,EAAE;oBACL;wBACI,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,YAAY;wBACnB,WAAW,EAAE,wBAAwB;qBACxC;oBACD;wBACI,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,SAAS;wBAChB,WAAW,EAAE,8CAA8C;qBAC9D;oBACD;wBACI,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,OAAO;wBACd,WAAW,EAAE,uDAAuD;qBACvE;oBACD;wBACI,IAAI,EAAE,gBAAgB;wBACtB,KAAK,EAAE,QAAQ;wBACf,WAAW,EAAE,yDAAyD;qBACzE;oBACD;wBACI,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,QAAQ;wBACf,WAAW,EAAE,yBAAyB;qBACzC;iBACJ;aACJ;YACD;gBACI,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,cAAc,EAAE;oBACZ,IAAI,EAAE,EAAE,WAAW,EAAE,CAAC,QAAQ,CAAC,EAAE;iBACpC;gBACD,WAAW,EAAE,iCAAiC;gBAC9C,WAAW,EAAE,uEAAuE;aACvF;SACJ,CAAC;QAEF,iBAAY,GAAyB;YACjC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACR,OAAO,EAAE;oBACL,WAAW,EAAE,0BAA0B;iBAC1C;aACJ;SACJ,CAAC;QAEF,SAAI,GAA2B;YAC3B,OAAO,EAAE;gBACL,OAAO,EACH,0EAA0E;oBAC1E,oEAAoE;oBACpE,gFAAgF;oBAChF,kFAAkF;oBAClF,uCAAuC;gBAC3C,GAAG,EAAE,yBAAyB;gBAC9B,MAAM,EAAE,KAAK;aAChB;SACJ,CAAC;IACN,CAAC;CAAA;AAnFD,kCAmFC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class CashwerkOAuth2Api implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
extends: string[];
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=CashwerkOAuth2Api.credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CashwerkOAuth2Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/CashwerkOAuth2Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,eAAe,EAClB,MAAM,cAAc,CAAC;AAkBtB,qBAAa,iBAAkB,YAAW,eAAe;IACrD,IAAI,SAAuB;IAC3B,WAAW,SAAyB;IACpC,gBAAgB,SAAyC;IACzD,OAAO,WAAiB;IAExB,UAAU,EAAE,eAAe,EAAE,CA6E3B;CACL"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CashwerkOAuth2Api = void 0;
|
|
4
|
+
// Server-to-server URL (used by n8n backend for token exchange)
|
|
5
|
+
const SERVER_URL_EXPR = '={{$self.environment === "custom" ? $self.customBaseUrl : ' +
|
|
6
|
+
'($self.environment === "local" ? "http://localhost:3000" : ' +
|
|
7
|
+
'($self.environment === "docker" ? "http://host.docker.internal:3000" : ' +
|
|
8
|
+
'($self.environment === "staging" ? "https://cloud-staging.cashwerk.io" : ' +
|
|
9
|
+
'"https://production.cashwerk.io")))}}';
|
|
10
|
+
// Browser URL (opened in user's browser for OAuth authorization -- Docker maps to localhost since the browser runs on the host)
|
|
11
|
+
const BROWSER_URL_EXPR = '={{$self.environment === "custom" ? $self.customBaseUrl : ' +
|
|
12
|
+
'($self.environment === "local" ? "http://localhost:3000" : ' +
|
|
13
|
+
'($self.environment === "docker" ? "http://localhost:3000" : ' +
|
|
14
|
+
'($self.environment === "staging" ? "https://cloud-staging.cashwerk.io" : ' +
|
|
15
|
+
'"https://production.cashwerk.io")))}}';
|
|
16
|
+
class CashwerkOAuth2Api {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.name = 'cashwerkOAuth2Api';
|
|
19
|
+
this.displayName = 'cashwerk OAuth2 API';
|
|
20
|
+
this.documentationUrl = 'https://docs.cashwerk.io/api/oauth2';
|
|
21
|
+
this.extends = ['oAuth2Api'];
|
|
22
|
+
this.properties = [
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Environment',
|
|
25
|
+
name: 'environment',
|
|
26
|
+
type: 'options',
|
|
27
|
+
default: 'production',
|
|
28
|
+
options: [
|
|
29
|
+
{
|
|
30
|
+
name: 'Production (Live)',
|
|
31
|
+
value: 'production',
|
|
32
|
+
description: 'production.cashwerk.io',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Staging (Sandbox)',
|
|
36
|
+
value: 'staging',
|
|
37
|
+
description: 'cloud-staging.cashwerk.io – test environment',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Local Development',
|
|
41
|
+
value: 'local',
|
|
42
|
+
description: 'localhost:3000 – use when n8n runs natively (npx n8n)',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'Local (Docker)',
|
|
46
|
+
value: 'docker',
|
|
47
|
+
description: 'host.docker.internal:3000 – use when n8n runs in Docker',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'Custom',
|
|
51
|
+
value: 'custom',
|
|
52
|
+
description: 'Enter a custom base URL',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Custom Base URL',
|
|
58
|
+
name: 'customBaseUrl',
|
|
59
|
+
type: 'string',
|
|
60
|
+
default: '',
|
|
61
|
+
required: true,
|
|
62
|
+
displayOptions: {
|
|
63
|
+
show: { environment: ['custom'] },
|
|
64
|
+
},
|
|
65
|
+
placeholder: 'https://my-cashwerk.example.com',
|
|
66
|
+
description: 'Full base URL including protocol (for self-hosted cashwerk instances)',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
displayName: 'Grant Type',
|
|
70
|
+
name: 'grantType',
|
|
71
|
+
type: 'hidden',
|
|
72
|
+
default: 'authorizationCode',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
displayName: 'Authorization URL',
|
|
76
|
+
name: 'authUrl',
|
|
77
|
+
type: 'hidden',
|
|
78
|
+
default: `${BROWSER_URL_EXPR}/api/v1/api-platform/oauth/authorize`,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Access Token URL',
|
|
82
|
+
name: 'accessTokenUrl',
|
|
83
|
+
type: 'hidden',
|
|
84
|
+
default: `${SERVER_URL_EXPR}/api/v1/api-platform/oauth/token`,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
displayName: 'Scope',
|
|
88
|
+
name: 'scope',
|
|
89
|
+
type: 'string',
|
|
90
|
+
default: '',
|
|
91
|
+
description: 'Space-separated list of scopes (e.g. contacts:read invoices:read). Leave empty for all scopes granted to the OAuth application.',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
displayName: 'Authentication',
|
|
95
|
+
name: 'authentication',
|
|
96
|
+
type: 'hidden',
|
|
97
|
+
default: 'body',
|
|
98
|
+
},
|
|
99
|
+
];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.CashwerkOAuth2Api = CashwerkOAuth2Api;
|
|
103
|
+
//# sourceMappingURL=CashwerkOAuth2Api.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CashwerkOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/CashwerkOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAKA,gEAAgE;AAChE,MAAM,eAAe,GACjB,4DAA4D;IAC5D,6DAA6D;IAC7D,yEAAyE;IACzE,2EAA2E;IAC3E,uCAAuC,CAAC;AAE5C,gIAAgI;AAChI,MAAM,gBAAgB,GAClB,4DAA4D;IAC5D,6DAA6D;IAC7D,8DAA8D;IAC9D,2EAA2E;IAC3E,uCAAuC,CAAC;AAE5C,MAAa,iBAAiB;IAA9B;QACI,SAAI,GAAG,mBAAmB,CAAC;QAC3B,gBAAW,GAAG,qBAAqB,CAAC;QACpC,qBAAgB,GAAG,qCAAqC,CAAC;QACzD,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,eAAU,GAAsB;YAC5B;gBACI,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,YAAY;gBACrB,OAAO,EAAE;oBACL;wBACI,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,YAAY;wBACnB,WAAW,EAAE,wBAAwB;qBACxC;oBACD;wBACI,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,SAAS;wBAChB,WAAW,EAAE,8CAA8C;qBAC9D;oBACD;wBACI,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,OAAO;wBACd,WAAW,EAAE,uDAAuD;qBACvE;oBACD;wBACI,IAAI,EAAE,gBAAgB;wBACtB,KAAK,EAAE,QAAQ;wBACf,WAAW,EAAE,yDAAyD;qBACzE;oBACD;wBACI,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,QAAQ;wBACf,WAAW,EAAE,yBAAyB;qBACzC;iBACJ;aACJ;YACD;gBACI,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,cAAc,EAAE;oBACZ,IAAI,EAAE,EAAE,WAAW,EAAE,CAAC,QAAQ,CAAC,EAAE;iBACpC;gBACD,WAAW,EAAE,iCAAiC;gBAC9C,WAAW,EAAE,uEAAuE;aACvF;YACD;gBACI,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,mBAAmB;aAC/B;YACD;gBACI,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,GAAG,gBAAgB,sCAAsC;aACrE;YACD;gBACI,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,GAAG,eAAe,kCAAkC;aAChE;YACD;gBACI,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iIAAiI;aACjJ;YACD;gBACI,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM;aAClB;SACJ,CAAC;IACN,CAAC;CAAA;AApFD,8CAoFC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class Cashwerk implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
methods: {
|
|
5
|
+
loadOptions: {
|
|
6
|
+
getDrives(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
7
|
+
getCalendars(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
8
|
+
getPipelines(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
9
|
+
getStagesByPipeline(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
10
|
+
getTaskBoards(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
11
|
+
getProjects(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
12
|
+
getContacts(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
13
|
+
getCompanies(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
14
|
+
getUsers(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
15
|
+
getDeals(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
16
|
+
getTasks(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
17
|
+
getOffers(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
18
|
+
getMailConnections(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
19
|
+
getInvoices(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=Cashwerk.node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cashwerk.node.d.ts","sourceRoot":"","sources":["../../../nodes/Cashwerk/Cashwerk.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,oBAAoB,EAEvB,MAAM,cAAc,CAAC;AAsDtB,qBAAa,QAAS,YAAW,SAAS;IACtC,WAAW,EAAE,oBAAoB,CA8J/B;IAEF,OAAO;;4BAEuB,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;+BAepD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;+BAYvD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;sCAYhD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;gCAiB7D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;8BAYzD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;8BAYvD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;+BAStD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;2BAS3D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;2BAQvD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;2BAQvD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;4BAQtD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;qCAY9C,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;8BAY9D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;;MAarF;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAwG1E"}
|