n8n-nodes-hudu 1.3.2 → 1.3.4
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 +22 -1
- package/dist/nodes/Hudu/Hudu.node.js +19 -0
- package/dist/nodes/Hudu/Hudu.node.js.map +1 -1
- package/dist/nodes/Hudu/Hudu.node.ts +31 -0
- package/dist/nodes/Hudu/descriptions/asset_layout_fields.description.js +120 -1
- package/dist/nodes/Hudu/descriptions/asset_layout_fields.description.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/asset_layout_fields.description.ts +123 -2
- package/dist/nodes/Hudu/descriptions/assets.description.js +110 -20
- package/dist/nodes/Hudu/descriptions/assets.description.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/assets.description.ts +115 -21
- package/dist/nodes/Hudu/descriptions/index.js +4 -1
- package/dist/nodes/Hudu/descriptions/index.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/index.ts +4 -1
- package/dist/nodes/Hudu/descriptions/ip_addresses.description.js +14 -26
- package/dist/nodes/Hudu/descriptions/ip_addresses.description.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/ip_addresses.description.ts +14 -26
- package/dist/nodes/Hudu/descriptions/list_options.description.js +91 -0
- package/dist/nodes/Hudu/descriptions/list_options.description.js.map +1 -0
- package/dist/nodes/Hudu/descriptions/list_options.description.ts +95 -0
- package/dist/nodes/Hudu/descriptions/lists.description.js +12 -108
- package/dist/nodes/Hudu/descriptions/lists.description.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/lists.description.ts +13 -110
- package/dist/nodes/Hudu/descriptions/networks.description.js +163 -0
- package/dist/nodes/Hudu/descriptions/networks.description.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/networks.description.ts +163 -0
- package/dist/nodes/Hudu/descriptions/resources.js +12 -0
- package/dist/nodes/Hudu/descriptions/resources.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/resources.ts +12 -0
- package/dist/nodes/Hudu/descriptions/vlan_zones.description.js +279 -0
- package/dist/nodes/Hudu/descriptions/vlan_zones.description.js.map +1 -0
- package/dist/nodes/Hudu/descriptions/vlan_zones.description.ts +282 -0
- package/dist/nodes/Hudu/descriptions/vlans.description.js +325 -0
- package/dist/nodes/Hudu/descriptions/vlans.description.js.map +1 -0
- package/dist/nodes/Hudu/descriptions/vlans.description.ts +328 -0
- package/dist/nodes/Hudu/descriptions/websites.description.js +277 -10
- package/dist/nodes/Hudu/descriptions/websites.description.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/websites.description.ts +277 -10
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFields.js +36 -23
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFields.js.map +1 -1
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFields.ts +43 -23
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetTagFields.js +41 -34
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetTagFields.js.map +1 -1
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetTagFields.ts +58 -47
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getCustomFieldsLayoutFields.js +11 -11
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getCustomFieldsLayoutFields.js.map +1 -1
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getCustomFieldsLayoutFields.ts +11 -11
- package/dist/nodes/Hudu/optionLoaders/assets/getAssetLayoutId.js +47 -0
- package/dist/nodes/Hudu/optionLoaders/assets/getAssetLayoutId.js.map +1 -0
- package/dist/nodes/Hudu/optionLoaders/assets/getAssetLayoutId.ts +78 -0
- package/dist/nodes/Hudu/optionLoaders/index.js +1 -0
- package/dist/nodes/Hudu/optionLoaders/index.js.map +1 -1
- package/dist/nodes/Hudu/optionLoaders/index.ts +1 -0
- package/dist/nodes/Hudu/optionLoaders/lists/getLists.js +31 -0
- package/dist/nodes/Hudu/optionLoaders/lists/getLists.js.map +1 -0
- package/dist/nodes/Hudu/optionLoaders/lists/getLists.ts +56 -0
- package/dist/nodes/Hudu/optionLoaders/lists/index.js +18 -0
- package/dist/nodes/Hudu/optionLoaders/lists/index.js.map +1 -0
- package/dist/nodes/Hudu/optionLoaders/lists/index.ts +1 -0
- package/dist/nodes/Hudu/resources/articles/articles.handler.js +2 -1
- package/dist/nodes/Hudu/resources/articles/articles.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/articles/articles.handler.ts +2 -1
- package/dist/nodes/Hudu/resources/asset_layouts/asset_layouts.handler.js +2 -1
- package/dist/nodes/Hudu/resources/asset_layouts/asset_layouts.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/asset_layouts/asset_layouts.handler.ts +2 -1
- package/dist/nodes/Hudu/resources/asset_passwords/asset_passwords.handler.js +2 -1
- package/dist/nodes/Hudu/resources/asset_passwords/asset_passwords.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/asset_passwords/asset_passwords.handler.ts +2 -1
- package/dist/nodes/Hudu/resources/assets/assets.handler.js +56 -16
- package/dist/nodes/Hudu/resources/assets/assets.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/assets/assets.handler.ts +70 -42
- package/dist/nodes/Hudu/resources/assets/assets.types.ts +2 -1
- package/dist/nodes/Hudu/resources/companies/companies.handler.js +2 -1
- package/dist/nodes/Hudu/resources/companies/companies.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/companies/companies.handler.ts +2 -1
- package/dist/nodes/Hudu/resources/folders/folders.handler.js +2 -1
- package/dist/nodes/Hudu/resources/folders/folders.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/folders/folders.handler.ts +2 -1
- package/dist/nodes/Hudu/resources/index.js +6 -0
- package/dist/nodes/Hudu/resources/index.js.map +1 -1
- package/dist/nodes/Hudu/resources/index.ts +6 -0
- package/dist/nodes/Hudu/resources/ip_addresses/ip_addresses.handler.js +13 -1
- package/dist/nodes/Hudu/resources/ip_addresses/ip_addresses.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/ip_addresses/ip_addresses.handler.ts +18 -1
- package/dist/nodes/Hudu/resources/ip_addresses/ip_addresses.types.ts +13 -11
- package/dist/nodes/Hudu/resources/list_options/list_options.handler.js +220 -0
- package/dist/nodes/Hudu/resources/list_options/list_options.handler.js.map +1 -0
- package/dist/nodes/Hudu/resources/list_options/list_options.handler.ts +291 -0
- package/dist/nodes/Hudu/resources/list_options/list_options.types.js +3 -0
- package/dist/nodes/Hudu/resources/list_options/list_options.types.js.map +1 -0
- package/dist/nodes/Hudu/resources/list_options/list_options.types.ts +8 -0
- package/dist/nodes/Hudu/resources/lists/lists.handler.js +9 -24
- package/dist/nodes/Hudu/resources/lists/lists.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/lists/lists.handler.ts +13 -27
- package/dist/nodes/Hudu/resources/networks/networks.handler.js +5 -1
- package/dist/nodes/Hudu/resources/networks/networks.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/networks/networks.handler.ts +7 -1
- package/dist/nodes/Hudu/resources/networks/networks.types.ts +11 -0
- package/dist/nodes/Hudu/resources/password_folders/password_folders.handler.js +2 -1
- package/dist/nodes/Hudu/resources/password_folders/password_folders.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/password_folders/password_folders.handler.ts +2 -1
- package/dist/nodes/Hudu/resources/procedure_tasks/procedure_tasks.handler.js +2 -1
- package/dist/nodes/Hudu/resources/procedure_tasks/procedure_tasks.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/procedure_tasks/procedure_tasks.handler.ts +2 -1
- package/dist/nodes/Hudu/resources/procedures/procedures.handler.js +2 -1
- package/dist/nodes/Hudu/resources/procedures/procedures.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/procedures/procedures.handler.ts +2 -1
- package/dist/nodes/Hudu/resources/public_photos/public_photos.handler.js +2 -1
- package/dist/nodes/Hudu/resources/public_photos/public_photos.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/public_photos/public_photos.handler.ts +2 -1
- package/dist/nodes/Hudu/resources/rack_storage_items/rack_storage_items.handler.js +2 -1
- package/dist/nodes/Hudu/resources/rack_storage_items/rack_storage_items.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/rack_storage_items/rack_storage_items.handler.ts +2 -1
- package/dist/nodes/Hudu/resources/rack_storages/rack_storages.handler.js +2 -1
- package/dist/nodes/Hudu/resources/rack_storages/rack_storages.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/rack_storages/rack_storages.handler.ts +2 -1
- package/dist/nodes/Hudu/resources/vlan_zones/vlan_zones.handler.js +154 -0
- package/dist/nodes/Hudu/resources/vlan_zones/vlan_zones.handler.js.map +1 -0
- package/dist/nodes/Hudu/resources/vlan_zones/vlan_zones.handler.ts +205 -0
- package/dist/nodes/Hudu/resources/vlan_zones/vlan_zones.types.js +3 -0
- package/dist/nodes/Hudu/resources/vlan_zones/vlan_zones.types.js.map +1 -0
- package/dist/nodes/Hudu/resources/vlan_zones/vlan_zones.types.ts +22 -0
- package/dist/nodes/Hudu/resources/vlans/vlans.handler.js +154 -0
- package/dist/nodes/Hudu/resources/vlans/vlans.handler.js.map +1 -0
- package/dist/nodes/Hudu/resources/vlans/vlans.handler.ts +207 -0
- package/dist/nodes/Hudu/resources/vlans/vlans.types.js +3 -0
- package/dist/nodes/Hudu/resources/vlans/vlans.types.js.map +1 -0
- package/dist/nodes/Hudu/resources/vlans/vlans.types.ts +25 -0
- package/dist/nodes/Hudu/resources/websites/websites.handler.js +40 -4
- package/dist/nodes/Hudu/resources/websites/websites.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/websites/websites.handler.ts +55 -4
- package/dist/nodes/Hudu/resources/websites/websites.types.ts +3 -0
- package/dist/nodes/Hudu/utils/debugConfig.js +87 -17
- package/dist/nodes/Hudu/utils/debugConfig.js.map +1 -1
- package/dist/nodes/Hudu/utils/debugConfig.ts +118 -16
- package/dist/nodes/Hudu/utils/requestUtils.js +19 -12
- package/dist/nodes/Hudu/utils/requestUtils.js.map +1 -1
- package/dist/nodes/Hudu/utils/requestUtils.ts +40 -17
- package/package.json +87 -87
package/README.md
CHANGED
|
@@ -4,10 +4,29 @@ This community node enables seamless integration with Hudu documentation platfor
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
+
> **API Compatibility:** This node is aligned with Hudu API version 2.37.0. Some features require specific API versions. Compatibility with future Hudu versions is not guaranteed without further updates.
|
|
8
|
+
|
|
7
9
|
[](https://buymeacoffee.com/msoukhomlinov)
|
|
8
10
|
|
|
9
11
|
## Recent Changes
|
|
10
12
|
|
|
13
|
+
### [1.3.4] - 2025-05-17
|
|
14
|
+
- Optimised lists with dedicated list options resource
|
|
15
|
+
- Added full CRUD support for VLAN Zones and VLAN resources (new in Hudu API v2.37)
|
|
16
|
+
- Enhanced website operations with full field support, including new email security fields
|
|
17
|
+
- Fixed Asset Link Field Selector not loading properly in update operations
|
|
18
|
+
|
|
19
|
+
> **Note:** Some features in this version require Hudu API v2.37.0 to function properly.
|
|
20
|
+
|
|
21
|
+
### [1.3.3] - 2025-04-24
|
|
22
|
+
- Asset link and asset tag fields are now serialised as JSON when creating or updating assets, ensuring correct data is sent to the Hudu API.
|
|
23
|
+
- The 'Return As Asset Links' feature is now available for both single asset (Get) and multiple assets (Get Many) operations, providing consistent output formatting for asset link custom fields.
|
|
24
|
+
- Asset layout custom fields now support advanced properties: `hint`, `min`, `max`, `linkable_id`, `expiration`, `options`, `multiple_options`, `list_id`, and more. An "Other Data" input is available for all field types, allowing you to specify additional properties as required by the Hudu API.
|
|
25
|
+
|
|
26
|
+
### [1.3.2] - 2025-04-24
|
|
27
|
+
- Full support for the new Lists resource, enabling you to create, update, retrieve, and manage lists directly from your n8n workflows.
|
|
28
|
+
- Resolved an issue with the Procedures kickoff operation
|
|
29
|
+
|
|
11
30
|
### [1.3.1] - 2025-04-21
|
|
12
31
|
- Aligned package general content such as README and documentation
|
|
13
32
|
|
|
@@ -99,6 +118,7 @@ To use this node, you need to:
|
|
|
99
118
|
- Create and manage asset layout templates
|
|
100
119
|
- Get layout fields and configurations
|
|
101
120
|
- List all layouts with filtering support
|
|
121
|
+
- **Advanced custom field support:** Add hints, min/max, linkable asset layout IDs, expiration, options, and more to your custom fields. Use the "Other Data" input to specify any additional API-supported properties.
|
|
102
122
|
|
|
103
123
|
### Asset Passwords
|
|
104
124
|
|
|
@@ -118,10 +138,11 @@ To use this node, you need to:
|
|
|
118
138
|
- Company association
|
|
119
139
|
- Updated date range
|
|
120
140
|
- Custom field values
|
|
121
|
-
- Return as Asset Links option for custom tag support
|
|
141
|
+
- **Return as Asset Links** option for custom tag support (now available for both Get and Get Many)
|
|
122
142
|
- Optimised asset creation and update operations for both standard and custom fields
|
|
123
143
|
- Enhanced UI with dynamic field validation and intuitive field descriptions
|
|
124
144
|
- Streamlined workflow for using asset data between operations
|
|
145
|
+
- **Asset link/tag fields are serialised as JSON for API compatibility**
|
|
125
146
|
|
|
126
147
|
Note: Custom field support has some limitations:
|
|
127
148
|
- Legacy list fields require manual value entry (picklist conversion not implemented due to Hudu deprecating this feature)
|
|
@@ -33,9 +33,11 @@ const users_1 = require("./optionLoaders/users");
|
|
|
33
33
|
const companies_1 = require("./optionLoaders/companies");
|
|
34
34
|
const asset_layouts_1 = require("./optionLoaders/asset_layouts");
|
|
35
35
|
const assets_1 = require("./optionLoaders/assets");
|
|
36
|
+
const getAssetLayoutId_1 = require("./optionLoaders/assets/getAssetLayoutId");
|
|
36
37
|
const getAssetLayoutFields_1 = require("./optionLoaders/asset_layouts/getAssetLayoutFields");
|
|
37
38
|
const getCustomFieldsLayoutFields_1 = require("./optionLoaders/asset_layouts/getCustomFieldsLayoutFields");
|
|
38
39
|
const getAssetTagFields_1 = require("./optionLoaders/asset_layouts/getAssetTagFields");
|
|
40
|
+
const lists_1 = require("./optionLoaders/lists");
|
|
39
41
|
class Hudu {
|
|
40
42
|
constructor() {
|
|
41
43
|
this.description = {
|
|
@@ -84,6 +86,7 @@ class Hudu {
|
|
|
84
86
|
...descriptions.expirationsOperations,
|
|
85
87
|
...descriptions.folderOperations,
|
|
86
88
|
...descriptions.ipAddressOperations,
|
|
89
|
+
...descriptions.listOptionsOperations,
|
|
87
90
|
...descriptions.listsOperations,
|
|
88
91
|
...descriptions.magicDashOperations,
|
|
89
92
|
...descriptions.matchersOperations,
|
|
@@ -98,6 +101,8 @@ class Hudu {
|
|
|
98
101
|
...descriptions.uploadsOperations,
|
|
99
102
|
...descriptions.userOperations,
|
|
100
103
|
...descriptions.websitesOperations,
|
|
104
|
+
...descriptions.vlansOperations,
|
|
105
|
+
...descriptions.vlanZonesOperations,
|
|
101
106
|
...descriptions.activityLogsFields,
|
|
102
107
|
...descriptions.apiInfoFields,
|
|
103
108
|
...descriptions.articlesFields,
|
|
@@ -110,6 +115,7 @@ class Hudu {
|
|
|
110
115
|
...descriptions.expirationsFields,
|
|
111
116
|
...descriptions.folderFields,
|
|
112
117
|
...descriptions.ipAddressFields,
|
|
118
|
+
...descriptions.listOptionsFields,
|
|
113
119
|
...descriptions.listsFields,
|
|
114
120
|
...descriptions.magicDashFields,
|
|
115
121
|
...descriptions.matchersFields,
|
|
@@ -124,6 +130,8 @@ class Hudu {
|
|
|
124
130
|
...descriptions.uploadsFields,
|
|
125
131
|
...descriptions.userFields,
|
|
126
132
|
...descriptions.websitesFields,
|
|
133
|
+
...descriptions.vlansFields,
|
|
134
|
+
...descriptions.vlanZonesFields,
|
|
127
135
|
],
|
|
128
136
|
};
|
|
129
137
|
this.methods = {
|
|
@@ -134,7 +142,9 @@ class Hudu {
|
|
|
134
142
|
getAssetLayoutFields: getAssetLayoutFields_1.getAssetLayoutFields,
|
|
135
143
|
getAssetLayoutFieldValues: asset_layouts_1.getAssetLayoutFieldValues,
|
|
136
144
|
getAssets: assets_1.getAssets,
|
|
145
|
+
getAssetLayoutId: getAssetLayoutId_1.getAssetLayoutId,
|
|
137
146
|
getCustomFieldsLayoutFields: getCustomFieldsLayoutFields_1.getCustomFieldsLayoutFields,
|
|
147
|
+
getLists: lists_1.getLists,
|
|
138
148
|
},
|
|
139
149
|
resourceMapping: {
|
|
140
150
|
mapAssetLayoutFieldsForResource: getAssetLayoutFields_1.mapAssetLayoutFieldsForResource,
|
|
@@ -200,6 +210,9 @@ class Hudu {
|
|
|
200
210
|
case 'ipAddresses':
|
|
201
211
|
responseData = await resources.handleIpAddressesOperation.call(this, operation, i);
|
|
202
212
|
break;
|
|
213
|
+
case 'list_options':
|
|
214
|
+
responseData = await resources.handleListOptionsOperation.call(this, operation, i);
|
|
215
|
+
break;
|
|
203
216
|
case 'lists':
|
|
204
217
|
responseData = await resources.handleListsOperation.call(this, operation, i);
|
|
205
218
|
break;
|
|
@@ -242,6 +255,12 @@ class Hudu {
|
|
|
242
255
|
case 'websites':
|
|
243
256
|
responseData = await resources.handleWebsitesOperation.call(this, operation, i);
|
|
244
257
|
break;
|
|
258
|
+
case 'vlans':
|
|
259
|
+
responseData = await resources.handleVlansOperation.call(this, operation, i);
|
|
260
|
+
break;
|
|
261
|
+
case 'vlan_zones':
|
|
262
|
+
responseData = await resources.handleVlanZonesOperation.call(this, operation, i);
|
|
263
|
+
break;
|
|
245
264
|
default:
|
|
246
265
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The resource "${resource}" is not known!`);
|
|
247
266
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hudu.node.js","sourceRoot":"","sources":["../../../../src/nodes/Hudu/Hudu.node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,+CAGsB;AACtB,qDAA6D;AAG7D,6DAA+C;AAC/C,wDAA4D;AAG5D,uDAAyC;AAGzC,iDAAiD;AACjD,yDAAyD;AACzD,iEAA2F;AAC3F,mDAAmD;AACnD,6FAG4D;AAC5D,2GAAwG;AACxG,uFAA+F;
|
|
1
|
+
{"version":3,"file":"Hudu.node.js","sourceRoot":"","sources":["../../../../src/nodes/Hudu/Hudu.node.ts"],"names":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BAAY,CAAC,WAAW,EAAE;oBAC5B,IAAA,sBAAQ,EAAC,yBAAyB,CAAC,QAAQ,EAAE;wBAC3C,KAAK;wBACL,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;wBAC/D,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;wBACvD,KAAK,EAAE,OAAO;qBACf,CAAC,CAAC;iBACJ;gBAED,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE;oBACzB,MAAM,kBAAkB,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAiB,EAAE,EAAE,CAAC,CAAC;wBAC5G,IAAI,EAAE,IAAI;wBACV,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACxB,CAAC,CAAC,CAAC;oBACJ,UAAU,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC;oBACvC,SAAS;iBACV;gBACD,MAAM,KAAK,CAAC;aACb;SACF;QAED,IAAI,0BAAY,CAAC,WAAW,EAAE;YAC5B,IAAA,sBAAQ,EAAC,+BAA+B,EAAE;gBACxC,eAAe,EAAE,UAAU,CAAC,MAAM;gBAClC,UAAU;aACX,CAAC,CAAC;SACJ;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACtB,CAAC;CACF;AA1YD,oBA0YC"}
|
|
@@ -24,12 +24,14 @@ import { getUsers } from './optionLoaders/users';
|
|
|
24
24
|
import { getCompanies } from './optionLoaders/companies';
|
|
25
25
|
import { getAssetLayouts, getAssetLayoutFieldValues } from './optionLoaders/asset_layouts';
|
|
26
26
|
import { getAssets } from './optionLoaders/assets';
|
|
27
|
+
import { getAssetLayoutId } from './optionLoaders/assets/getAssetLayoutId';
|
|
27
28
|
import {
|
|
28
29
|
mapAssetLayoutFieldsForResource,
|
|
29
30
|
getAssetLayoutFields,
|
|
30
31
|
} from './optionLoaders/asset_layouts/getAssetLayoutFields';
|
|
31
32
|
import { getCustomFieldsLayoutFields } from './optionLoaders/asset_layouts/getCustomFieldsLayoutFields';
|
|
32
33
|
import { mapAssetTagFieldsForResource } from './optionLoaders/asset_layouts/getAssetTagFields';
|
|
34
|
+
import { getLists } from './optionLoaders/lists';
|
|
33
35
|
|
|
34
36
|
export class Hudu implements INodeType {
|
|
35
37
|
description: INodeTypeDescription = {
|
|
@@ -81,6 +83,7 @@ export class Hudu implements INodeType {
|
|
|
81
83
|
...descriptions.expirationsOperations,
|
|
82
84
|
...descriptions.folderOperations,
|
|
83
85
|
...descriptions.ipAddressOperations,
|
|
86
|
+
...descriptions.listOptionsOperations,
|
|
84
87
|
...descriptions.listsOperations,
|
|
85
88
|
...descriptions.magicDashOperations,
|
|
86
89
|
...descriptions.matchersOperations,
|
|
@@ -95,6 +98,8 @@ export class Hudu implements INodeType {
|
|
|
95
98
|
...descriptions.uploadsOperations,
|
|
96
99
|
...descriptions.userOperations,
|
|
97
100
|
...descriptions.websitesOperations,
|
|
101
|
+
...descriptions.vlansOperations,
|
|
102
|
+
...descriptions.vlanZonesOperations,
|
|
98
103
|
// Fields
|
|
99
104
|
...descriptions.activityLogsFields,
|
|
100
105
|
...descriptions.apiInfoFields,
|
|
@@ -108,6 +113,7 @@ export class Hudu implements INodeType {
|
|
|
108
113
|
...descriptions.expirationsFields,
|
|
109
114
|
...descriptions.folderFields,
|
|
110
115
|
...descriptions.ipAddressFields,
|
|
116
|
+
...descriptions.listOptionsFields,
|
|
111
117
|
...descriptions.listsFields,
|
|
112
118
|
...descriptions.magicDashFields,
|
|
113
119
|
...descriptions.matchersFields,
|
|
@@ -122,6 +128,8 @@ export class Hudu implements INodeType {
|
|
|
122
128
|
...descriptions.uploadsFields,
|
|
123
129
|
...descriptions.userFields,
|
|
124
130
|
...descriptions.websitesFields,
|
|
131
|
+
...descriptions.vlansFields,
|
|
132
|
+
...descriptions.vlanZonesFields,
|
|
125
133
|
],
|
|
126
134
|
};
|
|
127
135
|
|
|
@@ -133,7 +141,9 @@ export class Hudu implements INodeType {
|
|
|
133
141
|
getAssetLayoutFields,
|
|
134
142
|
getAssetLayoutFieldValues,
|
|
135
143
|
getAssets,
|
|
144
|
+
getAssetLayoutId,
|
|
136
145
|
getCustomFieldsLayoutFields,
|
|
146
|
+
getLists,
|
|
137
147
|
},
|
|
138
148
|
resourceMapping: {
|
|
139
149
|
mapAssetLayoutFieldsForResource,
|
|
@@ -251,6 +261,13 @@ export class Hudu implements INodeType {
|
|
|
251
261
|
i,
|
|
252
262
|
);
|
|
253
263
|
break;
|
|
264
|
+
case 'list_options':
|
|
265
|
+
responseData = await resources.handleListOptionsOperation.call(
|
|
266
|
+
this,
|
|
267
|
+
operation as resources.ListOptionsOperation,
|
|
268
|
+
i,
|
|
269
|
+
);
|
|
270
|
+
break;
|
|
254
271
|
case 'lists':
|
|
255
272
|
responseData = await resources.handleListsOperation.call(
|
|
256
273
|
this,
|
|
@@ -349,6 +366,20 @@ export class Hudu implements INodeType {
|
|
|
349
366
|
i,
|
|
350
367
|
);
|
|
351
368
|
break;
|
|
369
|
+
case 'vlans':
|
|
370
|
+
responseData = await resources.handleVlansOperation.call(
|
|
371
|
+
this,
|
|
372
|
+
operation as resources.VlanOperation,
|
|
373
|
+
i,
|
|
374
|
+
);
|
|
375
|
+
break;
|
|
376
|
+
case 'vlan_zones':
|
|
377
|
+
responseData = await resources.handleVlanZonesOperation.call(
|
|
378
|
+
this,
|
|
379
|
+
operation as resources.VlanZoneOperation,
|
|
380
|
+
i,
|
|
381
|
+
);
|
|
382
|
+
break;
|
|
352
383
|
default:
|
|
353
384
|
throw new NodeOperationError(this.getNode(), `The resource "${resource}" is not known!`);
|
|
354
385
|
}
|
|
@@ -78,7 +78,28 @@ exports.assetLayoutFieldFields = [
|
|
|
78
78
|
displayOptions: {
|
|
79
79
|
show: {
|
|
80
80
|
resource: ['asset_layout_fields'],
|
|
81
|
-
operation: ['get'
|
|
81
|
+
operation: ['get'],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
default: '',
|
|
85
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
displayName: 'Field Name or ID',
|
|
89
|
+
name: 'field_id',
|
|
90
|
+
type: 'options',
|
|
91
|
+
typeOptions: {
|
|
92
|
+
loadOptionsMethod: 'getAssetLayoutFields',
|
|
93
|
+
loadOptionsDependsOn: ['asset_layout_id'],
|
|
94
|
+
},
|
|
95
|
+
required: true,
|
|
96
|
+
displayOptions: {
|
|
97
|
+
show: {
|
|
98
|
+
resource: ['asset_layout_fields'],
|
|
99
|
+
operation: ['update', 'delete'],
|
|
100
|
+
},
|
|
101
|
+
hide: {
|
|
102
|
+
asset_layout_id: [''],
|
|
82
103
|
},
|
|
83
104
|
},
|
|
84
105
|
default: '',
|
|
@@ -183,6 +204,55 @@ exports.assetLayoutFieldFields = [
|
|
|
183
204
|
},
|
|
184
205
|
},
|
|
185
206
|
options: [
|
|
207
|
+
{
|
|
208
|
+
displayName: 'Expiration',
|
|
209
|
+
name: 'expiration',
|
|
210
|
+
type: 'boolean',
|
|
211
|
+
default: false,
|
|
212
|
+
description: 'Whether this field is for expiration tracking',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
displayName: 'Hint',
|
|
216
|
+
name: 'hint',
|
|
217
|
+
type: 'string',
|
|
218
|
+
default: '',
|
|
219
|
+
description: 'A hint or help text for this field (optional)',
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
displayName: 'Is Destroyed',
|
|
223
|
+
name: 'is_destroyed',
|
|
224
|
+
type: 'boolean',
|
|
225
|
+
default: false,
|
|
226
|
+
description: 'Whether this field is marked as destroyed (advanced use only)',
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
displayName: 'Linkable ID',
|
|
230
|
+
name: 'linkable_id',
|
|
231
|
+
type: 'number',
|
|
232
|
+
default: undefined,
|
|
233
|
+
description: 'ID of a linked resource (advanced use, optional)',
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
displayName: 'Maximum Value',
|
|
237
|
+
name: 'max',
|
|
238
|
+
type: 'number',
|
|
239
|
+
default: undefined,
|
|
240
|
+
description: 'Maximum value allowed (leave blank for no maximum)',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
displayName: 'Minimum Value',
|
|
244
|
+
name: 'min',
|
|
245
|
+
type: 'number',
|
|
246
|
+
default: undefined,
|
|
247
|
+
description: 'Minimum value allowed (leave blank for no minimum)',
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
displayName: 'Options',
|
|
251
|
+
name: 'options',
|
|
252
|
+
type: 'string',
|
|
253
|
+
default: '',
|
|
254
|
+
description: 'Options for select-type fields (comma-separated)',
|
|
255
|
+
},
|
|
186
256
|
{
|
|
187
257
|
displayName: 'Position',
|
|
188
258
|
name: 'position',
|
|
@@ -219,6 +289,13 @@ exports.assetLayoutFieldFields = [
|
|
|
219
289
|
},
|
|
220
290
|
},
|
|
221
291
|
options: [
|
|
292
|
+
{
|
|
293
|
+
displayName: 'Expiration',
|
|
294
|
+
name: 'expiration',
|
|
295
|
+
type: 'boolean',
|
|
296
|
+
default: false,
|
|
297
|
+
description: 'Whether this field is for expiration tracking',
|
|
298
|
+
},
|
|
222
299
|
{
|
|
223
300
|
displayName: 'Field Type',
|
|
224
301
|
name: 'field_type',
|
|
@@ -284,6 +361,20 @@ exports.assetLayoutFieldFields = [
|
|
|
284
361
|
default: constants_1.ASSET_LAYOUT_FIELD_TYPES.TEXT,
|
|
285
362
|
description: 'The type of the field',
|
|
286
363
|
},
|
|
364
|
+
{
|
|
365
|
+
displayName: 'Hint',
|
|
366
|
+
name: 'hint',
|
|
367
|
+
type: 'string',
|
|
368
|
+
default: '',
|
|
369
|
+
description: 'A hint or help text for this field (optional)',
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
displayName: 'Is Destroyed',
|
|
373
|
+
name: 'is_destroyed',
|
|
374
|
+
type: 'boolean',
|
|
375
|
+
default: false,
|
|
376
|
+
description: 'Whether this field is marked as destroyed (advanced use only)',
|
|
377
|
+
},
|
|
287
378
|
{
|
|
288
379
|
displayName: 'Label',
|
|
289
380
|
name: 'label',
|
|
@@ -291,6 +382,34 @@ exports.assetLayoutFieldFields = [
|
|
|
291
382
|
default: '',
|
|
292
383
|
description: 'The label of the field',
|
|
293
384
|
},
|
|
385
|
+
{
|
|
386
|
+
displayName: 'Linkable ID',
|
|
387
|
+
name: 'linkable_id',
|
|
388
|
+
type: 'number',
|
|
389
|
+
default: undefined,
|
|
390
|
+
description: 'ID of a linked resource (advanced use, optional)',
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
displayName: 'Maximum Value',
|
|
394
|
+
name: 'max',
|
|
395
|
+
type: 'number',
|
|
396
|
+
default: undefined,
|
|
397
|
+
description: 'Maximum value allowed (leave blank for no maximum)',
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
displayName: 'Minimum Value',
|
|
401
|
+
name: 'min',
|
|
402
|
+
type: 'number',
|
|
403
|
+
default: undefined,
|
|
404
|
+
description: 'Minimum value allowed (leave blank for no minimum)',
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
displayName: 'Options',
|
|
408
|
+
name: 'options',
|
|
409
|
+
type: 'string',
|
|
410
|
+
default: '',
|
|
411
|
+
description: 'Options for select-type fields (comma-separated)',
|
|
412
|
+
},
|
|
294
413
|
{
|
|
295
414
|
displayName: 'Position',
|
|
296
415
|
name: 'position',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset_layout_fields.description.js","sourceRoot":"","sources":["../../../../../src/nodes/Hudu/descriptions/asset_layout_fields.description.ts"],"names":[],"mappings":";;;AAC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,CAAC;aAC1D;SACD;QACD,WAAW,EAAE,gHAAgH;KAC7H;IAGD;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,sBAAsB;YACzC,oBAAoB,EAAE,CAAC,iBAAiB,CAAC;SACzC;QACD,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,qBAAqB,CAAC;gBACjC,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"asset_layout_fields.description.js","sourceRoot":"","sources":["../../../../../src/nodes/Hudu/descriptions/asset_layout_fields.description.ts"],"names":[],"mappings":";;;AACA,kDAAyF;AAE5E,QAAA,0BAA0B,GAAsB;IAC5D;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,qBAAqB,CAAC;aACjC;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gBAAgB;gBAC7B,MAAM,EAAE,gBAAgB;aACxB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gBAAgB;gBAC7B,MAAM,EAAE,gBAAgB;aACxB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,aAAa;gBAC1B,MAAM,EAAE,aAAa;aACrB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAA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EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,6CAA6C;aAC1D;SACD;KACD;CACD,CAAC"}
|
|
@@ -68,7 +68,7 @@ export const assetLayoutFieldFields: INodeProperties[] = [
|
|
|
68
68
|
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
69
69
|
},
|
|
70
70
|
|
|
71
|
-
// Field ID for
|
|
71
|
+
// Field ID for get operation
|
|
72
72
|
{
|
|
73
73
|
displayName: 'Field Name or ID',
|
|
74
74
|
name: 'field_id',
|
|
@@ -81,7 +81,30 @@ export const assetLayoutFieldFields: INodeProperties[] = [
|
|
|
81
81
|
displayOptions: {
|
|
82
82
|
show: {
|
|
83
83
|
resource: ['asset_layout_fields'],
|
|
84
|
-
operation: ['get'
|
|
84
|
+
operation: ['get'],
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
default: '',
|
|
88
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
// Field ID for update and delete operations (with dependency on asset_layout_id)
|
|
92
|
+
{
|
|
93
|
+
displayName: 'Field Name or ID',
|
|
94
|
+
name: 'field_id',
|
|
95
|
+
type: 'options',
|
|
96
|
+
typeOptions: {
|
|
97
|
+
loadOptionsMethod: 'getAssetLayoutFields',
|
|
98
|
+
loadOptionsDependsOn: ['asset_layout_id'],
|
|
99
|
+
},
|
|
100
|
+
required: true,
|
|
101
|
+
displayOptions: {
|
|
102
|
+
show: {
|
|
103
|
+
resource: ['asset_layout_fields'],
|
|
104
|
+
operation: ['update', 'delete'],
|
|
105
|
+
},
|
|
106
|
+
hide: {
|
|
107
|
+
asset_layout_id: [''],
|
|
85
108
|
},
|
|
86
109
|
},
|
|
87
110
|
default: '',
|
|
@@ -190,6 +213,55 @@ export const assetLayoutFieldFields: INodeProperties[] = [
|
|
|
190
213
|
},
|
|
191
214
|
},
|
|
192
215
|
options: [
|
|
216
|
+
{
|
|
217
|
+
displayName: 'Expiration',
|
|
218
|
+
name: 'expiration',
|
|
219
|
+
type: 'boolean',
|
|
220
|
+
default: false,
|
|
221
|
+
description: 'Whether this field is for expiration tracking',
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
displayName: 'Hint',
|
|
225
|
+
name: 'hint',
|
|
226
|
+
type: 'string',
|
|
227
|
+
default: '',
|
|
228
|
+
description: 'A hint or help text for this field (optional)',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
displayName: 'Is Destroyed',
|
|
232
|
+
name: 'is_destroyed',
|
|
233
|
+
type: 'boolean',
|
|
234
|
+
default: false,
|
|
235
|
+
description: 'Whether this field is marked as destroyed (advanced use only)',
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
displayName: 'Linkable ID',
|
|
239
|
+
name: 'linkable_id',
|
|
240
|
+
type: 'number',
|
|
241
|
+
default: undefined,
|
|
242
|
+
description: 'ID of a linked resource (advanced use, optional)',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
displayName: 'Maximum Value',
|
|
246
|
+
name: 'max',
|
|
247
|
+
type: 'number',
|
|
248
|
+
default: undefined,
|
|
249
|
+
description: 'Maximum value allowed (leave blank for no maximum)',
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
displayName: 'Minimum Value',
|
|
253
|
+
name: 'min',
|
|
254
|
+
type: 'number',
|
|
255
|
+
default: undefined,
|
|
256
|
+
description: 'Minimum value allowed (leave blank for no minimum)',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
displayName: 'Options',
|
|
260
|
+
name: 'options',
|
|
261
|
+
type: 'string',
|
|
262
|
+
default: '',
|
|
263
|
+
description: 'Options for select-type fields (comma-separated)',
|
|
264
|
+
},
|
|
193
265
|
{
|
|
194
266
|
displayName: 'Position',
|
|
195
267
|
name: 'position',
|
|
@@ -228,6 +300,13 @@ export const assetLayoutFieldFields: INodeProperties[] = [
|
|
|
228
300
|
},
|
|
229
301
|
},
|
|
230
302
|
options: [
|
|
303
|
+
{
|
|
304
|
+
displayName: 'Expiration',
|
|
305
|
+
name: 'expiration',
|
|
306
|
+
type: 'boolean',
|
|
307
|
+
default: false,
|
|
308
|
+
description: 'Whether this field is for expiration tracking',
|
|
309
|
+
},
|
|
231
310
|
{
|
|
232
311
|
displayName: 'Field Type',
|
|
233
312
|
name: 'field_type',
|
|
@@ -293,6 +372,20 @@ export const assetLayoutFieldFields: INodeProperties[] = [
|
|
|
293
372
|
default: ASSET_LAYOUT_FIELD_TYPES.TEXT,
|
|
294
373
|
description: 'The type of the field',
|
|
295
374
|
},
|
|
375
|
+
{
|
|
376
|
+
displayName: 'Hint',
|
|
377
|
+
name: 'hint',
|
|
378
|
+
type: 'string',
|
|
379
|
+
default: '',
|
|
380
|
+
description: 'A hint or help text for this field (optional)',
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
displayName: 'Is Destroyed',
|
|
384
|
+
name: 'is_destroyed',
|
|
385
|
+
type: 'boolean',
|
|
386
|
+
default: false,
|
|
387
|
+
description: 'Whether this field is marked as destroyed (advanced use only)',
|
|
388
|
+
},
|
|
296
389
|
{
|
|
297
390
|
displayName: 'Label',
|
|
298
391
|
name: 'label',
|
|
@@ -300,6 +393,34 @@ export const assetLayoutFieldFields: INodeProperties[] = [
|
|
|
300
393
|
default: '',
|
|
301
394
|
description: 'The label of the field',
|
|
302
395
|
},
|
|
396
|
+
{
|
|
397
|
+
displayName: 'Linkable ID',
|
|
398
|
+
name: 'linkable_id',
|
|
399
|
+
type: 'number',
|
|
400
|
+
default: undefined,
|
|
401
|
+
description: 'ID of a linked resource (advanced use, optional)',
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
displayName: 'Maximum Value',
|
|
405
|
+
name: 'max',
|
|
406
|
+
type: 'number',
|
|
407
|
+
default: undefined,
|
|
408
|
+
description: 'Maximum value allowed (leave blank for no maximum)',
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
displayName: 'Minimum Value',
|
|
412
|
+
name: 'min',
|
|
413
|
+
type: 'number',
|
|
414
|
+
default: undefined,
|
|
415
|
+
description: 'Minimum value allowed (leave blank for no minimum)',
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
displayName: 'Options',
|
|
419
|
+
name: 'options',
|
|
420
|
+
type: 'string',
|
|
421
|
+
default: '',
|
|
422
|
+
description: 'Options for select-type fields (comma-separated)',
|
|
423
|
+
},
|
|
303
424
|
{
|
|
304
425
|
displayName: 'Position',
|
|
305
426
|
name: 'position',
|