@itwin/core-common 4.10.0-dev.10 → 4.10.0-dev.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,9 @@ export declare abstract class SnapshotIModelRpcInterface extends RpcInterface {
18
18
  /** The version of the interface. */
19
19
  static interfaceVersion: string;
20
20
  openFile(_filePath: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps>;
21
+ /**
22
+ * @deprecated in 4.10. Use [[CheckpointConnection.openRemote]].
23
+ */
21
24
  openRemote(_key: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps>;
22
25
  close(_iModelRpcProps: IModelRpcProps): Promise<boolean>;
23
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SnapshotIModelRpcInterface.d.ts","sourceRoot":"","sources":["../../../src/rpc/SnapshotIModelRpcInterface.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD;;;GAGG;AACH,8BAAsB,0BAA2B,SAAQ,YAAY;IACnE,+EAA+E;WACjE,SAAS,IAAI,0BAA0B;IAErD,qGAAqG;WACvF,mBAAmB,CAAC,KAAK,EAAE,eAAe,GAAG,0BAA0B;IAErF,2CAA2C;IAC3C,gBAAuB,aAAa,gCAAgC;IAEpE,oCAAoC;IACpC,OAAc,gBAAgB,SAAW;IAQ5B,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAGxF,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAErF,KAAK,CAAC,eAAe,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CACtE"}
1
+ {"version":3,"file":"SnapshotIModelRpcInterface.d.ts","sourceRoot":"","sources":["../../../src/rpc/SnapshotIModelRpcInterface.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD;;;GAGG;AACH,8BAAsB,0BAA2B,SAAQ,YAAY;IACnE,+EAA+E;WACjE,SAAS,IAAI,0BAA0B;IAErD,qGAAqG;WACvF,mBAAmB,CAAC,KAAK,EAAE,eAAe,GAAG,0BAA0B;IAErF,2CAA2C;IAC3C,gBAAuB,aAAa,gCAAgC;IAEpE,oCAAoC;IACpC,OAAc,gBAAgB,SAAW;IAQ5B,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAErG;;OAEG;IAEU,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAErF,KAAK,CAAC,eAAe,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CACtE"}
@@ -32,6 +32,9 @@ class SnapshotIModelRpcInterface extends RpcInterface_1.RpcInterface {
32
32
  NOTE: Please consult the README in this folder for the semantic versioning rules.
33
33
  ===========================================================================================*/
34
34
  async openFile(_filePath, _opts) { return this.forward(arguments); }
35
+ /**
36
+ * @deprecated in 4.10. Use [[CheckpointConnection.openRemote]].
37
+ */
35
38
  async openRemote(_key, _opts) { return this.forward(arguments); }
36
39
  async close(_iModelRpcProps) { return this.forward(arguments); }
37
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SnapshotIModelRpcInterface.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/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module RpcInterface\r\n */\r\n\r\nimport { IModelConnectionProps, IModelRpcProps, SnapshotOpenOptions } from \"../IModel\";\r\nimport { RpcInterface } from \"../RpcInterface\";\r\nimport { RpcManager } from \"../RpcManager\";\r\nimport { RpcOperation } from \"./core/RpcOperation\";\r\nimport { RpcRequestTokenSupplier_T } from \"./core/RpcRequest\";\r\nimport { RpcRoutingToken } from \"./core/RpcRoutingToken\";\r\n\r\nconst unknownIModelId: RpcRequestTokenSupplier_T = (req) => ({ iModelId: \"undefined\", key: req.parameters[0] });\r\n\r\n/** The RPC interface for working with *snapshot* iModels.\r\n * This interface is intended for desktop and mobile products. Web products are discouraged from registering this interface.\r\n * @internal\r\n */\r\nexport abstract class SnapshotIModelRpcInterface extends RpcInterface { // eslint-disable-line deprecation/deprecation\r\n /** Returns the SnapshotIModelRpcInterface client instance for the frontend. */\r\n public static getClient(): SnapshotIModelRpcInterface { return RpcManager.getClientForInterface(SnapshotIModelRpcInterface); }\r\n\r\n /** Returns the SnapshotIModelRpcInterface client instance for a custom RPC routing configuration. */\r\n public static getClientForRouting(token: RpcRoutingToken): SnapshotIModelRpcInterface { return RpcManager.getClientForInterface(SnapshotIModelRpcInterface, token); }\r\n\r\n /** The immutable name of the interface. */\r\n public static readonly interfaceName = \"SnapshotIModelRpcInterface\";\r\n\r\n /** The version of the interface. */\r\n public static interfaceVersion = \"2.0.0\";\r\n\r\n /*===========================================================================================\r\n NOTE: Any add/remove/change to the methods below requires an update of the interface version.\r\n NOTE: Please consult the README in this folder for the semantic versioning rules.\r\n ===========================================================================================*/\r\n\r\n @RpcOperation.setRoutingProps(unknownIModelId)\r\n public async openFile(_filePath: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps> { return this.forward(arguments); }\r\n\r\n @RpcOperation.setRoutingProps(unknownIModelId)\r\n public async openRemote(_key: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps> { return this.forward(arguments); }\r\n\r\n public async close(_iModelRpcProps: IModelRpcProps): Promise<boolean> { return this.forward(arguments); }\r\n}\r\n"]}
1
+ {"version":3,"file":"SnapshotIModelRpcInterface.js","sourceRoot":"","sources":["../../../src/rpc/SnapshotIModelRpcInterface.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;AAGH,kDAA+C;AAC/C,8CAA2C;AAC3C,sDAAmD;AAInD,MAAM,eAAe,GAA8B,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAEhH;;;GAGG;AACH,MAAsB,0BAA2B,SAAQ,2BAAY;IACnE,+EAA+E;IACxE,MAAM,CAAC,SAAS,KAAiC,OAAO,uBAAU,CAAC,qBAAqB,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;IAE9H,qGAAqG;IAC9F,MAAM,CAAC,mBAAmB,CAAC,KAAsB,IAAgC,OAAO,uBAAU,CAAC,qBAAqB,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAQrK;;;iGAG6F;IAGhF,AAAN,KAAK,CAAC,QAAQ,CAAC,SAAiB,EAAE,KAA2B,IAAoC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAEzI;;OAEG;IAEU,AAAN,KAAK,CAAC,UAAU,CAAC,IAAY,EAAE,KAA2B,IAAoC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAE/H,KAAK,CAAC,KAAK,CAAC,eAA+B,IAAsB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;AA3B3G,gEA4BC;AArBC,2CAA2C;AACpB,wCAAa,GAAG,4BAA4B,CAAC;AAEpE,oCAAoC;AACtB,2CAAgB,GAAG,OAAO,CAAC;AAQ5B;IADZ,2BAAY,CAAC,eAAe,CAAC,eAAe,CAAC;0DAC2F;AAM5H;IADZ,2BAAY,CAAC,eAAe,CAAC,eAAe,CAAC;4DACwF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module RpcInterface\r\n */\r\n\r\nimport { IModelConnectionProps, IModelRpcProps, SnapshotOpenOptions } from \"../IModel\";\r\nimport { RpcInterface } from \"../RpcInterface\";\r\nimport { RpcManager } from \"../RpcManager\";\r\nimport { RpcOperation } from \"./core/RpcOperation\";\r\nimport { RpcRequestTokenSupplier_T } from \"./core/RpcRequest\";\r\nimport { RpcRoutingToken } from \"./core/RpcRoutingToken\";\r\n\r\nconst unknownIModelId: RpcRequestTokenSupplier_T = (req) => ({ iModelId: \"undefined\", key: req.parameters[0] });\r\n\r\n/** The RPC interface for working with *snapshot* iModels.\r\n * This interface is intended for desktop and mobile products. Web products are discouraged from registering this interface.\r\n * @internal\r\n */\r\nexport abstract class SnapshotIModelRpcInterface extends RpcInterface { // eslint-disable-line deprecation/deprecation\r\n /** Returns the SnapshotIModelRpcInterface client instance for the frontend. */\r\n public static getClient(): SnapshotIModelRpcInterface { return RpcManager.getClientForInterface(SnapshotIModelRpcInterface); }\r\n\r\n /** Returns the SnapshotIModelRpcInterface client instance for a custom RPC routing configuration. */\r\n public static getClientForRouting(token: RpcRoutingToken): SnapshotIModelRpcInterface { return RpcManager.getClientForInterface(SnapshotIModelRpcInterface, token); }\r\n\r\n /** The immutable name of the interface. */\r\n public static readonly interfaceName = \"SnapshotIModelRpcInterface\";\r\n\r\n /** The version of the interface. */\r\n public static interfaceVersion = \"2.0.0\";\r\n\r\n /*===========================================================================================\r\n NOTE: Any add/remove/change to the methods below requires an update of the interface version.\r\n NOTE: Please consult the README in this folder for the semantic versioning rules.\r\n ===========================================================================================*/\r\n\r\n @RpcOperation.setRoutingProps(unknownIModelId)\r\n public async openFile(_filePath: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps> { return this.forward(arguments); }\r\n\r\n /**\r\n * @deprecated in 4.10. Use [[CheckpointConnection.openRemote]].\r\n */\r\n @RpcOperation.setRoutingProps(unknownIModelId)\r\n public async openRemote(_key: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps> { return this.forward(arguments); }\r\n\r\n public async close(_iModelRpcProps: IModelRpcProps): Promise<boolean> { return this.forward(arguments); }\r\n}\r\n"]}
@@ -18,6 +18,9 @@ export declare abstract class SnapshotIModelRpcInterface extends RpcInterface {
18
18
  /** The version of the interface. */
19
19
  static interfaceVersion: string;
20
20
  openFile(_filePath: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps>;
21
+ /**
22
+ * @deprecated in 4.10. Use [[CheckpointConnection.openRemote]].
23
+ */
21
24
  openRemote(_key: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps>;
22
25
  close(_iModelRpcProps: IModelRpcProps): Promise<boolean>;
23
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SnapshotIModelRpcInterface.d.ts","sourceRoot":"","sources":["../../../src/rpc/SnapshotIModelRpcInterface.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD;;;GAGG;AACH,8BAAsB,0BAA2B,SAAQ,YAAY;IACnE,+EAA+E;WACjE,SAAS,IAAI,0BAA0B;IAErD,qGAAqG;WACvF,mBAAmB,CAAC,KAAK,EAAE,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 +29,9 @@ export class SnapshotIModelRpcInterface extends RpcInterface {
29
29
  NOTE: Please consult the README in this folder for the semantic versioning rules.
30
30
  ===========================================================================================*/
31
31
  async openFile(_filePath, _opts) { return this.forward(arguments); }
32
+ /**
33
+ * @deprecated in 4.10. Use [[CheckpointConnection.openRemote]].
34
+ */
32
35
  async openRemote(_key, _opts) { return this.forward(arguments); }
33
36
  async close(_iModelRpcProps) { return this.forward(arguments); }
34
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SnapshotIModelRpcInterface.js","sourceRoot":"","sources":["../../../src/rpc/SnapshotIModelRpcInterface.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAInD,MAAM,eAAe,GAA8B,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAEhH;;;GAGG;AACH,MAAM,OAAgB,0BAA2B,SAAQ,YAAY;IACnE,+EAA+E;IACxE,MAAM,CAAC,SAAS,KAAiC,OAAO,UAAU,CAAC,qBAAqB,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;IAE9H,qGAAqG;IAC9F,MAAM,CAAC,mBAAmB,CAAC,KAAsB,IAAgC,OAAO,UAAU,CAAC,qBAAqB,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAQrK;;;iGAG6F;IAGhF,AAAN,KAAK,CAAC,QAAQ,CAAC,SAAiB,EAAE,KAA2B,IAAoC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAG5H,AAAN,KAAK,CAAC,UAAU,CAAC,IAAY,EAAE,KAA2B,IAAoC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAE/H,KAAK,CAAC,KAAK,CAAC,eAA+B,IAAsB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;AAjBzG,2CAA2C;AACpB,wCAAa,GAAG,4BAA4B,CAAC;AAEpE,oCAAoC;AACtB,2CAAgB,GAAG,OAAO,CAAC;AAQ5B;IADZ,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC;0DAC2F;AAG5H;IADZ,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC;4DACwF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module RpcInterface\r\n */\r\n\r\nimport { IModelConnectionProps, IModelRpcProps, SnapshotOpenOptions } from \"../IModel\";\r\nimport { RpcInterface } from \"../RpcInterface\";\r\nimport { RpcManager } from \"../RpcManager\";\r\nimport { RpcOperation } from \"./core/RpcOperation\";\r\nimport { RpcRequestTokenSupplier_T } from \"./core/RpcRequest\";\r\nimport { RpcRoutingToken } from \"./core/RpcRoutingToken\";\r\n\r\nconst unknownIModelId: RpcRequestTokenSupplier_T = (req) => ({ iModelId: \"undefined\", key: req.parameters[0] });\r\n\r\n/** The RPC interface for working with *snapshot* iModels.\r\n * This interface is intended for desktop and mobile products. Web products are discouraged from registering this interface.\r\n * @internal\r\n */\r\nexport abstract class SnapshotIModelRpcInterface extends RpcInterface { // eslint-disable-line deprecation/deprecation\r\n /** Returns the SnapshotIModelRpcInterface client instance for the frontend. */\r\n public static getClient(): SnapshotIModelRpcInterface { return RpcManager.getClientForInterface(SnapshotIModelRpcInterface); }\r\n\r\n /** Returns the SnapshotIModelRpcInterface client instance for a custom RPC routing configuration. */\r\n public static getClientForRouting(token: RpcRoutingToken): SnapshotIModelRpcInterface { return RpcManager.getClientForInterface(SnapshotIModelRpcInterface, token); }\r\n\r\n /** The immutable name of the interface. */\r\n public static readonly interfaceName = \"SnapshotIModelRpcInterface\";\r\n\r\n /** The version of the interface. */\r\n public static interfaceVersion = \"2.0.0\";\r\n\r\n /*===========================================================================================\r\n NOTE: Any add/remove/change to the methods below requires an update of the interface version.\r\n NOTE: Please consult the README in this folder for the semantic versioning rules.\r\n ===========================================================================================*/\r\n\r\n @RpcOperation.setRoutingProps(unknownIModelId)\r\n public async openFile(_filePath: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps> { return this.forward(arguments); }\r\n\r\n @RpcOperation.setRoutingProps(unknownIModelId)\r\n public async openRemote(_key: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps> { return this.forward(arguments); }\r\n\r\n public async close(_iModelRpcProps: IModelRpcProps): Promise<boolean> { return this.forward(arguments); }\r\n}\r\n"]}
1
+ {"version":3,"file":"SnapshotIModelRpcInterface.js","sourceRoot":"","sources":["../../../src/rpc/SnapshotIModelRpcInterface.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAInD,MAAM,eAAe,GAA8B,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAEhH;;;GAGG;AACH,MAAM,OAAgB,0BAA2B,SAAQ,YAAY;IACnE,+EAA+E;IACxE,MAAM,CAAC,SAAS,KAAiC,OAAO,UAAU,CAAC,qBAAqB,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;IAE9H,qGAAqG;IAC9F,MAAM,CAAC,mBAAmB,CAAC,KAAsB,IAAgC,OAAO,UAAU,CAAC,qBAAqB,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAQrK;;;iGAG6F;IAGhF,AAAN,KAAK,CAAC,QAAQ,CAAC,SAAiB,EAAE,KAA2B,IAAoC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAEzI;;OAEG;IAEU,AAAN,KAAK,CAAC,UAAU,CAAC,IAAY,EAAE,KAA2B,IAAoC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAE/H,KAAK,CAAC,KAAK,CAAC,eAA+B,IAAsB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;AApBzG,2CAA2C;AACpB,wCAAa,GAAG,4BAA4B,CAAC;AAEpE,oCAAoC;AACtB,2CAAgB,GAAG,OAAO,CAAC;AAQ5B;IADZ,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC;0DAC2F;AAM5H;IADZ,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC;4DACwF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module RpcInterface\r\n */\r\n\r\nimport { IModelConnectionProps, IModelRpcProps, SnapshotOpenOptions } from \"../IModel\";\r\nimport { RpcInterface } from \"../RpcInterface\";\r\nimport { RpcManager } from \"../RpcManager\";\r\nimport { RpcOperation } from \"./core/RpcOperation\";\r\nimport { RpcRequestTokenSupplier_T } from \"./core/RpcRequest\";\r\nimport { RpcRoutingToken } from \"./core/RpcRoutingToken\";\r\n\r\nconst unknownIModelId: RpcRequestTokenSupplier_T = (req) => ({ iModelId: \"undefined\", key: req.parameters[0] });\r\n\r\n/** The RPC interface for working with *snapshot* iModels.\r\n * This interface is intended for desktop and mobile products. Web products are discouraged from registering this interface.\r\n * @internal\r\n */\r\nexport abstract class SnapshotIModelRpcInterface extends RpcInterface { // eslint-disable-line deprecation/deprecation\r\n /** Returns the SnapshotIModelRpcInterface client instance for the frontend. */\r\n public static getClient(): SnapshotIModelRpcInterface { return RpcManager.getClientForInterface(SnapshotIModelRpcInterface); }\r\n\r\n /** Returns the SnapshotIModelRpcInterface client instance for a custom RPC routing configuration. */\r\n public static getClientForRouting(token: RpcRoutingToken): SnapshotIModelRpcInterface { return RpcManager.getClientForInterface(SnapshotIModelRpcInterface, token); }\r\n\r\n /** The immutable name of the interface. */\r\n public static readonly interfaceName = \"SnapshotIModelRpcInterface\";\r\n\r\n /** The version of the interface. */\r\n public static interfaceVersion = \"2.0.0\";\r\n\r\n /*===========================================================================================\r\n NOTE: Any add/remove/change to the methods below requires an update of the interface version.\r\n NOTE: Please consult the README in this folder for the semantic versioning rules.\r\n ===========================================================================================*/\r\n\r\n @RpcOperation.setRoutingProps(unknownIModelId)\r\n public async openFile(_filePath: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps> { return this.forward(arguments); }\r\n\r\n /**\r\n * @deprecated in 4.10. Use [[CheckpointConnection.openRemote]].\r\n */\r\n @RpcOperation.setRoutingProps(unknownIModelId)\r\n public async openRemote(_key: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps> { return this.forward(arguments); }\r\n\r\n public async close(_iModelRpcProps: IModelRpcProps): Promise<boolean> { return this.forward(arguments); }\r\n}\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/core-common",
3
- "version": "4.10.0-dev.10",
3
+ "version": "4.10.0-dev.11",
4
4
  "description": "iTwin.js components common to frontend and backend",
5
5
  "main": "lib/cjs/core-common.js",
6
6
  "module": "lib/esm/core-common.js",
@@ -27,8 +27,8 @@
27
27
  "js-base64": "^3.6.1"
28
28
  },
29
29
  "peerDependencies": {
30
- "@itwin/core-bentley": "^4.10.0-dev.10",
31
- "@itwin/core-geometry": "^4.10.0-dev.10"
30
+ "@itwin/core-bentley": "^4.10.0-dev.11",
31
+ "@itwin/core-geometry": "^4.10.0-dev.11"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@itwin/eslint-plugin": "^4.0.2",
@@ -42,9 +42,9 @@
42
42
  "rimraf": "^3.0.2",
43
43
  "typescript": "~5.3.3",
44
44
  "vitest": "^2.1.0",
45
- "@itwin/build-tools": "4.10.0-dev.10",
46
- "@itwin/core-bentley": "4.10.0-dev.10",
47
- "@itwin/core-geometry": "4.10.0-dev.10"
45
+ "@itwin/build-tools": "4.10.0-dev.11",
46
+ "@itwin/core-bentley": "4.10.0-dev.11",
47
+ "@itwin/core-geometry": "4.10.0-dev.11"
48
48
  },
49
49
  "nyc": {
50
50
  "extends": "./node_modules/@itwin/build-tools/.nycrc",