n8n-nodes-hudu 1.3.4 → 1.4.0
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 +50 -110
- package/dist/nodes/Hudu/Hudu.node.js +36 -18
- package/dist/nodes/Hudu/Hudu.node.js.map +1 -1
- package/dist/nodes/Hudu/Hudu.node.ts +445 -429
- package/dist/nodes/Hudu/descriptions/asset_layouts.description.js +99 -10
- package/dist/nodes/Hudu/descriptions/asset_layouts.description.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/asset_layouts.description.ts +99 -10
- package/dist/nodes/Hudu/descriptions/assets.description.js +38 -500
- package/dist/nodes/Hudu/descriptions/assets.description.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/assets.description.ts +511 -979
- package/dist/nodes/Hudu/descriptions/public_photos.description.js +51 -3
- package/dist/nodes/Hudu/descriptions/public_photos.description.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/public_photos.description.ts +51 -3
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFields.js +122 -70
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFields.js.map +1 -1
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFields.ts +290 -254
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/index.js +0 -1
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/index.js.map +1 -1
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/index.ts +0 -1
- package/dist/nodes/Hudu/optionLoaders/assets/getAssetsForCompany.js +45 -0
- package/dist/nodes/Hudu/optionLoaders/assets/getAssetsForCompany.js.map +1 -0
- package/dist/nodes/Hudu/optionLoaders/assets/getAssetsForCompany.ts +59 -0
- package/dist/nodes/Hudu/optionLoaders/assets/index.js +1 -0
- package/dist/nodes/Hudu/optionLoaders/assets/index.js.map +1 -1
- package/dist/nodes/Hudu/optionLoaders/assets/index.ts +2 -1
- package/dist/nodes/Hudu/optionLoaders/index.ts +4 -4
- package/dist/nodes/Hudu/resources/asset_layouts/asset_layouts.handler.js +11 -9
- 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 +13 -10
- package/dist/nodes/Hudu/resources/assets/assets.handler.js +165 -212
- package/dist/nodes/Hudu/resources/assets/assets.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/assets/assets.handler.ts +355 -423
- package/dist/nodes/Hudu/resources/assets/assets.types.ts +43 -43
- package/dist/nodes/Hudu/resources/public_photos/public_photos.handler.js +62 -4
- 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 +153 -69
- package/dist/nodes/Hudu/resources/public_photos/public_photos.types.ts +1 -1
- package/dist/nodes/Hudu/utils/assetFieldUtils.js +273 -0
- package/dist/nodes/Hudu/utils/assetFieldUtils.js.map +1 -0
- package/dist/nodes/Hudu/utils/assetFieldUtils.ts +437 -0
- package/dist/nodes/Hudu/utils/constants.js +21 -1
- package/dist/nodes/Hudu/utils/constants.js.map +1 -1
- package/dist/nodes/Hudu/utils/constants.ts +24 -0
- package/dist/nodes/Hudu/utils/debugConfig.js +11 -7
- package/dist/nodes/Hudu/utils/debugConfig.js.map +1 -1
- package/dist/nodes/Hudu/utils/debugConfig.ts +17 -8
- package/dist/nodes/Hudu/utils/errorParser.js +57 -0
- package/dist/nodes/Hudu/utils/errorParser.js.map +1 -0
- package/dist/nodes/Hudu/utils/errorParser.ts +90 -0
- package/dist/nodes/Hudu/utils/fieldErrorUtils.js +17 -0
- package/dist/nodes/Hudu/utils/fieldErrorUtils.js.map +1 -0
- package/dist/nodes/Hudu/utils/fieldErrorUtils.ts +57 -0
- package/dist/nodes/Hudu/utils/fieldTypeUtils.js +145 -0
- package/dist/nodes/Hudu/utils/fieldTypeUtils.js.map +1 -0
- package/dist/nodes/Hudu/utils/fieldTypeUtils.ts +220 -0
- package/dist/nodes/Hudu/utils/formatters.js +22 -1
- package/dist/nodes/Hudu/utils/formatters.js.map +1 -1
- package/dist/nodes/Hudu/utils/formatters.ts +34 -0
- package/dist/nodes/Hudu/utils/index.js +3 -0
- package/dist/nodes/Hudu/utils/index.js.map +1 -1
- package/dist/nodes/Hudu/utils/index.ts +25 -19
- package/dist/nodes/Hudu/utils/operations/getCompanyIdForAsset.js +23 -0
- package/dist/nodes/Hudu/utils/operations/getCompanyIdForAsset.js.map +1 -0
- package/dist/nodes/Hudu/utils/operations/getCompanyIdForAsset.ts +33 -0
- package/dist/nodes/Hudu/utils/requestUtils.js +81 -27
- package/dist/nodes/Hudu/utils/requestUtils.js.map +1 -1
- package/dist/nodes/Hudu/utils/requestUtils.ts +99 -30
- package/package.json +87 -87
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetTagFields.js +0 -124
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetTagFields.js.map +0 -1
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetTagFields.ts +0 -183
- package/dist/nodes/Hudu/optionLoaders/assets/getAssetLayoutId.js +0 -47
- package/dist/nodes/Hudu/optionLoaders/assets/getAssetLayoutId.js.map +0 -1
- package/dist/nodes/Hudu/optionLoaders/assets/getAssetLayoutId.ts +0 -78
- package/dist/nodes/Hudu/resources/assets/getManyAsAssetLinks.handler.js +0 -15
- package/dist/nodes/Hudu/resources/assets/getManyAsAssetLinks.handler.js.map +0 -1
- 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
|

