n8n-nodes-qlik-cloud 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.
@@ -0,0 +1,399 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+
3
+ export const appsGetAllDescription: INodeProperties[] = [
4
+ {
5
+ displayName: 'Return All',
6
+ name: 'returnAll',
7
+ type: 'boolean',
8
+ default: false,
9
+ displayOptions: {
10
+ show: {
11
+ resource: ['apps'],
12
+ operation: ['getAll'],
13
+ },
14
+ },
15
+ description: 'Whether to return all results',
16
+ },
17
+ {
18
+ displayName: 'Limit',
19
+ name: 'limit',
20
+ type: 'number',
21
+ default: 50,
22
+ displayOptions: {
23
+ show: {
24
+ resource: ['apps'],
25
+ operation: ['getAll'],
26
+ returnAll: [false],
27
+ },
28
+ },
29
+ description: 'Max number of results to return',
30
+ },
31
+ {
32
+ displayName: 'Options',
33
+ name: 'options',
34
+ type: 'collection',
35
+ placeholder: 'Add Option',
36
+ default: {},
37
+ displayOptions: {
38
+ show: {
39
+ resource: ['apps'],
40
+ operation: ['getAll'],
41
+ },
42
+ },
43
+ options: [
44
+ {
45
+ displayName: 'Filter by Name',
46
+ name: 'name',
47
+ type: 'string',
48
+ default: '',
49
+ description: 'Filter apps by name (case-insensitive)',
50
+ },
51
+ {
52
+ displayName: 'Filter by Space',
53
+ name: 'spaceId',
54
+ type: 'string',
55
+ default: '',
56
+ description: 'Filter apps by space ID',
57
+ },
58
+ ],
59
+ },
60
+ ];
61
+
62
+ export const appsGetDescription: INodeProperties[] = [
63
+ {
64
+ displayName: 'App ID',
65
+ name: 'appId',
66
+ type: 'string',
67
+ default: '',
68
+ required: true,
69
+ displayOptions: {
70
+ show: {
71
+ resource: ['apps'],
72
+ operation: ['get'],
73
+ },
74
+ },
75
+ description: 'The ID of the app to retrieve',
76
+ },
77
+ ];
78
+
79
+ export const appsCreateDescription: INodeProperties[] = [
80
+ {
81
+ displayName: 'App Name',
82
+ name: 'name',
83
+ type: 'string',
84
+ default: '',
85
+ required: true,
86
+ displayOptions: {
87
+ show: {
88
+ resource: ['apps'],
89
+ operation: ['create'],
90
+ },
91
+ },
92
+ description: 'Name of the new app',
93
+ },
94
+ {
95
+ displayName: 'Options',
96
+ name: 'options',
97
+ type: 'collection',
98
+ placeholder: 'Add Option',
99
+ default: {},
100
+ displayOptions: {
101
+ show: {
102
+ resource: ['apps'],
103
+ operation: ['create'],
104
+ },
105
+ },
106
+ options: [
107
+ {
108
+ displayName: 'Description',
109
+ name: 'description',
110
+ type: 'string',
111
+ default: '',
112
+ description: 'Description of the app',
113
+ },
114
+ {
115
+ displayName: 'Locale',
116
+ name: 'locale',
117
+ type: 'string',
118
+ default: '',
119
+ description: 'Locale for the app (e.g., en-US)',
120
+ },
121
+ {
122
+ displayName: 'Space ID',
123
+ name: 'spaceId',
124
+ type: 'string',
125
+ default: '',
126
+ description: 'Space where the app will be created',
127
+ },
128
+ ],
129
+ },
130
+ ];
131
+
132
+ export const appsUpdateDescription: INodeProperties[] = [
133
+ {
134
+ displayName: 'App ID',
135
+ name: 'appId',
136
+ type: 'string',
137
+ default: '',
138
+ required: true,
139
+ displayOptions: {
140
+ show: {
141
+ resource: ['apps'],
142
+ operation: ['update'],
143
+ },
144
+ },
145
+ description: 'The ID of the app to update',
146
+ },
147
+ {
148
+ displayName: 'Body (JSON)',
149
+ name: 'body',
150
+ type: 'json',
151
+ default: '{}',
152
+ required: true,
153
+ displayOptions: {
154
+ show: {
155
+ resource: ['apps'],
156
+ operation: ['update'],
157
+ },
158
+ },
159
+ description: 'App attributes to update',
160
+ },
161
+ ];
162
+
163
+ export const appsDeleteDescription: INodeProperties[] = [
164
+ {
165
+ displayName: 'App ID',
166
+ name: 'appId',
167
+ type: 'string',
168
+ default: '',
169
+ required: true,
170
+ displayOptions: {
171
+ show: {
172
+ resource: ['apps'],
173
+ operation: ['delete'],
174
+ },
175
+ },
176
+ description: 'The ID of the app to delete',
177
+ },
178
+ ];
179
+
180
+ export const appsCopyDescription: INodeProperties[] = [
181
+ {
182
+ displayName: 'Source App ID',
183
+ name: 'appId',
184
+ type: 'string',
185
+ default: '',
186
+ required: true,
187
+ displayOptions: {
188
+ show: {
189
+ resource: ['apps'],
190
+ operation: ['copy'],
191
+ },
192
+ },
193
+ description: 'The ID of the app to copy',
194
+ },
195
+ {
196
+ displayName: 'New App Name',
197
+ name: 'name',
198
+ type: 'string',
199
+ default: '',
200
+ required: true,
201
+ displayOptions: {
202
+ show: {
203
+ resource: ['apps'],
204
+ operation: ['copy'],
205
+ },
206
+ },
207
+ description: 'Name for the copied app',
208
+ },
209
+ {
210
+ displayName: 'Options',
211
+ name: 'options',
212
+ type: 'collection',
213
+ placeholder: 'Add Option',
214
+ default: {},
215
+ displayOptions: {
216
+ show: {
217
+ resource: ['apps'],
218
+ operation: ['copy'],
219
+ },
220
+ },
221
+ options: [
222
+ {
223
+ displayName: 'Description',
224
+ name: 'description',
225
+ type: 'string',
226
+ default: '',
227
+ description: 'Description for the copied app',
228
+ },
229
+ {
230
+ displayName: 'Space ID',
231
+ name: 'spaceId',
232
+ type: 'string',
233
+ default: '',
234
+ description: 'Space where the app will be copied',
235
+ },
236
+ ],
237
+ },
238
+ ];
239
+
240
+ export const appsExportDescription: INodeProperties[] = [
241
+ {
242
+ displayName: 'App ID',
243
+ name: 'appId',
244
+ type: 'string',
245
+ default: '',
246
+ required: true,
247
+ displayOptions: {
248
+ show: {
249
+ resource: ['apps'],
250
+ operation: ['export'],
251
+ },
252
+ },
253
+ description: 'The ID of the app to export',
254
+ },
255
+ ];
256
+
257
+ export const appsPublishDescription: INodeProperties[] = [
258
+ {
259
+ displayName: 'App ID',
260
+ name: 'appId',
261
+ type: 'string',
262
+ default: '',
263
+ required: true,
264
+ displayOptions: {
265
+ show: {
266
+ resource: ['apps'],
267
+ operation: ['publish'],
268
+ },
269
+ },
270
+ description: 'The ID of the app to publish',
271
+ },
272
+ {
273
+ displayName: 'Publish Options',
274
+ name: 'publishOptions',
275
+ type: 'collection',
276
+ placeholder: 'Add Option',
277
+ default: {},
278
+ displayOptions: {
279
+ show: {
280
+ resource: ['apps'],
281
+ operation: ['publish'],
282
+ },
283
+ },
284
+ options: [
285
+ {
286
+ displayName: 'Target Space ID',
287
+ name: 'spaceId',
288
+ type: 'string',
289
+ default: '',
290
+ description: 'Space ID where app will be published',
291
+ },
292
+ ],
293
+ },
294
+ ];
295
+
296
+ export const appsPrivilegesDescription: INodeProperties[] = [
297
+ {
298
+ displayName: 'Options',
299
+ name: 'options',
300
+ type: 'collection',
301
+ placeholder: 'Add Option',
302
+ default: {},
303
+ displayOptions: {
304
+ show: {
305
+ resource: ['apps'],
306
+ operation: ['privileges'],
307
+ },
308
+ },
309
+ options: [
310
+ {
311
+ displayName: 'Filter by Role',
312
+ name: 'role',
313
+ type: 'string',
314
+ default: '',
315
+ description: 'Filter privileges by role',
316
+ },
317
+ ],
318
+ },
319
+ ];
320
+
321
+ export const appDescription: INodeProperties[] = [
322
+ {
323
+ displayName: 'Operation',
324
+ name: 'operation',
325
+ type: 'options',
326
+ noDataExpression: true,
327
+ displayOptions: {
328
+ show: {
329
+ resource: ['apps'],
330
+ },
331
+ },
332
+ options: [
333
+ {
334
+ name: 'Get All',
335
+ value: 'getAll',
336
+ action: 'Get all apps',
337
+ description: 'Retrieve all available apps',
338
+ },
339
+ {
340
+ name: 'Get',
341
+ value: 'get',
342
+ action: 'Get an app',
343
+ description: 'Retrieve a specific app by ID',
344
+ },
345
+ {
346
+ name: 'Create',
347
+ value: 'create',
348
+ action: 'Create an app',
349
+ description: 'Create a new app',
350
+ },
351
+ {
352
+ name: 'Update',
353
+ value: 'update',
354
+ action: 'Update an app',
355
+ description: 'Update app properties',
356
+ },
357
+ {
358
+ name: 'Delete',
359
+ value: 'delete',
360
+ action: 'Delete an app',
361
+ description: 'Delete an app',
362
+ },
363
+ {
364
+ name: 'Copy',
365
+ value: 'copy',
366
+ action: 'Copy an app',
367
+ description: 'Create a copy of an app',
368
+ },
369
+ {
370
+ name: 'Export',
371
+ value: 'export',
372
+ action: 'Export an app',
373
+ description: 'Export app data',
374
+ },
375
+ {
376
+ name: 'Publish',
377
+ value: 'publish',
378
+ action: 'Publish an app',
379
+ description: 'Publish an app to a space',
380
+ },
381
+ {
382
+ name: 'Get Privileges',
383
+ value: 'privileges',
384
+ action: 'Get app privileges',
385
+ description: 'Retrieve app access privileges',
386
+ },
387
+ ],
388
+ default: 'getAll',
389
+ },
390
+ ...appsGetAllDescription,
391
+ ...appsGetDescription,
392
+ ...appsCreateDescription,
393
+ ...appsUpdateDescription,
394
+ ...appsDeleteDescription,
395
+ ...appsCopyDescription,
396
+ ...appsExportDescription,
397
+ ...appsPublishDescription,
398
+ ...appsPrivilegesDescription,
399
+ ];
@@ -0,0 +1,223 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+
3
+ export const assistantsGetAllDescription: INodeProperties[] = [
4
+ {
5
+ displayName: 'Options',
6
+ name: 'options',
7
+ type: 'collection',
8
+ placeholder: 'Add Option',
9
+ default: {},
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['assistants'],
13
+ operation: ['getAll'],
14
+ },
15
+ },
16
+ options: [
17
+ {
18
+ displayName: 'Limit',
19
+ name: 'limit',
20
+ type: 'number',
21
+ default: 50,
22
+ description: 'Max number of assistants to return',
23
+ },
24
+ ],
25
+ },
26
+ ];
27
+
28
+ export const assistantsGetDescription: INodeProperties[] = [
29
+ {
30
+ displayName: 'Assistant ID',
31
+ name: 'assistantId',
32
+ type: 'string',
33
+ default: '',
34
+ required: true,
35
+ displayOptions: {
36
+ show: {
37
+ resource: ['assistants'],
38
+ operation: ['get'],
39
+ },
40
+ },
41
+ description: 'The ID of the assistant to retrieve',
42
+ },
43
+ ];
44
+
45
+ export const assistantsCreateDescription: INodeProperties[] = [
46
+ {
47
+ displayName: 'Assistant Name',
48
+ name: 'name',
49
+ type: 'string',
50
+ default: '',
51
+ required: true,
52
+ displayOptions: {
53
+ show: {
54
+ resource: ['assistants'],
55
+ operation: ['create'],
56
+ },
57
+ },
58
+ description: 'Name of the new assistant',
59
+ },
60
+ {
61
+ displayName: 'Options',
62
+ name: 'options',
63
+ type: 'collection',
64
+ placeholder: 'Add Option',
65
+ default: {},
66
+ displayOptions: {
67
+ show: {
68
+ resource: ['assistants'],
69
+ operation: ['create'],
70
+ },
71
+ },
72
+ options: [
73
+ {
74
+ displayName: 'Description',
75
+ name: 'description',
76
+ type: 'string',
77
+ default: '',
78
+ description: 'Description of the assistant',
79
+ },
80
+ ],
81
+ },
82
+ ];
83
+
84
+ export const assistantsSearchDescription: INodeProperties[] = [
85
+ {
86
+ displayName: 'Assistant ID',
87
+ name: 'assistantId',
88
+ type: 'string',
89
+ default: '',
90
+ required: true,
91
+ displayOptions: {
92
+ show: {
93
+ resource: ['assistants'],
94
+ operation: ['search'],
95
+ },
96
+ },
97
+ description: 'The ID of the assistant to search in',
98
+ },
99
+ {
100
+ displayName: 'Query',
101
+ name: 'query',
102
+ type: 'string',
103
+ default: '',
104
+ required: true,
105
+ displayOptions: {
106
+ show: {
107
+ resource: ['assistants'],
108
+ operation: ['search'],
109
+ },
110
+ },
111
+ description: 'Search query to execute',
112
+ },
113
+ {
114
+ displayName: 'Options',
115
+ name: 'options',
116
+ type: 'collection',
117
+ placeholder: 'Add Option',
118
+ default: {},
119
+ displayOptions: {
120
+ show: {
121
+ resource: ['assistants'],
122
+ operation: ['search'],
123
+ },
124
+ },
125
+ options: [
126
+ {
127
+ displayName: 'Top N Results',
128
+ name: 'topN',
129
+ type: 'number',
130
+ default: 5,
131
+ description: 'Number of top results to return (max 50)',
132
+ },
133
+ {
134
+ displayName: 'Search Mode',
135
+ name: 'mode',
136
+ type: 'options',
137
+ options: [
138
+ {
139
+ name: 'SIMPLE',
140
+ value: 'SIMPLE',
141
+ description: 'Semantic search only',
142
+ },
143
+ {
144
+ name: 'FULL',
145
+ value: 'FULL',
146
+ description: 'Semantic search with reranking and hybrid search',
147
+ },
148
+ ],
149
+ default: 'SIMPLE',
150
+ description: 'Search mode to use',
151
+ },
152
+ ],
153
+ },
154
+ ];
155
+
156
+ export const assistantsDeleteDescription: INodeProperties[] = [
157
+ {
158
+ displayName: 'Assistant ID',
159
+ name: 'assistantId',
160
+ type: 'string',
161
+ default: '',
162
+ required: true,
163
+ displayOptions: {
164
+ show: {
165
+ resource: ['assistants'],
166
+ operation: ['delete'],
167
+ },
168
+ },
169
+ description: 'The ID of the assistant to delete',
170
+ },
171
+ ];
172
+
173
+ export const assistantDescription: INodeProperties[] = [
174
+ {
175
+ displayName: 'Operation',
176
+ name: 'operation',
177
+ type: 'options',
178
+ noDataExpression: true,
179
+ displayOptions: {
180
+ show: {
181
+ resource: ['assistants'],
182
+ },
183
+ },
184
+ options: [
185
+ {
186
+ name: 'Get All',
187
+ value: 'getAll',
188
+ action: 'Get all assistants',
189
+ description: 'Retrieve all available assistants',
190
+ },
191
+ {
192
+ name: 'Get',
193
+ value: 'get',
194
+ action: 'Get an assistant',
195
+ description: 'Retrieve a specific assistant by ID',
196
+ },
197
+ {
198
+ name: 'Create',
199
+ value: 'create',
200
+ action: 'Create an assistant',
201
+ description: 'Create a new assistant',
202
+ },
203
+ {
204
+ name: 'Search',
205
+ value: 'search',
206
+ action: 'Search assistant sources',
207
+ description: 'Perform search in assistant sources',
208
+ },
209
+ {
210
+ name: 'Delete',
211
+ value: 'delete',
212
+ action: 'Delete an assistant',
213
+ description: 'Delete an assistant',
214
+ },
215
+ ],
216
+ default: 'getAll',
217
+ },
218
+ ...assistantsGetAllDescription,
219
+ ...assistantsGetDescription,
220
+ ...assistantsCreateDescription,
221
+ ...assistantsSearchDescription,
222
+ ...assistantsDeleteDescription,
223
+ ];