n8n-nodes-hudu 1.6.5 → 1.6.7

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 (99) hide show
  1. package/dist/nodes/Hudu/Hudu.node.js +9 -0
  2. package/dist/nodes/Hudu/Hudu.node.js.map +1 -1
  3. package/dist/nodes/Hudu/Hudu.node.ts +11 -0
  4. package/dist/nodes/Hudu/descriptions/activity_logs.description.js +2 -0
  5. package/dist/nodes/Hudu/descriptions/activity_logs.description.js.map +1 -1
  6. package/dist/nodes/Hudu/descriptions/activity_logs.description.ts +2 -0
  7. package/dist/nodes/Hudu/descriptions/articles.description.js +2 -0
  8. package/dist/nodes/Hudu/descriptions/articles.description.js.map +1 -1
  9. package/dist/nodes/Hudu/descriptions/articles.description.ts +2 -0
  10. package/dist/nodes/Hudu/descriptions/asset_layout_fields.description.js +2 -0
  11. package/dist/nodes/Hudu/descriptions/asset_layout_fields.description.js.map +1 -1
  12. package/dist/nodes/Hudu/descriptions/asset_layout_fields.description.ts +2 -0
  13. package/dist/nodes/Hudu/descriptions/asset_layouts.description.js +2 -0
  14. package/dist/nodes/Hudu/descriptions/asset_layouts.description.js.map +1 -1
  15. package/dist/nodes/Hudu/descriptions/asset_layouts.description.ts +2 -0
  16. package/dist/nodes/Hudu/descriptions/asset_passwords.description.js +2 -0
  17. package/dist/nodes/Hudu/descriptions/asset_passwords.description.js.map +1 -1
  18. package/dist/nodes/Hudu/descriptions/asset_passwords.description.ts +2 -0
  19. package/dist/nodes/Hudu/descriptions/assets.description.js +2 -0
  20. package/dist/nodes/Hudu/descriptions/assets.description.js.map +1 -1
  21. package/dist/nodes/Hudu/descriptions/assets.description.ts +2 -0
  22. package/dist/nodes/Hudu/descriptions/companies.description.js +2 -0
  23. package/dist/nodes/Hudu/descriptions/companies.description.js.map +1 -1
  24. package/dist/nodes/Hudu/descriptions/companies.description.ts +2 -0
  25. package/dist/nodes/Hudu/descriptions/expirations.description.js +2 -0
  26. package/dist/nodes/Hudu/descriptions/expirations.description.js.map +1 -1
  27. package/dist/nodes/Hudu/descriptions/expirations.description.ts +2 -0
  28. package/dist/nodes/Hudu/descriptions/folders.description.js +2 -0
  29. package/dist/nodes/Hudu/descriptions/folders.description.js.map +1 -1
  30. package/dist/nodes/Hudu/descriptions/folders.description.ts +2 -0
  31. package/dist/nodes/Hudu/descriptions/groups.description.js +2 -0
  32. package/dist/nodes/Hudu/descriptions/groups.description.js.map +1 -1
  33. package/dist/nodes/Hudu/descriptions/groups.description.ts +2 -0
  34. package/dist/nodes/Hudu/descriptions/ip_addresses.description.js +2 -0
  35. package/dist/nodes/Hudu/descriptions/ip_addresses.description.js.map +1 -1
  36. package/dist/nodes/Hudu/descriptions/ip_addresses.description.ts +2 -0
  37. package/dist/nodes/Hudu/descriptions/lists.description.js +2 -0
  38. package/dist/nodes/Hudu/descriptions/lists.description.js.map +1 -1
  39. package/dist/nodes/Hudu/descriptions/lists.description.ts +2 -0
  40. package/dist/nodes/Hudu/descriptions/magic_dash.description.js +2 -0
  41. package/dist/nodes/Hudu/descriptions/magic_dash.description.js.map +1 -1
  42. package/dist/nodes/Hudu/descriptions/magic_dash.description.ts +310 -308
  43. package/dist/nodes/Hudu/descriptions/matchers.description.js +2 -0
  44. package/dist/nodes/Hudu/descriptions/matchers.description.js.map +1 -1
  45. package/dist/nodes/Hudu/descriptions/matchers.description.ts +2 -0
  46. package/dist/nodes/Hudu/descriptions/networks.description.js +2 -0
  47. package/dist/nodes/Hudu/descriptions/networks.description.js.map +1 -1
  48. package/dist/nodes/Hudu/descriptions/networks.description.ts +2 -0
  49. package/dist/nodes/Hudu/descriptions/passwordFolders.descriptions.js +2 -0
  50. package/dist/nodes/Hudu/descriptions/passwordFolders.descriptions.js.map +1 -1
  51. package/dist/nodes/Hudu/descriptions/passwordFolders.descriptions.ts +2 -0
  52. package/dist/nodes/Hudu/descriptions/procedure_tasks.description.js +2 -0
  53. package/dist/nodes/Hudu/descriptions/procedure_tasks.description.js.map +1 -1
  54. package/dist/nodes/Hudu/descriptions/procedure_tasks.description.ts +2 -0
  55. package/dist/nodes/Hudu/descriptions/procedures.description.js +2 -0
  56. package/dist/nodes/Hudu/descriptions/procedures.description.js.map +1 -1
  57. package/dist/nodes/Hudu/descriptions/procedures.description.ts +2 -0
  58. package/dist/nodes/Hudu/descriptions/public_photos.description.js +2 -0
  59. package/dist/nodes/Hudu/descriptions/public_photos.description.js.map +1 -1
  60. package/dist/nodes/Hudu/descriptions/public_photos.description.ts +2 -0
  61. package/dist/nodes/Hudu/descriptions/rack_storage_items.description.js +2 -0
  62. package/dist/nodes/Hudu/descriptions/rack_storage_items.description.js.map +1 -1
  63. package/dist/nodes/Hudu/descriptions/rack_storage_items.description.ts +2 -0
  64. package/dist/nodes/Hudu/descriptions/rack_storages.description.js +2 -0
  65. package/dist/nodes/Hudu/descriptions/rack_storages.description.js.map +1 -1
  66. package/dist/nodes/Hudu/descriptions/rack_storages.description.ts +2 -0
  67. package/dist/nodes/Hudu/descriptions/relations.description.js +2 -0
  68. package/dist/nodes/Hudu/descriptions/relations.description.js.map +1 -1
  69. package/dist/nodes/Hudu/descriptions/relations.description.ts +2 -0
  70. package/dist/nodes/Hudu/descriptions/resources.js +16 -0
  71. package/dist/nodes/Hudu/descriptions/resources.js.map +1 -1
  72. package/dist/nodes/Hudu/descriptions/resources.ts +21 -1
  73. package/dist/nodes/Hudu/descriptions/uploads.description.js +2 -0
  74. package/dist/nodes/Hudu/descriptions/uploads.description.js.map +1 -1
  75. package/dist/nodes/Hudu/descriptions/uploads.description.ts +2 -0
  76. package/dist/nodes/Hudu/descriptions/users.description.js +2 -0
  77. package/dist/nodes/Hudu/descriptions/users.description.js.map +1 -1
  78. package/dist/nodes/Hudu/descriptions/users.description.ts +2 -0
  79. package/dist/nodes/Hudu/descriptions/vlan_zones.description.js +2 -0
  80. package/dist/nodes/Hudu/descriptions/vlan_zones.description.js.map +1 -1
  81. package/dist/nodes/Hudu/descriptions/vlan_zones.description.ts +2 -0
  82. package/dist/nodes/Hudu/descriptions/vlans.description.js +2 -0
  83. package/dist/nodes/Hudu/descriptions/vlans.description.js.map +1 -1
  84. package/dist/nodes/Hudu/descriptions/vlans.description.ts +2 -0
  85. package/dist/nodes/Hudu/descriptions/websites.description.js +2 -0
  86. package/dist/nodes/Hudu/descriptions/websites.description.js.map +1 -1
  87. package/dist/nodes/Hudu/descriptions/websites.description.ts +2 -0
  88. package/dist/nodes/Hudu/resources/assets/assets.handler.js +21 -12
  89. package/dist/nodes/Hudu/resources/assets/assets.handler.js.map +1 -1
  90. package/dist/nodes/Hudu/resources/assets/assets.handler.ts +32 -15
  91. package/dist/nodes/Hudu/resources/magic_dash/magic_dash.handler.ts +100 -100
  92. package/dist/nodes/Hudu/utils/constants.js +9 -1
  93. package/dist/nodes/Hudu/utils/constants.js.map +1 -1
  94. package/dist/nodes/Hudu/utils/constants.ts +15 -0
  95. package/dist/nodes/Hudu/utils/operations/magic_dash.ts +68 -68
  96. package/dist/nodes/Hudu/utils/requestUtils.js +47 -33
  97. package/dist/nodes/Hudu/utils/requestUtils.js.map +1 -1
  98. package/dist/nodes/Hudu/utils/requestUtils.ts +73 -49
  99. package/package.json +1 -1
