@bitloops/bl-boilerplate-core
Version:
TypeScript boilerplate code for Bitloops Language generated projects
50 lines (49 loc) • 2.02 kB
JavaScript
/**
* Bitloops Language
* Copyright (C) 2022 Bitloops S.A.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* For further information you can contact legal(at)bitloops.com.
*/
// @TEMPLATE import { CONTEXT_ID as ${camelCase(BOUNDED_CONTEXT)}ContextId } from '../BoundedContexts/${kebab(BOUNDED_CONTEXT)}/config';
// TODO Remove comments
export var CONTEXT_TYPES;
(function (CONTEXT_TYPES) {
CONTEXT_TYPES["InProcess"] = "InProcess";
CONTEXT_TYPES["External"] = "External";
})(CONTEXT_TYPES || (CONTEXT_TYPES = {}));
export var TOPIC_PREFIXES;
(function (TOPIC_PREFIXES) {
TOPIC_PREFIXES["Event"] = "event";
TOPIC_PREFIXES["Command"] = "command";
TOPIC_PREFIXES["Query"] = "query";
})(TOPIC_PREFIXES || (TOPIC_PREFIXES = {}));
const TOPIC_DELIMITER = '.';
const INTEGRATION_EVENT_TOPIC_PREFIX = 'integration';
const PROCESS_MANAGER_EVENT_TOPIC_PREFIX = 'orchestrated';
export var MESSAGE_BUS;
(function (MESSAGE_BUS) {
MESSAGE_BUS["EVENT_BUS"] = "EVENT_BUS";
MESSAGE_BUS["COMMAND_BUS"] = "COMMAND_BUS";
MESSAGE_BUS["INTEGRATION_EVENT_BUS"] = "INTEGRATION_EVENT_BUS";
MESSAGE_BUS["QUERY_BUS"] = "QUERY_BUS";
})(MESSAGE_BUS || (MESSAGE_BUS = {}));
// TODO maybe getting it from the project find away to get it all from the project
const config = {
TOPIC_DELIMITER,
INTEGRATION_EVENT_TOPIC_PREFIX,
PROCESS_MANAGER_EVENT_TOPIC_PREFIX,
};
export { config };