node-eventstore-client/src/persistentSubscriptionNakEventAction.js

15 lines
351 B
JavaScript
Raw Normal View History

2016-03-11 06:57:39 +00:00
const PersistentSubscriptionNakEventAction = {
Unknown: 0,
Park: 1,
Retry: 2,
Skip: 3,
Stop: 4
};
module.exports = PersistentSubscriptionNakEventAction;
module.exports.isValid = function(value) {
for(var k in PersistentSubscriptionNakEventAction)
if (PersistentSubscriptionNakEventAction[k] === value) return true;
return false;
};