@joshuanode/n8n-nodes-datto-backup 0.1.0-beta.1

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.
Files changed (80) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +96 -0
  3. package/dist/credentials/DattoBackupApi.credentials.d.ts +14 -0
  4. package/dist/credentials/DattoBackupApi.credentials.d.ts.map +1 -0
  5. package/dist/credentials/DattoBackupApi.credentials.js +54 -0
  6. package/dist/credentials/DattoBackupApi.credentials.js.map +1 -0
  7. package/dist/index.d.ts +3 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +19 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/nodes/DattoBackup/DattoBackup.node.d.ts +12 -0
  12. package/dist/nodes/DattoBackup/DattoBackup.node.d.ts.map +1 -0
  13. package/dist/nodes/DattoBackup/DattoBackup.node.js +495 -0
  14. package/dist/nodes/DattoBackup/DattoBackup.node.js.map +1 -0
  15. package/dist/nodes/DattoBackup/GenericFunctions.d.ts +24 -0
  16. package/dist/nodes/DattoBackup/GenericFunctions.d.ts.map +1 -0
  17. package/dist/nodes/DattoBackup/GenericFunctions.js +106 -0
  18. package/dist/nodes/DattoBackup/GenericFunctions.js.map +1 -0
  19. package/dist/nodes/DattoBackup/dattobackup.svg +38 -0
  20. package/dist/nodes/DattoBackup/descriptions/ActivityLogDescription.d.ts +4 -0
  21. package/dist/nodes/DattoBackup/descriptions/ActivityLogDescription.d.ts.map +1 -0
  22. package/dist/nodes/DattoBackup/descriptions/ActivityLogDescription.js +135 -0
  23. package/dist/nodes/DattoBackup/descriptions/ActivityLogDescription.js.map +1 -0
  24. package/dist/nodes/DattoBackup/descriptions/AgentDescription.d.ts +4 -0
  25. package/dist/nodes/DattoBackup/descriptions/AgentDescription.d.ts.map +1 -0
  26. package/dist/nodes/DattoBackup/descriptions/AgentDescription.js +80 -0
  27. package/dist/nodes/DattoBackup/descriptions/AgentDescription.js.map +1 -0
  28. package/dist/nodes/DattoBackup/descriptions/AlertDescription.d.ts +4 -0
  29. package/dist/nodes/DattoBackup/descriptions/AlertDescription.d.ts.map +1 -0
  30. package/dist/nodes/DattoBackup/descriptions/AlertDescription.js +81 -0
  31. package/dist/nodes/DattoBackup/descriptions/AlertDescription.js.map +1 -0
  32. package/dist/nodes/DattoBackup/descriptions/AssetDescription.d.ts +4 -0
  33. package/dist/nodes/DattoBackup/descriptions/AssetDescription.d.ts.map +1 -0
  34. package/dist/nodes/DattoBackup/descriptions/AssetDescription.js +78 -0
  35. package/dist/nodes/DattoBackup/descriptions/AssetDescription.js.map +1 -0
  36. package/dist/nodes/DattoBackup/descriptions/DeviceDescription.d.ts +4 -0
  37. package/dist/nodes/DattoBackup/descriptions/DeviceDescription.d.ts.map +1 -0
  38. package/dist/nodes/DattoBackup/descriptions/DeviceDescription.js +122 -0
  39. package/dist/nodes/DattoBackup/descriptions/DeviceDescription.js.map +1 -0
  40. package/dist/nodes/DattoBackup/descriptions/DtcAssetDescription.d.ts +4 -0
  41. package/dist/nodes/DattoBackup/descriptions/DtcAssetDescription.d.ts.map +1 -0
  42. package/dist/nodes/DattoBackup/descriptions/DtcAssetDescription.js +110 -0
  43. package/dist/nodes/DattoBackup/descriptions/DtcAssetDescription.js.map +1 -0
  44. package/dist/nodes/DattoBackup/descriptions/DtcRmmTemplateDescription.d.ts +4 -0
  45. package/dist/nodes/DattoBackup/descriptions/DtcRmmTemplateDescription.d.ts.map +1 -0
  46. package/dist/nodes/DattoBackup/descriptions/DtcRmmTemplateDescription.js +29 -0
  47. package/dist/nodes/DattoBackup/descriptions/DtcRmmTemplateDescription.js.map +1 -0
  48. package/dist/nodes/DattoBackup/descriptions/DtcStoragePoolDescription.d.ts +4 -0
  49. package/dist/nodes/DattoBackup/descriptions/DtcStoragePoolDescription.d.ts.map +1 -0
  50. package/dist/nodes/DattoBackup/descriptions/DtcStoragePoolDescription.js +29 -0
  51. package/dist/nodes/DattoBackup/descriptions/DtcStoragePoolDescription.js.map +1 -0
  52. package/dist/nodes/DattoBackup/descriptions/SaasApplicationDescription.d.ts +4 -0
  53. package/dist/nodes/DattoBackup/descriptions/SaasApplicationDescription.d.ts.map +1 -0
  54. package/dist/nodes/DattoBackup/descriptions/SaasApplicationDescription.js +80 -0
  55. package/dist/nodes/DattoBackup/descriptions/SaasApplicationDescription.js.map +1 -0
  56. package/dist/nodes/DattoBackup/descriptions/SaasDomainDescription.d.ts +4 -0
  57. package/dist/nodes/DattoBackup/descriptions/SaasDomainDescription.d.ts.map +1 -0
  58. package/dist/nodes/DattoBackup/descriptions/SaasDomainDescription.js +61 -0
  59. package/dist/nodes/DattoBackup/descriptions/SaasDomainDescription.js.map +1 -0
  60. package/dist/nodes/DattoBackup/descriptions/SaasSeatDescription.d.ts +4 -0
  61. package/dist/nodes/DattoBackup/descriptions/SaasSeatDescription.d.ts.map +1 -0
  62. package/dist/nodes/DattoBackup/descriptions/SaasSeatDescription.js +80 -0
  63. package/dist/nodes/DattoBackup/descriptions/SaasSeatDescription.js.map +1 -0
  64. package/dist/nodes/DattoBackup/descriptions/ShareDescription.d.ts +4 -0
  65. package/dist/nodes/DattoBackup/descriptions/ShareDescription.d.ts.map +1 -0
  66. package/dist/nodes/DattoBackup/descriptions/ShareDescription.js +78 -0
  67. package/dist/nodes/DattoBackup/descriptions/ShareDescription.js.map +1 -0
  68. package/dist/nodes/DattoBackup/descriptions/VmRestoreDescription.d.ts +4 -0
  69. package/dist/nodes/DattoBackup/descriptions/VmRestoreDescription.d.ts.map +1 -0
  70. package/dist/nodes/DattoBackup/descriptions/VmRestoreDescription.js +49 -0
  71. package/dist/nodes/DattoBackup/descriptions/VmRestoreDescription.js.map +1 -0
  72. package/dist/nodes/DattoBackup/descriptions/VolumeDescription.d.ts +4 -0
  73. package/dist/nodes/DattoBackup/descriptions/VolumeDescription.d.ts.map +1 -0
  74. package/dist/nodes/DattoBackup/descriptions/VolumeDescription.js +64 -0
  75. package/dist/nodes/DattoBackup/descriptions/VolumeDescription.js.map +1 -0
  76. package/dist/nodes/DattoBackup/descriptions/index.d.ts +15 -0
  77. package/dist/nodes/DattoBackup/descriptions/index.d.ts.map +1 -0
  78. package/dist/nodes/DattoBackup/descriptions/index.js +31 -0
  79. package/dist/nodes/DattoBackup/descriptions/index.js.map +1 -0
  80. package/package.json +65 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Joshua Smith
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,96 @@
1
+ # Datto Backup Node for n8n
2
+
3
+ [![npm version](https://badge.fury.io/js/%40joshuanode%2Fn8n-nodes-datto-backup.svg)](https://www.npmjs.com/package/@joshuanode/n8n-nodes-datto-backup)
4
+ [![GitHub](https://img.shields.io/badge/GitHub-ajoshuasmith-181717?logo=github)](https://github.com/ajoshuasmith)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+
7
+ Community node for the **Datto API** — built for MSPs managing backup devices at scale.
8
+
9
+ ## Features
10
+
11
+ ### BCDR (Backup, Continuity & Disaster Recovery)
12
+
13
+ | Resource | Operations | Description |
14
+ | -------------- | ------------- | ---------------------------------- |
15
+ | **Device** | Get, Get Many | BCDR appliances and cloud devices |
16
+ | **Agent** | Get Many | Backup agents on protected systems |
17
+ | **Alert** | Get Many | Device alerts and notifications |
18
+ | **Asset** | Get Many | Combined view of agents and shares |
19
+ | **Share** | Get Many | Network shares being backed up |
20
+ | **Volume** | Get | Storage volumes on a device |
21
+ | **VM Restore** | Get Many | Virtual machine restore operations |
22
+
23
+ ### Reporting
24
+
25
+ | Resource | Operations | Description |
26
+ | ---------------- | ---------- | ------------------------------------ |
27
+ | **Activity Log** | Get Many | User activity audit log with filters |
28
+
29
+ ### SaaS Protection
30
+
31
+ | Resource | Operations | Description |
32
+ | -------------------- | ---------- | ---------------------------- |
33
+ | **SaaS Domain** | Get Many | Protected domains |
34
+ | **SaaS Seat** | Get Many | Customer seat allocations |
35
+ | **SaaS Application** | Get Many | Backup data for applications |
36
+
37
+ ### Direct-to-Cloud (Endpoint Backup)
38
+
39
+ | Resource | Operations | Description |
40
+ | -------------------- | ---------------------------- | ------------------------ |
41
+ | **DTC Asset** | Get, Get Many, Get by Client | Endpoint backup assets |
42
+ | **DTC RMM Template** | Get Many | RMM deployment templates |
43
+ | **DTC Storage Pool** | Get Many | Storage pool usage |
44
+
45
+ ## Installation
46
+
47
+ ### Community Nodes (Recommended)
48
+
49
+ 1. In n8n, go to **Settings → Community Nodes → Install**
50
+ 2. Enter: `@joshuanode/n8n-nodes-datto-backup`
51
+ 3. Click **Install**
52
+
53
+ ### Manual Installation
54
+
55
+ ```bash
56
+ npm install @joshuanode/n8n-nodes-datto-backup
57
+ ```
58
+
59
+ ## Credentials
60
+
61
+ ### Getting API Keys
62
+
63
+ 1. Log into the [Datto Partner Portal](https://portal.dattobackup.com)
64
+ 2. Navigate to **Admin → Integrations**
65
+ 3. Select the **API Keys** tab
66
+ 4. Click **Create API Key** and provide a name
67
+ 5. Copy both the **Public Key** and **Secret Key**
68
+
69
+ ### Configuring in n8n
70
+
71
+ 1. In n8n, create new credentials for **Datto Backup API**
72
+ 2. Enter your **Public API Key**
73
+ 3. Enter your **Secret API Key**
74
+ 4. Click **Save** — the credentials will be tested automatically
75
+
76
+ ## Usage Examples
77
+
78
+ ### Get All Devices with Alerts
79
+
80
+ ```
81
+ 1. Datto Backup → Device → Get Many (Return All: true)
82
+ 2. Loop Over Items
83
+ 3. Datto Backup → Alert → Get Many (Serial Number: {{$json.serialNumber}})
84
+ ```
85
+
86
+ ### Monitor Backup Status Across Tenants
87
+
88
+ ```
89
+ 1. Datto Backup → Device → Get Many
90
+ 2. Filter → devices with backup issues
91
+ 3. Send notification (Slack, Email, etc.)
92
+ ```
93
+
94
+ ## License
95
+
96
+ [MIT](LICENSE)
@@ -0,0 +1,14 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class DattoBackupApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ icon: {
7
+ readonly light: "file:../nodes/DattoBackup/dattobackup.svg";
8
+ readonly dark: "file:../nodes/DattoBackup/dattobackup.svg";
9
+ };
10
+ properties: INodeProperties[];
11
+ authenticate: IAuthenticateGeneric;
12
+ test: ICredentialTestRequest;
13
+ }
14
+ //# sourceMappingURL=DattoBackupApi.credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DattoBackupApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/DattoBackupApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,MAAM,cAAc,CAAC;AAEtB,qBAAa,cAAe,YAAW,eAAe;IACrD,IAAI,SAAoB;IAExB,WAAW,SAAsB;IAEjC,gBAAgB,SAAqD;IAErE,IAAI;;;MAGO;IAEX,UAAU,EAAE,eAAe,EAAE,CAoB3B;IAEF,YAAY,EAAE,oBAAoB,CAQhC;IAEF,IAAI,EAAE,sBAAsB,CAU1B;CACF"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DattoBackupApi = void 0;
4
+ class DattoBackupApi {
5
+ name = 'dattoBackupApi';
6
+ displayName = 'Datto Backup API';
7
+ documentationUrl = 'https://portal.dattobackup.com/integrations/api';
8
+ icon = {
9
+ light: 'file:../nodes/DattoBackup/dattobackup.svg',
10
+ dark: 'file:../nodes/DattoBackup/dattobackup.svg',
11
+ };
12
+ properties = [
13
+ {
14
+ displayName: 'Public API Key',
15
+ name: 'publicKey',
16
+ type: 'string',
17
+ default: '',
18
+ required: true,
19
+ description: 'The Public API Key from Datto Partner Portal (Admin > Integrations > API Keys)',
20
+ },
21
+ {
22
+ displayName: 'Secret API Key',
23
+ name: 'secretKey',
24
+ type: 'string',
25
+ typeOptions: {
26
+ password: true,
27
+ },
28
+ default: '',
29
+ required: true,
30
+ description: 'The Secret API Key from Datto Partner Portal (Admin > Integrations > API Keys)',
31
+ },
32
+ ];
33
+ authenticate = {
34
+ type: 'generic',
35
+ properties: {
36
+ headers: {
37
+ Authorization: '=Basic {{Buffer.from($credentials.publicKey + ":" + $credentials.secretKey).toString("base64")}}',
38
+ },
39
+ },
40
+ };
41
+ test = {
42
+ request: {
43
+ baseURL: 'https://api.datto.com/v1',
44
+ url: '/bcdr/device',
45
+ method: 'GET',
46
+ qs: {
47
+ _page: 1,
48
+ _perPage: 1,
49
+ },
50
+ },
51
+ };
52
+ }
53
+ exports.DattoBackupApi = DattoBackupApi;
54
+ //# sourceMappingURL=DattoBackupApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DattoBackupApi.credentials.js","sourceRoot":"","sources":["../../credentials/DattoBackupApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,cAAc;IAC1B,IAAI,GAAG,gBAAgB,CAAC;IAExB,WAAW,GAAG,kBAAkB,CAAC;IAEjC,gBAAgB,GAAG,iDAAiD,CAAC;IAErE,IAAI,GAAG;QACN,KAAK,EAAE,2CAA2C;QAClD,IAAI,EAAE,2CAA2C;KACxC,CAAC;IAEX,UAAU,GAAsB;QAC/B;YACC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,gFAAgF;SAC7F;QACD;YACC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE;gBACZ,QAAQ,EAAE,IAAI;aACd;YACD,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,gFAAgF;SAC7F;KACD,CAAC;IAEF,YAAY,GAAyB;QACpC,IAAI,EAAE,SAAS;QACf,UAAU,EAAE;YACX,OAAO,EAAE;gBACR,aAAa,EACZ,kGAAkG;aACnG;SACD;KACD,CAAC;IAEF,IAAI,GAA2B;QAC9B,OAAO,EAAE;YACR,OAAO,EAAE,0BAA0B;YACnC,GAAG,EAAE,cAAc;YACnB,MAAM,EAAE,KAAK;YACb,EAAE,EAAE;gBACH,KAAK,EAAE,CAAC;gBACR,QAAQ,EAAE,CAAC;aACX;SACD;KACD,CAAC;CACF;AAvDD,wCAuDC"}
@@ -0,0 +1,3 @@
1
+ export * from './credentials/DattoBackupApi.credentials';
2
+ export * from './nodes/DattoBackup/DattoBackup.node';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./credentials/DattoBackupApi.credentials"), exports);
18
+ __exportStar(require("./nodes/DattoBackup/DattoBackup.node"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2EAAyD;AACzD,uEAAqD"}
@@ -0,0 +1,12 @@
1
+ import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class DattoBackup implements INodeType {
3
+ description: INodeTypeDescription;
4
+ methods: {
5
+ loadOptions: {
6
+ getDevices(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
7
+ getSaasCustomers(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
8
+ };
9
+ };
10
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
11
+ }
12
+ //# sourceMappingURL=DattoBackup.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DattoBackup.node.d.ts","sourceRoot":"","sources":["../../../nodes/DattoBackup/DattoBackup.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,iBAAiB,EAEjB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,oBAAoB,EACpB,MAAM,cAAc,CAAC;AAyCtB,qBAAa,WAAY,YAAW,SAAS;IAC5C,WAAW,EAAE,oBAAoB,CA+I/B;IAEF,OAAO;;6BAEkB,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;mCAGjD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;;MAIpF;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CA2dvE"}