n8n-nodes-hudu 1.3.4 → 1.3.5

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 (98) hide show
  1. package/README.md +48 -110
  2. package/dist/nodes/Hudu/Hudu.node.js +52 -18
  3. package/dist/nodes/Hudu/Hudu.node.js.map +1 -1
  4. package/dist/nodes/Hudu/Hudu.node.ts +473 -429
  5. package/dist/nodes/Hudu/descriptions/HuduAssetCustomFieldDescription.js +75 -0
  6. package/dist/nodes/Hudu/descriptions/HuduAssetCustomFieldDescription.js.map +1 -0
  7. package/dist/nodes/Hudu/descriptions/HuduAssetCustomFieldDescription.ts +73 -0
  8. package/dist/nodes/Hudu/descriptions/HuduAssetLinkFieldDescription.js +77 -0
  9. package/dist/nodes/Hudu/descriptions/HuduAssetLinkFieldDescription.js.map +1 -0
  10. package/dist/nodes/Hudu/descriptions/HuduAssetLinkFieldDescription.ts +75 -0
  11. package/dist/nodes/Hudu/descriptions/HuduAssetStandardFieldDescription.js +74 -0
  12. package/dist/nodes/Hudu/descriptions/HuduAssetStandardFieldDescription.js.map +1 -0
  13. package/dist/nodes/Hudu/descriptions/HuduAssetStandardFieldDescription.ts +72 -0
  14. package/dist/nodes/Hudu/descriptions/assets.description.js +50 -413
  15. package/dist/nodes/Hudu/descriptions/assets.description.js.map +1 -1
  16. package/dist/nodes/Hudu/descriptions/assets.description.ts +53 -423
  17. package/dist/nodes/Hudu/descriptions/index.js +3 -0
  18. package/dist/nodes/Hudu/descriptions/index.js.map +1 -1
  19. package/dist/nodes/Hudu/descriptions/index.ts +3 -0
  20. package/dist/nodes/Hudu/descriptions/public_photos.description.js +51 -3
  21. package/dist/nodes/Hudu/descriptions/public_photos.description.js.map +1 -1
  22. package/dist/nodes/Hudu/descriptions/public_photos.description.ts +51 -3
  23. package/dist/nodes/Hudu/descriptions/resources.js +12 -0
  24. package/dist/nodes/Hudu/descriptions/resources.js.map +1 -1
  25. package/dist/nodes/Hudu/descriptions/resources.ts +12 -0
  26. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFields.ts +254 -254
  27. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLinkFields.js +51 -0
  28. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLinkFields.js.map +1 -0
  29. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLinkFields.ts +70 -0
  30. package/dist/nodes/Hudu/optionLoaders/asset_layouts/index.js +1 -1
  31. package/dist/nodes/Hudu/optionLoaders/asset_layouts/index.js.map +1 -1
  32. package/dist/nodes/Hudu/optionLoaders/asset_layouts/index.ts +1 -1
  33. package/dist/nodes/Hudu/optionLoaders/assets/getAssetCustomFields.js +71 -0
  34. package/dist/nodes/Hudu/optionLoaders/assets/getAssetCustomFields.js.map +1 -0
  35. package/dist/nodes/Hudu/optionLoaders/assets/getAssetCustomFields.ts +80 -0
  36. package/dist/nodes/Hudu/optionLoaders/assets/getAssetsForCompany.js +45 -0
  37. package/dist/nodes/Hudu/optionLoaders/assets/getAssetsForCompany.js.map +1 -0
  38. package/dist/nodes/Hudu/optionLoaders/assets/getAssetsForCompany.ts +59 -0
  39. package/dist/nodes/Hudu/optionLoaders/assets/getLinkableAssets.js +117 -0
  40. package/dist/nodes/Hudu/optionLoaders/assets/getLinkableAssets.js.map +1 -0
  41. package/dist/nodes/Hudu/optionLoaders/assets/getLinkableAssets.ts +147 -0
  42. package/dist/nodes/Hudu/optionLoaders/assets/index.js +2 -0
  43. package/dist/nodes/Hudu/optionLoaders/assets/index.js.map +1 -1
  44. package/dist/nodes/Hudu/optionLoaders/assets/index.ts +3 -1
  45. package/dist/nodes/Hudu/optionLoaders/index.ts +4 -4
  46. package/dist/nodes/Hudu/resources/assetCustomField/assetCustomField.handler.js +222 -0
  47. package/dist/nodes/Hudu/resources/assetCustomField/assetCustomField.handler.js.map +1 -0
  48. package/dist/nodes/Hudu/resources/assetCustomField/assetCustomField.handler.ts +293 -0
  49. package/dist/nodes/Hudu/resources/assetCustomField/assetCustomField.types.js +3 -0
  50. package/dist/nodes/Hudu/resources/assetCustomField/assetCustomField.types.js.map +1 -0
  51. package/dist/nodes/Hudu/resources/assetCustomField/assetCustomField.types.ts +1 -0
  52. package/dist/nodes/Hudu/resources/assetLinkField/assetLinkField.handler.js +262 -0
  53. package/dist/nodes/Hudu/resources/assetLinkField/assetLinkField.handler.js.map +1 -0
  54. package/dist/nodes/Hudu/resources/assetLinkField/assetLinkField.handler.ts +363 -0
  55. package/dist/nodes/Hudu/resources/assetLinkField/assetLinkField.types.js +3 -0
  56. package/dist/nodes/Hudu/resources/assetLinkField/assetLinkField.types.js.map +1 -0
  57. package/dist/nodes/Hudu/resources/assetLinkField/assetLinkField.types.ts +1 -0
  58. package/dist/nodes/Hudu/resources/assetStandardField/assetStandardField.handler.js +93 -0
  59. package/dist/nodes/Hudu/resources/assetStandardField/assetStandardField.handler.js.map +1 -0
  60. package/dist/nodes/Hudu/resources/assetStandardField/assetStandardField.handler.ts +141 -0
  61. package/dist/nodes/Hudu/resources/assetStandardField/assetStandardField.types.js +3 -0
  62. package/dist/nodes/Hudu/resources/assetStandardField/assetStandardField.types.js.map +1 -0
  63. package/dist/nodes/Hudu/resources/assetStandardField/assetStandardField.types.ts +1 -0
  64. package/dist/nodes/Hudu/resources/assets/assets.handler.js +103 -216
  65. package/dist/nodes/Hudu/resources/assets/assets.handler.js.map +1 -1
  66. package/dist/nodes/Hudu/resources/assets/assets.handler.ts +234 -423
  67. package/dist/nodes/Hudu/resources/index.js +6 -0
  68. package/dist/nodes/Hudu/resources/index.js.map +1 -1
  69. package/dist/nodes/Hudu/resources/index.ts +12 -0
  70. package/dist/nodes/Hudu/resources/public_photos/public_photos.handler.js +62 -4
  71. package/dist/nodes/Hudu/resources/public_photos/public_photos.handler.js.map +1 -1
  72. package/dist/nodes/Hudu/resources/public_photos/public_photos.handler.ts +153 -69
  73. package/dist/nodes/Hudu/resources/public_photos/public_photos.types.ts +1 -1
  74. package/dist/nodes/Hudu/utils/constants.js +20 -1
  75. package/dist/nodes/Hudu/utils/constants.js.map +1 -1
  76. package/dist/nodes/Hudu/utils/constants.ts +23 -0
  77. package/dist/nodes/Hudu/utils/debugConfig.js +4 -3
  78. package/dist/nodes/Hudu/utils/debugConfig.js.map +1 -1
  79. package/dist/nodes/Hudu/utils/debugConfig.ts +8 -4
  80. package/dist/nodes/Hudu/utils/formatters.js +22 -1
  81. package/dist/nodes/Hudu/utils/formatters.js.map +1 -1
  82. package/dist/nodes/Hudu/utils/formatters.ts +34 -0
  83. package/dist/nodes/Hudu/utils/operations/getCompanyIdForAsset.js +23 -0
  84. package/dist/nodes/Hudu/utils/operations/getCompanyIdForAsset.js.map +1 -0
  85. package/dist/nodes/Hudu/utils/operations/getCompanyIdForAsset.ts +33 -0
  86. package/dist/nodes/Hudu/utils/requestUtils.js +10 -3
  87. package/dist/nodes/Hudu/utils/requestUtils.js.map +1 -1
  88. package/dist/nodes/Hudu/utils/requestUtils.ts +11 -4
  89. package/package.json +87 -87
  90. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetTagFields.js +0 -124
  91. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetTagFields.js.map +0 -1
  92. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetTagFields.ts +0 -183
  93. package/dist/nodes/Hudu/optionLoaders/assets/getAssetLayoutId.js +0 -47
  94. package/dist/nodes/Hudu/optionLoaders/assets/getAssetLayoutId.js.map +0 -1
  95. package/dist/nodes/Hudu/optionLoaders/assets/getAssetLayoutId.ts +0 -78
  96. package/dist/nodes/Hudu/resources/assets/getManyAsAssetLinks.handler.js +0 -15
  97. package/dist/nodes/Hudu/resources/assets/getManyAsAssetLinks.handler.js.map +0 -1
  98. package/dist/nodes/Hudu/resources/assets/getManyAsAssetLinks.handler.ts +0 -18
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # n8n-nodes-hudu
2
- This community node enables seamless integration with Hudu documentation platform in your n8n workflows, allowing you to automate and manage your IT documentation tasks.
2
+ This community node enables seamless integration with the Hudu documentation platform in your n8n workflows, allowing you to automate and manage your IT documentation tasks.
3
3
 
