<gh_stars>0
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var Document_1 = require("../Document/Document");
var GeneralRegistry_1 = require("../GeneralRegistry/GeneralRegistry");
var AddMemberAction_1 = require("../LDP/AddMemberAction");
var DocumentMetadata_1 = require("../LDP/DocumentMetadata");
var Error_1 = require("../LDP/Error");
var ErrorResponse_1 = require("../LDP/ErrorResponse");
var Map_1 = require("../LDP/Map");
var MapEntry_1 = require("../LDP/MapEntry");
var RemoveMemberAction_1 = require("../LDP/RemoveMemberAction");
var ResponseMetadata_1 = require("../LDP/ResponseMetadata");
var ValidationError_1 = require("../LDP/ValidationError");
var ChildCreatedEvent_1 = require("../Messaging/ChildCreatedEvent");
var DocumentCreatedEventDetails_1 = require("../Messaging/DocumentCreatedEventDetails");
var DocumentDeletedEvent_1 = require("../Messaging/DocumentDeletedEvent");
var DocumentModifiedEvent_1 = require("../Messaging/DocumentModifiedEvent");
var MemberAddedEvent_1 = require("../Messaging/MemberAddedEvent");
var MemberAddedEventDetails_1 = require("../Messaging/MemberAddedEventDetails");
var MemberRemovedEvent_1 = require("../Messaging/MemberRemovedEvent");
var MemberRemovedEventDetails_1 = require("../Messaging/MemberRemovedEventDetails");
var DigestedObjectSchema_1 = require("../ObjectSchema/DigestedObjectSchema");
var QueryMetadata_1 = require("../QueryDocuments/QueryMetadata");
var RegisteredPointer_1 = require("../Registry/RegisteredPointer");
var ValidationReport_1 = require("../SHACL/ValidationReport");
var ValidationResult_1 = require("../SHACL/ValidationResult");
var PlatformInstance_1 = require("../System/PlatformInstance");
var PlatformMetadata_1 = require("../System/PlatformMetadata");
var AbstractContext_1 = require("./AbstractContext");
var GlobalContext = (function (_super) {
    tslib_1.__extends(GlobalContext, _super);
    function GlobalContext() {
        var _this = _super.call(this, undefined) || this;
        _this._baseURI = "";
        _this._generalObjectSchema = new DigestedObjectSchema_1.DigestedObjectSchema();
        _this.registry = GeneralRegistry_1.GeneralRegistry.createFrom({ context: _this, __modelDecorator: RegisteredPointer_1.RegisteredPointer });
        _this.__registerDefaultObjectSchemas();
        _this.__registerDefaultDecorators();
        return _this;
    }
    GlobalContext.prototype.__registerDefaultObjectSchemas = function () {
        this
            .extendObjectSchema(Document_1.Document)
            .extendObjectSchema(PlatformMetadata_1.PlatformMetadata)
            .extendObjectSchema(PlatformInstance_1.PlatformInstance)
            .extendObjectSchema(AddMemberAction_1.AddMemberAction)
            .extendObjectSchema(RemoveMemberAction_1.RemoveMemberAction)
            .extendObjectSchema(Error_1.Error)
            .extendObjectSchema(Map_1.Map)
            .extendObjectSchema(MapEntry_1.MapEntry.SCHEMA)
            .extendObjectSchema(DocumentMetadata_1.DocumentMetadata)
            .extendObjectSchema(ErrorResponse_1.ErrorResponse)
            .extendObjectSchema(ResponseMetadata_1.ResponseMetadata)
            .extendObjectSchema(ValidationError_1.ValidationError)
            .extendObjectSchema(ValidationReport_1.ValidationReport)
            .extendObjectSchema(ValidationResult_1.ValidationResult)
            .extendObjectSchema(QueryMetadata_1.QueryMetadata)
            .extendObjectSchema(ChildCreatedEvent_1.ChildCreatedEvent)
            .extendObjectSchema(DocumentCreatedEventDetails_1.DocumentCreatedEventDetails)
            .extendObjectSchema(DocumentDeletedEvent_1.DocumentDeletedEvent)
            .extendObjectSchema(DocumentModifiedEvent_1.DocumentModifiedEvent)
            .extendObjectSchema(MemberAddedEvent_1.MemberAddedEvent)
            .extendObjectSchema(MemberAddedEventDetails_1.MemberAddedEventDetails)
            .extendObjectSchema(MemberRemovedEvent_1.MemberRemovedEvent)
            .extendObjectSchema(MemberRemovedEventDetails_1.MemberRemovedEventDetails);
    };
    GlobalContext.prototype.__registerDefaultDecorators = function () {
    };
    GlobalContext.instance = new GlobalContext();
    return GlobalContext;
}(AbstractContext_1.AbstractContext));
exports.GlobalContext = GlobalContext;

//# sourceMappingURL=GlobalContext.js.map
