@apify/n8n-nodes-apify
Version:
n8n nodes for Apify
98 lines • 2.62 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.properties = void 0;
exports.properties = [
{
displayName: 'GET /v2/datasets/{datasetId}/items',
name: 'operation',
type: 'notice',
typeOptions: {
theme: 'info',
},
default: '',
displayOptions: {
show: {
resource: ['Datasets'],
operation: ['Get items'],
},
},
},
{
displayName: 'Dataset ID',
name: 'datasetId',
required: true,
description: 'Dataset ID or `username~dataset-name`',
default: 'WkzbQMuFYuamGv3YF',
type: 'string',
displayOptions: {
show: {
resource: ['Datasets'],
operation: ['Get items'],
},
},
},
{
displayName: 'Offset',
name: 'offset',
description: 'Number of items that should be skipped at the start. The default value is `0`.',
default: null,
type: 'number',
routing: {
request: {
qs: {
offset: '={{ $value || $value === 0 ? $value : undefined }}',
},
},
},
displayOptions: {
show: {
resource: ['Datasets'],
operation: ['Get items'],
},
},
},
{
displayName: 'Limit',
name: 'limit',
description: 'Max number of results to return',
default: 50,
type: 'number',
typeOptions: {
minValue: 1,
},
routing: {
request: {
qs: {
limit: '={{ $value || $value === 0 ? $value : undefined }}',
},
},
},
displayOptions: {
show: {
resource: ['Datasets'],
operation: ['Get items'],
},
},
},
{
displayName: 'Format',
name: 'format',
description: 'Format of the results, possible values are: `JSON`, `jsonl`, `csv`, `html`, `xlsx`, `xml` and `rss`. The default value is `JSON`.',
default: 'json',
type: 'string',
routing: {
request: {
qs: {
format: '={{ $value }}',
},
},
},
displayOptions: {
show: {
resource: ['Datasets'],
operation: ['Get items'],
},
},
},
];
//# sourceMappingURL=properties.js.map