"use strict";
/**
 * Configuration file naming description
 * In general file should be named as `${DEFAULT_CONFIG_FILE_NAME}.beta.json`
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.NEW_CONFIG_VALUE_SET = exports.CONFIG_FILE_UPDATED = exports.CONFIG_TEMPLATE_TO_REPLACE = exports.CONFIG_TEMPLATE_DIVIDER = exports.DEFAULT_CONFIG_FILE_EXTENSION = exports.DEFAULT_CONFIG_PLATFORM = exports.DEFAULT_CONFIG_FILE_NAME = exports.DEFAULT_CONFIG_DIR = void 0;
/**
 * If user don't specify RDPLIB_ENV_DIR environment variable it will be assigned to DEFAULT_CONFIG_DIR
 * By default the configuration file will be searched in the root folder
 */
exports.DEFAULT_CONFIG_DIR = '.';
/**
 * First part of the configuration file name
 * If user project contains such file with extension defined bellow it will be used
 * configuration file
 */
exports.DEFAULT_CONFIG_FILE_NAME = 'rdplibconfig';
/**
 * If user don't specify RDPLIB_ENV environment variable it will be assigned to DEFAULT_CONFIG_PLATFORM
 * By default ${DEFAULT_CONFIG_FILE_NAME}.prod.json from project root directory will be used as a config source
 */
exports.DEFAULT_CONFIG_PLATFORM = 'prod';
/**
 * By default we will looking for a config file with default extension
 */
exports.DEFAULT_CONFIG_FILE_EXTENSION = 'json';
/**
 * Divider for template string for configuration file. See string with template ${*:*} (endpoint.url)
 * Example
 * {
 *  "server": {
 *      "domain": "www.refinitiv.com",
 *      "path": "v1"
 *  },
 *  "endpoint": {
 *      "url": "${server:domain}/api/v1"
 *  }
 * }
 */
exports.CONFIG_TEMPLATE_DIVIDER = ':';
/**
 * Template to be replaced with appropriate values used within the same config file
 * In JS '?' after range operator '.*' defines lazy search
 */
exports.CONFIG_TEMPLATE_TO_REPLACE = /\$\{(.*?)\}/gm;
/**
 * Event name which occurs after configuration file changed and new configuration has been loaded
 */
exports.CONFIG_FILE_UPDATED = 'update';
/**
 * Event name which occurs when library config is changed by using config.set() method
 */
exports.NEW_CONFIG_VALUE_SET = 'set';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJhY3RzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvbmZpZy9jb250cmFjdHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7R0FHRzs7O0FBRUg7OztHQUdHO0FBQ1UsUUFBQSxrQkFBa0IsR0FBRyxHQUFHLENBQUM7QUFFdEM7Ozs7R0FJRztBQUNVLFFBQUEsd0JBQXdCLEdBQUcsY0FBYyxDQUFDO0FBRXZEOzs7R0FHRztBQUNVLFFBQUEsdUJBQXVCLEdBQUcsTUFBTSxDQUFDO0FBRTlDOztHQUVHO0FBQ1UsUUFBQSw2QkFBNkIsR0FBRyxNQUFNLENBQUM7QUFFcEQ7Ozs7Ozs7Ozs7OztHQVlHO0FBQ1UsUUFBQSx1QkFBdUIsR0FBRyxHQUFHLENBQUM7QUFFM0M7OztHQUdHO0FBQ1UsUUFBQSwwQkFBMEIsR0FBRyxlQUFlLENBQUM7QUFFMUQ7O0dBRUc7QUFDVSxRQUFBLG1CQUFtQixHQUFHLFFBQVEsQ0FBQztBQUU1Qzs7R0FFRztBQUNVLFFBQUEsb0JBQW9CLEdBQUcsS0FBSyxDQUFDIn0=