"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.useFeedbackDeleteFeedbackByIdMutation = useFeedbackDeleteFeedbackByIdMutation;
exports.mutationKeyFeedbackDeleteFeedbackById = mutationKeyFeedbackDeleteFeedbackById;
exports.buildFeedbackDeleteFeedbackByIdMutation = buildFeedbackDeleteFeedbackByIdMutation;
const react_query_1 = require("@tanstack/react-query");
const feedbackDeleteFeedbackById_js_1 = require("../funcs/feedbackDeleteFeedbackById.js");
const primitives_js_1 = require("../lib/primitives.js");
const fp_js_1 = require("../types/fp.js");
const _context_js_1 = require("./_context.js");
/**
 * Delete Feedback by ID
 */
function useFeedbackDeleteFeedbackByIdMutation(options) {
    const client = (0, _context_js_1.useInkeepAnalyticsContext)();
    return (0, react_query_1.useMutation)({
        ...buildFeedbackDeleteFeedbackByIdMutation(client, options),
        ...options,
    });
}
function mutationKeyFeedbackDeleteFeedbackById() {
    return ["@inkeep/inkeep-analytics", "feedback", "deleteFeedbackById"];
}
function buildFeedbackDeleteFeedbackByIdMutation(client$, hookOptions) {
    return {
        mutationKey: mutationKeyFeedbackDeleteFeedbackById(),
        mutationFn: function feedbackDeleteFeedbackByIdMutationFn({ request, options, }) {
            const mergedOptions = {
                ...hookOptions,
                ...options,
                fetchOptions: {
                    ...hookOptions?.fetchOptions,
                    ...options?.fetchOptions,
                    signal: (0, primitives_js_1.combineSignals)(hookOptions?.fetchOptions?.signal, options?.fetchOptions?.signal),
                },
            };
            return (0, fp_js_1.unwrapAsync)((0, feedbackDeleteFeedbackById_js_1.feedbackDeleteFeedbackById)(client$, request, mergedOptions));
        },
    };
}
//# sourceMappingURL=feedbackDeleteFeedbackById.js.map