@itwin/ecschema-rpcinterface-common 4.8.0-dev.23 → 4.8.0-dev.25
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,16 @@
|
|
|
1
1
|
# Change Log - @itwin/ecschema-rpcinterface-common
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 11 Jul 2024 15:26:20 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 4.7.5
|
|
6
|
+
Thu, 11 Jul 2024 15:24:55 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 4.7.4
|
|
11
|
+
Mon, 01 Jul 2024 14:06:24 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
4
14
|
|
|
5
15
|
## 4.7.3
|
|
6
16
|
Thu, 27 Jun 2024 21:09:02 GMT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ECSchemaRpcInterface.d.ts","sourceRoot":"","sources":["../../src/ECSchemaRpcInterface.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"ECSchemaRpcInterface.d.ts","sourceRoot":"","sources":["../../src/ECSchemaRpcInterface.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAqD,MAAM,oBAAoB,CAAC;AACrH,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;IAEU,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
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -45,4 +51,10 @@ exports.ECSchemaRpcInterface = ECSchemaRpcInterface;
|
|
|
45
51
|
ECSchemaRpcInterface.version = "2.0.0";
|
|
46
52
|
ECSchemaRpcInterface.interfaceName = "ECSchemaRpcInterface";
|
|
47
53
|
ECSchemaRpcInterface.interfaceVersion = ECSchemaRpcInterface.version;
|
|
54
|
+
__decorate([
|
|
55
|
+
core_common_1.RpcOperation.allowResponseCaching(core_common_1.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
|
|
56
|
+
], ECSchemaRpcInterface.prototype, "getSchemaKeys", null);
|
|
57
|
+
__decorate([
|
|
58
|
+
core_common_1.RpcOperation.allowResponseCaching(core_common_1.RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation
|
|
59
|
+
], ECSchemaRpcInterface.prototype, "getSchemaJSON", null);
|
|
48
60
|
//# sourceMappingURL=ECSchemaRpcInterface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ECSchemaRpcInterface.js","sourceRoot":"","sources":["../../src/ECSchemaRpcInterface.ts"],"names":[],"mappings":"
|
|
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,CAAC,8CAA8C;yDAGnH;AAUY;IADZ,0BAAY,CAAC,oBAAoB,CAAC,qCAAuB,CAAC,SAAS,CAAC,CAAC,8CAA8C;yDAGnH","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, RpcResponseCacheControl } 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 { // eslint-disable-line deprecation/deprecation\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 @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation\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.allowResponseCaching(RpcResponseCacheControl.Immutable) // eslint-disable-line deprecation/deprecation\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": "4.8.0-dev.
|
|
3
|
+
"version": "4.8.0-dev.25",
|
|
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",
|
|
@@ -21,21 +21,21 @@
|
|
|
21
21
|
"url": "http://www.bentley.com"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@itwin/core-bentley": "4.8.0-dev.
|
|
25
|
-
"@itwin/core-
|
|
26
|
-
"@itwin/core-
|
|
27
|
-
"@itwin/ecschema-metadata": "4.8.0-dev.
|
|
24
|
+
"@itwin/core-bentley": "4.8.0-dev.25",
|
|
25
|
+
"@itwin/core-geometry": "4.8.0-dev.25",
|
|
26
|
+
"@itwin/core-common": "4.8.0-dev.25",
|
|
27
|
+
"@itwin/ecschema-metadata": "4.8.0-dev.25"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@itwin/eslint-plugin": "^4.0.2",
|
|
31
31
|
"eslint": "^8.56.0",
|
|
32
32
|
"rimraf": "^3.0.2",
|
|
33
33
|
"typescript": "~5.3.3",
|
|
34
|
-
"@itwin/
|
|
35
|
-
"@itwin/
|
|
36
|
-
"@itwin/core-
|
|
37
|
-
"@itwin/
|
|
38
|
-
"@itwin/
|
|
34
|
+
"@itwin/build-tools": "4.8.0-dev.25",
|
|
35
|
+
"@itwin/core-common": "4.8.0-dev.25",
|
|
36
|
+
"@itwin/core-bentley": "4.8.0-dev.25",
|
|
37
|
+
"@itwin/ecschema-metadata": "4.8.0-dev.25",
|
|
38
|
+
"@itwin/core-geometry": "4.8.0-dev.25"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "npm run -s build:cjs",
|