@itwin/core-backend 4.0.0-dev.23 → 4.0.0-dev.28
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 +71 -66
- package/lib/cjs/BriefcaseManager.js +13 -19
- package/lib/cjs/BriefcaseManager.js.map +1 -1
- package/lib/cjs/ChangeSummaryManager.js +6 -7
- package/lib/cjs/ChangeSummaryManager.js.map +1 -1
- package/lib/cjs/CheckpointManager.js +3 -4
- package/lib/cjs/CheckpointManager.js.map +1 -1
- package/lib/cjs/ClassRegistry.js +1 -2
- package/lib/cjs/ClassRegistry.js.map +1 -1
- package/lib/cjs/CloudSqlite.js +1 -1
- package/lib/cjs/CloudSqlite.js.map +1 -1
- package/lib/cjs/CloudStorageBackend.js +5 -8
- package/lib/cjs/CloudStorageBackend.js.map +1 -1
- package/lib/cjs/CustomViewState3dCreator.js +2 -2
- package/lib/cjs/CustomViewState3dCreator.js.map +1 -1
- package/lib/cjs/DisplayStyle.js +8 -11
- package/lib/cjs/DisplayStyle.js.map +1 -1
- package/lib/cjs/ECDb.js +2 -4
- package/lib/cjs/ECDb.js.map +1 -1
- package/lib/cjs/Element.js +13 -21
- package/lib/cjs/Element.js.map +1 -1
- package/lib/cjs/ElementTreeWalker.js +2 -2
- package/lib/cjs/ElementTreeWalker.js.map +1 -1
- package/lib/cjs/GeoCoordConfig.js +1 -1
- package/lib/cjs/GeoCoordConfig.js.map +1 -1
- package/lib/cjs/HubMock.js +3 -5
- package/lib/cjs/HubMock.js.map +1 -1
- package/lib/cjs/IModelDb.d.ts +15 -1
- package/lib/cjs/IModelDb.d.ts.map +1 -1
- package/lib/cjs/IModelDb.js +44 -59
- package/lib/cjs/IModelDb.js.map +1 -1
- package/lib/cjs/IModelHost.js +15 -23
- package/lib/cjs/IModelHost.js.map +1 -1
- package/lib/cjs/IModelJsFs.js +2 -3
- package/lib/cjs/IModelJsFs.js.map +1 -1
- package/lib/cjs/IpcHost.js +11 -13
- package/lib/cjs/IpcHost.js.map +1 -1
- package/lib/cjs/LocalHub.js +11 -16
- package/lib/cjs/LocalHub.js.map +1 -1
- package/lib/cjs/LocalhostIpcHost.js +3 -5
- package/lib/cjs/LocalhostIpcHost.js.map +1 -1
- package/lib/cjs/Material.js +1 -2
- package/lib/cjs/Material.js.map +1 -1
- package/lib/cjs/NativeHost.js +3 -6
- package/lib/cjs/NativeHost.js.map +1 -1
- package/lib/cjs/SQLiteDb.js +2 -4
- package/lib/cjs/SQLiteDb.js.map +1 -1
- package/lib/cjs/TileStorage.js +4 -7
- package/lib/cjs/TileStorage.js.map +1 -1
- package/lib/cjs/rpc/tracing.js +1 -2
- package/lib/cjs/rpc/tracing.js.map +1 -1
- package/lib/cjs/rpc/web/request.js +1 -2
- package/lib/cjs/rpc/web/request.js.map +1 -1
- package/lib/cjs/rpc/web/response.js +1 -2
- package/lib/cjs/rpc/web/response.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.js +1 -2
- package/lib/cjs/rpc-impl/IModelReadRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/IModelTileRpcImpl.js +4 -7
- package/lib/cjs/rpc-impl/IModelTileRpcImpl.js.map +1 -1
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js +6 -8
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
- package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js +1 -2
- package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -1
- package/lib/cjs/workspace/Settings.js +1 -2
- package/lib/cjs/workspace/Settings.js.map +1 -1
- package/lib/cjs/workspace/SettingsSchemas.js +3 -4
- package/lib/cjs/workspace/SettingsSchemas.js.map +1 -1
- package/lib/cjs/workspace/Workspace.js +15 -21
- package/lib/cjs/workspace/Workspace.js.map +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,11 @@ Wed, 08 Feb 2023 14:58:39 GMT
|
|
|
19
19
|
- Element.toJSON should not include undefined values for userLabel or federationGuid
|
|
20
20
|
- allow passing a custom schema read context to IModelDb.importSchemas
|
|
21
21
|
|
|
22
|
+
## 3.5.6
|
|
23
|
+
Fri, 24 Feb 2023 16:02:47 GMT
|
|
24
|
+
|
|
25
|
+
_Version update only_
|
|
26
|
+
|
|
22
27
|
## 3.5.5
|
|
23
28
|
Thu, 26 Jan 2023 22:53:27 GMT
|
|
24
29
|
|
|
@@ -513,7 +518,7 @@ Mon, 26 Jul 2021 12:21:25 GMT
|
|
|
513
518
|
|
|
514
519
|
- Reactivated test that stopped working when a previous PR for ecef dependency to geographicCRS was reverted
|
|
515
520
|
- store changesetIndex on IModelDb
|
|
516
|
-
- Better error checks when creating SpatialViewDefinition-s.
|
|
521
|
+
- Better error checks when creating SpatialViewDefinition-s.
|
|
517
522
|
- remove internal barrel-import usage
|
|
518
523
|
- throw exception when attempting to download a briefcase on top of an existing file
|
|
519
524
|
- Add case for InterpolationCurve3d
|
|
@@ -548,11 +553,11 @@ Fri, 09 Jul 2021 18:11:24 GMT
|
|
|
548
553
|
### Updates
|
|
549
554
|
|
|
550
555
|
- TemplateModelCloner now assigns a new FederationGuid for cloned element instances.
|
|
551
|
-
- Accomodated the inability to reverse Changesets when creating change summaries.
|
|
556
|
+
- Accomodated the inability to reverse Changesets when creating change summaries.
|
|
552
557
|
- fix lint issue
|
|
553
558
|
- begin api transition to changeset index rather than changeset Id
|
|
554
559
|
- Use ecef location calculated for projected iModels
|
|
555
|
-
- Push refreshes access token if necessary.
|
|
560
|
+
- Push refreshes access token if necessary.
|
|
556
561
|
- Do not reuse briefcase ids in ReadWrite workflows when using the RPC interfaces (if the briefcase was not found in the local file system)
|
|
557
562
|
- Add missing SectionDrawing properties.
|
|
558
563
|
|
|
@@ -573,7 +578,7 @@ Fri, 02 Jul 2021 15:38:31 GMT
|
|
|
573
578
|
|
|
574
579
|
### Updates
|
|
575
580
|
|
|
576
|
-
- Update to @bentley/imodeljs-native@2.17.10
|
|
581
|
+
- Update to @bentley/imodeljs-native@2.17.10
|
|
577
582
|
|
|
578
583
|
## 2.17.0
|
|
579
584
|
Mon, 28 Jun 2021 16:20:11 GMT
|
|
@@ -839,8 +844,8 @@ Thu, 28 Jan 2021 13:39:27 GMT
|
|
|
839
844
|
|
|
840
845
|
- Changed storageType from azure to azure?sas=1 for getCommandArgs function
|
|
841
846
|
- Fix brep DataProps to/from flatbuffer to account for base64 string header.
|
|
842
|
-
- Element geometry creation by brep operations.
|
|
843
|
-
- Reinstated behavior when re-opening files read-write.
|
|
847
|
+
- Element geometry creation by brep operations.
|
|
848
|
+
- Reinstated behavior when re-opening files read-write.
|
|
844
849
|
- enhance BriefcaseManager and BriefcaseDb for edit commands
|
|
845
850
|
- Improve ElementGeometry documentation.
|
|
846
851
|
- Add a check to verify, and fix, the DbGuid in the iModel if it is different than the Guid in iModelHub.
|
|
@@ -1030,8 +1035,8 @@ Fri, 02 Oct 2020 18:03:32 GMT
|
|
|
1030
1035
|
### Updates
|
|
1031
1036
|
|
|
1032
1037
|
- Update to @bentley/imodeljs-native@2.7.4
|
|
1033
|
-
- Fixes to front end methods to pull, merge and push.
|
|
1034
|
-
- Setup IModelHost.startup() to use proxy servers if configured/available - this is valuable for debugging agents, backends and electron applications.
|
|
1038
|
+
- Fixes to front end methods to pull, merge and push.
|
|
1039
|
+
- Setup IModelHost.startup() to use proxy servers if configured/available - this is valuable for debugging agents, backends and electron applications.
|
|
1035
1040
|
- On iOS download in background
|
|
1036
1041
|
- Fix ios hang issue
|
|
1037
1042
|
- Modify queryModelRanges to handle non geometric model errors
|
|
@@ -1122,7 +1127,7 @@ Thu, 20 Aug 2020 20:57:09 GMT
|
|
|
1122
1127
|
### Updates
|
|
1123
1128
|
|
|
1124
1129
|
- Update to imodeljs-native 2.5.0
|
|
1125
|
-
- VSTS#419723: Accomodated "bad" checkpoints that may have serialized transactions preventing their use in ReadWrite cases.
|
|
1130
|
+
- VSTS#419723: Accomodated "bad" checkpoints that may have serialized transactions preventing their use in ReadWrite cases.
|
|
1126
1131
|
- Fix for a recursive exception while closing a briefcase
|
|
1127
1132
|
- Added mobile oidc client
|
|
1128
1133
|
- Remove special code handling for mobile.
|
|
@@ -1186,7 +1191,7 @@ Fri, 10 Jul 2020 17:23:14 GMT
|
|
|
1186
1191
|
- Changes to support imodel-bridge
|
|
1187
1192
|
- fix spelling mistakes in Device class
|
|
1188
1193
|
- Fix typo in comments
|
|
1189
|
-
- Setup BriefcaseDb.open() to allow profile and domain schema validation and upgrades.
|
|
1194
|
+
- Setup BriefcaseDb.open() to allow profile and domain schema validation and upgrades.
|
|
1190
1195
|
- disallow protected operations for missing schemas marked with SchemaHasBehavior custom attribute
|
|
1191
1196
|
|
|
1192
1197
|
## 2.2.1
|
|
@@ -1227,25 +1232,25 @@ Thu, 28 May 2020 22:48:59 GMT
|
|
|
1227
1232
|
- Update to imodeljs-native 2.1.0
|
|
1228
1233
|
- Support for finding an ExternalSourceAspect given scope, id, and kind/hash.
|
|
1229
1234
|
- ApplyChangeset perf tests updated
|
|
1230
|
-
- Fixed token expiry check for desktop authorization.
|
|
1235
|
+
- Fixed token expiry check for desktop authorization.
|
|
1231
1236
|
- Download ChangeSets in chunks
|
|
1232
1237
|
- (1) In xy region booleans, support curved edges; (2) ExportGraphicsMeshVisitor class
|
|
1233
1238
|
- Add ability to convert ExportGraphicsMesh to Polyface
|
|
1234
1239
|
- Fixed validation of Guids (ContextId, IModelId) cached within a briefcase.
|
|
1235
1240
|
- Moved iModelBridgeFwk to a separate package
|
|
1236
|
-
- Simplified logging for monitoring briefcase operations.
|
|
1241
|
+
- Simplified logging for monitoring briefcase operations.
|
|
1237
1242
|
- Fix transforms for creating and querying part instance geometry in world coordinate.
|
|
1238
1243
|
- Fix and improvement to performance tests
|
|
1239
1244
|
- Added support for schema XML import to iModelJs backend via the IModelDb.importSchemaStrings method.
|
|
1240
1245
|
- channel rules
|
|
1241
|
-
- Fixed logging usage when opening connections.
|
|
1246
|
+
- Fixed logging usage when opening connections.
|
|
1242
1247
|
|
|
1243
1248
|
## 2.0.0
|
|
1244
1249
|
Wed, 06 May 2020 13:17:49 GMT
|
|
1245
1250
|
|
|
1246
1251
|
### Updates
|
|
1247
1252
|
|
|
1248
|
-
- Fixed setup of UserInfo from browser clients, and more cleanups to AccessToken API.
|
|
1253
|
+
- Fixed setup of UserInfo from browser clients, and more cleanups to AccessToken API.
|
|
1249
1254
|
- Added RivisionUtility class for debug/testing
|
|
1250
1255
|
- node addon 2.0.18
|
|
1251
1256
|
- addon 2.0.25
|
|
@@ -1258,23 +1263,23 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
1258
1263
|
- Performance tests for Applying Changesets
|
|
1259
1264
|
- `IModelHost.startup` is now async.
|
|
1260
1265
|
- `IModelHost.shutdown` is now async.
|
|
1261
|
-
- Refined checks for briefcase id, and fixed failing integration tests.
|
|
1266
|
+
- Refined checks for briefcase id, and fixed failing integration tests.
|
|
1262
1267
|
- Product Backlog Item 276268: Deleting the briefcase cache if the cache version is incorrect should not attempt to delete the root directory.
|
|
1263
1268
|
- Setup initialization of briefcase cache for offline workflows. (VSTS#286489)
|
|
1264
|
-
- Monitor progress of downloading briefcases, ability to cancel download of briefcases.
|
|
1269
|
+
- Monitor progress of downloading briefcases, ability to cancel download of briefcases.
|
|
1265
1270
|
- Move briefcase-specific events into BriefcaseIModelDb subclass
|
|
1266
1271
|
- Fixed param when calling logger so that it is a function as the logger expects
|
|
1267
|
-
- Setup a common cache locaton for iModel.js, with briefcases taking up a sub-folder.
|
|
1272
|
+
- Setup a common cache locaton for iModel.js, with briefcases taking up a sub-folder.
|
|
1268
1273
|
- Changed ChangeSets download API
|
|
1269
1274
|
- Added unlink for file handler
|
|
1270
1275
|
- Update UlasClient tests to send more detailed feature log data
|
|
1271
1276
|
- react to renaming of imodeljs-clients-backend to backend-itwin-client
|
|
1272
1277
|
- apply changeset performance tests with local datasets
|
|
1273
|
-
- BriefcaseManager.delete should work in offline scenarios.
|
|
1278
|
+
- BriefcaseManager.delete should work in offline scenarios.
|
|
1274
1279
|
- Remove deprecated members of SectionLocation and downgrade to alpha pending refactor.
|
|
1275
1280
|
- Support for progress/cancel from ios
|
|
1276
1281
|
- Remove deprecated ExportGraphics types etc for 2.0
|
|
1277
|
-
- Updated docs.
|
|
1282
|
+
- Updated docs.
|
|
1278
1283
|
- IModelDb.findByKey replaces IModelDb.find
|
|
1279
1284
|
- Include model extents with ViewStateProps for drawing views.
|
|
1280
1285
|
- Remove deprecated APIs; see NextVersion.md for details.
|
|
@@ -1295,29 +1300,29 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
1295
1300
|
- Introduce the BriefcaseIModelDb class, make IModelDb abstract.
|
|
1296
1301
|
- Cleaned up unused async-s in BriefcaseManager
|
|
1297
1302
|
- Avoided casting of BriefcaseProps to IModelRpcProps.
|
|
1298
|
-
- Added NativeApp.deleteBriefcase, avoided authorization exceptions when offline.
|
|
1303
|
+
- Added NativeApp.deleteBriefcase, avoided authorization exceptions when offline.
|
|
1299
1304
|
- Move briefcase property from IModelDb --> BriefcaseIModelDb
|
|
1300
1305
|
- BriefcaseId is now an enum instead of a class
|
|
1301
1306
|
- Rename BriefcaseId --> ReservedBriefcaseId, introduce BriefcaseId type
|
|
1302
|
-
- VSTS#297017: Update cached briefcase information if changes were applied.
|
|
1303
|
-
- Refactored NativeApp API and RPC interfaces. This continues to be WIP.
|
|
1304
|
-
- 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.
|
|
1305
|
-
- Added DownloadBriefcaseOptions and OpenBriefcaseOptions as parameters to the download/open calls for a briefcase.
|
|
1307
|
+
- VSTS#297017: Update cached briefcase information if changes were applied.
|
|
1308
|
+
- Refactored NativeApp API and RPC interfaces. This continues to be WIP.
|
|
1309
|
+
- 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.
|
|
1310
|
+
- Added DownloadBriefcaseOptions and OpenBriefcaseOptions as parameters to the download/open calls for a briefcase.
|
|
1306
1311
|
- Removed BriefcaseDb.create
|
|
1307
|
-
- Setup ability to use NativeApp.openBriefcase() in offline scenarios.
|
|
1312
|
+
- Setup ability to use NativeApp.openBriefcase() in offline scenarios.
|
|
1308
1313
|
- fixed flaky test
|
|
1309
|
-
- VSTS#217447, 162382: Cleanups to implementation of downloading/opening/discovering briefcases in native applications (WIP).
|
|
1314
|
+
- VSTS#217447, 162382: Cleanups to implementation of downloading/opening/discovering briefcases in native applications (WIP).
|
|
1310
1315
|
- do not throw exception in NativeAppBackend.startup()
|
|
1311
|
-
- VSTS#296110: Setup a way to close briefcases when the native application is offline.
|
|
1316
|
+
- VSTS#296110: Setup a way to close briefcases when the native application is offline.
|
|
1312
1317
|
- Move concurrencyControl from IModelDb to BriefcaseIModelDb
|
|
1313
1318
|
- Renamed OIDC constructs for consistency; Removed SAML support.
|
|
1314
1319
|
- Add support for password-protecting snapshot iModels
|
|
1315
1320
|
- Fixed typo for ElementAspect perf tests
|
|
1316
|
-
- VSTS#217447, VSTS#162382: Reinstated option to open briefcases with SyncMode = PullOnly.
|
|
1321
|
+
- VSTS#217447, VSTS#162382: Reinstated option to open briefcases with SyncMode = PullOnly.
|
|
1317
1322
|
- Add purge dir method to iModelJsFs
|
|
1318
1323
|
- react to creation of new clients packages from imodeljs-clients
|
|
1319
1324
|
- ; substitute current date for feature usage without any set start/end dates
|
|
1320
|
-
- Removed deprecated utilities.
|
|
1325
|
+
- Removed deprecated utilities.
|
|
1321
1326
|
- enforce opening Snapshots readonly through StandaloneDb
|
|
1322
1327
|
- Remove the deprecated Entity.clone method
|
|
1323
1328
|
- Adjusted calls to some node addon changes (ECUtils removed)
|
|
@@ -1329,13 +1334,13 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
1329
1334
|
- Add FileNameResolver class
|
|
1330
1335
|
- Move snapshot methods out of IModelDb and into new SnapshotIModelDb class.
|
|
1331
1336
|
- Add TemplateModelCloner to place instances of a template model
|
|
1332
|
-
- Renamed TestOidcClient and related constructs for consistency.
|
|
1337
|
+
- Renamed TestOidcClient and related constructs for consistency.
|
|
1333
1338
|
- Add IModelDb.tryPrepareStatement
|
|
1334
|
-
- Fixed usage logging.
|
|
1339
|
+
- Fixed usage logging.
|
|
1335
1340
|
- fix failing ulas tests due to invalid featureId
|
|
1336
1341
|
- update ULAS test logging & feedback
|
|
1337
1342
|
- Update UlasUtilities to support exception-throwing native functions
|
|
1338
|
-
- Use standalone briefcases for PullOnly cases.
|
|
1343
|
+
- Use standalone briefcases for PullOnly cases.
|
|
1339
1344
|
|
|
1340
1345
|
## 1.14.1
|
|
1341
1346
|
Wed, 22 Apr 2020 19:04:00 GMT
|
|
@@ -1350,7 +1355,7 @@ Tue, 31 Mar 2020 15:44:19 GMT
|
|
|
1350
1355
|
### Updates
|
|
1351
1356
|
|
|
1352
1357
|
- Update to addon 1.14.1
|
|
1353
|
-
- Fixed downloading of files using https/streaming to resolve when the filestream is closed instead of when the input stream is exhausted.
|
|
1358
|
+
- Fixed downloading of files using https/streaming to resolve when the filestream is closed instead of when the input stream is exhausted.
|
|
1354
1359
|
- Add handling for invalid predecessor ids to IModelTransformer
|
|
1355
1360
|
- Accomodate updated imodeljs-native ULAS functions
|
|
1356
1361
|
|
|
@@ -1365,7 +1370,7 @@ Wed, 12 Feb 2020 17:45:50 GMT
|
|
|
1365
1370
|
### Updates
|
|
1366
1371
|
|
|
1367
1372
|
- Fix IGeometry roundtripping issue through ECSql. Fix insert/update binary properties for Element Aspect.
|
|
1368
|
-
- Separated out routines to download and open briefcases.
|
|
1373
|
+
- Separated out routines to download and open briefcases.
|
|
1369
1374
|
- bulk mode
|
|
1370
1375
|
- Consolidated sign-in for integration tests
|
|
1371
1376
|
- bulkmode
|
|
@@ -1376,7 +1381,7 @@ Wed, 12 Feb 2020 17:45:50 GMT
|
|
|
1376
1381
|
- Add ViewDefinition.getAuxiliaryCoordinateSystemId and ViewDefinition.setAuxiliaryCoordinateSystemId methods
|
|
1377
1382
|
- Add SpatialLocationModel.insert
|
|
1378
1383
|
- Add optional isPlantProjection parameter to PhysicalModel.insert
|
|
1379
|
-
- VSTS#256133: Fixed issue with reopening connections if the backend crashes. Fixes to integration tests.
|
|
1384
|
+
- VSTS#256133: Fixed issue with reopening connections if the backend crashes. Fixes to integration tests.
|
|
1380
1385
|
- Better documentation of OidcDesktopClient
|
|
1381
1386
|
- Fixed changeset perf test by using another iModel on Hub
|
|
1382
1387
|
- Add ViewDetails to ViewDefinition.
|
|
@@ -1409,7 +1414,7 @@ Tue, 07 Jan 2020 19:44:01 GMT
|
|
|
1409
1414
|
- Allow events to be sent from backend to frontend
|
|
1410
1415
|
- Add tryGetInstance / tryGetInstanceProps methods to the Relationship class which return undefined rather than throwing an exception when a relationship is not found.
|
|
1411
1416
|
- Fix webpack for ios test that were failing due to new dependencies
|
|
1412
|
-
- VSTS#225894 - Allowed agents to bypass usage logging calls. These cause usage logging errors.
|
|
1417
|
+
- VSTS#225894 - Allowed agents to bypass usage logging calls. These cause usage logging errors.
|
|
1413
1418
|
- Add tryGetElement / tryGetElementProps which return undefined rather than throwing an exception when an element is not found.
|
|
1414
1419
|
- Add tryGetModel, tryGetModelProps, tryGetSubModel which return undefined instead of throwing exceptions when the model is not found.
|
|
1415
1420
|
|
|
@@ -1421,7 +1426,7 @@ Tue, 10 Dec 2019 18:08:56 GMT
|
|
|
1421
1426
|
- Updated to addon 9.1.3
|
|
1422
1427
|
- Added AliCloud tile cache service
|
|
1423
1428
|
- Added framework to run imodeljs-backend test on ios using appcenter
|
|
1424
|
-
- Setup OidcDesktopClient for Electron use cases.
|
|
1429
|
+
- Setup OidcDesktopClient for Electron use cases.
|
|
1425
1430
|
- fix warnings from static analysis
|
|
1426
1431
|
- Enabling testing code for updating LR aspects after fix in native side.
|
|
1427
1432
|
- Addressing typo in a couple of members, making them match the schema properly.
|
|
@@ -1477,9 +1482,9 @@ Mon, 30 Sep 2019 22:28:48 GMT
|
|
|
1477
1482
|
### Updates
|
|
1478
1483
|
|
|
1479
1484
|
- added support for blank IModelConnections
|
|
1480
|
-
- Setup a way to supply authorization through the backend for frontend requests.
|
|
1481
|
-
- Error log when downloading change sets should include iModelId for context.
|
|
1482
|
-
- Fixed the iModelHub client to properly dispose a file handle after upload to the iModelHub.
|
|
1485
|
+
- Setup a way to supply authorization through the backend for frontend requests.
|
|
1486
|
+
- Error log when downloading change sets should include iModelId for context.
|
|
1487
|
+
- Fixed the iModelHub client to properly dispose a file handle after upload to the iModelHub.
|
|
1483
1488
|
- Add IModelDb.Elements.hasSubModel
|
|
1484
1489
|
- Make ExternalSourceAspect.checksum optional
|
|
1485
1490
|
- Clear statement cache after schema import
|
|
@@ -1494,14 +1499,14 @@ Tue, 10 Sep 2019 12:09:49 GMT
|
|
|
1494
1499
|
|
|
1495
1500
|
### Updates
|
|
1496
1501
|
|
|
1497
|
-
- Setup a way to supply authorization through the backend for frontend requests.
|
|
1498
|
-
- Allow attaching change cache file before change summary extraction.
|
|
1499
|
-
- Added change summary test, and improved doc a little.
|
|
1502
|
+
- Setup a way to supply authorization through the backend for frontend requests.
|
|
1503
|
+
- Allow attaching change cache file before change summary extraction.
|
|
1504
|
+
- Added change summary test, and improved doc a little.
|
|
1500
1505
|
- Add minimum brep size option to IModelDb.exportGraphics
|
|
1501
1506
|
- FunctionalSchema.importSchema is now deprecated.
|
|
1502
1507
|
- Add support for GeometricModel.geometryGuid for detecting whether tiles for a model can be reused across versions
|
|
1503
1508
|
- Added performance logging for tile upload
|
|
1504
|
-
- 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.
|
|
1509
|
+
- 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.
|
|
1505
1510
|
- Add method to create view with camera
|
|
1506
1511
|
- Fixed misleading logging output in tile upload
|
|
1507
1512
|
|
|
@@ -1511,14 +1516,14 @@ Tue, 13 Aug 2019 20:25:53 GMT
|
|
|
1511
1516
|
### Updates
|
|
1512
1517
|
|
|
1513
1518
|
- Allow custom tile cache services.
|
|
1514
|
-
- Always acquire a briefcase when creating a new backend instance for PullAndPush workflows.
|
|
1515
|
-
- Added Change Summary integration test, and fixed documentation.
|
|
1519
|
+
- Always acquire a briefcase when creating a new backend instance for PullAndPush workflows.
|
|
1520
|
+
- Added Change Summary integration test, and fixed documentation.
|
|
1516
1521
|
- Trial code for tile upload errors
|
|
1517
1522
|
- Fixed changeset performance tests
|
|
1518
1523
|
- Tile upload logging.
|
|
1519
1524
|
- Mark ExportGraphics API as public
|
|
1520
1525
|
- Support for gzip compression of tiles
|
|
1521
|
-
- Fixed issue with opening iModels with names that are invalid on Unix or Windows.
|
|
1526
|
+
- Fixed issue with opening iModels with names that are invalid on Unix or Windows.
|
|
1522
1527
|
- Add IModelDb.isSnapshot
|
|
1523
1528
|
- Tile upload error catching.
|
|
1524
1529
|
- Azure tile upload logging
|
|
@@ -1530,7 +1535,7 @@ Wed, 24 Jul 2019 11:47:26 GMT
|
|
|
1530
1535
|
### Updates
|
|
1531
1536
|
|
|
1532
1537
|
- Added option to restrict tile cache URLs by client IP address.
|
|
1533
|
-
- Apply change sets at the backend in a non-blocking worker thread.
|
|
1538
|
+
- Apply change sets at the backend in a non-blocking worker thread.
|
|
1534
1539
|
- Add ElementAspect handler methods
|
|
1535
1540
|
- When deleting a parent element, make sure there are onDelete/onDeleted callbacks for child elements
|
|
1536
1541
|
- Add support for linework to IModelDb.exportGraphics
|
|
@@ -1548,19 +1553,19 @@ Mon, 01 Jul 2019 19:04:29 GMT
|
|
|
1548
1553
|
|
|
1549
1554
|
### Updates
|
|
1550
1555
|
|
|
1551
|
-
- Open fixes when briefcase requires merges.
|
|
1556
|
+
- Open fixes when briefcase requires merges.
|
|
1552
1557
|
- Catch tile upload errors.
|
|
1553
|
-
- Setting up briefcase is always from an older checkpoint.
|
|
1558
|
+
- Setting up briefcase is always from an older checkpoint.
|
|
1554
1559
|
- Add materialId, subCategory to ExportGraphicsInfo
|
|
1555
|
-
- Fix crash in getViewThumbnail for odd number of bytes
|
|
1560
|
+
- Fix crash in getViewThumbnail for odd number of bytes
|
|
1556
1561
|
- Adding relationship class for GraphicalElement3dRepresentsElement.
|
|
1557
1562
|
- Initial implementation of the LinearReferencing typescript domain
|
|
1558
1563
|
- Adding domain classes for all relatinships in the LinearReferencing schema.
|
|
1559
1564
|
- Exporting relationships module.
|
|
1560
|
-
- Fixes to opening iModel-s ReadWrite from mutiple IModelConnection-s.
|
|
1561
|
-
- Fixed issues with deleting briefcases if there were errors with preparing briefcases.
|
|
1565
|
+
- Fixes to opening iModel-s ReadWrite from mutiple IModelConnection-s.
|
|
1566
|
+
- Fixed issues with deleting briefcases if there were errors with preparing briefcases.
|
|
1562
1567
|
- Add a new method `forceLoadSchemas` to `IModelJsNative.ECPresentationManager`.
|
|
1563
|
-
- Introduced AsyncMutex - a utility to run async blocks of code in sequence.
|
|
1568
|
+
- Introduced AsyncMutex - a utility to run async blocks of code in sequence.
|
|
1564
1569
|
- Properly document ModelSelector.models and CategorySelector.categories as Id64String arrays
|
|
1565
1570
|
- Made `insertElement` not return Id64.invalid, throws error instead
|
|
1566
1571
|
- Update to TypeScript 3.5
|
|
@@ -1571,7 +1576,7 @@ Mon, 03 Jun 2019 18:09:39 GMT
|
|
|
1571
1576
|
|
|
1572
1577
|
### Updates
|
|
1573
1578
|
|
|
1574
|
-
- Migrated agent applications to the newer client
|
|
1579
|
+
- Migrated agent applications to the newer client
|
|
1575
1580
|
- RPC system now accepts only basic values (primitives, "interface" objects, and binary).
|
|
1576
1581
|
- Switched from iModelHub Project API to Context API
|
|
1577
1582
|
- Fix bug in IModelDb.createSnapshotFromSeed
|
|
@@ -1619,12 +1624,12 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
|
1619
1624
|
- Cleanup old imodelbank references
|
|
1620
1625
|
- Add InformationRecordModel.insert, GroupModel.insert
|
|
1621
1626
|
- Introduce LoggerCategory enum to advertise logger categories used by this package.
|
|
1622
|
-
- Limited maximum cache size of the backend PromiseMemoizer.
|
|
1627
|
+
- Limited maximum cache size of the backend PromiseMemoizer.
|
|
1623
1628
|
- Missing dependency on node-report
|
|
1624
|
-
- Fixed memoization problem that caused an endless stream of 404 NotFound errors.
|
|
1629
|
+
- Fixed memoization problem that caused an endless stream of 404 NotFound errors.
|
|
1625
1630
|
- Reinstated old version of OidcAgentClient
|
|
1626
|
-
- Unauthorized open requests should cause a more obvious error.
|
|
1627
|
-
- Improved performance logging, especially of IModelDb open operations; ChangeSets are merged one-by-one to prevent hogging the event loop.
|
|
1631
|
+
- Unauthorized open requests should cause a more obvious error.
|
|
1632
|
+
- Improved performance logging, especially of IModelDb open operations; ChangeSets are merged one-by-one to prevent hogging the event loop.
|
|
1628
1633
|
- Memoization fix when opening iModels in shared, read-only mode .
|
|
1629
1634
|
- Fixed setup of application version.
|
|
1630
1635
|
- Updated Element CRUD perf tests
|
|
@@ -1634,7 +1639,7 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
|
1634
1639
|
- Remove ElementPropertyFormatter, IModelDb.getElementPropertiesForDisplay (use presentation rules instead)
|
|
1635
1640
|
- Remove StandaloneIModelRpcImpl
|
|
1636
1641
|
- Fix for Render Gradient.Symb test
|
|
1637
|
-
- Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
|
|
1642
|
+
- Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
|
|
1638
1643
|
- Add IModelDb.createSnapshot/openSnapshot/closeSnapshot, deprecate IModelDb.createStandalone/openStandalone/closeStandalone
|
|
1639
1644
|
- Moved IModelJsExpressServer class into a new package (@itwin/express-server).
|
|
1640
1645
|
- Simplified tile caching IModelHost config and removed dev flags. Allow
|
|
@@ -1661,7 +1666,7 @@ Wed, 06 Mar 2019 15:41:22 GMT
|
|
|
1661
1666
|
- Changes package.json to include api-extractor and adds api-extractor.json
|
|
1662
1667
|
- Use new buildIModelJsBuild script
|
|
1663
1668
|
- AxisAlignedBox and ElementAlignedBox are now typed to Range3d rather than classes
|
|
1664
|
-
- 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.
|
|
1669
|
+
- 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.
|
|
1665
1670
|
- Clone methods are no longer generic
|
|
1666
1671
|
- Remove unneeded typedoc plugin dependency
|
|
1667
1672
|
- Added spatial <-> cartographic methods that check/use the geographic coordinate system before using ecef location.
|
|
@@ -1706,8 +1711,8 @@ Mon, 14 Jan 2019 23:09:10 GMT
|
|
|
1706
1711
|
|
|
1707
1712
|
### Updates
|
|
1708
1713
|
|
|
1709
|
-
- More logging of HTTP requests, and enabled use of fiddler for backend diagnostics.
|
|
1710
|
-
- Removed IModelDb's cache of accessToken. For long running operations like AutoPush, the user must explicitly supply an IAccessTokenManager to keep the token current.
|
|
1714
|
+
- More logging of HTTP requests, and enabled use of fiddler for backend diagnostics.
|
|
1715
|
+
- Removed IModelDb's cache of accessToken. For long running operations like AutoPush, the user must explicitly supply an IAccessTokenManager to keep the token current.
|
|
1711
1716
|
- Renamed RequestProxy->RequestHost. Allowed applications to configure proxy server with HTTPS_PROXY env.
|
|
1712
1717
|
- Add backend TextureAPI and accompanying test
|
|
1713
1718
|
|
|
@@ -1812,7 +1817,7 @@ Mon, 03 Dec 2018 18:52:58 GMT
|
|
|
1812
1817
|
|
|
1813
1818
|
### Updates
|
|
1814
1819
|
|
|
1815
|
-
- More information logged from BriefcaseManager.\nFixed deletion/cleanup of invalid briefcases.\nAdded OIDC support for simpleviewtest application.
|
|
1820
|
+
- More information logged from BriefcaseManager.\nFixed deletion/cleanup of invalid briefcases.\nAdded OIDC support for simpleviewtest application.
|
|
1816
1821
|
- Add ElementRefersToElements.insert
|
|
1817
1822
|
- Fixed front end integration tests.
|
|
1818
1823
|
- Document the intended purpose of IModelJsExpressServer within a deployment environment.
|
|
@@ -1881,11 +1886,11 @@ Thu, 08 Nov 2018 17:59:20 GMT
|
|
|
1881
1886
|
|
|
1882
1887
|
- Fix JSON representation of DisplayStyle.
|
|
1883
1888
|
- Add IModelImporter as a base class for utility methods needed by all importers
|
|
1884
|
-
- Removed assertion when deleting a memoized open call.
|
|
1889
|
+
- Removed assertion when deleting a memoized open call.
|
|
1885
1890
|
- Add more methods to IModelImporter
|
|
1886
1891
|
- Fix snapping test
|
|
1887
1892
|
- OIDC related enhancments (WIP).
|
|
1888
|
-
- Re-enabled several backend integration tests.
|
|
1893
|
+
- Re-enabled several backend integration tests.
|
|
1889
1894
|
- Refactor analysis-importer to use IModelImporter
|
|
1890
1895
|
- Updated to TypeScript 3.1
|
|
1891
1896
|
|
|
@@ -68,7 +68,6 @@ class BriefcaseManager {
|
|
|
68
68
|
* @note usually there should only be one briefcase per iModel.
|
|
69
69
|
*/
|
|
70
70
|
static getCachedBriefcases(iModelId) {
|
|
71
|
-
var _a, _b, _c;
|
|
72
71
|
const briefcaseList = [];
|
|
73
72
|
const iModelDirs = IModelJsFs_1.IModelJsFs.readdirSync(this._cacheDir);
|
|
74
73
|
for (const iModelDir of iModelDirs) {
|
|
@@ -76,7 +75,7 @@ class BriefcaseManager {
|
|
|
76
75
|
continue;
|
|
77
76
|
const bcPath = path.join(this._cacheDir, iModelDir, this._briefcaseSubDir);
|
|
78
77
|
try {
|
|
79
|
-
if (!
|
|
78
|
+
if (!IModelJsFs_1.IModelJsFs.lstatSync(bcPath)?.isDirectory)
|
|
80
79
|
continue;
|
|
81
80
|
}
|
|
82
81
|
catch (err) {
|
|
@@ -87,7 +86,7 @@ class BriefcaseManager {
|
|
|
87
86
|
if (briefcaseName.endsWith(".bim")) {
|
|
88
87
|
try {
|
|
89
88
|
const fileName = path.join(bcPath, briefcaseName);
|
|
90
|
-
const fileSize =
|
|
89
|
+
const fileSize = IModelJsFs_1.IModelJsFs.lstatSync(fileName)?.size ?? 0;
|
|
91
90
|
const db = IModelDb_1.IModelDb.openDgnDb({ path: fileName }, core_bentley_1.OpenMode.Readonly);
|
|
92
91
|
briefcaseList.push({ fileName, iTwinId: db.getITwinId(), iModelId: db.getIModelId(), briefcaseId: db.getBriefcaseId(), changeset: db.getCurrentChangeset(), fileSize });
|
|
93
92
|
db.closeIModel();
|
|
@@ -135,12 +134,11 @@ class BriefcaseManager {
|
|
|
135
134
|
* @note *It is invalid to edit briefcases on a shared network drive* and that is a sure way to corrupt your briefcase (see https://www.sqlite.org/howtocorrupt.html)
|
|
136
135
|
*/
|
|
137
136
|
static async downloadBriefcase(arg) {
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
const fileName = (_b = arg.fileName) !== null && _b !== void 0 ? _b : this.getFileName({ ...arg, briefcaseId });
|
|
137
|
+
const briefcaseId = arg.briefcaseId ?? await this.acquireNewBriefcaseId(arg);
|
|
138
|
+
const fileName = arg.fileName ?? this.getFileName({ ...arg, briefcaseId });
|
|
141
139
|
if (IModelJsFs_1.IModelJsFs.existsSync(fileName))
|
|
142
140
|
throw new core_common_1.IModelError(core_bentley_1.IModelStatus.FileAlreadyExists, `Briefcase "${fileName}" already exists`);
|
|
143
|
-
const asOf =
|
|
141
|
+
const asOf = arg.asOf ?? core_common_1.IModelVersion.latest().toJSON();
|
|
144
142
|
const changeset = await IModelHost_1.IModelHost.hubAccess.getChangesetFromVersion({ ...arg, version: core_common_1.IModelVersion.fromJSON(asOf) });
|
|
145
143
|
const checkpoint = { ...arg, changeset };
|
|
146
144
|
try {
|
|
@@ -151,7 +149,7 @@ class BriefcaseManager {
|
|
|
151
149
|
await this.releaseBriefcase(arg.accessToken, { briefcaseId, iModelId: arg.iModelId });
|
|
152
150
|
throw error;
|
|
153
151
|
}
|
|
154
|
-
const fileSize =
|
|
152
|
+
const fileSize = IModelJsFs_1.IModelJsFs.lstatSync(fileName)?.size ?? 0;
|
|
155
153
|
const response = {
|
|
156
154
|
fileName,
|
|
157
155
|
briefcaseId,
|
|
@@ -275,14 +273,13 @@ class BriefcaseManager {
|
|
|
275
273
|
* - returns true if the delete was successful.
|
|
276
274
|
*/
|
|
277
275
|
static deleteFolderContents(folderPathname) {
|
|
278
|
-
var _a;
|
|
279
276
|
if (!IModelJsFs_1.IModelJsFs.existsSync(folderPathname))
|
|
280
277
|
return false;
|
|
281
278
|
let status = true;
|
|
282
279
|
const files = IModelJsFs_1.IModelJsFs.readdirSync(folderPathname);
|
|
283
280
|
for (const file of files) {
|
|
284
281
|
const curPath = path.join(folderPathname, file);
|
|
285
|
-
const locStatus = (
|
|
282
|
+
const locStatus = (IModelJsFs_1.IModelJsFs.lstatSync(curPath)?.isDirectory) ? BriefcaseManager.deleteFolderAndContents(curPath) : BriefcaseManager.deleteFile(curPath);
|
|
286
283
|
if (!locStatus)
|
|
287
284
|
status = false;
|
|
288
285
|
}
|
|
@@ -337,14 +334,13 @@ class BriefcaseManager {
|
|
|
337
334
|
}
|
|
338
335
|
/** create a changeset from the current changes, and push it to iModelHub */
|
|
339
336
|
static async pushChanges(db, arg) {
|
|
340
|
-
var _a, _b;
|
|
341
337
|
const changesetProps = db.nativeDb.startCreateChangeset();
|
|
342
338
|
changesetProps.briefcaseId = db.briefcaseId;
|
|
343
339
|
changesetProps.description = arg.description;
|
|
344
|
-
changesetProps.size =
|
|
340
|
+
changesetProps.size = IModelJsFs_1.IModelJsFs.lstatSync(changesetProps.pathname)?.size;
|
|
345
341
|
if (!changesetProps.size) // either undefined or 0 means error
|
|
346
342
|
throw new core_common_1.IModelError(core_bentley_1.IModelStatus.NoContent, "error creating changeset");
|
|
347
|
-
let retryCount =
|
|
343
|
+
let retryCount = arg.pushRetryCount ?? 3;
|
|
348
344
|
while (true) {
|
|
349
345
|
try {
|
|
350
346
|
const accessToken = await IModelHost_1.IModelHost.getAccessToken();
|
|
@@ -381,8 +377,7 @@ class BriefcaseManager {
|
|
|
381
377
|
* @internal
|
|
382
378
|
*/
|
|
383
379
|
static async pullMergePush(db, arg) {
|
|
384
|
-
|
|
385
|
-
let retryCount = (_a = arg.mergeRetryCount) !== null && _a !== void 0 ? _a : 5;
|
|
380
|
+
let retryCount = arg.mergeRetryCount ?? 5;
|
|
386
381
|
while (true) {
|
|
387
382
|
try {
|
|
388
383
|
await BriefcaseManager.pullAndApplyChangesets(db, arg);
|
|
@@ -391,16 +386,15 @@ class BriefcaseManager {
|
|
|
391
386
|
catch (err) {
|
|
392
387
|
if (retryCount-- <= 0 || err.errorNumber !== core_bentley_1.IModelHubStatus.PullIsRequired)
|
|
393
388
|
throw (err);
|
|
394
|
-
await (
|
|
389
|
+
await (arg.mergeRetryDelay ?? core_bentley_1.BeDuration.fromSeconds(3)).wait();
|
|
395
390
|
}
|
|
396
391
|
}
|
|
397
392
|
}
|
|
398
393
|
/** @internal */
|
|
399
394
|
static logUsage(imodel, activity) {
|
|
400
|
-
var _a;
|
|
401
395
|
const telemetryEvent = new core_telemetry_1.TelemetryEvent("core-backend - Open iModel", "7a6424d1-2114-4e89-b13b-43670a38ccd4", // Feature: "iModel Use"
|
|
402
|
-
imodel.iTwinId, imodel.iModelId,
|
|
403
|
-
activity = activity
|
|
396
|
+
imodel.iTwinId, imodel.iModelId, imodel.changeset?.id);
|
|
397
|
+
activity = activity ?? {
|
|
404
398
|
activityId: "",
|
|
405
399
|
applicationId: IModelHost_1.IModelHost.applicationId,
|
|
406
400
|
applicationVersion: IModelHost_1.IModelHost.applicationVersion,
|