UNPKG

@robotical/appv2-warranty-service-lib

Version:

A tool that gathers data from the Apps and sends it to the Analytics server

19 lines (18 loc) 1.44 kB
import { ZohoTicketStatus } from '../types/serviceProgramDatabase'; export default class ZohoAPI { static compileHubspotTicketTitle(robotSerialNumber: string, robotType: string): string; static createTicket(content: string, dbReportId: string, userEmail: string, robotSerialNumber: string, robotName?: string, robotType?: string): Promise<string | null>; static getTicketById(ticketId: string): Promise<null | any>; static getTicketBySerialNumber(serialNumber: string): Promise<null | any>; static getTicketStatus(ticketId: string, email: string): Promise<null | ZohoTicketStatus>; static updateTicketStatus(ticketId: string, status: ZohoTicketStatus): Promise<boolean>; static createComment(title: string, ticketId: string, dbCommentId: string, comment: string, userEmail: string, robotSerialNumber: string): Promise<null | string>; static getCommentsForTicket(ticketId: string): Promise<null | any[]>; static getComment(ticketId: string, commentId: string): Promise<null | any>; static compileContent(title: string, content: string, dbReportId: string): string; static getSerialNumberFromContent(content: string): string | null; static getUserEmailFromContent(content: string): string | null; static getTitleFromContent(content: string): string | null; static getLegacyTitleFromContent(content: string): string | null; static getDbIdFromContent(content: string): string | null; }