n8n-nodes-qlik-cloud 1.0.17 → 1.1.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.
@@ -1,5 +1,14 @@
1
1
  import type { INodeProperties } from 'n8n-workflow';
2
2
 
3
+ const appIdField = {
4
+ displayName: 'App ID',
5
+ name: 'appId',
6
+ type: 'string',
7
+ default: '',
8
+ required: true,
9
+ description: 'The ID of the app',
10
+ } satisfies INodeProperties;
11
+
3
12
  export const appsGetAllDescription: INodeProperties[] = [
4
13
  {
5
14
  displayName: 'Return All',
@@ -61,24 +70,19 @@ export const appsGetAllDescription: INodeProperties[] = [
61
70
 
62
71
  export const appsGetDescription: INodeProperties[] = [
63
72
  {
64
- displayName: 'App ID',
65
- name: 'appId',
66
- type: 'string',
67
- default: '',
68
- required: true,
73
+ ...appIdField,
69
74
  displayOptions: {
70
75
  show: {
71
76
  resource: ['apps'],
72
77
  operation: ['get'],
73
78
  },
74
79
  },
75
- description: 'The ID of the app to retrieve',
76
80
  },
77
81
  ];
78
82
 
79
83
  export const appsCreateDescription: INodeProperties[] = [
80
84
  {
81
- displayName: 'App Name',
85
+ displayName: 'Name',
82
86
  name: 'name',
83
87
  type: 'string',
84
88
  default: '',
@@ -89,7 +93,7 @@ export const appsCreateDescription: INodeProperties[] = [
89
93
  operation: ['create'],
90
94
  },
91
95
  },
92
- description: 'Name of the new app',
96
+ description: 'Name for the new app',
93
97
  },
94
98
  {
95
99
  displayName: 'Options',
@@ -109,21 +113,22 @@ export const appsCreateDescription: INodeProperties[] = [
109
113
  name: 'description',
110
114
  type: 'string',
111
115
  default: '',
112
- description: 'Description of the app',
116
+ description: 'Optional description for the app',
113
117
  },
114
118
  {
115
119
  displayName: 'Locale',
116
120
  name: 'locale',
117
121
  type: 'string',
118
122
  default: '',
119
- description: 'Locale for the app (e.g., en-US)',
123
+ placeholder: 'en-US',
124
+ description: 'Locale for the app (e.g. en-US)',
120
125
  },
121
126
  {
122
127
  displayName: 'Space ID',
123
128
  name: 'spaceId',
124
129
  type: 'string',
125
130
  default: '',
126
- description: 'Space where the app will be created',
131
+ description: 'Space ID where the app will be created',
127
132
  },
128
133
  ],
129
134
  },
@@ -131,18 +136,13 @@ export const appsCreateDescription: INodeProperties[] = [
131
136
 
132
137
  export const appsUpdateDescription: INodeProperties[] = [
133
138
  {
134
- displayName: 'App ID',
135
- name: 'appId',
136
- type: 'string',
137
- default: '',
138
- required: true,
139
+ ...appIdField,
139
140
  displayOptions: {
140
141
  show: {
141
142
  resource: ['apps'],
142
143
  operation: ['update'],
143
144
  },
144
145
  },
145
- description: 'The ID of the app to update',
146
146
  },
147
147
  {
148
148
  displayName: 'Body (JSON)',
@@ -162,11 +162,7 @@ export const appsUpdateDescription: INodeProperties[] = [
162
162
 
163
163
  export const appsDeleteDescription: INodeProperties[] = [
164
164
  {
165
- displayName: 'App ID',
166
- name: 'appId',
167
- type: 'string',
168
- default: '',
169
- required: true,
165
+ ...appIdField,
170
166
  displayOptions: {
171
167
  show: {
172
168
  resource: ['apps'],
@@ -179,11 +175,7 @@ export const appsDeleteDescription: INodeProperties[] = [
179
175
 
180
176
  export const appsCopyDescription: INodeProperties[] = [
181
177
  {
182
- displayName: 'Source App ID',
183
- name: 'appId',
184
- type: 'string',
185
- default: '',
186
- required: true,
178
+ ...appIdField,
187
179
  displayOptions: {
188
180
  show: {
189
181
  resource: ['apps'],
@@ -193,7 +185,7 @@ export const appsCopyDescription: INodeProperties[] = [
193
185
  description: 'The ID of the app to copy',
194
186
  },
195
187
  {
196
- displayName: 'New App Name',
188
+ displayName: 'New Name',
197
189
  name: 'name',
198
190
  type: 'string',
199
191
  default: '',
@@ -224,14 +216,14 @@ export const appsCopyDescription: INodeProperties[] = [
224
216
  name: 'description',
225
217
  type: 'string',
226
218
  default: '',
227
- description: 'Description for the copied app',
219
+ description: 'Optional description for the copied app',
228
220
  },
229
221
  {
230
222
  displayName: 'Space ID',
231
223
  name: 'spaceId',
232
224
  type: 'string',
233
225
  default: '',
234
- description: 'Space where the app will be copied',
226
+ description: 'Space ID where the app copy will be placed',
235
227
  },
236
228
  ],
237
229
  },
@@ -239,11 +231,7 @@ export const appsCopyDescription: INodeProperties[] = [
239
231
 
240
232
  export const appsExportDescription: INodeProperties[] = [
241
233
  {
242
- displayName: 'App ID',
243
- name: 'appId',
244
- type: 'string',
245
- default: '',
246
- required: true,
234
+ ...appIdField,
247
235
  displayOptions: {
248
236
  show: {
249
237
  resource: ['apps'],
@@ -256,15 +244,11 @@ export const appsExportDescription: INodeProperties[] = [
256
244
 
257
245
  export const appsPublishDescription: INodeProperties[] = [
258
246
  {
259
- displayName: 'App ID',
260
- name: 'appId',
261
- type: 'string',
262
- default: '',
263
- required: true,
247
+ ...appIdField,
264
248
  displayOptions: {
265
249
  show: {
266
250
  resource: ['apps'],
267
- operation: ['publish'],
251
+ operation: ['publish', 'republish'],
268
252
  },
269
253
  },
270
254
  description: 'The ID of the app to publish',
@@ -278,112 +262,1133 @@ export const appsPublishDescription: INodeProperties[] = [
278
262
  displayOptions: {
279
263
  show: {
280
264
  resource: ['apps'],
281
- operation: ['publish'],
265
+ operation: ['publish', 'republish'],
282
266
  },
283
267
  },
284
268
  options: [
285
269
  {
286
- displayName: 'Target Space ID',
270
+ displayName: 'Space ID',
287
271
  name: 'spaceId',
288
272
  type: 'string',
289
273
  default: '',
290
- description: 'Space ID where app will be published',
274
+ description: 'Space ID where the app will be (re)published',
291
275
  },
292
276
  ],
293
277
  },
294
278
  ];
295
279
 
296
- export const appsPrivilegesDescription: INodeProperties[] = [
280
+ export const appsDataLineageDescription: INodeProperties[] = [
297
281
  {
298
- displayName: 'Options',
299
- name: 'options',
300
- type: 'collection',
301
- placeholder: 'Add Option',
302
- default: {},
282
+ ...appIdField,
303
283
  displayOptions: {
304
284
  show: {
305
285
  resource: ['apps'],
306
- operation: ['privileges'],
286
+ operation: ['dataLineage'],
307
287
  },
308
288
  },
309
- options: [
310
- {
311
- displayName: 'Filter by Role',
312
- name: 'role',
313
- type: 'string',
314
- default: '',
315
- description: 'Filter privileges by role',
289
+ description: 'Retrieve lineage information for the app',
290
+ },
291
+ ];
292
+
293
+ export const appsDataMetadataDescription: INodeProperties[] = [
294
+ {
295
+ ...appIdField,
296
+ displayOptions: {
297
+ show: {
298
+ resource: ['apps'],
299
+ operation: ['dataMetadata'],
316
300
  },
317
- ],
301
+ },
302
+ description: 'Retrieve data model metadata for the app',
318
303
  },
319
304
  ];
320
305
 
321
- export const appDescription: INodeProperties[] = [
306
+ export const appsInsightAnalysesDescription: INodeProperties[] = [
322
307
  {
323
- displayName: 'Operation',
324
- name: 'operation',
325
- type: 'options',
326
- noDataExpression: true,
308
+ ...appIdField,
327
309
  displayOptions: {
328
310
  show: {
329
311
  resource: ['apps'],
312
+ operation: ['listInsights'],
330
313
  },
331
314
  },
332
- options: [
333
- {
334
- name: 'Get All',
335
- value: 'getAll',
336
- action: 'Get all apps',
337
- description: 'Retrieve all available apps',
315
+ description: 'List insight analyses for the app',
316
+ },
317
+ ];
318
+
319
+ export const appsInsightRecommendDescription: INodeProperties[] = [
320
+ {
321
+ ...appIdField,
322
+ displayOptions: {
323
+ show: {
324
+ resource: ['apps'],
325
+ operation: ['recommendInsights'],
338
326
  },
339
- {
340
- name: 'Get',
341
- value: 'get',
342
- action: 'Get an app',
343
- description: 'Retrieve a specific app by ID',
327
+ },
328
+ description: 'Recommend insights for the app',
329
+ },
330
+ {
331
+ displayName: 'Recommendation Body (JSON)',
332
+ name: 'body',
333
+ type: 'json',
334
+ default: '{}',
335
+ required: true,
336
+ displayOptions: {
337
+ show: {
338
+ resource: ['apps'],
339
+ operation: ['recommendInsights'],
344
340
  },
345
- {
346
- name: 'Create',
347
- value: 'create',
348
- action: 'Create an app',
349
- description: 'Create a new app',
341
+ },
342
+ description: 'Payload describing fields/measures to recommend insights for',
343
+ },
344
+ ];
345
+
346
+ export const appsInsightModelDescription: INodeProperties[] = [
347
+ {
348
+ ...appIdField,
349
+ displayOptions: {
350
+ show: {
351
+ resource: ['apps'],
352
+ operation: ['getInsightModel'],
350
353
  },
351
- {
352
- name: 'Update',
353
- value: 'update',
354
- action: 'Update an app',
355
- description: 'Update app properties',
354
+ },
355
+ description: 'Retrieve the insight analyses model',
356
+ },
357
+ ];
358
+
359
+ export const appsMediaGetFileDescription: INodeProperties[] = [
360
+ {
361
+ ...appIdField,
362
+ displayOptions: {
363
+ show: {
364
+ resource: ['apps'],
365
+ operation: ['mediaGetFile'],
356
366
  },
357
- {
358
- name: 'Delete',
359
- value: 'delete',
360
- action: 'Delete an app',
361
- description: 'Delete an app',
367
+ },
368
+ },
369
+ {
370
+ displayName: 'File Path',
371
+ name: 'path',
372
+ type: 'string',
373
+ default: '',
374
+ required: true,
375
+ displayOptions: {
376
+ show: {
377
+ resource: ['apps'],
378
+ operation: ['mediaGetFile'],
362
379
  },
363
- {
364
- name: 'Copy',
365
- value: 'copy',
366
- action: 'Copy an app',
367
- description: 'Create a copy of an app',
380
+ },
381
+ description: 'Path within the app media folder (e.g. my/image.png)',
382
+ },
383
+ {
384
+ displayName: 'Binary Property',
385
+ name: 'binaryProperty',
386
+ type: 'string',
387
+ default: 'data',
388
+ displayOptions: {
389
+ show: {
390
+ resource: ['apps'],
391
+ operation: ['mediaGetFile'],
368
392
  },
369
- {
370
- name: 'Export',
371
- value: 'export',
372
- action: 'Export an app',
373
- description: 'Export app data',
393
+ },
394
+ description: 'Name of the binary property to store the file in',
395
+ },
396
+ ];
397
+
398
+ export const appsMediaUploadFileDescription: INodeProperties[] = [
399
+ {
400
+ ...appIdField,
401
+ displayOptions: {
402
+ show: {
403
+ resource: ['apps'],
404
+ operation: ['mediaUploadFile'],
374
405
  },
375
- {
376
- name: 'Publish',
377
- value: 'publish',
378
- action: 'Publish an app',
379
- description: 'Publish an app to a space',
406
+ },
407
+ },
408
+ {
409
+ displayName: 'File Path',
410
+ name: 'path',
411
+ type: 'string',
412
+ default: '',
413
+ required: true,
414
+ displayOptions: {
415
+ show: {
416
+ resource: ['apps'],
417
+ operation: ['mediaUploadFile'],
380
418
  },
381
- {
382
- name: 'Get Privileges',
383
- value: 'privileges',
384
- action: 'Get app privileges',
385
- description: 'Retrieve app access privileges',
419
+ },
420
+ description: 'Path within the app media folder to upload to',
421
+ },
422
+ {
423
+ displayName: 'Binary Property',
424
+ name: 'binaryProperty',
425
+ type: 'string',
426
+ default: 'data',
427
+ displayOptions: {
428
+ show: {
429
+ resource: ['apps'],
430
+ operation: ['mediaUploadFile'],
431
+ },
432
+ },
433
+ description: 'Name of the incoming binary property to upload',
434
+ },
435
+ {
436
+ displayName: 'Content Type',
437
+ name: 'contentType',
438
+ type: 'string',
439
+ default: 'application/octet-stream',
440
+ displayOptions: {
441
+ show: {
442
+ resource: ['apps'],
443
+ operation: ['mediaUploadFile'],
444
+ },
445
+ },
446
+ description: 'MIME type for the upload',
447
+ },
448
+ ];
449
+
450
+ export const appsMediaDeleteFileDescription: INodeProperties[] = [
451
+ {
452
+ ...appIdField,
453
+ displayOptions: {
454
+ show: {
455
+ resource: ['apps'],
456
+ operation: ['mediaDeleteFile'],
457
+ },
458
+ },
459
+ },
460
+ {
461
+ displayName: 'File Path',
462
+ name: 'path',
463
+ type: 'string',
464
+ default: '',
465
+ required: true,
466
+ displayOptions: {
467
+ show: {
468
+ resource: ['apps'],
469
+ operation: ['mediaDeleteFile'],
470
+ },
471
+ },
472
+ description: 'Path within the app media folder to delete',
473
+ },
474
+ ];
475
+
476
+ export const appsMediaListDescription: INodeProperties[] = [
477
+ {
478
+ ...appIdField,
479
+ displayOptions: {
480
+ show: {
481
+ resource: ['apps'],
482
+ operation: ['mediaList'],
483
+ },
484
+ },
485
+ },
486
+ {
487
+ displayName: 'Folder Path',
488
+ name: 'path',
489
+ type: 'string',
490
+ default: '',
491
+ displayOptions: {
492
+ show: {
493
+ resource: ['apps'],
494
+ operation: ['mediaList'],
495
+ },
496
+ },
497
+ description: 'Folder path to list (empty for root)',
498
+ },
499
+ ];
500
+
501
+ export const appsMediaThumbnailDescription: INodeProperties[] = [
502
+ {
503
+ ...appIdField,
504
+ displayOptions: {
505
+ show: {
506
+ resource: ['apps'],
507
+ operation: ['mediaThumbnail'],
508
+ },
509
+ },
510
+ },
511
+ {
512
+ displayName: 'Binary Property',
513
+ name: 'binaryProperty',
514
+ type: 'string',
515
+ default: 'thumbnail',
516
+ displayOptions: {
517
+ show: {
518
+ resource: ['apps'],
519
+ operation: ['mediaThumbnail'],
520
+ },
521
+ },
522
+ description: 'Name of the binary property to store the thumbnail in',
523
+ },
524
+ ];
525
+
526
+ export const appsChangeObjectOwnerDescription: INodeProperties[] = [
527
+ {
528
+ ...appIdField,
529
+ displayOptions: {
530
+ show: {
531
+ resource: ['apps'],
532
+ operation: ['changeObjectOwner'],
533
+ },
534
+ },
535
+ },
536
+ {
537
+ displayName: 'Object ID',
538
+ name: 'objectId',
539
+ type: 'string',
540
+ default: '',
541
+ required: true,
542
+ displayOptions: {
543
+ show: {
544
+ resource: ['apps'],
545
+ operation: ['changeObjectOwner'],
546
+ },
547
+ },
548
+ description: 'App object ID to transfer ownership for',
549
+ },
550
+ {
551
+ displayName: 'New Owner ID',
552
+ name: 'ownerId',
553
+ type: 'string',
554
+ default: '',
555
+ required: true,
556
+ displayOptions: {
557
+ show: {
558
+ resource: ['apps'],
559
+ operation: ['changeObjectOwner'],
560
+ },
561
+ },
562
+ description: 'User ID of the new owner',
563
+ },
564
+ ];
565
+
566
+ export const appsUpdateOwnerDescription: INodeProperties[] = [
567
+ {
568
+ ...appIdField,
569
+ displayOptions: {
570
+ show: {
571
+ resource: ['apps'],
572
+ operation: ['updateOwner'],
573
+ },
574
+ },
575
+ },
576
+ {
577
+ displayName: 'New Owner ID',
578
+ name: 'ownerId',
579
+ type: 'string',
580
+ default: '',
581
+ required: true,
582
+ displayOptions: {
583
+ show: {
584
+ resource: ['apps'],
585
+ operation: ['updateOwner'],
586
+ },
587
+ },
588
+ description: 'User ID of the new app owner',
589
+ },
590
+ ];
591
+
592
+ export const appsReloadLogsDescription: INodeProperties[] = [
593
+ {
594
+ ...appIdField,
595
+ displayOptions: {
596
+ show: {
597
+ resource: ['apps'],
598
+ operation: ['reloadLogs'],
386
599
  },
600
+ },
601
+ description: 'App ID whose reload logs will be listed',
602
+ },
603
+ {
604
+ displayName: 'Return All',
605
+ name: 'returnAll',
606
+ type: 'boolean',
607
+ default: false,
608
+ displayOptions: {
609
+ show: {
610
+ resource: ['apps'],
611
+ operation: ['reloadLogs'],
612
+ },
613
+ },
614
+ description: 'Whether to return all reload logs',
615
+ },
616
+ {
617
+ displayName: 'Limit',
618
+ name: 'limit',
619
+ type: 'number',
620
+ default: 50,
621
+ displayOptions: {
622
+ show: {
623
+ resource: ['apps'],
624
+ operation: ['reloadLogs'],
625
+ returnAll: [false],
626
+ },
627
+ },
628
+ description: 'Max number of reload logs to return',
629
+ },
630
+ ];
631
+
632
+ export const appsReloadLogDescription: INodeProperties[] = [
633
+ {
634
+ ...appIdField,
635
+ displayOptions: {
636
+ show: {
637
+ resource: ['apps'],
638
+ operation: ['reloadLog'],
639
+ },
640
+ },
641
+ },
642
+ {
643
+ displayName: 'Reload ID',
644
+ name: 'reloadId',
645
+ type: 'string',
646
+ default: '',
647
+ required: true,
648
+ displayOptions: {
649
+ show: {
650
+ resource: ['apps'],
651
+ operation: ['reloadLog'],
652
+ },
653
+ },
654
+ description: 'Reload ID whose log will be fetched',
655
+ },
656
+ ];
657
+
658
+ export const appsReloadMetadataDescription: INodeProperties[] = [
659
+ {
660
+ ...appIdField,
661
+ displayOptions: {
662
+ show: {
663
+ resource: ['apps'],
664
+ operation: ['reloadMetadata'],
665
+ },
666
+ },
667
+ },
668
+ {
669
+ displayName: 'Reload ID',
670
+ name: 'reloadId',
671
+ type: 'string',
672
+ default: '',
673
+ required: true,
674
+ displayOptions: {
675
+ show: {
676
+ resource: ['apps'],
677
+ operation: ['reloadMetadata'],
678
+ },
679
+ },
680
+ description: 'Reload ID whose metadata will be fetched',
681
+ },
682
+ ];
683
+
684
+ export const appsReportFiltersGetAllDescription: INodeProperties[] = [
685
+ {
686
+ ...appIdField,
687
+ displayOptions: {
688
+ show: {
689
+ resource: ['apps'],
690
+ operation: ['reportFiltersGetAll'],
691
+ },
692
+ },
693
+ description: 'App ID whose report filters will be listed',
694
+ },
695
+ {
696
+ displayName: 'Return All',
697
+ name: 'returnAll',
698
+ type: 'boolean',
699
+ default: false,
700
+ displayOptions: {
701
+ show: {
702
+ resource: ['apps'],
703
+ operation: ['reportFiltersGetAll'],
704
+ },
705
+ },
706
+ description: 'Whether to return all report filters',
707
+ },
708
+ {
709
+ displayName: 'Limit',
710
+ name: 'limit',
711
+ type: 'number',
712
+ default: 50,
713
+ displayOptions: {
714
+ show: {
715
+ resource: ['apps'],
716
+ operation: ['reportFiltersGetAll'],
717
+ returnAll: [false],
718
+ },
719
+ },
720
+ description: 'Max number of report filters to return',
721
+ },
722
+ {
723
+ displayName: 'Options',
724
+ name: 'options',
725
+ type: 'collection',
726
+ placeholder: 'Add Option',
727
+ default: {},
728
+ displayOptions: {
729
+ show: {
730
+ resource: ['apps'],
731
+ operation: ['reportFiltersGetAll'],
732
+ },
733
+ },
734
+ options: [
735
+ {
736
+ displayName: 'Filter Query',
737
+ name: 'filter',
738
+ type: 'string',
739
+ default: '',
740
+ description: 'Free text filter for report filters',
741
+ },
742
+ {
743
+ displayName: 'Filter Types',
744
+ name: 'filterTypes',
745
+ type: 'string',
746
+ default: '',
747
+ description: 'Comma separated filter types (e.g. REP)',
748
+ },
749
+ {
750
+ displayName: 'Page',
751
+ name: 'page',
752
+ type: 'number',
753
+ default: 0,
754
+ description: 'Page number (0-based) when not returning all',
755
+ },
756
+ {
757
+ displayName: 'Sort',
758
+ name: 'sort',
759
+ type: 'string',
760
+ default: '',
761
+ description: 'Sort expression, e.g. +name or -name',
762
+ },
763
+ ],
764
+ },
765
+ ];
766
+
767
+ export const appsReportFiltersCreateDescription: INodeProperties[] = [
768
+ {
769
+ ...appIdField,
770
+ displayOptions: {
771
+ show: {
772
+ resource: ['apps'],
773
+ operation: ['reportFiltersCreate'],
774
+ },
775
+ },
776
+ },
777
+ {
778
+ displayName: 'Filter Body (JSON)',
779
+ name: 'body',
780
+ type: 'json',
781
+ default: '{}',
782
+ required: true,
783
+ displayOptions: {
784
+ show: {
785
+ resource: ['apps'],
786
+ operation: ['reportFiltersCreate'],
787
+ },
788
+ },
789
+ description: 'Report filter definition to create',
790
+ },
791
+ ];
792
+
793
+ export const appsReportFiltersGetDescription: INodeProperties[] = [
794
+ {
795
+ ...appIdField,
796
+ displayOptions: {
797
+ show: {
798
+ resource: ['apps'],
799
+ operation: ['reportFiltersGet'],
800
+ },
801
+ },
802
+ },
803
+ {
804
+ displayName: 'Filter ID',
805
+ name: 'filterId',
806
+ type: 'string',
807
+ default: '',
808
+ required: true,
809
+ displayOptions: {
810
+ show: {
811
+ resource: ['apps'],
812
+ operation: ['reportFiltersGet'],
813
+ },
814
+ },
815
+ description: 'Report filter ID to retrieve',
816
+ },
817
+ ];
818
+
819
+ export const appsReportFiltersUpdateDescription: INodeProperties[] = [
820
+ {
821
+ ...appIdField,
822
+ displayOptions: {
823
+ show: {
824
+ resource: ['apps'],
825
+ operation: ['reportFiltersUpdate'],
826
+ },
827
+ },
828
+ },
829
+ {
830
+ displayName: 'Filter ID',
831
+ name: 'filterId',
832
+ type: 'string',
833
+ default: '',
834
+ required: true,
835
+ displayOptions: {
836
+ show: {
837
+ resource: ['apps'],
838
+ operation: ['reportFiltersUpdate'],
839
+ },
840
+ },
841
+ },
842
+ {
843
+ displayName: 'Update Body (JSON)',
844
+ name: 'body',
845
+ type: 'json',
846
+ default: '{}',
847
+ required: true,
848
+ displayOptions: {
849
+ show: {
850
+ resource: ['apps'],
851
+ operation: ['reportFiltersUpdate'],
852
+ },
853
+ },
854
+ description: 'Patch document for the report filter',
855
+ },
856
+ ];
857
+
858
+ export const appsReportFiltersDeleteDescription: INodeProperties[] = [
859
+ {
860
+ ...appIdField,
861
+ displayOptions: {
862
+ show: {
863
+ resource: ['apps'],
864
+ operation: ['reportFiltersDelete'],
865
+ },
866
+ },
867
+ },
868
+ {
869
+ displayName: 'Filter ID',
870
+ name: 'filterId',
871
+ type: 'string',
872
+ default: '',
873
+ required: true,
874
+ displayOptions: {
875
+ show: {
876
+ resource: ['apps'],
877
+ operation: ['reportFiltersDelete'],
878
+ },
879
+ },
880
+ },
881
+ ];
882
+
883
+ export const appsReportFiltersCountDescription: INodeProperties[] = [
884
+ {
885
+ ...appIdField,
886
+ displayOptions: {
887
+ show: {
888
+ resource: ['apps'],
889
+ operation: ['reportFiltersCount'],
890
+ },
891
+ },
892
+ },
893
+ {
894
+ displayName: 'Options',
895
+ name: 'options',
896
+ type: 'collection',
897
+ placeholder: 'Add Option',
898
+ default: {},
899
+ displayOptions: {
900
+ show: {
901
+ resource: ['apps'],
902
+ operation: ['reportFiltersCount'],
903
+ },
904
+ },
905
+ options: [
906
+ {
907
+ displayName: 'Filter Query',
908
+ name: 'filter',
909
+ type: 'string',
910
+ default: '',
911
+ description: 'Free text filter for report filters',
912
+ },
913
+ {
914
+ displayName: 'Filter Types',
915
+ name: 'filterTypes',
916
+ type: 'string',
917
+ default: '',
918
+ description: 'Comma separated filter types (e.g. REP)',
919
+ },
920
+ ],
921
+ },
922
+ ];
923
+
924
+ export const appsScriptsGetAllDescription: INodeProperties[] = [
925
+ {
926
+ ...appIdField,
927
+ displayOptions: {
928
+ show: {
929
+ resource: ['apps'],
930
+ operation: ['scriptsGetAll'],
931
+ },
932
+ },
933
+ description: 'List load scripts for the app',
934
+ },
935
+ ];
936
+
937
+ export const appsScriptsCreateDescription: INodeProperties[] = [
938
+ {
939
+ ...appIdField,
940
+ displayOptions: {
941
+ show: {
942
+ resource: ['apps'],
943
+ operation: ['scriptsCreate'],
944
+ },
945
+ },
946
+ },
947
+ {
948
+ displayName: 'Script Body (JSON)',
949
+ name: 'body',
950
+ type: 'json',
951
+ default: '{}',
952
+ required: true,
953
+ displayOptions: {
954
+ show: {
955
+ resource: ['apps'],
956
+ operation: ['scriptsCreate'],
957
+ },
958
+ },
959
+ description: 'Script definition to create',
960
+ },
961
+ ];
962
+
963
+ export const appsScriptsGetDescription: INodeProperties[] = [
964
+ {
965
+ ...appIdField,
966
+ displayOptions: {
967
+ show: {
968
+ resource: ['apps'],
969
+ operation: ['scriptsGet'],
970
+ },
971
+ },
972
+ },
973
+ {
974
+ displayName: 'Script ID',
975
+ name: 'scriptId',
976
+ type: 'string',
977
+ default: '',
978
+ required: true,
979
+ displayOptions: {
980
+ show: {
981
+ resource: ['apps'],
982
+ operation: ['scriptsGet'],
983
+ },
984
+ },
985
+ description: 'Script ID to retrieve',
986
+ },
987
+ ];
988
+
989
+ export const appsScriptsUpdateDescription: INodeProperties[] = [
990
+ {
991
+ ...appIdField,
992
+ displayOptions: {
993
+ show: {
994
+ resource: ['apps'],
995
+ operation: ['scriptsUpdate'],
996
+ },
997
+ },
998
+ },
999
+ {
1000
+ displayName: 'Script ID',
1001
+ name: 'scriptId',
1002
+ type: 'string',
1003
+ default: '',
1004
+ required: true,
1005
+ displayOptions: {
1006
+ show: {
1007
+ resource: ['apps'],
1008
+ operation: ['scriptsUpdate'],
1009
+ },
1010
+ },
1011
+ },
1012
+ {
1013
+ displayName: 'Update Body (JSON)',
1014
+ name: 'body',
1015
+ type: 'json',
1016
+ default: '{}',
1017
+ required: true,
1018
+ displayOptions: {
1019
+ show: {
1020
+ resource: ['apps'],
1021
+ operation: ['scriptsUpdate'],
1022
+ },
1023
+ },
1024
+ description: 'Patch document for the script',
1025
+ },
1026
+ ];
1027
+
1028
+ export const appsScriptsDeleteDescription: INodeProperties[] = [
1029
+ {
1030
+ ...appIdField,
1031
+ displayOptions: {
1032
+ show: {
1033
+ resource: ['apps'],
1034
+ operation: ['scriptsDelete'],
1035
+ },
1036
+ },
1037
+ },
1038
+ {
1039
+ displayName: 'Script ID',
1040
+ name: 'scriptId',
1041
+ type: 'string',
1042
+ default: '',
1043
+ required: true,
1044
+ displayOptions: {
1045
+ show: {
1046
+ resource: ['apps'],
1047
+ operation: ['scriptsDelete'],
1048
+ },
1049
+ },
1050
+ },
1051
+ ];
1052
+
1053
+ export const appsSpaceMoveDescription: INodeProperties[] = [
1054
+ {
1055
+ ...appIdField,
1056
+ displayOptions: {
1057
+ show: {
1058
+ resource: ['apps'],
1059
+ operation: ['moveToSpace'],
1060
+ },
1061
+ },
1062
+ },
1063
+ {
1064
+ displayName: 'Target Space ID',
1065
+ name: 'spaceId',
1066
+ type: 'string',
1067
+ default: '',
1068
+ required: true,
1069
+ displayOptions: {
1070
+ show: {
1071
+ resource: ['apps'],
1072
+ operation: ['moveToSpace'],
1073
+ },
1074
+ },
1075
+ description: 'Space ID to move the app to',
1076
+ },
1077
+ ];
1078
+
1079
+ export const appsSpaceRemoveDescription: INodeProperties[] = [
1080
+ {
1081
+ ...appIdField,
1082
+ displayOptions: {
1083
+ show: {
1084
+ resource: ['apps'],
1085
+ operation: ['removeFromSpace'],
1086
+ },
1087
+ },
1088
+ description: 'Remove the app from its current space',
1089
+ },
1090
+ ];
1091
+
1092
+ export const appsEvaluationsGetAllDescription: INodeProperties[] = [
1093
+ {
1094
+ ...appIdField,
1095
+ displayOptions: {
1096
+ show: {
1097
+ resource: ['apps'],
1098
+ operation: ['evaluationsGetAll'],
1099
+ },
1100
+ },
1101
+ },
1102
+ ];
1103
+
1104
+ export const appsEvaluationsCreateDescription: INodeProperties[] = [
1105
+ {
1106
+ ...appIdField,
1107
+ displayOptions: {
1108
+ show: {
1109
+ resource: ['apps'],
1110
+ operation: ['evaluationsCreate'],
1111
+ },
1112
+ },
1113
+ },
1114
+ {
1115
+ displayName: 'Evaluation Body (JSON)',
1116
+ name: 'body',
1117
+ type: 'json',
1118
+ default: '{}',
1119
+ required: true,
1120
+ displayOptions: {
1121
+ show: {
1122
+ resource: ['apps'],
1123
+ operation: ['evaluationsCreate'],
1124
+ },
1125
+ },
1126
+ description: 'Evaluation definition to create',
1127
+ },
1128
+ ];
1129
+
1130
+ export const appsEvaluationsCompareDescription: INodeProperties[] = [
1131
+ {
1132
+ displayName: 'Base Evaluation ID',
1133
+ name: 'baseEvaluationId',
1134
+ type: 'string',
1135
+ default: '',
1136
+ required: true,
1137
+ displayOptions: {
1138
+ show: {
1139
+ resource: ['apps'],
1140
+ operation: ['evaluationsCompare'],
1141
+ },
1142
+ },
1143
+ },
1144
+ {
1145
+ displayName: 'Comparison Evaluation ID',
1146
+ name: 'comparisonEvaluationId',
1147
+ type: 'string',
1148
+ default: '',
1149
+ required: true,
1150
+ displayOptions: {
1151
+ show: {
1152
+ resource: ['apps'],
1153
+ operation: ['evaluationsCompare'],
1154
+ },
1155
+ },
1156
+ },
1157
+ ];
1158
+
1159
+ export const appsEvaluationsDownloadCompareDescription: INodeProperties[] = [
1160
+ {
1161
+ displayName: 'Base Evaluation ID',
1162
+ name: 'baseEvaluationId',
1163
+ type: 'string',
1164
+ default: '',
1165
+ required: true,
1166
+ displayOptions: {
1167
+ show: {
1168
+ resource: ['apps'],
1169
+ operation: ['evaluationsDownloadCompare'],
1170
+ },
1171
+ },
1172
+ },
1173
+ {
1174
+ displayName: 'Comparison Evaluation ID',
1175
+ name: 'comparisonEvaluationId',
1176
+ type: 'string',
1177
+ default: '',
1178
+ required: true,
1179
+ displayOptions: {
1180
+ show: {
1181
+ resource: ['apps'],
1182
+ operation: ['evaluationsDownloadCompare'],
1183
+ },
1184
+ },
1185
+ },
1186
+ {
1187
+ displayName: 'Binary Property',
1188
+ name: 'binaryProperty',
1189
+ type: 'string',
1190
+ default: 'comparison',
1191
+ displayOptions: {
1192
+ show: {
1193
+ resource: ['apps'],
1194
+ operation: ['evaluationsDownloadCompare'],
1195
+ },
1196
+ },
1197
+ description: 'Binary property to store the download in',
1198
+ },
1199
+ ];
1200
+
1201
+ export const appsEvaluationGetDescription: INodeProperties[] = [
1202
+ {
1203
+ displayName: 'Evaluation ID',
1204
+ name: 'evaluationId',
1205
+ type: 'string',
1206
+ default: '',
1207
+ required: true,
1208
+ displayOptions: {
1209
+ show: {
1210
+ resource: ['apps'],
1211
+ operation: ['evaluationGet'],
1212
+ },
1213
+ },
1214
+ description: 'Evaluation ID to retrieve',
1215
+ },
1216
+ ];
1217
+
1218
+ export const appsEvaluationDownloadDescription: INodeProperties[] = [
1219
+ {
1220
+ displayName: 'Evaluation ID',
1221
+ name: 'evaluationId',
1222
+ type: 'string',
1223
+ default: '',
1224
+ required: true,
1225
+ displayOptions: {
1226
+ show: {
1227
+ resource: ['apps'],
1228
+ operation: ['evaluationDownload'],
1229
+ },
1230
+ },
1231
+ },
1232
+ {
1233
+ displayName: 'Binary Property',
1234
+ name: 'binaryProperty',
1235
+ type: 'string',
1236
+ default: 'evaluation',
1237
+ displayOptions: {
1238
+ show: {
1239
+ resource: ['apps'],
1240
+ operation: ['evaluationDownload'],
1241
+ },
1242
+ },
1243
+ description: 'Binary property to store the download in',
1244
+ },
1245
+ ];
1246
+
1247
+ export const appsImportDescription: INodeProperties[] = [
1248
+ {
1249
+ displayName: 'Binary Property',
1250
+ name: 'binaryProperty',
1251
+ type: 'string',
1252
+ default: 'data',
1253
+ displayOptions: {
1254
+ show: {
1255
+ resource: ['apps'],
1256
+ operation: ['importApp'],
1257
+ },
1258
+ },
1259
+ description: 'Binary property containing the QVF file to import',
1260
+ },
1261
+ {
1262
+ displayName: 'Options',
1263
+ name: 'options',
1264
+ type: 'collection',
1265
+ placeholder: 'Add Option',
1266
+ default: {},
1267
+ displayOptions: {
1268
+ show: {
1269
+ resource: ['apps'],
1270
+ operation: ['importApp'],
1271
+ },
1272
+ },
1273
+ options: [
1274
+ {
1275
+ displayName: 'App Name',
1276
+ name: 'name',
1277
+ type: 'string',
1278
+ default: '',
1279
+ description: 'Name to use for the imported app',
1280
+ },
1281
+ {
1282
+ displayName: 'Space ID',
1283
+ name: 'spaceId',
1284
+ type: 'string',
1285
+ default: '',
1286
+ description: 'Space ID to place the imported app in',
1287
+ },
1288
+ ],
1289
+ },
1290
+ ];
1291
+
1292
+ export const appsValidateScriptDescription: INodeProperties[] = [
1293
+ {
1294
+ displayName: 'Validation Body (JSON)',
1295
+ name: 'body',
1296
+ type: 'json',
1297
+ default: '{}',
1298
+ required: true,
1299
+ displayOptions: {
1300
+ show: {
1301
+ resource: ['apps'],
1302
+ operation: ['validateScript'],
1303
+ },
1304
+ },
1305
+ description: 'Script validation payload',
1306
+ },
1307
+ ];
1308
+
1309
+ export const appsPrivilegesDescription: INodeProperties[] = [
1310
+ {
1311
+ displayName: 'Options',
1312
+ name: 'options',
1313
+ type: 'collection',
1314
+ placeholder: 'Add Option',
1315
+ default: {},
1316
+ displayOptions: {
1317
+ show: {
1318
+ resource: ['apps'],
1319
+ operation: ['privileges'],
1320
+ },
1321
+ },
1322
+ options: [
1323
+ {
1324
+ displayName: 'Filter by Role',
1325
+ name: 'role',
1326
+ type: 'string',
1327
+ default: '',
1328
+ description: 'Filter privileges by role',
1329
+ },
1330
+ ],
1331
+ },
1332
+ ];
1333
+
1334
+ export const appDescription: INodeProperties[] = [
1335
+ {
1336
+ displayName: 'Operation',
1337
+ name: 'operation',
1338
+ type: 'options',
1339
+ noDataExpression: true,
1340
+ displayOptions: {
1341
+ show: {
1342
+ resource: ['apps'],
1343
+ },
1344
+ },
1345
+ options: [
1346
+ { name: 'Change Object Owner', value: 'changeObjectOwner', action: 'Change object owner', description: 'Transfer ownership of an app object' },
1347
+ { name: 'Copy', value: 'copy', action: 'Copy an app', description: 'Create a copy of an app' },
1348
+ { name: 'Create', value: 'create', action: 'Create an app', description: 'Create a new app' },
1349
+ { name: 'Data Lineage', value: 'dataLineage', action: 'Get data lineage', description: 'Retrieve data lineage for an app' },
1350
+ { name: 'Data Metadata', value: 'dataMetadata', action: 'Get data metadata', description: 'Retrieve data model metadata for an app' },
1351
+ { name: 'Delete', value: 'delete', action: 'Delete an app', description: 'Delete an app' },
1352
+ { name: 'Evaluation Download', value: 'evaluationDownload', action: 'Download evaluation', description: 'Download an evaluation result' },
1353
+ { name: 'Evaluation Get', value: 'evaluationGet', action: 'Get evaluation', description: 'Retrieve a specific evaluation' },
1354
+ { name: 'Evaluations Compare', value: 'evaluationsCompare', action: 'Compare evaluations', description: 'Compare two app evaluations' },
1355
+ { name: 'Evaluations Download Compare', value: 'evaluationsDownloadCompare', action: 'Download evaluation comparison', description: 'Download comparison results between evaluations' },
1356
+ { name: 'Evaluations Get All', value: 'evaluationsGetAll', action: 'List evaluations', description: 'List evaluations for an app' },
1357
+ { name: 'Evaluations Create', value: 'evaluationsCreate', action: 'Create evaluation', description: 'Create a new evaluation for an app' },
1358
+ { name: 'Export', value: 'export', action: 'Export an app', description: 'Export app data' },
1359
+ { name: 'Get', value: 'get', action: 'Get an app', description: 'Retrieve a specific app by ID' },
1360
+ { name: 'Get All', value: 'getAll', action: 'Get all apps', description: 'Retrieve all available apps' },
1361
+ { name: 'Get Insight Model', value: 'getInsightModel', action: 'Get insight model', description: 'Retrieve the insight analyses model' },
1362
+ { name: 'Import', value: 'importApp', action: 'Import an app', description: 'Import an app from a QVF file' },
1363
+ { name: 'List Insight Analyses', value: 'listInsights', action: 'List insight analyses', description: 'List insight analyses for an app' },
1364
+ { name: 'Media Delete File', value: 'mediaDeleteFile', action: 'Delete media file', description: 'Delete a media file in the app' },
1365
+ { name: 'Media Get File', value: 'mediaGetFile', action: 'Download media file', description: 'Download a media file from the app' },
1366
+ { name: 'Media List', value: 'mediaList', action: 'List media files', description: 'List media files in the app' },
1367
+ { name: 'Media Thumbnail', value: 'mediaThumbnail', action: 'Get app thumbnail', description: 'Download app thumbnail' },
1368
+ { name: 'Media Upload File', value: 'mediaUploadFile', action: 'Upload media file', description: 'Upload a media file to the app' },
1369
+ { name: 'Move to Space', value: 'moveToSpace', action: 'Move app to space', description: 'Move app to another space' },
1370
+ { name: 'Privileges', value: 'privileges', action: 'Get app privileges', description: 'Retrieve app access privileges' },
1371
+ { name: 'Publish', value: 'publish', action: 'Publish an app', description: 'Publish an app to a space' },
1372
+ { name: 'Reload Log', value: 'reloadLog', action: 'Get a reload log', description: 'Retrieve a specific reload log' },
1373
+ { name: 'Reload Logs', value: 'reloadLogs', action: 'Get reload logs', description: 'Retrieve reload logs for an app' },
1374
+ { name: 'Reload Metadata', value: 'reloadMetadata', action: 'Get reload metadata', description: 'Retrieve reload metadata for a reload' },
1375
+ { name: 'Remove From Space', value: 'removeFromSpace', action: 'Remove app from space', description: 'Remove the app from its current space' },
1376
+ { name: 'Report Filters Count', value: 'reportFiltersCount', action: 'Count report filters', description: 'Count report filters for an app' },
1377
+ { name: 'Report Filters Create', value: 'reportFiltersCreate', action: 'Create report filter', description: 'Create a new report filter' },
1378
+ { name: 'Report Filters Delete', value: 'reportFiltersDelete', action: 'Delete report filter', description: 'Delete a report filter' },
1379
+ { name: 'Report Filters Get', value: 'reportFiltersGet', action: 'Get report filter', description: 'Retrieve a specific report filter' },
1380
+ { name: 'Report Filters Get All', value: 'reportFiltersGetAll', action: 'List report filters', description: 'List report filters for an app' },
1381
+ { name: 'Report Filters Update', value: 'reportFiltersUpdate', action: 'Update report filter', description: 'Update a report filter' },
1382
+ { name: 'Republish', value: 'republish', action: 'Republish an app', description: 'Republish an app to a space' },
1383
+ { name: 'Recommend Insights', value: 'recommendInsights', action: 'Recommend insights', description: 'Get recommended insights for an app' },
1384
+ { name: 'Scripts Create', value: 'scriptsCreate', action: 'Create script', description: 'Create a new script entry' },
1385
+ { name: 'Scripts Delete', value: 'scriptsDelete', action: 'Delete script', description: 'Delete a script entry' },
1386
+ { name: 'Scripts Get', value: 'scriptsGet', action: 'Get script', description: 'Retrieve a specific script entry' },
1387
+ { name: 'Scripts Get All', value: 'scriptsGetAll', action: 'List scripts', description: 'List scripts for an app' },
1388
+ { name: 'Scripts Update', value: 'scriptsUpdate', action: 'Update script', description: 'Update a script entry' },
1389
+ { name: 'Update', value: 'update', action: 'Update an app', description: 'Update app properties' },
1390
+ { name: 'Update Owner', value: 'updateOwner', action: 'Update app owner', description: 'Transfer ownership of the app' },
1391
+ { name: 'Validate Script', value: 'validateScript', action: 'Validate script', description: 'Validate a script for an app' },
387
1392
  ],
388
1393
  default: 'getAll',
389
1394
  },
@@ -395,5 +1400,41 @@ export const appDescription: INodeProperties[] = [
395
1400
  ...appsCopyDescription,
396
1401
  ...appsExportDescription,
397
1402
  ...appsPublishDescription,
1403
+ ...appsDataLineageDescription,
1404
+ ...appsDataMetadataDescription,
1405
+ ...appsInsightAnalysesDescription,
1406
+ ...appsInsightRecommendDescription,
1407
+ ...appsInsightModelDescription,
1408
+ ...appsMediaGetFileDescription,
1409
+ ...appsMediaUploadFileDescription,
1410
+ ...appsMediaDeleteFileDescription,
1411
+ ...appsMediaListDescription,
1412
+ ...appsMediaThumbnailDescription,
1413
+ ...appsChangeObjectOwnerDescription,
1414
+ ...appsUpdateOwnerDescription,
1415
+ ...appsReloadLogsDescription,
1416
+ ...appsReloadLogDescription,
1417
+ ...appsReloadMetadataDescription,
1418
+ ...appsReportFiltersGetAllDescription,
1419
+ ...appsReportFiltersCreateDescription,
1420
+ ...appsReportFiltersGetDescription,
1421
+ ...appsReportFiltersUpdateDescription,
1422
+ ...appsReportFiltersDeleteDescription,
1423
+ ...appsReportFiltersCountDescription,
1424
+ ...appsScriptsGetAllDescription,
1425
+ ...appsScriptsCreateDescription,
1426
+ ...appsScriptsGetDescription,
1427
+ ...appsScriptsUpdateDescription,
1428
+ ...appsScriptsDeleteDescription,
1429
+ ...appsSpaceMoveDescription,
1430
+ ...appsSpaceRemoveDescription,
1431
+ ...appsEvaluationsGetAllDescription,
1432
+ ...appsEvaluationsCreateDescription,
1433
+ ...appsEvaluationsCompareDescription,
1434
+ ...appsEvaluationsDownloadCompareDescription,
1435
+ ...appsEvaluationGetDescription,
1436
+ ...appsEvaluationDownloadDescription,
1437
+ ...appsImportDescription,
1438
+ ...appsValidateScriptDescription,
398
1439
  ...appsPrivilegesDescription,
399
1440
  ];