@itwin/core-common 5.0.0-dev.0 → 5.0.0-dev.10

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/lib/cjs/ConcurrentQuery.d.ts +5 -1
  3. package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
  4. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  5. package/lib/cjs/ECSqlReader.d.ts.map +1 -1
  6. package/lib/cjs/ECSqlReader.js +2 -0
  7. package/lib/cjs/ECSqlReader.js.map +1 -1
  8. package/lib/cjs/Fonts.d.ts +1 -1
  9. package/lib/cjs/Fonts.d.ts.map +1 -1
  10. package/lib/cjs/Fonts.js +2 -2
  11. package/lib/cjs/Fonts.js.map +1 -1
  12. package/lib/cjs/ITwinError.d.ts +1 -1
  13. package/lib/cjs/ITwinError.d.ts.map +1 -1
  14. package/lib/cjs/ITwinError.js +1 -1
  15. package/lib/cjs/ITwinError.js.map +1 -1
  16. package/lib/cjs/IpcAppProps.d.ts +3 -1
  17. package/lib/cjs/IpcAppProps.d.ts.map +1 -1
  18. package/lib/cjs/IpcAppProps.js.map +1 -1
  19. package/lib/cjs/core-common.d.ts +0 -1
  20. package/lib/cjs/core-common.d.ts.map +1 -1
  21. package/lib/cjs/core-common.js +0 -1
  22. package/lib/cjs/core-common.js.map +1 -1
  23. package/lib/cjs/rpc/SnapshotIModelRpcInterface.d.ts +7 -0
  24. package/lib/cjs/rpc/SnapshotIModelRpcInterface.d.ts.map +1 -1
  25. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js +7 -0
  26. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  27. package/lib/esm/ConcurrentQuery.d.ts +5 -1
  28. package/lib/esm/ConcurrentQuery.d.ts.map +1 -1
  29. package/lib/esm/ConcurrentQuery.js.map +1 -1
  30. package/lib/esm/ECSqlReader.d.ts.map +1 -1
  31. package/lib/esm/ECSqlReader.js +2 -0
  32. package/lib/esm/ECSqlReader.js.map +1 -1
  33. package/lib/esm/Fonts.d.ts +1 -1
  34. package/lib/esm/Fonts.d.ts.map +1 -1
  35. package/lib/esm/Fonts.js +2 -2
  36. package/lib/esm/Fonts.js.map +1 -1
  37. package/lib/esm/ITwinError.d.ts +1 -1
  38. package/lib/esm/ITwinError.d.ts.map +1 -1
  39. package/lib/esm/ITwinError.js +1 -1
  40. package/lib/esm/ITwinError.js.map +1 -1
  41. package/lib/esm/IpcAppProps.d.ts +3 -1
  42. package/lib/esm/IpcAppProps.d.ts.map +1 -1
  43. package/lib/esm/IpcAppProps.js.map +1 -1
  44. package/lib/esm/core-common.d.ts +0 -1
  45. package/lib/esm/core-common.d.ts.map +1 -1
  46. package/lib/esm/core-common.js +0 -1
  47. package/lib/esm/core-common.js.map +1 -1
  48. package/lib/esm/rpc/SnapshotIModelRpcInterface.d.ts +7 -0
  49. package/lib/esm/rpc/SnapshotIModelRpcInterface.d.ts.map +1 -1
  50. package/lib/esm/rpc/SnapshotIModelRpcInterface.js +7 -0
  51. package/lib/esm/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  52. package/package.json +8 -8
  53. package/lib/cjs/rpc/WipRpcInterface.d.ts +0 -31
  54. package/lib/cjs/rpc/WipRpcInterface.d.ts.map +0 -1
  55. package/lib/cjs/rpc/WipRpcInterface.js +0 -42
  56. package/lib/cjs/rpc/WipRpcInterface.js.map +0 -1
  57. package/lib/esm/rpc/WipRpcInterface.d.ts +0 -31
  58. package/lib/esm/rpc/WipRpcInterface.d.ts.map +0 -1
  59. package/lib/esm/rpc/WipRpcInterface.js +0 -38
  60. package/lib/esm/rpc/WipRpcInterface.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/core-common",
