text: import { NotImplementedError } from "../Errors/NotImplementedError";
  import { ModelDecorator } from "../Model/ModelDecorator";
  function __throwNotImplemented() {
      return Promise.reject(new NotImplementedError("Must be implemented for a specific repository implementation."));
  }
  export var Repository = {
      PROTOTYPE: {
          get: __throwNotImplemented,
          resolve: __throwNotImplemented,
          exists: __throwNotImplemented,
          refresh: __throwNotImplemented,
          save: __throwNotImplemented,
          saveAndRefresh: __throwNotImplemented,
          delete: __throwNotImplemented,
      },
      isDecorated: function (object) {
          return ModelDecorator
              .hasPropertiesFrom(Repository.PROTOTYPE, object);
      },
      decorate: function (object) {
          if (Repository.isDecorated(object))
              return;
          return ModelDecorator
              .definePropertiesFrom(Repository.PROTOTYPE, object);
      },
  };
  
  //# sourceMappingURL=Repository.js.map
  