n8n-nodes-hudu 1.0.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/LICENSE +21 -0
- package/README.md +139 -0
- package/dist/GenericFunctions.js +77 -0
- package/dist/GenericFunctions.js.map +1 -0
- package/dist/Hudu.node.js +326 -0
- package/dist/Hudu.node.js.map +1 -0
- package/dist/Hudu.node.json +18 -0
- package/dist/api-docs-V2.34.4.json +7278 -0
- package/dist/credentials/HuduApi.credentials.js +46 -0
- package/dist/credentials/HuduApi.credentials.js.map +1 -0
- package/dist/credentials/HuduApi.credentials.ts +48 -0
- package/dist/descriptions/ActivityLogsDescription.js +147 -0
- package/dist/descriptions/ActivityLogsDescription.js.map +1 -0
- package/dist/descriptions/CompaniesDescription.js +435 -0
- package/dist/descriptions/CompaniesDescription.js.map +1 -0
- package/dist/descriptions/CompanyDescription.js +435 -0
- package/dist/descriptions/CompanyDescription.js.map +1 -0
- package/dist/descriptions/index.js +10 -0
- package/dist/descriptions/index.js.map +1 -0
- package/dist/hudu.png +0 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/logo.png +0 -0
- package/dist/package-lock.json +11678 -0
- package/dist/package.json +74 -0
- package/dist/src/descriptions/activity_logs.description.js +160 -0
- package/dist/src/descriptions/activity_logs.description.js.map +1 -0
- package/dist/src/descriptions/api_info.description.js +27 -0
- package/dist/src/descriptions/api_info.description.js.map +1 -0
- package/dist/src/descriptions/articles.description.js +252 -0
- package/dist/src/descriptions/articles.description.js.map +1 -0
- package/dist/src/descriptions/asset_layouts.description.js +292 -0
- package/dist/src/descriptions/asset_layouts.description.js.map +1 -0
- package/dist/src/descriptions/asset_passwords.description.js +349 -0
- package/dist/src/descriptions/asset_passwords.description.js.map +1 -0
- package/dist/src/descriptions/assets.description.js +187 -0
- package/dist/src/descriptions/assets.description.js.map +1 -0
- package/dist/src/descriptions/cards.description.js +166 -0
- package/dist/src/descriptions/cards.description.js.map +1 -0
- package/dist/src/descriptions/companies.description.js +642 -0
- package/dist/src/descriptions/companies.description.js.map +1 -0
- package/dist/src/descriptions/expirations.description.js +128 -0
- package/dist/src/descriptions/expirations.description.js.map +1 -0
- package/dist/src/descriptions/folders.description.js +240 -0
- package/dist/src/descriptions/folders.description.js.map +1 -0
- package/dist/src/descriptions/index.js +41 -0
- package/dist/src/descriptions/index.js.map +1 -0
- package/dist/src/descriptions/ip_addresses.description.js +424 -0
- package/dist/src/descriptions/ip_addresses.description.js.map +1 -0
- package/dist/src/descriptions/magic_dash.description.js +234 -0
- package/dist/src/descriptions/magic_dash.description.js.map +1 -0
- package/dist/src/descriptions/matchers.description.js +185 -0
- package/dist/src/descriptions/matchers.description.js.map +1 -0
- package/dist/src/descriptions/networks.description.js +335 -0
- package/dist/src/descriptions/networks.description.js.map +1 -0
- package/dist/src/descriptions/passwordFolders.descriptions.js +114 -0
- package/dist/src/descriptions/passwordFolders.descriptions.js.map +1 -0
- package/dist/src/descriptions/procedure_tasks.description.js +326 -0
- package/dist/src/descriptions/procedure_tasks.description.js.map +1 -0
- package/dist/src/descriptions/procedures.description.js +422 -0
- package/dist/src/descriptions/procedures.description.js.map +1 -0
- package/dist/src/descriptions/public_photos.description.js +59 -0
- package/dist/src/descriptions/public_photos.description.js.map +1 -0
- package/dist/src/descriptions/rack_storage_items.description.js +335 -0
- package/dist/src/descriptions/rack_storage_items.description.js.map +1 -0
- package/dist/src/descriptions/rack_storages.description.js +287 -0
- package/dist/src/descriptions/rack_storages.description.js.map +1 -0
- package/dist/src/descriptions/relations.description.js +220 -0
- package/dist/src/descriptions/relations.description.js.map +1 -0
- package/dist/src/descriptions/uploads.description.js +85 -0
- package/dist/src/descriptions/uploads.description.js.map +1 -0
- package/dist/src/descriptions/users.description.js +173 -0
- package/dist/src/descriptions/users.description.js.map +1 -0
- package/dist/src/descriptions/websites.description.js +282 -0
- package/dist/src/descriptions/websites.description.js.map +1 -0
- package/dist/src/resources/activity_logs/activity_logs.handler.js +33 -0
- package/dist/src/resources/activity_logs/activity_logs.handler.js.map +1 -0
- package/dist/src/resources/activity_logs/activity_logs.types.js +3 -0
- package/dist/src/resources/activity_logs/activity_logs.types.js.map +1 -0
- package/dist/src/resources/api_info/api_info.handler.js +13 -0
- package/dist/src/resources/api_info/api_info.handler.js.map +1 -0
- package/dist/src/resources/api_info/api_info.types.js +3 -0
- package/dist/src/resources/api_info/api_info.types.js.map +1 -0
- package/dist/src/resources/articles/articles.handler.js +67 -0
- package/dist/src/resources/articles/articles.handler.js.map +1 -0
- package/dist/src/resources/articles/articles.types.js +3 -0
- package/dist/src/resources/articles/articles.types.js.map +1 -0
- package/dist/src/resources/asset_layouts/asset_layouts.handler.js +39 -0
- package/dist/src/resources/asset_layouts/asset_layouts.handler.js.map +1 -0
- package/dist/src/resources/asset_layouts/asset_layouts.types.js +3 -0
- package/dist/src/resources/asset_layouts/asset_layouts.types.js.map +1 -0
- package/dist/src/resources/asset_passwords/asset_passwords.handler.js +91 -0
- package/dist/src/resources/asset_passwords/asset_passwords.handler.js.map +1 -0
- package/dist/src/resources/asset_passwords/asset_passwords.types.js +3 -0
- package/dist/src/resources/asset_passwords/asset_passwords.types.js.map +1 -0
- package/dist/src/resources/assets/assets.handler.js +19 -0
- package/dist/src/resources/assets/assets.handler.js.map +1 -0
- package/dist/src/resources/assets/assets.types.js +3 -0
- package/dist/src/resources/assets/assets.types.js.map +1 -0
- package/dist/src/resources/cards/cards.handler.js +36 -0
- package/dist/src/resources/cards/cards.handler.js.map +1 -0
- package/dist/src/resources/cards/cards.types.js +3 -0
- package/dist/src/resources/cards/cards.types.js.map +1 -0
- package/dist/src/resources/companies/companies.handler.js +110 -0
- package/dist/src/resources/companies/companies.handler.js.map +1 -0
- package/dist/src/resources/companies/companies.types.js +3 -0
- package/dist/src/resources/companies/companies.types.js.map +1 -0
- package/dist/src/resources/company/company.handler.js +74 -0
- package/dist/src/resources/company/company.handler.js.map +1 -0
- package/dist/src/resources/company/company.types.js +3 -0
- package/dist/src/resources/company/company.types.js.map +1 -0
- package/dist/src/resources/expirations/expirations.handler.js +20 -0
- package/dist/src/resources/expirations/expirations.handler.js.map +1 -0
- package/dist/src/resources/expirations/expirations.types.js +3 -0
- package/dist/src/resources/expirations/expirations.types.js.map +1 -0
- package/dist/src/resources/folders/folders.handler.js +48 -0
- package/dist/src/resources/folders/folders.handler.js.map +1 -0
- package/dist/src/resources/folders/folders.types.js +3 -0
- package/dist/src/resources/folders/folders.types.js.map +1 -0
- package/dist/src/resources/ip_addresses/ip_addresses.handler.js +56 -0
- package/dist/src/resources/ip_addresses/ip_addresses.handler.js.map +1 -0
- package/dist/src/resources/ip_addresses/ip_addresses.types.js +3 -0
- package/dist/src/resources/ip_addresses/ip_addresses.types.js.map +1 -0
- package/dist/src/resources/magic_dash/magic_dash.handler.js +68 -0
- package/dist/src/resources/magic_dash/magic_dash.handler.js.map +1 -0
- package/dist/src/resources/magic_dash/magic_dash.types.js +3 -0
- package/dist/src/resources/magic_dash/magic_dash.types.js.map +1 -0
- package/dist/src/resources/matchers/matchers.handler.js +67 -0
- package/dist/src/resources/matchers/matchers.handler.js.map +1 -0
- package/dist/src/resources/matchers/matchers.types.js +3 -0
- package/dist/src/resources/matchers/matchers.types.js.map +1 -0
- package/dist/src/resources/networks/networks.handler.js +112 -0
- package/dist/src/resources/networks/networks.handler.js.map +1 -0
- package/dist/src/resources/networks/networks.types.js +3 -0
- package/dist/src/resources/networks/networks.types.js.map +1 -0
- package/dist/src/resources/password_folders/password_folders.handler.js +27 -0
- package/dist/src/resources/password_folders/password_folders.handler.js.map +1 -0
- package/dist/src/resources/password_folders/password_folders.types.js +3 -0
- package/dist/src/resources/password_folders/password_folders.types.js.map +1 -0
- package/dist/src/resources/procedure_tasks/procedure_tasks.handler.js +86 -0
- package/dist/src/resources/procedure_tasks/procedure_tasks.handler.js.map +1 -0
- package/dist/src/resources/procedure_tasks/procedure_tasks.types.js +3 -0
- package/dist/src/resources/procedure_tasks/procedure_tasks.types.js.map +1 -0
- package/dist/src/resources/procedures/procedures.handler.js +81 -0
- package/dist/src/resources/procedures/procedures.handler.js.map +1 -0
- package/dist/src/resources/procedures/procedures.types.js +3 -0
- package/dist/src/resources/procedures/procedures.types.js.map +1 -0
- package/dist/src/resources/public_photos/public_photos.handler.js +18 -0
- package/dist/src/resources/public_photos/public_photos.handler.js.map +1 -0
- package/dist/src/resources/public_photos/public_photos.types.js +3 -0
- package/dist/src/resources/public_photos/public_photos.types.js.map +1 -0
- package/dist/src/resources/rack_storage_items/rack_storage_items.handler.js +52 -0
- package/dist/src/resources/rack_storage_items/rack_storage_items.handler.js.map +1 -0
- package/dist/src/resources/rack_storage_items/rack_storage_items.types.js +3 -0
- package/dist/src/resources/rack_storage_items/rack_storage_items.types.js.map +1 -0
- package/dist/src/resources/rack_storages/rack_storages.handler.js +49 -0
- package/dist/src/resources/rack_storages/rack_storages.handler.js.map +1 -0
- package/dist/src/resources/rack_storages/rack_storages.types.js +3 -0
- package/dist/src/resources/rack_storages/rack_storages.types.js.map +1 -0
- package/dist/src/resources/relations/relations.handler.js +38 -0
- package/dist/src/resources/relations/relations.handler.js.map +1 -0
- package/dist/src/resources/relations/relations.types.js +3 -0
- package/dist/src/resources/relations/relations.types.js.map +1 -0
- package/dist/src/resources/uploads/uploads.handler.js +32 -0
- package/dist/src/resources/uploads/uploads.handler.js.map +1 -0
- package/dist/src/resources/uploads/uploads.types.js +3 -0
- package/dist/src/resources/uploads/uploads.types.js.map +1 -0
- package/dist/src/resources/users/users.handler.js +25 -0
- package/dist/src/resources/users/users.handler.js.map +1 -0
- package/dist/src/resources/users/users.types.js +3 -0
- package/dist/src/resources/users/users.types.js.map +1 -0
- package/dist/src/resources/websites/websites.handler.js +51 -0
- package/dist/src/resources/websites/websites.handler.js.map +1 -0
- package/dist/src/resources/websites/websites.types.js +3 -0
- package/dist/src/resources/websites/websites.types.js.map +1 -0
- package/dist/src/utils/GenericFunctions.js +208 -0
- package/dist/src/utils/GenericFunctions.js.map +1 -0
- package/dist/src/utils/constants.js +28 -0
- package/dist/src/utils/constants.js.map +1 -0
- package/dist/tsconfig.json +34 -0
- package/package.json +74 -0
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ipAddressFields = exports.ipAddressOperations = void 0;
|
|
4
|
+
const constants_1 = require("../utils/constants");
|
|
5
|
+
exports.ipAddressOperations = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Operation',
|
|
8
|
+
name: 'operation',
|
|
9
|
+
type: 'options',
|
|
10
|
+
noDataExpression: true,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['ipAddresses'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Get All',
|
|
19
|
+
value: 'getAll',
|
|
20
|
+
description: 'Retrieve a list of IP addresses',
|
|
21
|
+
action: 'Get all IP addresses',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'Create',
|
|
25
|
+
value: 'create',
|
|
26
|
+
description: 'Create a new IP address',
|
|
27
|
+
action: 'Create an IP address',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Delete',
|
|
31
|
+
value: 'delete',
|
|
32
|
+
description: 'Delete an IP address',
|
|
33
|
+
action: 'Delete an IP address',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Get',
|
|
37
|
+
value: 'get',
|
|
38
|
+
description: 'Retrieve a single IP address',
|
|
39
|
+
action: 'Get an IP address',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Update',
|
|
43
|
+
value: 'update',
|
|
44
|
+
description: 'Update an IP address',
|
|
45
|
+
action: 'Update an IP address',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
default: 'getAll',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
exports.ipAddressFields = [
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Return All (⚠️ Caution)',
|
|
54
|
+
name: 'returnAll',
|
|
55
|
+
type: 'boolean',
|
|
56
|
+
default: false,
|
|
57
|
+
description: 'Whether to return all results or only up to a given limit. Use with caution - may return very high number of records',
|
|
58
|
+
displayOptions: {
|
|
59
|
+
show: {
|
|
60
|
+
resource: ['ipAddresses'],
|
|
61
|
+
operation: ['getAll'],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Limit',
|
|
67
|
+
name: 'limit',
|
|
68
|
+
type: 'number',
|
|
69
|
+
default: constants_1.HUDU_API_CONSTANTS.PAGE_SIZE,
|
|
70
|
+
description: 'Max number of results to return',
|
|
71
|
+
typeOptions: {
|
|
72
|
+
minValue: 1,
|
|
73
|
+
},
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: {
|
|
76
|
+
resource: ['ipAddresses'],
|
|
77
|
+
operation: ['getAll'],
|
|
78
|
+
returnAll: [false],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
displayName: 'Filters',
|
|
84
|
+
name: 'filters',
|
|
85
|
+
type: 'collection',
|
|
86
|
+
placeholder: 'Add Filter',
|
|
87
|
+
default: {},
|
|
88
|
+
displayOptions: {
|
|
89
|
+
show: {
|
|
90
|
+
resource: ['ipAddresses'],
|
|
91
|
+
operation: ['getAll'],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
description: 'All filters are combined using AND logic and use exact matching unless specified otherwise',
|
|
95
|
+
options: [
|
|
96
|
+
{
|
|
97
|
+
displayName: 'Address',
|
|
98
|
+
name: 'address',
|
|
99
|
+
type: 'string',
|
|
100
|
+
default: '',
|
|
101
|
+
description: 'Filter by exact IP address match',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
displayName: 'Asset ID',
|
|
105
|
+
name: 'asset_id',
|
|
106
|
+
type: 'number',
|
|
107
|
+
default: 0,
|
|
108
|
+
description: 'Filter by asset ID',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
displayName: 'Company ID',
|
|
112
|
+
name: 'company_id',
|
|
113
|
+
type: 'number',
|
|
114
|
+
default: 0,
|
|
115
|
+
description: 'Filter by company ID',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
displayName: 'Created At',
|
|
119
|
+
name: 'created_at',
|
|
120
|
+
type: 'string',
|
|
121
|
+
default: '',
|
|
122
|
+
description: 'Filter by creation date (ISO 8601 format). Format: "start_datetime,end_datetime" for range, "exact_datetime" for exact match',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
displayName: 'FQDN',
|
|
126
|
+
name: 'fqdn',
|
|
127
|
+
type: 'string',
|
|
128
|
+
default: '',
|
|
129
|
+
description: 'Filter by exact FQDN match',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
displayName: 'Network ID',
|
|
133
|
+
name: 'network_id',
|
|
134
|
+
type: 'number',
|
|
135
|
+
default: 0,
|
|
136
|
+
description: 'Filter by network ID',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
displayName: 'Status',
|
|
140
|
+
name: 'status',
|
|
141
|
+
type: 'options',
|
|
142
|
+
default: '',
|
|
143
|
+
options: [
|
|
144
|
+
{
|
|
145
|
+
name: 'Unassigned',
|
|
146
|
+
value: 'unassigned',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'Assigned',
|
|
150
|
+
value: 'assigned',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'Reserved',
|
|
154
|
+
value: 'reserved',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'Deprecated',
|
|
158
|
+
value: 'deprecated',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: 'DHCP',
|
|
162
|
+
value: 'dhcp',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'SLAAC',
|
|
166
|
+
value: 'slaac',
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
description: 'Filter by IP address status',
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
displayName: 'Updated At',
|
|
173
|
+
name: 'updated_at',
|
|
174
|
+
type: 'string',
|
|
175
|
+
default: '',
|
|
176
|
+
description: 'Filter by last update date (ISO 8601 format). Format: "start_datetime,end_datetime" for range, "exact_datetime" for exact match',
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
displayName: 'Address',
|
|
182
|
+
name: 'address',
|
|
183
|
+
type: 'string',
|
|
184
|
+
required: true,
|
|
185
|
+
default: '',
|
|
186
|
+
displayOptions: {
|
|
187
|
+
show: {
|
|
188
|
+
resource: ['ipAddresses'],
|
|
189
|
+
operation: ['create'],
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
description: 'The IP address',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
displayName: 'Status',
|
|
196
|
+
name: 'status',
|
|
197
|
+
type: 'options',
|
|
198
|
+
required: true,
|
|
199
|
+
default: 'unassigned',
|
|
200
|
+
options: [
|
|
201
|
+
{
|
|
202
|
+
name: 'Unassigned',
|
|
203
|
+
value: 'unassigned',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: 'Assigned',
|
|
207
|
+
value: 'assigned',
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
name: 'Reserved',
|
|
211
|
+
value: 'reserved',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'Deprecated',
|
|
215
|
+
value: 'deprecated',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: 'DHCP',
|
|
219
|
+
value: 'dhcp',
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: 'SLAAC',
|
|
223
|
+
value: 'slaac',
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
displayOptions: {
|
|
227
|
+
show: {
|
|
228
|
+
resource: ['ipAddresses'],
|
|
229
|
+
operation: ['create'],
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
description: 'The status of the IP address',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
displayName: 'Company ID',
|
|
236
|
+
name: 'company_id',
|
|
237
|
+
type: 'number',
|
|
238
|
+
required: true,
|
|
239
|
+
default: 0,
|
|
240
|
+
displayOptions: {
|
|
241
|
+
show: {
|
|
242
|
+
resource: ['ipAddresses'],
|
|
243
|
+
operation: ['create'],
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
description: 'The identifier of the company that owns this IP address',
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
displayName: 'Additional Fields',
|
|
250
|
+
name: 'additionalFields',
|
|
251
|
+
type: 'collection',
|
|
252
|
+
placeholder: 'Add Field',
|
|
253
|
+
default: {},
|
|
254
|
+
displayOptions: {
|
|
255
|
+
show: {
|
|
256
|
+
resource: ['ipAddresses'],
|
|
257
|
+
operation: ['create'],
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
options: [
|
|
261
|
+
{
|
|
262
|
+
displayName: 'FQDN',
|
|
263
|
+
name: 'fqdn',
|
|
264
|
+
type: 'string',
|
|
265
|
+
default: '',
|
|
266
|
+
description: 'The Fully Qualified Domain Name associated with the IP address',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
displayName: 'Description',
|
|
270
|
+
name: 'description',
|
|
271
|
+
type: 'string',
|
|
272
|
+
default: '',
|
|
273
|
+
description: 'A brief description of the IP address',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
displayName: 'Comments',
|
|
277
|
+
name: 'comments',
|
|
278
|
+
type: 'string',
|
|
279
|
+
default: '',
|
|
280
|
+
description: 'Additional comments about the IP address',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
displayName: 'Asset ID',
|
|
284
|
+
name: 'asset_id',
|
|
285
|
+
type: 'number',
|
|
286
|
+
default: 0,
|
|
287
|
+
description: 'The identifier of the asset associated with this IP address',
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
displayName: 'Network ID',
|
|
291
|
+
name: 'network_id',
|
|
292
|
+
type: 'number',
|
|
293
|
+
default: 0,
|
|
294
|
+
description: 'The identifier of the network to which this IP address belongs',
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
displayName: 'IP Address ID',
|
|
300
|
+
name: 'id',
|
|
301
|
+
type: 'number',
|
|
302
|
+
displayOptions: {
|
|
303
|
+
show: {
|
|
304
|
+
resource: ['ipAddresses'],
|
|
305
|
+
operation: ['delete', 'get'],
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
default: 0,
|
|
309
|
+
required: true,
|
|
310
|
+
description: 'ID of the IP address',
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
displayName: 'IP Address ID',
|
|
314
|
+
name: 'id',
|
|
315
|
+
type: 'number',
|
|
316
|
+
displayOptions: {
|
|
317
|
+
show: {
|
|
318
|
+
resource: ['ipAddresses'],
|
|
319
|
+
operation: ['update'],
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
default: 0,
|
|
323
|
+
required: true,
|
|
324
|
+
description: 'ID of the IP address to update',
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
displayName: 'Update Fields',
|
|
328
|
+
name: 'updateFields',
|
|
329
|
+
type: 'collection',
|
|
330
|
+
placeholder: 'Add Field',
|
|
331
|
+
default: {},
|
|
332
|
+
displayOptions: {
|
|
333
|
+
show: {
|
|
334
|
+
resource: ['ipAddresses'],
|
|
335
|
+
operation: ['update'],
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
options: [
|
|
339
|
+
{
|
|
340
|
+
displayName: 'Address',
|
|
341
|
+
name: 'address',
|
|
342
|
+
type: 'string',
|
|
343
|
+
default: '',
|
|
344
|
+
description: 'The IP address',
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
displayName: 'Status',
|
|
348
|
+
name: 'status',
|
|
349
|
+
type: 'options',
|
|
350
|
+
default: '',
|
|
351
|
+
options: [
|
|
352
|
+
{
|
|
353
|
+
name: 'Unassigned',
|
|
354
|
+
value: 'unassigned',
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
name: 'Assigned',
|
|
358
|
+
value: 'assigned',
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
name: 'Reserved',
|
|
362
|
+
value: 'reserved',
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
name: 'Deprecated',
|
|
366
|
+
value: 'deprecated',
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: 'DHCP',
|
|
370
|
+
value: 'dhcp',
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
name: 'SLAAC',
|
|
374
|
+
value: 'slaac',
|
|
375
|
+
},
|
|
376
|
+
],
|
|
377
|
+
description: 'The status of the IP address',
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
displayName: 'FQDN',
|
|
381
|
+
name: 'fqdn',
|
|
382
|
+
type: 'string',
|
|
383
|
+
default: '',
|
|
384
|
+
description: 'The Fully Qualified Domain Name associated with the IP address',
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
displayName: 'Description',
|
|
388
|
+
name: 'description',
|
|
389
|
+
type: 'string',
|
|
390
|
+
default: '',
|
|
391
|
+
description: 'A brief description of the IP address',
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
displayName: 'Comments',
|
|
395
|
+
name: 'comments',
|
|
396
|
+
type: 'string',
|
|
397
|
+
default: '',
|
|
398
|
+
description: 'Additional comments about the IP address',
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
displayName: 'Asset ID',
|
|
402
|
+
name: 'asset_id',
|
|
403
|
+
type: 'number',
|
|
404
|
+
default: 0,
|
|
405
|
+
description: 'The identifier of the asset associated with this IP address',
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
displayName: 'Network ID',
|
|
409
|
+
name: 'network_id',
|
|
410
|
+
type: 'number',
|
|
411
|
+
default: 0,
|
|
412
|
+
description: 'The identifier of the network to which this IP address belongs',
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
displayName: 'Company ID',
|
|
416
|
+
name: 'company_id',
|
|
417
|
+
type: 'number',
|
|
418
|
+
default: 0,
|
|
419
|
+
description: 'The identifier of the company that owns this IP address',
|
|
420
|
+
},
|
|
421
|
+
],
|
|
422
|
+
},
|
|
423
|
+
];
|
|
424
|
+
//# sourceMappingURL=ip_addresses.description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ip_addresses.description.js","sourceRoot":"","sources":["../../../src/descriptions/ip_addresses.description.ts"],"names":[],"mappings":";;;AACA,kDAAwD;AAE3C,QAAA,mBAAmB,GAAsB;IACrD;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,aAAa,CAAC;aACzB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iCAAiC;gBAC9C,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,sBAAsB;gBACnC,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,8BAA8B;gBAC3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ACZ,KAAK,EAAE,MAAM;qBACb;oBACD;wBACC,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,OAAO;qBACd;iBACD;gBACD,WAAW,EAAE,8BAA8B;aAC3C;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,gEAAgE;aAC7E;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uCAAuC;aACpD;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0CAA0C;aACvD;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,6DAA6D;aAC1E;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,gEAAgE;aAC7E;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,yDAAyD;aACtE;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.magicDashFields = exports.magicDashOperations = void 0;
|
|
4
|
+
const constants_1 = require("../utils/constants");
|
|
5
|
+
exports.magicDashOperations = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Operation',
|
|
8
|
+
name: 'operation',
|
|
9
|
+
type: 'options',
|
|
10
|
+
noDataExpression: true,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['magic_dash'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Get All',
|
|
19
|
+
value: 'getAll',
|
|
20
|
+
description: 'Get all Magic Dash items',
|
|
21
|
+
action: 'Get all Magic Dash items',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'Create',
|
|
25
|
+
value: 'create',
|
|
26
|
+
description: 'Create a Magic Dash item',
|
|
27
|
+
action: 'Create a Magic Dash item',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Update',
|
|
31
|
+
value: 'update',
|
|
32
|
+
description: 'Update a Magic Dash item by title and company name',
|
|
33
|
+
action: 'Update a Magic Dash item',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Delete',
|
|
37
|
+
value: 'delete',
|
|
38
|
+
description: 'Delete a Magic Dash item by title and company name',
|
|
39
|
+
action: 'Delete a Magic Dash item by title and company name',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Delete By ID',
|
|
43
|
+
value: 'deleteById',
|
|
44
|
+
description: 'Delete a Magic Dash item by ID',
|
|
45
|
+
action: 'Delete a Magic Dash item by ID',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
default: 'getAll',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
exports.magicDashFields = [
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Return All',
|
|
54
|
+
name: 'returnAll',
|
|
55
|
+
type: 'boolean',
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ['magic_dash'],
|
|
59
|
+
operation: ['getAll'],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
default: false,
|
|
63
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Limit',
|
|
67
|
+
name: 'limit',
|
|
68
|
+
type: 'number',
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
resource: ['magic_dash'],
|
|
72
|
+
operation: ['getAll'],
|
|
73
|
+
returnAll: [false],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
typeOptions: {
|
|
77
|
+
minValue: 1,
|
|
78
|
+
},
|
|
79
|
+
default: constants_1.HUDU_API_CONSTANTS.PAGE_SIZE,
|
|
80
|
+
description: 'Max number of results to return',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
displayName: 'Filters',
|
|
84
|
+
name: 'filters',
|
|
85
|
+
type: 'collection',
|
|
86
|
+
placeholder: 'Add Filter',
|
|
87
|
+
default: {},
|
|
88
|
+
displayOptions: {
|
|
89
|
+
show: {
|
|
90
|
+
resource: ['magic_dash'],
|
|
91
|
+
operation: ['getAll'],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
options: [
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Company ID',
|
|
97
|
+
name: 'company_id',
|
|
98
|
+
type: 'number',
|
|
99
|
+
default: undefined,
|
|
100
|
+
description: 'Filter by company ID',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
displayName: 'Title',
|
|
104
|
+
name: 'title',
|
|
105
|
+
type: 'string',
|
|
106
|
+
default: '',
|
|
107
|
+
description: 'Filter by title',
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
displayName: 'Message',
|
|
113
|
+
name: 'message',
|
|
114
|
+
type: 'string',
|
|
115
|
+
required: true,
|
|
116
|
+
displayOptions: {
|
|
117
|
+
show: {
|
|
118
|
+
resource: ['magic_dash'],
|
|
119
|
+
operation: ['create', 'update'],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
default: '',
|
|
123
|
+
description: 'The primary content to be displayed on the Magic Dash Item',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
displayName: 'Company Name',
|
|
127
|
+
name: 'companyName',
|
|
128
|
+
type: 'string',
|
|
129
|
+
required: true,
|
|
130
|
+
displayOptions: {
|
|
131
|
+
show: {
|
|
132
|
+
resource: ['magic_dash'],
|
|
133
|
+
operation: ['create', 'update', 'delete'],
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
default: '',
|
|
137
|
+
description: 'The company name attribute used to match an existing company',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
displayName: 'Title',
|
|
141
|
+
name: 'title',
|
|
142
|
+
type: 'string',
|
|
143
|
+
required: true,
|
|
144
|
+
displayOptions: {
|
|
145
|
+
show: {
|
|
146
|
+
resource: ['magic_dash'],
|
|
147
|
+
operation: ['create', 'update', 'delete'],
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
default: '',
|
|
151
|
+
description: 'The title attribute, used for matching existing Magic Dash Items with the same title and company name',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
displayName: 'Content',
|
|
155
|
+
name: 'content',
|
|
156
|
+
type: 'string',
|
|
157
|
+
typeOptions: {
|
|
158
|
+
rows: 4,
|
|
159
|
+
},
|
|
160
|
+
displayOptions: {
|
|
161
|
+
show: {
|
|
162
|
+
resource: ['magic_dash'],
|
|
163
|
+
operation: ['create', 'update'],
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
default: '',
|
|
167
|
+
description: 'HTML content (tables, images, videos, etc.) to be displayed in the Magic Dash Item',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
displayName: 'Additional Fields',
|
|
171
|
+
name: 'additionalFields',
|
|
172
|
+
type: 'collection',
|
|
173
|
+
placeholder: 'Add Field',
|
|
174
|
+
default: {},
|
|
175
|
+
displayOptions: {
|
|
176
|
+
show: {
|
|
177
|
+
resource: ['magic_dash'],
|
|
178
|
+
operation: ['create', 'update'],
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
options: [
|
|
182
|
+
{
|
|
183
|
+
displayName: 'Company ID',
|
|
184
|
+
name: 'company_id',
|
|
185
|
+
type: 'number',
|
|
186
|
+
default: undefined,
|
|
187
|
+
description: 'The unique identifier of the company',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
displayName: 'Content Link',
|
|
191
|
+
name: 'content_link',
|
|
192
|
+
type: 'string',
|
|
193
|
+
default: '',
|
|
194
|
+
description: "A link to an external website associated with the Magic Dash Item's content",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
displayName: 'Icon',
|
|
198
|
+
name: 'icon',
|
|
199
|
+
type: 'string',
|
|
200
|
+
default: '',
|
|
201
|
+
description: 'A FontAwesome icon for the header of the Magic Dash Item (e.g., fas fa-circle)',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
displayName: 'Image URL',
|
|
205
|
+
name: 'image_url',
|
|
206
|
+
type: 'string',
|
|
207
|
+
default: '',
|
|
208
|
+
description: 'A URL for an image to be used in the header of the Magic Dash Item',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
displayName: 'Shade',
|
|
212
|
+
name: 'shade',
|
|
213
|
+
type: 'string',
|
|
214
|
+
default: '',
|
|
215
|
+
description: 'An optional color for the Magic Dash Item to represent different contextual states (e.g., success, danger)',
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
displayName: 'ID',
|
|
221
|
+
name: 'id',
|
|
222
|
+
type: 'number',
|
|
223
|
+
displayOptions: {
|
|
224
|
+
show: {
|
|
225
|
+
resource: ['magic_dash'],
|
|
226
|
+
operation: ['deleteById'],
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
default: 0,
|
|
230
|
+
required: true,
|
|
231
|
+
description: 'The ID of the Magic Dash item to delete',
|
|
232
|
+
},
|
|
233
|
+
];
|
|
234
|
+
//# sourceMappingURL=magic_dash.description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magic_dash.description.js","sourceRoot":"","sources":["../../../src/descriptions/magic_dash.description.ts"],"names":[],"mappings":";;;AACA,kDAAwD;AAE3C,QAAA,mBAAmB,GAAsB;IACrD;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,YAAY,CAAC;aACxB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,0BAA0B;gBACvC,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,0BAA0B;gBACvC,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,oDAAoD;gBACjE,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,oDAAoD;gBACjE,MAAM,EAAE,oDAAoD;aAC5D;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,gCAAgC;gBAC7C,MAAM,EAAE,gCAAgC;aACxC;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,eAAe,GAAsB;IAIjD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAA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