@drivelock/n8n-nodes-drivelock 0.1.3 → 0.2.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.
- package/README.md +40 -0
- package/dist/credentials/DrivelockApi.credentials.js +2 -2
- package/dist/credentials/DrivelockApi.credentials.js.map +1 -1
- package/dist/nodes/Drivelock/Drivelock.node.d.ts +6 -0
- package/dist/nodes/Drivelock/Drivelock.node.js +639 -105
- package/dist/nodes/Drivelock/Drivelock.node.js.map +1 -1
- package/dist/nodes/Drivelock/helper/CustomPropertyHelper.js.map +1 -0
- package/dist/nodes/Drivelock/helper/FilterBuilder.d.ts +25 -0
- package/dist/nodes/Drivelock/helper/FilterBuilder.js +153 -0
- package/dist/nodes/Drivelock/helper/FilterBuilder.js.map +1 -0
- package/dist/nodes/Drivelock/{GenericFunctions.d.ts → helper/GenericFunctions.d.ts} +1 -1
- package/dist/nodes/Drivelock/helper/GenericFunctions.js +77 -0
- package/dist/nodes/Drivelock/helper/GenericFunctions.js.map +1 -0
- package/dist/nodes/Drivelock/helper/ValidationHelpers.d.ts +6 -0
- package/dist/nodes/Drivelock/helper/ValidationHelpers.js +64 -0
- package/dist/nodes/Drivelock/helper/ValidationHelpers.js.map +1 -0
- package/dist/nodes/Drivelock/{utils.d.ts → helper/utils.d.ts} +1 -1
- package/dist/nodes/Drivelock/helper/utils.js.map +1 -0
- package/dist/nodes/Drivelock/operations/ApplicationRuleOperations.d.ts +2 -0
- package/dist/nodes/Drivelock/operations/ApplicationRuleOperations.js +121 -0
- package/dist/nodes/Drivelock/operations/ApplicationRuleOperations.js.map +1 -0
- package/dist/nodes/Drivelock/{BinariesOperations.js → operations/BinariesOperations.js} +56 -10
- package/dist/nodes/Drivelock/operations/BinariesOperations.js.map +1 -0
- package/dist/nodes/Drivelock/operations/ComputerOperations.d.ts +2 -0
- package/dist/nodes/Drivelock/operations/ComputerOperations.js +284 -0
- package/dist/nodes/Drivelock/operations/ComputerOperations.js.map +1 -0
- package/dist/nodes/Drivelock/{CustomPropertyOperations.js → operations/CustomPropertyOperations.js} +13 -7
- package/dist/nodes/Drivelock/operations/CustomPropertyOperations.js.map +1 -0
- package/dist/nodes/Drivelock/operations/DeviceRuleOperations.d.ts +2 -0
- package/dist/nodes/Drivelock/operations/DeviceRuleOperations.js +130 -0
- package/dist/nodes/Drivelock/operations/DeviceRuleOperations.js.map +1 -0
- package/dist/nodes/Drivelock/operations/DriveRuleOperations.d.ts +2 -0
- package/dist/nodes/Drivelock/operations/DriveRuleOperations.js +130 -0
- package/dist/nodes/Drivelock/operations/DriveRuleOperations.js.map +1 -0
- package/dist/nodes/Drivelock/operations/EntityBinariesOperations.d.ts +2 -0
- package/dist/nodes/Drivelock/operations/EntityBinariesOperations.js +347 -0
- package/dist/nodes/Drivelock/operations/EntityBinariesOperations.js.map +1 -0
- package/dist/nodes/Drivelock/operations/EntityOperations.d.ts +2 -0
- package/dist/nodes/Drivelock/operations/EntityOperations.js +340 -0
- package/dist/nodes/Drivelock/operations/EntityOperations.js.map +1 -0
- package/dist/nodes/Drivelock/operations/FilterOperations.d.ts +2 -0
- package/dist/nodes/Drivelock/operations/FilterOperations.js +184 -0
- package/dist/nodes/Drivelock/operations/FilterOperations.js.map +1 -0
- package/dist/nodes/Drivelock/operations/GroupOperations.d.ts +2 -0
- package/dist/nodes/Drivelock/operations/GroupOperations.js +74 -0
- package/dist/nodes/Drivelock/operations/GroupOperations.js.map +1 -0
- package/dist/nodes/Drivelock/operations/PolicyOperations.d.ts +2 -0
- package/dist/nodes/Drivelock/operations/PolicyOperations.js +96 -0
- package/dist/nodes/Drivelock/operations/PolicyOperations.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/nodes/Drivelock/ApplicationRulePropertyOperations.d.ts +0 -2
- package/dist/nodes/Drivelock/ApplicationRulePropertyOperations.js +0 -50
- package/dist/nodes/Drivelock/ApplicationRulePropertyOperations.js.map +0 -1
- package/dist/nodes/Drivelock/BinariesOperations.js.map +0 -1
- package/dist/nodes/Drivelock/CustomPropertyHelper.js.map +0 -1
- package/dist/nodes/Drivelock/CustomPropertyOperations.js.map +0 -1
- package/dist/nodes/Drivelock/GenericFunctions.js +0 -48
- package/dist/nodes/Drivelock/GenericFunctions.js.map +0 -1
- package/dist/nodes/Drivelock/utils.js.map +0 -1
- /package/dist/nodes/Drivelock/{CustomPropertyHelper.d.ts → helper/CustomPropertyHelper.d.ts} +0 -0
- /package/dist/nodes/Drivelock/{CustomPropertyHelper.js → helper/CustomPropertyHelper.js} +0 -0
- /package/dist/nodes/Drivelock/{utils.js → helper/utils.js} +0 -0
- /package/dist/nodes/Drivelock/{BinariesOperations.d.ts → operations/BinariesOperations.d.ts} +0 -0
- /package/dist/nodes/Drivelock/{CustomPropertyOperations.d.ts → operations/CustomPropertyOperations.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ _App/service name_ is _one or two sentences describing the service this node int
|
|
|
13
13
|
[Usage](#usage)
|
|
14
14
|
[Resources](#resources)
|
|
15
15
|
[Version history](#version-history)
|
|
16
|
+
[Codebase Structure - Directory Layout](##codebase-structure-directory-layout)
|
|
16
17
|
|
|
17
18
|
## Installation
|
|
18
19
|
|
|
@@ -44,3 +45,42 @@ _By the time users are looking for community nodes, they probably already know n
|
|
|
44
45
|
## Version history
|
|
45
46
|
|
|
46
47
|
_This is another optional section. If your node has multiple versions, include a short description of available versions and what changed, as well as any compatibility impact._
|
|
48
|
+
|
|
49
|
+
## Codebase Structure - Directory Layout
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
n8n-nodes-drivelock/
|
|
53
|
+
├── credentials/ # Credential type definitions
|
|
54
|
+
│ └── DrivelockApi.credentials.ts
|
|
55
|
+
├── nodes/ # n8n node implementations
|
|
56
|
+
│ └── Drivelock/
|
|
57
|
+
│ ├── Drivelock.node.ts # Main node executor + metadata
|
|
58
|
+
│ ├── Drivelock.node.json # Node manifest for n8n registry
|
|
59
|
+
│ ├── helper/ # Shared utilities
|
|
60
|
+
│ │ ├── GenericFunctions.ts
|
|
61
|
+
│ │ ├── CustomPropertyHelper.ts
|
|
62
|
+
│ │ └── utils.ts
|
|
63
|
+
│ └── operations/ # Resource-specific operation definitions
|
|
64
|
+
│ ├── ApplicationRuleOperations.ts
|
|
65
|
+
│ ├── BinariesOperations.ts
|
|
66
|
+
│ ├── ComputerOperations.ts
|
|
67
|
+
│ ├── CustomPropertyOperations.ts
|
|
68
|
+
│ ├── DeviceRuleOperations.ts
|
|
69
|
+
│ ├── DriveRuleOperations.ts
|
|
70
|
+
│ ├── EntityBinariesOperations.ts
|
|
71
|
+
│ ├── EntityOperations.ts
|
|
72
|
+
│ ├── GroupOperations.ts
|
|
73
|
+
│ └── PolicyOperations.ts
|
|
74
|
+
├── icons/ # Node icon assets
|
|
75
|
+
│ └── drivelock.svg
|
|
76
|
+
├── .github/ # GitHub workflows
|
|
77
|
+
│ └── workflows/
|
|
78
|
+
├── .vscode/ # IDE configuration
|
|
79
|
+
├── .prettierrc.js # Prettier config
|
|
80
|
+
├── eslint.config.mjs # ESLint config
|
|
81
|
+
├── tsconfig.json # TypeScript config
|
|
82
|
+
├── package.json # Package definition
|
|
83
|
+
├── package-lock.json # Locked dependencies
|
|
84
|
+
├── README.md # Project documentation
|
|
85
|
+
└── CHANGELOG.md # Version history
|
|
86
|
+
```
|
|
@@ -46,7 +46,7 @@ class DrivelockApi {
|
|
|
46
46
|
value: 'https://dev.drivelock.cloud',
|
|
47
47
|
},
|
|
48
48
|
],
|
|
49
|
-
default: 'api.drivelock.cloud',
|
|
49
|
+
default: 'https://api.drivelock.cloud',
|
|
50
50
|
},
|
|
51
51
|
];
|
|
52
52
|
this.authenticate = {
|
|
@@ -60,7 +60,7 @@ class DrivelockApi {
|
|
|
60
60
|
this.test = {
|
|
61
61
|
request: {
|
|
62
62
|
baseURL: '={{ $credentials.baseUrl }}',
|
|
63
|
-
url: '/api/administration/entity/Computers
|
|
63
|
+
url: '/api/administration/entity/Computers/count',
|
|
64
64
|
method: 'GET',
|
|
65
65
|
},
|
|
66
66
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrivelockApi.credentials.js","sourceRoot":"","sources":["../../credentials/DrivelockApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,YAAY;IAAzB;QACC,SAAI,GAAG,cAAc,CAAC;QAEtB,gBAAW,GAAG,eAAe,CAAC;QAE9B,SAAI,GAAS,6BAA6B,CAAC;QAE3C,qBAAgB,GAAG,6BAA6B,CAAC;QAEjD,oBAAe,GAAG;YACjB,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,kEAAkE;YAC3E,UAAU,EAAE,gDAAgD;SAC5D,CAAC;QAEF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EACV,6IAA6I;gBAC9I,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,WAAW,EAAE,kCAAkC;gBAC/C,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,6BAA6B;wBACnC,KAAK,EAAE,6BAA6B;qBACpC;oBACD;wBACC,IAAI,EAAE,+BAA+B;wBACrC,KAAK,EAAE,+BAA+B;qBACtC;oBACD;wBACC,IAAI,EAAE,6BAA6B;wBACnC,KAAK,EAAE,6BAA6B;qBACpC;iBACD;gBACD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DrivelockApi.credentials.js","sourceRoot":"","sources":["../../credentials/DrivelockApi.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KAAK;aACb;SACD,CAAC;IAEH,CAAC;CAAA;AAvED,oCAuEC"}
|
|
@@ -3,7 +3,13 @@ export declare class Drivelock implements INodeType {
|
|
|
3
3
|
description: INodeTypeDescription;
|
|
4
4
|
methods: {
|
|
5
5
|
loadOptions: {
|
|
6
|
+
getBinaryProps(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
6
7
|
getSchemaExtentions(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
8
|
+
getEntityExtentions(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
9
|
+
getComputerIds(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
10
|
+
getEntityIds(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
11
|
+
getDeviceRuleIds(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
12
|
+
getDriveRuleIds(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
7
13
|
};
|
|
8
14
|
};
|
|
9
15
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|