You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.0 KiB
28 lines
1.0 KiB
'use strict';
|
|
|
|
module.exports = {
|
|
TEMP_POSITION_BASE: 1000000,
|
|
AI_WRITING_STATUS: 'aiWriting',
|
|
AI_WRITING_FAILED_STATUS: 'aiWritingFailed',
|
|
CLICKHOUSE_IDENTIFIER_PATTERN: /^[A-Za-z_][A-Za-z0-9_]*$/,
|
|
CLICKHOUSE_FILTER_OPERATORS: new Set(['=', '!=', '>', '>=', '<', '<=', 'IN', 'BETWEEN', 'LIKE']),
|
|
CLICKHOUSE_SORT_DIRECTIONS: new Set(['ASC', 'DESC']),
|
|
CLICKHOUSE_AGGREGATE_FUNCTION_MAP: Object.freeze({
|
|
grouparray: 'groupArray',
|
|
sum: 'sum',
|
|
avg: 'avg',
|
|
min: 'min',
|
|
max: 'max',
|
|
count: 'count',
|
|
uniq: 'uniq',
|
|
any: 'any',
|
|
argmax: 'argMax',
|
|
argmin: 'argMin',
|
|
}),
|
|
VALIDATED_QUERY_BLOCK_TYPES: new Set(['chart', 'table']),
|
|
DOCX_IMPORT_MAX_FILE_SIZE: 20 * 1024 * 1024,
|
|
DOCX_IMPORT_RESPONSE_TIMEOUT: 15000,
|
|
DOCX_IMPORT_DEADLINE_TIMEOUT: 30000,
|
|
DOCX_ZIP_MAGIC: [0x50, 0x4B, 0x03, 0x04],
|
|
DOCX_CONTENT_TYPE_PATTERN: /application\/vnd\.openxmlformats-officedocument\.wordprocessingml\.document|application\/zip|application\/octet-stream/i,
|
|
};
|
|
|