@itwin/core-backend 3.7.0-dev.2 → 3.7.0-dev.3
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 +77 -67
- package/lib/cjs/CustomViewState3dCreator.d.ts.map +1 -1
- package/lib/cjs/CustomViewState3dCreator.js +1 -0
- package/lib/cjs/CustomViewState3dCreator.js.map +1 -1
- package/lib/cjs/ECDb.d.ts +4 -1
- package/lib/cjs/ECDb.d.ts.map +1 -1
- package/lib/cjs/ECDb.js +6 -1
- package/lib/cjs/ECDb.js.map +1 -1
- package/lib/cjs/IModelDb.d.ts +4 -1
- package/lib/cjs/IModelDb.d.ts.map +1 -1
- package/lib/cjs/IModelDb.js +7 -1
- package/lib/cjs/IModelDb.js.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Change Log - @itwin/core-backend
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 17 Mar 2023 17:52:32 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 3.6.2
|
|
6
|
+
Fri, 17 Mar 2023 17:52:32 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 3.6.1
|
|
11
|
+
Fri, 24 Feb 2023 22:00:48 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
4
14
|
|
|
5
15
|
## 3.6.0
|
|
6
16
|
Wed, 08 Feb 2023 14:58:39 GMT
|
|
@@ -518,7 +528,7 @@ Mon, 26 Jul 2021 12:21:25 GMT
|
|
|
518
528
|
|
|
519
529
|
- Reactivated test that stopped working when a previous PR for ecef dependency to geographicCRS was reverted
|
|
520
530
|
- store changesetIndex on IModelDb
|
|
521
|
-
- Better error checks when creating SpatialViewDefinition-s.
|
|
531
|
+
- Better error checks when creating SpatialViewDefinition-s.
|
|
522
532
|
- remove internal barrel-import usage
|
|
523
533
|
- throw exception when attempting to download a briefcase on top of an existing file
|
|
524
534
|
- Add case for InterpolationCurve3d
|
|
@@ -553,11 +563,11 @@ Fri, 09 Jul 2021 18:11:24 GMT
|
|
|
553
563
|
### Updates
|
|
554
564
|
|
|
555
565
|
- TemplateModelCloner now assigns a new FederationGuid for cloned element instances.
|
|
556
|
-
- Accomodated the inability to reverse Changesets when creating change summaries.
|
|
566
|
+
- Accomodated the inability to reverse Changesets when creating change summaries.
|
|
557
567
|
- fix lint issue
|
|
558
568
|
- begin api transition to changeset index rather than changeset Id
|
|
559
569
|
- Use ecef location calculated for projected iModels
|
|
560
|
-
- Push refreshes access token if necessary.
|
|
570
|
+
- Push refreshes access token if necessary.
|
|
561
571
|
- Do not reuse briefcase ids in ReadWrite workflows when using the RPC interfaces (if the briefcase was not found in the local file system)
|
|
562
572
|
- Add missing SectionDrawing properties.
|
|
563
573
|
|
|
@@ -578,7 +588,7 @@ Fri, 02 Jul 2021 15:38:31 GMT
|
|
|
578
588
|
|
|
579
589
|
### Updates
|
|
580
590
|
|
|
581
|
-
- Update to @bentley/imodeljs-native@2.17.10
|
|
591
|
+
- Update to @bentley/imodeljs-native@2.17.10
|
|
582
592
|
|
|
583
593
|
## 2.17.0
|
|
584
594
|
Mon, 28 Jun 2021 16:20:11 GMT
|
|
@@ -844,8 +854,8 @@ Thu, 28 Jan 2021 13:39:27 GMT
|
|
|
844
854
|
|
|
845
855
|
- Changed storageType from azure to azure?sas=1 for getCommandArgs function
|
|
846
856
|
- Fix brep DataProps to/from flatbuffer to account for base64 string header.
|
|
847
|
-
- Element geometry creation by brep operations.
|
|
848
|
-
- Reinstated behavior when re-opening files read-write.
|
|
857
|
+
- Element geometry creation by brep operations.
|
|
858
|
+
- Reinstated behavior when re-opening files read-write.
|
|
849
859
|
- enhance BriefcaseManager and BriefcaseDb for edit commands
|
|
850
860
|
- Improve ElementGeometry documentation.
|
|
851
861
|
- Add a check to verify, and fix, the DbGuid in the iModel if it is different than the Guid in iModelHub.
|
|
@@ -1035,8 +1045,8 @@ Fri, 02 Oct 2020 18:03:32 GMT
|
|
|
1035
1045
|
### Updates
|
|
1036
1046
|
|
|
1037
1047
|
- Update to @bentley/imodeljs-native@2.7.4
|
|
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.
|
|
1048
|
+
- Fixes to front end methods to pull, merge and push.
|
|
1049
|
+
- Setup IModelHost.startup() to use proxy servers if configured/available - this is valuable for debugging agents, backends and electron applications.
|
|
1040
1050
|
- On iOS download in background
|
|
1041
1051
|
- Fix ios hang issue
|
|
1042
1052
|
- Modify queryModelRanges to handle non geometric model errors
|
|
@@ -1127,7 +1137,7 @@ Thu, 20 Aug 2020 20:57:09 GMT
|
|
|
1127
1137
|
### Updates
|
|
1128
1138
|
|
|
1129
1139
|
- Update to imodeljs-native 2.5.0
|
|
1130
|
-
- VSTS#419723: Accomodated "bad" checkpoints that may have serialized transactions preventing their use in ReadWrite cases.
|
|
1140
|
+
- VSTS#419723: Accomodated "bad" checkpoints that may have serialized transactions preventing their use in ReadWrite cases.
|
|
1131
1141
|
- Fix for a recursive exception while closing a briefcase
|
|
1132
1142
|
- Added mobile oidc client
|
|
1133
1143
|
- Remove special code handling for mobile.
|
|
@@ -1191,7 +1201,7 @@ Fri, 10 Jul 2020 17:23:14 GMT
|
|
|
1191
1201
|
- Changes to support imodel-bridge
|
|
1192
1202
|
- fix spelling mistakes in Device class
|
|
1193
1203
|
- Fix typo in comments
|
|
1194
|
-
- Setup BriefcaseDb.open() to allow profile and domain schema validation and upgrades.
|
|
1204
|
+
- Setup BriefcaseDb.open() to allow profile and domain schema validation and upgrades.
|
|
1195
1205
|
- disallow protected operations for missing schemas marked with SchemaHasBehavior custom attribute
|
|
1196
1206
|
|
|
1197
1207
|
## 2.2.1
|
|
@@ -1232,25 +1242,25 @@ Thu, 28 May 2020 22:48:59 GMT
|
|
|
1232
1242
|
- Update to imodeljs-native 2.1.0
|
|
1233
1243
|
- Support for finding an ExternalSourceAspect given scope, id, and kind/hash.
|
|
1234
1244
|
- ApplyChangeset perf tests updated
|
|
1235
|
-
- Fixed token expiry check for desktop authorization.
|
|
1245
|
+
- Fixed token expiry check for desktop authorization.
|
|
1236
1246
|
- Download ChangeSets in chunks
|
|
1237
1247
|
- (1) In xy region booleans, support curved edges; (2) ExportGraphicsMeshVisitor class
|
|
1238
1248
|
- Add ability to convert ExportGraphicsMesh to Polyface
|
|
1239
1249
|
- Fixed validation of Guids (ContextId, IModelId) cached within a briefcase.
|
|
1240
1250
|
- Moved iModelBridgeFwk to a separate package
|
|
1241
|
-
- Simplified logging for monitoring briefcase operations.
|
|
1251
|
+
- Simplified logging for monitoring briefcase operations.
|
|
1242
1252
|
- Fix transforms for creating and querying part instance geometry in world coordinate.
|
|
1243
1253
|
- Fix and improvement to performance tests
|
|
1244
1254
|
- Added support for schema XML import to iModelJs backend via the IModelDb.importSchemaStrings method.
|
|
1245
1255
|
- channel rules
|
|
1246
|
-
- Fixed logging usage when opening connections.
|
|
1256
|
+
- Fixed logging usage when opening connections.
|
|
1247
1257
|
|
|
1248
1258
|
## 2.0.0
|
|
1249
1259
|
Wed, 06 May 2020 13:17:49 GMT
|
|
1250
1260
|
|
|
1251
1261
|
### Updates
|
|
1252
1262
|
|
|
1253
|
-
- Fixed setup of UserInfo from browser clients, and more cleanups to AccessToken API.
|
|
1263
|
+
- Fixed setup of UserInfo from browser clients, and more cleanups to AccessToken API.
|
|
1254
1264
|
- Added RivisionUtility class for debug/testing
|
|
1255
1265
|
- node addon 2.0.18
|
|
1256
1266
|
- addon 2.0.25
|
|
@@ -1263,23 +1273,23 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
1263
1273
|
- Performance tests for Applying Changesets
|
|
1264
1274
|
- `IModelHost.startup` is now async.
|
|
1265
1275
|
- `IModelHost.shutdown` is now async.
|
|
1266
|
-
- Refined checks for briefcase id, and fixed failing integration tests.
|
|
1276
|
+
- Refined checks for briefcase id, and fixed failing integration tests.
|
|
1267
1277
|
- Product Backlog Item 276268: Deleting the briefcase cache if the cache version is incorrect should not attempt to delete the root directory.
|
|
1268
1278
|
- Setup initialization of briefcase cache for offline workflows. (VSTS#286489)
|
|
1269
|
-
- Monitor progress of downloading briefcases, ability to cancel download of briefcases.
|
|
1279
|
+
- Monitor progress of downloading briefcases, ability to cancel download of briefcases.
|
|
1270
1280
|
- Move briefcase-specific events into BriefcaseIModelDb subclass
|
|
1271
1281
|
- Fixed param when calling logger so that it is a function as the logger expects
|
|
1272
|
-
- Setup a common cache locaton for iModel.js, with briefcases taking up a sub-folder.
|
|
1282
|
+
- Setup a common cache locaton for iModel.js, with briefcases taking up a sub-folder.
|
|
1273
1283
|
- Changed ChangeSets download API
|
|
1274
1284
|
- Added unlink for file handler
|
|
1275
1285
|
- Update UlasClient tests to send more detailed feature log data
|
|
1276
1286
|
- react to renaming of imodeljs-clients-backend to backend-itwin-client
|
|
1277
1287
|
- apply changeset performance tests with local datasets
|
|
1278
|
-
- BriefcaseManager.delete should work in offline scenarios.
|
|
1288
|
+
- BriefcaseManager.delete should work in offline scenarios.
|
|
1279
1289
|
- Remove deprecated members of SectionLocation and downgrade to alpha pending refactor.
|
|
1280
1290
|
- Support for progress/cancel from ios
|
|
1281
1291
|
- Remove deprecated ExportGraphics types etc for 2.0
|
|
1282
|
-
- Updated docs.
|
|
1292
|
+
- Updated docs.
|
|
1283
1293
|
- IModelDb.findByKey replaces IModelDb.find
|
|
1284
1294
|
- Include model extents with ViewStateProps for drawing views.
|
|
1285
1295
|
- Remove deprecated APIs; see NextVersion.md for details.
|
|
@@ -1300,29 +1310,29 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
1300
1310
|
- Introduce the BriefcaseIModelDb class, make IModelDb abstract.
|
|
1301
1311
|
- Cleaned up unused async-s in BriefcaseManager
|
|
1302
1312
|
- Avoided casting of BriefcaseProps to IModelRpcProps.
|
|
1303
|
-
- Added NativeApp.deleteBriefcase, avoided authorization exceptions when offline.
|
|
1313
|
+
- Added NativeApp.deleteBriefcase, avoided authorization exceptions when offline.
|
|
1304
1314
|
- Move briefcase property from IModelDb --> BriefcaseIModelDb
|
|
1305
1315
|
- BriefcaseId is now an enum instead of a class
|
|
1306
1316
|
- Rename BriefcaseId --> ReservedBriefcaseId, introduce BriefcaseId type
|
|
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.
|
|
1317
|
+
- VSTS#297017: Update cached briefcase information if changes were applied.
|
|
1318
|
+
- Refactored NativeApp API and RPC interfaces. This continues to be WIP.
|
|
1319
|
+
- 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.
|
|
1320
|
+
- Added DownloadBriefcaseOptions and OpenBriefcaseOptions as parameters to the download/open calls for a briefcase.
|
|
1311
1321
|
- Removed BriefcaseDb.create
|
|
1312
|
-
- Setup ability to use NativeApp.openBriefcase() in offline scenarios.
|
|
1322
|
+
- Setup ability to use NativeApp.openBriefcase() in offline scenarios.
|
|
1313
1323
|
- fixed flaky test
|
|
1314
|
-
- VSTS#217447, 162382: Cleanups to implementation of downloading/opening/discovering briefcases in native applications (WIP).
|
|
1324
|
+
- VSTS#217447, 162382: Cleanups to implementation of downloading/opening/discovering briefcases in native applications (WIP).
|
|
1315
1325
|
- do not throw exception in NativeAppBackend.startup()
|
|
1316
|
-
- VSTS#296110: Setup a way to close briefcases when the native application is offline.
|
|
1326
|
+
- VSTS#296110: Setup a way to close briefcases when the native application is offline.
|
|
1317
1327
|
- Move concurrencyControl from IModelDb to BriefcaseIModelDb
|
|
1318
1328
|
- Renamed OIDC constructs for consistency; Removed SAML support.
|
|
1319
1329
|
- Add support for password-protecting snapshot iModels
|
|
1320
1330
|
- Fixed typo for ElementAspect perf tests
|
|
1321
|
-
- VSTS#217447, VSTS#162382: Reinstated option to open briefcases with SyncMode = PullOnly.
|
|
1331
|
+
- VSTS#217447, VSTS#162382: Reinstated option to open briefcases with SyncMode = PullOnly.
|
|
1322
1332
|
- Add purge dir method to iModelJsFs
|
|
1323
1333
|
- react to creation of new clients packages from imodeljs-clients
|
|
1324
1334
|
- ; substitute current date for feature usage without any set start/end dates
|
|
1325
|
-
- Removed deprecated utilities.
|
|
1335
|
+
- Removed deprecated utilities.
|
|
1326
1336
|
- enforce opening Snapshots readonly through StandaloneDb
|
|
1327
1337
|
- Remove the deprecated Entity.clone method
|
|
1328
1338
|
- Adjusted calls to some node addon changes (ECUtils removed)
|
|
@@ -1334,13 +1344,13 @@ Wed, 06 May 2020 13:17:49 GMT
|
|
|
1334
1344
|
- Add FileNameResolver class
|
|
1335
1345
|
- Move snapshot methods out of IModelDb and into new SnapshotIModelDb class.
|
|
1336
1346
|
- Add TemplateModelCloner to place instances of a template model
|
|
1337
|
-
- Renamed TestOidcClient and related constructs for consistency.
|
|
1347
|
+
- Renamed TestOidcClient and related constructs for consistency.
|
|
1338
1348
|
- Add IModelDb.tryPrepareStatement
|
|
1339
|
-
- Fixed usage logging.
|
|
1349
|
+
- Fixed usage logging.
|
|
1340
1350
|
- fix failing ulas tests due to invalid featureId
|
|
1341
1351
|
- update ULAS test logging & feedback
|
|
1342
1352
|
- Update UlasUtilities to support exception-throwing native functions
|
|
1343
|
-
- Use standalone briefcases for PullOnly cases.
|
|
1353
|
+
- Use standalone briefcases for PullOnly cases.
|
|
1344
1354
|
|
|
1345
1355
|
## 1.14.1
|
|
1346
1356
|
Wed, 22 Apr 2020 19:04:00 GMT
|
|
@@ -1355,7 +1365,7 @@ Tue, 31 Mar 2020 15:44:19 GMT
|
|
|
1355
1365
|
### Updates
|
|
1356
1366
|
|
|
1357
1367
|
- Update to addon 1.14.1
|
|
1358
|
-
- Fixed downloading of files using https/streaming to resolve when the filestream is closed instead of when the input stream is exhausted.
|
|
1368
|
+
- Fixed downloading of files using https/streaming to resolve when the filestream is closed instead of when the input stream is exhausted.
|
|
1359
1369
|
- Add handling for invalid predecessor ids to IModelTransformer
|
|
1360
1370
|
- Accomodate updated imodeljs-native ULAS functions
|
|
1361
1371
|
|
|
@@ -1370,7 +1380,7 @@ Wed, 12 Feb 2020 17:45:50 GMT
|
|
|
1370
1380
|
### Updates
|
|
1371
1381
|
|
|
1372
1382
|
- Fix IGeometry roundtripping issue through ECSql. Fix insert/update binary properties for Element Aspect.
|
|
1373
|
-
- Separated out routines to download and open briefcases.
|
|
1383
|
+
- Separated out routines to download and open briefcases.
|
|
1374
1384
|
- bulk mode
|
|
1375
1385
|
- Consolidated sign-in for integration tests
|
|
1376
1386
|
- bulkmode
|
|
@@ -1381,7 +1391,7 @@ Wed, 12 Feb 2020 17:45:50 GMT
|
|
|
1381
1391
|
- Add ViewDefinition.getAuxiliaryCoordinateSystemId and ViewDefinition.setAuxiliaryCoordinateSystemId methods
|
|
1382
1392
|
- Add SpatialLocationModel.insert
|
|
1383
1393
|
- Add optional isPlantProjection parameter to PhysicalModel.insert
|
|
1384
|
-
- VSTS#256133: Fixed issue with reopening connections if the backend crashes. Fixes to integration tests.
|
|
1394
|
+
- VSTS#256133: Fixed issue with reopening connections if the backend crashes. Fixes to integration tests.
|
|
1385
1395
|
- Better documentation of OidcDesktopClient
|
|
1386
1396
|
- Fixed changeset perf test by using another iModel on Hub
|
|
1387
1397
|
- Add ViewDetails to ViewDefinition.
|
|
@@ -1414,7 +1424,7 @@ Tue, 07 Jan 2020 19:44:01 GMT
|
|
|
1414
1424
|
- Allow events to be sent from backend to frontend
|
|
1415
1425
|
- Add tryGetInstance / tryGetInstanceProps methods to the Relationship class which return undefined rather than throwing an exception when a relationship is not found.
|
|
1416
1426
|
- Fix webpack for ios test that were failing due to new dependencies
|
|
1417
|
-
- VSTS#225894 - Allowed agents to bypass usage logging calls. These cause usage logging errors.
|
|
1427
|
+
- VSTS#225894 - Allowed agents to bypass usage logging calls. These cause usage logging errors.
|
|
1418
1428
|
- Add tryGetElement / tryGetElementProps which return undefined rather than throwing an exception when an element is not found.
|
|
1419
1429
|
- Add tryGetModel, tryGetModelProps, tryGetSubModel which return undefined instead of throwing exceptions when the model is not found.
|
|
1420
1430
|
|
|
@@ -1426,7 +1436,7 @@ Tue, 10 Dec 2019 18:08:56 GMT
|
|
|
1426
1436
|
- Updated to addon 9.1.3
|
|
1427
1437
|
- Added AliCloud tile cache service
|
|
1428
1438
|
- Added framework to run imodeljs-backend test on ios using appcenter
|
|
1429
|
-
- Setup OidcDesktopClient for Electron use cases.
|
|
1439
|
+
- Setup OidcDesktopClient for Electron use cases.
|
|
1430
1440
|
- fix warnings from static analysis
|
|
1431
1441
|
- Enabling testing code for updating LR aspects after fix in native side.
|
|
1432
1442
|
- Addressing typo in a couple of members, making them match the schema properly.
|
|
@@ -1482,9 +1492,9 @@ Mon, 30 Sep 2019 22:28:48 GMT
|
|
|
1482
1492
|
### Updates
|
|
1483
1493
|
|
|
1484
1494
|
- added support for blank IModelConnections
|
|
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.
|
|
1495
|
+
- Setup a way to supply authorization through the backend for frontend requests.
|
|
1496
|
+
- Error log when downloading change sets should include iModelId for context.
|
|
1497
|
+
- Fixed the iModelHub client to properly dispose a file handle after upload to the iModelHub.
|
|
1488
1498
|
- Add IModelDb.Elements.hasSubModel
|
|
1489
1499
|
- Make ExternalSourceAspect.checksum optional
|
|
1490
1500
|
- Clear statement cache after schema import
|
|
@@ -1499,14 +1509,14 @@ Tue, 10 Sep 2019 12:09:49 GMT
|
|
|
1499
1509
|
|
|
1500
1510
|
### Updates
|
|
1501
1511
|
|
|
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.
|
|
1512
|
+
- Setup a way to supply authorization through the backend for frontend requests.
|
|
1513
|
+
- Allow attaching change cache file before change summary extraction.
|
|
1514
|
+
- Added change summary test, and improved doc a little.
|
|
1505
1515
|
- Add minimum brep size option to IModelDb.exportGraphics
|
|
1506
1516
|
- FunctionalSchema.importSchema is now deprecated.
|
|
1507
1517
|
- Add support for GeometricModel.geometryGuid for detecting whether tiles for a model can be reused across versions
|
|
1508
1518
|
- Added performance logging for tile upload
|
|
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.
|
|
1519
|
+
- 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.
|
|
1510
1520
|
- Add method to create view with camera
|
|
1511
1521
|
- Fixed misleading logging output in tile upload
|
|
1512
1522
|
|
|
@@ -1516,14 +1526,14 @@ Tue, 13 Aug 2019 20:25:53 GMT
|
|
|
1516
1526
|
### Updates
|
|
1517
1527
|
|
|
1518
1528
|
- Allow custom tile cache services.
|
|
1519
|
-
- Always acquire a briefcase when creating a new backend instance for PullAndPush workflows.
|
|
1520
|
-
- Added Change Summary integration test, and fixed documentation.
|
|
1529
|
+
- Always acquire a briefcase when creating a new backend instance for PullAndPush workflows.
|
|
1530
|
+
- Added Change Summary integration test, and fixed documentation.
|
|
1521
1531
|
- Trial code for tile upload errors
|
|
1522
1532
|
- Fixed changeset performance tests
|
|
1523
1533
|
- Tile upload logging.
|
|
1524
1534
|
- Mark ExportGraphics API as public
|
|
1525
1535
|
- Support for gzip compression of tiles
|
|
1526
|
-
- Fixed issue with opening iModels with names that are invalid on Unix or Windows.
|
|
1536
|
+
- Fixed issue with opening iModels with names that are invalid on Unix or Windows.
|
|
1527
1537
|
- Add IModelDb.isSnapshot
|
|
1528
1538
|
- Tile upload error catching.
|
|
1529
1539
|
- Azure tile upload logging
|
|
@@ -1535,7 +1545,7 @@ Wed, 24 Jul 2019 11:47:26 GMT
|
|
|
1535
1545
|
### Updates
|
|
1536
1546
|
|
|
1537
1547
|
- Added option to restrict tile cache URLs by client IP address.
|
|
1538
|
-
- Apply change sets at the backend in a non-blocking worker thread.
|
|
1548
|
+
- Apply change sets at the backend in a non-blocking worker thread.
|
|
1539
1549
|
- Add ElementAspect handler methods
|
|
1540
1550
|
- When deleting a parent element, make sure there are onDelete/onDeleted callbacks for child elements
|
|
1541
1551
|
- Add support for linework to IModelDb.exportGraphics
|
|
@@ -1553,19 +1563,19 @@ Mon, 01 Jul 2019 19:04:29 GMT
|
|
|
1553
1563
|
|
|
1554
1564
|
### Updates
|
|
1555
1565
|
|
|
1556
|
-
- Open fixes when briefcase requires merges.
|
|
1566
|
+
- Open fixes when briefcase requires merges.
|
|
1557
1567
|
- Catch tile upload errors.
|
|
1558
|
-
- Setting up briefcase is always from an older checkpoint.
|
|
1568
|
+
- Setting up briefcase is always from an older checkpoint.
|
|
1559
1569
|
- Add materialId, subCategory to ExportGraphicsInfo
|
|
1560
|
-
- Fix crash in getViewThumbnail for odd number of bytes
|
|
1570
|
+
- Fix crash in getViewThumbnail for odd number of bytes
|
|
1561
1571
|
- Adding relationship class for GraphicalElement3dRepresentsElement.
|
|
1562
1572
|
- Initial implementation of the LinearReferencing typescript domain
|
|
1563
1573
|
- Adding domain classes for all relatinships in the LinearReferencing schema.
|
|
1564
1574
|
- Exporting relationships module.
|
|
1565
|
-
- Fixes to opening iModel-s ReadWrite from mutiple IModelConnection-s.
|
|
1566
|
-
- Fixed issues with deleting briefcases if there were errors with preparing briefcases.
|
|
1575
|
+
- Fixes to opening iModel-s ReadWrite from mutiple IModelConnection-s.
|
|
1576
|
+
- Fixed issues with deleting briefcases if there were errors with preparing briefcases.
|
|
1567
1577
|
- Add a new method `forceLoadSchemas` to `IModelJsNative.ECPresentationManager`.
|
|
1568
|
-
- Introduced AsyncMutex - a utility to run async blocks of code in sequence.
|
|
1578
|
+
- Introduced AsyncMutex - a utility to run async blocks of code in sequence.
|
|
1569
1579
|
- Properly document ModelSelector.models and CategorySelector.categories as Id64String arrays
|
|
1570
1580
|
- Made `insertElement` not return Id64.invalid, throws error instead
|
|
1571
1581
|
- Update to TypeScript 3.5
|
|
@@ -1576,7 +1586,7 @@ Mon, 03 Jun 2019 18:09:39 GMT
|
|
|
1576
1586
|
|
|
1577
1587
|
### Updates
|
|
1578
1588
|
|
|
1579
|
-
- Migrated agent applications to the newer client
|
|
1589
|
+
- Migrated agent applications to the newer client
|
|
1580
1590
|
- RPC system now accepts only basic values (primitives, "interface" objects, and binary).
|
|
1581
1591
|
- Switched from iModelHub Project API to Context API
|
|
1582
1592
|
- Fix bug in IModelDb.createSnapshotFromSeed
|
|
@@ -1624,12 +1634,12 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
|
1624
1634
|
- Cleanup old imodelbank references
|
|
1625
1635
|
- Add InformationRecordModel.insert, GroupModel.insert
|
|
1626
1636
|
- Introduce LoggerCategory enum to advertise logger categories used by this package.
|
|
1627
|
-
- Limited maximum cache size of the backend PromiseMemoizer.
|
|
1637
|
+
- Limited maximum cache size of the backend PromiseMemoizer.
|
|
1628
1638
|
- Missing dependency on node-report
|
|
1629
|
-
- Fixed memoization problem that caused an endless stream of 404 NotFound errors.
|
|
1639
|
+
- Fixed memoization problem that caused an endless stream of 404 NotFound errors.
|
|
1630
1640
|
- Reinstated old version of OidcAgentClient
|
|
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.
|
|
1641
|
+
- Unauthorized open requests should cause a more obvious error.
|
|
1642
|
+
- Improved performance logging, especially of IModelDb open operations; ChangeSets are merged one-by-one to prevent hogging the event loop.
|
|
1633
1643
|
- Memoization fix when opening iModels in shared, read-only mode .
|
|
1634
1644
|
- Fixed setup of application version.
|
|
1635
1645
|
- Updated Element CRUD perf tests
|
|
@@ -1639,7 +1649,7 @@ Mon, 13 May 2019 15:52:05 GMT
|
|
|
1639
1649
|
- Remove ElementPropertyFormatter, IModelDb.getElementPropertiesForDisplay (use presentation rules instead)
|
|
1640
1650
|
- Remove StandaloneIModelRpcImpl
|
|
1641
1651
|
- Fix for Render Gradient.Symb test
|
|
1642
|
-
- Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
|
|
1652
|
+
- Setup a generic context for tracking client requests, and made various related enhancements to logging, usage tracking and authorization.
|
|
1643
1653
|
- Add IModelDb.createSnapshot/openSnapshot/closeSnapshot, deprecate IModelDb.createStandalone/openStandalone/closeStandalone
|
|
1644
1654
|
- Moved IModelJsExpressServer class into a new package (@itwin/express-server).
|
|
1645
1655
|
- Simplified tile caching IModelHost config and removed dev flags. Allow
|
|
@@ -1666,7 +1676,7 @@ Wed, 06 Mar 2019 15:41:22 GMT
|
|
|
1666
1676
|
- Changes package.json to include api-extractor and adds api-extractor.json
|
|
1667
1677
|
- Use new buildIModelJsBuild script
|
|
1668
1678
|
- AxisAlignedBox and ElementAlignedBox are now typed to Range3d rather than classes
|
|
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.
|
|
1679
|
+
- 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.
|
|
1670
1680
|
- Clone methods are no longer generic
|
|
1671
1681
|
- Remove unneeded typedoc plugin dependency
|
|
1672
1682
|
- Added spatial <-> cartographic methods that check/use the geographic coordinate system before using ecef location.
|
|
@@ -1711,8 +1721,8 @@ Mon, 14 Jan 2019 23:09:10 GMT
|
|
|
1711
1721
|
|
|
1712
1722
|
### Updates
|
|
1713
1723
|
|
|
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.
|
|
1724
|
+
- More logging of HTTP requests, and enabled use of fiddler for backend diagnostics.
|
|
1725
|
+
- Removed IModelDb's cache of accessToken. For long running operations like AutoPush, the user must explicitly supply an IAccessTokenManager to keep the token current.
|
|
1716
1726
|
- Renamed RequestProxy->RequestHost. Allowed applications to configure proxy server with HTTPS_PROXY env.
|
|
1717
1727
|
- Add backend TextureAPI and accompanying test
|
|
1718
1728
|
|
|
@@ -1817,7 +1827,7 @@ Mon, 03 Dec 2018 18:52:58 GMT
|
|
|
1817
1827
|
|
|
1818
1828
|
### Updates
|
|
1819
1829
|
|
|
1820
|
-
- More information logged from BriefcaseManager.\nFixed deletion/cleanup of invalid briefcases.\nAdded OIDC support for simpleviewtest application.
|
|
1830
|
+
- More information logged from BriefcaseManager.\nFixed deletion/cleanup of invalid briefcases.\nAdded OIDC support for simpleviewtest application.
|
|
1821
1831
|
- Add ElementRefersToElements.insert
|
|
1822
1832
|
- Fixed front end integration tests.
|
|
1823
1833
|
- Document the intended purpose of IModelJsExpressServer within a deployment environment.
|
|
@@ -1886,11 +1896,11 @@ Thu, 08 Nov 2018 17:59:20 GMT
|
|
|
1886
1896
|
|
|
1887
1897
|
- Fix JSON representation of DisplayStyle.
|
|
1888
1898
|
- Add IModelImporter as a base class for utility methods needed by all importers
|
|
1889
|
-
- Removed assertion when deleting a memoized open call.
|
|
1899
|
+
- Removed assertion when deleting a memoized open call.
|
|
1890
1900
|
- Add more methods to IModelImporter
|
|
1891
1901
|
- Fix snapping test
|
|
1892
1902
|
- OIDC related enhancments (WIP).
|
|
1893
|
-
- Re-enabled several backend integration tests.
|
|
1903
|
+
- Re-enabled several backend integration tests.
|
|
1894
1904
|
- Refactor analysis-importer to use IModelImporter
|
|
1895
1905
|
- Updated to TypeScript 3.1
|
|
1896
1906
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomViewState3dCreator.d.ts","sourceRoot":"","sources":["../../src/CustomViewState3dCreator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,+BAA+B,EAAE,sBAAsB,EAAkB,MAAM,oBAAoB,CAAC;AAG7G,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAItC;;;GAGG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,OAAO,CAAW;gBACP,MAAM,EAAE,QAAQ;IAGnC;;;OAGG;IACU,wBAAwB,CAAC,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,sBAAsB,CAAC;YAelG,iBAAiB;IAS/B,oEAAoE;YACtD,gBAAgB;IAa9B,kFAAkF;YACpE,aAAa;IAmB3B,OAAO,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"CustomViewState3dCreator.d.ts","sourceRoot":"","sources":["../../src/CustomViewState3dCreator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,+BAA+B,EAAE,sBAAsB,EAAkB,MAAM,oBAAoB,CAAC;AAG7G,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAItC;;;GAGG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,OAAO,CAAW;gBACP,MAAM,EAAE,QAAQ;IAGnC;;;OAGG;IACU,wBAAwB,CAAC,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,sBAAsB,CAAC;YAelG,iBAAiB;IAS/B,oEAAoE;YACtD,gBAAgB;IAa9B,kFAAkF;YACpE,aAAa;IAmB3B,OAAO,CAAC,aAAa,CAOnB;CACH"}
|
|
@@ -18,6 +18,7 @@ class CustomViewState3dCreator {
|
|
|
18
18
|
constructor(iModel) {
|
|
19
19
|
this._executeQuery = async (query) => {
|
|
20
20
|
const rows = [];
|
|
21
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
21
22
|
for await (const row of this._imodel.query(query, undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames }))
|
|
22
23
|
rows.push(row.id);
|
|
23
24
|
return rows;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomViewState3dCreator.js","sourceRoot":"","sources":["../../src/CustomViewState3dCreator.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,sDAAkG;AAClG,oDAA6G;AAC7G,wDAA+C;AAC/C,mEAAgE;AAGhE,MAAM,cAAc,GAAG,6CAAqB,CAAC,wBAAwB,CAAC;AAEtE;;;GAGG;AACH,MAAa,wBAAwB;IAEnC,YAAmB,MAAgB;QAiE3B,kBAAa,GAAG,KAAK,EAAE,KAAa,EAAE,EAAE;YAC9C,MAAM,IAAI,GAAG,EAAE,CAAC;YAChB,IAAI,KAAK,EAAE,MAAM,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,4BAAc,CAAC,kBAAkB,EAAE,CAAC;gBAC5G,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAEpB,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomViewState3dCreator.js","sourceRoot":"","sources":["../../src/CustomViewState3dCreator.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,sDAAkG;AAClG,oDAA6G;AAC7G,wDAA+C;AAC/C,mEAAgE;AAGhE,MAAM,cAAc,GAAG,6CAAqB,CAAC,wBAAwB,CAAC;AAEtE;;;GAGG;AACH,MAAa,wBAAwB;IAEnC,YAAmB,MAAgB;QAiE3B,kBAAa,GAAG,KAAK,EAAE,KAAa,EAAE,EAAE;YAC9C,MAAM,IAAI,GAAG,EAAE,CAAC;YAChB,mDAAmD;YACnD,IAAI,KAAK,EAAE,MAA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,CAAC;QACnE,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,oEAAoE;IAC5D,KAAK,CAAC,gBAAgB,CAAC,QAAsB;QACnD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;YACvB,OAAO,IAAI,uBAAO,EAAE,CAAC;QAEvB,MAAM,KAAK,GAAG,IAAI,wBAAS,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;QAC3D,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAE7D,KAAK,CAAC,IAAI,EAAE,CAAC;QACb,qBAAM,CAAC,OAAO,CAAC,cAAc,EAAE,iCAAiC,EAAE,EAAC,aAAa,EAAE,KAAK,CAAC,OAAO,EAAC,CAAC,CAAC;QAElG,OAAO,KAAK,CAAC;IACf,CAAC;IAED,kFAAkF;IAC1E,KAAK,CAAC,aAAa;QACzB,yFAAyF;QACzF,sGAAsG;QACtG,6JAA6J;QAC7J,MAAM,MAAM,GAAG,8FAA8F,CAAC;QAC9G,MAAM,gBAAgB,GAAG,sEAAsE,CAAC;QAEhG,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,qBAAM,CAAC,OAAO,CAAC,cAAc,EAAE,8BAA8B,CAAC,CAAC;QAC/D,IAAI;YACF,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,GAAG,MAAM,IAAI,gBAAgB,EAAE,CAAC,CAAC;SACpE;QAAC,MAAM;YACN,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;SAC3C;QAED,qBAAM,CAAC,OAAO,CAAC,cAAc,EAAE,8BAA8B,CAAC,CAAC;QAC/D,OAAO,MAAM,CAAC;IAChB,CAAC;CAUF;AA3ED,4DA2EC","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*--------------------------------------------------------------------------------------------*/\n\nimport { CompressedId64Set, Id64Array, Id64String, Logger, StopWatch } from \"@itwin/core-bentley\";\nimport { CustomViewState3dCreatorOptions, CustomViewState3dProps, QueryRowFormat } from \"@itwin/core-common\";\nimport { Range3d } from \"@itwin/core-geometry\";\nimport { BackendLoggerCategory } from \"./BackendLoggerCategory\";\nimport { IModelDb } from \"./IModelDb\";\n\nconst loggerCategory = BackendLoggerCategory.CustomViewState3dCreator;\n\n/**\n * Class which helps to generate a custom ViewState3d.\n * @internal\n */\nexport class CustomViewState3dCreator {\n private _imodel: IModelDb;\n public constructor(iModel: IModelDb) {\n this._imodel = iModel;\n }\n /** Gets default view state data such as category Ids and modelextents. If no model ids are passed in, all 3D models in the iModel are used.\n * @param [modelIds] Ids of models to display in the view.\n * @throws [IModelError]($common) If no 3d models are found in the iModel.\n */\n public async getCustomViewState3dData(options: CustomViewState3dCreatorOptions): Promise<CustomViewState3dProps> {\n let decompressedModelIds;\n if (options?.modelIds !== undefined)\n decompressedModelIds = CompressedId64Set.decompressArray(options.modelIds);\n\n const models: Id64Array = decompressedModelIds ?? await this._getAllModels();\n const categories: Id64Array = await this._getAllCategories();\n const modelExtents: Range3d = await this._getModelExtents(models);\n return {\n modelIds: CompressedId64Set.sortAndCompress(models),\n categoryIds: CompressedId64Set.sortAndCompress(categories),\n modelExtents: modelExtents.toJSON(),\n };\n }\n\n private async _getAllCategories(): Promise<Id64Array> {\n // Only use categories with elements in them\n Logger.logInfo(loggerCategory, \"Starting getAllCategories query.\");\n const query = `SELECT DISTINCT Category.Id AS id FROM BisCore.GeometricElement3d WHERE Category.Id IN (SELECT ECInstanceId FROM BisCore.SpatialCategory)`;\n const categories: Id64Array = await this._executeQuery(query);\n Logger.logInfo(loggerCategory, \"Finished getAllCategories query.\");\n return categories;\n }\n\n /** Compute the union of the extents of all the specified models. */\n private async _getModelExtents(modelIds: Id64String[]): Promise<Range3d> {\n if (modelIds.length === 0)\n return new Range3d();\n\n const timer = new StopWatch(\"getModelExtents query\", true);\n const range = await this._imodel.models.queryRange(modelIds);\n\n timer.stop();\n Logger.logInfo(loggerCategory, \"Finished getModelExtents query.\", {timeElapsedMs: timer.elapsed});\n\n return range;\n }\n\n /** Get the Ids of all spatially-located, non-template 3d models in the iModel. */\n private async _getAllModels(): Promise<Id64Array> {\n // Note: IsNotSpatiallyLocated was introduced in a later version of the BisCore ECSchema.\n // If the iModel has an earlier version, the statement will throw because the property does not exist.\n // If the iModel was created from an earlier version and later upgraded to a newer version, the property may be NULL for models created prior to the upgrade.\n const select = \"SELECT ECInstanceId FROM Bis.GeometricModel3D WHERE IsPrivate = false AND IsTemplate = false\";\n const spatialCriterion = \"AND (IsNotSpatiallyLocated IS NULL OR IsNotSpatiallyLocated = false)\";\n\n let models = [];\n Logger.logInfo(loggerCategory, \"Starting getAllModels query.\");\n try {\n models = await this._executeQuery(`${select} ${spatialCriterion}`);\n } catch {\n models = await this._executeQuery(select);\n }\n\n Logger.logInfo(loggerCategory, \"Finished getAllModels query.\");\n return models;\n }\n\n private _executeQuery = async (query: string) => {\n const rows = [];\n // eslint-disable-next-line deprecation/deprecation\n for await (const row of this._imodel.query(query, undefined, { rowFormat: QueryRowFormat.UseJsPropertyNames }))\n rows.push(row.id);\n\n return rows;\n };\n}\n"]}
|
package/lib/cjs/ECDb.d.ts
CHANGED
|
@@ -137,7 +137,7 @@ export declare class ECDb implements IDisposable {
|
|
|
137
137
|
/** Allow to execute query and read results along with meta data. The result are streamed.
|
|
138
138
|
* @param params The values to bind to the parameters (if the ECSQL has any).
|
|
139
139
|
* @param config Allow to specify certain flags which control how query is executed.
|
|
140
|
-
* @returns Returns
|
|
140
|
+
* @returns Returns an [ECSqlReader]($common) which helps iterate over the result set and also give access to metadata.
|
|
141
141
|
* @beta
|
|
142
142
|
* */
|
|
143
143
|
createQueryReader(ecsql: string, params?: QueryBinder, config?: QueryOptions): ECSqlReader;
|
|
@@ -155,6 +155,7 @@ export declare class ECDb implements IDisposable {
|
|
|
155
155
|
* @returns Returns the query result as an *AsyncIterableIterator<any>* which lazy load result as needed. The row format is determined by *rowFormat* parameter.
|
|
156
156
|
* See [ECSQL row format]($docs/learning/ECSQLRowFormat) for details about the format of the returned rows.
|
|
157
157
|
* @throws [IModelError]($common) If there was any error while submitting, preparing or stepping into query
|
|
158
|
+
* @deprecated in 3.7. Use [[createQueryReader]] instead; it accepts the same parameters.
|
|
158
159
|
*/
|
|
159
160
|
query(ecsql: string, params?: QueryBinder, options?: QueryOptions): AsyncIterableIterator<any>;
|
|
160
161
|
/** Compute number of rows that would be returned by the ECSQL.
|
|
@@ -168,6 +169,7 @@ export declare class ECDb implements IDisposable {
|
|
|
168
169
|
* See "[iTwin.js Types used in ECSQL Parameter Bindings]($docs/learning/ECSQLParameterTypes)" for details.
|
|
169
170
|
* @returns Return row count.
|
|
170
171
|
* @throws [IModelError]($common) If the statement is invalid
|
|
172
|
+
* @deprecated in 3.7. Count the number of results using `count(*)` where the original query is a subquery instead. E.g., `SELECT count(*) FROM (<query-whose-rows-to-count>)`.
|
|
171
173
|
*/
|
|
172
174
|
queryRowCount(ecsql: string, params?: QueryBinder): Promise<number>;
|
|
173
175
|
/** Cancel any previous query with same token and run execute the current specified query.
|
|
@@ -186,6 +188,7 @@ export declare class ECDb implements IDisposable {
|
|
|
186
188
|
* @returns Returns the query result as an *AsyncIterableIterator<any>* which lazy load result as needed. The row format is determined by *rowFormat* parameter.
|
|
187
189
|
* See [ECSQL row format]($docs/learning/ECSQLRowFormat) for details about the format of the returned rows.
|
|
188
190
|
* @throws [IModelError]($common) If there was any error while submitting, preparing or stepping into query
|
|
191
|
+
* @deprecated in 3.7. Use [[createQueryReader]] instead. Pass in the restart token as part of the `config` argument; e.g., `{ restartToken: myToken }` or `new QueryOptionsBuilder().setRestartToken(myToken).getOptions()`.
|
|
189
192
|
*/
|
|
190
193
|
restartQuery(token: string, ecsql: string, params?: QueryBinder, options?: QueryOptions): AsyncIterableIterator<any>;
|
|
191
194
|
}
|
package/lib/c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AAG,CAAC;CAMpI"}
|
package/lib/cjs/ECDb.js
CHANGED
|
@@ -271,7 +271,7 @@ class ECDb {
|
|
|
271
271
|
/** Allow to execute query and read results along with meta data. The result are streamed.
|
|
272
272
|
* @param params The values to bind to the parameters (if the ECSQL has any).
|
|
273
273
|
* @param config Allow to specify certain flags which control how query is executed.
|
|
274
|
-
* @returns Returns
|
|
274
|
+
* @returns Returns an [ECSqlReader]($common) which helps iterate over the result set and also give access to metadata.
|
|
275
275
|
* @beta
|
|
276
276
|
* */
|
|
277
277
|
createQueryReader(ecsql, params, config) {
|
|
@@ -299,6 +299,7 @@ class ECDb {
|
|
|
299
299
|
* @returns Returns the query result as an *AsyncIterableIterator<any>* which lazy load result as needed. The row format is determined by *rowFormat* parameter.
|
|
300
300
|
* See [ECSQL row format]($docs/learning/ECSQLRowFormat) for details about the format of the returned rows.
|
|
301
301
|
* @throws [IModelError]($common) If there was any error while submitting, preparing or stepping into query
|
|
302
|
+
* @deprecated in 3.7. Use [[createQueryReader]] instead; it accepts the same parameters.
|
|
302
303
|
*/
|
|
303
304
|
async *query(ecsql, params, options) {
|
|
304
305
|
const builder = new core_common_1.QueryOptionsBuilder(options);
|
|
@@ -317,8 +318,10 @@ class ECDb {
|
|
|
317
318
|
* See "[iTwin.js Types used in ECSQL Parameter Bindings]($docs/learning/ECSQLParameterTypes)" for details.
|
|
318
319
|
* @returns Return row count.
|
|
319
320
|
* @throws [IModelError]($common) If the statement is invalid
|
|
321
|
+
* @deprecated in 3.7. Count the number of results using `count(*)` where the original query is a subquery instead. E.g., `SELECT count(*) FROM (<query-whose-rows-to-count>)`.
|
|
320
322
|
*/
|
|
321
323
|
async queryRowCount(ecsql, params) {
|
|
324
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
322
325
|
for await (const row of this.query(`select count(*) from (${ecsql})`, params)) {
|
|
323
326
|
return row[0];
|
|
324
327
|
}
|
|
@@ -340,8 +343,10 @@ class ECDb {
|
|
|
340
343
|
* @returns Returns the query result as an *AsyncIterableIterator<any>* which lazy load result as needed. The row format is determined by *rowFormat* parameter.
|
|
341
344
|
* See [ECSQL row format]($docs/learning/ECSQLRowFormat) for details about the format of the returned rows.
|
|
342
345
|
* @throws [IModelError]($common) If there was any error while submitting, preparing or stepping into query
|
|
346
|
+
* @deprecated in 3.7. Use [[createQueryReader]] instead. Pass in the restart token as part of the `config` argument; e.g., `{ restartToken: myToken }` or `new QueryOptionsBuilder().setRestartToken(myToken).getOptions()`.
|
|
343
347
|
*/
|
|
344
348
|
async *restartQuery(token, ecsql, params, options) {
|
|
349
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
345
350
|
for await (const row of this.query(ecsql, params, new core_common_1.QueryOptionsBuilder(options).setRestartToken(token).getOptions())) {
|
|
346
351
|
yield row;
|
|
347
352
|
}
|