@hiki9/rich-domain
Version:
Rich Domain is a library that provides a set of tools to help you build complex business logic in NodeJS using Domain Driven Design principles.
24 lines • 767 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VoHooks = exports.EntityHook = void 0;
class EntityHook {
constructor(config) {
this.isHooksConfig = true;
this.typeValidation = config.typeValidation;
this.onChange = config.onChange;
this.onCreate = config.onCreate;
this.rules = config.rules;
this.defaultValues = config.defaultValues;
}
}
exports.EntityHook = EntityHook;
class VoHooks {
constructor(config) {
this.isVoHookConfig = true;
this.typeValidation = config.typeValidation;
this.rules = config.rules;
this.transformBeforeCreate = config.transformBeforeCreate;
}
}
exports.VoHooks = VoHooks;
//# sourceMappingURL=hooks.js.map