mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
38 lines
862 B
TypeScript
38 lines
862 B
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const DATA_TABLE_ID_FIELD = 'dataTableId';
|
|
|
|
export const COLUMNS = {
|
|
displayName: 'Columns',
|
|
name: 'columns',
|
|
type: 'resourceMapper',
|
|
default: {
|
|
mappingMode: 'defineBelow',
|
|
value: null,
|
|
},
|
|
noDataExpression: true,
|
|
required: true,
|
|
typeOptions: {
|
|
loadOptionsDependsOn: [`${DATA_TABLE_ID_FIELD}.value`],
|
|
resourceMapper: {
|
|
resourceMapperMethod: 'getDataTables',
|
|
mode: 'add',
|
|
fieldWords: {
|
|
singular: 'column',
|
|
plural: 'columns',
|
|
},
|
|
addAllFields: true,
|
|
multiKeyMatch: true,
|
|
},
|
|
},
|
|
} satisfies INodeProperties;
|
|
|
|
export const DRY_RUN = {
|
|
displayName: 'Dry Run',
|
|
name: 'dryRun',
|
|
type: 'boolean',
|
|
default: false,
|
|
description:
|
|
'Whether the delete operation should only be simulated, returning the rows that would have been deleted',
|
|
} satisfies INodeProperties;
|