@@ -1,308 +1,310 @@
1
- import type { INodeProperties } from 'n8n-workflow';
2
- import { HUDU_API_CONSTANTS } from '../utils/constants';
3
-
4
- export const magicDashOperations: INodeProperties[] = [
5
- {
6
- displayName: 'Operation',
7
- name: 'operation',
8
- type: 'options',
9
- noDataExpression: true,
10
- displayOptions: {
11
- show: {
12
- resource: ['magic_dash'],
13
- },
14
- },
15
- options: [
16
- {
17
- name: 'Create or Update',
18
- value: 'createOrUpdate',
19
- description: 'Create or update item',
20
- action: 'Create or update item',
21
- },
22
- {
23
- name: 'Delete',
24
- value: 'deleteById',
25
- description: 'Delete item',
26
- action: 'Delete item',
27
- },
28
- {
29
- name: 'Delete by Title',
30
- value: 'deleteByTitle',
31
- description: 'Delete item by title and company name',
32
- action: 'Delete item by title',
33
- },
34
- {
35
- name: 'Get',
36
- value: 'get',
37
- description: 'Get item',
38
- action: 'Get item',
39
- },
40
- {
41
- name: 'Get Many',
42
- value: 'getAll',
43
- description: 'Get many items',
44
- action: 'Get many items',
45
- },
46
- ],
47
- default: 'getAll',
48
- },
49
- ];
50
-
51
- export const magicDashFields: INodeProperties[] = [
52
- // ----------------------------------
53
- // getAll
54
- // ----------------------------------
55
- {
56
- displayName: 'Return All',
57
- name: 'returnAll',
58
- type: 'boolean',
59
- displayOptions: {
60
- show: {
61
- resource: ['magic_dash'],
62
- operation: ['getAll'],
63
- },
64
- },
65
- default: false,
66
- description: 'Whether to return all results or only up to a given limit',
67
- },
68
- {
69
- displayName: 'Limit',
70
- name: 'limit',
71
- type: 'number',
72
- displayOptions: {
73
- show: {
74
- resource: ['magic_dash'],
75
- operation: ['getAll'],
76
- returnAll: [false],
77
- },
78
- },
79
- typeOptions: {
80
- minValue: 1,
81
- },
82
- default: HUDU_API_CONSTANTS.PAGE_SIZE,
83
- description: 'Max number of results to return',
84
- },
85
- {
86
- displayName: 'Filters',
87
- name: 'filters',
88
- type: 'collection',
89
- placeholder: 'Add Filter',
90
- default: {},
91
- displayOptions: {
92
- show: {
93
- resource: ['magic_dash'],
94
- operation: ['getAll'],
95
- },
96
- },
97
- options: [
98
- {
99
- displayName: 'Company Name or ID',
100
- name: 'company_id',
101
- type: 'options',
102
- typeOptions: {
103
- loadOptionsMethod: 'getCompanies',
104
- loadOptionsParameters: {
105
- includeBlank: true,
106
- },
107
- },
108
- default: '',
109
- description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
110
- },
111
- {
112
- displayName: 'Title',
113
- name: 'title',
114
- type: 'string',
115
- default: '',
116
- description: 'Filter by title',
117
- },
118
- ],
119
- },
120
-
121
- // ----------------------------------
122
- // createOrUpdate
123
- // ----------------------------------
124
- {
125
- displayName: 'Message',
126
- name: 'message',
127
- type: 'string',
128
- required: true,
129
- displayOptions: {
130
- show: {
131
- resource: ['magic_dash'],
132
- operation: ['createOrUpdate'],
133
- },
134
- },
135
- default: '',
136
- description: 'The primary content to be displayed on the Magic Dash Item',
137
- },
138
- {
139
- displayName: 'Company Name',
140
- name: 'companyName',
141
- type: 'string',
142
- required: true,
143
- displayOptions: {
144
- show: {
145
- resource: ['magic_dash'],
146
- operation: ['createOrUpdate'],
147
- },
148
- },
149
- default: '',
150
- description: 'The company name attribute used to match an existing company',
151
- },
152
- {
153
- displayName: 'Title',
154
- name: 'title',
155
- type: 'string',
156
- required: true,
157
- displayOptions: {
158
- show: {
159
- resource: ['magic_dash'],
160
- operation: ['createOrUpdate'],
161
- },
162
- },
163
- default: '',
164
- description:
165
- 'The title attribute, used for matching existing Magic Dash Items with the same title and company name',
166
- },
167
- {
168
- displayName: 'Content',
169
- name: 'content',
170
- type: 'string',
171
- typeOptions: {
172
- rows: 4,
173
- },
174
- displayOptions: {
175
- show: {
176
- resource: ['magic_dash'],
177
- operation: ['createOrUpdate'],
178
- },
179
- },
180
- default: '',
181
- description:
182
- 'HTML content (tables, images, videos, etc.) to be displayed in the Magic Dash Item',
183
- },
184
- {
185
- displayName: 'Additional Fields',
186
- name: 'additionalFields',
187
- type: 'collection',
188
- placeholder: 'Add Field',
189
- default: {},
190
- displayOptions: {
191
- show: {
192
- resource: ['magic_dash'],
193
- operation: ['createOrUpdate'],
194
- },
195
- },
196
- options: [
197
- {
198
- displayName: 'Company Name or ID',
199
- name: 'company_id',
200
- type: 'options',
201
- typeOptions: {
202
- loadOptionsMethod: 'getCompanies',
203
- loadOptionsParameters: {
204
- includeBlank: true,
205
- },
206
- },
207
- default: '',
208
- description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
209
- },
210
- {
211
- displayName: 'Content Link',
212
- name: 'content_link',
213
- type: 'string',
214
- default: '',
215
- description: "A link to an external website associated with the Magic Dash Item's content",
216
- },
217
- {
218
- displayName: 'Icon',
219
- name: 'icon',
220
- type: 'string',
221
- default: '',
222
- description: 'Font Awesome icon code (e.g. fa-home). Search for icons at <a href="https://fontawesome.com/search">Font Awesome</a>.',
223
- },
224
- {
225
- displayName: 'Image URL',
226
- name: 'image_url',
227
- type: 'string',
228
- default: '',
229
- description: 'A URL for an image to be used in the header of the Magic Dash Item',
230
- },
231
- {
232
- displayName: 'Shade',
233
- name: 'shade',
234
- type: 'color',
235
- default: '',
236
- //description: 'An optional color for the Magic Dash Item to represent different contextual states (e.g., success, danger)',
237
- },
238
- ],
239
- },
240
-
241
- // ----------------------------------
242
- // deleteById
243
- // ----------------------------------
244
- {
245
- displayName: 'ID',
246
- name: 'id',
247
- type: 'number',
248
- displayOptions: {
249
- show: {
250
- resource: ['magic_dash'],
251
- operation: ['deleteById'],
252
- },
253
- },
254
- default: 0,
255
- required: true,
256
- description: 'The ID of the Magic Dash item to delete',
257
- },
258
-
259
- // ----------------------------------
260
- // deleteByTitle
261
- // ----------------------------------
262
- {
263
- displayName: 'Title',
264
- name: 'title',
265
- type: 'string',
266
- required: true,
267
- displayOptions: {
268
- show: {
269
- resource: ['magic_dash'],
270
- operation: ['deleteByTitle'],
271
- },
272
- },
273
- default: '',
274
- description: 'The title of the Magic Dash item to delete',
275
- },
276
- {
277
- displayName: 'Company Name',
278
- name: 'companyName',
279
- type: 'string',
280
- required: true,
281
- displayOptions: {
282
- show: {
283
- resource: ['magic_dash'],
284
- operation: ['deleteByTitle'],
285
- },
286
- },
287
- default: '',
288
- description: 'The company name for the Magic Dash item to delete',
289
- },
290
-
291
- // ----------------------------------
292
- // get
293
- // ----------------------------------
294
- {
295
- displayName: 'ID',
296
- name: 'id',
297
- type: 'number',
298
- displayOptions: {
299
- show: {
300
- resource: ['magic_dash'],
301
- operation: ['get'],
302
- },
303
- },
304
- default: 0,
305
- required: true,
306
- description: 'The ID of the Magic Dash item to get',
307
- },
308
- ];
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ import { HUDU_API_CONSTANTS } from '../utils/constants';
3
+ import { createWrapResultsField } from './resources';
4
+
5
+ export const magicDashOperations: INodeProperties[] = [
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: 'Create or Update',
19
+ value: 'createOrUpdate',
20
+ description: 'Create or update item',
21
+ action: 'Create or update item',
22
+ },
23
+ {
24
+ name: 'Delete',
25
+ value: 'deleteById',
26
+ description: 'Delete item',
27
+ action: 'Delete item',
28
+ },
29
+ {
30
+ name: 'Delete by Title',
31
+ value: 'deleteByTitle',
32
+ description: 'Delete item by title and company name',
33
+ action: 'Delete item by title',
34
+ },
35
+ {
36
+ name: 'Get',
37
+ value: 'get',
38
+ description: 'Get item',
39
+ action: 'Get item',
40
+ },
41
+ {
42
+ name: 'Get Many',
43
+ value: 'getAll',
44
+ description: 'Get many items',
45
+ action: 'Get many items',
46
+ },
47
+ ],
48
+ default: 'getAll',
49
+ },
50
+ ];
51
+
52
+ export const magicDashFields: INodeProperties[] = [
53
+ // ----------------------------------
54
+ // getAll
55
+ // ----------------------------------
56
+ {
57
+ displayName: 'Return All',
58
+ name: 'returnAll',
59
+ type: 'boolean',
60
+ displayOptions: {
61
+ show: {
62
+ resource: ['magic_dash'],
63
+ operation: ['getAll'],
64
+ },
65
+ },
66
+ default: false,
67
+ description: 'Whether to return all results or only up to a given limit',
68
+ },
69
+ {
70
+ displayName: 'Limit',
71
+ name: 'limit',
72
+ type: 'number',
73
+ displayOptions: {
74
+ show: {
75
+ resource: ['magic_dash'],
76
+ operation: ['getAll'],
77
+ returnAll: [false],
78
+ },
79
+ },
80
+ typeOptions: {
81
+ minValue: 1,
82
+ },
83
+ default: HUDU_API_CONSTANTS.PAGE_SIZE,
84
+ description: 'Max number of results to return',
85
+ },
86
+ createWrapResultsField('magic_dash'),
87
+ {
88
+ displayName: 'Filters',
89
+ name: 'filters',
90
+ type: 'collection',
91
+ placeholder: 'Add Filter',
92
+ default: {},
93
+ displayOptions: {
94
+ show: {
95
+ resource: ['magic_dash'],
96
+ operation: ['getAll'],
97
+ },
98
+ },
99
+ options: [
100
+ {
101
+ displayName: 'Company Name or ID',
102
+ name: 'company_id',
103
+ type: 'options',
104
+ typeOptions: {
105
+ loadOptionsMethod: 'getCompanies',
106
+ loadOptionsParameters: {
107
+ includeBlank: true,
108
+ },
109
+ },
110
+ default: '',
111
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
112
+ },
113
+ {
114
+ displayName: 'Title',
115
+ name: 'title',
116
+ type: 'string',
117
+ default: '',
118
+ description: 'Filter by title',
119
+ },
120
+ ],
121
+ },
122
+
123
+ // ----------------------------------
124
+ // createOrUpdate
125
+ // ----------------------------------
126
+ {
127
+ displayName: 'Message',
128
+ name: 'message',
129
+ type: 'string',
130
+ required: true,
131
+ displayOptions: {
132
+ show: {
133
+ resource: ['magic_dash'],
134
+ operation: ['createOrUpdate'],
135
+ },
136
+ },
137
+ default: '',
138
+ description: 'The primary content to be displayed on the Magic Dash Item',
139
+ },
140
+ {
141
+ displayName: 'Company Name',
142
+ name: 'companyName',
143
+ type: 'string',
144
+ required: true,
145
+ displayOptions: {
146
+ show: {
147
+ resource: ['magic_dash'],
148
+ operation: ['createOrUpdate'],
149
+ },
150
+ },
151
+ default: '',
152
+ description: 'The company name attribute used to match an existing company',
153
+ },
154
+ {
155
+ displayName: 'Title',
156
+ name: 'title',
157
+ type: 'string',
158
+ required: true,
159
+ displayOptions: {
160
+ show: {
161
+ resource: ['magic_dash'],
162
+ operation: ['createOrUpdate'],
163
+ },
164
+ },
165
+ default: '',
166
+ description:
167
+ 'The title attribute, used for matching existing Magic Dash Items with the same title and company name',
168
+ },
169
+ {
170
+ displayName: 'Content',
171
+ name: 'content',
172
+ type: 'string',
173
+ typeOptions: {
174
+ rows: 4,
175
+ },
176
+ displayOptions: {
177
+ show: {
178
+ resource: ['magic_dash'],
179
+ operation: ['createOrUpdate'],
180
+ },
181
+ },
182
+ default: '',
183
+ description:
184
+ 'HTML content (tables, images, videos, etc.) to be displayed in the Magic Dash Item',
185
+ },
186
+ {
187
+ displayName: 'Additional Fields',
188
+ name: 'additionalFields',
189
+ type: 'collection',
190
+ placeholder: 'Add Field',
191
+ default: {},
192
+ displayOptions: {
193
+ show: {
194
+ resource: ['magic_dash'],
195
+ operation: ['createOrUpdate'],
196
+ },
197
+ },
198
+ options: [
199
+ {
200
+ displayName: 'Company Name or ID',
201
+ name: 'company_id',
202
+ type: 'options',
203
+ typeOptions: {
204
+ loadOptionsMethod: 'getCompanies',
205
+ loadOptionsParameters: {
206
+ includeBlank: true,
207
+ },
208
+ },
209
+ default: '',
210
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
211
+ },
212
+ {
213
+ displayName: 'Content Link',
214
+ name: 'content_link',
215
+ type: 'string',
216
+ default: '',
217
+ description: "A link to an external website associated with the Magic Dash Item's content",
218
+ },
219
+ {
220
+ displayName: 'Icon',
221
+ name: 'icon',
222
+ type: 'string',
223
+ default: '',
224
+ description: 'Font Awesome icon code (e.g. fa-home). Search for icons at <a href="https://fontawesome.com/search">Font Awesome</a>.',
225
+ },
226
+ {
227
+ displayName: 'Image URL',
228
+ name: 'image_url',
229
+ type: 'string',
230
+ default: '',
231
+ description: 'A URL for an image to be used in the header of the Magic Dash Item',
232
+ },
233
+ {
234
+ displayName: 'Shade',
235
+ name: 'shade',
236
+ type: 'color',
237
+ default: '',
238
+ //description: 'An optional color for the Magic Dash Item to represent different contextual states (e.g., success, danger)',
239
+ },
240
+ ],
241
+ },
242
+
243
+ // ----------------------------------
244
+ // deleteById
245
+ // ----------------------------------
246
+ {
247
+ displayName: 'ID',
248
+ name: 'id',
249
+ type: 'number',
250
+ displayOptions: {
251
+ show: {
252
+ resource: ['magic_dash'],
253
+ operation: ['deleteById'],
254
+ },
255
+ },
256
+ default: 0,
257
+ required: true,
258
+ description: 'The ID of the Magic Dash item to delete',
259
+ },
260
+
261
+ // ----------------------------------
262
+ // deleteByTitle
263
+ // ----------------------------------
264
+ {
265
+ displayName: 'Title',
266
+ name: 'title',
267
+ type: 'string',
268
+ required: true,
269
+ displayOptions: {
270
+ show: {
271
+ resource: ['magic_dash'],
272
+ operation: ['deleteByTitle'],
273
+ },
274
+ },
275
+ default: '',
276
+ description: 'The title of the Magic Dash item to delete',
277
+ },
278
+ {
279
+ displayName: 'Company Name',
280
+ name: 'companyName',
281
+ type: 'string',
282
+ required: true,
283
+ displayOptions: {
284
+ show: {
285
+ resource: ['magic_dash'],
286
+ operation: ['deleteByTitle'],
287
+ },
288
+ },
289
+ default: '',
290
+ description: 'The company name for the Magic Dash item to delete',
291
+ },
292
+
293
+ // ----------------------------------
294
+ // get
295
+ // ----------------------------------
296
+ {
297
+ displayName: 'ID',
298
+ name: 'id',
299
+ type: 'number',
300
+ displayOptions: {
301
+ show: {
302
+ resource: ['magic_dash'],
303
+ operation: ['get'],
304
+ },
305
+ },
306
+ default: 0,
307
+ required: true,
308
+ description: 'The ID of the Magic Dash item to get',
309
+ },
310
+ ];
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.matchersFields = exports.matchersOperations = void 0;
4
4
  const constants_1 = require("../utils/constants");
