@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
25 lines • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.action = void 0;
const utils_1 = require("../utils");
const MERGE_ENTITY = '[Project] Merge Entity';
const MERGE_ENTITY_ERROR = '[Project] Merge Entity Error';
const MERGE_ENTITY_SUCCESS = '[Project] Merge Entity Success';
const MERGE_ENTITY_BATCH = '[Project] Merge Entity Batch';
const MERGE_ENTITY_BATCH_ERROR = '[Project] Merge Entity Batch Error';
const MERGE_ENTITY_BATCH_SUCCESS = '[Project] Merge Entity Batch Success';
exports.action = {
MERGE_ENTITY,
MERGE_ENTITY_SUCCESS,
MERGE_ENTITY_ERROR,
MERGE_ENTITY_BATCH,
MERGE_ENTITY_BATCH_SUCCESS,
MERGE_ENTITY_BATCH_ERROR,
mergeEntity: utils_1.getAction(MERGE_ENTITY),
mergeEntitySuccess: utils_1.getSuccessAction(MERGE_ENTITY_SUCCESS),
mergeEntityError: utils_1.getErrorAction(MERGE_ENTITY_ERROR),
mergeEntityBatch: utils_1.getAction(MERGE_ENTITY_BATCH),
mergeEntityBatchError: utils_1.getErrorAction(MERGE_ENTITY_BATCH_ERROR),
mergeEntityBatchSuccess: utils_1.getSuccessAction(MERGE_ENTITY_BATCH_SUCCESS),
};
//# sourceMappingURL=action.js.map