n8n-nodes-fingrid 0.2.7 → 0.2.9
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.
|
@@ -296,13 +296,7 @@ class Fingrid {
|
|
|
296
296
|
default: true,
|
|
297
297
|
displayOptions: {
|
|
298
298
|
show: {
|
|
299
|
-
operation: [
|
|
300
|
-
"search",
|
|
301
|
-
"getData",
|
|
302
|
-
"getFileData",
|
|
303
|
-
"getMany",
|
|
304
|
-
"getUpdated",
|
|
305
|
-
],
|
|
299
|
+
operation: ["getData", "getFileData", "getMany", "getUpdated"],
|
|
306
300
|
},
|
|
307
301
|
},
|
|
308
302
|
description: "Whether to return a simplified version of the response instead of the raw data",
|
|
@@ -329,8 +323,8 @@ class Fingrid {
|
|
|
329
323
|
displayName: "Page Size",
|
|
330
324
|
name: "pageSize",
|
|
331
325
|
type: "number",
|
|
332
|
-
default:
|
|
333
|
-
description: "Rows to request per page from the API when 'Return All' is on. Fingrid
|
|
326
|
+
default: 250,
|
|
327
|
+
description: "Rows to request per page from the API when 'Return All' is on. Fingrid enforces a maximum of 250 per page.",
|
|
334
328
|
},
|
|
335
329
|
{
|
|
336
330
|
displayName: "Sort By",
|
|
@@ -393,7 +387,6 @@ class Fingrid {
|
|
|
393
387
|
? await GenericFunctions_1.fetchPaginated.call(this, endpoint, qs, i)
|
|
394
388
|
: await GenericFunctions_1.fetchSingle.call(this, endpoint, qs, i);
|
|
395
389
|
const SIMPLIFIABLE_OPERATIONS = [
|
|
396
|
-
"search",
|
|
397
390
|
"getData",
|
|
398
391
|
"getFileData",
|
|
399
392
|
"getMany",
|
|
@@ -152,7 +152,7 @@ async function fetchPaginated(endpoint, qs, i) {
|
|
|
152
152
|
var _a;
|
|
153
153
|
const returnAll = this.getNodeParameter("returnAll", i, false);
|
|
154
154
|
const limit = this.getNodeParameter("limit", i, 50);
|
|
155
|
-
const pageSize = qs.pageSize ||
|
|
155
|
+
const pageSize = qs.pageSize || 250;
|
|
156
156
|
const collected = [];
|
|
157
157
|
let page = 1;
|
|
158
158
|
let lastPage = 1;
|