3
- "version": "5.0.0-dev.0",
3
+ "version": "5.0.0-dev.10",
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,24 +27,24 @@
27
27
  "js-base64": "^3.6.1"
28
28
  },
29
29
  "peerDependencies": {
30
- "@itwin/core-bentley": "^5.0.0-dev.0",
31
- "@itwin/core-geometry": "^5.0.0-dev.0"
30
+ "@itwin/core-bentley": "^5.0.0-dev.10",
31
+ "@itwin/core-geometry": "^5.0.0-dev.10"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@itwin/eslint-plugin": "5.0.0-dev.1",
35
35
  "@itwin/object-storage-core": "^2.2.5",
36
36
  "@types/chai": "4.3.1",
37
37
  "@types/flatbuffers": "~1.10.0",
38
- "@types/node": "~18.16.20",
38
+ "@types/node": "~20.9.5",
39
39
  "@vitest/coverage-v8": "^2.1.0",
40
40
  "eslint": "^9.13.0",
41
41
  "nyc": "^15.1.0",
42
42
  "rimraf": "^3.0.2",
43
43
  "typescript": "~5.6.2",
44
44
  "vitest": "^2.1.0",
45
- "@itwin/build-tools": "5.0.0-dev.0",
46
- "@itwin/core-bentley": "5.0.0-dev.0",
47
- "@itwin/core-geometry": "5.0.0-dev.0"
45
+ "@itwin/build-tools": "5.0.0-dev.10",
46
+ "@itwin/core-bentley": "5.0.0-dev.10",
47
+ "@itwin/core-geometry": "5.0.0-dev.10"
48
48
  },
