n8n-nodes-cove 1.1.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 +102 -0
- package/dist/credentials/CoveDataProtectionApi.credentials.d.ts +9 -0
- package/dist/credentials/CoveDataProtectionApi.credentials.js +65 -0
- package/dist/credentials/CoveDataProtectionApi.credentials.js.map +1 -0
- package/dist/nodes/CoveDataProtection/CoveDataProtection.node.d.ts +10 -0
- package/dist/nodes/CoveDataProtection/CoveDataProtection.node.js +120 -0
- package/dist/nodes/CoveDataProtection/CoveDataProtection.node.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/Interfaces.d.ts +51 -0
- package/dist/nodes/CoveDataProtection/actions/Interfaces.js +3 -0
- package/dist/nodes/CoveDataProtection/actions/Interfaces.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/create/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/create/description.js +66 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/create/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/create/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/create/execute.js +22 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/create/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/create/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/create/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/create/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/delete/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/delete/description.js +20 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/delete/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/delete/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/delete/execute.js +13 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/delete/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/delete/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/delete/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/delete/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getAll/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getAll/description.js +66 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getAll/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getAll/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getAll/execute.js +23 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getAll/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getAll/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getAll/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getAll/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getById/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getById/description.js +20 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getById/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getById/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getById/execute.js +13 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getById/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getById/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getById/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getById/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getStatistics/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getStatistics/description.js +124 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getStatistics/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getStatistics/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getStatistics/execute.js +106 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getStatistics/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getStatistics/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getStatistics/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/getStatistics/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/index.d.ts +9 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/index.js +107 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/update/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/update/description.js +52 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/update/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/update/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/update/execute.js +17 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/update/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/update/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/update/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/accounts/update/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/create/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/partners/create/description.js +74 -0
- package/dist/nodes/CoveDataProtection/actions/partners/create/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/create/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/partners/create/execute.js +21 -0
- package/dist/nodes/CoveDataProtection/actions/partners/create/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/create/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/partners/create/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/partners/create/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/delete/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/partners/delete/description.js +20 -0
- package/dist/nodes/CoveDataProtection/actions/partners/delete/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/delete/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/partners/delete/execute.js +13 -0
- package/dist/nodes/CoveDataProtection/actions/partners/delete/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/delete/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/partners/delete/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/partners/delete/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/enumerateChildren/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/partners/enumerateChildren/description.js +85 -0
- package/dist/nodes/CoveDataProtection/actions/partners/enumerateChildren/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/enumerateChildren/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/partners/enumerateChildren/execute.js +15 -0
- package/dist/nodes/CoveDataProtection/actions/partners/enumerateChildren/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/enumerateChildren/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/partners/enumerateChildren/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/partners/enumerateChildren/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getAll/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getAll/description.js +114 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getAll/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getAll/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getAll/execute.js +25 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getAll/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getAll/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getAll/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getAll/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getById/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getById/description.js +20 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getById/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getById/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getById/execute.js +13 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getById/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getById/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getById/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/partners/getById/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/index.d.ts +9 -0
- package/dist/nodes/CoveDataProtection/actions/partners/index.js +107 -0
- package/dist/nodes/CoveDataProtection/actions/partners/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/update/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/partners/update/description.js +55 -0
- package/dist/nodes/CoveDataProtection/actions/partners/update/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/update/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/partners/update/execute.js +17 -0
- package/dist/nodes/CoveDataProtection/actions/partners/update/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/partners/update/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/partners/update/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/partners/update/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/router.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/router.js +81 -0
- package/dist/nodes/CoveDataProtection/actions/router.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/create/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/users/create/description.js +106 -0
- package/dist/nodes/CoveDataProtection/actions/users/create/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/create/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/users/create/execute.js +26 -0
- package/dist/nodes/CoveDataProtection/actions/users/create/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/create/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/users/create/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/users/create/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/delete/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/users/delete/description.js +20 -0
- package/dist/nodes/CoveDataProtection/actions/users/delete/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/delete/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/users/delete/execute.js +13 -0
- package/dist/nodes/CoveDataProtection/actions/users/delete/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/delete/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/users/delete/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/users/delete/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/getAll/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/users/getAll/description.js +5 -0
- package/dist/nodes/CoveDataProtection/actions/users/getAll/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/getAll/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/users/getAll/execute.js +16 -0
- package/dist/nodes/CoveDataProtection/actions/users/getAll/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/getAll/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/users/getAll/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/users/getAll/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/getById/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/users/getById/description.js +20 -0
- package/dist/nodes/CoveDataProtection/actions/users/getById/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/getById/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/users/getById/execute.js +13 -0
- package/dist/nodes/CoveDataProtection/actions/users/getById/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/getById/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/users/getById/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/users/getById/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/index.d.ts +8 -0
- package/dist/nodes/CoveDataProtection/actions/users/index.js +98 -0
- package/dist/nodes/CoveDataProtection/actions/users/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/update/description.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/users/update/description.js +64 -0
- package/dist/nodes/CoveDataProtection/actions/users/update/description.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/update/execute.d.ts +2 -0
- package/dist/nodes/CoveDataProtection/actions/users/update/execute.js +17 -0
- package/dist/nodes/CoveDataProtection/actions/users/update/execute.js.map +1 -0
- package/dist/nodes/CoveDataProtection/actions/users/update/index.d.ts +3 -0
- package/dist/nodes/CoveDataProtection/actions/users/update/index.js +8 -0
- package/dist/nodes/CoveDataProtection/actions/users/update/index.js.map +1 -0
- package/dist/nodes/CoveDataProtection/cove.svg +7 -0
- package/dist/nodes/CoveDataProtection/transport.d.ts +4 -0
- package/dist/nodes/CoveDataProtection/transport.js +116 -0
- package/dist/nodes/CoveDataProtection/transport.js.map +1 -0
- package/dist/package.json +60 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/index.js +0 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 redanthrax
|
|
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,102 @@
|
|
|
1
|
+
# n8n-nodes-cove-data-protection
|
|
2
|
+
|
|
3
|
+
An n8n community node for integrating with Cove Data Protection (formerly N-able Backup) JSON-RPC API.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install n8n-nodes-cove-data-protection
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Cove Data Protection account with API access
|
|
16
|
+
- Partner name (company/reseller name)
|
|
17
|
+
- User credentials with API Authentication enabled
|
|
18
|
+
- API endpoint URL (default: https://api.backup.management/jsonapi)
|
|
19
|
+
|
|
20
|
+
## Setup
|
|
21
|
+
|
|
22
|
+
### Enabling API Authentication
|
|
23
|
+
|
|
24
|
+
1. Log into your Cove Data Protection Management Console
|
|
25
|
+
2. Navigate to **Settings > Users**
|
|
26
|
+
3. Edit your user account or create a dedicated API user
|
|
27
|
+
4. Enable **API Authentication** checkbox
|
|
28
|
+
5. Note down your partner name, username (email), and password for use in n8n
|
|
29
|
+
|
|
30
|
+
### Configuring Credentials in n8n
|
|
31
|
+
|
|
32
|
+
1. **API URL**: The JSON-RPC endpoint (default: `https://api.backup.management/jsonapi`)
|
|
33
|
+
2. **Partner Name**: Your company/reseller name as it appears in Cove
|
|
34
|
+
3. **Username**: Your email address for API access
|
|
35
|
+
4. **Password**: Your password
|
|
36
|
+
|
|
37
|
+
**Important**: The user account must have **API Authentication** enabled in the Management Console.
|
|
38
|
+
|
|
39
|
+
## Supported Operations
|
|
40
|
+
|
|
41
|
+
### Partners
|
|
42
|
+
Manage partner/reseller hierarchy and relationships:
|
|
43
|
+
- **Create** - Create a new partner
|
|
44
|
+
- **Delete** - Delete a partner
|
|
45
|
+
- **Get by ID** - Retrieve a specific partner by ID
|
|
46
|
+
- **Get Many** - Enumerate partners with optional recursive fetching
|
|
47
|
+
- **Update** - Update partner information
|
|
48
|
+
|
|
49
|
+
### Accounts
|
|
50
|
+
Manage backup accounts (devices) with comprehensive operations:
|
|
51
|
+
- **Create** - Create a new backup account
|
|
52
|
+
- **Delete** - Delete an account
|
|
53
|
+
- **Get by ID** - Retrieve a specific account by ID
|
|
54
|
+
- **Get Many** - Enumerate accounts for a partner
|
|
55
|
+
- **Get Statistics** - Get detailed account statistics with column codes (normalized field names)
|
|
56
|
+
- **Update** - Update account information
|
|
57
|
+
|
|
58
|
+
#### Account Statistics Column Codes
|
|
59
|
+
The **Get Statistics** operation automatically normalizes Cove's column codes to friendly field names:
|
|
60
|
+
|
|
61
|
+
**Common Mappings**:
|
|
62
|
+
- `I0` → `deviceId` - Unique device identifier
|
|
63
|
+
- `I1` → `deviceName` - Device/account name
|
|
64
|
+
- `I4` → `creationDate` - Unix timestamp of creation
|
|
65
|
+
- `I14` → `usedStorage` - Storage used in bytes
|
|
66
|
+
- `I16` → `osVersion` - Operating system version
|
|
67
|
+
- `I17` → `clientVersion` - Backup client version
|
|
68
|
+
- `I18` → `computerName` - Computer/hostname
|
|
69
|
+
- `I19` → `internalIps` - Internal IP addresses
|
|
70
|
+
- `I20` → `externalIps` - External IP addresses
|
|
71
|
+
- `I21` → `macAddress` - MAC address
|
|
72
|
+
- `I78` → `activeDataSources` - Active backup data sources (D1=Files, D2=System State, etc.)
|
|
73
|
+
|
|
74
|
+
For a complete list of column codes, see the [Column Codes Documentation](https://documentation.n-able.com/covedataprotection/USERGUIDE/documentation/Content/service-management/json-api/api-column-codes.htm).
|
|
75
|
+
|
|
76
|
+
### Users
|
|
77
|
+
Comprehensive user management operations:
|
|
78
|
+
- **Create** - Create a new user with role assignment
|
|
79
|
+
- **Delete** - Delete a user
|
|
80
|
+
- **Get by ID** - Retrieve a specific user by ID
|
|
81
|
+
- **Get Many** - Enumerate users for a partner
|
|
82
|
+
- **Update** - Update user information
|
|
83
|
+
|
|
84
|
+
## API Authentication
|
|
85
|
+
|
|
86
|
+
Cove Data Protection uses a visa-based authentication system:
|
|
87
|
+
- Initial login with partner name, username, and password
|
|
88
|
+
- Receives a **visa** (session token) valid for 15 minutes
|
|
89
|
+
- Each API response includes a new visa to maintain the session
|
|
90
|
+
- The node automatically manages visa renewal and caching
|
|
91
|
+
|
|
92
|
+
## Resources
|
|
93
|
+
|
|
94
|
+
- [Cove Data Protection API Documentation](https://documentation.n-able.com/covedataprotection/USERGUIDE/documentation/Content/service-management/json-api/home.htm)
|
|
95
|
+
- [Column Codes Reference](https://documentation.n-able.com/covedataprotection/USERGUIDE/documentation/Content/service-management/json-api/api-column-codes.htm)
|
|
96
|
+
- [JSON-RPC Schema](https://cdn.cloudbackup.management/maxdownloads/MXB_JSON-RPC_API_Schema.zip)
|
|
97
|
+
- [n8n Documentation](https://docs.n8n.io)
|
|
98
|
+
- [Repository](https://github.com/redanthrax/cove-node)
|
|
99
|
+
|
|
100
|
+
## License
|
|
101
|
+
|
|
102
|
+
MIT
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICredentialTestRequest, ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
|
|
2
|
+
export declare class CoveDataProtectionApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
icon: Icon;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
test: ICredentialTestRequest;
|
|
9
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoveDataProtectionApi = void 0;
|
|
4
|
+
class CoveDataProtectionApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'coveDataProtectionApi';
|
|
7
|
+
this.displayName = 'Cove Data Protection API';
|
|
8
|
+
this.documentationUrl = 'https://documentation.n-able.com/covedataprotection/USERGUIDE/documentation/Content/service-management/json-api/home.htm';
|
|
9
|
+
this.icon = {
|
|
10
|
+
light: 'file:../nodes/CoveDataProtection/cove.svg',
|
|
11
|
+
dark: 'file:../nodes/CoveDataProtection/cove.svg',
|
|
12
|
+
};
|
|
13
|
+
this.properties = [
|
|
14
|
+
{
|
|
15
|
+
displayName: 'Partner Name',
|
|
16
|
+
name: 'partner',
|
|
17
|
+
type: 'string',
|
|
18
|
+
default: '',
|
|
19
|
+
required: true,
|
|
20
|
+
description: 'The name of the partner/customer you want to log in under',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
displayName: 'Username',
|
|
24
|
+
name: 'username',
|
|
25
|
+
type: 'string',
|
|
26
|
+
default: '',
|
|
27
|
+
required: true,
|
|
28
|
+
description: 'Your email address for access to the service',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Password',
|
|
32
|
+
name: 'password',
|
|
33
|
+
type: 'string',
|
|
34
|
+
typeOptions: {
|
|
35
|
+
password: true,
|
|
36
|
+
},
|
|
37
|
+
default: '',
|
|
38
|
+
required: true,
|
|
39
|
+
description: 'Your password for access to the service',
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
this.test = {
|
|
43
|
+
request: {
|
|
44
|
+
baseURL: 'https://api.backup.management/jsonapi',
|
|
45
|
+
url: '',
|
|
46
|
+
method: 'POST',
|
|
47
|
+
headers: {
|
|
48
|
+
'Content-Type': 'application/json',
|
|
49
|
+
},
|
|
50
|
+
body: {
|
|
51
|
+
jsonrpc: '2.0',
|
|
52
|
+
id: 'jsonrpc',
|
|
53
|
+
method: 'Login',
|
|
54
|
+
params: {
|
|
55
|
+
partner: '={{$credentials.partner}}',
|
|
56
|
+
username: '={{$credentials.username}}',
|
|
57
|
+
password: '={{$credentials.password}}',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.CoveDataProtectionApi = CoveDataProtectionApi;
|
|
65
|
+
//# sourceMappingURL=CoveDataProtectionApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoveDataProtectionApi.credentials.js","sourceRoot":"","sources":["../../credentials/CoveDataProtectionApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,qBAAqB;IAAlC;QACC,SAAI,GAAG,uBAAuB,CAAC;QAC/B,gBAAW,GAAG,0BAA0B,CAAC;QAC1C,qBAAgB,GAAG,0HAA0H,CAAC;QAC7I,SAAI,GAAS;YACZ,KAAK,EAAE,2CAA2C;YAClD,IAAI,EAAE,2CAA2C;SACjD,CAAC;QACF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,2DAA2D;aACxE;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,8CAA8C;aAC3D;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,yCAAyC;aACtD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,uCAAuC;gBAChD,GAAG,EAAE,EAAE;gBACP,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE;oBACR,cAAc,EAAE,kBAAkB;iBAClC;gBACD,IAAI,EAAE;oBACL,OAAO,EAAE,KAAK;oBACd,EAAE,EAAE,SAAS;oBACb,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE;wBACP,OAAO,EAAE,2BAA2B;wBACpC,QAAQ,EAAE,4BAA4B;wBACtC,QAAQ,EAAE,4BAA4B;qBACtC;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA1DD,sDA0DC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class CoveDataProtection implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
methods: {
|
|
5
|
+
loadOptions: {
|
|
6
|
+
getPartners(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.CoveDataProtection = void 0;
|
|
37
|
+
const partners = __importStar(require("./actions/partners"));
|
|
38
|
+
const accounts = __importStar(require("./actions/accounts"));
|
|
39
|
+
const users = __importStar(require("./actions/users"));
|
|
40
|
+
const transport_1 = require("./transport");
|
|
41
|
+
class CoveDataProtection {
|
|
42
|
+
constructor() {
|
|
43
|
+
this.description = {
|
|
44
|
+
displayName: 'Cove Data Protection',
|
|
45
|
+
name: 'coveDataProtection',
|
|
46
|
+
icon: 'file:cove.svg',
|
|
47
|
+
group: ['transform'],
|
|
48
|
+
version: 1,
|
|
49
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
50
|
+
description: 'Interact with Cove Data Protection API',
|
|
51
|
+
documentationUrl: 'https://github.com/redanthrax/cove-node',
|
|
52
|
+
defaults: {
|
|
53
|
+
name: 'Cove Data Protection',
|
|
54
|
+
},
|
|
55
|
+
inputs: ['main'],
|
|
56
|
+
outputs: ['main'],
|
|
57
|
+
credentials: [
|
|
58
|
+
{
|
|
59
|
+
name: 'coveDataProtectionApi',
|
|
60
|
+
required: true,
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
properties: [
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Resource',
|
|
66
|
+
name: 'resource',
|
|
67
|
+
type: 'options',
|
|
68
|
+
noDataExpression: true,
|
|
69
|
+
options: [
|
|
70
|
+
{
|
|
71
|
+
name: 'Account',
|
|
72
|
+
value: 'accounts',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'Partner',
|
|
76
|
+
value: 'partners',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'User',
|
|
80
|
+
value: 'users',
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
default: 'partners',
|
|
84
|
+
},
|
|
85
|
+
...accounts.description,
|
|
86
|
+
...partners.description,
|
|
87
|
+
...users.description,
|
|
88
|
+
],
|
|
89
|
+
};
|
|
90
|
+
this.methods = {
|
|
91
|
+
loadOptions: {
|
|
92
|
+
async getPartners() {
|
|
93
|
+
const parentPartnerId = await transport_1.getPartnerId.call(this);
|
|
94
|
+
const params = {
|
|
95
|
+
parentPartnerId,
|
|
96
|
+
fetchRecursively: true,
|
|
97
|
+
fields: [0, 1],
|
|
98
|
+
};
|
|
99
|
+
const result = await transport_1.jsonRpcRequest.call(this, 'EnumeratePartners', params);
|
|
100
|
+
const partners = [];
|
|
101
|
+
if (result && result.result && Array.isArray(result.result)) {
|
|
102
|
+
for (const partner of result.result) {
|
|
103
|
+
partners.push({
|
|
104
|
+
name: partner.Name || `Partner ${partner.Id}`,
|
|
105
|
+
value: partner.Id,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return partners.sort((a, b) => a.name.localeCompare(b.name));
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
async execute() {
|
|
115
|
+
const { router } = await Promise.resolve().then(() => __importStar(require('./actions/router')));
|
|
116
|
+
return await router.call(this);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
exports.CoveDataProtection = CoveDataProtection;
|
|
120
|
+
//# sourceMappingURL=CoveDataProtection.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoveDataProtection.node.js","sourceRoot":"","sources":["../../../nodes/CoveDataProtection/CoveDataProtection.node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA+C;AAC/C,6DAA+C;AAC/C,uDAAyC;AAWzC,2CAA2D;AAE3D,MAAa,kBAAkB;IAA/B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,oBAAoB;YAC1B,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,wCAAwC;YACrD,gBAAgB,EAAE,yCAAyC;YAC3D,QAAQ,EAAE;gBACT,IAAI,EAAE,sBAAsB;aAC5B;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,uBAAuB;oBAC7B,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACvB,OAAO,EAAE;wBACP;4BACC,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,UAAU;yBACjB;wBACD;4BACC,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,UAAU;yBACjB;wBACD;4BACC,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,OAAO;yBACd;qBACD;oBACD,OAAO,EAAE,UAAU;iBACnB;gBACD,GAAG,QAAQ,CAAC,WAAW;gBACvB,GAAG,QAAQ,CAAC,WAAW;gBACvB,GAAG,KAAK,CAAC,WAAW;aACpB;SACD,CAAC;QAEF,YAAO,GAAG;YACT,WAAW,EAAE;gBACb,KAAK,CAAC,WAAW;oBACf,MAAM,eAAe,GAAG,MAAM,wBAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBACtD,MAAM,MAAM,GAAG;wBACd,eAAe;wBACf,gBAAgB,EAAE,IAAI;wBACtB,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;qBACd,CAAC;oBAEF,MAAM,MAAM,GAAG,MAAM,0BAAc,CAAC,IAAI,CAAC,IAAI,EAAE,mBAAmB,EAAE,MAAM,CAAC,CAAC;oBAC5E,MAAM,QAAQ,GAA2B,EAAE,CAAC;oBAE5C,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;wBAC7D,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;4BACpC,QAAQ,CAAC,IAAI,CAAC;gCACb,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,WAAW,OAAO,CAAC,EAAE,EAAE;gCAC7C,KAAK,EAAE,OAAO,CAAC,EAAE;6BACjB,CAAC,CAAC;wBACL,CAAC;oBACF,CAAC;oBAED,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;gBAC9D,CAAC;aACD;SACD,CAAC;IAMH,CAAC;IAJA,KAAK,CAAC,OAAO;QACZ,MAAM,EAAE,MAAM,EAAE,GAAG,wDAAa,kBAAkB,GAAC,CAAC;QACpD,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;CACD;AAhFD,gDAgFC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type CoveDataProtection = {
|
|
2
|
+
resource: 'partners' | 'accounts' | 'users';
|
|
3
|
+
operation: string;
|
|
4
|
+
};
|
|
5
|
+
export interface PartnerInfo {
|
|
6
|
+
Id: number;
|
|
7
|
+
Name: string;
|
|
8
|
+
Level: number;
|
|
9
|
+
ParentId: number;
|
|
10
|
+
ExternalCode?: string;
|
|
11
|
+
ReferenceNumber?: string;
|
|
12
|
+
State?: string;
|
|
13
|
+
Creation?: number;
|
|
14
|
+
Deleted?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface AccountInfo {
|
|
17
|
+
Id: number;
|
|
18
|
+
PartnerID: number;
|
|
19
|
+
PartnerName: string;
|
|
20
|
+
BackupServerUID: string;
|
|
21
|
+
Flags: string[];
|
|
22
|
+
Settings: Record<string, any>;
|
|
23
|
+
}
|
|
24
|
+
export interface UserInfo {
|
|
25
|
+
Id: number;
|
|
26
|
+
Name: string;
|
|
27
|
+
FullName: string;
|
|
28
|
+
EmailAddress: string;
|
|
29
|
+
RoleId: number;
|
|
30
|
+
PartnerId: number;
|
|
31
|
+
Flags: string[];
|
|
32
|
+
}
|
|
33
|
+
export interface AccountStatistics {
|
|
34
|
+
deviceId?: string;
|
|
35
|
+
deviceName?: string;
|
|
36
|
+
deviceNameAlias?: string;
|
|
37
|
+
creationDate?: number;
|
|
38
|
+
expirationDate?: number;
|
|
39
|
+
customer?: string;
|
|
40
|
+
product?: string;
|
|
41
|
+
storageLocation?: string;
|
|
42
|
+
usedStorage?: number;
|
|
43
|
+
email?: string;
|
|
44
|
+
osVersion?: string;
|
|
45
|
+
clientVersion?: string;
|
|
46
|
+
computerName?: string;
|
|
47
|
+
internalIps?: string;
|
|
48
|
+
externalIps?: string;
|
|
49
|
+
macAddress?: string;
|
|
50
|
+
activeDataSources?: string;
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Interfaces.js","sourceRoot":"","sources":["../../../../nodes/CoveDataProtection/actions/Interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createDescription = void 0;
|
|
4
|
+
exports.createDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Name',
|
|
7
|
+
name: 'name',
|
|
8
|
+
type: 'string',
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['accounts'],
|
|
12
|
+
operation: ['create'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
default: '',
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'Account name',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Password',
|
|
21
|
+
name: 'password',
|
|
22
|
+
type: 'string',
|
|
23
|
+
typeOptions: {
|
|
24
|
+
password: true,
|
|
25
|
+
},
|
|
26
|
+
displayOptions: {
|
|
27
|
+
show: {
|
|
28
|
+
resource: ['accounts'],
|
|
29
|
+
operation: ['create'],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
default: '',
|
|
33
|
+
required: true,
|
|
34
|
+
description: 'Account password',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Additional Fields',
|
|
38
|
+
name: 'additionalFields',
|
|
39
|
+
type: 'collection',
|
|
40
|
+
placeholder: 'Add Field',
|
|
41
|
+
default: {},
|
|
42
|
+
displayOptions: {
|
|
43
|
+
show: {
|
|
44
|
+
resource: ['accounts'],
|
|
45
|
+
operation: ['create'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Product ID',
|
|
51
|
+
name: 'ProductId',
|
|
52
|
+
type: 'number',
|
|
53
|
+
default: 0,
|
|
54
|
+
description: 'Product/backup type ID',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Retention Period',
|
|
58
|
+
name: 'RetentionPeriodInDays',
|
|
59
|
+
type: 'number',
|
|
60
|
+
default: 28,
|
|
61
|
+
description: 'Retention period in days',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
];
|
|
66
|
+
//# sourceMappingURL=description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../../nodes/CoveDataProtection/actions/accounts/create/description.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,cAAc;KAC3B;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,IAAI;SACd;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,kBAAkB;KAC/B;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,wBAAwB;aACrC;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,uBAAuB;gBAC7B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;aACvC;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execute = execute;
|
|
4
|
+
const transport_1 = require("../../../transport");
|
|
5
|
+
async function execute(index) {
|
|
6
|
+
const partnerId = await transport_1.getPartnerId.call(this);
|
|
7
|
+
const name = this.getNodeParameter('name', index);
|
|
8
|
+
const password = this.getNodeParameter('password', index);
|
|
9
|
+
const additionalFields = this.getNodeParameter('additionalFields', index, {});
|
|
10
|
+
const params = {
|
|
11
|
+
partnerId,
|
|
12
|
+
account: {
|
|
13
|
+
PartnerID: partnerId,
|
|
14
|
+
PartnerName: name,
|
|
15
|
+
Password: password,
|
|
16
|
+
...additionalFields,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
const result = await transport_1.jsonRpcRequest.call(this, 'AddAccount', params);
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=execute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../../nodes/CoveDataProtection/actions/accounts/create/execute.ts"],"names":[],"mappings":";;AAGA,0BAmBC;AArBD,kDAAkE;AAE3D,KAAK,UAAU,OAAO,CAA0B,KAAa;IACnE,MAAM,SAAS,GAAG,MAAM,wBAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAW,CAAC;IAC5D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAW,CAAC;IAEpE,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,KAAK,EAAE,EAAE,CAAgB,CAAC;IAE7F,MAAM,MAAM,GAAgB;QAC3B,SAAS;QACT,OAAO,EAAE;YACR,SAAS,EAAE,SAAS;YACpB,WAAW,EAAE,IAAI;YACjB,QAAQ,EAAE,QAAQ;YAClB,GAAG,gBAAgB;SACnB;KACD,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,0BAAc,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;IACrE,OAAO,MAAM,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execute = exports.description = void 0;
|
|
4
|
+
const execute_1 = require("./execute");
|
|
5
|
+
Object.defineProperty(exports, "execute", { enumerable: true, get: function () { return execute_1.execute; } });
|
|
6
|
+
const description_1 = require("./description");
|
|
7
|
+
Object.defineProperty(exports, "description", { enumerable: true, get: function () { return description_1.createDescription; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/CoveDataProtection/actions/accounts/create/index.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAGd,wFAHb,iBAAO,OAGa;AAF7B,+CAAiE;AAExD,4FAFqB,+BAAW,OAErB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteDescription = void 0;
|
|
4
|
+
exports.deleteDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Account ID',
|
|
7
|
+
name: 'accountId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['accounts'],
|
|
12
|
+
operation: ['delete'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
default: 0,
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'The ID of the account to delete',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../../nodes/CoveDataProtection/actions/accounts/delete/description.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execute = execute;
|
|
4
|
+
const transport_1 = require("../../../transport");
|
|
5
|
+
async function execute(index) {
|
|
6
|
+
const accountId = this.getNodeParameter('accountId', index);
|
|
7
|
+
const params = {
|
|
8
|
+
accountId,
|
|
9
|
+
};
|
|
10
|
+
await transport_1.jsonRpcRequest.call(this, 'RemoveAccount', params);
|
|
11
|
+
return { success: true, accountId };
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=execute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../../nodes/CoveDataProtection/actions/accounts/delete/execute.ts"],"names":[],"mappings":";;AAGA,0BASC;AAXD,kDAAoD;AAE7C,KAAK,UAAU,OAAO,CAA0B,KAAa;IACnE,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAW,CAAC;IAEtE,MAAM,MAAM,GAAgB;QAC3B,SAAS;KACT,CAAC;IAEF,MAAM,0BAAc,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,CAAC,CAAC;IACzD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AACrC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execute = exports.description = void 0;
|
|
4
|
+
const execute_1 = require("./execute");
|
|
5
|
+
Object.defineProperty(exports, "execute", { enumerable: true, get: function () { return execute_1.execute; } });
|
|
6
|
+
const description_1 = require("./description");
|
|
7
|
+
Object.defineProperty(exports, "description", { enumerable: true, get: function () { return description_1.deleteDescription; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/CoveDataProtection/actions/accounts/delete/index.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAGd,wFAHb,iBAAO,OAGa;AAF7B,+CAAiE;AAExD,4FAFqB,+BAAW,OAErB"}
|