@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
94 lines • 4.57 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.action = void 0;
const utils_1 = require("../utils");
const DELETE_COMMIT_BY_ENTITYNAME = '[Query-Db] Delete commits by EntityName';
const DELETE_COMMIT_BY_ENTITY_ID = '[Query-Db] Delete commits by entityId';
const DELETE_ERROR = '[Query-Db] Delete Error';
const DELETE_SUCCESS = '[Query-Db] Delete Success';
const QUERY_BY_ENTITYNAME = '[Query-Db] Query commits By EntityName';
const QUERY_BY_ENTITY_ID = '[Query-Db] Query commit By entityId';
const QUERY_ERROR = '[Query-Db] Query Error';
const QUERY_SUCCESS = '[Query-Db] Query Success';
const MERGE_COMMIT = '[Query-Db] Merge commit';
const MERGE_COMMIT_ERROR = '[Query-Db] Merge Error';
const MERGE_COMMIT_SUCCESS = '[Query-Db] Merge Success';
const MERGE_COMMIT_BATCH = '[Query-Db] Merge records of entities';
const MERGE_COMMIT_BATCH_ERROR = '[Query-Db] Merge Batch Error';
const MERGE_COMMIT_BATCH_SUCCESS = '[Query-Db] Merge Batch Success';
const CIDX_SEARCH = '[Query-Db] cidx Search';
const EIDX_SEARCH = '[Query-Db] eidx Search';
const SEARCH_SUCCESS = '[Query-Db] Search Success';
const SEARCH_ERROR = '[Query-Db] Search Error';
const GET_NOTIFICATION = '[Query-Db] Get notification';
const GET_NOTIFICATIONS = '[Query-Db] Get notifications';
const GET_NOTI_SUCCESS = '[Query-Db] Get Notification / Notifications Success';
const GET_NOTI_ERROR = '[Query-Db] Get Notification / Notifications Error';
const CLEAR_NOTIFICATION = '[Query-Db] Clear notification';
const CLEAR_NOTIFICATIONS = '[Query-Db] Clear notifications';
const CLEAR_NOTI_SUCCESS = '[Query-Db] Clear Notification / Notifications Success';
const CLEAR_NOTI_ERROR = '[Query-Db] Clear Notification / Notifications Error';
const DELETE_ENTITY_BY_ENTITYNAME = '[Query-Db] Delete entity by EntityName';
const DELETE_ENTITY_SUCCESS = '[Query-Db] Delete entity by EntityName Success';
const DELETE_ENTITY_ERROR = '[Query-Db] Delete entity by EntityName Error';
exports.action = {
DELETE_COMMIT_BY_ENTITYNAME,
DELETE_COMMIT_BY_ENTITY_ID,
DELETE_ERROR,
DELETE_SUCCESS,
QUERY_BY_ENTITYNAME,
QUERY_BY_ENTITY_ID,
QUERY_ERROR,
QUERY_SUCCESS,
MERGE_COMMIT,
MERGE_COMMIT_ERROR,
MERGE_COMMIT_SUCCESS,
MERGE_COMMIT_BATCH,
MERGE_COMMIT_BATCH_ERROR,
MERGE_COMMIT_BATCH_SUCCESS,
CIDX_SEARCH,
EIDX_SEARCH,
SEARCH_SUCCESS,
SEARCH_ERROR,
GET_NOTIFICATION,
GET_NOTIFICATIONS,
GET_NOTI_SUCCESS,
GET_NOTI_ERROR,
CLEAR_NOTIFICATION,
CLEAR_NOTIFICATIONS,
CLEAR_NOTI_SUCCESS,
CLEAR_NOTI_ERROR,
DELETE_ENTITY_BY_ENTITYNAME,
DELETE_ENTITY_SUCCESS,
DELETE_ENTITY_ERROR,
deleteCommitByEntityId: utils_1.getAction(DELETE_COMMIT_BY_ENTITY_ID),
deleteCommitByEntityName: utils_1.getAction(DELETE_COMMIT_BY_ENTITYNAME),
mergeCommit: utils_1.getAction(MERGE_COMMIT),
mergeCommitBatch: utils_1.getAction(MERGE_COMMIT_BATCH),
queryByEntityName: utils_1.getAction(QUERY_BY_ENTITYNAME),
queryByEntityId: utils_1.getAction(QUERY_BY_ENTITY_ID),
deleteError: utils_1.getErrorAction(DELETE_ERROR),
deleteSuccess: utils_1.getSuccessAction(DELETE_SUCCESS),
queryError: utils_1.getErrorAction(QUERY_ERROR),
querySuccess: utils_1.getSuccessAction(QUERY_SUCCESS),
mergeCommitError: utils_1.getErrorAction(MERGE_COMMIT_ERROR),
mergeCommitSuccess: utils_1.getSuccessAction(MERGE_COMMIT_SUCCESS),
mergeCommitBatchError: utils_1.getErrorAction(MERGE_COMMIT_BATCH_ERROR),
mergeCommitBatchSuccess: utils_1.getSuccessAction(MERGE_COMMIT_BATCH_SUCCESS),
cIdxSearch: utils_1.getAction(CIDX_SEARCH),
eIdxSearch: utils_1.getAction(EIDX_SEARCH),
searchSuccess: utils_1.getSuccessAction(SEARCH_SUCCESS),
searchError: utils_1.getErrorAction(SEARCH_ERROR),
getNotification: utils_1.getAction(GET_NOTIFICATION),
getNotifications: utils_1.getAction(GET_NOTIFICATIONS),
getNotiSuccess: utils_1.getSuccessAction(GET_NOTI_SUCCESS),
getNotiError: utils_1.getErrorAction(GET_NOTI_ERROR),
clearNotification: utils_1.getAction(CLEAR_NOTIFICATION),
clearNotifications: utils_1.getAction(CLEAR_NOTIFICATIONS),
clearNotiSuccess: utils_1.getSuccessAction(CLEAR_NOTI_SUCCESS),
clearNotiError: utils_1.getErrorAction(CLEAR_NOTI_ERROR),
deleteEntityByEntityName: utils_1.getAction(DELETE_ENTITY_BY_ENTITYNAME),
deleteEntityByEntityNameSuccess: utils_1.getSuccessAction(DELETE_ENTITY_SUCCESS),
deleteEntityByEntityNameError: utils_1.getErrorAction(DELETE_ENTITY_ERROR),
};
//# sourceMappingURL=action.js.map