@itwin/ecschema-rpcinterface-common 3.0.0-dev.82 → 3.0.0-dev.86

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,216 +1,216 @@
1
- # Change Log - @itwin/ecschema-rpcinterface-common
2
-
3
- This log was last generated on Tue, 21 Sep 2021 21:06:40 GMT and should not be manually modified.
4
-
5
- ## 2.19.13
6
- Tue, 21 Sep 2021 21:06:40 GMT
7
-
8
- _Version update only_
9
-
10
- ## 2.19.12
11
- Wed, 15 Sep 2021 18:06:46 GMT
12
-
13
- _Version update only_
14
-
15
- ## 2.19.11
16
- Thu, 09 Sep 2021 21:04:57 GMT
17
-
18
- _Version update only_
19
-
20
- ## 2.19.10
21
- Wed, 08 Sep 2021 14:36:01 GMT
22
-
23
- _Version update only_
24
-
25
- ## 2.19.9
26
- Wed, 25 Aug 2021 15:36:01 GMT
27
-
28
- _Version update only_
29
-
30
- ## 2.19.8
31
- Mon, 23 Aug 2021 13:23:13 GMT
32
-
33
- _Version update only_
34
-
35
- ## 2.19.7
36
- Fri, 20 Aug 2021 17:47:22 GMT
37
-
38
- _Version update only_
39
-
40
- ## 2.19.6
41
- Tue, 17 Aug 2021 20:34:28 GMT
42
-
43
- _Version update only_
44
-
45
- ## 2.19.5
46
- Fri, 13 Aug 2021 21:48:08 GMT
47
-
48
- _Version update only_
49
-
50
- ## 2.19.4
51
- Thu, 12 Aug 2021 13:09:26 GMT
52
-
53
- _Version update only_
54
-
55
- ## 2.19.3
56
- Wed, 04 Aug 2021 20:29:34 GMT
57
-
58
- _Version update only_
59
-
60
- ## 2.19.2
61
- Tue, 03 Aug 2021 18:26:23 GMT
62
-
63
- _Version update only_
64
-
65
- ## 2.19.1
66
- Thu, 29 Jul 2021 20:01:11 GMT
67
-
68
- _Version update only_
69
-
70
- ## 2.19.0
71
- Mon, 26 Jul 2021 12:21:25 GMT
72
-
73
- _Version update only_
74
-
75
- ## 2.18.4
76
- Tue, 10 Aug 2021 19:35:13 GMT
77
-
78
- _Version update only_
79
-
80
- ## 2.18.3
81
- Wed, 28 Jul 2021 17:16:30 GMT
82
-
83
- _Version update only_
84
-
85
- ## 2.18.2
86
- Mon, 26 Jul 2021 16:18:31 GMT
87
-
88
- _Version update only_
89
-
90
- ## 2.18.1
91
- Fri, 16 Jul 2021 17:45:09 GMT
92
-
93
- _Version update only_
94
-
95
- ## 2.18.0
96
- Fri, 09 Jul 2021 18:11:24 GMT
97
-
98
- _Version update only_
99
-
100
- ## 2.17.3
101
- Mon, 26 Jul 2021 16:08:36 GMT
102
-
103
- _Version update only_
104
-
105
- ## 2.17.2
106
- Thu, 08 Jul 2021 15:23:00 GMT
107
-
108
- _Version update only_
109
-
110
- ## 2.17.1
111
- Fri, 02 Jul 2021 15:38:30 GMT
112
-
113
- _Version update only_
114
-
115
- ## 2.17.0
116
- Mon, 28 Jun 2021 16:20:11 GMT
117
-
118
- _Version update only_
119
-
120
- ## 2.16.10
121
- Thu, 22 Jul 2021 20:23:44 GMT
122
-
123
- _Version update only_
124
-
125
- ## 2.16.9
126
- Tue, 06 Jul 2021 22:08:34 GMT
127
-
128
- _Version update only_
129
-
130
- ## 2.16.8
131
- Fri, 02 Jul 2021 17:40:46 GMT
132
-
133
- _Version update only_
134
-
135
- ## 2.16.7
136
- Mon, 28 Jun 2021 18:13:04 GMT
137
-
138
- _Version update only_
139
-
140
- ## 2.16.6
141
- Mon, 28 Jun 2021 13:12:55 GMT
142
-
143
- _Version update only_
144
-
145
- ## 2.16.5
146
- Fri, 25 Jun 2021 16:03:01 GMT
147
-
148
- _Version update only_
149
-
150
- ## 2.16.4
151
- Wed, 23 Jun 2021 17:09:07 GMT
152
-
153
- _Version update only_
154
-
155
- ## 2.16.3
156
- Wed, 16 Jun 2021 20:29:32 GMT
157
-
158
- _Version update only_
159
-
160
- ## 2.16.2
161
- Thu, 03 Jun 2021 18:08:11 GMT
162
-
163
- _Version update only_
164
-
165
- ## 2.16.1
166
- Thu, 27 May 2021 20:04:22 GMT
167
-
168
- _Version update only_
169
-
170
- ## 2.16.0
171
- Mon, 24 May 2021 15:58:39 GMT
172
-
173
- ### Updates
174
-
175
- - ECSchema Rpc Interface changes
176
- - Simple implementation of a schema rpc locater
177
-
178
- ## 2.15.6
179
- Wed, 26 May 2021 15:55:18 GMT
180
-
181
- _Version update only_
182
-
183
- ## 2.15.5
184
- Thu, 20 May 2021 15:06:26 GMT
185
-
186
- _Version update only_
187
-
188
- ## 2.15.4
189
- Tue, 18 May 2021 21:59:07 GMT
190
-
191
- _Version update only_
192
-
193
- ## 2.15.3
194
- Mon, 17 May 2021 13:31:37 GMT
195
-
196
- _Version update only_
197
-
198
- ## 2.15.2
199
- Wed, 12 May 2021 18:08:13 GMT
200
-
201
- _Version update only_
202
-
203
- ## 2.15.1
204
- Wed, 05 May 2021 13:18:31 GMT
205
-
206
- ### Updates
207
-
208
- - "Fixed interface name to avoid duplicate naming"
209
-
210
- ## 2.15.0
211
- Fri, 30 Apr 2021 12:36:58 GMT
212
-
213
- ### Updates
214
-
215
- - schema rpc interface initial release
216
-
1
+ # Change Log - @itwin/ecschema-rpcinterface-common
2
+
3
+ This log was last generated on Tue, 21 Sep 2021 21:06:40 GMT and should not be manually modified.
4
+
5
+ ## 2.19.13
6
+ Tue, 21 Sep 2021 21:06:40 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 2.19.12
11
+ Wed, 15 Sep 2021 18:06:46 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 2.19.11
16
+ Thu, 09 Sep 2021 21:04:57 GMT
17
+
18
+ _Version update only_
19
+
20
+ ## 2.19.10
21
+ Wed, 08 Sep 2021 14:36:01 GMT
22
+
23
+ _Version update only_
24
+
25
+ ## 2.19.9
26
+ Wed, 25 Aug 2021 15:36:01 GMT
27
+
28
+ _Version update only_
29
+
30
+ ## 2.19.8
31
+ Mon, 23 Aug 2021 13:23:13 GMT
32
+
33
+ _Version update only_
34
+
35
+ ## 2.19.7
36
+ Fri, 20 Aug 2021 17:47:22 GMT
37
+
38
+ _Version update only_
39
+
40
+ ## 2.19.6
41
+ Tue, 17 Aug 2021 20:34:28 GMT
42
+
43
+ _Version update only_
44
+
45
+ ## 2.19.5
46
+ Fri, 13 Aug 2021 21:48:08 GMT
47
+
48
+ _Version update only_
49
+
50
+ ## 2.19.4
51
+ Thu, 12 Aug 2021 13:09:26 GMT
52
+
53
+ _Version update only_
54
+
55
+ ## 2.19.3
56
+ Wed, 04 Aug 2021 20:29:34 GMT
57
+
58
+ _Version update only_
59
+
60
+ ## 2.19.2
61
+ Tue, 03 Aug 2021 18:26:23 GMT
62
+
63
+ _Version update only_
64
+
65
+ ## 2.19.1
66
+ Thu, 29 Jul 2021 20:01:11 GMT
67
+
68
+ _Version update only_
69
+
70
+ ## 2.19.0
71
+ Mon, 26 Jul 2021 12:21:25 GMT
72
+
73
+ _Version update only_
74
+
75
+ ## 2.18.4
76
+ Tue, 10 Aug 2021 19:35:13 GMT
77
+
78
+ _Version update only_
79
+
80
+ ## 2.18.3
81
+ Wed, 28 Jul 2021 17:16:30 GMT
82
+
83
+ _Version update only_
84
+
85
+ ## 2.18.2
86
+ Mon, 26 Jul 2021 16:18:31 GMT
87
+
88
+ _Version update only_
89
+
90
+ ## 2.18.1
91
+ Fri, 16 Jul 2021 17:45:09 GMT
92
+
93
+ _Version update only_
94
+
95
+ ## 2.18.0
96
+ Fri, 09 Jul 2021 18:11:24 GMT
97
+
98
+ _Version update only_
99
+
100
+ ## 2.17.3
101
+ Mon, 26 Jul 2021 16:08:36 GMT
102
+
103
+ _Version update only_
104
+
105
+ ## 2.17.2
106
+ Thu, 08 Jul 2021 15:23:00 GMT
107
+
108
+ _Version update only_
109
+
110
+ ## 2.17.1
111
+ Fri, 02 Jul 2021 15:38:30 GMT
112
+
113
+ _Version update only_
114
+
115
+ ## 2.17.0
116
+ Mon, 28 Jun 2021 16:20:11 GMT
117
+
118
+ _Version update only_
119
+
120
+ ## 2.16.10
121
+ Thu, 22 Jul 2021 20:23:44 GMT
122
+
123
+ _Version update only_
124
+
125
+ ## 2.16.9
126
+ Tue, 06 Jul 2021 22:08:34 GMT
127
+
128
+ _Version update only_
129
+
130
+ ## 2.16.8
131
+ Fri, 02 Jul 2021 17:40:46 GMT
132
+
133
+ _Version update only_
134
+
135
+ ## 2.16.7
136
+ Mon, 28 Jun 2021 18:13:04 GMT
137
+
138
+ _Version update only_
139
+
140
+ ## 2.16.6
141
+ Mon, 28 Jun 2021 13:12:55 GMT
142
+
143
+ _Version update only_
144
+
145
+ ## 2.16.5
146
+ Fri, 25 Jun 2021 16:03:01 GMT
147
+
148
+ _Version update only_
149
+
150
+ ## 2.16.4
151
+ Wed, 23 Jun 2021 17:09:07 GMT
152
+
153
+ _Version update only_
154
+
155
+ ## 2.16.3
156
+ Wed, 16 Jun 2021 20:29:32 GMT
157
+
158
+ _Version update only_
159
+
160
+ ## 2.16.2
161
+ Thu, 03 Jun 2021 18:08:11 GMT
162
+
163
+ _Version update only_
164
+
165
+ ## 2.16.1
166
+ Thu, 27 May 2021 20:04:22 GMT
167
+
168
+ _Version update only_
169
+
170
+ ## 2.16.0
171
+ Mon, 24 May 2021 15:58:39 GMT
172
+
173
+ ### Updates
174
+
175
+ - ECSchema Rpc Interface changes
176
+ - Simple implementation of a schema rpc locater
177
+
178
+ ## 2.15.6
179
+ Wed, 26 May 2021 15:55:18 GMT
180
+
181
+ _Version update only_
182
+
183
+ ## 2.15.5
184
+ Thu, 20 May 2021 15:06:26 GMT
185
+
186
+ _Version update only_
187
+
188
+ ## 2.15.4
189
+ Tue, 18 May 2021 21:59:07 GMT
190
+
191
+ _Version update only_
192
+
193
+ ## 2.15.3
194
+ Mon, 17 May 2021 13:31:37 GMT
195
+
196
+ _Version update only_
197
+
198
+ ## 2.15.2
199
+ Wed, 12 May 2021 18:08:13 GMT
200
+
201
+ _Version update only_
202
+
203
+ ## 2.15.1
204
+ Wed, 05 May 2021 13:18:31 GMT
205
+
206
+ ### Updates
207
+
208
+ - "Fixed interface name to avoid duplicate naming"
209
+
210
+ ## 2.15.0
211
+ Fri, 30 Apr 2021 12:36:58 GMT
212
+
213
+ ### Updates
214
+
215
+ - schema rpc interface initial release
216
+
package/LICENSE.md CHANGED
@@ -1,9 +1,9 @@
1
- # MIT License
2
-
3
- Copyright © 2017-2021 Bentley Systems, Incorporated. All rights reserved.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ # MIT License
2
+
3
+ Copyright © 2017-2021 Bentley Systems, Incorporated. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # iTwin.js Schema RPC Interface
2
-
3
- Copyright © Bentley Systems, Incorporated. All rights reserved.
4
-
5
- This package contains the Schema RPC Interface that can be used to connect to a backend with the Schema RPC Interface Impl, available in the @itwin/ecschema-rpcinterface-impl package.
1
+ # iTwin.js Schema RPC Interface
2
+
3
+ Copyright © Bentley Systems, Incorporated. All rights reserved.
4
+
5
+ This package contains the Schema RPC Interface that can be used to connect to a backend with the Schema RPC Interface Impl, available in the @itwin/ecschema-rpcinterface-impl package.
@@ -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":["/*---------------------------------------------------------------------------------------------\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 } 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 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 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,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 +1 @@
1
- {"version":3,"file":"ECSchemaRpcLocater.js","sourceRoot":"","sources":["../../src/ECSchemaRpcLocater.ts"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F,gEAA0H;AAE1H,iEAA8D;AAE9D;;;GAGG;AACH,MAAa,kBAAkB;IAG7B,YAAY,KAAqB,IAAI,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC;IAE1D;;;;;MAKE;IACK,KAAK,CAAC,SAAS,CAAmB,SAAoB,EAAE,SAA0B,EAAE,OAAsB;QAC/G,MAAM,UAAU,GAAG,MAAM,2CAAoB,CAAC,SAAS,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;QACpG,MAAM,MAAM,GAAG,MAAM,0BAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,IAAI,IAAI,iCAAa,EAAE,CAAC,CAAC;QACjF,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE;YAC1E,OAAO,MAAW,CAAC;SACpB;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;;MAKE;IACK,aAAa,CAAmB,SAAoB,EAAE,SAA0B,EAAE,OAAsB;QAC7G,MAAM,UAAU,GAAG,2CAAoB,CAAC,SAAS,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,KAAkB,EAAE,EAAE;YACxH,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,0BAAM,CAAC,YAAY,CAAC,UAAU,EAAE,OAAO,IAAI,IAAI,iCAAa,EAAE,CAAC,CAAC;QAC/E,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE;YAC1E,OAAO,MAAW,CAAC;SACpB;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AApCD,gDAoCC","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 { ISchemaLocater, Schema, SchemaContext, SchemaKey, SchemaMatchType, SchemaProps } from \"@itwin/ecschema-metadata\";\nimport { IModelRpcProps } from \"@itwin/core-common\";\nimport { ECSchemaRpcInterface } from \"./ECSchemaRpcInterface\";\n\n/**\n * Defines a schema locater that retrieves schemas using an RPC interface.\n * @alpha\n */\nexport class ECSchemaRpcLocater implements ISchemaLocater {\n public readonly token: IModelRpcProps;\n\n constructor(token: IModelRpcProps) { this.token = token; }\n\n /**\n * Attempts to get a schema from the schema rpc locater. Yields undefined if no matching schema is found.\n * @param schemaKey Key to look up\n * @param matchType How to match key against candidate schemas\n * @param context The SchemaContext that will control the lifetime of the schema and holds the schema's references, if they exist.\n */\n public async getSchema<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType, context: SchemaContext): Promise<T | undefined> {\n const schemaJson = await ECSchemaRpcInterface.getClient().getSchemaJSON(this.token, schemaKey.name);\n const schema = await Schema.fromJson(schemaJson, context || new SchemaContext());\n if (schema !== undefined && schema.schemaKey.matches(schemaKey, matchType)) {\n return schema as T;\n }\n return undefined;\n }\n\n /**\n * Attempts to get a schema from the schema rpc locater. Yields undefined if no matching schema is found.\n * @param schemaKey Key to look up\n * @param matchType How to match key against candidate schemas\n * @param context The SchemaContext that will control the lifetime of the schema and holds the schema's references, if they exist.\n */\n public getSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType, context: SchemaContext): T | undefined {\n const schemaJson = ECSchemaRpcInterface.getClient().getSchemaJSON(this.token, schemaKey.name).then((props: SchemaProps) => {\n return props;\n });\n const schema = Schema.fromJsonSync(schemaJson, context || new SchemaContext());\n if (schema !== undefined && schema.schemaKey.matches(schemaKey, matchType)) {\n return schema as T;\n }\n return undefined;\n }\n}\n"]}
1
+ {"version":3,"file":"ECSchemaRpcLocater.js","sourceRoot":"","sources":["../../src/ECSchemaRpcLocater.ts"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F,gEAA0H;AAE1H,iEAA8D;AAE9D;;;GAGG;AACH,MAAa,kBAAkB;IAG7B,YAAY,KAAqB,IAAI,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC;IAE1D;;;;;MAKE;IACK,KAAK,CAAC,SAAS,CAAmB,SAAoB,EAAE,SAA0B,EAAE,OAAsB;QAC/G,MAAM,UAAU,GAAG,MAAM,2CAAoB,CAAC,SAAS,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;QACpG,MAAM,MAAM,GAAG,MAAM,0BAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,IAAI,IAAI,iCAAa,EAAE,CAAC,CAAC;QACjF,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE;YAC1E,OAAO,MAAW,CAAC;SACpB;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;;MAKE;IACK,aAAa,CAAmB,SAAoB,EAAE,SAA0B,EAAE,OAAsB;QAC7G,MAAM,UAAU,GAAG,2CAAoB,CAAC,SAAS,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,KAAkB,EAAE,EAAE;YACxH,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,0BAAM,CAAC,YAAY,CAAC,UAAU,EAAE,OAAO,IAAI,IAAI,iCAAa,EAAE,CAAC,CAAC;QAC/E,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE;YAC1E,OAAO,MAAW,CAAC;SACpB;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AApCD,gDAoCC","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 { ISchemaLocater, Schema, SchemaContext, SchemaKey, SchemaMatchType, SchemaProps } from \"@itwin/ecschema-metadata\";\r\nimport { IModelRpcProps } from \"@itwin/core-common\";\r\nimport { ECSchemaRpcInterface } from \"./ECSchemaRpcInterface\";\r\n\r\n/**\r\n * Defines a schema locater that retrieves schemas using an RPC interface.\r\n * @alpha\r\n */\r\nexport class ECSchemaRpcLocater implements ISchemaLocater {\r\n public readonly token: IModelRpcProps;\r\n\r\n constructor(token: IModelRpcProps) { this.token = token; }\r\n\r\n /**\r\n * Attempts to get a schema from the schema rpc locater. Yields undefined if no matching schema is found.\r\n * @param schemaKey Key to look up\r\n * @param matchType How to match key against candidate schemas\r\n * @param context The SchemaContext that will control the lifetime of the schema and holds the schema's references, if they exist.\r\n */\r\n public async getSchema<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType, context: SchemaContext): Promise<T | undefined> {\r\n const schemaJson = await ECSchemaRpcInterface.getClient().getSchemaJSON(this.token, schemaKey.name);\r\n const schema = await Schema.fromJson(schemaJson, context || new SchemaContext());\r\n if (schema !== undefined && schema.schemaKey.matches(schemaKey, matchType)) {\r\n return schema as T;\r\n }\r\n return undefined;\r\n }\r\n\r\n /**\r\n * Attempts to get a schema from the schema rpc locater. Yields undefined if no matching schema is found.\r\n * @param schemaKey Key to look up\r\n * @param matchType How to match key against candidate schemas\r\n * @param context The SchemaContext that will control the lifetime of the schema and holds the schema's references, if they exist.\r\n */\r\n public getSchemaSync<T extends Schema>(schemaKey: SchemaKey, matchType: SchemaMatchType, context: SchemaContext): T | undefined {\r\n const schemaJson = ECSchemaRpcInterface.getClient().getSchemaJSON(this.token, schemaKey.name).then((props: SchemaProps) => {\r\n return props;\r\n });\r\n const schema = Schema.fromJsonSync(schemaJson, context || new SchemaContext());\r\n if (schema !== undefined && schema.schemaKey.matches(schemaKey, matchType)) {\r\n return schema as T;\r\n }\r\n return undefined;\r\n }\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ecschema-rpc-interface.js","sourceRoot":"","sources":["../../src/ecschema-rpc-interface.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F,yDAAuC;AACvC,uDAAqC","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*--------------------------------------------------------------------------------------------*/\nexport * from \"./ECSchemaRpcInterface\";\nexport * from \"./ECSchemaRpcLocater\";\n"]}
1
+ {"version":3,"file":"ecschema-rpc-interface.js","sourceRoot":"","sources":["../../src/ecschema-rpc-interface.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F,yDAAuC;AACvC,uDAAqC","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\nexport * from \"./ECSchemaRpcInterface\";\r\nexport * from \"./ECSchemaRpcLocater\";\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/ecschema-rpcinterface-common",
3
- "version": "3.0.0-dev.82",
3
+ "version": "3.0.0-dev.86",
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,20 +20,20 @@
20
20
  "url": "http://www.bentley.com"
21
21
  },
22
22
  "peerDependencies": {
23
- "@itwin/core-bentley": "3.0.0-dev.82",
24
- "@itwin/ecschema-metadata": "3.0.0-dev.82",
25
- "@itwin/core-geometry": "3.0.0-dev.82",
26
- "@itwin/core-common": "3.0.0-dev.82",
27
- "@bentley/itwin-client": "3.0.0-dev.82"
23
+ "@itwin/core-bentley": "3.0.0-dev.86",
24
+ "@itwin/ecschema-metadata": "3.0.0-dev.86",
25
+ "@itwin/core-geometry": "3.0.0-dev.86",
26
+ "@itwin/core-common": "3.0.0-dev.86",
27
+ "@bentley/itwin-client": "3.0.0-dev.86"
28
28
  },
29
29
  "devDependencies": {
30
- "@itwin/core-bentley": "3.0.0-dev.82",
31
- "@itwin/build-tools": "3.0.0-dev.82",
32
- "@itwin/ecschema-metadata": "3.0.0-dev.82",
33
- "@itwin/eslint-plugin": "3.0.0-dev.82",
34
- "@itwin/core-geometry": "3.0.0-dev.82",
35
- "@itwin/core-common": "3.0.0-dev.82",
36
- "@bentley/itwin-client": "3.0.0-dev.82",
30
+ "@itwin/core-bentley": "3.0.0-dev.86",
31
+ "@itwin/build-tools": "3.0.0-dev.86",
32
+ "@itwin/ecschema-metadata": "3.0.0-dev.86",
33
+ "@itwin/eslint-plugin": "3.0.0-dev.86",
34
+ "@itwin/core-geometry": "3.0.0-dev.86",
35
+ "@itwin/core-common": "3.0.0-dev.86",
36
+ "@bentley/itwin-client": "3.0.0-dev.86",
37
37
  "eslint": "^7.11.0",
38
38
  "rimraf": "^3.0.2",
39
39
  "typescript": "~4.4.0"