@itwin/core-backend 3.0.0-extension.0 → 3.0.1
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 +216 -67
- package/LICENSE.md +1 -1
- package/lib/cjs/AliCloudStorageService.d.ts +8 -2
- package/lib/cjs/AliCloudStorageService.d.ts.map +1 -1
- package/lib/cjs/AliCloudStorageService.js +4 -5
- package/lib/cjs/AliCloudStorageService.js.map +1 -1
- package/lib/cjs/BackendHubAccess.d.ts +9 -9
- package/lib/cjs/BackendHubAccess.d.ts.map +1 -1
- package/lib/cjs/BackendHubAccess.js.map +1 -1
- package/lib/cjs/BriefcaseManager.js +4 -3
- package/lib/cjs/BriefcaseManager.js.map +1 -1
- package/lib/cjs/Category.d.ts +1 -1
- package/lib/cjs/Category.d.ts.map +1 -1
- package/lib/cjs/Category.js +6 -6
- package/lib/cjs/Category.js.map +1 -1
- package/lib/cjs/ChangeSummaryManager.d.ts.map +1 -1
- package/lib/cjs/ChangeSummaryManager.js +2 -0
- package/lib/cjs/ChangeSummaryManager.js.map +1 -1
- package/lib/cjs/ChangedElementsDb.d.ts +2 -0
- package/lib/cjs/ChangedElementsDb.d.ts.map +1 -1
- package/lib/cjs/ChangedElementsDb.js +1 -1
- package/lib/cjs/ChangedElementsDb.js.map +1 -1
- package/lib/cjs/CheckpointManager.d.ts.map +1 -1
- package/lib/cjs/CheckpointManager.js +10 -7
- package/lib/cjs/CheckpointManager.js.map +1 -1
- package/lib/cjs/ClassRegistry.d.ts.map +1 -1
- package/lib/cjs/ClassRegistry.js +10 -3
- package/lib/cjs/ClassRegistry.js.map +1 -1
- package/lib/cjs/CloudStorageBackend.d.ts +2 -3
- package/lib/cjs/CloudStorageBackend.d.ts.map +1 -1
- package/lib/cjs/CloudStorageBackend.js +5 -2
- package/lib/cjs/CloudStorageBackend.js.map +1 -1
- package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
- package/lib/cjs/ConcurrentQuery.js +7 -0
- package/lib/cjs/ConcurrentQuery.js.map +1 -1
- package/lib/cjs/DevTools.d.ts +2 -2
- package/lib/cjs/DevTools.d.ts.map +1 -1
- package/lib/cjs/DevTools.js +2 -2
- package/lib/cjs/DevTools.js.map +1 -1
- package/lib/cjs/DisplayStyle.d.ts +2 -2
- package/lib/cjs/DisplayStyle.d.ts.map +1 -1
- package/lib/cjs/DisplayStyle.js +15 -47
- package/lib/cjs/DisplayStyle.js.map +1 -1
- package/lib/cjs/ECDb.d.ts +5 -9
- package/lib/cjs/ECDb.d.ts.map +1 -1
- package/lib/cjs/ECDb.js +11 -14
- package/lib/cjs/ECDb.js.map +1 -1
- package/lib/cjs/ECSchemaXmlContext.d.ts +1 -0
- package/lib/cjs/ECSchemaXmlContext.d.ts.map +1 -1
- package/lib/cjs/ECSchemaXmlContext.js +10 -4
- package/lib/cjs/ECSchemaXmlContext.js.map +1 -1
- package/lib/cjs/ECSqlStatement.d.ts +8 -8
- package/lib/cjs/ECSqlStatement.d.ts.map +1 -1
- package/lib/cjs/ECSqlStatement.js +24 -15
- package/lib/cjs/ECSqlStatement.js.map +1 -1
- package/lib/cjs/Element.d.ts +16 -16
- package/lib/cjs/Element.d.ts.map +1 -1
- package/lib/cjs/Element.js +9 -9
- package/lib/cjs/Element.js.map +1 -1
- package/lib/cjs/ElementAspect.d.ts +2 -2
- package/lib/cjs/ElementAspect.d.ts.map +1 -1
- package/lib/cjs/ElementAspect.js +2 -2
- package/lib/cjs/ElementAspect.js.map +1 -1
- package/lib/cjs/ElementGraphics.js +1 -1
- package/lib/cjs/ElementGraphics.js.map +1 -1
- package/lib/cjs/Entity.d.ts +11 -3
- package/lib/cjs/Entity.d.ts.map +1 -1
- package/lib/cjs/Entity.js +10 -2
- package/lib/cjs/Entity.js.map +1 -1
- package/lib/cjs/ExportGraphics.d.ts +1 -1
- package/lib/cjs/ExportGraphics.d.ts.map +1 -1
- package/lib/cjs/ExportGraphics.js +3 -0
- package/lib/cjs/ExportGraphics.js.map +1 -1
- package/lib/cjs/GeometrySummary.d.ts.map +1 -1
- package/lib/cjs/GeometrySummary.js +5 -2
- package/lib/cjs/GeometrySummary.js.map +1 -1
- package/lib/cjs/IModelDb.d.ts +44 -26
- package/lib/cjs/IModelDb.d.ts.map +1 -1
- package/lib/cjs/IModelDb.js +116 -44
- package/lib/cjs/IModelDb.js.map +1 -1
- package/lib/cjs/IModelHost.d.ts +40 -19
- package/lib/cjs/IModelHost.d.ts.map +1 -1
- package/lib/cjs/IModelHost.js +70 -20
- package/lib/cjs/IModelHost.js.map +1 -1
- package/lib/cjs/IModelJsFs.js +1 -1
- package/lib/cjs/IModelJsFs.js.map +1 -1
- package/lib/cjs/IpcHost.js +2 -1
- package/lib/cjs/IpcHost.js.map +1 -1
- package/lib/cjs/LocalhostIpcHost.d.ts.map +1 -1
- package/lib/cjs/LocalhostIpcHost.js +10 -3
- package/lib/cjs/LocalhostIpcHost.js.map +1 -1
- package/lib/cjs/Material.d.ts +1 -1
- package/lib/cjs/Material.d.ts.map +1 -1
- package/lib/cjs/Material.js +1 -1
- package/lib/cjs/Material.js.map +1 -1
- package/lib/cjs/Model.d.ts +4 -4
- package/lib/cjs/Model.d.ts.map +1 -1
- package/lib/cjs/Model.js +3 -3
- package/lib/cjs/Model.js.map +1 -1
- package/lib/cjs/NativeHost.d.ts +4 -22
- package/lib/cjs/NativeHost.d.ts.map +1 -1
- package/lib/cjs/NativeHost.js +4 -56
- package/lib/cjs/NativeHost.js.map +1 -1
- package/lib/cjs/Relationship.d.ts +10 -9
- package/lib/cjs/Relationship.d.ts.map +1 -1
- package/lib/cjs/Relationship.js +14 -8
- package/lib/cjs/Relationship.js.map +1 -1
- package/lib/cjs/RpcBackend.d.ts +4 -0
- package/lib/cjs/RpcBackend.d.ts.map +1 -1
- package/lib/cjs/RpcBackend.js +7 -0
- package/lib/cjs/RpcBackend.js.map +1 -1
- package/lib/cjs/SQLiteDb.js +1 -1
- package/lib/cjs/SQLiteDb.js.map +1 -1
- package/lib/cjs/ServerBasedLocks.d.ts +4 -10
- package/lib/cjs/ServerBasedLocks.d.ts.map +1 -1
- package/lib/cjs/ServerBasedLocks.js +12 -20
- package/lib/cjs/ServerBasedLocks.js.map +1 -1
- package/lib/cjs/SqliteStatement.d.ts.map +1 -1
- package/lib/cjs/SqliteStatement.js.map +1 -1
- package/lib/cjs/Texture.js +1 -1
- package/lib/cjs/Texture.js.map +1 -1
- package/lib/cjs/TxnManager.js +1 -1
- package/lib/cjs/TxnManager.js.map +1 -1
- package/lib/cjs/ViewDefinition.d.ts +11 -11
- package/lib/cjs/ViewDefinition.d.ts.map +1 -1
- package/lib/cjs/ViewDefinition.js +5 -5
- package/lib/cjs/ViewDefinition.js.map +1 -1
- package/lib/cjs/assets/Settings.schema.json +25 -0
- package/lib/cjs/core-backend.d.ts +8 -1
- package/lib/cjs/core-backend.d.ts.map +1 -1
- package/lib/cjs/core-backend.js +9 -1
- package/lib/cjs/core-backend.js.map +1 -1
- package/lib/cjs/domains/FunctionalElements.d.ts +1 -1
- package/lib/cjs/domains/FunctionalElements.d.ts.map +1 -1
- package/lib/cjs/domains/FunctionalElements.js.map +1 -1
- package/lib/cjs/domains/GenericElements.d.ts +2 -2
- package/lib/cjs/domains/GenericElements.d.ts.map +1 -1
- package/lib/cjs/domains/GenericElements.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.d.ts.map +1 -1
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.js +33 -24
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelTileRpcImpl.d.ts.map +1 -1
- package/lib/cjs/rpc-impl/IModelTileRpcImpl.js +10 -7
- package/lib/cjs/rpc-impl/IModelTileRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.d.ts.map +1 -1
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js +11 -1
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
- package/lib/cjs/rpc-impl/WipRpcImpl.d.ts.map +1 -1
- package/lib/cjs/rpc-impl/WipRpcImpl.js +3 -0
- package/lib/cjs/rpc-impl/WipRpcImpl.js.map +1 -1
- package/lib/cjs/workspace/Settings.d.ts +182 -0
- package/lib/cjs/workspace/Settings.d.ts.map +1 -0
- package/lib/cjs/workspace/Settings.js +144 -0
- package/lib/cjs/workspace/Settings.js.map +1 -0
- package/lib/cjs/workspace/SettingsSpecRegistry.d.ts +68 -0
- package/lib/cjs/workspace/SettingsSpecRegistry.d.ts.map +1 -0
- package/lib/cjs/workspace/SettingsSpecRegistry.js +122 -0
- package/lib/cjs/workspace/SettingsSpecRegistry.js.map +1 -0
- package/lib/cjs/workspace/Workspace.d.ts +306 -0
- package/lib/cjs/workspace/Workspace.d.ts.map +1 -0
- package/lib/cjs/workspace/Workspace.js +372 -0
- package/lib/cjs/workspace/Workspace.js.map +1 -0
- package/package.json +33 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,155 @@
|
|
|
1
1
|
# Change Log - @itwin/core-backend
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 24 Feb 2022 15:26:55 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 3.0.1
|
|
6
|
+
Thu, 24 Feb 2022 15:26:55 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 3.0.0
|
|
11
|
+
Mon, 24 Jan 2022 14:00:52 GMT
|
|
12
|
+
|
|
13
|
+
### Updates
|
|
14
|
+
|
|
15
|
+
- add briefcaseAlias argument to acquireNewBriefcaseId
|
|
16
|
+
- make one method to acquire both shared and exclusive locks
|
|
17
|
+
- Add GeometryClass to ExportGraphics
|
|
18
|
+
- Update SQLiteDb to public release tag
|
|
19
|
+
- initial support for cloud-based WorkspaceContainers
|
|
20
|
+
- added IModelDb.workspace
|
|
21
|
+
- improve concurrent query changes
|
|
22
|
+
- Skip full schema load that cause OOM error on node backend
|
|
23
|
+
- Do not reopen connection on schema change
|
|
24
|
+
- Remove usage-logging-client
|
|
25
|
+
- Upgrade target to ES2019
|
|
26
|
+
- Entity no longer implements EntityProps.
|
|
27
|
+
- suppress error logging during test that expect errors
|
|
28
|
+
- add test and improved concurrent query support
|
|
29
|
+
- fix flaky test
|
|
30
|
+
- Update BackendHubAccess api to use ChangesetIndexAndId
|
|
31
|
+
- Add new GeoServices class and first method to interpret WKT or complete GCS JSON."
|
|
32
|
+
- getAccessToken always returns a token
|
|
33
|
+
- Fix an exception when attempting to pull changes into a briefcase that already has all the changes.
|
|
34
|
+
- LocalhostIpcHost, display-test-app support for R/W web (via orchestrator)
|
|
35
|
+
- Added ability to convert iModel coordinates to or from any Geographic CRS
|
|
36
|
+
- rename contextId -> iTwinId
|
|
37
|
+
- Tests for solid kernel severe error exceptions.
|
|
38
|
+
- throw rather than returning status from IModelDb.saveFileProperty and IModelDb.deleteFileProperty
|
|
39
|
+
- use db.locks to release all locks
|
|
40
|
+
- rename to @itwin/core-backend
|
|
41
|
+
- export blobdaemon, blobdaemoncommandargs from imodeljs-native
|
|
42
|
+
- Log the error that we catch when v2 checkpoint fails to open
|
|
43
|
+
- use BentleyError.getErrorProps(e) instead of just logging e
|
|
44
|
+
- Introduce no-non-null-assertion lint rule.
|
|
45
|
+
- remove ClientRequestContext and its subclasses
|
|
46
|
+
- Removed config.app usage
|
|
47
|
+
- Remove deprecated APIs for 3.0.
|
|
48
|
+
- allow apps to set safety interval for reattaching deamon
|
|
49
|
+
- removed several previously-deprecated apis
|
|
50
|
+
- remove IModelWriteRpcInterface
|
|
51
|
+
- remove ClientRequestContext.current
|
|
52
|
+
- Renamed all occurrences of the term revision0 to version0.
|
|
53
|
+
- rework locks
|
|
54
|
+
- Removed NativeAppAuthorizationBackend
|
|
55
|
+
- Removed two unit tests for reproj and added one
|
|
56
|
+
- added RpcTrace
|
|
57
|
+
- Bumped dotenv and removed deprecated @types/dotenv
|
|
58
|
+
- Replaced ContextRegistry with generalized ITwinAccess interface
|
|
59
|
+
- Switching to consume new Projects-Client
|
|
60
|
+
- Renamed an iModel's parent container to iTwin
|
|
61
|
+
- Removed references to the deleted config-loader package
|
|
62
|
+
- split imodel-transformer out of imodel-backend package
|
|
63
|
+
- remove use of "any" types in SqliteStatement
|
|
64
|
+
- IModelDb.getTextureImage is async.
|
|
65
|
+
- Support for TypeDoc v0.22.7. Fix various broken docs links.
|
|
66
|
+
- only export necessary schemas during imodel transformation
|
|
67
|
+
- Improved log message when v2 checkpoint downloaded is not for the changeset requested
|
|
68
|
+
- caching options for changed elements processing
|
|
69
|
+
- Adding WebEditServer (test scenarios only for now)
|
|
70
|
+
- add persistent iModel-based settings
|
|
71
|
+
- initial implementation of Workspace and Settings
|
|
72
|
+
|
|
73
|
+
## 2.19.28
|
|
74
|
+
Wed, 12 Jan 2022 14:52:38 GMT
|
|
75
|
+
|
|
76
|
+
_Version update only_
|
|
77
|
+
|
|
78
|
+
## 2.19.27
|
|
79
|
+
Wed, 05 Jan 2022 20:07:20 GMT
|
|
80
|
+
|
|
81
|
+
_Version update only_
|
|
82
|
+
|
|
83
|
+
## 2.19.26
|
|
84
|
+
Wed, 08 Dec 2021 20:54:52 GMT
|
|
85
|
+
|
|
86
|
+
_Version update only_
|
|
87
|
+
|
|
88
|
+
## 2.19.25
|
|
89
|
+
Fri, 03 Dec 2021 20:05:49 GMT
|
|
90
|
+
|
|
91
|
+
_Version update only_
|
|
92
|
+
|
|
93
|
+
## 2.19.24
|
|
94
|
+
Mon, 29 Nov 2021 18:44:31 GMT
|
|
95
|
+
|
|
96
|
+
_Version update only_
|
|
97
|
+
|
|
98
|
+
## 2.19.23
|
|
99
|
+
Mon, 22 Nov 2021 20:41:39 GMT
|
|
100
|
+
|
|
101
|
+
_Version update only_
|
|
102
|
+
|
|
103
|
+
## 2.19.22
|
|
104
|
+
Wed, 17 Nov 2021 01:23:26 GMT
|
|
105
|
+
|
|
106
|
+
### Updates
|
|
107
|
+
|
|
108
|
+
- Avoid unnecessarily loading schemas that in extreme cases may exhaust JavaScript heap.
|
|
109
|
+
|
|
110
|
+
## 2.19.21
|
|
111
|
+
Wed, 10 Nov 2021 10:58:24 GMT
|
|
112
|
+
|
|
113
|
+
_Version update only_
|
|
114
|
+
|
|
115
|
+
## 2.19.20
|
|
116
|
+
Fri, 29 Oct 2021 16:14:22 GMT
|
|
117
|
+
|
|
118
|
+
### Updates
|
|
119
|
+
|
|
120
|
+
- Additional test for GCS reprojection
|
|
121
|
+
|
|
122
|
+
## 2.19.19
|
|
123
|
+
Mon, 25 Oct 2021 16:16:25 GMT
|
|
124
|
+
|
|
125
|
+
_Version update only_
|
|
126
|
+
|
|
127
|
+
## 2.19.18
|
|
128
|
+
Thu, 21 Oct 2021 20:59:44 GMT
|
|
129
|
+
|
|
130
|
+
### Updates
|
|
131
|
+
|
|
132
|
+
- Backport from PR#2451 enable reprojection and merge
|
|
133
|
+
|
|
134
|
+
## 2.19.17
|
|
135
|
+
Thu, 14 Oct 2021 21:19:43 GMT
|
|
136
|
+
|
|
137
|
+
_Version update only_
|
|
138
|
+
|
|
139
|
+
## 2.19.16
|
|
140
|
+
Mon, 11 Oct 2021 17:37:46 GMT
|
|
141
|
+
|
|
142
|
+
_Version update only_
|
|
143
|
+
|
|
144
|
+
## 2.19.15
|
|
145
|
+
Fri, 08 Oct 2021 16:44:23 GMT
|
|
146
|
+
|
|
147
|
+
_Version update only_
|
|
148
|
+
|
|
149
|
+
## 2.19.14
|
|
150
|
+
Fri, 01 Oct 2021 13:07:03 GMT
|
|
151
|
+
|
|
152
|
+
_Version update only_
|
|
4
153
|
|
|
5
154
|
## 2.19.13
|
|
6
155
|
Tue, 21 Sep 2021 21:06:40 GMT
|
|
@@ -85,7 +234,7 @@ Mon, 26 Jul 2021 12:21:25 GMT
|
|
|
85
234
|
|
|
86
235
|
- Reactivated test that stopped working when a previous PR for ecef dependency to geographicCRS was reverted
|
|
87
236
|
- store changesetIndex on IModelDb
|
|
88
|
-
- Better error checks when creating SpatialViewDefinition-s.
|
|
237
|
+
- Better error checks when creating SpatialViewDefinition-s.
|
|
89
238
|
- remove internal barrel-import usage
|
|
90
239
|
- throw exception when attempting to download a briefcase on top of an existing file
|
|
91
240
|
- Add case for InterpolationCurve3d
|
|
@@ -120,11 +269,11 @@ Fri, 09 Jul 2021 18:11:24 GMT
|
|
|
120
269
|
### Updates
|
|
121
270
|
|
|
122
271
|
- TemplateModelCloner now assigns a new FederationGuid for cloned element instances.
|
|
123
|
-
- Accomodated the inability to reverse Changesets when creating change summaries.
|
|
272
|
+
- Accomodated the inability to reverse Changesets when creating change summaries.
|
|
124
273
|
- fix lint issue
|
|
125
274
|
- begin api transition to changeset index rather than changeset Id
|
|
126
275
|
- Use ecef location calculated for projected iModels
|
|
127
|
-
- Push refreshes access token if necessary.
|
|
276
|
+
- Push refreshes access token if necessary.
|
|
128
277
|
- Do not reuse briefcase ids in ReadWrite workflows when using the RPC interfaces (if the briefcase was not found in the local file system)
|
|
129
278
|
- Add missing SectionDrawing properties.
|
|
130
279
|
|
|
@@ -145,7 +294,7 @@ Fri, 02 Jul 2021 15:38:31 GMT
|
|
|
145
294
|
|
|
146
295
|
### Updates
|
|
147
296
|
|
|
148
|
-
- Update to @bentley/imodeljs-native@2.17.10
|
|
297
|
+
- Update to @bentley/imodeljs-native@2.17.10
|
|
149
298
|
|
|
150
299
|
## 2.17.0
|
|
151
300
|
Mon, 28 Jun 2021 16:20:11 GMT
|
|
@@ -411,8 +560,8 @@ Thu, 28 Jan 2021 13:39:27 GMT
|
|
|
411
560
|
|
|
412
561
|
- Changed storageType from azure to azure?sas=1 for getCommandArgs function
|
|
413
562
|
- Fix brep DataProps to/from flatbuffer to account for base64 string header.
|
|
414
|
-
- Element geometry creation by brep operations.
|
|
415
|
-
- Reinstated behavior when re-opening files read-write.
|
|
563
|
+
- Element geometry creation by brep operations.
|
|
564
|
+
- Reinstated behavior when re-opening files read-write.
|
|
416
565
|
- enhance BriefcaseManager and BriefcaseDb for edit commands
|
|
417
566
|
- Improve ElementGeometry documentation.
|
|
418
567
|
- Add a check to verify, and fix, the DbGuid in the iModel if it is different than the Guid in iModelHub.
|
|
@@ -602,8 +751,8 @@ Fri, 02 Oct 2020 18:03:32 GMT
|
|
|
602
751
|
### Updates
|
|
603
752
|
|
|
604
753
|
- Update to @bentley/imodeljs-native@2.7.4
|
|
605
|
-
- Fixes to front end methods to pull, merge and push.
|
|
606
|
-
- Setup IModelHost.startup() to use proxy servers if configured/available - this is valuable for debugging agents, backends and electron applications.
|
|
754
|
+
- Fixes to front end methods to pull, merge and push.
|
|
755
|
+
- Setup IModelHost.startup() to use proxy servers if configured/available - this is valuable for debugging agents, backends and electron applications.
|
|
607
756
|
- On iOS download in background
|
|
608
757
|
- Fix ios hang issue
|
|
609
758
|
- Modify queryModelRanges to handle non geometric model errors
|
|
@@ -694,7 +843,7 @@ Thu, 20 Aug 2020 20:57:09 GMT
|
|
|
694
843
|
### Updates
|
|
695
844
|
|
|
696
845
|
- Update to imodeljs-native 2.5.0
|
|
697
|
-
- VSTS#419723: Accomodated "bad" checkpoints that may have serialized transactions preventing their use in ReadWrite cases.
|
|
846
|
+
- VSTS#419723: Accomodated "bad" checkpoints that may have serialized transactions preventing their use in ReadWrite cases.
|
|
698
847
|
- Fix for a recursive exception while closing a briefcase
|
|
699
848
|
- Added mobile oidc client
|
|
700
849
|
- Remove special code handling for mobile.
|
|
@@ -758,7 +907,7 @@ Fri, 10 Jul 2020 17:23:14 GMT
|
|
|
758
907
|
- Changes to support imodel-bridge
|
|
759
908
|
- fix spelling mistakes in Device class
|
|
760
909
|
- Fix typo in comments
|
|
761
|
-
- Setup BriefcaseDb.open() to allow profile and domain schema validation and upgrades.
|
|
910
|
+
- Setup BriefcaseDb.open() to allow profile and domain schema validation and upgrades.
|
|
762
911
|
- disallow protected operations for missing schemas marked with SchemaHasBehavior custom attribute
|
|
763
912
|
|
|
764
913
|
## 2.2.1
|
|
@@ -799,25 +948,25 @@ Thu, 28 May 2020 22:48:59 GMT
|
|
|
799
948
|
- Update to imodeljs-native 2.1.0
|
|
800
949
|
- Support for finding an ExternalSourceAspect given scope, id, and kind/hash.
|
|
801
950
|
- ApplyChangeset perf tests updated
|
|
802
|
-
- Fixed token expiry check for desktop authorization.
|
|
951
|
+
- Fixed token expiry check for desktop authorization.
|
|
803
952
|
- Download ChangeSets in chunks
|
|
804
953
|
- (1) In xy region booleans, support curved edges; (2) ExportGraphicsMeshVisitor class
|
|
805
954
|
- Add ability to convert ExportGraphicsMesh to Polyface
|
|
806
955
|
- Fixed validation of Guids (ContextId, IModelId) cached within a briefcase.
|
|
807
956
|
- Moved iModelBridgeFwk to a separate package
|
|
808
|
-
- Simplified logging for monitoring briefcase operations.
|
|
957
|
+
- Simplified logging for monitoring briefcase operations.
|
|
809
958
|
- Fix transforms for creating and querying part instance geometry in world coordinate.
|
|
810
959
|
- Fix and improvement to performance tests
|
|
811
960
|
- Added support for schema XML import to iModelJs backend via the IModelDb.importSchemaStrings method.
|
|
812
961
|
- channel rules
|
|
813
|
-
- Fixed logging usage when opening connections.
|
|
962
|
+
- Fixed logging usage when opening connections.
|
|
814
963
|
|
|
815
964
|
## 2.0.0
|
|
816
965
|
Wed, 06 May 2020 13:17:49 GMT
|
|
817
966
|
|
|
818
967
|
### Updates
|
|
819
968
|
|
|
820
|
-
- Fixed setup of UserInfo from browser clients, and more cleanups to AccessToken API.
|
|
969
|
+
- Fixed setup of UserInfo from browser clients, and more cleanups to AccessToken API.
|
|
821
970
|
- Added RivisionUtility class for debug/testing
|
|
822
971
|
- node addon 2.0.18
|
|
823
972
|
- addon 2.0.25
|
|
@@ -830,23 +979,23 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
830
979
|
- Performance tests for Applying Changesets
|
|
831
980
|
- `IModelHost.startup` is now async.
|
|
832
981
|
- `IModelHost.shutdown` is now async.
|
|
833
|
-
- Refined checks for briefcase id, and fixed failing integration tests.
|
|
982
|
+
- Refined checks for briefcase id, and fixed failing integration tests.
|
|
834
983
|
- Product Backlog Item 276268: Deleting the briefcase cache if the cache version is incorrect should not attempt to delete the root directory.
|
|
835
984
|
- Setup initialization of briefcase cache for offline workflows. (VSTS#286489)
|
|
836
|
-
- Monitor progress of downloading briefcases, ability to cancel download of briefcases.
|
|
985
|
+
- Monitor progress of downloading briefcases, ability to cancel download of briefcases.
|
|
837
986
|
- Move briefcase-specific events into BriefcaseIModelDb subclass
|
|
838
987
|
- Fixed param when calling logger so that it is a function as the logger expects
|
|
839
|
-
- Setup a common cache locaton for iModel.js, with briefcases taking up a sub-folder.
|
|
988
|
+
- Setup a common cache locaton for iModel.js, with briefcases taking up a sub-folder.
|
|
840
989
|
- Changed ChangeSets download API
|
|
841
990
|
- Added unlink for file handler
|
|
842
991
|
- Update UlasClient tests to send more detailed feature log data
|
|
843
992
|
- react to renaming of imodeljs-clients-backend to backend-itwin-client
|
|
844
993
|
- apply changeset performance tests with local datasets
|
|
845
|
-
- BriefcaseManager.delete should work in offline scenarios.
|
|
994
|
+
- BriefcaseManager.delete should work in offline scenarios.
|
|
846
995
|
- Remove deprecated members of SectionLocation and downgrade to alpha pending refactor.
|
|
847
996
|
- Support for progress/cancel from ios
|
|
848
997
|
- Remove deprecated ExportGraphics types etc for 2.0
|
|
849
|
-
- Updated docs.
|
|
998
|
+
- Updated docs.
|
|
850
999
|
- IModelDb.findByKey replaces IModelDb.find
|
|
851
1000
|
- Include model extents with ViewStateProps for drawing views.
|
|
852
1001
|
- Remove deprecated APIs; see NextVersion.md for details.
|
|
@@ -867,29 +1016,29 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
867
1016
|
- Introduce the BriefcaseIModelDb class, make IModelDb abstract.
|
|
868
1017
|
- Cleaned up unused async-s in BriefcaseManager
|
|
869
1018
|
- Avoided casting of BriefcaseProps to IModelRpcProps.
|
|
870
|
-
- Added NativeApp.deleteBriefcase, avoided authorization exceptions when offline.
|
|
1019
|
+
- Added NativeApp.deleteBriefcase, avoided authorization exceptions when offline.
|
|
871
1020
|
- Move briefcase property from IModelDb --> BriefcaseIModelDb
|
|
872
1021
|
- BriefcaseId is now an enum instead of a class
|
|
873
1022
|
- Rename BriefcaseId --> ReservedBriefcaseId, introduce BriefcaseId type
|
|
874
|
-
- VSTS#297017: Update cached briefcase information if changes were applied.
|
|
875
|
-
- Refactored NativeApp API and RPC interfaces. This continues to be WIP.
|
|
876
|
-
- Removed the call to simultaneously download and open the briefcase at the backend. This should be done in two separate steps henceforth. The download must be done with BriefcaseManager, and the open is now a synchronous call in BriefcaseDb.
|
|
877
|
-
- Added DownloadBriefcaseOptions and OpenBriefcaseOptions as parameters to the download/open calls for a briefcase.
|
|
1023
|
+
- VSTS#297017: Update cached briefcase information if changes were applied.
|
|
1024
|
+
- Refactored NativeApp API and RPC interfaces. This continues to be WIP.
|
|
1025
|
+
- Removed the call to simultaneously download and open the briefcase at the backend. This should be done in two separate steps henceforth. The download must be done with BriefcaseManager, and the open is now a synchronous call in BriefcaseDb.
|
|
1026
|
+
- Added DownloadBriefcaseOptions and OpenBriefcaseOptions as parameters to the download/open calls for a briefcase.
|
|
878
1027
|
- Removed BriefcaseDb.create
|
|
879
|
-
- Setup ability to use NativeApp.openBriefcase() in offline scenarios.
|
|
1028
|
+
- Setup ability to use NativeApp.openBriefcase() in offline scenarios.
|
|
880
1029
|
- fixed flaky test
|
|
881
|
-
- VSTS#217447, 162382: Cleanups to implementation of downloading/opening/discovering briefcases in native applications (WIP).
|
|
1030
|
+
- VSTS#217447, 162382: Cleanups to implementation of downloading/opening/discovering briefcases in native applications (WIP).
|
|
882
1031
|
- do not throw exception in NativeAppBackend.startup()
|
|
883
|
-
- VSTS#296110: Setup a way to close briefcases when the native application is offline.
|
|
1032
|
+
- VSTS#296110: Setup a way to close briefcases when the native application is offline.
|
|
884
1033
|
- Move concurrencyControl from IModelDb to BriefcaseIModelDb
|
|
885
1034
|
- Renamed OIDC constructs for consistency; Removed SAML support.
|
|
886
1035
|
- Add support for password-protecting snapshot iModels
|
|
887
1036
|
- Fixed typo for ElementAspect perf tests
|
|
888
|
-
- VSTS#217447, VSTS#162382: Reinstated option to open briefcases with SyncMode = PullOnly.
|
|
1037
|
+
- VSTS#217447, VSTS#162382: Reinstated option to open briefcases with SyncMode = PullOnly.
|
|
889
1038
|
- Add purge dir method to iModelJsFs
|
|
890
1039
|
- react to creation of new clients packages from imodeljs-clients
|
|
891
1040
|
- ; substitute current date for feature usage without any set start/end dates
|
|
892
|
-
- Removed deprecated utilities.
|
|
1041
|
+
- Removed deprecated utilities.
|
|
893
1042
|
- enforce opening Snapshots readonly through StandaloneDb
|
|
894
1043
|
- Remove the deprecated Entity.clone method
|
|
895
1044
|
- Adjusted calls to some node addon changes (ECUtils removed)
|
|
@@ -901,13 +1050,13 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
901
1050
|
- Add FileNameResolver class
|
|
902
1051
|
- Move snapshot methods out of IModelDb and into new SnapshotIModelDb class.
|
|
903
1052
|
- Add TemplateModelCloner to place instances of a template model
|
|
904
|
-
- Renamed TestOidcClient and related constructs for consistency.
|
|
1053
|
+
- Renamed TestOidcClient and related constructs for consistency.
|
|
905
1054
|
- Add IModelDb.tryPrepareStatement
|
|
906
|
-
- Fixed usage logging.
|
|
1055
|
+
- Fixed usage logging.
|
|
907
1056
|
- fix failing ulas tests due to invalid featureId
|
|
908
1057
|
- update ULAS test logging & feedback
|
|
909
1058
|
- Update UlasUtilities to support exception-throwing native functions
|
|
910
|
-
- Use standalone briefcases for PullOnly cases.
|
|
1059
|
+
- Use standalone briefcases for PullOnly cases.
|
|
911
1060
|
|
|
912
1061
|
## 1.14.1
|
|
913
1062
|
Wed, 22 Apr 2020 19:04:00 GMT
|
|
@@ -922,7 +1071,7 @@ Tue, 31 Mar 2020 15:44:19 GMT
|
|
|
922
1071
|
### Updates
|
|
923
1072
|
|
|
924
1073
|
- Update to addon 1.14.1
|
|
925
|
-
- Fixed downloading of files using https/streaming to resolve when the filestream is closed instead of when the input stream is exhausted.
|
|
1074
|
+
- Fixed downloading of files using https/streaming to resolve when the filestream is closed instead of when the input stream is exhausted.
|
|
926
1075
|
- Add handling for invalid predecessor ids to IModelTransformer
|
|
927
1076
|
- Accomodate updated imodeljs-native ULAS functions
|
|
928
1077
|
|
|
@@ -937,7 +1086,7 @@ Wed, 12 Feb 2020 17:45:50 GMT
|
|
|
937
1086
|
### Updates
|
|
938
1087
|
|
|
939
1088
|
- Fix IGeometry roundtripping issue through ECSql. Fix insert/update binary properties for Element Aspect.
|
|
940
|
-
- Separated out routines to download and open briefcases.
|
|
1089
|
+
- Separated out routines to download and open briefcases.
|
|
941
1090
|
- bulk mode
|
|
942
1091
|
- Consolidated sign-in for integration tests
|
|
943
1092
|
- bulkmode
|
|
@@ -948,7 +1097,7 @@ Wed, 12 Feb 2020 17:45:50 GMT
|
|
|
948
1097
|
- Add ViewDefinition.getAuxiliaryCoordinateSystemId and ViewDefinition.setAuxiliaryCoordinateSystemId methods
|
|
949
1098
|
- Add SpatialLocationModel.insert
|
|
950
1099
|
- Add optional isPlantProjection parameter to PhysicalModel.insert
|
|
951
|
-
- VSTS#256133: Fixed issue with reopening connections if the backend crashes. Fixes to integration tests.
|
|
1100
|
+
- VSTS#256133: Fixed issue with reopening connections if the backend crashes. Fixes to integration tests.
|
|
952
1101
|
- Better documentation of OidcDesktopClient
|
|
953
1102
|
- Fixed changeset perf test by using another iModel on Hub
|
|
954
1103
|
- Add ViewDetails to ViewDefinition.
|
|
@@ -981,7 +1130,7 @@ Tue, 07 Jan 2020 19:44:01 GMT
|
|
|
981
1130
|
- Allow events to be sent from backend to frontend
|
|
982
1131
|
- Add tryGetInstance / tryGetInstanceProps methods to the Relationship class which return undefined rather than throwing an exception when a relationship is not found.
|
|
983
1132
|
- Fix webpack for ios test that were failing due to new dependencies
|
|
984
|
-
- VSTS#225894 - Allowed agents to bypass usage logging calls. These cause usage logging errors.
|
|
1133
|
+
- VSTS#225894 - Allowed agents to bypass usage logging calls. These cause usage logging errors.
|
|
985
1134
|
- Add tryGetElement / tryGetElementProps which return undefined rather than throwing an exception when an element is not found.
|
|
986
1135
|
- Add tryGetModel, tryGetModelProps, tryGetSubModel which return undefined instead of throwing exceptions when the model is not found.
|
|
987
1136
|
|
|
@@ -993,7 +1142,7 @@ Tue, 10 Dec 2019 18:08:56 GMT
|
|
|
993
1142
|
- Updated to addon 9.1.3
|
|
994
1143
|
- Added AliCloud tile cache service
|
|
995
1144
|
- Added framework to run imodeljs-backend test on ios using appcenter
|
|
996
|
-
- Setup OidcDesktopClient for Electron use cases.
|
|
1145
|
+
- Setup OidcDesktopClient for Electron use cases.
|
|
997
1146
|
- fix warnings from static analysis
|
|
998
1147
|
- Enabling testing code for updating LR aspects after fix in native side.
|
|
999
1148
|
- Addressing typo in a couple of members, making them match the schema properly.
|
|
@@ -1049,9 +1198,9 @@ Mon, 30 Sep 2019 22:28:48 GMT
|
|
|
1049
1198
|
### Updates
|
|
1050
1199
|
|
|
1051
1200
|
- added support for blank IModelConnections
|
|
1052
|
-
- Setup a way to supply authorization through the backend for frontend requests.
|
|
1053
|
-
- Error log when downloading change sets should include iModelId for context.
|
|
1054
|
-
- Fixed the iModelHub client to properly dispose a file handle after upload to the iModelHub.
|
|
1201
|
+
- Setup a way to supply authorization through the backend for frontend requests.
|
|
1202
|
+
- Error log when downloading change sets should include iModelId for context.
|
|
1203
|
+
- Fixed the iModelHub client to properly dispose a file handle after upload to the iModelHub.
|
|
1055
1204
|
- Add IModelDb.Elements.hasSubModel
|
|
1056
1205
|
- Make ExternalSourceAspect.checksum optional
|
|
1057
1206
|
- Clear statement cache after schema import
|
|
@@ -1066,14 +1215,14 @@ Tue, 10 Sep 2019 12:09:49 GMT
|
|
|
1066
1215
|
|
|
1067
1216
|
### Updates
|
|
1068
1217
|
|
|
1069
|
-
- Setup a way to supply authorization through the backend for frontend requests.
|
|
1070
|
-
- Allow attaching change cache file before change summary extraction.
|
|
1071
|
-
- Added change summary test, and improved doc a little.
|
|
1218
|
+
- Setup a way to supply authorization through the backend for frontend requests.
|
|
1219
|
+
- Allow attaching change cache file before change summary extraction.
|
|
1220
|
+
- Added change summary test, and improved doc a little.
|
|
1072
1221
|
- Add minimum brep size option to IModelDb.exportGraphics
|
|
1073
1222
|
- FunctionalSchema.importSchema is now deprecated.
|
|
1074
1223
|
- Add support for GeometricModel.geometryGuid for detecting whether tiles for a model can be reused across versions
|
|
1075
1224
|
- Added performance logging for tile upload
|
|
1076
|
-
- IModelConnection.close() for read-only connections should not close the Db at the backend; Opening an iModel with SyncModel.PullAndPush() multiple times (without disposing it) must reuse the briefcase.
|
|
1225
|
+
- IModelConnection.close() for read-only connections should not close the Db at the backend; Opening an iModel with SyncModel.PullAndPush() multiple times (without disposing it) must reuse the briefcase.
|
|
1077
1226
|
- Add method to create view with camera
|
|
1078
1227
|
- Fixed misleading logging output in tile upload
|
|
1079
1228
|
|
|
@@ -1083,14 +1232,14 @@ Tue, 13 Aug 2019 20:25:53 GMT
|
|
|
1083
1232
|
### Updates
|
|
1084
1233
|
|
|
1085
1234
|
- Allow custom tile cache services.
|
|
1086
|
-
- Always acquire a briefcase when creating a new backend instance for PullAndPush workflows.
|
|
1087
|
-
- Added Change Summary integration test, and fixed documentation.
|
|
1235
|
+
- Always acquire a briefcase when creating a new backend instance for PullAndPush workflows.
|
|
1236
|
+
- Added Change Summary integration test, and fixed documentation.
|
|
1088
1237
|
- Trial code for tile upload errors
|
|
1089
1238
|
- Fixed changeset performance tests
|
|
1090
1239
|
- Tile upload logging.
|
|
1091
1240
|
- Mark ExportGraphics API as public
|
|
1092
1241
|
- Support for gzip compression of tiles
|
|
1093
|
-
- Fixed issue with opening iModels with names that are invalid on Unix or Windows.
|
|
1242
|
+
- Fixed issue with opening iModels with names that are invalid on Unix or Windows.
|
|
1094
1243
|
- Add IModelDb.isSnapshot
|
|
1095
1244
|
- Tile upload error catching.
|
|
1096
1245
|
- Azure tile upload logging
|
|
@@ -1102,7 +1251,7 @@ Wed, 24 Jul 2019 11:47:26 GMT
|
|
|
1102
1251
|
### Updates
|
|
1103
1252
|
|
|
1104
1253
|
- Added option to restrict tile cache URLs by client IP address.
|
|
1105
|
-
- Apply change sets at the backend in a non-blocking worker thread.
|
|
1254
|
+
- Apply change sets at the backend in a non-blocking worker thread.
|
|
1106
1255
|
- Add ElementAspect handler methods
|
|
1107
1256
|
- When deleting a parent element, make sure there are onDelete/onDeleted callbacks for child elements
|
|
1108
1257
|
- Add support for linework to IModelDb.exportGraphics
|
|
@@ -1120,19 +1269,19 @@ Mon, 01 Jul 2019 19:04:29 GMT
|
|
|
1120
1269
|
|
|
1121
1270
|
### Updates
|
|
1122
1271
|
|
|
1123
|
-
- Open fixes when briefcase requires merges.
|
|
1272
|
+
- Open fixes when briefcase requires merges.
|
|
1124
1273
|
- Catch tile upload errors.
|
|
1125
|
-
- Setting up briefcase is always from an older checkpoint.
|
|
1274
|
+
- Setting up briefcase is always from an older checkpoint.
|
|
1126
1275
|
- Add materialId, subCategory to ExportGraphicsInfo
|
|
1127
|
-
- Fix crash in getViewThumbnail for odd number of bytes
|
|
1276
|
+
- Fix crash in getViewThumbnail for odd number of bytes
|
|
1128
1277
|
- Adding relationship class for GraphicalElement3dRepresentsElement.
|
|
1129
1278
|
- Initial implementation of the LinearReferencing typescript domain
|
|
1130
1279
|
- Adding domain classes for all relatinships in the LinearReferencing schema.
|
|
1131
1280
|
- Exporting relationships module.
|
|
1132
|
-
- Fixes to opening iModel-s ReadWrite from mutiple IModelConnection-s.
|
|
1133
|
-
- Fixed issues with deleting briefcases if there were errors with preparing briefcases.
|
|
1281
|
+
- Fixes to opening iModel-s ReadWrite from mutiple IModelConnection-s.
|
|
1282
|
+
- Fixed issues with deleting briefcases if there were errors with preparing briefcases.
|
|
1134
1283
|
- Add a new method `forceLoadSchemas` to `IModelJsNative.ECPresentationManager`.
|
|
1135
|
-
- Introduced AsyncMutex - a utility to run async blocks of code in sequence.
|
|
1284
|
+
- Introduced AsyncMutex - a utility to run async blocks of code in sequence.
|
|
1136
1285
|
- Properly document ModelSelector.models and CategorySelector.categories as Id64String arrays
|
|
1137
1286
|
- Made `insertElement` not return Id64.invalid, throws error instead
|
|
1138
1287
|
- Update to TypeScript 3.5
|
|
@@ -1143,7 +1292,7 @@ Mon, 03 Jun 2019 18:09:39 GMT
|
|
|
1143
1292
|
|
|
1144
1293
|
### Updates
|
|
1145
1294
|
|
|
1146
|
-
- Migrated agent applications to the newer client
|
|
1295
|
+
- Migrated agent applications to the newer client
|
|
1147
1296
|
- RPC system now accepts only basic values (primitives, "interface" objects, and binary).
|
|
1148
1297
|
- Switched from iModelHub Project API to Context API
|
|
1149
1298
|
- Fix bug in IModelDb.createSnapshotFromSeed
|
|
@@ -1191,12 +1340,12 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
|
1191
1340
|
- Cleanup old imodelbank references
|
|
1192
1341
|
- Add InformationRecordModel.insert, GroupModel.insert
|
|
1193
1342
|
- Introduce LoggerCategory enum to advertise logger categories used by this package.
|
|
1194
|
-
- Limited maximum cache size of the backend PromiseMemoizer.
|
|
1343
|
+
- Limited maximum cache size of the backend PromiseMemoizer.
|
|
1195
1344
|
- Missing dependency on node-report
|
|
1196
|
-
- Fixed memoization problem that caused an endless stream of 404 NotFound errors.
|
|
1345
|
+
- Fixed memoization problem that caused an endless stream of 404 NotFound errors.
|
|
1197
1346
|
- Reinstated old version of OidcAgentClient
|
|
1198
|
-
- Unauthorized open requests should cause a more obvious error.
|
|
1199
|
-
- Improved performance logging, especially of IModelDb open operations; ChangeSets are merged one-by-one to prevent hogging the event loop.
|
|
1347
|
+
- Unauthorized open requests should cause a more obvious error.
|
|
1348
|
+
- Improved performance logging, especially of IModelDb open operations; ChangeSets are merged one-by-one to prevent hogging the event loop.
|
|
1200
1349
|
- Memoization fix when opening iModels in shared, read-only mode .
|
|
1201
1350
|
- Fixed setup of application version.
|
|
1202
1351
|
- Updated Element CRUD perf tests
|
|
@@ -1206,7 +1355,7 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
|
1206
1355
|
- Remove ElementPropertyFormatter, IModelDb.getElementPropertiesForDisplay (use presentation rules instead)
|
|
1207
1356
|
- Remove StandaloneIModelRpcImpl
|
|
1208
1357
|
- Fix for Render Gradient.Symb test
|
|
1209
|
-
- Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
|
|
1358
|
+
- Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
|
|
1210
1359
|
- Add IModelDb.createSnapshot/openSnapshot/closeSnapshot, deprecate IModelDb.createStandalone/openStandalone/closeStandalone
|
|
1211
1360
|
- Moved IModelJsExpressServer class into a new package (@itwin/express-server).
|
|
1212
1361
|
- Simplified tile caching IModelHost config and removed dev flags. Allow
|
|
@@ -1233,7 +1382,7 @@ Wed, 06 Mar 2019 15:41:22 GMT
|
|
|
1233
1382
|
- Changes package.json to include api-extractor and adds api-extractor.json
|
|
1234
1383
|
- Use new buildIModelJsBuild script
|
|
1235
1384
|
- AxisAlignedBox and ElementAlignedBox are now typed to Range3d rather than classes
|
|
1236
|
-
- Moved AzureFileHandler, IOSAzureFileHandler, UrlFileHandler and the iModelHub tests to the imodeljs-clients-backend package. This removes the dependency of imodeljs-clients on the "fs" module, and turns it into a browser only package.
|
|
1385
|
+
- Moved AzureFileHandler, IOSAzureFileHandler, UrlFileHandler and the iModelHub tests to the imodeljs-clients-backend package. This removes the dependency of imodeljs-clients on the "fs" module, and turns it into a browser only package.
|
|
1237
1386
|
- Clone methods are no longer generic
|
|
1238
1387
|
- Remove unneeded typedoc plugin dependency
|
|
1239
1388
|
- Added spatial <-> cartographic methods that check/use the geographic coordinate system before using ecef location.
|
|
@@ -1278,8 +1427,8 @@ Mon, 14 Jan 2019 23:09:10 GMT
|
|
|
1278
1427
|
|
|
1279
1428
|
### Updates
|
|
1280
1429
|
|
|
1281
|
-
- More logging of HTTP requests, and enabled use of fiddler for backend diagnostics.
|
|
1282
|
-
- Removed IModelDb's cache of accessToken. For long running operations like AutoPush, the user must explicitly supply an IAccessTokenManager to keep the token current.
|
|
1430
|
+
- More logging of HTTP requests, and enabled use of fiddler for backend diagnostics.
|
|
1431
|
+
- Removed IModelDb's cache of accessToken. For long running operations like AutoPush, the user must explicitly supply an IAccessTokenManager to keep the token current.
|
|
1283
1432
|
- Renamed RequestProxy->RequestHost. Allowed applications to configure proxy server with HTTPS_PROXY env.
|
|
1284
1433
|
- Add backend TextureAPI and accompanying test
|
|
1285
1434
|
|
|
@@ -1384,7 +1533,7 @@ Mon, 03 Dec 2018 18:52:58 GMT
|
|
|
1384
1533
|
|
|
1385
1534
|
### Updates
|
|
1386
1535
|
|
|
1387
|
-
- More information logged from BriefcaseManager.\nFixed deletion/cleanup of invalid briefcases.\nAdded OIDC support for simpleviewtest application.
|
|
1536
|
+
- More information logged from BriefcaseManager.\nFixed deletion/cleanup of invalid briefcases.\nAdded OIDC support for simpleviewtest application.
|
|
1388
1537
|
- Add ElementRefersToElements.insert
|
|
1389
1538
|
- Fixed front end integration tests.
|
|
1390
1539
|
- Document the intended purpose of IModelJsExpressServer within a deployment environment.
|
|
@@ -1453,11 +1602,11 @@ Thu, 08 Nov 2018 17:59:20 GMT
|
|
|
1453
1602
|
|
|
1454
1603
|
- Fix JSON representation of DisplayStyle.
|
|
1455
1604
|
- Add IModelImporter as a base class for utility methods needed by all importers
|
|
1456
|
-
- Removed assertion when deleting a memoized open call.
|
|
1605
|
+
- Removed assertion when deleting a memoized open call.
|
|
1457
1606
|
- Add more methods to IModelImporter
|
|
1458
1607
|
- Fix snapping test
|
|
1459
1608
|
- OIDC related enhancments (WIP).
|
|
1460
|
-
- Re-enabled several backend integration tests.
|
|
1609
|
+
- Re-enabled several backend integration tests.
|
|
1461
1610
|
- Refactor analysis-importer to use IModelImporter
|
|
1462
1611
|
- Updated to TypeScript 3.1
|
|
1463
1612
|
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MIT License
|
|
2
2
|
|
|
3
|
-
Copyright © 2017-
|
|
3
|
+
Copyright © 2017-2022 Bentley Systems, Incorporated. All rights reserved.
|
|
4
4
|
|
|
5
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
6
|
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { CloudStorageContainerDescriptor, CloudStorageContainerUrl, CloudStorageProvider } from "@itwin/core-common";
|
|
2
|
-
import { CloudStorageService,
|
|
2
|
+
import { CloudStorageService, CloudStorageUploadOptions } from "./CloudStorageBackend";
|
|
3
|
+
/** @beta */
|
|
4
|
+
export interface AliCloudStorageServiceCredentials {
|
|
5
|
+
region: string;
|
|
6
|
+
accessKeyId: string;
|
|
7
|
+
accessKeySecret: string;
|
|
8
|
+
}
|
|
3
9
|
/** @beta */
|
|
4
10
|
export declare class AliCloudStorageService extends CloudStorageService {
|
|
5
11
|
private _client;
|
|
6
12
|
id: CloudStorageProvider;
|
|
7
|
-
constructor(credentials:
|
|
13
|
+
constructor(credentials: AliCloudStorageServiceCredentials);
|
|
8
14
|
obtainContainerUrl(id: CloudStorageContainerDescriptor, expiry: Date, _clientIp?: string): CloudStorageContainerUrl;
|
|
9
15
|
listContainer(name: string, marker: string, count: number): Promise<string[]>;
|
|
10
16
|
upload(container: string, name: string, data: Uint8Array, options?: CloudStorageUploadOptions): Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AliCloudStorageService.d.ts","sourceRoot":"","sources":["../../src/AliCloudStorageService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AliCloudStorageService.d.ts","sourceRoot":"","sources":["../../src/AliCloudStorageService.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,+BAA+B,EAAE,wBAAwB,EAAE,oBAAoB,EAAe,MAAM,oBAAoB,CAAC;AAClI,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAEvF,YAAY;AACZ,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACzB;AAuBD,YAAY;AACZ,qBAAa,sBAAuB,SAAQ,mBAAmB;IAC7D,OAAO,CAAC,OAAO,CAAM;IAEd,EAAE,uBAAiC;gBAEvB,WAAW,EAAE,iCAAiC;IAM1D,kBAAkB,CAAC,EAAE,EAAE,+BAA+B,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,wBAAwB;IAuB7G,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAM7E,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC;CA4B7H"}
|
|
@@ -7,6 +7,7 @@ exports.AliCloudStorageService = void 0;
|
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
8
|
const stream_1 = require("stream");
|
|
9
9
|
const zlib = require("zlib");
|
|
10
|
+
const core_bentley_1 = require("@itwin/core-bentley");
|
|
10
11
|
const core_common_1 = require("@itwin/core-common");
|
|
11
12
|
const CloudStorageBackend_1 = require("./CloudStorageBackend");
|
|
12
13
|
/** @beta */
|
|
@@ -14,11 +15,7 @@ class AliCloudStorageService extends CloudStorageBackend_1.CloudStorageService {
|
|
|
14
15
|
constructor(credentials) {
|
|
15
16
|
super();
|
|
16
17
|
this.id = core_common_1.CloudStorageProvider.AliCloud;
|
|
17
|
-
this._client = new OSS(
|
|
18
|
-
region: "oss-cn-hangzhou",
|
|
19
|
-
accessKeyId: credentials.account,
|
|
20
|
-
accessKeySecret: credentials.accessKey,
|
|
21
|
-
});
|
|
18
|
+
this._client = new OSS(credentials);
|
|
22
19
|
}
|
|
23
20
|
obtainContainerUrl(id, expiry, _clientIp) {
|
|
24
21
|
const now = new Date().getTime();
|
|
@@ -26,6 +23,8 @@ class AliCloudStorageService extends CloudStorageBackend_1.CloudStorageService {
|
|
|
26
23
|
expires: expiry.getTime() - now,
|
|
27
24
|
};
|
|
28
25
|
this._client.useBucket(id.name);
|
|
26
|
+
if (undefined === id.resource)
|
|
27
|
+
throw new core_common_1.IModelError(core_bentley_1.BentleyStatus.ERROR, "Attribute 'resource' on CloudStorageContainerDescriptor object is undefined.");
|
|
29
28
|
const url = {
|
|
30
29
|
descriptor: this.makeDescriptor(id),
|
|
31
30
|
valid: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AliCloudStorageService.js","sourceRoot":"","sources":["../../src/AliCloudStorageService.ts"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F,mCAA+C;AAC/C,6BAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"AliCloudStorageService.js","sourceRoot":"","sources":["../../src/AliCloudStorageService.ts"],"names":[],"mappings":"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","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 { PassThrough, Readable } from \"stream\";\r\nimport * as zlib from \"zlib\";\r\nimport { BentleyStatus } from \"@itwin/core-bentley\";\r\nimport { CloudStorageContainerDescriptor, CloudStorageContainerUrl, CloudStorageProvider, IModelError } from \"@itwin/core-common\";\r\nimport { CloudStorageService, CloudStorageUploadOptions } from \"./CloudStorageBackend\";\r\n\r\n/** @beta */\r\nexport interface AliCloudStorageServiceCredentials {\r\n region: string;\r\n accessKeyId: string;\r\n accessKeySecret: string;\r\n}\r\n\r\ndeclare class OSS {\r\n constructor(params: AliCloudStorageServiceCredentials)\r\n public useBucket(name: string): void;\r\n public signatureUrl(name: string, policy: OSS.SignatureUrlOptions): string;\r\n public list(params: { marker: string, \"max-keys\": number }, arg2: {}): Promise<{ objects?: Array<{ name: string }> }>;\r\n public putBucket(name: string): Promise<void>;\r\n public putBucketCORS(name: string, params: Array<{ allowedOrigin: string, allowedMethod: string[], allowedHeader: string }>): Promise<void>;\r\n public putStream(name: string, source: Readable, options: OSS.PutStreamOptions): Promise<void>;\r\n}\r\n\r\ndeclare namespace OSS { // eslint-disable-line no-redeclare\r\n interface SignatureUrlOptions {\r\n expires: number;\r\n }\r\n\r\n interface PutStreamOptions {\r\n mime: string;\r\n headers: { [index: string]: string };\r\n }\r\n}\r\n\r\n/** @beta */\r\nexport class AliCloudStorageService extends CloudStorageService {\r\n private _client: OSS;\r\n\r\n public id = CloudStorageProvider.AliCloud;\r\n\r\n public constructor(credentials: AliCloudStorageServiceCredentials) {\r\n super();\r\n\r\n this._client = new OSS(credentials);\r\n }\r\n\r\n public obtainContainerUrl(id: CloudStorageContainerDescriptor, expiry: Date, _clientIp?: string): CloudStorageContainerUrl {\r\n const now = new Date().getTime();\r\n\r\n const policy: OSS.SignatureUrlOptions = {\r\n expires: expiry.getTime() - now,\r\n };\r\n\r\n this._client.useBucket(id.name);\r\n\r\n if (undefined === id.resource)\r\n throw new IModelError(BentleyStatus.ERROR, \"Attribute 'resource' on CloudStorageContainerDescriptor object is undefined.\");\r\n\r\n const url: CloudStorageContainerUrl = {\r\n descriptor: this.makeDescriptor(id),\r\n valid: 0,\r\n expires: expiry.getTime(),\r\n url: this._client.signatureUrl(id.resource, policy),\r\n bound: true,\r\n };\r\n\r\n return url;\r\n }\r\n\r\n public async listContainer(name: string, marker: string, count: number): Promise<string[]> {\r\n this._client.useBucket(name);\r\n const query = await this._client.list({ marker, \"max-keys\": count }, {});\r\n return query.objects ? query.objects.map((o) => o.name) : [];\r\n }\r\n\r\n public async upload(container: string, name: string, data: Uint8Array, options?: CloudStorageUploadOptions): Promise<string> {\r\n await this._client.putBucket(container);\r\n await this._client.putBucketCORS(container, [{ allowedOrigin: \"*\", allowedMethod: [\"GET\", \"POST\", \"PUT\", \"DELETE\", \"HEAD\"], allowedHeader: \"*\" }]);\r\n this._client.useBucket(container);\r\n\r\n const dataStream = new PassThrough();\r\n dataStream.end(data);\r\n\r\n let source: Readable;\r\n\r\n const putOptions = {\r\n mime: (options && options.type) ? options.type : \"application/octet-stream\",\r\n headers: {\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n \"Cache-Control\": (options && options.cacheControl) ? options.cacheControl : \"private, max-age=31536000, immutable\",\r\n },\r\n } as OSS.PutStreamOptions;\r\n\r\n if (options && options.contentEncoding === \"gzip\") {\r\n (putOptions.headers as any)[\"Content-Encoding\"] = options.contentEncoding;\r\n const compressor = zlib.createGzip();\r\n source = dataStream.pipe(compressor);\r\n } else {\r\n source = dataStream;\r\n }\r\n await this._client.putStream(name, source, putOptions);\r\n return \"\";\r\n }\r\n}\r\n"]}
|