"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OptionsApiImpl = void 0;
const ApiBase_1 = require("./ApiBase");
class OptionsApiImpl extends ApiBase_1.ApiBase {
    getAdaptableId() {
        return this.getAdaptableOptions().adaptableId;
    }
    getAdaptableStateKey() {
        return this.getAdaptableOptions().adaptableStateKey;
    }
    isAutogeneratePrimaryKey() {
        return this.getAdaptableOptions().autogeneratePrimaryKey;
    }
    getLicenseKey() {
        return this.getAdaptableOptions().licenseKey;
    }
    getPrimaryKey() {
        return this.getAdaptableOptions().primaryKey;
    }
    getUserName() {
        return this.getAdaptableOptions().userName;
    }
    getAdaptableContext() {
        if (this.getAdaptableOptions().adaptableContext == undefined) {
            this.getAdaptableOptions().adaptableContext = {};
        }
        return this.getAdaptableOptions().adaptableContext;
    }
    getAdaptableOptions() {
        return this.getOptions();
    }
    getActionColumnOptions() {
        return this.getOptions().actionColumnOptions;
    }
    getRowFormOptions() {
        return this.getOptions().rowFormOptions;
    }
    getCellSummaryOptions() {
        return this.getOptions().cellSummaryOptions;
    }
    getCalendarOptions() {
        return this.getOptions().calendarOptions;
    }
    getColumnOptions() {
        return this.getOptions().columnOptions;
    }
    getNoteOptions() {
        return this.getOptions().noteOptions;
    }
    getPredicateOptions() {
        return this.getOptions().predicateOptions;
    }
    getCommentOptions() {
        return this.getOptions().commentOptions;
    }
    getCustomSortOptions() {
        return this.getOptions().customSortOptions;
    }
    getContainerOptions() {
        return this.getOptions().containerOptions;
    }
    getDataSetOptions() {
        return this.getOptions().dataSetOptions;
    }
    getNotificationsOptions() {
        return this.getOptions().notificationsOptions;
    }
    getAlertOptions() {
        return this.getOptions().alertOptions;
    }
    getDashboardOptions() {
        return this.getOptions().dashboardOptions;
    }
    getEditOptions() {
        return this.getOptions().editOptions;
    }
    getExportOptions() {
        return this.getOptions().exportOptions;
    }
    getLayoutOptions() {
        return this.getOptions().layoutOptions;
    }
    getColumnMenuOptions() {
        return this.getOptions().columnMenuOptions;
    }
    getContextMenuOptions() {
        return this.getOptions().contextMenuOptions;
    }
    getFilterOptions() {
        return this.getOptions().filterOptions;
    }
    getExpressionOptions() {
        return this.getOptions().expressionOptions;
    }
    getQuickSearchOptions() {
        return this.getOptions().quickSearchOptions;
    }
    getFormatColumnOptions() {
        return this.getOptions().formatColumnOptions;
    }
    getStateOptions() {
        return this.getOptions().stateOptions;
    }
    getTeamSharingOptions() {
        return this.getOptions().teamSharingOptions;
    }
    getUserInterfaceOptions() {
        return this.getOptions().userInterfaceOptions;
    }
    getToolPanelOptions() {
        return this.getOptions().toolPanelOptions;
    }
    getChartingOptions() {
        return this.getOptions().chartingOptions;
    }
    getDataChangeHistoryOptions() {
        return this.getOptions().dataChangeHistoryOptions;
    }
    getEntitlementOptions() {
        return this.getOptions().entitlementOptions;
    }
    getFlashingCellOptions() {
        return this.getOptions().flashingCellOptions;
    }
    getSettingsPanelOptions() {
        return this.getOptions().settingsPanelOptions;
    }
    getFdc3Options() {
        return this.getOptions().fdc3Options;
    }
    getDataImportOptions() {
        return this.getOptions().dataImportOptions;
    }
    addToAdaptableContext(key, value) {
        const adaptableContext = this.getAdaptableContext();
        adaptableContext[key] = value;
    }
    removeFromAdaptableContext(key) {
        const adaptableContext = this.getAdaptableContext();
        delete adaptableContext[key];
    }
    clearAdaptableContext() {
        this.getAdaptableOptions().adaptableContext = {};
    }
}
exports.OptionsApiImpl = OptionsApiImpl;
