import { GuidString } from "@itwin/core-bentley" ; import { DevToolsRpcInterface , IModelReadRpcInterface , IModelRpcProps , IModelTileRpcInterface , RpcInterface , RpcManager , SnapshotIModelRpcInterface , WipRpcInterface , } from "@itwin/core-common" ; export abstract class TestRpcInterface extends RpcInterface { public static readonly interfaceName = "TestRpcInterface" ; public static interfaceVersion = "1.1.1" ; public static getClient ( ) { return RpcManager . getClientForInterface ( TestRpcInterface ) ; } public async restartIModelHost ( ) { return this . forward ( arguments ) ; } public async executeTest ( _iModelRpcProps , _testName , _params ) { return this . forward ( arguments ) ; } public async purgeCheckpoints ( _iModelId ) { return this . forward ( arguments ) ; } public async purgeStorageCache ( ) { return this . forward ( arguments ) ; } public async beginOfflineScope ( ) { return this . forward ( arguments ) ; } public async endOfflineScope ( ) { return this . forward ( arguments ) ; } } export abstract class EventsTestRpcInterface extends RpcInterface { public static readonly interfaceName = "EventsTestRpcInterface" ; public static interfaceVersion = "0.1.0" ; public static getClient ( ) { return RpcManager . getClientForInterface ( EventsTestRpcInterface ) ; } public async echo ( _id , _message ) { return this . forward ( arguments ) ; } } export const rpcInterfaces = [ IModelReadRpcInterface , IModelTileRpcInterface , SnapshotIModelRpcInterface , TestRpcInterface , WipRpcInterface , DevToolsRpcInterface , EventsTestRpcInterface , ] ;