UNPKG

@o3r/rules-engine

Version:

This module provides a rule engine that can be executed on your Otter application to customize your application (translations, placeholders and configs) based on a json file generated by your CMS.

33 lines 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateV116 = exports.updateV100 = void 0; const schematics_1 = require("@angular-devkit/schematics"); const schematics_2 = require("@o3r/schematics"); const action_module_split_1 = require("./v10.0/action-module-split"); const use_register_action_handlers_1 = require("./v11.6/use-register-action-handlers"); function updateV100Fn() { return (tree, context) => { const updateRules = [ (0, action_module_split_1.updateRuleEngineService)(), (_, ctx) => { ctx.logger.warn('The Rules Engine executors are now split in their dedicated modules.'); ctx.logger.warn('please refer to https://github.com/AmadeusITGroup/otter/blob/main/docs/rules-engine/how-to-use/integration.md#action-executor-modules'); } ]; return (0, schematics_1.chain)(updateRules)(tree, context); }; } /** * update of Otter library V10.0 */ exports.updateV100 = (0, schematics_2.createOtterSchematic)(updateV100Fn); function updateV116Fn() { return (0, schematics_1.chain)([ use_register_action_handlers_1.useRegisterActionHandlers ]); } /** * Update of Otter library V11.6 */ exports.updateV116 = (0, schematics_2.createOtterSchematic)(updateV116Fn); //# sourceMappingURL=index.js.map