import { EntitySettingType } from "../enums/entitySettingsType";
const DISCUSSION_SETTINGS = {
    discussions: {
        allowedChannelIds: null,
        allowedLocations: null,
    },
};
const DEFAULT_ENTITY_SETTINGS_BY_ENTITY_TYPE = {
    discussion: {
        type: EntitySettingType.CONTENT,
        settings: Object.assign({}, DISCUSSION_SETTINGS),
    },
    site: null,
    project: null,
    initiative: null,
    initiativeTemplate: null,
    page: null,
    content: {
        type: EntitySettingType.CONTENT,
        settings: Object.assign({}, DISCUSSION_SETTINGS),
    },
    organization: null,
    org: null,
    group: {
        type: EntitySettingType.GROUP,
        settings: Object.assign({}, DISCUSSION_SETTINGS),
    },
    template: null,
    survey: null,
    event: null,
    user: null,
    channel: null,
};
export function getDefaultEntitySettings(entityType) {
    if (!DEFAULT_ENTITY_SETTINGS_BY_ENTITY_TYPE[entityType]) {
        throw new Error(`no default entity settings defined for ${entityType}`);
    }
    return {
        type: DEFAULT_ENTITY_SETTINGS_BY_ENTITY_TYPE[entityType].type,
        settings: Object.assign({}, DEFAULT_ENTITY_SETTINGS_BY_ENTITY_TYPE[entityType].settings),
    };
}
//# sourceMappingURL=getDefaultEntitySettings.js.map