Exported Tier events from tiers package

These are required to be exported so that external code can subscribe to the
events.
This commit is contained in:
Fabien "egg" O'Carroll 2022-10-20 17:40:37 +07:00
parent 5f928794c3
commit b14b74315f

View File

@ -1,5 +1,16 @@
const TierActivatedEvent = require('./lib/TierActivatedEvent');
const TierArchivedEvent = require('./lib/TierArchivedEvent');
const TierCreatedEvent = require('./lib/TierCreatedEvent');
const TierNameChangeEvent = require('./lib/TierNameChangeEvent');
const TierPriceChangeEvent = require('./lib/TierPriceChangeEvent');
module.exports = { module.exports = {
Tier: require('./lib/Tier'), Tier: require('./lib/Tier'),
TiersAPI: require('./lib/TiersAPI'), TiersAPI: require('./lib/TiersAPI'),
InMemoryTierRepository: require('./lib/InMemoryTierRepository') InMemoryTierRepository: require('./lib/InMemoryTierRepository'),
TierActivatedEvent,
TierArchivedEvent,
TierCreatedEvent,
TierNameChangeEvent,
TierPriceChangeEvent
}; };