UNPKG

diffusion

Version:

Diffusion JavaScript client

39 lines (35 loc) 1.17 kB
var Constraints = require('./update-constraint'); var UpdateStream = require('./update-stream').UpdateStream; /** * Provide access to * {@link diffusion.topicUpdate.UpdateConstraint UpdateConstraint}, * {@link diffusion.topicUpdate.UpdateConstraintFactory UpdateConstraintFactory}, * {@link diffusion.topicUpdate.PartialJSON PartialJSON}, * {@link diffusion.topicUpdate.TopicCreationResult TopicCreationResult}, and * {@link diffusion.topicUpdate.UpdateStream UpdateStream} * @namespace diffusion.topicUpdate */ module.exports.UpdateConstraint = Constraints.UpdateConstraint; module.exports.UpdateConstraintFactory = Constraints.UpdateConstraintFactory; module.exports.PartialJSON = Constraints.PartialJSON; module.exports.UpdateStream = UpdateStream; /** * Result indicating whether the operation caused a topic to be created or if * it already existed. * * @readonly * @enum * @memberOf diffusion.topicUpdate * @alias TopicCreationResult * @since 6.2 */ module.exports.TopicCreationResult = { /** * A new topic was created. */ CREATED: 1, /** * A topic with the same specification already exists. */ EXISTS: 2 };