import { BaseEngine } from "@memberjunction/core";
/**
 * Simple cache for commonly used type tables across the system that are outside of what we have in the Metadata object
 */
export class TypeTablesCache extends BaseEngine {
    constructor() {
        super(...arguments);
        this._EntityRelationshipDisplayComponents = [];
    }
    async Config(forceRefresh, contextUser, provider) {
        const c = [
            {
                Type: 'entity',
                EntityName: 'MJ: Entity Relationship Display Components',
                PropertyName: '_EntityRelationshipDisplayComponents',
                CacheLocal: true
            }
        ];
        await this.Load(c, provider, forceRefresh, contextUser);
    }
    static get Instance() {
        return super.getInstance();
    }
    get EntityRelationshipDisplayComponents() {
        return this.GetConfigData('_EntityRelationshipDisplayComponents');
    }
}
//# sourceMappingURL=TypeTablesCache.js.map