import { discussionsApiRequestV2 } from "../discussions-api-request";
/**
 * create setting V2
 *
 * @export
 * @param {ICreateSettingParams} options
 * @return {*} {Promise<IEntitySetting>}
 */
export function createSettingV2(options) {
    options.httpMethod = "POST";
    return discussionsApiRequestV2(`/settings`, options);
}
/**
 * fetch setting V2
 *
 * @export
 * @param {IFetchSettingParams} options
 * @return {*} {Promise<IEntitySetting>}
 */
export function fetchSettingV2(options) {
    options.httpMethod = "GET";
    return discussionsApiRequestV2(`/settings/${options.id}`, options);
}
/**
 * update setting V2
 *
 * @export
 * @param {IUpdateSettingParams} options
 * @return {*} {Promise<IEntitySetting>}
 */
export function updateSettingV2(options) {
    options.httpMethod = "PATCH";
    return discussionsApiRequestV2(`/settings/${options.id}`, options);
}
/**
 * remove setting
 *
 * @export
 * @param {IRemoveSettingParams} options
 * @return {*} {Promise<IRemoveSettingResponse>}
 */
export function removeSettingV2(options) {
    options.httpMethod = "DELETE";
    return discussionsApiRequestV2(`/settings/${options.id}`, options);
}
//# sourceMappingURL=settings.js.map