UNPKG

@bitloops/bl-boilerplate-core

Version:

TypeScript boilerplate code for Bitloops Language generated projects

53 lines (52 loc) 2.27 kB
"use strict"; /** * 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.config = exports.MESSAGE_BUS = exports.TOPIC_PREFIXES = exports.CONTEXT_TYPES = void 0; // @TEMPLATE import { CONTEXT_ID as ${camelCase(BOUNDED_CONTEXT)}ContextId } from '../BoundedContexts/${kebab(BOUNDED_CONTEXT)}/config'; // TODO Remove comments var CONTEXT_TYPES; (function (CONTEXT_TYPES) { CONTEXT_TYPES["InProcess"] = "InProcess"; CONTEXT_TYPES["External"] = "External"; })(CONTEXT_TYPES = exports.CONTEXT_TYPES || (exports.CONTEXT_TYPES = {})); var TOPIC_PREFIXES; (function (TOPIC_PREFIXES) { TOPIC_PREFIXES["Event"] = "event"; TOPIC_PREFIXES["Command"] = "command"; TOPIC_PREFIXES["Query"] = "query"; })(TOPIC_PREFIXES = exports.TOPIC_PREFIXES || (exports.TOPIC_PREFIXES = {})); const TOPIC_DELIMITER = '.'; const INTEGRATION_EVENT_TOPIC_PREFIX = 'integration'; const PROCESS_MANAGER_EVENT_TOPIC_PREFIX = 'orchestrated'; 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 = exports.MESSAGE_BUS || (exports.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, }; exports.config = config;