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,61 @@
|
||||
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 };
|
||||
};
|
||||
Reference in New Issue
Block a user