"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createReaction = createReaction;
exports.removeReaction = removeReaction;
exports.createReactionV2 = createReactionV2;
exports.removeReactionV2 = removeReactionV2;
const discussions_api_request_1 = require("../discussions-api-request");
/**
 * create reaction to post
 *
 * @deprecated use createReactionV2 instead
 * @export
 * @param {ICreateReactionOptions} options
 * @return {*}  {Promise<IReaction>}
 */
function createReaction(options) {
    options.httpMethod = "POST";
    return (0, discussions_api_request_1.discussionsApiRequest)(`/reactions`, options);
}
/**
 * remove reaction
 *
 * @deprecated use removeReactionV2 instead
 * @export
 * @param {IRemoveReactionOptions} options
 * @return {*}  {Promise<IRemoveReactionResponse>}
 */
function removeReaction(options) {
    const { reactionId } = options;
    options.httpMethod = "DELETE";
    return (0, discussions_api_request_1.discussionsApiRequest)(`/reactions/${reactionId}`, options);
}
/*******************************
 * V2
 *******************************/
/**
 * create reaction to post
 *
 * @export
 * @param {ICreateReactionOptions} options
 * @return {*}  {Promise<IReaction>}
 */
function createReactionV2(options) {
    options.httpMethod = "POST";
    return (0, discussions_api_request_1.discussionsApiRequestV2)(`/reactions`, options);
}
/**
 * remove reaction
 *
 * @export
 * @param {IRemoveReactionOptions} options
 * @return {*}  {Promise<IRemoveReactionResponse>}
 */
function removeReactionV2(options) {
    const { reactionId } = options;
    options.httpMethod = "DELETE";
    return (0, discussions_api_request_1.discussionsApiRequestV2)(`/reactions/${reactionId}`, options);
}
//# sourceMappingURL=reactions.js.map