4
4
  ![n8n-nodes-hudu](https://img.shields.io/badge/n8n--nodes--hudu-latest-blue)
5
5
  ![License](https://img.shields.io/badge/license-MIT-green)
@@ -8,57 +8,25 @@ This community node enables seamless integration with Hudu documentation platfor
8
8
 
9
9
  [![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-Support-yellow.svg)](https://buymeacoffee.com/msoukhomlinov)
10
10
 
11
+ ## What's New in 1.3.5 (2025-05-27)
12
+
13
+ - The `Lists` and `List Options` resources are now managed as separate, distinct resources, each with their own full set of CRUD operations for improved clarity and flexibility. This change allows you to manage lists themselves and the items within those lists independently.
14
+ - Management of asset fields is now performed via three new dedicated resources: `Asset Standard Field`, `Asset Custom Field`, and `Asset Link Field`. Field-level operations (get/update) are no longer handled via the main Asset resource, but through these new resources for improved clarity and modularity.
15
+ - **Public Photos resource improvements:**
16
+ - Filter fields (`Record Type Filter` and `Record ID Filter`) are now grouped in a single optional "Filter" fixed collection for the Get Many operation, improving UI consistency and usability.
17
+ - The Get by ID operation now fetches public photos page by page, checking each page for the requested ID and returning as soon as it is found. This is much more efficient for large datasets.
18
+ - Documentation and type definitions for Public Photos have been updated for clarity and alignment with the API.
19
+
11
20
  ## Recent Changes
12
21
 
13
22
  ### [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
23
  - Enhanced website operations with full field support, including new email security fields
24
+ - Added full CRUD support for VLAN Zones and VLAN resources (new in Hudu API v2.37)
17
25
  - Fixed Asset Link Field Selector not loading properly in update operations
18
26
 
19
27
  > **Note:** Some features in this version require Hudu API v2.37.0 to function properly.
20
28
 
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
-
30
- ### [1.3.1] - 2025-04-21
31
- - Aligned package general content such as README and documentation
32
-
33
- ### [1.3.0] - 2025-03-20
34
- - Fixed missing company_id field in asset delete, archive, and unarchive operations
35
-
36
- ### [1.2.9] - 2025-01-25
37
- - Improved Asset operations with enhanced UI, custom asset tags support, and optimised asset creation/update
38
- - Added streamlined workflow for using asset data between operations
39
-
40
- ### [1.2.8] - 2025-01-21
41
- - Fixed asset passwords create/update operations with required fields and enhanced validation
42
- - Improved field validation and error handling for asset password operations
43
-
44
- > **IMPORTANT**: When updating between versions, make sure to restart your n8n instance after the update. UI changes and new features are only picked up after a restart. The recommended update process is:
45
-
46
- This n8n community node enables the integration of Hudu within your n8n workflows.
47
-
48
- [Hudu](https://www.hudu.com/) is a modern documentation platform for IT.
49
-
50
- [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
51
-
52
- This node was built against Hudu v2.34.4. Future versions of Hudu may not be 100% compatible without node updates.
53
-
54
- [Installation](#installation)
55
- [Credentials](#credentials)
56
- [Features](#features)
57
- [Supported Resources & Operations](#supported-resources--operations)
58
- [Resources](#resources)
59
- [Contributing](#contributing)
60
- [Support](#support)
61
- [License](#license)
29
+ (For full change history, see [CHANGELOG.md](CHANGELOG.md))
62
30
 
63
31
  ## Installation
64
32
 
@@ -84,133 +52,97 @@ To use this node, you need to:
84
52
  - Date range filtering with preset options
85
53
  - Automatic type conversion and validation
86
54
  - Debug logging for troubleshooting
55
+ - **Full CRUD support for VLANs and VLAN Zones**
56
+ - **Websites resource now supports all fields, including new email security options**
87
57
 
88
58
  ## Supported Resources & Operations
89
59
 
90
60
  ### Activity Logs
91
-
92
61
  - Get all activity logs with filtering support
93
62
  - Filter by user, action, and date range
94
63
 
95
64
  ### API Info
96
-
97
65
  - Get API information and version details
98
66
 
99
67
  ### Articles
100
-
101
- - Create articles (name required, with optional content, company, folder, and sharing settings)
102
- - Update articles with flexible field updates
103
- - Archive and unarchive articles
104
- - Delete articles
105
- - Get single article details
106
- - List all articles with comprehensive filtering:
107
- - Company ID
108
- - Draft status
109
- - Sharing status
110
- - Folder ID
111
- - Name exact match
112
- - Fuzzy search
113
- - Updated date range
68
+ - Create, update, archive, unarchive, delete, and retrieve articles
69
+ - List all articles with comprehensive filtering (company, draft, sharing, folder, name, fuzzy search, updated date range)
114
70
  - Get article version history
115
71
 
116
- ### Asset Layouts
72
+ ### Asset
73
+ - **Manage core asset lifecycle & properties**: Create, retrieve, update core details, archive, unarchive, move layout, and delete assets
74
+ - Link assets to companies
75
+ - Get single asset details, including all its field values
76
+ - List all assets with enhanced filtering (e.g., by company, update date, archived status)
117
77
 
78
+ ### Asset Layouts
118
79
  - Create and manage asset layout templates
119
80
  - Get layout fields and configurations
120
81
  - 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.
82
+ - **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
122
83
 
123
- ### Asset Passwords
84
+ ### Asset Layout Fields
85
+ - Manage individual fields within asset layouts
124
86
 
87
+ ### Asset Passwords
125
88
  - Create and manage asset-related passwords
126
89
  - Link passwords to assets and companies
127
90
  - Filter by company and resource types
128
91
 
129
- ### Assets
130
-
131
- - Create assets with custom fields and tags
132
- - Link assets to companies
133
- - Update asset details
134
- - Archive/unarchive assets
135
- - Delete assets
136
- - Get single asset details
137
- - List all assets with enhanced filtering support:
138
- - Company association
139
- - Updated date range
140
- - Custom field values
141
- - **Return as Asset Links** option for custom tag support (now available for both Get and Get Many)
142
- - Optimised asset creation and update operations for both standard and custom fields
143
- - Enhanced UI with dynamic field validation and intuitive field descriptions
144
- - Streamlined workflow for using asset data between operations
145
- - **Asset link/tag fields are serialised as JSON for API compatibility**
146
-
147
- Note: Custom field support has some limitations:
148
- - Legacy list fields require manual value entry (picklist conversion not implemented due to Hudu deprecating this feature)
149
- - New list field sources not yet available via Hudu API - requires manual ID configuration
150
-
151
92
  ### Cards
152
-
153
93
  - Lookup cards by integration
154
94
  - Jump to card functionality
155
95
  - Filter by integration type and slug
156
96
 
157
97
  ### Companies
158
-
159
- - Create companies with detailed information
160
- - Update company details
161
- - Delete companies
162
- - Get single company information
98
+ - Create, update, delete, and retrieve companies
163
99
  - List all companies with filtering support
164
100
  - Jump to company by integration
165
101
 
166
102
  ### Expirations
167
-
168
- - Get all expirations with comprehensive filtering:
169
- - Company ID
170
- - Expiration type
171
- - Resource ID
172
- - Resource type
173
- - Date ranges
103
+ - Get all expirations with comprehensive filtering (company, expiration type, resource ID/type, date ranges)
174
104
 
175
105
  ### Folders
176
-
177
106
  - Create and manage document folders
178
107
  - Support for nested folder structures
179
108
  - Filter by parent folder
180
109
  - Track child folder status
181
110
 
182
111
  ### IP Addresses
183
-
184
112
  - Track and manage IP addresses
185
113
  - Link to companies and networks
186
114
  - Filter by company and network
187
115
 
188
- ### Magic Dash
116
+ ### Lists
117
+ - Create, update, retrieve, and delete lists
118
+ - Use this resource to manage the lists themselves
119
+ - Filter lists by name or query
189
120
 
121
+ ### List Options
122
+ - Create, update, retrieve, and delete list items within a specific list
123
+ - Use this resource to manage the items/options of a list
124
+
125
+ ### Magic Dash
190
126
  - Access Magic Dash functionality
191
127
  - Filter by company and title
192
128
  - Delete by title and company name
193
129
 
194
130
  ### Matchers
195
-
196
131
  - Configure and manage integration matchers
197
132
  - Filter by match status and company
198
133
  - Support for sync identifiers
199
134
 
200
135
  ### Networks
201
-
202
136
  - Create and manage network information
203
137
  - Link to companies
204
138
  - Filter by company and attributes
205
139
 
206
140
  ### Password Folders
207
-
208
- - Create and organize password folders
141
+ - Create and organise password folders
209
142
  - Support for folder hierarchy
210
143
  - Filter by parent folder
211
144
 
212
145
  ### Procedures
213
-
214
146
  - Create and manage procedures
215
147
  - Create from templates
216
148
  - Duplicate existing procedures
@@ -218,22 +150,29 @@ Note: Custom field support has some limitations:
218
150
  - Track task completion
219
151
 
220
152
  ### Relations
221
-
222
153
  - Create and manage resource relationships
223
154
  - Support for various resource types
224
155
  - Filter by relationship types and directions
225
156
 
226
157
  ### Users
227
-
228
158
  - Get user information
229
159
  - List all users
230
160
  - Filter by role and status
231
161
 
232
- ### Websites
162
+ ### VLANs
163
+ - Full CRUD support for VLANs, including filtering by company, name, and VLAN ID
164
+
165
+ ### VLAN Zones
166
+ - Full CRUD support for VLAN Zones, including filtering by company, name, archive status, and date ranges
167
+
168
+ ### Uploads
169
+ - Manage file uploads
233
170
 
171
+ ### Websites
234
172
  - Manage website records
235
173
  - Link to companies
236
174
  - Filter by company and status
175
+ - **All fields supported, including new email security fields:** `enable_dmarc_tracking`, `enable_dkim_tracking`, `enable_spf_tracking`, and more
237
176
 
238
177
  ## Resources
239
178
 
@@ -252,7 +191,6 @@ Contributions are welcome! If you'd like to contribute to this project:
252
191
  5. Open a Pull Request
253
192
 
254
193
  Please ensure your PR:
255
-
256
194
  - Clearly describes the changes
257
195
  - Includes any relevant documentation updates
258
196
  - Follows the existing code style
@@ -29,15 +29,13 @@ const debugConfig_1 = require("./utils/debugConfig");
29
29
  const descriptions = __importStar(require("./descriptions"));
30
30
  const resources_1 = require("./descriptions/resources");
31
31
  const resources = __importStar(require("./resources"));
32
- const users_1 = require("./optionLoaders/users");
33
- const companies_1 = require("./optionLoaders/companies");
34
- const asset_layouts_1 = require("./optionLoaders/asset_layouts");
35
- const assets_1 = require("./optionLoaders/assets");
36
- const getAssetLayoutId_1 = require("./optionLoaders/assets/getAssetLayoutId");
32
+ const optionLoaders = __importStar(require("./optionLoaders"));
33
+ const getAssets_1 = require("./optionLoaders/assets/getAssets");
34
+ const getAssetsForCompany_1 = require("./optionLoaders/assets/getAssetsForCompany");
35
+ const getAssetCustomFields_1 = require("./optionLoaders/assets/getAssetCustomFields");
37
36
  const getAssetLayoutFields_1 = require("./optionLoaders/asset_layouts/getAssetLayoutFields");
38
- const getCustomFieldsLayoutFields_1 = require("./optionLoaders/asset_layouts/getCustomFieldsLayoutFields");
39
- const getAssetTagFields_1 = require("./optionLoaders/asset_layouts/getAssetTagFields");
40
- const lists_1 = require("./optionLoaders/lists");
37
+ const getAssetLinkFields_1 = require("./optionLoaders/asset_layouts/getAssetLinkFields");
38
+ const getLinkableAssets_1 = require("./optionLoaders/assets/getLinkableAssets");
41
39
  class Hudu {
42
40
  constructor() {
43
41
  this.description = {
@@ -106,10 +104,13 @@ class Hudu {
106
104
  ...descriptions.activityLogsFields,
107
105
  ...descriptions.apiInfoFields,
108
106
  ...descriptions.articlesFields,
107
+ ...descriptions.assetCustomFieldProperties,
109
108
  ...descriptions.assetLayoutFields,
110
109
  ...descriptions.assetLayoutFieldFields,
110
+ ...descriptions.assetLinkFieldProperties,
111
111
  ...descriptions.assetPasswordFields,
112
112
  ...descriptions.assetsFields,
113
+ ...descriptions.assetStandardFieldDescription,
113
114
  ...descriptions.cardsFields,
114
115
  ...descriptions.companiesFields,
115
116
  ...descriptions.expirationsFields,
@@ -136,19 +137,43 @@ class Hudu {
136
137
  };
137
138
  this.methods = {
138
139
  loadOptions: {
139
- getUsers: users_1.getUsers,
140
- getCompanies: companies_1.getCompanies,
141
- getAssetLayouts: asset_layouts_1.getAssetLayouts,
142
- getAssetLayoutFields: getAssetLayoutFields_1.getAssetLayoutFields,
143
- getAssetLayoutFieldValues: asset_layouts_1.getAssetLayoutFieldValues,
144
- getAssets: assets_1.getAssets,
145
- getAssetLayoutId: getAssetLayoutId_1.getAssetLayoutId,
146
- getCustomFieldsLayoutFields: getCustomFieldsLayoutFields_1.getCustomFieldsLayoutFields,
147
- getLists: lists_1.getLists,
140
+ getUsers: optionLoaders.getUsers,
141
+ getCompanies: optionLoaders.getCompanies,
142
+ getAssetLayouts: optionLoaders.getAssetLayouts,
143
+ getAssetLayoutFields: optionLoaders.getAssetLayoutFields,
144
+ getAssetLayoutFieldValues: optionLoaders.getAssetLayoutFieldValues,
145
+ getAssets: getAssets_1.getAssets,
146
+ getAssetsForCompany: getAssetsForCompany_1.getAssetsForCompany,
147
+ getCustomFieldsLayoutFields: optionLoaders.getCustomFieldsLayoutFields,
148
+ getLists: optionLoaders.getLists,
149
+ getAssetCustomFields: getAssetCustomFields_1.getAssetCustomFields,
150
+ getAssetLinkFields: getAssetLinkFields_1.getAssetLinkFields,
151
+ getLinkableAssets: getLinkableAssets_1.getLinkableAssets,
152
+ async getStandardAssetFields() {
153
+ return [
154
+ { name: 'Name', value: 'name' },
155
+ { name: 'Archived', value: 'archived' },
156
+ { name: 'Primary Serial', value: 'primary_serial' },
157
+ { name: 'Primary Model', value: 'primary_model' },
158
+ { name: 'Primary Manufacturer', value: 'primary_manufacturer' },
159
+ { name: 'Primary Mail', value: 'primary_mail' },
160
+ ];
161
+ },
162
+ async getBinaryProperties() {
163
+ var _a, _b;
164
+ const items = ((_b = (_a = this).getInputData) === null || _b === void 0 ? void 0 : _b.call(_a)) || [];
165
+ const item = items[0];
166
+ if (!item || !item.binary) {
167
+ return [];
168
+ }
169
+ return Object.keys(item.binary).map((key) => ({
170
+ name: key,
171
+ value: key,
172
+ }));
173
+ },
148
174
  },
149
175
  resourceMapping: {
150
176
  mapAssetLayoutFieldsForResource: getAssetLayoutFields_1.mapAssetLayoutFieldsForResource,
151
- mapAssetTagFieldsForResource: getAssetTagFields_1.mapAssetTagFieldsForResource,
152
177
  },
153
178
  };
154
179
  }
@@ -195,6 +220,15 @@ class Hudu {
195
220
  case 'assets':
196
221
  responseData = await resources.handleAssetsOperation.call(this, operation, i);
197
222
  break;
223
+ case 'assetStandardField':
224
+ responseData = await resources.handleAssetStandardFieldOperation.call(this, operation, i);
225
+ break;
226
+ case 'assetLinkField':
227
+ responseData = await resources.handleAssetLinkFieldOperation.call(this, operation, i);
228
+ break;
229
+ case 'assetCustomField':
230
+ responseData = await resources.handleAssetCustomFieldOperation.call(this, operation, i);
231
+ break;
198
232
  case 'cards':
199
233
  responseData = await resources.handleCardOperation.call(this, operation, i);
200
234
  break;
@@ -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,8EAA2E;AAC3E,6FAG4D;AAC5D,2GAAwG;AACxG,uFAA+F;AAC/F,iDAAiD;AAEjD,MAAa,IAAI;IAAjB;QACE,gBAAW,GAAyB;YAClC,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE;gBACR,IAAI,EAAE,MAAM;aACb;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,QAAyB;YAEjC,OAAO,EAAE,QAAyB;YAElC,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,SAAS;oBACf,QAAQ,EAAE,IAAI;iBACf;aACF;YACD,KAAK,EAAE;gBACL,UAAU,EAAE,CAAC,eAAe,CAAC;gBAC7B,aAAa,EAAE;oBACb,aAAa,EAAE,CAAC,eAAe,CAAC;iBACjC;aACF;YACD,eAAe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