|
|
5
5
|

|
|
@@ -10,55 +10,28 @@ This community node enables seamless integration with Hudu documentation platfor
|
|
|
10
10
|
|
|
11
11
|
## Recent Changes
|
|
12
12
|
|
|
13
|
-
### [1.
|
|
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
|
-
|
|
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
|
|
13
|
+
### [1.4.0] - 2025-06-11
|
|
43
14
|
|
|
44
|
-
|
|
15
|
+
- **Major**: Enhanced `Assets` and `Asset Layouts` resources to fully support all API operations, improving functionality and resolving previous inconsistencies.
|
|
16
|
+
- **Changed**: Reverted the separation of asset field management. Operations for standard, custom, and link fields are now handled directly within the `Asset` resource's `update` operation via the unified resource mapper.
|
|
17
|
+
- **Fix**: Corrected an issue with the Asset Layout update operation that was causing a 500 Internal Server Error.
|
|
45
18
|
|
|
46
|
-
|
|
19
|
+
### [1.3.5] - 2025-05-27
|
|
47
20
|
|
|
48
|
-
|
|
21
|
+
- 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.
|
|
22
|
+
- **Public Photos resource improvements:**
|
|
23
|
+
- 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.
|
|
24
|
+
- 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.
|
|
25
|
+
- Documentation and type definitions for Public Photos have been updated for clarity and alignment with the API.
|
|
49
26
|
|
|
50
|
-
|
|
27
|
+
### [1.3.4] - 2025-05-17
|
|
28
|
+
- Enhanced website operations with full field support, including new email security fields
|
|
29
|
+
- Added full CRUD support for VLAN Zones and VLAN resources (new in Hudu API v2.37)
|
|
30
|
+
- Fixed Asset Link Field Selector not loading properly in update operations
|
|
51
31
|
|
|
52
|
-
|
|
32
|
+
> **Note:** Some features in this version require Hudu API v2.37.0 to function properly.
|
|
53
33
|
|
|
54
|
-
[
|
|
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)
|
|
34
|
+
(For full change history, see [CHANGELOG.md](CHANGELOG.md))
|
|
62
35
|
|
|
63
36
|
## Installation
|
|
64
37
|
|
|
@@ -84,133 +57,94 @@ To use this node, you need to:
|
|
|
84
57
|
- Date range filtering with preset options
|
|
85
58
|
- Automatic type conversion and validation
|
|
86
59
|
- Debug logging for troubleshooting
|
|
60
|
+
- **Full CRUD support for VLANs and VLAN Zones**
|
|
61
|
+
- **Websites resource now supports all fields, including new email security options**
|
|
87
62
|
|
|
88
63
|
## Supported Resources & Operations
|
|
89
64
|
|
|
90
65
|
### Activity Logs
|
|
91
|
-
|
|
92
66
|
- Get all activity logs with filtering support
|
|
93
67
|
- Filter by user, action, and date range
|
|
94
68
|
|
|
95
69
|
### API Info
|
|
96
|
-
|
|
97
70
|
- Get API information and version details
|
|
98
71
|
|
|
99
72
|
### Articles
|
|
100
|
-
|
|
101
|
-
-
|
|
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
|
|
73
|
+
- Create, update, archive, unarchive, delete, and retrieve articles
|
|
74
|
+
- List all articles with comprehensive filtering (company, draft, sharing, folder, name, fuzzy search, updated date range)
|
|
114
75
|
- Get article version history
|
|
115
76
|
|
|
116
|
-
### Asset
|
|
77
|
+
### Asset
|
|
78
|
+
- **Manage core asset lifecycle & properties**: Create, retrieve, update core details, archive, unarchive, move layout, and delete assets
|
|
79
|
+
- Link assets to companies
|
|
80
|
+
- Get single asset details, including all its field values
|
|
81
|
+
- List all assets with enhanced filtering (e.g., by company, update date, archived status)
|
|
117
82
|
|
|
83
|
+
### Asset Layouts
|
|
118
84
|
- Create and manage asset layout templates
|
|
119
85
|
- Get layout fields and configurations
|
|
120
86
|
- 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
|
|
87
|
+
- **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
88
|
|
|
123
89
|
### Asset Passwords
|
|
124
|
-
|
|
125
90
|
- Create and manage asset-related passwords
|
|
126
91
|
- Link passwords to assets and companies
|
|
127
92
|
- Filter by company and resource types
|
|
128
93
|
|
|
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
94
|
### Cards
|
|
152
|
-
|
|
153
95
|
- Lookup cards by integration
|
|
154
96
|
- Jump to card functionality
|
|
155
97
|
- Filter by integration type and slug
|
|
156
98
|
|
|
157
99
|
### Companies
|
|
158
|
-
|
|
159
|
-
- Create companies with detailed information
|
|
160
|
-
- Update company details
|
|
161
|
-
- Delete companies
|
|
162
|
-
- Get single company information
|
|
100
|
+
- Create, update, delete, and retrieve companies
|
|
163
101
|
- List all companies with filtering support
|
|
164
102
|
- Jump to company by integration
|
|
165
103
|
|
|
166
104
|
### Expirations
|
|
167
|
-
|
|
168
|
-
- Get all expirations with comprehensive filtering:
|
|
169
|
-
- Company ID
|
|
170
|
-
- Expiration type
|
|
171
|
-
- Resource ID
|
|
172
|
-
- Resource type
|
|
173
|
-
- Date ranges
|
|
105
|
+
- Get all expirations with comprehensive filtering (company, expiration type, resource ID/type, date ranges)
|
|
174
106
|
|
|
175
107
|
### Folders
|
|
176
|
-
|
|
177
108
|
- Create and manage document folders
|
|
178
109
|
- Support for nested folder structures
|
|
179
110
|
- Filter by parent folder
|
|
180
111
|
- Track child folder status
|
|
181
112
|
|
|
182
113
|
### IP Addresses
|
|
183
|
-
|
|
184
114
|
- Track and manage IP addresses
|
|
185
115
|
- Link to companies and networks
|
|
186
116
|
- Filter by company and network
|
|
187
117
|
|
|
188
|
-
###
|
|
118
|
+
### Lists
|
|
119
|
+
- Create, update, retrieve, and delete lists
|
|
120
|
+
- Use this resource to manage the lists themselves
|
|
121
|
+
- Filter lists by name or query
|
|
122
|
+
|
|
123
|
+
### List Options
|
|
124
|
+
- Create, update, retrieve, and delete list items within a specific list
|
|
125
|
+
- Use this resource to manage the items/options of a list
|
|
189
126
|
|
|
127
|
+
### Magic Dash
|
|
190
128
|
- Access Magic Dash functionality
|
|
191
129
|
- Filter by company and title
|
|
192
130
|
- Delete by title and company name
|
|
193
131
|
|
|
194
132
|
### Matchers
|
|
195
|
-
|
|
196
133
|
- Configure and manage integration matchers
|
|
197
134
|
- Filter by match status and company
|
|
198
135
|
- Support for sync identifiers
|
|
199
136
|
|
|
200
137
|
### Networks
|
|
201
|
-
|
|
202
138
|
- Create and manage network information
|
|
203
139
|
- Link to companies
|
|
204
140
|
- Filter by company and attributes
|
|
205
141
|
|
|
206
142
|
### Password Folders
|
|
207
|
-
|
|
208
|
-
- Create and organize password folders
|
|
143
|
+
- Create and organise password folders
|
|
209
144
|
- Support for folder hierarchy
|
|
210
145
|
- Filter by parent folder
|
|
211
146
|
|
|
212
147
|
### Procedures
|
|
213
|
-
|
|
214
148
|
- Create and manage procedures
|
|
215
149
|
- Create from templates
|
|
216
150
|
- Duplicate existing procedures
|
|
@@ -218,22 +152,29 @@ Note: Custom field support has some limitations:
|
|
|
218
152
|
- Track task completion
|
|
219
153
|
|
|
220
154
|
### Relations
|
|
221
|
-
|
|
222
155
|
- Create and manage resource relationships
|
|
223
156
|
- Support for various resource types
|
|
224
157
|
- Filter by relationship types and directions
|
|
225
158
|
|
|
226
159
|
### Users
|
|
227
|
-
|
|
228
160
|
- Get user information
|
|
229
161
|
- List all users
|
|
230
162
|
- Filter by role and status
|
|
231
163
|
|
|
232
|
-
###
|
|
164
|
+
### VLANs
|
|
165
|
+
- Full CRUD support for VLANs, including filtering by company, name, and VLAN ID
|
|
166
|
+
|
|
167
|
+
### VLAN Zones
|
|
168
|
+
- Full CRUD support for VLAN Zones, including filtering by company, name, archive status, and date ranges
|
|
169
|
+
|
|
170
|
+
### Uploads
|
|
171
|
+
- Manage file uploads
|
|
233
172
|
|
|
173
|
+
### Websites
|
|
234
174
|
- Manage website records
|
|
235
175
|
- Link to companies
|
|
236
176
|
- Filter by company and status
|
|
177
|
+
- **All fields supported, including new email security fields:** `enable_dmarc_tracking`, `enable_dkim_tracking`, `enable_spf_tracking`, and more
|
|
237
178
|
|
|
238
179
|
## Resources
|
|
239
180
|
|
|
@@ -252,7 +193,6 @@ Contributions are welcome! If you'd like to contribute to this project:
|
|
|
252
193
|
5. Open a Pull Request
|
|
253
194
|
|
|
254
195
|
Please ensure your PR:
|
|
255
|
-
|
|
256
196
|
- Clearly describes the changes
|
|
257
197
|
- Includes any relevant documentation updates
|
|
258
198
|
- Follows the existing code style
|
|
@@ -29,15 +29,10 @@ 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
|
|
33
|
-
const
|
|
34
|
-
const
|
|
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");
|
|
37
35
|
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");
|
|
41
36
|
class Hudu {
|
|
42
37
|
constructor() {
|
|
43
38
|
this.description = {
|
|
@@ -107,6 +102,8 @@ class Hudu {
|
|
|
107
102
|
...descriptions.apiInfoFields,
|
|
108
103
|
...descriptions.articlesFields,
|
|
109
104
|
...descriptions.assetLayoutFields,
|
|
105
|
+
...descriptions.assetLayoutUpdateFields,
|
|
106
|
+
...descriptions.assetLayoutManageFields,
|
|
110
107
|
...descriptions.assetLayoutFieldFields,
|
|
111
108
|
...descriptions.assetPasswordFields,
|
|
112
109
|
...descriptions.assetsFields,
|
|
@@ -136,19 +133,40 @@ class Hudu {
|
|
|
136
133
|
};
|
|
137
134
|
this.methods = {
|
|
138
135
|
loadOptions: {
|
|
139
|
-
getUsers:
|
|
140
|
-
getCompanies:
|
|
141
|
-
getAssetLayouts:
|
|
142
|
-
getAssetLayoutFields:
|
|
143
|
-
getAssetLayoutFieldValues:
|
|
144
|
-
getAssets:
|
|
145
|
-
|
|
146
|
-
getCustomFieldsLayoutFields:
|
|
147
|
-
getLists:
|
|
136
|
+
getUsers: optionLoaders.getUsers,
|
|
137
|
+
getCompanies: optionLoaders.getCompanies,
|
|
138
|
+
getAssetLayouts: optionLoaders.getAssetLayouts,
|
|
139
|
+
getAssetLayoutFields: optionLoaders.getAssetLayoutFields,
|
|
140
|
+
getAssetLayoutFieldValues: optionLoaders.getAssetLayoutFieldValues,
|
|
141
|
+
getAssets: getAssets_1.getAssets,
|
|
142
|
+
getAssetsForCompany: getAssetsForCompany_1.getAssetsForCompany,
|
|
143
|
+
getCustomFieldsLayoutFields: optionLoaders.getCustomFieldsLayoutFields,
|
|
144
|
+
getLists: optionLoaders.getLists,
|
|
145
|
+
async getStandardAssetFields() {
|
|
146
|
+
return [
|
|
147
|
+
{ name: 'Name', value: 'name' },
|
|
148
|
+
{ name: 'Archived', value: 'archived' },
|
|
149
|
+
{ name: 'Primary Serial', value: 'primary_serial' },
|
|
150
|
+
{ name: 'Primary Model', value: 'primary_model' },
|
|
151
|
+
{ name: 'Primary Manufacturer', value: 'primary_manufacturer' },
|
|
152
|
+
{ name: 'Primary Mail', value: 'primary_mail' },
|
|
153
|
+
];
|
|
154
|
+
},
|
|
155
|
+
async getBinaryProperties() {
|
|
156
|
+
var _a, _b;
|
|
157
|
+
const items = ((_b = (_a = this).getInputData) === null || _b === void 0 ? void 0 : _b.call(_a)) || [];
|
|
158
|
+
const item = items[0];
|
|
159
|
+
if (!item || !item.binary) {
|
|
160
|
+
return [];
|
|
161
|
+
}
|
|
162
|
+
return Object.keys(item.binary).map((key) => ({
|
|
163
|
+
name: key,
|
|
164
|
+
value: key,
|
|
165
|
+
}));
|
|
166
|
+
},
|
|
148
167
|
},
|
|
149
168
|
resourceMapping: {
|
|
150
169
|
mapAssetLayoutFieldsForResource: getAssetLayoutFields_1.mapAssetLayoutFieldsForResource,
|
|
151
|
-
mapAssetTagFieldsForResource: getAssetTagFields_1.mapAssetTagFieldsForResource,
|
|
152
170
|
},
|
|
153
171
|
};
|
|
154
172
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hudu.node.js","sourceRoot":"","sources":["../../../../src/nodes/Hudu/Hudu.node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Hudu.node.js","sourceRoot":"","sources":["../../../../src/nodes/Hudu/Hudu.node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,+CAGsB;AACtB,qDAA6D;AAG7D,6DAA+C;AAC/C,wDAA4D;AAG5D,uDAAyC;AAGzC,+DAAiD;AACjD,gEAA6D;AAC7D,oFAAiF;AACjF,6FAAqG;AAErG,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,EAAE;gBACf,OAAO,EAAE,kCAAkC;gBAC3C,OAAO,EAAE;oBACP,WAAW,EAAE,0BAA0B;iBACxC;aACF;YACD,UAAU,EAAE;gBACV,4BAAgB;gBAEhB,GAAG,YAAY,CAAC,sBAAsB;gBACtC,GAAG,YAAY,CAAC,iBAAiB;gBACjC,GAAG,YAAY,CAAC,kBAAkB;gBAClC,GAAG,YAAY,CAAC,qBAAqB;gBACrC,GAAG,YAAY,CAAC,0BA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