mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 17:14:05 -08:00
62 lines
1.5 KiB
TypeScript
62 lines
1.5 KiB
TypeScript
import type { TColumnType, TDateTimeFormat, TInheritColumnKey } from './types';
|
|
|
|
export type ColumnType = keyof typeof schema.columnTypes;
|
|
|
|
export const schema = {
|
|
rowFetchSegmentLimit: 1000,
|
|
dateTimeFormat: 'YYYY-MM-DDTHH:mm:ss.SSSZ',
|
|
internalNames: {
|
|
_id: 'text',
|
|
_creator: 'creator',
|
|
_ctime: 'ctime',
|
|
_last_modifier: 'last-modifier',
|
|
_mtime: 'mtime',
|
|
_seq: 'auto-number',
|
|
},
|
|
columnTypes: {
|
|
text: 'Text',
|
|
'long-text': 'Long Text',
|
|
number: 'Number',
|
|
collaborator: 'Collaborator',
|
|
date: 'Date',
|
|
duration: 'Duration',
|
|
'single-select': 'Single Select',
|
|
'multiple-select': 'Multiple Select',
|
|
image: 'Image',
|
|
file: 'File',
|
|
email: 'Email',
|
|
url: 'URL',
|
|
checkbox: 'Checkbox',
|
|
rate: 'Rating',
|
|
formula: 'Formula',
|
|
'link-formula': 'Link-Formula',
|
|
geolocation: 'Geolocation',
|
|
link: 'Link',
|
|
creator: 'Creator',
|
|
ctime: 'Created time',
|
|
'last-modifier': 'Last Modifier',
|
|
mtime: 'Last modified time',
|
|
'auto-number': 'Auto number',
|
|
button: 'Button',
|
|
'digital-sign': 'Digital Signature',
|
|
},
|
|
nonUpdateAbleColumnTypes: {
|
|
creator: 'creator',
|
|
ctime: 'ctime',
|
|
'last-modifier': 'last-modifier',
|
|
mtime: 'mtime',
|
|
'auto-number': 'auto-number',
|
|
button: 'button',
|
|
formula: 'formula',
|
|
'link-formula': 'link-formula',
|
|
link: 'link',
|
|
'digital-sign': 'digital-sign',
|
|
},
|
|
} as {
|
|
rowFetchSegmentLimit: number;
|
|
dateTimeFormat: TDateTimeFormat;
|
|
internalNames: { [key in TInheritColumnKey]: ColumnType };
|
|
columnTypes: { [key in TColumnType]: string };
|
|
nonUpdateAbleColumnTypes: { [key in ColumnType]: ColumnType };
|
|
};
|