packageDocumentation module import { FileHandler } from "./itwin-client/FileHandler" ; import { addApplicationVersion , HttpRequestOptionsTransformer , IModelBaseHandler } from "./imodelhub/BaseHandler" ; import { BriefcaseHandler } from "./imodelhub/Briefcases" ; import { ChangeSetHandler } from "./imodelhub/ChangeSets" ; import { CheckpointHandler } from "./imodelhub/Checkpoints" ; import { CodeHandler } from "./imodelhub/Codes" ; import { CustomRequestOptions } from "./imodelhub/CustomRequestOptions" ; import { EventHandler } from "./imodelhub/Events" ; import { GlobalEventHandler } from "./imodelhub/GlobalEvents" ; import { IModelHandler , IModelsHandler } from "./imodelhub/iModels" ; import { LockHandler } from "./imodelhub/Locks" ; import { ThumbnailHandler } from "./imodelhub/Thumbnails" ; import { UserInfoHandler } from "./imodelhub/Users" ; import { VersionHandler } from "./imodelhub/Versions" ; import { PermissionHandler } from "./imodelhub/Permissions" ; import { CheckpointV2Handler } from "./imodelhub/CheckpointsV2" ; internal export abstract class IModelClient { protected _handler : IModelBaseHandler ; private _fileHandler ? : FileHandler ; param fileHandler public constructor ( baseHandler , fileHandler ? , applicationVersion ? ) { this . _handler = baseHandler ; if ( applicationVersion ) this . use ( addApplicationVersion ( applicationVersion ) ) ; this . _fileHandler = fileHandler || this . _handler . getFileHandler ( ) ; if ( this . _fileHandler ) this . _fileHandler . agent = this . _handler . getAgent ( ) ; } param fileHandler public setFileHandler ( fileHandler ) { this . _fileHandler = fileHandler ; this . _fileHandler . agent = this . _handler . getAgent ( ) ; } returns public get fileHandler ( ) { return this . _fileHandler ; } note public get iModels ( ) : IModelsHandler { return new IModelsHandler ( this . _handler , this . _fileHandler ) ; } /**
     * Get the handler for [[HubIModel]].
     */ public get iModel ( ) : IModelHandler { return new IModelHandler ( new IModelsHandler ( this . _handler , this . _fileHandler ) ) ; } internal public get briefcases ( ) : BriefcaseHandler { return new BriefcaseHandler ( this . _handler , this , this . _fileHandler ) ; } /**
     * Get the handler for [[ChangeSet]]s.
     */ public get changeSets ( ) : ChangeSetHandler { return new ChangeSetHandler ( this . _handler , this . _fileHandler ) ; } internal public get checkpoints ( ) : CheckpointHandler { return new CheckpointHandler ( this . _handler , this . _fileHandler ) ; } internal public get checkpointsV2 ( ) : CheckpointV2Handler { return new CheckpointV2Handler ( this . _handler ) ; } internal public get locks ( ) : LockHandler { return new LockHandler ( this . _handler ) ; } internal public get codes ( ) : CodeHandler { return new CodeHandler ( this . _handler ) ; } /**
     * Get the handler for [[UserInfo]].
     */ public get users ( ) : UserInfoHandler { return new UserInfoHandler ( this . _handler ) ; } /**
     * Get the handler for [[Version]]s.
     */ public get versions ( ) : VersionHandler { return new VersionHandler ( this . _handler ) ; } /**
     * Get the handler for [[Thumbnail]]s.
     */ public get thumbnails ( ) : ThumbnailHandler { return new ThumbnailHandler ( this . _handler ) ; } /**
     * Get the handler for [[IModelHubEvent]]s.
     */ public get events ( ) : EventHandler { return new EventHandler ( this . _handler ) ; } internal public get globalEvents ( ) : GlobalEventHandler { return new GlobalEventHandler ( this . _handler ) ; } internal public get permissions ( ) : PermissionHandler | undefined { return undefined ; } internal public get requestOptions ( ) : CustomRequestOptions { return this . _handler . getCustomRequestOptions ( ) ; } param func internal public use ( transformer ) { this . _handler . use ( transformer ) ; } }