UNPKG

node-ovh-ts

Version:

OVH API wrapper library for TypeScript

55 lines (52 loc) 2.31 kB
import { SupportNewMessageInfo } from '../models/SupportNewMessageInfo.js'; import { SupportTicketImpactUrgencyEnum } from '../models/SupportTicketImpactUrgencyEnum.js'; import { SupportTicketProductEnum } from '../models/SupportTicketProductEnum.js'; import { SupportTicket } from '../models/SupportTicket.js'; import { SupportTicketCategoryEnum } from '../models/SupportTicketCategoryEnum.js'; import { SupportMessage } from '../models/SupportMessage.js'; import { SupportTicketTypeEnum } from '../models/SupportTicketTypeEnum.js'; import { SupportTicketSubCategoryEnum } from '../models/SupportTicketSubCategoryEnum.js'; import OVHBase from '../ovh.js'; import '../models/SupportMessageSenderEnum.js'; import '../models/SupportTicketStatusEnum.js'; import '../endpoints.js'; declare class SupportHandler { ovh: OVHBase; constructor(ovh: OVHBase); /** List support tickets identifiers for this service */ listTickets: () => Promise<number[]>; /** Create a new ticket */ createTickets: (body: { body: string; category?: SupportTicketCategoryEnum; impact?: SupportTicketImpactUrgencyEnum; product?: SupportTicketProductEnum; serviceName?: string; subcategory?: SupportTicketSubCategoryEnum; subject: string; type?: SupportTicketTypeEnum; urgency?: SupportTicketImpactUrgencyEnum; }) => Promise<SupportNewMessageInfo>; /** Get ticket */ getTicketsByTicketId: (ticketId: number) => Promise<SupportTicket>; /** Checks whether ticket can be scored */ checkTicketsCanBeScoredByTicketId: (ticketId: number) => Promise<boolean>; /** Close ticket */ postTicketsCloseByTicketId: (ticketId: number) => Promise<void>; /** Get ticket messages */ getTicketsMessagesByTicketId: (ticketId: number) => Promise<SupportMessage[]>; /** Reopen a ticket */ postTicketsReopenByTicketId: (ticketId: number, body: { body: string; }) => Promise<void>; /** Reply to ticket */ postTicketsReplyByTicketId: (ticketId: number, body: { body: string; }) => Promise<void>; /** Set ticket score */ postTicketsScoreByTicketId: (ticketId: number, body: { score: string; scoreComment?: string; }) => Promise<void>; } export { SupportHandler };