"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ticketing = void 0;
const ticketingCreateTicket_js_1 = require("../funcs/ticketingCreateTicket.js");
const ticketingDownloadTicketingAttachment_js_1 = require("../funcs/ticketingDownloadTicketingAttachment.js");
const ticketingGetAttachment_js_1 = require("../funcs/ticketingGetAttachment.js");
const ticketingGetCollection_js_1 = require("../funcs/ticketingGetCollection.js");
const ticketingGetComment_js_1 = require("../funcs/ticketingGetComment.js");
const ticketingGetTicket_js_1 = require("../funcs/ticketingGetTicket.js");
const ticketingGetTicketType_js_1 = require("../funcs/ticketingGetTicketType.js");
const ticketingGetUser_js_1 = require("../funcs/ticketingGetUser.js");
const ticketingListAttachments_js_1 = require("../funcs/ticketingListAttachments.js");
const ticketingListCollections_js_1 = require("../funcs/ticketingListCollections.js");
const ticketingListComments_js_1 = require("../funcs/ticketingListComments.js");
const ticketingListTickets_js_1 = require("../funcs/ticketingListTickets.js");
const ticketingListTicketStatuses_js_1 = require("../funcs/ticketingListTicketStatuses.js");
const ticketingListTicketTypes_js_1 = require("../funcs/ticketingListTicketTypes.js");
const ticketingListUsers_js_1 = require("../funcs/ticketingListUsers.js");
const ticketingUpdateTicket_js_1 = require("../funcs/ticketingUpdateTicket.js");
const sdks_js_1 = require("../lib/sdks.js");
const operations_js_1 = require("../sdk/types/operations.js");
const fp_js_1 = require("./types/fp.js");
class Ticketing extends sdks_js_1.ClientSDK {
    /**
     * Create Ticket
     */
    async createTicket(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, ticketingCreateTicket_js_1.ticketingCreateTicket)(this, request, options));
    }
    /**
     * Download Attachment
     */
    async downloadTicketingAttachment(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, ticketingDownloadTicketingAttachment_js_1.ticketingDownloadTicketingAttachment)(this, request, options));
    }
    /**
     * Get Attachment
     */
    async getAttachment(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, ticketingGetAttachment_js_1.ticketingGetAttachment)(this, request, options));
    }
    /**
     * Get Collection
     */
    async getCollection(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, ticketingGetCollection_js_1.ticketingGetCollection)(this, request, options));
    }
    /**
     * Get Comment
     */
    async getComment(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, ticketingGetComment_js_1.ticketingGetComment)(this, request, options));
    }
    /**
     * Get Ticket
     */
    async getTicket(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, ticketingGetTicket_js_1.ticketingGetTicket)(this, request, options));
    }
    /**
     * Get Ticket Type
     */
    async getTicketType(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, ticketingGetTicketType_js_1.ticketingGetTicketType)(this, request, options));
    }
    /**
     * Get User
     */
    async getUser(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, ticketingGetUser_js_1.ticketingGetUser)(this, request, options));
    }
    /**
     * List Attachments
     */
    async listAttachments(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, ticketingListAttachments_js_1.ticketingListAttachments)(this, request, options));
    }
    /**
     * List Collections
     */
    async listCollections(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, ticketingListCollections_js_1.ticketingListCollections)(this, request, options));
    }
    /**
     * List Comments
     */
    async listComments(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, ticketingListComments_js_1.ticketingListComments)(this, request, options));
    }
    /**
     * List Ticket Statuses
     */
    async listTicketStatuses(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, ticketingListTicketStatuses_js_1.ticketingListTicketStatuses)(this, request, options));
    }
    /**
     * List Ticket Types
     */
    async listTicketTypes(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, ticketingListTicketTypes_js_1.ticketingListTicketTypes)(this, request, options));
    }
    /**
     * List Tickets
     */
    async listTickets(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, ticketingListTickets_js_1.ticketingListTickets)(this, request, options));
    }
    /**
     * List Users
     */
    async listUsers(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, ticketingListUsers_js_1.ticketingListUsers)(this, request, options));
    }
    /**
     * Update Ticket
     */
    async updateTicket(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, ticketingUpdateTicket_js_1.ticketingUpdateTicket)(this, request, options));
    }
}
exports.Ticketing = Ticketing;
//# sourceMappingURL=ticketing.js.map