n8n-nodes-hudu 1.3.1 → 1.3.2
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/dist/nodes/Hudu/Hudu.node.js +5 -0
- package/dist/nodes/Hudu/Hudu.node.js.map +1 -1
- package/dist/nodes/Hudu/Hudu.node.ts +10 -1
- package/dist/nodes/Hudu/descriptions/index.js +1 -0
- package/dist/nodes/Hudu/descriptions/index.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/index.ts +1 -0
- package/dist/nodes/Hudu/descriptions/lists.description.js +253 -0
- package/dist/nodes/Hudu/descriptions/lists.description.js.map +1 -0
- package/dist/nodes/Hudu/descriptions/lists.description.ts +259 -0
- package/dist/nodes/Hudu/descriptions/resources.js +4 -0
- package/dist/nodes/Hudu/descriptions/resources.js.map +1 -1
- package/dist/nodes/Hudu/descriptions/resources.ts +4 -0
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFields.ts +234 -234
- package/dist/nodes/Hudu/optionLoaders/asset_layouts/getCustomFieldsLayoutFields.ts +77 -77
- package/dist/nodes/Hudu/resources/assets/assets.handler.ts +395 -395
- package/dist/nodes/Hudu/resources/index.js +2 -0
- package/dist/nodes/Hudu/resources/index.js.map +1 -1
- package/dist/nodes/Hudu/resources/index.ts +2 -0
- package/dist/nodes/Hudu/resources/lists/lists.handler.js +82 -0
- package/dist/nodes/Hudu/resources/lists/lists.handler.js.map +1 -0
- package/dist/nodes/Hudu/resources/lists/lists.handler.ts +122 -0
- package/dist/nodes/Hudu/resources/lists/lists.types.js +3 -0
- package/dist/nodes/Hudu/resources/lists/lists.types.js.map +1 -0
- package/dist/nodes/Hudu/resources/lists/lists.types.ts +26 -0
- package/dist/nodes/Hudu/resources/procedures/procedures.handler.js +7 -0
- package/dist/nodes/Hudu/resources/procedures/procedures.handler.js.map +1 -1
- package/dist/nodes/Hudu/resources/procedures/procedures.handler.ts +8 -0
- package/dist/nodes/Hudu/utils/debugConfig.ts +132 -132
- package/package.json +1 -1
|
@@ -84,6 +84,7 @@ class Hudu {
|
|
|
84
84
|
...descriptions.expirationsOperations,
|
|
85
85
|
...descriptions.folderOperations,
|
|
86
86
|
...descriptions.ipAddressOperations,
|
|
87
|
+
...descriptions.listsOperations,
|
|
87
88
|
...descriptions.magicDashOperations,
|
|
88
89
|
...descriptions.matchersOperations,
|
|
89
90
|
...descriptions.networksOperations,
|
|
@@ -109,6 +110,7 @@ class Hudu {
|
|
|
109
110
|
...descriptions.expirationsFields,
|
|
110
111
|
...descriptions.folderFields,
|
|
111
112
|
...descriptions.ipAddressFields,
|
|
113
|
+
...descriptions.listsFields,
|
|
112
114
|
...descriptions.magicDashFields,
|
|
113
115
|
...descriptions.matchersFields,
|
|
114
116
|
...descriptions.networksFields,
|
|
@@ -198,6 +200,9 @@ class Hudu {
|
|
|
198
200
|
case 'ipAddresses':
|
|
199
201
|
responseData = await resources.handleIpAddressesOperation.call(this, operation, i);
|
|
200
202
|
break;
|
|
203
|
+
case 'lists':
|
|
204
|
+
responseData = await resources.handleListsOperation.call(this, operation, i);
|
|
205
|
+
break;
|
|
201
206
|
case 'magic_dash':
|
|
202
207
|
responseData = await resources.handleMagicDashOperation.call(this, operation, i);
|
|
203
208
|
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,6FAG4D;AAC5D,2GAAwG;AACxG,uFAA+F;AAE/F,MAAa,IAAI;IAAjB;QACE,gBAAW,GAAyB;YAClC,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,eAAe;YAC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AE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAiB,EAAE,EAAE,CAAC,CAAC;wBAC5G,IAAI,EAAE,IAAI;wBACV,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACxB,CAAC,CAAC,CAAC;oBACJ,UAAU,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC;oBACvC,SAAS;iBACV;gBACD,MAAM,KAAK,CAAC;aACb;SACF;QAED,IAAI,0BAAY,CAAC,WAAW,EAAE;YAC5B,IAAA,sBAAQ,EAAC,+BAA+B,EAAE;gBACxC,eAAe,EAAE,UAAU,CAAC,MAAM;gBAClC,UAAU;aACX,CAAC,CAAC;SACJ;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACtB,CAAC;CACF;AA7WD,oBA6WC"}
|
|
@@ -81,6 +81,7 @@ export class Hudu implements INodeType {
|
|
|
81
81
|
...descriptions.expirationsOperations,
|
|
82
82
|
...descriptions.folderOperations,
|
|
83
83
|
...descriptions.ipAddressOperations,
|
|
84
|
+
...descriptions.listsOperations,
|
|
84
85
|
...descriptions.magicDashOperations,
|
|
85
86
|
...descriptions.matchersOperations,
|
|
86
87
|
...descriptions.networksOperations,
|
|
@@ -107,6 +108,7 @@ export class Hudu implements INodeType {
|
|
|
107
108
|
...descriptions.expirationsFields,
|
|
108
109
|
...descriptions.folderFields,
|
|
109
110
|
...descriptions.ipAddressFields,
|
|
111
|
+
...descriptions.listsFields,
|
|
110
112
|
...descriptions.magicDashFields,
|
|
111
113
|
...descriptions.matchersFields,
|
|
112
114
|
...descriptions.networksFields,
|
|
@@ -249,6 +251,13 @@ export class Hudu implements INodeType {
|
|
|
249
251
|
i,
|
|
250
252
|
);
|
|
251
253
|
break;
|
|
254
|
+
case 'lists':
|
|
255
|
+
responseData = await resources.handleListsOperation.call(
|
|
256
|
+
this,
|
|
257
|
+
operation as resources.ListsOperation,
|
|
258
|
+
i,
|
|
259
|
+
);
|
|
260
|
+
break;
|
|
252
261
|
case 'magic_dash':
|
|
253
262
|
responseData = await resources.handleMagicDashOperation.call(
|
|
254
263
|
this,
|
|
@@ -387,4 +396,4 @@ export class Hudu implements INodeType {
|
|
|
387
396
|
|
|
388
397
|
return [returnData];
|
|
389
398
|
}
|
|
390
|
-
}
|
|
399
|
+
}
|
|
@@ -39,4 +39,5 @@ __exportStar(require("./relations.description"), exports);
|
|
|
39
39
|
__exportStar(require("./uploads.description"), exports);
|
|
40
40
|
__exportStar(require("./users.description"), exports);
|
|
41
41
|
__exportStar(require("./websites.description"), exports);
|
|
42
|
+
__exportStar(require("./lists.description"), exports);
|
|
42
43
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/nodes/Hudu/descriptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,yDAAuC;AACvC,yDAAuC;AACvC,8DAA4C;AAC5C,oEAAkD;AAClD,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,6DAA2C;AAC3C,2DAAyC;AACzC,yDAAuC;AACvC,yDAAuC;AACvC,iEAA+C;AAC/C,2DAAyC;AACzC,gEAA8C;AAC9C,8DAA4C;AAC5C,8DAA4C;AAC5C,mEAAiD;AACjD,0DAAwC;AACxC,wDAAsC;AACtC,sDAAoC;AACpC,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/nodes/Hudu/descriptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,yDAAuC;AACvC,yDAAuC;AACvC,8DAA4C;AAC5C,oEAAkD;AAClD,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,6DAA2C;AAC3C,2DAAyC;AACzC,yDAAuC;AACvC,yDAAuC;AACvC,iEAA+C;AAC/C,2DAAyC;AACzC,gEAA8C;AAC9C,8DAA4C;AAC5C,8DAA4C;AAC5C,mEAAiD;AACjD,0DAAwC;AACxC,wDAAsC;AACtC,sDAAoC;AACpC,yDAAuC;AACvC,sDAAoC"}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listsFields = exports.listsOperations = void 0;
|
|
4
|
+
exports.listsOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['lists'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create',
|
|
18
|
+
value: 'create',
|
|
19
|
+
description: 'Create a new list',
|
|
20
|
+
action: 'Create a list',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete',
|
|
24
|
+
value: 'delete',
|
|
25
|
+
description: 'Delete a list',
|
|
26
|
+
action: 'Delete a list',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get',
|
|
30
|
+
value: 'get',
|
|
31
|
+
description: 'Get a specific list',
|
|
32
|
+
action: 'Get a list',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Many',
|
|
36
|
+
value: 'getAll',
|
|
37
|
+
description: 'Get many lists',
|
|
38
|
+
action: 'Get many lists',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Update',
|
|
42
|
+
value: 'update',
|
|
43
|
+
description: 'Update a list',
|
|
44
|
+
action: 'Update a list',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
default: 'getAll',
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
exports.listsFields = [
|
|
51
|
+
{
|
|
52
|
+
displayName: 'List ID',
|
|
53
|
+
name: 'id',
|
|
54
|
+
type: 'string',
|
|
55
|
+
required: true,
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
resource: ['lists'],
|
|
59
|
+
operation: ['get', 'update', 'delete'],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
default: '',
|
|
63
|
+
description: 'The unique ID of the list',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Name',
|
|
67
|
+
name: 'name',
|
|
68
|
+
type: 'string',
|
|
69
|
+
required: true,
|
|
70
|
+
displayOptions: {
|
|
71
|
+
show: {
|
|
72
|
+
resource: ['lists'],
|
|
73
|
+
operation: ['create'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
default: '',
|
|
77
|
+
description: 'The name of the list',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'List Items',
|
|
81
|
+
name: 'list_items_attributes',
|
|
82
|
+
type: 'fixedCollection',
|
|
83
|
+
typeOptions: {
|
|
84
|
+
multipleValues: true,
|
|
85
|
+
},
|
|
86
|
+
displayOptions: {
|
|
87
|
+
show: {
|
|
88
|
+
resource: ['lists'],
|
|
89
|
+
operation: ['create'],
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
default: {},
|
|
93
|
+
placeholder: 'Add List Item',
|
|
94
|
+
options: [
|
|
95
|
+
{
|
|
96
|
+
name: 'item',
|
|
97
|
+
displayName: 'Item',
|
|
98
|
+
values: [
|
|
99
|
+
{
|
|
100
|
+
displayName: 'Name',
|
|
101
|
+
name: 'name',
|
|
102
|
+
type: 'string',
|
|
103
|
+
required: true,
|
|
104
|
+
default: '',
|
|
105
|
+
description: 'Name of the list item',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
description: 'Array of list items to create',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
displayName: 'Update Fields',
|
|
114
|
+
name: 'updateFields',
|
|
115
|
+
type: 'collection',
|
|
116
|
+
placeholder: 'Add Field',
|
|
117
|
+
default: {},
|
|
118
|
+
displayOptions: {
|
|
119
|
+
show: {
|
|
120
|
+
resource: ['lists'],
|
|
121
|
+
operation: ['update'],
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
options: [
|
|
125
|
+
{
|
|
126
|
+
displayName: 'Name',
|
|
127
|
+
name: 'name',
|
|
128
|
+
type: 'string',
|
|
129
|
+
default: '',
|
|
130
|
+
description: 'Name of the list',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
displayName: 'List Items',
|
|
134
|
+
name: 'list_items_attributes',
|
|
135
|
+
type: 'fixedCollection',
|
|
136
|
+
typeOptions: {
|
|
137
|
+
multipleValues: true,
|
|
138
|
+
},
|
|
139
|
+
default: {},
|
|
140
|
+
placeholder: 'Add List Item',
|
|
141
|
+
options: [
|
|
142
|
+
{
|
|
143
|
+
name: 'item',
|
|
144
|
+
displayName: 'Item',
|
|
145
|
+
values: [
|
|
146
|
+
{
|
|
147
|
+
displayName: 'Add New Item',
|
|
148
|
+
name: 'addNew',
|
|
149
|
+
type: 'boolean',
|
|
150
|
+
default: false,
|
|
151
|
+
description: 'Whether to add a new list item. Disable to update or delete an existing item by ID.',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
displayName: 'ID',
|
|
155
|
+
name: 'id',
|
|
156
|
+
type: 'number',
|
|
157
|
+
default: 0,
|
|
158
|
+
description: 'ID of the existing list item (required for updates or deletion)',
|
|
159
|
+
displayOptions: {
|
|
160
|
+
show: {
|
|
161
|
+
addNew: [false],
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
displayName: 'Name',
|
|
167
|
+
name: 'name',
|
|
168
|
+
type: 'string',
|
|
169
|
+
default: '',
|
|
170
|
+
description: 'Name of the list item',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
displayName: 'Destroy',
|
|
174
|
+
name: '_destroy',
|
|
175
|
+
type: 'boolean',
|
|
176
|
+
default: false,
|
|
177
|
+
description: 'Whether to remove this item',
|
|
178
|
+
displayOptions: {
|
|
179
|
+
show: {
|
|
180
|
+
addNew: [false],
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
description: 'Array of list items to update, add, or remove',
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
description: 'Fields to update on the list',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
displayName: 'Filters',
|
|
194
|
+
name: 'filters',
|
|
195
|
+
type: 'collection',
|
|
196
|
+
placeholder: 'Add Filter',
|
|
197
|
+
default: {},
|
|
198
|
+
displayOptions: {
|
|
199
|
+
show: {
|
|
200
|
+
resource: ['lists'],
|
|
201
|
+
operation: ['getAll'],
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
options: [
|
|
205
|
+
{
|
|
206
|
+
displayName: 'Query',
|
|
207
|
+
name: 'query',
|
|
208
|
+
type: 'string',
|
|
209
|
+
default: '',
|
|
210
|
+
description: 'Search lists by name (partial match)',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
displayName: 'Name',
|
|
214
|
+
name: 'name',
|
|
215
|
+
type: 'string',
|
|
216
|
+
default: '',
|
|
217
|
+
description: 'Filter by exact list name',
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
description: 'Filters to apply when retrieving lists',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
displayName: 'Return All',
|
|
224
|
+
name: 'returnAll',
|
|
225
|
+
type: 'boolean',
|
|
226
|
+
displayOptions: {
|
|
227
|
+
show: {
|
|
228
|
+
resource: ['lists'],
|
|
229
|
+
operation: ['getAll'],
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
default: false,
|
|
233
|
+
description: 'Whether to return all results or limit by a set number',
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
displayName: 'Limit',
|
|
237
|
+
name: 'limit',
|
|
238
|
+
type: 'number',
|
|
239
|
+
typeOptions: {
|
|
240
|
+
minValue: 1,
|
|
241
|
+
},
|
|
242
|
+
displayOptions: {
|
|
243
|
+
show: {
|
|
244
|
+
resource: ['lists'],
|
|
245
|
+
operation: ['getAll'],
|
|
246
|
+
returnAll: [false],
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
default: 50,
|
|
250
|
+
description: 'Max number of results to return',
|
|
251
|
+
},
|
|
252
|
+
];
|
|
253
|
+
//# sourceMappingURL=lists.description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lists.description.js","sourceRoot":"","sources":["../../../../../src/nodes/Hudu/descriptions/lists.description.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;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,OAAO,CAAC;aACpB;SACF;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,eAAe;aACxB;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,eAAe;aACxB;YACD;gBACE,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,qBAAqB;gBAClC,MAAM,EAAE,YAAY;aACrB;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gBAAgB;gBAC7B,MAAM,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AwD;KACtE;IAED;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACX,QAAQ,EAAE,CAAC;SACZ;QACD,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;KAC/C;CACF,CAAC"}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
|
|
3
|
+
export const listsOperations: INodeProperties[] = [
|
|
4
|
+
{
|
|
5
|
+
displayName: 'Operation',
|
|
6
|
+
name: 'operation',
|
|
7
|
+
type: 'options',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['lists'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Create',
|
|
17
|
+
value: 'create',
|
|
18
|
+
description: 'Create a new list',
|
|
19
|
+
action: 'Create a list',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Delete',
|
|
23
|
+
value: 'delete',
|
|
24
|
+
description: 'Delete a list',
|
|
25
|
+
action: 'Delete a list',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'Get',
|
|
29
|
+
value: 'get',
|
|
30
|
+
description: 'Get a specific list',
|
|
31
|
+
action: 'Get a list',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Get Many',
|
|
35
|
+
value: 'getAll',
|
|
36
|
+
description: 'Get many lists',
|
|
37
|
+
action: 'Get many lists',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Update',
|
|
41
|
+
value: 'update',
|
|
42
|
+
description: 'Update a list',
|
|
43
|
+
action: 'Update a list',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
default: 'getAll',
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
export const listsFields: INodeProperties[] = [
|
|
51
|
+
// List ID for get, update, delete
|
|
52
|
+
{
|
|
53
|
+
displayName: 'List ID',
|
|
54
|
+
name: 'id',
|
|
55
|
+
type: 'string',
|
|
56
|
+
required: true,
|
|
57
|
+
displayOptions: {
|
|
58
|
+
show: {
|
|
59
|
+
resource: ['lists'],
|
|
60
|
+
operation: ['get', 'update', 'delete'],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
default: '',
|
|
64
|
+
description: 'The unique ID of the list',
|
|
65
|
+
},
|
|
66
|
+
// Name for create
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Name',
|
|
69
|
+
name: 'name',
|
|
70
|
+
type: 'string',
|
|
71
|
+
required: true,
|
|
72
|
+
displayOptions: {
|
|
73
|
+
show: {
|
|
74
|
+
resource: ['lists'],
|
|
75
|
+
operation: ['create'],
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
default: '',
|
|
79
|
+
description: 'The name of the list',
|
|
80
|
+
},
|
|
81
|
+
// List items for create
|
|
82
|
+
{
|
|
83
|
+
displayName: 'List Items',
|
|
84
|
+
name: 'list_items_attributes',
|
|
85
|
+
type: 'fixedCollection',
|
|
86
|
+
typeOptions: {
|
|
87
|
+
multipleValues: true,
|
|
88
|
+
},
|
|
89
|
+
displayOptions: {
|
|
90
|
+
show: {
|
|
91
|
+
resource: ['lists'],
|
|
92
|
+
operation: ['create'],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
default: {},
|
|
96
|
+
placeholder: 'Add List Item',
|
|
97
|
+
options: [
|
|
98
|
+
{
|
|
99
|
+
name: 'item',
|
|
100
|
+
displayName: 'Item',
|
|
101
|
+
values: [
|
|
102
|
+
{
|
|
103
|
+
displayName: 'Name',
|
|
104
|
+
name: 'name',
|
|
105
|
+
type: 'string',
|
|
106
|
+
required: true,
|
|
107
|
+
default: '',
|
|
108
|
+
description: 'Name of the list item',
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
description: 'Array of list items to create',
|
|
114
|
+
},
|
|
115
|
+
// Fields for update
|
|
116
|
+
{
|
|
117
|
+
displayName: 'Update Fields',
|
|
118
|
+
name: 'updateFields',
|
|
119
|
+
type: 'collection',
|
|
120
|
+
placeholder: 'Add Field',
|
|
121
|
+
default: {},
|
|
122
|
+
displayOptions: {
|
|
123
|
+
show: {
|
|
124
|
+
resource: ['lists'],
|
|
125
|
+
operation: ['update'],
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
options: [
|
|
129
|
+
{
|
|
130
|
+
displayName: 'Name',
|
|
131
|
+
name: 'name',
|
|
132
|
+
type: 'string',
|
|
133
|
+
default: '',
|
|
134
|
+
description: 'Name of the list',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
displayName: 'List Items',
|
|
138
|
+
name: 'list_items_attributes',
|
|
139
|
+
type: 'fixedCollection',
|
|
140
|
+
typeOptions: {
|
|
141
|
+
multipleValues: true,
|
|
142
|
+
},
|
|
143
|
+
default: {},
|
|
144
|
+
placeholder: 'Add List Item',
|
|
145
|
+
options: [
|
|
146
|
+
{
|
|
147
|
+
name: 'item',
|
|
148
|
+
displayName: 'Item',
|
|
149
|
+
values: [
|
|
150
|
+
{
|
|
151
|
+
displayName: 'Add New Item',
|
|
152
|
+
name: 'addNew',
|
|
153
|
+
type: 'boolean',
|
|
154
|
+
default: false,
|
|
155
|
+
description: 'Whether to add a new list item. Disable to update or delete an existing item by ID.',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
displayName: 'ID',
|
|
159
|
+
name: 'id',
|
|
160
|
+
type: 'number',
|
|
161
|
+
default: 0,
|
|
162
|
+
description: 'ID of the existing list item (required for updates or deletion)',
|
|
163
|
+
displayOptions: {
|
|
164
|
+
show: {
|
|
165
|
+
addNew: [false],
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
displayName: 'Name',
|
|
171
|
+
name: 'name',
|
|
172
|
+
type: 'string',
|
|
173
|
+
default: '',
|
|
174
|
+
description: 'Name of the list item',
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
displayName: 'Destroy',
|
|
178
|
+
name: '_destroy',
|
|
179
|
+
type: 'boolean',
|
|
180
|
+
default: false,
|
|
181
|
+
description: 'Whether to remove this item',
|
|
182
|
+
displayOptions: {
|
|
183
|
+
show: {
|
|
184
|
+
addNew: [false],
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
description: 'Array of list items to update, add, or remove',
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
description: 'Fields to update on the list',
|
|
195
|
+
},
|
|
196
|
+
// Filters for getAll
|
|
197
|
+
{
|
|
198
|
+
displayName: 'Filters',
|
|
199
|
+
name: 'filters',
|
|
200
|
+
type: 'collection',
|
|
201
|
+
placeholder: 'Add Filter',
|
|
202
|
+
default: {},
|
|
203
|
+
displayOptions: {
|
|
204
|
+
show: {
|
|
205
|
+
resource: ['lists'],
|
|
206
|
+
operation: ['getAll'],
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
options: [
|
|
210
|
+
{
|
|
211
|
+
displayName: 'Query',
|
|
212
|
+
name: 'query',
|
|
213
|
+
type: 'string',
|
|
214
|
+
default: '',
|
|
215
|
+
description: 'Search lists by name (partial match)',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
displayName: 'Name',
|
|
219
|
+
name: 'name',
|
|
220
|
+
type: 'string',
|
|
221
|
+
default: '',
|
|
222
|
+
description: 'Filter by exact list name',
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
description: 'Filters to apply when retrieving lists',
|
|
226
|
+
},
|
|
227
|
+
// Return all toggle for getAll
|
|
228
|
+
{
|
|
229
|
+
displayName: 'Return All',
|
|
230
|
+
name: 'returnAll',
|
|
231
|
+
type: 'boolean',
|
|
232
|
+
displayOptions: {
|
|
233
|
+
show: {
|
|
234
|
+
resource: ['lists'],
|
|
235
|
+
operation: ['getAll'],
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
default: false,
|
|
239
|
+
description: 'Whether to return all results or limit by a set number',
|
|
240
|
+
},
|
|
241
|
+
// Limit for getAll
|
|
242
|
+
{
|
|
243
|
+
displayName: 'Limit',
|
|
244
|
+
name: 'limit',
|
|
245
|
+
type: 'number',
|
|
246
|
+
typeOptions: {
|
|
247
|
+
minValue: 1,
|
|
248
|
+
},
|
|
249
|
+
displayOptions: {
|
|
250
|
+
show: {
|
|
251
|
+
resource: ['lists'],
|
|
252
|
+
operation: ['getAll'],
|
|
253
|
+
returnAll: [false],
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
default: 50,
|
|
257
|
+
description: 'Max number of results to return',
|
|
258
|
+
},
|
|
259
|
+
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../../../src/nodes/Hudu/descriptions/resources.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAG;IAC7B;QACE,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,UAAU;KAClB;IACD;QACE,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,UAAU;KAClB;IACD;QACE,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,QAAQ;KAChB;IACD;QACE,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,qBAAqB;KAC7B;IACD;QACE,IAAI,EAAE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B,OAAO,EAAE,uBAAe;IACxB,OAAO,EAAE,WAAW;CACrB,CAAC"}
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../../../src/nodes/Hudu/descriptions/resources.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAG;IAC7B;QACE,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,UAAU;KAClB;IACD;QACE,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,UAAU;KAClB;IACD;QACE,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,QAAQ;KAChB;IACD;QACE,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,qBAAqB;KAC7B;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,iBAAiB;KACzB;IACD;QACE,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,OAAO;KACf;IACD;QACE,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,WAAW;KACnB;IACD;QACE,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,aAAa;KACrB;IACD;QACE,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,SAAS;KACjB;IACD;QACE,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,aAAa;KACrB;IACD;QACE,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,OAAO;KACf;IACD;QACE,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,YAAY;KACpB;IACD;QACE,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,UAAU;KAClB;IACD;QACE,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,UAAU;KAClB;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,kBAAkB;KAC1B;IACD;QACE,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE,YAAY;KACpB;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