first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,107 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const options = {
|
||||
displayName: 'Options',
|
||||
placeholder: 'Add option',
|
||||
name: 'formatOptions',
|
||||
type: 'collection',
|
||||
default: {},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Download Attachments',
|
||||
name: 'download',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Whether to download submitted attachments',
|
||||
},
|
||||
{
|
||||
displayName: 'Attachments Naming Scheme',
|
||||
name: 'binaryNamingScheme',
|
||||
type: 'options',
|
||||
default: 'sequence',
|
||||
displayOptions: {
|
||||
show: {
|
||||
download: [true],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Sequence (e.g. attachment_N)',
|
||||
value: 'sequence',
|
||||
},
|
||||
{
|
||||
name: 'Use Original Form Question ID',
|
||||
value: 'question',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Attachments Prefix',
|
||||
name: 'dataPropertyAttachmentsPrefixName',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
download: [true],
|
||||
binaryNamingScheme: ['sequence'],
|
||||
},
|
||||
},
|
||||
default: 'attachment_',
|
||||
description:
|
||||
'Prefix for name of the binary property to which to write the attachments. An index starting with 0 will be added. So if name is "attachment_" the first attachment is saved to "attachment_0"',
|
||||
},
|
||||
{
|
||||
displayName: 'File Size',
|
||||
name: 'version',
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
download: [true],
|
||||
},
|
||||
},
|
||||
default: 'download_url',
|
||||
description: 'Attachment size to retrieve, if multiple versions are available',
|
||||
options: [
|
||||
{
|
||||
name: 'Original',
|
||||
value: 'download_url',
|
||||
},
|
||||
{
|
||||
name: 'Small',
|
||||
value: 'download_small_url',
|
||||
},
|
||||
{
|
||||
name: 'Medium',
|
||||
value: 'download_medium_url',
|
||||
},
|
||||
{
|
||||
name: 'Large',
|
||||
value: 'download_large_url',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Multiselect Mask',
|
||||
name: 'selectMask',
|
||||
type: 'string',
|
||||
default: 'select_*',
|
||||
description:
|
||||
'Comma-separated list of wildcard-style selectors for fields that should be treated as multiselect fields, i.e. parsed as arrays.',
|
||||
},
|
||||
{
|
||||
displayName: 'Number Mask',
|
||||
name: 'numberMask',
|
||||
type: 'string',
|
||||
default: 'n_*, f_*',
|
||||
description:
|
||||
'Comma-separated list of wildcard-style selectors for fields that should be treated as numbers',
|
||||
},
|
||||
{
|
||||
displayName: 'Reformat',
|
||||
name: 'reformat',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description:
|
||||
'Whether to apply some reformatting to the submission data, such as parsing GeoJSON coordinates',
|
||||
},
|
||||
],
|
||||
} as INodeProperties;
|
||||
Reference in New Issue
Block a user