n8n-nodes-qlik-cloud 1.0.0 → 1.0.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/credentials/QlikCloudApi.credentials.d.ts +7 -0
- package/dist/credentials/QlikCloudApi.credentials.js +33 -0
- package/dist/credentials/QlikCloudOAuth2Api.credentials.d.ts +9 -0
- package/dist/credentials/QlikCloudOAuth2Api.credentials.js +72 -0
- package/dist/icons/icons/qlik.svg +2 -0
- package/dist/icons/qlik.svg +25 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -0
- package/dist/nodes/QlikCloud/QlikCloud.node.d.ts +5 -0
- package/dist/nodes/QlikCloud/QlikCloud.node.js +346 -0
- package/dist/nodes/QlikCloud/resources/apps/index.d.ts +11 -0
- package/dist/nodes/QlikCloud/resources/apps/index.js +391 -0
- package/dist/nodes/QlikCloud/resources/assistants/index.d.ts +7 -0
- package/dist/nodes/QlikCloud/resources/assistants/index.js +219 -0
- package/dist/nodes/QlikCloud/resources/audits/index.d.ts +7 -0
- package/dist/nodes/QlikCloud/resources/audits/index.js +213 -0
- package/dist/nodes/QlikCloud/resources/items/index.d.ts +9 -0
- package/dist/nodes/QlikCloud/resources/items/index.js +352 -0
- package/dist/nodes/QlikCloud/shared/transport.d.ts +2 -0
- package/dist/nodes/QlikCloud/shared/transport.js +34 -0
- package/dist/shared/transport.d.ts +2 -0
- package/dist/shared/transport.js +32 -0
- package/package.json +3 -2
- package/src/icons/qlik.svg +2 -0
- package/src/index.ts +1 -1
- package/src/nodes/QlikCloud/QlikCloud.node.ts +318 -320
- package/src/{shared → nodes/QlikCloud/shared}/transport.ts +9 -7
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.auditDescription = exports.auditsGetSettingsDescription = exports.auditsGetTypesDescription = exports.auditsGetSourcesDescription = exports.auditsGetDescription = exports.auditsGetAllDescription = void 0;
|
|
4
|
+
exports.auditsGetAllDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Return All',
|
|
7
|
+
name: 'returnAll',
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
default: false,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['audits'],
|
|
13
|
+
operation: ['getAll'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
description: 'Whether to return all results',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Limit',
|
|
20
|
+
name: 'limit',
|
|
21
|
+
type: 'number',
|
|
22
|
+
default: 10,
|
|
23
|
+
displayOptions: {
|
|
24
|
+
show: {
|
|
25
|
+
resource: ['audits'],
|
|
26
|
+
operation: ['getAll'],
|
|
27
|
+
returnAll: [false],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
description: 'Max number of audit events to return (1-100)',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Options',
|
|
34
|
+
name: 'options',
|
|
35
|
+
type: 'collection',
|
|
36
|
+
placeholder: 'Add Option',
|
|
37
|
+
default: {},
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['audits'],
|
|
41
|
+
operation: ['getAll'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
options: [
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Filter by Event Type',
|
|
47
|
+
name: 'eventType',
|
|
48
|
+
type: 'string',
|
|
49
|
+
default: '',
|
|
50
|
+
description: 'Filter by event type',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Filter by User ID',
|
|
54
|
+
name: 'userId',
|
|
55
|
+
type: 'string',
|
|
56
|
+
default: '',
|
|
57
|
+
description: 'Filter by user who triggered the event',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: 'Filter by Source',
|
|
61
|
+
name: 'source',
|
|
62
|
+
type: 'string',
|
|
63
|
+
default: '',
|
|
64
|
+
description: 'Filter by event source',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
displayName: 'Event Time Range',
|
|
68
|
+
name: 'eventTime',
|
|
69
|
+
type: 'string',
|
|
70
|
+
default: '',
|
|
71
|
+
placeholder: 'YYYY-MM-DDThh:mm:ss.sssZ/YYYY-MM-DDThh:mm:ss.sssZ',
|
|
72
|
+
description: 'ISO 8601 formatted time range',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
displayName: 'Sort By',
|
|
76
|
+
name: 'sort',
|
|
77
|
+
type: 'options',
|
|
78
|
+
options: [
|
|
79
|
+
{
|
|
80
|
+
name: 'Event Time (Descending)',
|
|
81
|
+
value: '-eventTime',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Event Time (Ascending)',
|
|
85
|
+
value: '+eventTime',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'Source',
|
|
89
|
+
value: 'source',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'Event Type',
|
|
93
|
+
value: 'eventType',
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
default: '-eventTime',
|
|
97
|
+
description: 'Property to sort by',
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
];
|
|
102
|
+
exports.auditsGetDescription = [
|
|
103
|
+
{
|
|
104
|
+
displayName: 'Audit Event ID',
|
|
105
|
+
name: 'auditId',
|
|
106
|
+
type: 'string',
|
|
107
|
+
default: '',
|
|
108
|
+
required: true,
|
|
109
|
+
displayOptions: {
|
|
110
|
+
show: {
|
|
111
|
+
resource: ['audits'],
|
|
112
|
+
operation: ['get'],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
description: 'The ID of the audit event to retrieve',
|
|
116
|
+
},
|
|
117
|
+
];
|
|
118
|
+
exports.auditsGetSourcesDescription = [
|
|
119
|
+
{
|
|
120
|
+
displayName: 'Description',
|
|
121
|
+
name: 'description',
|
|
122
|
+
type: 'string',
|
|
123
|
+
default: 'Retrieves list of possible event sources for audit events',
|
|
124
|
+
displayOptions: {
|
|
125
|
+
show: {
|
|
126
|
+
resource: ['audits'],
|
|
127
|
+
operation: ['getSources'],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
description: 'Returns available audit event sources',
|
|
131
|
+
},
|
|
132
|
+
];
|
|
133
|
+
exports.auditsGetTypesDescription = [
|
|
134
|
+
{
|
|
135
|
+
displayName: 'Description',
|
|
136
|
+
name: 'description',
|
|
137
|
+
type: 'string',
|
|
138
|
+
default: 'Retrieves list of possible event types for audit events',
|
|
139
|
+
displayOptions: {
|
|
140
|
+
show: {
|
|
141
|
+
resource: ['audits'],
|
|
142
|
+
operation: ['getTypes'],
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
description: 'Returns available audit event types',
|
|
146
|
+
},
|
|
147
|
+
];
|
|
148
|
+
exports.auditsGetSettingsDescription = [
|
|
149
|
+
{
|
|
150
|
+
displayName: 'Description',
|
|
151
|
+
name: 'description',
|
|
152
|
+
type: 'string',
|
|
153
|
+
default: 'Retrieves audit server configuration options',
|
|
154
|
+
displayOptions: {
|
|
155
|
+
show: {
|
|
156
|
+
resource: ['audits'],
|
|
157
|
+
operation: ['getSettings'],
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
description: 'Returns audit server configuration including TTL and archive settings',
|
|
161
|
+
},
|
|
162
|
+
];
|
|
163
|
+
exports.auditDescription = [
|
|
164
|
+
{
|
|
165
|
+
displayName: 'Operation',
|
|
166
|
+
name: 'operation',
|
|
167
|
+
type: 'options',
|
|
168
|
+
noDataExpression: true,
|
|
169
|
+
displayOptions: {
|
|
170
|
+
show: {
|
|
171
|
+
resource: ['audits'],
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
options: [
|
|
175
|
+
{
|
|
176
|
+
name: 'Get All',
|
|
177
|
+
value: 'getAll',
|
|
178
|
+
action: 'Get all audit events',
|
|
179
|
+
description: 'Retrieve recent audit events',
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'Get',
|
|
183
|
+
value: 'get',
|
|
184
|
+
action: 'Get an audit event',
|
|
185
|
+
description: 'Retrieve a specific audit event by ID',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: 'Get Sources',
|
|
189
|
+
value: 'getSources',
|
|
190
|
+
action: 'Get available event sources',
|
|
191
|
+
description: 'List possible audit event sources',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'Get Types',
|
|
195
|
+
value: 'getTypes',
|
|
196
|
+
action: 'Get available event types',
|
|
197
|
+
description: 'List possible audit event types',
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: 'Get Settings',
|
|
201
|
+
value: 'getSettings',
|
|
202
|
+
action: 'Get audit settings',
|
|
203
|
+
description: 'Retrieve audit server configuration',
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
default: 'getAll',
|
|
207
|
+
},
|
|
208
|
+
...exports.auditsGetAllDescription,
|
|
209
|
+
...exports.auditsGetDescription,
|
|
210
|
+
...exports.auditsGetSourcesDescription,
|
|
211
|
+
...exports.auditsGetTypesDescription,
|
|
212
|
+
...exports.auditsGetSettingsDescription,
|
|
213
|
+
];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const itemsGetAllDescription: INodeProperties[];
|
|
3
|
+
export declare const itemsGetDescription: INodeProperties[];
|
|
4
|
+
export declare const itemsUpdateDescription: INodeProperties[];
|
|
5
|
+
export declare const itemsDeleteDescription: INodeProperties[];
|
|
6
|
+
export declare const itemsCollectionsDescription: INodeProperties[];
|
|
7
|
+
export declare const itemsPublishedItemsDescription: INodeProperties[];
|
|
8
|
+
export declare const itemsSettingsDescription: INodeProperties[];
|
|
9
|
+
export declare const itemDescription: INodeProperties[];
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.itemDescription = exports.itemsSettingsDescription = exports.itemsPublishedItemsDescription = exports.itemsCollectionsDescription = exports.itemsDeleteDescription = exports.itemsUpdateDescription = exports.itemsGetDescription = exports.itemsGetAllDescription = void 0;
|
|
4
|
+
exports.itemsGetAllDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Return All',
|
|
7
|
+
name: 'returnAll',
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
default: false,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['items'],
|
|
13
|
+
operation: ['getAll'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
description: 'Whether to return all results',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Limit',
|
|
20
|
+
name: 'limit',
|
|
21
|
+
type: 'number',
|
|
22
|
+
default: 10,
|
|
23
|
+
displayOptions: {
|
|
24
|
+
show: {
|
|
25
|
+
resource: ['items'],
|
|
26
|
+
operation: ['getAll'],
|
|
27
|
+
returnAll: [false],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
description: 'Max number of items to return (1-100)',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Options',
|
|
34
|
+
name: 'options',
|
|
35
|
+
type: 'collection',
|
|
36
|
+
placeholder: 'Add Option',
|
|
37
|
+
default: {},
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['items'],
|
|
41
|
+
operation: ['getAll'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
options: [
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Search by Name',
|
|
47
|
+
name: 'name',
|
|
48
|
+
type: 'string',
|
|
49
|
+
default: '',
|
|
50
|
+
description: 'Case-insensitive search for item by name',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Filter by Resource Type',
|
|
54
|
+
name: 'resourceType',
|
|
55
|
+
type: 'string',
|
|
56
|
+
default: '',
|
|
57
|
+
placeholder: 'e.g., app,qvapp,dataasset',
|
|
58
|
+
description: 'Filter by resource type(s)',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Filter by Space',
|
|
62
|
+
name: 'spaceId',
|
|
63
|
+
type: 'string',
|
|
64
|
+
default: '',
|
|
65
|
+
description: 'Filter by space ID',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Filter by Owner',
|
|
69
|
+
name: 'ownerId',
|
|
70
|
+
type: 'string',
|
|
71
|
+
default: '',
|
|
72
|
+
description: 'Filter by owner ID',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
displayName: 'Sort By',
|
|
76
|
+
name: 'sort',
|
|
77
|
+
type: 'options',
|
|
78
|
+
options: [
|
|
79
|
+
{
|
|
80
|
+
name: 'Created (Ascending)',
|
|
81
|
+
value: '+createdAt',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Created (Descending)',
|
|
85
|
+
value: '-createdAt',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'Name (Ascending)',
|
|
89
|
+
value: '+name',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'Name (Descending)',
|
|
93
|
+
value: '-name',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'Updated (Ascending)',
|
|
97
|
+
value: '+updatedAt',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'Updated (Descending)',
|
|
101
|
+
value: '-updatedAt',
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
default: '+createdAt',
|
|
105
|
+
description: 'Property to sort by',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
];
|
|
110
|
+
exports.itemsGetDescription = [
|
|
111
|
+
{
|
|
112
|
+
displayName: 'Item ID',
|
|
113
|
+
name: 'itemId',
|
|
114
|
+
type: 'string',
|
|
115
|
+
default: '',
|
|
116
|
+
required: true,
|
|
117
|
+
displayOptions: {
|
|
118
|
+
show: {
|
|
119
|
+
resource: ['items'],
|
|
120
|
+
operation: ['get'],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
description: 'The ID of the item to retrieve',
|
|
124
|
+
},
|
|
125
|
+
];
|
|
126
|
+
exports.itemsUpdateDescription = [
|
|
127
|
+
{
|
|
128
|
+
displayName: 'Item ID',
|
|
129
|
+
name: 'itemId',
|
|
130
|
+
type: 'string',
|
|
131
|
+
default: '',
|
|
132
|
+
required: true,
|
|
133
|
+
displayOptions: {
|
|
134
|
+
show: {
|
|
135
|
+
resource: ['items'],
|
|
136
|
+
operation: ['update'],
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
description: 'The ID of the item to update',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
displayName: 'Body (JSON)',
|
|
143
|
+
name: 'body',
|
|
144
|
+
type: 'json',
|
|
145
|
+
default: '{}',
|
|
146
|
+
required: true,
|
|
147
|
+
displayOptions: {
|
|
148
|
+
show: {
|
|
149
|
+
resource: ['items'],
|
|
150
|
+
operation: ['update'],
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
description: 'Item attributes to update',
|
|
154
|
+
},
|
|
155
|
+
];
|
|
156
|
+
exports.itemsDeleteDescription = [
|
|
157
|
+
{
|
|
158
|
+
displayName: 'Item ID',
|
|
159
|
+
name: 'itemId',
|
|
160
|
+
type: 'string',
|
|
161
|
+
default: '',
|
|
162
|
+
required: true,
|
|
163
|
+
displayOptions: {
|
|
164
|
+
show: {
|
|
165
|
+
resource: ['items'],
|
|
166
|
+
operation: ['delete'],
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
description: 'The ID of the item to delete',
|
|
170
|
+
},
|
|
171
|
+
];
|
|
172
|
+
exports.itemsCollectionsDescription = [
|
|
173
|
+
{
|
|
174
|
+
displayName: 'Item ID',
|
|
175
|
+
name: 'itemId',
|
|
176
|
+
type: 'string',
|
|
177
|
+
default: '',
|
|
178
|
+
required: true,
|
|
179
|
+
displayOptions: {
|
|
180
|
+
show: {
|
|
181
|
+
resource: ['items'],
|
|
182
|
+
operation: ['collections'],
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
description: 'The ID of the item',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
displayName: 'Options',
|
|
189
|
+
name: 'options',
|
|
190
|
+
type: 'collection',
|
|
191
|
+
placeholder: 'Add Option',
|
|
192
|
+
default: {},
|
|
193
|
+
displayOptions: {
|
|
194
|
+
show: {
|
|
195
|
+
resource: ['items'],
|
|
196
|
+
operation: ['collections'],
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
options: [
|
|
200
|
+
{
|
|
201
|
+
displayName: 'Limit',
|
|
202
|
+
name: 'limit',
|
|
203
|
+
type: 'number',
|
|
204
|
+
default: 10,
|
|
205
|
+
description: 'Max number of collections to return',
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
},
|
|
209
|
+
];
|
|
210
|
+
exports.itemsPublishedItemsDescription = [
|
|
211
|
+
{
|
|
212
|
+
displayName: 'Item ID',
|
|
213
|
+
name: 'itemId',
|
|
214
|
+
type: 'string',
|
|
215
|
+
default: '',
|
|
216
|
+
required: true,
|
|
217
|
+
displayOptions: {
|
|
218
|
+
show: {
|
|
219
|
+
resource: ['items'],
|
|
220
|
+
operation: ['publishedItems'],
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
description: 'The ID of the item',
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
displayName: 'Options',
|
|
227
|
+
name: 'options',
|
|
228
|
+
type: 'collection',
|
|
229
|
+
placeholder: 'Add Option',
|
|
230
|
+
default: {},
|
|
231
|
+
displayOptions: {
|
|
232
|
+
show: {
|
|
233
|
+
resource: ['items'],
|
|
234
|
+
operation: ['publishedItems'],
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
options: [
|
|
238
|
+
{
|
|
239
|
+
displayName: 'Limit',
|
|
240
|
+
name: 'limit',
|
|
241
|
+
type: 'number',
|
|
242
|
+
default: 10,
|
|
243
|
+
description: 'Max number of published items to return',
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
},
|
|
247
|
+
];
|
|
248
|
+
exports.itemsSettingsDescription = [
|
|
249
|
+
{
|
|
250
|
+
displayName: 'Operation Type',
|
|
251
|
+
name: 'settingsOperation',
|
|
252
|
+
type: 'options',
|
|
253
|
+
default: 'get',
|
|
254
|
+
displayOptions: {
|
|
255
|
+
show: {
|
|
256
|
+
resource: ['items'],
|
|
257
|
+
operation: ['settings'],
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
options: [
|
|
261
|
+
{
|
|
262
|
+
name: 'Get',
|
|
263
|
+
value: 'get',
|
|
264
|
+
description: 'Retrieve items service settings',
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
name: 'Patch',
|
|
268
|
+
value: 'patch',
|
|
269
|
+
description: 'Update items service settings',
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
displayName: 'Patch Body (JSON)',
|
|
275
|
+
name: 'body',
|
|
276
|
+
type: 'json',
|
|
277
|
+
default: '[]',
|
|
278
|
+
displayOptions: {
|
|
279
|
+
show: {
|
|
280
|
+
resource: ['items'],
|
|
281
|
+
operation: ['settings'],
|
|
282
|
+
settingsOperation: ['patch'],
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
description: 'JSONPatch document per RFC 6902',
|
|
286
|
+
},
|
|
287
|
+
];
|
|
288
|
+
exports.itemDescription = [
|
|
289
|
+
{
|
|
290
|
+
displayName: 'Operation',
|
|
291
|
+
name: 'operation',
|
|
292
|
+
type: 'options',
|
|
293
|
+
noDataExpression: true,
|
|
294
|
+
displayOptions: {
|
|
295
|
+
show: {
|
|
296
|
+
resource: ['items'],
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
options: [
|
|
300
|
+
{
|
|
301
|
+
name: 'Get All',
|
|
302
|
+
value: 'getAll',
|
|
303
|
+
action: 'Get all items',
|
|
304
|
+
description: 'Retrieve all accessible items',
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
name: 'Get',
|
|
308
|
+
value: 'get',
|
|
309
|
+
action: 'Get an item',
|
|
310
|
+
description: 'Retrieve a specific item by ID',
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: 'Update',
|
|
314
|
+
value: 'update',
|
|
315
|
+
action: 'Update an item',
|
|
316
|
+
description: 'Update item properties',
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
name: 'Delete',
|
|
320
|
+
value: 'delete',
|
|
321
|
+
action: 'Delete an item',
|
|
322
|
+
description: 'Delete an item',
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
name: 'Collections',
|
|
326
|
+
value: 'collections',
|
|
327
|
+
action: 'Get item collections',
|
|
328
|
+
description: 'List collections (tags) for an item',
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
name: 'Published Items',
|
|
332
|
+
value: 'publishedItems',
|
|
333
|
+
action: 'Get published items',
|
|
334
|
+
description: 'List published copies for an item',
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
name: 'Settings',
|
|
338
|
+
value: 'settings',
|
|
339
|
+
action: 'Get/Update items settings',
|
|
340
|
+
description: 'Manage items service settings',
|
|
341
|
+
},
|
|
342
|
+
],
|
|
343
|
+
default: 'getAll',
|
|
344
|
+
},
|
|
345
|
+
...exports.itemsGetAllDescription,
|
|
346
|
+
...exports.itemsGetDescription,
|
|
347
|
+
...exports.itemsUpdateDescription,
|
|
348
|
+
...exports.itemsDeleteDescription,
|
|
349
|
+
...exports.itemsCollectionsDescription,
|
|
350
|
+
...exports.itemsPublishedItemsDescription,
|
|
351
|
+
...exports.itemsSettingsDescription,
|
|
352
|
+
];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.qlikApiRequest = qlikApiRequest;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
async function qlikApiRequest(method, endpoint, body, qs) {
|
|
6
|
+
const credentials = await this.getCredentials('qlikCloudApi');
|
|
7
|
+
if (!credentials) {
|
|
8
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), {
|
|
9
|
+
message: 'No credentials found for Qlik Cloud API',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
const baseUrl = credentials.baseUrl;
|
|
13
|
+
const accessToken = credentials.accessToken;
|
|
14
|
+
const options = {
|
|
15
|
+
headers: {
|
|
16
|
+
Authorization: `Bearer ${accessToken}`,
|
|
17
|
+
'Content-Type': 'application/json',
|
|
18
|
+
},
|
|
19
|
+
method,
|
|
20
|
+
url: `${baseUrl}${endpoint}`,
|
|
21
|
+
qs,
|
|
22
|
+
};
|
|
23
|
+
if (body !== undefined) {
|
|
24
|
+
options.body = body;
|
|
25
|
+
}
|
|
26
|
+
try {
|
|
27
|
+
return await this.helpers.httpRequest(options);
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), {
|
|
31
|
+
message: error.message,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.qlikApiRequest = qlikApiRequest;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
async function qlikApiRequest(method, endpoint, body, qs) {
|
|
6
|
+
const credentials = await this.getCredentials('qlikCloudApi');
|
|
7
|
+
if (!credentials) {
|
|
8
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), {
|
|
9
|
+
message: 'No credentials found for Qlik Cloud API',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
const baseUrl = credentials.baseUrl;
|
|
13
|
+
const accessToken = credentials.accessToken;
|
|
14
|
+
const options = {
|
|
15
|
+
headers: {
|
|
16
|
+
Authorization: `Bearer ${accessToken}`,
|
|
17
|
+
'Content-Type': 'application/json',
|
|
18
|
+
},
|
|
19
|
+
method,
|
|
20
|
+
url: `${baseUrl}${endpoint}`,
|
|
21
|
+
qs,
|
|
22
|
+
};
|
|
23
|
+
if (body !== undefined) {
|
|
24
|
+
options.body = body;
|
|
25
|
+
}
|
|
26
|
+
try {
|
|
27
|
+
return await this.helpers.httpRequest(options);
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
|
|
31
|
+
}
|
|
32
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-qlik-cloud",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "n8n node for Qlik Cloud REST APIs integration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "tsc",
|
|
8
|
+
"build": "tsc && npm run copy-assets",
|
|
9
|
+
"copy-assets": "cp -r src/icons dist/icons || true",
|
|
9
10
|
"dev": "tsc --watch",
|
|
10
11
|
"lint": "eslint src/",
|
|
11
12
|
"test": "jest"
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" viewBox="0 0 71.39 29.74"><defs><style>.cls-2{stroke-width:0;fill:#54565a}</style></defs><path d="M70.47 27.52c.05-.07.07-.15.07-.24s-.02-.17-.07-.24-.1-.11-.16-.14a.38.38 0 0 0-.17-.04h-.66v1.31h.29v-.44h.29l.23.44h.32l-.27-.51a.47.47 0 0 0 .15-.13Zm-.71-.45h.27s.07.01.12.04c.04.03.07.08.07.16s-.02.14-.07.18c-.05.04-.09.06-.13.06h-.27v-.44Z" class="cls-2"/><path d="M71.28 26.97c-.07-.17-.17-.32-.31-.45-.13-.13-.28-.23-.45-.31s-.36-.11-.55-.11-.38.04-.55.11-.32.18-.45.31-.23.28-.3.45c-.07.17-.11.36-.11.55s.04.38.11.55c.07.17.17.32.3.45.13.13.28.23.45.31s.36.11.55.11.38-.04.55-.11.32-.18.45-.31.23-.28.31-.45c.07-.17.11-.36.11-.55s-.04-.38-.11-.55Zm-.37 1.1c-.1.16-.23.29-.39.39-.16.1-.34.15-.54.15s-.38-.05-.54-.15c-.16-.1-.29-.23-.39-.39-.1-.16-.15-.34-.15-.54s.05-.38.15-.54c.1-.16.23-.29.39-.39.16-.1.34-.15.54-.15s.38.05.54.15c.16.1.29.23.39.39.1.16.15.34.15.54s-.05.38-.15.54ZM34.9.65h2.96v28.32H34.9zM42.95 9.19h2.95v19.78h-2.95z" class="cls-2"/><circle cx="44.45" cy="2.67" r="2.02" class="cls-2"/><path d="M66.62 9.19h-4.11l-8.52 7.46-.02-16h-2.94v28.32h2.94v-9.14l8.75 9.14h4.1L56.39 18.39l10.23-9.2zM14.87 26.69c-6.53 0-11.82-5.29-11.82-11.82 0-2.77.96-5.32 2.55-7.34L3.44 5.34A14.922 14.922 0 0 0 0 14.87c0 8.21 6.66 14.87 14.87 14.87 3.56 0 6.83-1.25 9.39-3.34l-2.16-2.19c-2 1.55-4.5 2.47-7.23 2.47Z" class="cls-2"/><path fill="#009445" stroke-width="0" d="m26.31 24.34.17-.17a14.83 14.83 0 0 0 3.26-9.3C29.74 6.66 23.08 0 14.87 0c-3.54 0-6.79 1.24-9.34 3.3-.74.6-1.41 1.26-2.03 1.98-.02.02-.03.04-.05.06l2.16 2.19s.04-.05.06-.07c.59-.74 1.27-1.4 2.02-1.97a11.74 11.74 0 0 1 7.18-2.44c6.53 0 11.82 5.29 11.82 11.82 0 2.75-.94 5.29-2.52 7.3-.57.73-1.23 1.39-1.95 1.96l-.12.09 2.16 2.19 2.54 2.57h4.1l-4.59-4.64Z"/></svg>
|
package/src/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { QlikCloud } from './QlikCloud.node';
|
|
1
|
+
export { QlikCloud } from './nodes/QlikCloud/QlikCloud.node';
|