Path: blob/main/src/publish/netlify/api/services/TicketService.ts
6467 views
/* istanbul ignore file */1/* tslint:disable */2/* eslint-disable */3import type { CancelablePromise } from "../core/CancelablePromise.ts";4import type { BaseHttpRequest } from "../core/BaseHttpRequest.ts";56export class TicketService {7constructor(public readonly httpRequest: BaseHttpRequest) {}89/**10* @returns any error11* @throws ApiError12*/13public createTicket({14clientId,15}: {16clientId: string;17}): CancelablePromise<{18code?: number;19message: string;20}> {21return this.httpRequest.request({22method: "POST",23url: "/oauth/tickets",24query: {25"client_id": clientId,26},27});28}2930/**31* @returns any ok32* @throws ApiError33*/34public showTicket({35ticketId,36}: {37ticketId: string;38}): CancelablePromise<{39id?: string;40client_id?: string;41authorized?: boolean;42created_at?: string;43}> {44return this.httpRequest.request({45method: "GET",46url: "/oauth/tickets/{ticket_id}",47path: {48"ticket_id": ticketId,49},50});51}52}535455