import * as CRSApi from 'crs-al-language-extension-api' ; import { StringFunctions } from '../StringFunctions' ; import { DynamicsNAV } from '../DynamicsNAV' ; import { NAVObject } from '../NAVObject' ; import { Settings } from '../Settings' ; export class ObjectNamesApi implements CRSApi . IObjectNamesApi { private getConfigSettings ( ) { return Settings . GetConfigSettings ( null ) ; } public GetObjectFileName ( objectType , objectId , objectName ) { let navObject = new NAVObject ( '' , this . getConfigSettings ( ) , '' ) ; navObject . setObjectProperies ( objectType , objectId , objectName ) ; return navObject . objectFileNameFixed ; } public GetObjectExtensionFileName ( objectType , objectId , objectName , extendedObjectId , extendedObjectName ) { let navObject = new NAVObject ( '' , this . getConfigSettings ( ) , '' ) ; navObject . setObjectExtensionProperies ( objectType , objectId , objectName , extendedObjectId , extendedObjectName ) ; return navObject . objectFileNameFixed ; } public GetObjectExtensionName ( objectType , objectId , objectName , extendedObjectId , extendedObjectName ) { let navObject = new NAVObject ( '' , this . getConfigSettings ( ) , '' ) ; navObject . setObjectExtensionProperies ( objectType , objectId , objectName , extendedObjectId , extendedObjectName ) ; return navObject . objectNameFixed ; } public GetBestPracticeAbbreviatedObjectType ( ObjectType ) { return DynamicsNAV . getBestPracticeAbbreviatedObjectType ( ObjectType ) ; } }