@itwin/ecschema-rpcinterface-common 5.0.0-dev.32 → 5.0.0-dev.34

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.
@@ -19,6 +19,10 @@ const core_common_1 = require("@itwin/core-common");
19
19
  * @internal
20
20
  */
21
21
  class ECSchemaRpcInterface extends core_common_1.RpcInterface {
22
+ /** The version of the RPC Interface. */
23
+ static { this.version = "2.0.0"; }
24
+ static { this.interfaceName = "ECSchemaRpcInterface"; }
25
+ static { this.interfaceVersion = ECSchemaRpcInterface.version; }
22
26
  /**
23
27
  * Returns the RPC client instance for the frontend.
24
28
  * @returns A client to communicate with the RPC Interface.
@@ -47,10 +51,6 @@ class ECSchemaRpcInterface extends core_common_1.RpcInterface {
47
51
  }
48
52
  }
49
53
  exports.ECSchemaRpcInterface = ECSchemaRpcInterface;
50
- /** The version of the RPC Interface. */
51
- ECSchemaRpcInterface.version = "2.0.0";
52
- ECSchemaRpcInterface.interfaceName = "ECSchemaRpcInterface";
53
- ECSchemaRpcInterface.interfaceVersion = ECSchemaRpcInterface.version;
54
54
  __decorate([
55
55
  core_common_1.RpcOperation.allowResponseCaching(core_common_1.RpcResponseCacheControl.Immutable)
56
56
  ], ECSchemaRpcInterface.prototype, "getSchemaKeys", null);
@@ -1 +1 @@
1
- {"version":3,"file":"ECSchemaRpcInterface.js","sourceRoot":"","sources":["../../src/ECSchemaRpcInterface.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;+FAG+F;AAC/F,oDAAqH;AAGrH;;;;;GAKG;AACH,MAAsB,oBAAqB,SAAQ,0BAAY;IAO7D;;;OAGG;IACI,MAAM,CAAC,SAAS;QACrB,OAAO,wBAAU,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IAEU,AAAN,KAAK,CAAC,aAAa,CAAC,WAA2B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAA8B,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IAEU,AAAN,KAAK,CAAC,aAAa,CAAC,WAA2B,EAAE,WAAmB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAyB,CAAC;IACvE,CAAC;;AApCH,oDAsCC;AArCC,wCAAwC;AAC1B,4BAAO,GAAG,OAAO,CAAC;AAET,kCAAa,GAAG,sBAAsB,CAAC;AAChD,qCAAgB,GAAG,oBAAoB,CAAC,OAAO,CAAC;AAiBjD;IADZ,0BAAY,CAAC,oBAAoB,CAAC,qCAAuB,CAAC,SAAS,CAAC;yDAGpE;AAUY;IADZ,0BAAY,CAAC,oBAAoB,CAAC,qCAAuB,CAAC,SAAS,CAAC;yDAGpE","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { IModelRpcProps, RpcInterface, RpcManager, RpcOperation, RpcResponseCacheControl } from \"@itwin/core-common\";\nimport { SchemaKeyProps, SchemaProps } from \"@itwin/ecschema-metadata\";\n\n/***\n * Defines an RPC interface to get schema information from a given iModel context.\n * Method @see getSchemaNames will return the names of schemas that live in this iModel.\n * The actual schemas can be downloaded using @see getSchemaJSON to get the schema as JSON props.\n * @internal\n */\nexport abstract class ECSchemaRpcInterface extends RpcInterface {\n /** The version of the RPC Interface. */\n public static version = \"2.0.0\";\n\n public static readonly interfaceName = \"ECSchemaRpcInterface\";\n public static interfaceVersion = ECSchemaRpcInterface.version;\n\n /**\n * Returns the RPC client instance for the frontend.\n * @returns A client to communicate with the RPC Interface.\n */\n public static getClient(): ECSchemaRpcInterface {\n return RpcManager.getClientForInterface(ECSchemaRpcInterface);\n }\n\n /**\n * Returns an array of SchemaKeyProps that exists in the current iModel context. The client can call\n * SchemaKey.fromJson() to parse the props to a SchemaKey.\n * @param tokenProps The iModelToken props that hold the information which iModel is used.\n * @returns An array of SchemaKeyProps.\n */\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getSchemaKeys(_tokenProps: IModelRpcProps): Promise<SchemaKeyProps[]> {\n return this.forward.apply(this, [arguments]) as Promise<SchemaKeyProps[]>;\n }\n\n /**\n * Gets the schema JSON for the current iModel context and returns the schema as a SchemaProps which\n * the client can call Schema.fromJson() to return a Schema.\n * @param tokenProps The iModelToken props that hold the information which iModel is used.\n * @param schemaName The name of the schema that shall be returned.\n * @returns The SchemaProps.\n */\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getSchemaJSON(_tokenProps: IModelRpcProps, _schemaName: string): Promise<SchemaProps> {\n return this.forward.apply(this, [arguments]) as Promise<SchemaProps>;\n }\n\n}\n"]}
1
+ {"version":3,"file":"ECSchemaRpcInterface.js","sourceRoot":"","sources":["../../src/ECSchemaRpcInterface.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;+FAG+F;AAC/F,oDAAqH;AAGrH;;;;;GAKG;AACH,MAAsB,oBAAqB,SAAQ,0BAAY;IAC7D,wCAAwC;aAC1B,YAAO,GAAG,OAAO,CAAC;aAET,kBAAa,GAAG,sBAAsB,CAAC;aAChD,qBAAgB,GAAG,oBAAoB,CAAC,OAAO,CAAC;IAE9D;;;OAGG;IACI,MAAM,CAAC,SAAS;QACrB,OAAO,wBAAU,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IAEU,AAAN,KAAK,CAAC,aAAa,CAAC,WAA2B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAA8B,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IAEU,AAAN,KAAK,CAAC,aAAa,CAAC,WAA2B,EAAE,WAAmB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAyB,CAAC;IACvE,CAAC;;AApCH,oDAsCC;AAhBc;IADZ,0BAAY,CAAC,oBAAoB,CAAC,qCAAuB,CAAC,SAAS,CAAC;yDAGpE;AAUY;IADZ,0BAAY,CAAC,oBAAoB,CAAC,qCAAuB,CAAC,SAAS,CAAC;yDAGpE","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { IModelRpcProps, RpcInterface, RpcManager, RpcOperation, RpcResponseCacheControl } from \"@itwin/core-common\";\nimport { SchemaKeyProps, SchemaProps } from \"@itwin/ecschema-metadata\";\n\n/***\n * Defines an RPC interface to get schema information from a given iModel context.\n * Method @see getSchemaNames will return the names of schemas that live in this iModel.\n * The actual schemas can be downloaded using @see getSchemaJSON to get the schema as JSON props.\n * @internal\n */\nexport abstract class ECSchemaRpcInterface extends RpcInterface {\n /** The version of the RPC Interface. */\n public static version = \"2.0.0\";\n\n public static readonly interfaceName = \"ECSchemaRpcInterface\";\n public static interfaceVersion = ECSchemaRpcInterface.version;\n\n /**\n * Returns the RPC client instance for the frontend.\n * @returns A client to communicate with the RPC Interface.\n */\n public static getClient(): ECSchemaRpcInterface {\n return RpcManager.getClientForInterface(ECSchemaRpcInterface);\n }\n\n /**\n * Returns an array of SchemaKeyProps that exists in the current iModel context. The client can call\n * SchemaKey.fromJson() to parse the props to a SchemaKey.\n * @param tokenProps The iModelToken props that hold the information which iModel is used.\n * @returns An array of SchemaKeyProps.\n */\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getSchemaKeys(_tokenProps: IModelRpcProps): Promise<SchemaKeyProps[]> {\n return this.forward.apply(this, [arguments]) as Promise<SchemaKeyProps[]>;\n }\n\n /**\n * Gets the schema JSON for the current iModel context and returns the schema as a SchemaProps which\n * the client can call Schema.fromJson() to return a Schema.\n * @param tokenProps The iModelToken props that hold the information which iModel is used.\n * @param schemaName The name of the schema that shall be returned.\n * @returns The SchemaProps.\n */\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getSchemaJSON(_tokenProps: IModelRpcProps, _schemaName: string): Promise<SchemaProps> {\n return this.forward.apply(this, [arguments]) as Promise<SchemaProps>;\n }\n\n}\n"]}
@@ -16,6 +16,10 @@ import { RpcInterface, RpcManager, RpcOperation, RpcResponseCacheControl } from
16
16
  * @internal
17
17
  */
18
18
  export class ECSchemaRpcInterface extends RpcInterface {
19
+ /** The version of the RPC Interface. */
20
+ static { this.version = "2.0.0"; }
21
+ static { this.interfaceName = "ECSchemaRpcInterface"; }
22
+ static { this.interfaceVersion = ECSchemaRpcInterface.version; }
19
23
  /**
20
24
  * Returns the RPC client instance for the frontend.
21
25
  * @returns A client to communicate with the RPC Interface.
@@ -43,10 +47,6 @@ export class ECSchemaRpcInterface extends RpcInterface {
43
47
  return this.forward.apply(this, [arguments]);
44
48
  }
45
49
  }
46
- /** The version of the RPC Interface. */
47
- ECSchemaRpcInterface.version = "2.0.0";
48
- ECSchemaRpcInterface.interfaceName = "ECSchemaRpcInterface";
49
- ECSchemaRpcInterface.interfaceVersion = ECSchemaRpcInterface.version;
50
50
  __decorate([
51
51
  RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)
52
52
  ], ECSchemaRpcInterface.prototype, "getSchemaKeys", null);
@@ -1 +1 @@
1
- {"version":3,"file":"ECSchemaRpcInterface.js","sourceRoot":"","sources":["../../src/ECSchemaRpcInterface.ts"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,OAAO,EAAkB,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAGrH;;;;;GAKG;AACH,MAAM,OAAgB,oBAAqB,SAAQ,YAAY;IAO7D;;;OAGG;IACI,MAAM,CAAC,SAAS;QACrB,OAAO,UAAU,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IAEU,AAAN,KAAK,CAAC,aAAa,CAAC,WAA2B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAA8B,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IAEU,AAAN,KAAK,CAAC,aAAa,CAAC,WAA2B,EAAE,WAAmB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAyB,CAAC;IACvE,CAAC;;AAnCD,wCAAwC;AAC1B,4BAAO,GAAG,OAAO,CAAC;AAET,kCAAa,GAAG,sBAAsB,CAAC;AAChD,qCAAgB,GAAG,oBAAoB,CAAC,OAAO,CAAC;AAiBjD;IADZ,YAAY,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,SAAS,CAAC;yDAGpE;AAUY;IADZ,YAAY,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,SAAS,CAAC;yDAGpE","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { IModelRpcProps, RpcInterface, RpcManager, RpcOperation, RpcResponseCacheControl } from \"@itwin/core-common\";\nimport { SchemaKeyProps, SchemaProps } from \"@itwin/ecschema-metadata\";\n\n/***\n * Defines an RPC interface to get schema information from a given iModel context.\n * Method @see getSchemaNames will return the names of schemas that live in this iModel.\n * The actual schemas can be downloaded using @see getSchemaJSON to get the schema as JSON props.\n * @internal\n */\nexport abstract class ECSchemaRpcInterface extends RpcInterface {\n /** The version of the RPC Interface. */\n public static version = \"2.0.0\";\n\n public static readonly interfaceName = \"ECSchemaRpcInterface\";\n public static interfaceVersion = ECSchemaRpcInterface.version;\n\n /**\n * Returns the RPC client instance for the frontend.\n * @returns A client to communicate with the RPC Interface.\n */\n public static getClient(): ECSchemaRpcInterface {\n return RpcManager.getClientForInterface(ECSchemaRpcInterface);\n }\n\n /**\n * Returns an array of SchemaKeyProps that exists in the current iModel context. The client can call\n * SchemaKey.fromJson() to parse the props to a SchemaKey.\n * @param tokenProps The iModelToken props that hold the information which iModel is used.\n * @returns An array of SchemaKeyProps.\n */\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getSchemaKeys(_tokenProps: IModelRpcProps): Promise<SchemaKeyProps[]> {\n return this.forward.apply(this, [arguments]) as Promise<SchemaKeyProps[]>;\n }\n\n /**\n * Gets the schema JSON for the current iModel context and returns the schema as a SchemaProps which\n * the client can call Schema.fromJson() to return a Schema.\n * @param tokenProps The iModelToken props that hold the information which iModel is used.\n * @param schemaName The name of the schema that shall be returned.\n * @returns The SchemaProps.\n */\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getSchemaJSON(_tokenProps: IModelRpcProps, _schemaName: string): Promise<SchemaProps> {\n return this.forward.apply(this, [arguments]) as Promise<SchemaProps>;\n }\n\n}\n"]}
1
+ {"version":3,"file":"ECSchemaRpcInterface.js","sourceRoot":"","sources":["../../src/ECSchemaRpcInterface.ts"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,OAAO,EAAkB,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAGrH;;;;;GAKG;AACH,MAAM,OAAgB,oBAAqB,SAAQ,YAAY;IAC7D,wCAAwC;aAC1B,YAAO,GAAG,OAAO,CAAC;aAET,kBAAa,GAAG,sBAAsB,CAAC;aAChD,qBAAgB,GAAG,oBAAoB,CAAC,OAAO,CAAC;IAE9D;;;OAGG;IACI,MAAM,CAAC,SAAS;QACrB,OAAO,UAAU,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IAEU,AAAN,KAAK,CAAC,aAAa,CAAC,WAA2B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAA8B,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IAEU,AAAN,KAAK,CAAC,aAAa,CAAC,WAA2B,EAAE,WAAmB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAyB,CAAC;IACvE,CAAC;;AAdY;IADZ,YAAY,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,SAAS,CAAC;yDAGpE;AAUY;IADZ,YAAY,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,SAAS,CAAC;yDAGpE","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { IModelRpcProps, RpcInterface, RpcManager, RpcOperation, RpcResponseCacheControl } from \"@itwin/core-common\";\nimport { SchemaKeyProps, SchemaProps } from \"@itwin/ecschema-metadata\";\n\n/***\n * Defines an RPC interface to get schema information from a given iModel context.\n * Method @see getSchemaNames will return the names of schemas that live in this iModel.\n * The actual schemas can be downloaded using @see getSchemaJSON to get the schema as JSON props.\n * @internal\n */\nexport abstract class ECSchemaRpcInterface extends RpcInterface {\n /** The version of the RPC Interface. */\n public static version = \"2.0.0\";\n\n public static readonly interfaceName = \"ECSchemaRpcInterface\";\n public static interfaceVersion = ECSchemaRpcInterface.version;\n\n /**\n * Returns the RPC client instance for the frontend.\n * @returns A client to communicate with the RPC Interface.\n */\n public static getClient(): ECSchemaRpcInterface {\n return RpcManager.getClientForInterface(ECSchemaRpcInterface);\n }\n\n /**\n * Returns an array of SchemaKeyProps that exists in the current iModel context. The client can call\n * SchemaKey.fromJson() to parse the props to a SchemaKey.\n * @param tokenProps The iModelToken props that hold the information which iModel is used.\n * @returns An array of SchemaKeyProps.\n */\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getSchemaKeys(_tokenProps: IModelRpcProps): Promise<SchemaKeyProps[]> {\n return this.forward.apply(this, [arguments]) as Promise<SchemaKeyProps[]>;\n }\n\n /**\n * Gets the schema JSON for the current iModel context and returns the schema as a SchemaProps which\n * the client can call Schema.fromJson() to return a Schema.\n * @param tokenProps The iModelToken props that hold the information which iModel is used.\n * @param schemaName The name of the schema that shall be returned.\n * @returns The SchemaProps.\n */\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getSchemaJSON(_tokenProps: IModelRpcProps, _schemaName: string): Promise<SchemaProps> {\n return this.forward.apply(this, [arguments]) as Promise<SchemaProps>;\n }\n\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/ecschema-rpcinterface-common",
3
- "version": "5.0.0-dev.32",
3
+ "version": "5.0.0-dev.34",
4
4
  "description": "Schema RPC Interface common interface",
5
5
  "main": "lib/cjs/ecschema-rpc-interface.js",
6
6
  "module": "lib/esm/ecschema-rpc-interface.js",
@@ -22,26 +22,26 @@
22
22
  "url": "http://www.bentley.com"
23
23
  },
24
24
  "peerDependencies": {
25
- "@itwin/core-bentley": "5.0.0-dev.32",
26
- "@itwin/core-common": "5.0.0-dev.32",
27
- "@itwin/ecschema-metadata": "5.0.0-dev.32",
28
- "@itwin/core-geometry": "5.0.0-dev.32"
25
+ "@itwin/core-bentley": "5.0.0-dev.34",
26
+ "@itwin/core-geometry": "5.0.0-dev.34",
27
+ "@itwin/core-common": "5.0.0-dev.34",
28
+ "@itwin/ecschema-metadata": "5.0.0-dev.34"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@itwin/eslint-plugin": "5.0.0-dev.1",
32
32
  "eslint": "^9.13.0",
33
33
  "rimraf": "^3.0.2",
34
34
  "typescript": "~5.6.2",
35
- "@itwin/build-tools": "5.0.0-dev.32",
36
- "@itwin/core-bentley": "5.0.0-dev.32",
37
- "@itwin/core-common": "5.0.0-dev.32",
38
- "@itwin/ecschema-metadata": "5.0.0-dev.32",
39
- "@itwin/core-geometry": "5.0.0-dev.32"
35
+ "@itwin/build-tools": "5.0.0-dev.34",
36
+ "@itwin/core-bentley": "5.0.0-dev.34",
37
+ "@itwin/core-geometry": "5.0.0-dev.34",
38
+ "@itwin/core-common": "5.0.0-dev.34",
39
+ "@itwin/ecschema-metadata": "5.0.0-dev.34"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "npm run -s build:cjs && npm run -s build:esm",
43
43
  "build:cjs": "tsc 1>&2 --outDir lib/cjs",
44
- "build:esm": "tsc 1>&2 --module ES2020 --outDir lib/esm",
44
+ "build:esm": "tsc 1>&2 --module ES2022 --outDir lib/esm",
45
45
  "clean": "rimraf lib .rush/temp/package-deps*.json",
46
46
  "cover": "",
47
47
  "docs": "",