import { CrowdinApi , PatchRequest , ResponseList , ResponseObject } from '../core' ; export class Dictionaries extends CrowdinApi { param projectId param languageIds listDictionaries ( projectId , languageIds ? ) { let url = `${ this . url }/projects/${ projectId }/dictionaries` ; url = this . addQueryParam ( url , 'languageIds' , languageIds ) ; return this . get ( url , this . defaultConfig ( ) ) ; } param projectId param languageId param request editDictionary ( projectId , languageId , request ) { const url = `${ this . url }/projects/${ projectId }/dictionaries/${ languageId }` ; return this . patch ( url , request , this . defaultConfig ( ) ) ; } } export namespace DictionariesModel { export interface Dictionary { languageId : string ; words : string [ ] ; } }