49
49
  "nyc": {
50
50
  "extends": "./node_modules/@itwin/build-tools/.nycrc",
@@ -55,7 +55,7 @@
55
55
  "build:cjs": "tsc 1>&2 --outDir lib/cjs",
56
56
  "build:esm": "tsc 1>&2 --module ES2020 --outDir lib/esm",
57
57
  "clean": "rimraf lib .rush/temp/package-deps*.json",
58
- "docs": "betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-common/file.json --tsIndexFile=./core-common.ts --onlyJson",
58
+ "docs": "betools docs --json=../../generated-docs/core/core-common/file.json --tsIndexFile=./core-common.ts --onlyJson",
59
59
  "extract-api": "betools extract-api --entry=core-common && npm run extract-extension-api",
60
60
  "extract-extension-api": "eslint --no-inline-config -c extraction.eslint.config.js \"./src/**/*.ts\" 1>&2",
61
61
  "lint": "eslint \"./src/**/*.ts\" 1>&2",
@@ -1,31 +0,0 @@
1
- /** @packageDocumentation
2
- * @module RpcInterface
3
- */
4
- import { ChangedElements } from "../ChangedElements";
5
- import { IModelRpcProps } from "../IModel";
6
- import { RpcInterface } from "../RpcInterface";
7
- /** The purpose of this class is to house WIP RPC methods. For example:
8
- * - WIP methods where signatures or behavior is still changing
9
- * - Experimental methods that we may decide are a bad idea and never release
10
- * The idea is to house these WIP RPC methods away from other RpcInterfaces that have stated compatibility goals.
11
- * Once stable, the goal is to move methods out to their rightful home.
12
- * Apps/services should understand the *flux* implied by registering this RpcInterface and should be in control of both the client and server before even considering using it.
13
- * @internal
14
- * @deprecated in 4.10. If any of these methods are needed in the frontend, they should be rewritten using IPC or HTTP protocol.
15
- */
16
- export declare abstract class WipRpcInterface extends RpcInterface {
17
- /** Returns the IModelReadRpcInterface instance for the frontend. */
18
- static getClient(): WipRpcInterface;
19
- /** The immutable name of the interface. */
20
- static readonly interfaceName = "WipRpcInterface";
21
- /** The semantic version of the interface.
22
- * @note The WipRpcInterface will never progress to 1.0 since it is never intended to be public.
23
- */
24
- static interfaceVersion: string;
25
- placeholder(_iModelToken: IModelRpcProps): Promise<string>;
26
- isChangeCacheAttached(_iModelToken: IModelRpcProps): Promise<boolean>;
27
- attachChangeCache(_iModelToken: IModelRpcProps): Promise<void>;
28
- getChangedElements(_iModelToken: IModelRpcProps, _startChangesetId: string, _endChangesetId: string): Promise<ChangedElements | undefined>;
29
- isChangesetProcessed(_iModelToken: IModelRpcProps, _changesetId: string): Promise<boolean>;
30
- }
31
- //# sourceMappingURL=WipRpcInterface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WipRpcInterface.d.ts","sourceRoot":"","sources":["../../../src/rpc/WipRpcInterface.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C;;;;;;;;GAQG;AACH,8BAAsB,eAAgB,SAAQ,YAAY;IACxD,oEAAoE;WACtD,SAAS,IAAI,eAAe;IAE1C,2CAA2C;IAC3C,gBAAuB,aAAa,qBAAqB;IAEzD;;OAEG;IACH,OAAc,gBAAgB,SAAW;IAM5B,WAAW,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAC1D,qBAAqB,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IACrE,iBAAiB,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAC9D,kBAAkB,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IAC1I,oBAAoB,CAAC,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CACxG"}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- /*---------------------------------------------------------------------------------------------
3
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
- * See LICENSE.md in the project root for license terms and full copyright notice.
5
- *--------------------------------------------------------------------------------------------*/
6
- /** @packageDocumentation
7
- * @module RpcInterface
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.WipRpcInterface = void 0;
11
- const RpcInterface_1 = require("../RpcInterface");
12
- const RpcManager_1 = require("../RpcManager");
13
- /** The purpose of this class is to house WIP RPC methods. For example:
14
- * - WIP methods where signatures or behavior is still changing
15
- * - Experimental methods that we may decide are a bad idea and never release
16
- * The idea is to house these WIP RPC methods away from other RpcInterfaces that have stated compatibility goals.
17
- * Once stable, the goal is to move methods out to their rightful home.
18
- * Apps/services should understand the *flux* implied by registering this RpcInterface and should be in control of both the client and server before even considering using it.
19
- * @internal
20
- * @deprecated in 4.10. If any of these methods are needed in the frontend, they should be rewritten using IPC or HTTP protocol.
21
- */
22
- class WipRpcInterface extends RpcInterface_1.RpcInterface {
23
- /** Returns the IModelReadRpcInterface instance for the frontend. */
24
- static getClient() { return RpcManager_1.RpcManager.getClientForInterface(WipRpcInterface); } // eslint-disable-line @typescript-eslint/no-deprecated
25
- /*===========================================================================================
26
- NOTE: Any add/remove/change to the methods below requires an update of the interface version.
27
- NOTE: Please consult the README in this folder for the semantic versioning rules.
28
- ==========================================================================================*/
29
- async placeholder(_iModelToken) { return this.forward(arguments); } // here to test that WipRpcInterface is configured properly
30
- async isChangeCacheAttached(_iModelToken) { return this.forward(arguments); }
31
- async attachChangeCache(_iModelToken) { return this.forward(arguments); }
32
- async getChangedElements(_iModelToken, _startChangesetId, _endChangesetId) { return this.forward(arguments); }
33
- async isChangesetProcessed(_iModelToken, _changesetId) { return this.forward(arguments); }
34
- }
35
- exports.WipRpcInterface = WipRpcInterface;
36
- /** The immutable name of the interface. */
37
- WipRpcInterface.interfaceName = "WipRpcInterface";
38
- /** The semantic version of the interface.
39
- * @note The WipRpcInterface will never progress to 1.0 since it is never intended to be public.
40
- */
41
- WipRpcInterface.interfaceVersion = "0.5.0";
42
- //# sourceMappingURL=WipRpcInterface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WipRpcInterface.js","sourceRoot":"","sources":["../../../src/rpc/WipRpcInterface.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAIH,kDAA+C;AAC/C,8CAA2C;AAE3C;;;;;;;;GAQG;AACH,MAAsB,eAAgB,SAAQ,2BAAY;IACxD,oEAAoE;IAC7D,MAAM,CAAC,SAAS,KAAsB,OAAO,uBAAU,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,uDAAuD;IAUhK;;;gGAG4F;IACrF,KAAK,CAAC,WAAW,CAAC,YAA4B,IAAqB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,2DAA2D;IAChK,KAAK,CAAC,qBAAqB,CAAC,YAA4B,IAAsB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAC/G,KAAK,CAAC,iBAAiB,CAAC,YAA4B,IAAmB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACxG,KAAK,CAAC,kBAAkB,CAAC,YAA4B,EAAE,iBAAyB,EAAE,eAAuB,IAA0C,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACpL,KAAK,CAAC,oBAAoB,CAAC,YAA4B,EAAE,YAAoB,IAAsB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;AApB7I,0CAqBC;AAjBC,2CAA2C;AACpB,6BAAa,GAAG,iBAAiB,CAAC;AAEzD;;GAEG;AACW,gCAAgB,GAAG,OAAO,CAAC","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 { ChangedElements } from \"../ChangedElements\";\r\nimport { IModelRpcProps } from \"../IModel\";\r\nimport { RpcInterface } from \"../RpcInterface\";\r\nimport { RpcManager } from \"../RpcManager\";\r\n\r\n/** The purpose of this class is to house WIP RPC methods. For example:\r\n * - WIP methods where signatures or behavior is still changing\r\n * - Experimental methods that we may decide are a bad idea and never release\r\n * The idea is to house these WIP RPC methods away from other RpcInterfaces that have stated compatibility goals.\r\n * Once stable, the goal is to move methods out to their rightful home.\r\n * Apps/services should understand the *flux* implied by registering this RpcInterface and should be in control of both the client and server before even considering using it.\r\n * @internal\r\n * @deprecated in 4.10. If any of these methods are needed in the frontend, they should be rewritten using IPC or HTTP protocol.\r\n */\r\nexport abstract class WipRpcInterface extends RpcInterface {\r\n /** Returns the IModelReadRpcInterface instance for the frontend. */\r\n public static getClient(): WipRpcInterface { return RpcManager.getClientForInterface(WipRpcInterface); } // eslint-disable-line @typescript-eslint/no-deprecated\r\n\r\n /** The immutable name of the interface. */\r\n public static readonly interfaceName = \"WipRpcInterface\";\r\n\r\n /** The semantic version of the interface.\r\n * @note The WipRpcInterface will never progress to 1.0 since it is never intended to be public.\r\n */\r\n public static interfaceVersion = \"0.5.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 public async placeholder(_iModelToken: IModelRpcProps): Promise<string> { return this.forward(arguments); } // here to test that WipRpcInterface is configured properly\r\n public async isChangeCacheAttached(_iModelToken: IModelRpcProps): Promise<boolean> { return this.forward(arguments); }\r\n public async attachChangeCache(_iModelToken: IModelRpcProps): Promise<void> { return this.forward(arguments); }\r\n public async getChangedElements(_iModelToken: IModelRpcProps, _startChangesetId: string, _endChangesetId: string): Promise<ChangedElements | undefined> { return this.forward(arguments); }\r\n public async isChangesetProcessed(_iModelToken: IModelRpcProps, _changesetId: string): Promise<boolean> { return this.forward(arguments); }\r\n}\r\n"]}
@@ -1,31 +0,0 @@
1
- /** @packageDocumentation
2
- * @module RpcInterface
3
- */
4
- import { ChangedElements } from "../ChangedElements";
5
- import { IModelRpcProps } from "../IModel";
6
- import { RpcInterface } from "../RpcInterface";
7
- /** The purpose of this class is to house WIP RPC methods. For example:
8
- * - WIP methods where signatures or behavior is still changing
9
- * - Experimental methods that we may decide are a bad idea and never release
10
- * The idea is to house these WIP RPC methods away from other RpcInterfaces that have stated compatibility goals.
11
- * Once stable, the goal is to move methods out to their rightful home.
12
- * Apps/services should understand the *flux* implied by registering this RpcInterface and should be in control of both the client and server before even considering using it.
13
- * @internal
14
- * @deprecated in 4.10. If any of these methods are needed in the frontend, they should be rewritten using IPC or HTTP protocol.
15
- */
16
- export declare abstract class WipRpcInterface extends RpcInterface {
17
- /** Returns the IModelReadRpcInterface instance for the frontend. */
18
- static getClient(): WipRpcInterface;
19
- /** The immutable name of the interface. */
20
- static readonly interfaceName = "WipRpcInterface";
21
- /** The semantic version of the interface.
22
- * @note The WipRpcInterface will never progress to 1.0 since it is never intended to be public.
23
- */
24
- static interfaceVersion: string;
25
- placeholder(_iModelToken: IModelRpcProps): Promise<string>;
26
- isChangeCacheAttached(_iModelToken: IModelRpcProps): Promise<boolean>;
27
- attachChangeCache(_iModelToken: IModelRpcProps): Promise<void>;
28
- getChangedElements(_iModelToken: IModelRpcProps, _startChangesetId: string, _endChangesetId: string): Promise<ChangedElements | undefined>;
29
- isChangesetProcessed(_iModelToken: IModelRpcProps, _changesetId: string): Promise<boolean>;
30
- }
31
- //# sourceMappingURL=WipRpcInterface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WipRpcInterface.d.ts","sourceRoot":"","sources":["../../../src/rpc/WipRpcInterface.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C;;;;;;;;GAQG;AACH,8BAAsB,eAAgB,SAAQ,YAAY;IACxD,oEAAoE;WACtD,SAAS,IAAI,eAAe;IAE1C,2CAA2C;IAC3C,gBAAuB,aAAa,qBAAqB;IAEzD;;OAEG;IACH,OAAc,gBAAgB,SAAW;IAM5B,WAAW,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAC1D,qBAAqB,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IACrE,iBAAiB,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAC9D,kBAAkB,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IAC1I,oBAAoB,CAAC,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CACxG"}
@@ -1,38 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- /** @packageDocumentation
6
- * @module RpcInterface
7
- */
8
- import { RpcInterface } from "../RpcInterface";
9
- import { RpcManager } from "../RpcManager";
10
- /** The purpose of this class is to house WIP RPC methods. For example:
11
- * - WIP methods where signatures or behavior is still changing
12
- * - Experimental methods that we may decide are a bad idea and never release
13
- * The idea is to house these WIP RPC methods away from other RpcInterfaces that have stated compatibility goals.
14
- * Once stable, the goal is to move methods out to their rightful home.
15
- * Apps/services should understand the *flux* implied by registering this RpcInterface and should be in control of both the client and server before even considering using it.
16
- * @internal
17
- * @deprecated in 4.10. If any of these methods are needed in the frontend, they should be rewritten using IPC or HTTP protocol.
18
- */
19
- export class WipRpcInterface extends RpcInterface {
20
- /** Returns the IModelReadRpcInterface instance for the frontend. */
21
- static getClient() { return RpcManager.getClientForInterface(WipRpcInterface); } // eslint-disable-line @typescript-eslint/no-deprecated
22
- /*===========================================================================================
23
- NOTE: Any add/remove/change to the methods below requires an update of the interface version.
24
- NOTE: Please consult the README in this folder for the semantic versioning rules.
25
- ==========================================================================================*/
26
- async placeholder(_iModelToken) { return this.forward(arguments); } // here to test that WipRpcInterface is configured properly
27
- async isChangeCacheAttached(_iModelToken) { return this.forward(arguments); }
28
- async attachChangeCache(_iModelToken) { return this.forward(arguments); }
29
- async getChangedElements(_iModelToken, _startChangesetId, _endChangesetId) { return this.forward(arguments); }
30
- async isChangesetProcessed(_iModelToken, _changesetId) { return this.forward(arguments); }
31
- }
32
- /** The immutable name of the interface. */
33
- WipRpcInterface.interfaceName = "WipRpcInterface";
34
- /** The semantic version of the interface.
35
- * @note The WipRpcInterface will never progress to 1.0 since it is never intended to be public.
36
- */
37
- WipRpcInterface.interfaceVersion = "0.5.0";
38
- //# sourceMappingURL=WipRpcInterface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WipRpcInterface.js","sourceRoot":"","sources":["../../../src/rpc/WipRpcInterface.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;;;;GAQG;AACH,MAAM,OAAgB,eAAgB,SAAQ,YAAY;IACxD,oEAAoE;IAC7D,MAAM,CAAC,SAAS,KAAsB,OAAO,UAAU,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,uDAAuD;IAUhK;;;gGAG4F;IACrF,KAAK,CAAC,WAAW,CAAC,YAA4B,IAAqB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,2DAA2D;IAChK,KAAK,CAAC,qBAAqB,CAAC,YAA4B,IAAsB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAC/G,KAAK,CAAC,iBAAiB,CAAC,YAA4B,IAAmB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACxG,KAAK,CAAC,kBAAkB,CAAC,YAA4B,EAAE,iBAAyB,EAAE,eAAuB,IAA0C,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACpL,KAAK,CAAC,oBAAoB,CAAC,YAA4B,EAAE,YAAoB,IAAsB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;AAhB3I,2CAA2C;AACpB,6BAAa,GAAG,iBAAiB,CAAC;AAEzD;;GAEG;AACW,gCAAgB,GAAG,OAAO,CAAC","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 { ChangedElements } from \"../ChangedElements\";\r\nimport { IModelRpcProps } from \"../IModel\";\r\nimport { RpcInterface } from \"../RpcInterface\";\r\nimport { RpcManager } from \"../RpcManager\";\r\n\r\n/** The purpose of this class is to house WIP RPC methods. For example:\r\n * - WIP methods where signatures or behavior is still changing\r\n * - Experimental methods that we may decide are a bad idea and never release\r\n * The idea is to house these WIP RPC methods away from other RpcInterfaces that have stated compatibility goals.\r\n * Once stable, the goal is to move methods out to their rightful home.\r\n * Apps/services should understand the *flux* implied by registering this RpcInterface and should be in control of both the client and server before even considering using it.\r\n * @internal\r\n * @deprecated in 4.10. If any of these methods are needed in the frontend, they should be rewritten using IPC or HTTP protocol.\r\n */\r\nexport abstract class WipRpcInterface extends RpcInterface {\r\n /** Returns the IModelReadRpcInterface instance for the frontend. */\r\n public static getClient(): WipRpcInterface { return RpcManager.getClientForInterface(WipRpcInterface); } // eslint-disable-line @typescript-eslint/no-deprecated\r\n\r\n /** The immutable name of the interface. */\r\n public static readonly interfaceName = \"WipRpcInterface\";\r\n\r\n /** The semantic version of the interface.\r\n * @note The WipRpcInterface will never progress to 1.0 since it is never intended to be public.\r\n */\r\n public static interfaceVersion = \"0.5.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 public async placeholder(_iModelToken: IModelRpcProps): Promise<string> { return this.forward(arguments); } // here to test that WipRpcInterface is configured properly\r\n public async isChangeCacheAttached(_iModelToken: IModelRpcProps): Promise<boolean> { return this.forward(arguments); }\r\n public async attachChangeCache(_iModelToken: IModelRpcProps): Promise<void> { return this.forward(arguments); }\r\n public async getChangedElements(_iModelToken: IModelRpcProps, _startChangesetId: string, _endChangesetId: string): Promise<ChangedElements | undefined> { return this.forward(arguments); }\r\n public async isChangesetProcessed(_iModelToken: IModelRpcProps, _changesetId: string): Promise<boolean> { return this.forward(arguments); }\r\n}\r\n"]}