index.js 1.0 KB

1234567891011121314151617181920212223
  1. 'use strict';
  2. function EditionInterface(store) {
  3. this.store = store;
  4. }
  5. EditionInterface.prototype.read = require('./actions/read.js');
  6. EditionInterface.prototype.readJSON = require('./actions/read-json.js');
  7. EditionInterface.prototype.exists = require('./actions/exists');
  8. EditionInterface.prototype.write = require('./actions/write.js');
  9. EditionInterface.prototype.writeJSON = require('./actions/write-json.js');
  10. EditionInterface.prototype.extendJSON = require('./actions/extend-json.js');
  11. EditionInterface.prototype.append = require('./actions/append.js');
  12. EditionInterface.prototype.delete = require('./actions/delete.js');
  13. EditionInterface.prototype.copy = require('./actions/copy.js').copy;
  14. EditionInterface.prototype._copySingle = require('./actions/copy.js')._copySingle;
  15. EditionInterface.prototype.copyTpl = require('./actions/copy-tpl.js');
  16. EditionInterface.prototype.move = require('./actions/move.js');
  17. EditionInterface.prototype.commit = require('./actions/commit.js');
  18. exports.create = function (store) {
  19. return new EditionInterface(store);
  20. };