import { CrowdinApi , PatchRequest , ResponseList , ResponseObject } from '../core' ; deprecated export class Issues extends CrowdinApi { param projectId param limit param offset param type param status listReportedIssues ( projectId , limit ? , offset ? , type ? , status ? ) { let url = `${ this . url }/projects/${ projectId }/issues` ; url = this . addQueryParam ( url , 'type' , type ) ; url = this . addQueryParam ( url , 'status' , status ) ; return this . getList ( url , limit , offset ) ; } param projectId param issueId param request editIssue ( projectId , issueId , request ) { const url = `${ this . url }/projects/${ projectId }/issues/${ issueId }` ; return this . patch ( url , request , this . defaultConfig ( ) ) ; } } deprecated export namespace IssuesModel { export enum Type { ALL = 'all' , GENERAL_QUESTION = 'general_question' , TRANSLATION_MISTAKE = 'translation_mistake' , CONTEXT_REQUEST = 'context_request' , SOURCE_MISTAKE = 'source_mistake' } export enum Status { ALL = 'all' , RESOLVED = 'resolved' , UNRESOLVED = 'unresolved' } export interface Issue { id : number ; text : string ; userId : number ; stringId : number ; user : User ; string : string ; languageId : string ; type : Type ; status : Status ; createdAt : string ; } export interface User { id : number ; username : string ; fullName : string ; avatarUrl : string ; } export interface String { id : number ; text : string ; type : string ; hasPlurals : boolean ; isIcu : boolean ; context : string ; fileId : number ; } }