@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
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.volumeFields = exports.volumeOperations = void 0;
4
+ exports.volumeOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['volume'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Get',
18
+ value: 'get',
19
+ description: 'Get assets for a specific volume on a device',
20
+ action: 'Get a volume',
21
+ },
22
+ ],
23
+ default: 'get',
24
+ },
25
+ ];
26
+ exports.volumeFields = [
27
+ // ----------------------------------
28
+ // volume:get
29
+ // ----------------------------------
30
+ {
31
+ displayName: 'Device Serial Number Name or ID',
32
+ name: 'serialNumber',
33
+ type: 'options',
34
+ typeOptions: {
35
+ loadOptionsMethod: 'getDevices',
36
+ },
37
+ required: true,
38
+ default: '',
39
+ displayOptions: {
40
+ show: {
41
+ resource: ['volume'],
42
+ operation: ['get'],
43
+ },
44
+ },
45
+ description: 'The serial number of the BCDR device. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
46
+ },
47
+ {
48
+ displayName: 'Volume Name',
49
+ name: 'volumeName',
50
+ type: 'string',
51
+ required: true,
52
+ default: '',
53
+ placeholder: 'e.g., C:, D:, /dev/sda1',
54
+ displayOptions: {
55
+ show: {
56
+ resource: ['volume'],
57
+ operation: ['get'],
58
+ },
59
+ },
60
+ hint: 'Use Windows format (C:) or Linux format (/dev/sda1)',
61
+ description: 'The name of the volume to retrieve assets for',
62
+ },
63
+ ];
64
+ //# sourceMappingURL=VolumeDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VolumeDescription.js","sourceRoot":"","sources":["../../../../nodes/DattoBackup/descriptions/VolumeDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,8CAA8C;gBAC3D,MAAM,EAAE,cAAc;aACtB;SACD;QACD,OAAO,EAAE,KAAK;KACd;CACD,CAAC;AAEW,QAAA,YAAY,GAAsB;IAC9C,qCAAqC;IACrC,qBAAqB;IACrB,qCAAqC;IACrC;QACC,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,YAAY;SAC/B;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE,uJAAuJ;KACpK;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yBAAyB;QACtC,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,IAAI,EAAE,qDAAqD;QAC3D,WAAW,EAAE,+CAA+C;KAC5D;CACD,CAAC"}
@@ -0,0 +1,15 @@
1
+ export * from './DeviceDescription';
2
+ export * from './AgentDescription';
3
+ export * from './AlertDescription';
4
+ export * from './AssetDescription';
5
+ export * from './ShareDescription';
6
+ export * from './VolumeDescription';
7
+ export * from './VmRestoreDescription';
8
+ export * from './ActivityLogDescription';
9
+ export * from './SaasDomainDescription';
10
+ export * from './SaasSeatDescription';
11
+ export * from './SaasApplicationDescription';
12
+ export * from './DtcAssetDescription';
13
+ export * from './DtcRmmTemplateDescription';
14
+ export * from './DtcStoragePoolDescription';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../nodes/DattoBackup/descriptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,31 @@
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("./DeviceDescription"), exports);
18
+ __exportStar(require("./AgentDescription"), exports);
19
+ __exportStar(require("./AlertDescription"), exports);
20
+ __exportStar(require("./AssetDescription"), exports);
21
+ __exportStar(require("./ShareDescription"), exports);
22
+ __exportStar(require("./VolumeDescription"), exports);
23
+ __exportStar(require("./VmRestoreDescription"), exports);
24
+ __exportStar(require("./ActivityLogDescription"), exports);
25
+ __exportStar(require("./SaasDomainDescription"), exports);
26
+ __exportStar(require("./SaasSeatDescription"), exports);
27
+ __exportStar(require("./SaasApplicationDescription"), exports);
28
+ __exportStar(require("./DtcAssetDescription"), exports);
29
+ __exportStar(require("./DtcRmmTemplateDescription"), exports);
30
+ __exportStar(require("./DtcStoragePoolDescription"), exports);
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/DattoBackup/descriptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,sDAAoC;AACpC,yDAAuC;AACvC,2DAAyC;AACzC,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,wDAAsC;AACtC,8DAA4C;AAC5C,8DAA4C"}
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@joshuanode/n8n-nodes-datto-backup",
3
+ "version": "0.1.0-beta.1",
4
+ "description": "n8n community node for Datto BCDR (Backup, Continuity & Disaster Recovery) API",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "n8n-community-node-package",
8
+ "datto",
9
+ "bcdr",
10
+ "backup",
11
+ "disaster-recovery",
12
+ "msp"
13
+ ],
14
+ "homepage": "https://github.com/ajoshuasmith/n8n-nodes-datto-backup",
15
+ "author": {
16
+ "name": "Joshua Smith",
17
+ "email": "ajoshuasmith@users.noreply.github.com"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/ajoshuasmith/n8n-nodes-datto-backup.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/ajoshuasmith/n8n-nodes-datto-backup/issues"
25
+ },
26
+ "main": "dist/index.js",
27
+ "types": "dist/index.d.ts",
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "engines": {
35
+ "node": ">=18.17.0"
36
+ },
37
+ "scripts": {
38
+ "build": "n8n-node build && cp nodes/DattoBackup/dattobackup.svg dist/nodes/DattoBackup/",
39
+ "build:watch": "tsc --watch",
40
+ "dev": "n8n-node dev",
41
+ "lint": "n8n-node lint",
42
+ "lint:fix": "n8n-node lint --fix",
43
+ "release": "n8n-node release"
44
+ },
45
+ "n8n": {
46
+ "n8nNodesApiVersion": 1,
47
+ "strict": true,
48
+ "credentials": [
49
+ "dist/credentials/DattoBackupApi.credentials.js"
50
+ ],
51
+ "nodes": [
52
+ "dist/nodes/DattoBackup/DattoBackup.node.js"
53
+ ]
54
+ },
55
+ "devDependencies": {
56
+ "@n8n/node-cli": "*",
57
+ "eslint": "9.32.0",
58
+ "n8n-workflow": "*",
59
+ "prettier": "3.6.2",
60
+ "typescript": "5.9.2"
61
+ },
62
+ "peerDependencies": {
63
+ "n8n-workflow": "*"
64
+ }
65
+ }