"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.useQueryExportFeedbackQueryResultsMutation = useQueryExportFeedbackQueryResultsMutation;
exports.mutationKeyQueryExportFeedbackQueryResults = mutationKeyQueryExportFeedbackQueryResults;
exports.buildQueryExportFeedbackQueryResultsMutation = buildQueryExportFeedbackQueryResultsMutation;
const react_query_1 = require("@tanstack/react-query");
const queryExportFeedbackQueryResults_js_1 = require("../funcs/queryExportFeedbackQueryResults.js");
const primitives_js_1 = require("../lib/primitives.js");
const fp_js_1 = require("../types/fp.js");
const _context_js_1 = require("./_context.js");
/**
 * Export Feedback Query Results
 */
function useQueryExportFeedbackQueryResultsMutation(options) {
    const client = (0, _context_js_1.useInkeepAnalyticsContext)();
    return (0, react_query_1.useMutation)({
        ...buildQueryExportFeedbackQueryResultsMutation(client, options),
        ...options,
    });
}
function mutationKeyQueryExportFeedbackQueryResults() {
    return ["@inkeep/inkeep-analytics", "Query", "exportFeedbackQueryResults"];
}
function buildQueryExportFeedbackQueryResultsMutation(client$, hookOptions) {
    return {
        mutationKey: mutationKeyQueryExportFeedbackQueryResults(),
        mutationFn: function queryExportFeedbackQueryResultsMutationFn({ 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, queryExportFeedbackQueryResults_js_1.queryExportFeedbackQueryResults)(client$, request, mergedOptions));
        },
    };
}
//# sourceMappingURL=queryExportFeedbackQueryResults.js.map