n8n-nodes-ancoremate 1.20.0 → 1.22.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.
- package/README.md +6 -5
- package/dist/credentials/AncoreMateOAuth2Api.credentials.js +1 -1
- package/dist/nodes/AncoreMateAppData/AncoreMateAppData.node.js +1 -1
- package/dist/nodes/AncoreMateApps/AncoreMateApps.node.js +1 -1
- package/dist/nodes/AncoreMateAppsTrigger/AncoreMateAppsTrigger.node.js +2 -2
- package/dist/nodes/AncoreMateAutomations/AncoreMateAutomations.node.js +1 -1
- package/dist/nodes/AncoreMateAutomationsTrigger/AncoreMateAutomationsTrigger.node.js +2 -2
- package/dist/nodes/AncoreMateCatalog/AncoreMateCatalog.node.js +1 -1
- package/dist/nodes/AncoreMateContent/AncoreMateContent.node.js +1 -1
- package/dist/nodes/AncoreMateReloads/AncoreMateReloads.node.js +29 -3
- package/dist/nodes/AncoreMateReloadsTrigger/AncoreMateReloadsTrigger.node.js +2 -2
- package/dist/nodes/AncoreMateSpacesAndAccess/AncoreMateSpacesAndAccess.node.js +1 -1
- package/dist/nodes/AncoreShare/AncoreShare.node.js +3 -3
- package/dist/nodes/AncoreShareTrigger/AncoreShareTrigger.node.js +11 -14
- package/dist/nodes/shared/runtime.d.ts +2 -1
- package/dist/nodes/shared/runtime.js +18 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,13 +122,14 @@ Reload Qlik Sense® apps in Qlik Cloud® and wait for the result, follow and can
|
|
|
122
122
|
- **Reload: Get reload group job** – Returns several reloads when all are finished; used while waiting for reloads.
|
|
123
123
|
- **Reload: Get reload job** – Returns a reload when it is finished; used while waiting for a reload.
|
|
124
124
|
- **Reload log: Get reload log** – Returns the complete log of a reload as text.
|
|
125
|
+
- **Reload: Get reload start job** – Starts the reload once no other reload of the app is running or waiting; used while waiting for a reload.
|
|
125
126
|
- **Reload task: Get reload task** – Returns a reload schedule with its next run.
|
|
126
127
|
- **Reload log: List reload logs** – Lists the stored reload logs of an app.
|
|
127
128
|
- **Reload task: List reload task runs** – Lists the runs of a reload task, newest first, with status and short log.
|
|
128
129
|
- **Reload task: List reload tasks** – Lists the reload schedules, optionally of one app, with their next run.
|
|
129
130
|
- **Reload: List reloads** – Lists the reloads of an app, newest first.
|
|
130
|
-
- **Reload: Reload app** – Starts a reload of an app and returns the reload with its ID and status. If a reload of the app is already waiting in the queue, that reload is returned, since it will load the latest data anyway.
|
|
131
|
-
- **Reload: Reload app and wait** – Reloads an app and waits until the reload is finished; the result tells whether it succeeded. If
|
|
131
|
+
- **Reload: Reload app** – Starts a reload of an app and returns the reload with its ID and status. If a full reload of the app is already waiting in the queue, that reload is returned, since it will load the latest data anyway. While another reload of the app is running, Qlik Cloud starts no new one; use Reload app and wait to wait for it.
|
|
132
|
+
- **Reload: Reload app and wait** – Reloads an app and waits until the reload is finished; the result tells whether it succeeded. If the app is already reloading, If the app is already reloading decides what happens.
|
|
132
133
|
- **Reload task: Start reload task** – Runs an enabled reload task now, outside its schedule.
|
|
133
134
|
- **Reload task: Update reload task** – Changes the schedule of a reload task; values left empty stay as they are.
|
|
134
135
|
- **Reload: Wait for reloads** – Waits until the given reloads, for example started in parallel, are finished.
|
|
@@ -339,11 +340,11 @@ Run ancoreShare reports, download the report files and read the report usage. Tr
|
|
|
339
340
|
|
|
340
341
|
- **Report file: Download report file** – Downloads one file of a finished report from its link; links are valid for 12 hours.
|
|
341
342
|
- **Report file: Download report files** – Downloads all files of a finished report at once, for example to attach them to one mail.
|
|
342
|
-
- **Usage: Get report usage** – Returns the number of report runs per month, of all runs by button and by
|
|
343
|
-
- **Usage: List automated report runs** – Lists the report runs started through
|
|
343
|
+
- **Usage: Get report usage** – Returns the number of report runs per month, of all runs by button and by External Execution, for the account or one app, report or Qlik user.
|
|
344
|
+
- **Usage: List automated report runs** – Lists the report runs started through ancoreShare External Execution (not by the button) with result and error, to find failed automated runs.
|
|
344
345
|
- **Report: List ancoreShare reports** – Lists the ancoreShare report buttons of an app with title, export type and tags.
|
|
345
346
|
- **Report: Run ancoreShare report** – Starts an ancoreShare report; ancoreShare queues it and sends the files to the targets of the report button, for example the ancoreMate event.
|
|
346
|
-
- **Report: When an ancoreShare report is finished** – Starts when a report button with ancoreMate event enabled has finished a report, run by a user or through the
|
|
347
|
+
- **Report: When an ancoreShare report is finished** – Starts when a report button with ancoreMate event enabled has finished a report in the tenant of the connection, run by a user or through ancoreShare External Execution. With Include the report files the files come along as Attachments, ready for a mail.
|
|
347
348
|
- **Connection: Get Qlik connection** – Returns whether ancoreMate is connected to a Qlik Cloud tenant, and to which tenant and Qlik user.
|
|
348
349
|
- **Request: Send Qlik Cloud request** – Calls any REST API of your Qlik Cloud tenant below /api/v1/ with the connected user's rights, for operations that have no action of their own.
|
|
349
350
|
- **App: List app choices** – Lists the apps the connected Qlik Cloud user can open, for selecting an app in other actions.
|
|
@@ -4,7 +4,7 @@ exports.AncoreMateAppData = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const runtime_1 = require("../shared/runtime");
|
|
6
6
|
const BASE_URL = 'https://ancorecloud.com/ancoremate';
|
|
7
|
-
const CLIENT = 'n8n/1.
|
|
7
|
+
const CLIENT = 'n8n/1.22.0';
|
|
8
8
|
const OPERATIONS = {
|
|
9
9
|
"createBookmark": {
|
|
10
10
|
"method": "POST",
|
|
@@ -4,7 +4,7 @@ exports.AncoreMateApps = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const runtime_1 = require("../shared/runtime");
|
|
6
6
|
const BASE_URL = 'https://ancorecloud.com/ancoremate';
|
|
7
|
-
const CLIENT = 'n8n/1.
|
|
7
|
+
const CLIENT = 'n8n/1.22.0';
|
|
8
8
|
const OPERATIONS = {
|
|
9
9
|
"changeAppOwner": {
|
|
10
10
|
"method": "PUT",
|
|
@@ -4,7 +4,7 @@ exports.AncoreMateAppsTrigger = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const runtime_1 = require("../shared/runtime");
|
|
6
6
|
const BASE_URL = 'https://ancorecloud.com/ancoremate';
|
|
7
|
-
const CLIENT = 'n8n/1.
|
|
7
|
+
const CLIENT = 'n8n/1.22.0';
|
|
8
8
|
const EVENTS = {
|
|
9
9
|
"whenAppCreated": {
|
|
10
10
|
"path": "/v1/triggers/app-created",
|
|
@@ -227,7 +227,7 @@ class AncoreMateAppsTrigger {
|
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
229
|
async webhook() {
|
|
230
|
-
return { workflowData: [
|
|
230
|
+
return { workflowData: [await runtime_1.eventData.call(this, this.getBodyData())] };
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
exports.AncoreMateAppsTrigger = AncoreMateAppsTrigger;
|
|
@@ -4,7 +4,7 @@ exports.AncoreMateAutomations = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const runtime_1 = require("../shared/runtime");
|
|
6
6
|
const BASE_URL = 'https://ancorecloud.com/ancoremate';
|
|
7
|
-
const CLIENT = 'n8n/1.
|
|
7
|
+
const CLIENT = 'n8n/1.22.0';
|
|
8
8
|
const OPERATIONS = {
|
|
9
9
|
"copyAutomation": {
|
|
10
10
|
"method": "POST",
|
|
@@ -4,7 +4,7 @@ exports.AncoreMateAutomationsTrigger = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const runtime_1 = require("../shared/runtime");
|
|
6
6
|
const BASE_URL = 'https://ancorecloud.com/ancoremate';
|
|
7
|
-
const CLIENT = 'n8n/1.
|
|
7
|
+
const CLIENT = 'n8n/1.22.0';
|
|
8
8
|
const EVENTS = {
|
|
9
9
|
"whenAutomationCreated": {
|
|
10
10
|
"path": "/v1/triggers/automation-created",
|
|
@@ -313,7 +313,7 @@ class AncoreMateAutomationsTrigger {
|
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
async webhook() {
|
|
316
|
-
return { workflowData: [
|
|
316
|
+
return { workflowData: [await runtime_1.eventData.call(this, this.getBodyData())] };
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
exports.AncoreMateAutomationsTrigger = AncoreMateAutomationsTrigger;
|
|
@@ -4,7 +4,7 @@ exports.AncoreMateCatalog = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const runtime_1 = require("../shared/runtime");
|
|
6
6
|
const BASE_URL = 'https://ancorecloud.com/ancoremate';
|
|
7
|
-
const CLIENT = 'n8n/1.
|
|
7
|
+
const CLIENT = 'n8n/1.22.0';
|
|
8
8
|
const OPERATIONS = {
|
|
9
9
|
"changeGlossaryTermStatus": {
|
|
10
10
|
"method": "PUT",
|
|
@@ -4,7 +4,7 @@ exports.AncoreMateContent = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const runtime_1 = require("../shared/runtime");
|
|
6
6
|
const BASE_URL = 'https://ancorecloud.com/ancoremate';
|
|
7
|
-
const CLIENT = 'n8n/1.
|
|
7
|
+
const CLIENT = 'n8n/1.22.0';
|
|
8
8
|
const OPERATIONS = {
|
|
9
9
|
"getQlikConnection": {
|
|
10
10
|
"method": "GET",
|
|
@@ -4,7 +4,7 @@ exports.AncoreMateReloads = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const runtime_1 = require("../shared/runtime");
|
|
6
6
|
const BASE_URL = 'https://ancorecloud.com/ancoremate';
|
|
7
|
-
const CLIENT = 'n8n/1.
|
|
7
|
+
const CLIENT = 'n8n/1.22.0';
|
|
8
8
|
const OPERATIONS = {
|
|
9
9
|
"getQlikConnection": {
|
|
10
10
|
"method": "GET",
|
|
@@ -342,6 +342,11 @@ const OPERATIONS = {
|
|
|
342
342
|
"name": "failOnError",
|
|
343
343
|
"required": false,
|
|
344
344
|
"json": false
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "ifReloading",
|
|
348
|
+
"required": false,
|
|
349
|
+
"json": false
|
|
345
350
|
}
|
|
346
351
|
],
|
|
347
352
|
"fileInput": false,
|
|
@@ -525,13 +530,13 @@ class AncoreMateReloads {
|
|
|
525
530
|
"name": "Reload App",
|
|
526
531
|
"value": "reloadApp",
|
|
527
532
|
"action": "Reload app",
|
|
528
|
-
"description": "Starts a reload of an app and returns the reload with its ID and status. If a reload of the app is already waiting in the queue, that reload is returned, since it will load the latest data anyway."
|
|
533
|
+
"description": "Starts a reload of an app and returns the reload with its ID and status. If a full reload of the app is already waiting in the queue, that reload is returned, since it will load the latest data anyway. While another reload of the app is running, Qlik Cloud starts no new one; use Reload app and wait to wait for it."
|
|
529
534
|
},
|
|
530
535
|
{
|
|
531
536
|
"name": "Reload App and Wait",
|
|
532
537
|
"value": "reloadAppAndWait",
|
|
533
538
|
"action": "Reload app and wait",
|
|
534
|
-
"description": "Reloads an app and waits until the reload is finished; the result tells whether it succeeded. If
|
|
539
|
+
"description": "Reloads an app and waits until the reload is finished; the result tells whether it succeeded. If the app is already reloading, If the app is already reloading decides what happens."
|
|
535
540
|
},
|
|
536
541
|
{
|
|
537
542
|
"name": "Wait for Reloads",
|
|
@@ -1449,6 +1454,27 @@ class AncoreMateReloads {
|
|
|
1449
1454
|
"type": "boolean",
|
|
1450
1455
|
"default": false,
|
|
1451
1456
|
"description": "Whether the action fails when a reload fails, with the error of the load script. Turn off to continue with the result (succeeded = false) instead. Default: on."
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"displayName": "If the app is already reloading",
|
|
1460
|
+
"name": "ifReloading",
|
|
1461
|
+
"type": "options",
|
|
1462
|
+
"options": [
|
|
1463
|
+
{
|
|
1464
|
+
"name": "Wait, then start a new reload",
|
|
1465
|
+
"value": "reload"
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
"name": "Wait and use that reload",
|
|
1469
|
+
"value": "use"
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"name": "Fail",
|
|
1473
|
+
"value": "fail"
|
|
1474
|
+
}
|
|
1475
|
+
],
|
|
1476
|
+
"default": "reload",
|
|
1477
|
+
"description": "What happens when another reload of the app is running or waiting: wait for it and then start a new reload (the default, the result has the latest data), wait for it and return its result, or fail."
|
|
1452
1478
|
}
|
|
1453
1479
|
]
|
|
1454
1480
|
},
|
|
@@ -4,7 +4,7 @@ exports.AncoreMateReloadsTrigger = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const runtime_1 = require("../shared/runtime");
|
|
6
6
|
const BASE_URL = 'https://ancorecloud.com/ancoremate';
|
|
7
|
-
const CLIENT = 'n8n/1.
|
|
7
|
+
const CLIENT = 'n8n/1.22.0';
|
|
8
8
|
const EVENTS = {
|
|
9
9
|
"whenAppReloadFinished": {
|
|
10
10
|
"path": "/v1/triggers/app-reload-finished",
|
|
@@ -145,7 +145,7 @@ class AncoreMateReloadsTrigger {
|
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
async webhook() {
|
|
148
|
-
return { workflowData: [
|
|
148
|
+
return { workflowData: [await runtime_1.eventData.call(this, this.getBodyData())] };
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
exports.AncoreMateReloadsTrigger = AncoreMateReloadsTrigger;
|
|
@@ -4,7 +4,7 @@ exports.AncoreMateSpacesAndAccess = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const runtime_1 = require("../shared/runtime");
|
|
6
6
|
const BASE_URL = 'https://ancorecloud.com/ancoremate';
|
|
7
|
-
const CLIENT = 'n8n/1.
|
|
7
|
+
const CLIENT = 'n8n/1.22.0';
|
|
8
8
|
const OPERATIONS = {
|
|
9
9
|
"addSpaceMember": {
|
|
10
10
|
"method": "POST",
|
|
@@ -4,7 +4,7 @@ exports.AncoreShare = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const runtime_1 = require("../shared/runtime");
|
|
6
6
|
const BASE_URL = 'https://ancorecloud.com/ancoremate';
|
|
7
|
-
const CLIENT = 'n8n/1.
|
|
7
|
+
const CLIENT = 'n8n/1.22.0';
|
|
8
8
|
const OPERATIONS = {
|
|
9
9
|
"downloadAncoreShareFile": {
|
|
10
10
|
"method": "POST",
|
|
@@ -351,13 +351,13 @@ class AncoreShare {
|
|
|
351
351
|
"name": "Get Report Usage",
|
|
352
352
|
"value": "getAncoreShareReportUsage",
|
|
353
353
|
"action": "Get report usage",
|
|
354
|
-
"description": "Returns the number of report runs per month, of all runs by button and by
|
|
354
|
+
"description": "Returns the number of report runs per month, of all runs by button and by External Execution, for the account or one app, report or Qlik user."
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
"name": "Get Many Automated Report Runs",
|
|
358
358
|
"value": "listAncoreShareAutomatedRuns",
|
|
359
359
|
"action": "List automated report runs",
|
|
360
|
-
"description": "Lists the report runs started through
|
|
360
|
+
"description": "Lists the report runs started through ancoreShare External Execution (not by the button) with result and error, to find failed automated runs."
|
|
361
361
|
}
|
|
362
362
|
],
|
|
363
363
|
"default": "getAncoreShareReportUsage"
|
|
@@ -4,13 +4,13 @@ exports.AncoreShareTrigger = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const runtime_1 = require("../shared/runtime");
|
|
6
6
|
const BASE_URL = 'https://ancorecloud.com/ancoremate';
|
|
7
|
-
const CLIENT = 'n8n/1.
|
|
7
|
+
const CLIENT = 'n8n/1.22.0';
|
|
8
8
|
const EVENTS = {
|
|
9
9
|
"whenAncoreShareReportFinished": {
|
|
10
10
|
"path": "/v1/triggers/ancoreshare-report-finished",
|
|
11
11
|
"query": [
|
|
12
12
|
"key",
|
|
13
|
-
"
|
|
13
|
+
"includeFiles",
|
|
14
14
|
"appId",
|
|
15
15
|
"reportId"
|
|
16
16
|
]
|
|
@@ -58,7 +58,7 @@ class AncoreShareTrigger {
|
|
|
58
58
|
{
|
|
59
59
|
"name": "When an ancoreShare report is finished",
|
|
60
60
|
"value": "whenAncoreShareReportFinished",
|
|
61
|
-
"description": "Starts when a report button with ancoreMate event enabled has finished a report, run by a user or through the
|
|
61
|
+
"description": "Starts when a report button with ancoreMate event enabled has finished a report in the tenant of the connection, run by a user or through ancoreShare External Execution. With Include the report files the files come along as Attachments, ready for a mail."
|
|
62
62
|
}
|
|
63
63
|
],
|
|
64
64
|
"default": "whenAncoreShareReportFinished"
|
|
@@ -79,11 +79,10 @@ class AncoreShareTrigger {
|
|
|
79
79
|
"description": "The ancoreMate key shown in the ancoreMate settings of the report button."
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
"displayName": "
|
|
83
|
-
"name": "
|
|
84
|
-
"type": "
|
|
85
|
-
"default":
|
|
86
|
-
"required": true,
|
|
82
|
+
"displayName": "Include the report files",
|
|
83
|
+
"name": "includeFiles",
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"default": true,
|
|
87
86
|
"displayOptions": {
|
|
88
87
|
"show": {
|
|
89
88
|
"event": [
|
|
@@ -91,7 +90,7 @@ class AncoreShareTrigger {
|
|
|
91
90
|
]
|
|
92
91
|
}
|
|
93
92
|
},
|
|
94
|
-
"description": "
|
|
93
|
+
"description": "Whether the trigger passes on the finished files as Attachments, ready for a mail; files up to 50 MB together. Turn off to get only the links."
|
|
95
94
|
},
|
|
96
95
|
{
|
|
97
96
|
"displayName": "App",
|
|
@@ -101,7 +100,6 @@ class AncoreShareTrigger {
|
|
|
101
100
|
"loadOptionsMethod": "loadListAppChoicesResourceId"
|
|
102
101
|
},
|
|
103
102
|
"default": "",
|
|
104
|
-
"required": true,
|
|
105
103
|
"displayOptions": {
|
|
106
104
|
"show": {
|
|
107
105
|
"event": [
|
|
@@ -109,7 +107,7 @@ class AncoreShareTrigger {
|
|
|
109
107
|
]
|
|
110
108
|
}
|
|
111
109
|
},
|
|
112
|
-
"description": "
|
|
110
|
+
"description": "Only reports of this app; useful when a copy of the app has a button with the same key."
|
|
113
111
|
},
|
|
114
112
|
{
|
|
115
113
|
"displayName": "Report",
|
|
@@ -119,7 +117,6 @@ class AncoreShareTrigger {
|
|
|
119
117
|
"loadOptionsMethod": "loadListAncoreShareReportsId"
|
|
120
118
|
},
|
|
121
119
|
"default": "",
|
|
122
|
-
"required": true,
|
|
123
120
|
"displayOptions": {
|
|
124
121
|
"show": {
|
|
125
122
|
"event": [
|
|
@@ -127,7 +124,7 @@ class AncoreShareTrigger {
|
|
|
127
124
|
]
|
|
128
125
|
}
|
|
129
126
|
},
|
|
130
|
-
"description": "
|
|
127
|
+
"description": "Only reports of this report button."
|
|
131
128
|
}
|
|
132
129
|
]
|
|
133
130
|
};
|
|
@@ -156,7 +153,7 @@ class AncoreShareTrigger {
|
|
|
156
153
|
};
|
|
157
154
|
}
|
|
158
155
|
async webhook() {
|
|
159
|
-
return { workflowData: [
|
|
156
|
+
return { workflowData: [await runtime_1.eventData.call(this, this.getBodyData())] };
|
|
160
157
|
}
|
|
161
158
|
}
|
|
162
159
|
exports.AncoreShareTrigger = AncoreShareTrigger;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IDataObject, IExecuteFunctions, IHookFunctions, IHttpRequestMethods, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions } from 'n8n-workflow';
|
|
1
|
+
import type { IDataObject, IExecuteFunctions, IHookFunctions, IHttpRequestMethods, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, IWebhookFunctions } from 'n8n-workflow';
|
|
2
2
|
export interface OperationSpec {
|
|
3
3
|
method: IHttpRequestMethods;
|
|
4
4
|
path: string;
|
|
@@ -23,6 +23,7 @@ export interface OperationSpec {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function runOperations(this: IExecuteFunctions, operations: Record<string, OperationSpec>, baseUrl: string, client: string): Promise<INodeExecutionData[][]>;
|
|
25
25
|
export declare function eventItems(body: IDataObject): IDataObject[];
|
|
26
|
+
export declare function eventData(this: IWebhookFunctions, body: IDataObject): Promise<INodeExecutionData[]>;
|
|
26
27
|
export interface TriggerSpec {
|
|
27
28
|
path: string;
|
|
28
29
|
query: string[];
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.runOperations = runOperations;
|
|
4
4
|
exports.eventItems = eventItems;
|
|
5
|
+
exports.eventData = eventData;
|
|
5
6
|
exports.createSubscription = createSubscription;
|
|
6
7
|
exports.deleteSubscription = deleteSubscription;
|
|
7
8
|
exports.loadOptions = loadOptions;
|
|
@@ -281,11 +282,27 @@ function eventItems(body) {
|
|
|
281
282
|
const files = body.files;
|
|
282
283
|
if (Array.isArray(files) && files.length > 0) {
|
|
283
284
|
const event = { ...body };
|
|
285
|
+
const attachments = Array.isArray(event.attachments) ? event.attachments : [];
|
|
284
286
|
delete event.files;
|
|
285
|
-
|
|
287
|
+
delete event.attachments;
|
|
288
|
+
return files.map((file, index) => attachments[index] === undefined ? { ...event, file } : { ...event, file, attachment: attachments[index] });
|
|
286
289
|
}
|
|
287
290
|
return [body];
|
|
288
291
|
}
|
|
292
|
+
async function eventData(body) {
|
|
293
|
+
const result = [];
|
|
294
|
+
for (const item of eventItems(body)) {
|
|
295
|
+
const attachment = item.attachment;
|
|
296
|
+
delete item.attachment;
|
|
297
|
+
if (attachment === undefined || typeof attachment.ContentBytes !== 'string') {
|
|
298
|
+
result.push({ json: item });
|
|
299
|
+
continue;
|
|
300
|
+
}
|
|
301
|
+
const data = Buffer.from(attachment.ContentBytes, 'base64');
|
|
302
|
+
result.push({ json: item, binary: { data: await this.helpers.prepareBinaryData(data, attachment.Name) } });
|
|
303
|
+
}
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
289
306
|
async function createSubscription(events, baseUrl, client) {
|
|
290
307
|
const spec = events[this.getNodeParameter('event')];
|
|
291
308
|
const qs = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-ancoremate",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
4
4
|
"description": "n8n nodes for Qlik Cloud® automation by ancoreSoft. Qlik®, Qlik Cloud® and Qlik Sense® are trademarks of QlikTech International AB. ancoreMate is not affiliated with or endorsed by Qlik.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|