@itwin/ecschema-rpcinterface-common 3.3.0-dev.7 → 3.3.0-dev.72

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,36 @@
1
1
  # Change Log - @itwin/ecschema-rpcinterface-common
2
2
 
3
- This log was last generated on Fri, 15 Apr 2022 13:49:25 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 13 Jul 2022 15:45:52 GMT and should not be manually modified.
4
+
5
+ ## 3.2.5
6
+ Wed, 13 Jul 2022 15:45:52 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.2.4
11
+ Tue, 21 Jun 2022 18:06:33 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 3.2.3
16
+ Fri, 17 Jun 2022 15:18:39 GMT
17
+
18
+ _Version update only_
19
+
20
+ ## 3.2.2
21
+ Fri, 10 Jun 2022 16:11:36 GMT
22
+
23
+ _Version update only_
24
+
25
+ ## 3.2.1
26
+ Tue, 07 Jun 2022 15:02:56 GMT
27
+
28
+ _Version update only_
29
+
30
+ ## 3.2.0
31
+ Fri, 20 May 2022 13:10:54 GMT
32
+
33
+ _Version update only_
4
34
 
5
35
  ## 3.1.3
6
36
  Fri, 15 Apr 2022 13:49:25 GMT
@@ -1 +1 @@
1
- {"version":3,"file":"ECSchemaRpcInterface.d.ts","sourceRoot":"","sources":["../../src/ECSchemaRpcInterface.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAc,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvE;;;;;GAKG;AACH,8BAAsB,oBAAqB,SAAQ,YAAY;IAC7D,wCAAwC;IACxC,OAAc,OAAO,SAAW;IAEhC,gBAAuB,aAAa,0BAA0B;IAC9D,OAAc,gBAAgB,SAAgC;IAE9D;;;OAGG;WACW,SAAS,IAAI,oBAAoB;IAI/C;;;;;OAKG;IACU,aAAa,CAAC,WAAW,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAIlF;;;;;;OAMG;IACU,aAAa,CAAC,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAInG"}
1
+ {"version":3,"file":"ECSchemaRpcInterface.d.ts","sourceRoot":"","sources":["../../src/ECSchemaRpcInterface.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,YAAY,EAA4B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvE;;;;;GAKG;AACH,8BAAsB,oBAAqB,SAAQ,YAAY;IAC7D,wCAAwC;IACxC,OAAc,OAAO,SAAW;IAEhC,gBAAuB,aAAa,0BAA0B;IAC9D,OAAc,gBAAgB,SAAgC;IAE9D;;;OAGG;WACW,SAAS,IAAI,oBAAoB;IAI/C;;;;;OAKG;IACU,aAAa,CAAC,WAAW,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAIlF;;;;;;OAMG;IAEU,aAAa,CAAC,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAInG"}
@@ -1,4 +1,10 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
2
8
  Object.defineProperty(exports, "__esModule", { value: true });
3
9
  exports.ECSchemaRpcInterface = void 0;
4
10
  /*---------------------------------------------------------------------------------------------
@@ -40,9 +46,12 @@ class ECSchemaRpcInterface extends core_common_1.RpcInterface {
40
46
  return this.forward.apply(this, [arguments]);
41
47
  }
42
48
  }
43
- exports.ECSchemaRpcInterface = ECSchemaRpcInterface;
44
49
  /** The version of the RPC Interface. */
45
50
  ECSchemaRpcInterface.version = "2.0.0";
46
51
  ECSchemaRpcInterface.interfaceName = "ECSchemaRpcInterface";
47
52
  ECSchemaRpcInterface.interfaceVersion = ECSchemaRpcInterface.version;
53
+ __decorate([
54
+ core_common_1.RpcOperation.setPolicy({ allowResponseCompression: true })
55
+ ], ECSchemaRpcInterface.prototype, "getSchemaJSON", null);
56
+ exports.ECSchemaRpcInterface = ECSchemaRpcInterface;
48
57
  //# sourceMappingURL=ECSchemaRpcInterface.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ECSchemaRpcInterface.js","sourceRoot":"","sources":["../../src/ECSchemaRpcInterface.ts"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F,oDAA8E;AAG9E;;;;;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;IACI,KAAK,CAAC,aAAa,CAAC,WAA2B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAA8B,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,aAAa,CAAC,WAA2B,EAAE,WAAmB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAyB,CAAC;IACvE,CAAC;;AAlCH,oDAoCC;AAnCC,wCAAwC;AAC1B,4BAAO,GAAG,OAAO,CAAC;AAET,kCAAa,GAAG,sBAAsB,CAAC;AAChD,qCAAgB,GAAG,oBAAoB,CAAC,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\nimport { IModelRpcProps, RpcInterface, RpcManager } from \"@itwin/core-common\";\r\nimport { SchemaKeyProps, SchemaProps } from \"@itwin/ecschema-metadata\";\r\n\r\n/***\r\n * Defines an RPC interface to get schema information from a given iModel context.\r\n * Method @see getSchemaNames will return the names of schemas that live in this iModel.\r\n * The actual schemas can be downloaded using @see getSchemaJSON to get the schema as JSON props.\r\n * @internal\r\n */\r\nexport abstract class ECSchemaRpcInterface extends RpcInterface {\r\n /** The version of the RPC Interface. */\r\n public static version = \"2.0.0\";\r\n\r\n public static readonly interfaceName = \"ECSchemaRpcInterface\";\r\n public static interfaceVersion = ECSchemaRpcInterface.version;\r\n\r\n /**\r\n * Returns the RPC client instance for the frontend.\r\n * @returns A client to communicate with the RPC Interface.\r\n */\r\n public static getClient(): ECSchemaRpcInterface {\r\n return RpcManager.getClientForInterface(ECSchemaRpcInterface);\r\n }\r\n\r\n /**\r\n * Returns an array of SchemaKeyProps that exists in the current iModel context. The client can call\r\n * SchemaKey.fromJson() to parse the props to a SchemaKey.\r\n * @param tokenProps The iModelToken props that hold the information which iModel is used.\r\n * @returns An array of SchemaKeyProps.\r\n */\r\n public async getSchemaKeys(_tokenProps: IModelRpcProps): Promise<SchemaKeyProps[]> {\r\n return this.forward.apply(this, [arguments]) as Promise<SchemaKeyProps[]>;\r\n }\r\n\r\n /**\r\n * Gets the schema JSON for the current iModel context and returns the schema as a SchemaProps which\r\n * the client can call Schema.fromJson() to return a Schema.\r\n * @param tokenProps The iModelToken props that hold the information which iModel is used.\r\n * @param schemaName The name of the schema that shall be returned.\r\n * @returns The SchemaProps.\r\n */\r\n public async getSchemaJSON(_tokenProps: IModelRpcProps, _schemaName: string): Promise<SchemaProps> {\r\n return this.forward.apply(this, [arguments]) as Promise<SchemaProps>;\r\n }\r\n\r\n}\r\n"]}
1
+ {"version":3,"file":"ECSchemaRpcInterface.js","sourceRoot":"","sources":["../../src/ECSchemaRpcInterface.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;+FAG+F;AAC/F,oDAA4F;AAG5F;;;;;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;IACI,KAAK,CAAC,aAAa,CAAC,WAA2B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAA8B,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IAEI,KAAK,CAAC,aAAa,CAAC,WAA2B,EAAE,WAAmB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAyB,CAAC;IACvE,CAAC;;AAlCD,wCAAwC;AAC1B,4BAAO,GAAG,OAAO,CAAC;AAET,kCAAa,GAAG,sBAAsB,CAAC;AAChD,qCAAgB,GAAG,oBAAoB,CAAC,OAAO,CAAC;AA4B9D;IADC,0BAAY,CAAC,SAAS,CAAC,EAAE,wBAAwB,EAAE,IAAI,EAAE,CAAC;yDAG1D;AAnCH,oDAqCC","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\nimport { IModelRpcProps, RpcInterface, RpcManager, RpcOperation } from \"@itwin/core-common\";\r\nimport { SchemaKeyProps, SchemaProps } from \"@itwin/ecschema-metadata\";\r\n\r\n/***\r\n * Defines an RPC interface to get schema information from a given iModel context.\r\n * Method @see getSchemaNames will return the names of schemas that live in this iModel.\r\n * The actual schemas can be downloaded using @see getSchemaJSON to get the schema as JSON props.\r\n * @internal\r\n */\r\nexport abstract class ECSchemaRpcInterface extends RpcInterface {\r\n /** The version of the RPC Interface. */\r\n public static version = \"2.0.0\";\r\n\r\n public static readonly interfaceName = \"ECSchemaRpcInterface\";\r\n public static interfaceVersion = ECSchemaRpcInterface.version;\r\n\r\n /**\r\n * Returns the RPC client instance for the frontend.\r\n * @returns A client to communicate with the RPC Interface.\r\n */\r\n public static getClient(): ECSchemaRpcInterface {\r\n return RpcManager.getClientForInterface(ECSchemaRpcInterface);\r\n }\r\n\r\n /**\r\n * Returns an array of SchemaKeyProps that exists in the current iModel context. The client can call\r\n * SchemaKey.fromJson() to parse the props to a SchemaKey.\r\n * @param tokenProps The iModelToken props that hold the information which iModel is used.\r\n * @returns An array of SchemaKeyProps.\r\n */\r\n public async getSchemaKeys(_tokenProps: IModelRpcProps): Promise<SchemaKeyProps[]> {\r\n return this.forward.apply(this, [arguments]) as Promise<SchemaKeyProps[]>;\r\n }\r\n\r\n /**\r\n * Gets the schema JSON for the current iModel context and returns the schema as a SchemaProps which\r\n * the client can call Schema.fromJson() to return a Schema.\r\n * @param tokenProps The iModelToken props that hold the information which iModel is used.\r\n * @param schemaName The name of the schema that shall be returned.\r\n * @returns The SchemaProps.\r\n */\r\n @RpcOperation.setPolicy({ allowResponseCompression: true })\r\n public async getSchemaJSON(_tokenProps: IModelRpcProps, _schemaName: string): Promise<SchemaProps> {\r\n return this.forward.apply(this, [arguments]) as Promise<SchemaProps>;\r\n }\r\n\r\n}\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/ecschema-rpcinterface-common",
3
- "version": "3.3.0-dev.7",
3
+ "version": "3.3.0-dev.72",
4
4
  "description": "Schema RPC Interface common interface",
5
5
  "main": "lib/cjs/ecschema-rpc-interface.js",
6
6
  "typings": "lib/cjs/ecschema-rpc-interface",
@@ -20,18 +20,18 @@
20
20
  "url": "http://www.bentley.com"
21
21
  },
22
22
  "peerDependencies": {
23
- "@itwin/core-bentley": "3.3.0-dev.7",
24
- "@itwin/core-common": "3.3.0-dev.7",
25
- "@itwin/core-geometry": "3.3.0-dev.7",
26
- "@itwin/ecschema-metadata": "3.3.0-dev.7"
23
+ "@itwin/core-bentley": "3.3.0-dev.72",
24
+ "@itwin/core-common": "3.3.0-dev.72",
25
+ "@itwin/core-geometry": "3.3.0-dev.72",
26
+ "@itwin/ecschema-metadata": "3.3.0-dev.72"
27
27
  },
28
28
  "devDependencies": {
29
- "@itwin/build-tools": "3.3.0-dev.7",
30
- "@itwin/core-bentley": "3.3.0-dev.7",
31
- "@itwin/core-common": "3.3.0-dev.7",
32
- "@itwin/core-geometry": "3.3.0-dev.7",
33
- "@itwin/ecschema-metadata": "3.3.0-dev.7",
34
- "@itwin/eslint-plugin": "3.3.0-dev.7",
29
+ "@itwin/build-tools": "3.3.0-dev.72",
30
+ "@itwin/core-bentley": "3.3.0-dev.72",
31
+ "@itwin/core-common": "3.3.0-dev.72",
32
+ "@itwin/core-geometry": "3.3.0-dev.72",
33
+ "@itwin/ecschema-metadata": "3.3.0-dev.72",
34
+ "@itwin/eslint-plugin": "3.3.0-dev.72",
35
35
  "eslint": "^7.11.0",
36
36
  "rimraf": "^3.0.2",
37
37
  "typescript": "~4.4.0"