import { CrowdinApi , PatchRequest , ResponseList , ResponseObject } from '../core' ; export class MachineTranslation extends CrowdinApi { param groupId param limit param offset listMts ( groupId ? , limit ? , offset ? ) { let url = `${ this . url }/mts` ; url = this . addQueryParam ( url , 'groupId' , groupId ) ; return this . getList ( url , limit , offset ) ; } param request createMt ( request ) { const url = `${ this . url }/mts` ; return this . post ( url , request , this . defaultConfig ( ) ) ; } param mtId getMt ( mtId ) { const url = `${ this . url }/mts/${ mtId }` ; return this . get ( url , this . defaultConfig ( ) ) ; } param mtId deleteMt ( mtId ) { const url = `${ this . url }/mts/${ mtId }` ; return this . delete ( url , this . defaultConfig ( ) ) ; } param mtId param request updateMt ( mtId , request ) { const url = `${ this . url }/mts/${ mtId }` ; return this . patch ( url , request , this . defaultConfig ( ) ) ; } } export namespace MachineTranslationModel { export interface MachineTranslation { id : number ; groupId : number ; name : string ; type : number ; credentials : Credentials ; projectIds : number [ ] ; } export interface Credentials { [ key ] : number ; } export interface CreateMachineTranslationRequest { name : string ; groupId ? : number ; type : string ; credentials : string [ ] ; } }