'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.TRANSACTIONS_DBIS = exports.TRANSACTIONS_DBI_NAMES_ENUM = exports.OVERFLOW_MARKER = exports.TIMESTAMP_NAMES = exports.SEARCH_TYPES = exports.MAX_SEARCH_KEY_LENGTH = exports.DBI_DEFINITION_NAME = exports.ENVIRONMENT_NAME_KEY = exports.AUDIT_STORE_NAME = exports.INTERNAL_DBIS_NAME = void 0;
exports.INTERNAL_DBIS_NAME = '__dbis__';
exports.AUDIT_STORE_NAME = '__txns__';
exports.ENVIRONMENT_NAME_KEY = '__environment_name__';
exports.DBI_DEFINITION_NAME = '__dbi_defintion__';
//LMDB has a 1978 byte limit for keys, but we try to retain plenty of padding so we don't have to calculate encoded byte length
exports.MAX_SEARCH_KEY_LENGTH = 256;
exports.SEARCH_TYPES = {
    EQUALS: 'equals',
    STARTS_WITH: 'startsWith',
    _STARTS_WITH: 'starts_with',
    ENDS_WITH: 'endsWith',
    _ENDS_WITH: 'ends_with',
    CONTAINS: 'contains',
    SEARCH_ALL: 'searchAll',
    SEARCH_ALL_TO_MAP: 'searchAllToMap',
    BATCH_SEARCH_BY_HASH: 'batchSearchByHash',
    BATCH_SEARCH_BY_HASH_TO_MAP: 'batchSearchByHashToMap',
    GREATER_THAN: 'greaterThan',
    _GREATER_THAN: 'greater_than',
    GREATER_THAN_EQUAL: 'greaterThanEqual',
    _GREATER_THAN_EQUAL: 'greater_than_equal',
    LESS_THAN: 'lessThan',
    _LESS_THAN: 'less_than',
    LESS_THAN_EQUAL: 'lessThanEqual',
    _LESS_THAN_EQUAL: 'less_than_equal',
    BETWEEN: 'between',
};
exports.TIMESTAMP_NAMES = ['__createdtime__', '__updatedtime__'];
// This is appended to the end of keys that are larger than the max key size, as a marker to indicate
// the full value must be retrieved from the full record (from the hash/primary dbi) for operations
// that require the full value (contains and ends-with operators).
exports.OVERFLOW_MARKER = '\uffff';
exports.TRANSACTIONS_DBI_NAMES_ENUM = {
    TIMESTAMP: 'timestamp',
    HASH_VALUE: 'hash_value',
    USER_NAME: 'user_name',
};
exports.TRANSACTIONS_DBIS = Object.values(exports.TRANSACTIONS_DBI_NAMES_ENUM);
//# sourceMappingURL=terms.js.map