5
+ const resources_1 = require("./resources");
5
6
  exports.matchersOperations = [
6
7
  {
7
8
  displayName: 'Operation',
@@ -81,6 +82,7 @@ exports.matchersFields = [
81
82
  default: constants_1.HUDU_API_CONSTANTS.PAGE_SIZE,
82
83
  description: 'Max number of results to return',
83
84
  },
85
+ (0, resources_1.createWrapResultsField)('matchers'),
84
86
  {
85
87
  displayName: 'Filters',
86
88
  name: 'filters',
@@ -1 +1 @@
1
- {"version":3,"file":"matchers.description.js","sourceRoot":"","sources":["../../../../../src/nodes/Hudu/descriptions/matchers.description.ts"],"names":[],"mappings":";;;AACA,kDAAwD;AAE3C,QAAA,kBAAkB,GAA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AAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oCAAoC;aAClD;SACF;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"matchers.description.js","sourceRoot":"","sources":["../../../../../src/nodes/Hudu/descriptions/matchers.description.ts"],"names":[],"mappings":";;;AACA,kDAAwD;AACxD,2CAAqD;AAExC,QAAA,kBAAkB,GAAsB;IACnD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,UAAU,CAAC;aACvB;SACF;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,sCAAsC;gBACnD,MAAM,EAAE,mBAAmB;aAC5B;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,kBAAkB;aAC3B;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,kBAAkB;aAC3B;SACF;QACD,OAAO,EAAE,QAAQ;KAClB;CACF,CAAC;AAEW,QAAA,cAAc,GAAsB;IAI/C;QACE,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EACT,sFAAsF;KACzF;IACD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,c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