n8n-nodes-ancoremate 1.19.0 → 1.19.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.
@@ -66,7 +66,7 @@ class AncoreMateOAuth2Api {
66
66
  "baseURL": "https://ancorecloud.com/ancoremate",
67
67
  "url": "/v1/connection",
68
68
  "headers": {
69
- "X-AncoreMate-Client": "n8n/1.19.0"
69
+ "X-AncoreMate-Client": "n8n/1.19.2"
70
70
  }
71
71
  }
72
72
  };
@@ -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.19.0';
7
+ const CLIENT = 'n8n/1.19.2';
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.19.0';
7
+ const CLIENT = 'n8n/1.19.2';
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.19.0';
7
+ const CLIENT = 'n8n/1.19.2';
8
8
  const EVENTS = {
9
9
  "whenAppCreated": {
10
10
  "path": "/v1/triggers/app-created",
@@ -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.19.0';
7
+ const CLIENT = 'n8n/1.19.2';
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.19.0';
7
+ const CLIENT = 'n8n/1.19.2';
8
8
  const EVENTS = {
9
9
  "whenAutomationCreated": {
10
10
  "path": "/v1/triggers/automation-created",
@@ -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.19.0';
7
+ const CLIENT = 'n8n/1.19.2';
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.19.0';
7
+ const CLIENT = 'n8n/1.19.2';
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.19.0';
7
+ const CLIENT = 'n8n/1.19.2';
8
8
  const OPERATIONS = {
9
9
  "getQlikConnection": {
10
10
  "method": "GET",
@@ -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.19.0';
7
+ const CLIENT = 'n8n/1.19.2';
8
8
  const EVENTS = {
9
9
  "whenAppReloadFinished": {
10
10
  "path": "/v1/triggers/app-reload-finished",
@@ -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.19.0';
7
+ const CLIENT = 'n8n/1.19.2';
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.19.0';
7
+ const CLIENT = 'n8n/1.19.2';
8
8
  const OPERATIONS = {
9
9
  "downloadAncoreShareFile": {
10
10
  "method": "POST",
@@ -4,7 +4,7 @@ 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.19.0';
7
+ const CLIENT = 'n8n/1.19.2';
8
8
  const EVENTS = {
9
9
  "whenAncoreShareReportFinished": {
10
10
  "path": "/v1/triggers/ancoreshare-report-finished",
@@ -132,7 +132,7 @@ function ancoreMateMessage(error) {
132
132
  return typeof (source === null || source === void 0 ? void 0 : source.description) === 'string' && source.description.length > 0 ? source.description : undefined;
133
133
  }
134
134
  async function runOperations(operations, baseUrl, client) {
135
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
135
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
136
136
  const items = this.getInputData();
137
137
  const results = [];
138
138
  const sent = new Map();
@@ -161,6 +161,14 @@ async function runOperations(operations, baseUrl, client) {
161
161
  else if (spec.body.length > 0) {
162
162
  const fields = {};
163
163
  const additional = this.getNodeParameter('additionalFields', i, {});
164
+ const parseJson = (name, text) => {
165
+ try {
166
+ return JSON.parse(text);
167
+ }
168
+ catch (parseError) {
169
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The value of '${name}' is not valid JSON: ${parseError.message}`, { itemIndex: i });
170
+ }
171
+ };
164
172
  for (const field of spec.body) {
165
173
  let value = field.required ? this.getNodeParameter(field.name, i) : additional[field.name];
166
174
  if (field.list) {
@@ -174,7 +182,7 @@ async function runOperations(operations, baseUrl, client) {
174
182
  const input = field.required ? this.getNodeParameter(`${field.name}Ui`, i, {}) : additional[`${field.name}Ui`];
175
183
  const fromInput = entriesOf(input);
176
184
  if (!isEmpty(value) && value !== '[]') {
177
- const parsed = typeof value === 'string' ? JSON.parse(value) : value;
185
+ const parsed = typeof value === 'string' ? parseJson(field.name, value) : value;
178
186
  fromInput.push(...(Array.isArray(parsed) ? parsed : [parsed]));
179
187
  }
180
188
  if (fromInput.length > 0) {
@@ -186,12 +194,7 @@ async function runOperations(operations, baseUrl, client) {
186
194
  continue;
187
195
  }
188
196
  if (field.json && typeof value === 'string') {
189
- try {
190
- value = JSON.parse(value);
191
- }
192
- catch (parseError) {
193
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The value of '${field.name}' is not valid JSON: ${parseError.message}`, { itemIndex: i });
194
- }
197
+ value = parseJson(field.name, value);
195
198
  }
196
199
  fields[field.name] = value;
197
200
  }
@@ -265,6 +268,10 @@ async function runOperations(operations, baseUrl, client) {
265
268
  if (error instanceof n8n_workflow_1.NodeOperationError) {
266
269
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex: i });
267
270
  }
271
+ if (error instanceof n8n_workflow_1.NodeApiError) {
272
+ const httpCode = (_k = error.httpCode) !== null && _k !== void 0 ? _k : undefined;
273
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), { message, httpCode, description: error.description }, { itemIndex: i, message, httpCode });
274
+ }
268
275
  throw new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex: i, message, description: message });
269
276
  }
270
277
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-ancoremate",
3
- "version": "1.19.0",
3
+ "version": "1.19.2",
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",